/* =========================================================
   CATEGORIES COMPONENT STYLES (Fixed Icon Scaling)
   ========================================================= */
.ott-track-wrap {
  position: relative;
  width: 100%;
  margin: 40px auto;
}

.ott-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 15px 4px 25px 4px;
  scrollbar-width: none;
}

.ott-track::-webkit-scrollbar {
  display: none;
}

/* ===== STYLISH CARDS ===== */
.cat-card {
  flex: 0 0 160px;
  height: 160px;
  background: var(--card, #FFFFFF);
  border: 1px solid var(--border, #E5E5E0);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  color: var(--text, #222222);
  -webkit-tap-highlight-color: transparent;
}

.cat-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: var(--gold, #D99A00);
  background: #111111;
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(217, 154, 0, 0.12);
}

.cat-card:active {
  transform: translateY(-1px) scale(0.98);
}

.cat-card span {
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.cat-card:hover span {
  color: var(--gold-light, #FFE08A);
}

/* ===== ICON CONTAINER & CONSTRAINED SVG ===== */
.cat-icon {
  color: var(--gold, #D99A00);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.cat-icon svg {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px;
  max-height: 32px;
  stroke: currentColor;
  stroke-width: 1.75px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes drawStrokeAlternate {
  0%, 100% {
    stroke-dashoffset: 100;
  }
  50% {
    stroke-dashoffset: 0;
  }
}

.cat-icon svg path,
.cat-icon svg rect,
.cat-icon svg circle,
.cat-icon svg line,
.cat-icon svg polyline {
  stroke-dasharray: 100;
  animation: drawStrokeAlternate 4s ease-in-out infinite;
}

.cat-icon svg rect { animation-delay: 0.0s; }
.cat-icon svg path { animation-delay: 0.15s; }
.cat-icon svg circle { animation-delay: 0.25s; }
.cat-icon svg line { animation-delay: 0.35s; }
.cat-icon svg polyline { animation-delay: 0.45s; }

.cat-card:hover .cat-icon {
  transform: scale(1.08) translateY(-1px);
  filter: drop-shadow(0 2px 4px rgba(217, 154, 0, 0.25));
}

/* ===== NAVIGATION ARROWS ===== */
.ott-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--gold, #D99A00);
  background: rgba(255, 255, 255, 0.95);
  color: var(--gold, #D99A00);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ott-arrow svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2px;
  transition: transform 0.2s ease;
}

.ott-arrow:hover {
  background: var(--gold, #D99A00);
  color: #000000;
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 6px 16px rgba(217, 154, 0, 0.2);
}

.ott-arrow:hover.ott-prev svg {
  transform: translateX(-3px);
}

.ott-arrow:hover.ott-next svg {
  transform: translateX(3px);
}

.ott-prev {
  left: -25px;
}

.ott-next {
  right: -25px;
}

/* =========================================================
   CATEGORY SLIDER / MODAL OVERLAY STYLES
   ========================================================= */
.cat-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cat-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cat-modal-container {
  position: relative;
  background: #111111;
  border: 1px solid rgba(217, 154, 0, 0.3);
  width: 100%;
  max-width: 850px;
  max-height: 90vh;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
  transform: translateY(30px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat-modal-overlay.active .cat-modal-container {
  transform: translateY(0) scale(1);
}

.cat-modal-image {
  flex: 1;
  min-height: 350px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.cat-modal-content {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #FFFFFF;
  overflow-y: auto;
}

.cat-modal-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 4px;
  color: var(--gold, #D99A00);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.cat-modal-title {
  font-family: var(--font-display, 'Bebas Neue', sans-serif);
  font-size: 2.4rem;
  letter-spacing: 1px;
  color: #FFFFFF;
  margin-bottom: 16px;
  line-height: 1.1;
}

.cat-modal-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #AAAAAA;
  margin-bottom: 28px;
}

.cat-modal-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.cat-btn-enquire,
.cat-btn-chat {
  padding: 12px 22px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px.
  border-radius: 0;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.cat-btn-enquire {
  background: var(--gold, #D99A00);
  color: #000000;
  border: 1px solid var(--gold, #D99A00);
}

.cat-btn-enquire:hover {
  background: transparent;
  color: var(--gold-light, #FFE08A);
  border-color: var(--gold, #D99A00);
}

.cat-btn-chat {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cat-btn-chat:hover {
  border-color: var(--gold, #D99A00);
  color: var(--gold-light, #FFE08A);
}

.cat-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-modal-close:hover {
  background: var(--gold, #D99A00);
  color: #000000;
  border-color: var(--gold, #D99A00);
}

.cat-modal-back {
  display: none;
  background: none;
  border: none;
  color: #FFFFFF;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 16px 20px;
  width: 100%;
  background: #1a1a1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== RESPONSIVE MOBILE VIEW ===== */
@media (max-width: 768px) {
  .ott-track-wrap {
    margin: 2px auto;
  }

  .ott-arrow {
    display: none;
  }

  .ott-track {
    gap: 12px;
    padding: 8px 16px 12px 16px;
  }

  .cat-card {
    flex: 0 0 115px;
    height: 115px;
    border-radius: 16px;
    gap: 10px;
  }

  .cat-card span {
    font-size: 0.8rem;
  }

  .cat-icon svg {
    width: 24px !important;
    height: 24px !important;
  }

  .cat-modal-overlay {
    padding: 0;
  }

  .cat-modal-container {
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    flex-direction: column;
    border: none;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .cat-modal-overlay.active .cat-modal-container {
    transform: translateY(0);
  }

  .cat-modal-close {
    display: none;
  }

  .cat-modal-back {
    display: flex;
  }

  .cat-modal-image {
    flex: 0 0 45%;
    min-height: auto;
  }

  .cat-modal-content {
    flex: 0 0 55%;
    padding: 24px 20px;
  }

  .cat-modal-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }

  .cat-modal-desc {
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 16px;
  }

  .cat-btn-enquire,
  .cat-btn-chat {
    padding: 10px 16px;
    font-size: 0.75rem;
  }
}
/* =========================================================
   CATEGORY SIDE-SLIDER STYLES (DESKTOP DRAWER & MOBILE MODAL)
   ========================================================= */
.cat-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Pin drawer to the right side on desktop */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.cat-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* DESKTOP SIDE-SLIDER CONTAINER */
.cat-modal-container {
  position: relative;
  background: #111111;
  border-left: 1px solid rgba(217, 154, 0, 0.3);
  width: 100%;
  max-width: 620px; /* Sleek navbar drawer width */
  height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.7);
  transform: translateX(100%); /* Start hidden off-screen to the right */
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat-modal-overlay.active .cat-modal-container {
  transform: translateX(0); /* Slide in smoothly */
}

/* Top Image Section inside Sidebar */
.cat-modal-image {
  width: 100%;
  height: 45%;
  background-size: cover;
  background-position: center;
  position: relative;
  flex-shrink: 0;
}

/* Content Area inside Sidebar */
.cat-modal-content {
  width: 100%;
  height: 55%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #FFFFFF;
  overflow-y: auto;
  box-sizing: border-box;
}

.cat-modal-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 4px;
  color: var(--gold, #D99A00);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.cat-modal-title {
  font-family: var(--font-display, 'Bebas Neue', sans-serif);
  font-size: 2.4rem;
  letter-spacing: 1px;
  color: #FFFFFF;
  margin-bottom: 16px;
  line-height: 1.1;
}

.cat-modal-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #AAAAAA;
  margin-bottom: 28px;
}

.cat-modal-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.cat-btn-enquire,
.cat-btn-chat {
  padding: 12px 22px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 0;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.cat-btn-enquire {
  background: var(--gold, #D99A00);
  color: #000000;
  border: 1px solid var(--gold, #D99A00);
}

.cat-btn-enquire:hover {
  background: transparent;
  color: var(--gold-light, #FFE08A);
  border-color: var(--gold, #D99A00);
}

.cat-btn-chat {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cat-btn-chat:hover {
  border-color: var(--gold, #D99A00);
  color: var(--gold-light, #FFE08A);
}

.cat-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-modal-close:hover {
  background: var(--gold, #D99A00);
  color: #000000;
  border-color: var(--gold, #D99A00);
}

.cat-modal-back {
  display: none; /* Hidden on desktop */
}

/* =========================================================
   RESPONSIVE MOBILE VIEW (UNCHANGED FULL SCREEN)
   ========================================================= */
@media (max-width: 768px) {
  .cat-modal-overlay {
    justify-content: center; /* Center on mobile */
  }

  .ott-track-wrap {
    margin: 2px auto;
  }

  .ott-arrow {
    display: none;
  }

  .ott-track {
    gap: 12px;
    padding: 8px 16px 12px 16px;
  }

  .cat-card {
    flex: 0 0 115px;
    height: 115px;
    border-radius: 16px;
    gap: 10px;
  }

  .cat-card span {
    font-size: 0.8rem;
  }

  .cat-icon svg {
    width: 24px !important;
    height: 24px !important;
  }

  .cat-modal-container {
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    flex-direction: column;
    border: none;
    transform: translateY(100%); /* Slide up from bottom on mobile */
    box-shadow: none;
  }

  .cat-modal-overlay.active .cat-modal-container {
    transform: translateY(0);
  }

  .cat-modal-close {
    display: none;
  }

  .cat-modal-back {
    display: flex;
    background: none;
    border: none;
    color: #FFFFFF;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 16px 20px;
    width: 100%;
    background: #1a1a1a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
  }

  .cat-modal-image {
    flex: 0 0 45%;
    height: auto;
  }

  .cat-modal-content {
    flex: 0 0 55%;
    height: auto;
    padding: 24px 20px;
  }

  .cat-modal-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }

  .cat-modal-desc {
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 16px;
  }

  .cat-btn-enquire,
  .cat-btn-chat {
    padding: 10px 16px;
    font-size: 0.75rem;
  }
}