/*══════════════════════════════════════════════════════════════
  ECOMSINGLE — HEADER REBUILD v3.1
  3-Tier Architecture: Top Bar, Main Header, Bottom Nav
  Clean Structure, Flex Alignment, Exact Heights, Perfect Wrappers
══════════════════════════════════════════════════════════════*/

/* ── 0. CORE VARIABLES & RESET ── */
:root {
  --header-top-h: 38px;
  --header-main-h: 80px;
  --header-nav-h: 52px;
  --header-z-index: 1000;
  --megamenu-z-index: 1050;
  
  --ds-header-bg: #ffffff;
  --ds-header-border: #f0f0f5;
  --ds-top-bg: var(--clr-primary, #C41E3A);
  --ds-top-text: #ffffff;
  --ds-nav-bg: #1a1a2e;
  --ds-nav-text: #ffffff;
}

/* Ensure consistent box model across header components */
.ds-header-wrapper {
  position: relative;
  z-index: 999999 !important;
}
.ds-header-wrapper, .ds-header-wrapper * {
  box-sizing: border-box;
}

/* ── Container Override for Header ── */
.ds-header-wrapper .container {
  max-width: 1320px !important;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ── 1. TIER 1: TOP BAR (38px) ── */
.ds-header-top {
  height: var(--header-top-h);
  background-color: var(--offer-bar-bg, var(--ds-top-bg));
  color: var(--offer-bar-text, var(--ds-top-text));
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.ds-header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.ds-header-top-left, 
.ds-header-top-center, 
.ds-header-top-right {
  display: flex;
  align-items: center;
  height: 100%;
}

.ds-header-top-center { 
  flex: 1; 
  justify-content: center; 
  text-align: center; 
  font-weight: 400; /* Standardized weight */
}
.ds-header-top-center .cro-highlight { font-weight: 700; color: #FFD700; }

/* Top Bar Selectors */
.ds-header-top-left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  height: 100% !important;
}

.custom-dropdown {
  position: relative !important;
  display: inline-block;
}

.custom-dropdown .dropdown-trigger {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--offer-bar-btn-bg, rgba(255, 255, 255, 0.12)) !important;
  border: 1px solid var(--offer-bar-btn-border, rgba(255, 255, 255, 0.2)) !important;
  border-radius: 6px !important;
  padding: 0 10px !important;
  height: 28px !important;
  color: var(--offer-bar-text, #fff) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  outline: none !important;
  gap: 6px !important;
}

.custom-dropdown .dropdown-trigger:hover,
.custom-dropdown.open .dropdown-trigger {
  background: var(--offer-bar-btn-hover-bg, rgba(255, 255, 255, 0.22)) !important;
  border-color: var(--offer-bar-btn-hover-border, rgba(255, 255, 255, 0.4)) !important;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.1) !important;
}

.custom-dropdown .dropdown-icon {
  font-size: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0.9 !important;
}

.custom-dropdown .dropdown-icon.currency-sign {
  font-weight: 700 !important;
}

.custom-dropdown .selected-text {
  letter-spacing: 0.2px;
}

.custom-dropdown .caret-icon {
  font-size: 9px !important;
  transition: transform 0.25s ease !important;
  opacity: 0.7 !important;
}

.custom-dropdown.open .caret-icon {
  transform: rotate(180deg) !important;
}

/* Dropdown Menu styling */
.custom-dropdown .dropdown-menu {
  position: absolute !important;
  top: calc(100% + 6px) !important;
  left: 0 !important;
  min-width: 120px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
  padding: 6px 0 !important;
  margin: 0 !important;
  list-style: none !important;
  z-index: 1100 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-8px) scale(0.96) !important;
  transform-origin: top left !important;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.2s !important;
  display: block !important; /* overrides bootstrap's display: none */
}

.custom-dropdown.open .dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
}

/* Dropdown Items styling */
.custom-dropdown .dropdown-item {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 12px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  color: #334155 !important;
  cursor: pointer !important;
  transition: background-color 0.15s ease, color 0.15s ease !important;
  text-align: left !important;
  font-weight: 500 !important;
}

.custom-dropdown .dropdown-item:hover {
  background-color: #f1f5f9 !important;
  color: #C41E3A !important;
}

.custom-dropdown .dropdown-item.active {
  background-color: #fef2f2 !important;
  color: #C41E3A !important;
  font-weight: 600 !important;
}

.custom-dropdown .dropdown-item .item-sign {
  font-weight: 700 !important;
  color: #64748b !important;
  min-width: 14px;
}

.custom-dropdown .dropdown-item.active .item-sign {
  color: #C41E3A !important;
}

/* Mobile Responsiveness */
@media (max-width: 575px) {
  .ds-header-top-left {
    gap: 6px !important;
  }
  .custom-dropdown .dropdown-trigger {
    padding: 0 8px !important;
    height: 25px !important;
    font-size: 11px !important;
    gap: 4px !important;
  }
  .custom-dropdown .dropdown-menu {
    min-width: 100px !important;
  }
  .custom-dropdown .dropdown-item {
    padding: 6px 10px !important;
    font-size: 12px !important;
  }
}

/* Top Bar Links */
.ds-top-links { display: flex; align-items: center; gap: 12px; list-style: none; margin: 0; padding: 0; height: 100%; }
.ds-top-links a { color: inherit !important; text-decoration: none; transition: opacity 0.2s; display: flex; align-items: center; height: 100%; font-weight: 500;}
.ds-top-links a:hover { opacity: 0.8; }
.ds-top-divider { opacity: 0.4; color: inherit; }
.ds-top-btn {
  background: var(--ds-nav-bg);
  color: #fff !important;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  display: inline-flex !important;
  align-items: center;
  height: auto !important;
}
.ds-top-btn:hover { background: #000; color: #fff !important; }

/* ── 2. TIER 2: MAIN HEADER (80px) ── */
.ds-header-main {
  height: var(--header-main-h);
  background-color: var(--ds-header-bg);
  border-bottom: 1px solid var(--ds-header-border);
  position: relative;
  z-index: var(--header-z-index);
  transition: all 0.3s ease;
}

/* Sticky state for Main Header */
.ds-header-wrapper.is-sticky .ds-header-main {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  animation: slideDown 0.4s ease forwards;
}
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }

.ds-header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

/* Logo */
.ds-logo { flex-shrink: 0; display: flex; align-items: center; height: 100%; }
.ds-logo img { max-height: 50px; width: auto; object-fit: contain; }

/* Unified Search Bar */
.ds-search-wrapper {
  flex: 1;
  max-width: 600px;
  display: flex;
  align-items: stretch;
  border: 2px solid var(--clr-primary, #C41E3A);
  border-radius: 8px;
  height: 48px;
  background: #fff;
  transition: box-shadow 0.2s;
  position: relative;
  box-sizing: border-box;
}
.ds-search-wrapper:focus-within { box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.15); }

.ds-search-cat {
  flex-shrink: 0;
  width: 160px;
  background: transparent;
  position: relative;
  display: flex;
  align-items: stretch;
  border-radius: 6px 0 0 6px;
}
.ds-search-cat select {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0 24px 0 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #4a4a5a;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  margin: 0;
}
.ds-search-cat i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #8a8a9a; pointer-events: none; }

.ds-search-input-area { 
  flex: 1; 
  position: relative; 
  display: flex; 
  align-items: center; 
}
.ds-search-input-area input {
  width: 100%;
  height: auto;
  border: none !important;
  border-left: 1px solid rgba(0,0,0,0.1) !important;
  padding: 10px 16px;
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  line-height: 1.4;
  box-sizing: border-box;
}

.ds-search-btn {
  flex-shrink: 0;
  width: 70px;
  background: var(--clr-primary, #C41E3A);
  color: #fff;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 0 6px 6px 0;
  margin: -2px -2px -2px 0;
}
.ds-search-btn:hover { background: #a01830; }

/* Autocomplete positioning */
.ds-search-input-area .autocomplete-items {
  position: absolute;
  top: calc(100% + 4px);
  left: -182px; /* Offset by category select width + borders */
  width: calc(100% + 182px + 72px); /* Full width of search wrapper */
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-radius: 8px;
  z-index: 1060;
  border: 1px solid var(--ds-header-border);
  overflow: hidden; /* Local overflow hidden strictly for autocomplete rounded corners */
}
.ds-search-input-area .autocomplete-items:empty {
  display: none !important;
}

/* User Actions */
.ds-user-actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; height: 100%; }
.ds-action-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #1a1a2e;
  text-decoration: none;
  cursor: pointer;
  height: 100%;
}
.ds-action-item i { font-size: 24px; transition: transform 0.2s; }
.ds-action-item:hover i { transform: scale(1.1); color: var(--clr-primary); }

.ds-action-badge {
  position: absolute !important;
  top: 2px !important;
  right: -4px !important;
  background: var(--clr-primary, #C41E3A) !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid #fff !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  pointer-events: none;
}

/* User Account Dropdown */
.ds-account-dropdown { position: relative; height: 100%; display: flex; align-items: center; }
.ds-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  min-width: 200px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: var(--megamenu-z-index);
  padding: 8px 0;
  border: 1px solid var(--ds-header-border);
}
.ds-account-dropdown:hover .ds-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.ds-dropdown-menu::before {
  content: ''; position: absolute; top: -6px; right: 20px;
  width: 12px; height: 12px; background: #fff;
  transform: rotate(45deg); border-top: 1px solid var(--ds-header-border); border-left: 1px solid var(--ds-header-border);
}
.ds-dropdown-menu a {
  display: block; padding: 10px 20px; color: #4a4a5a;
  text-decoration: none; font-family: 'Inter', sans-serif; font-size: 14px;
  transition: background 0.2s;
}
.ds-dropdown-menu a:hover { background: #f8f8fa; color: var(--clr-primary); }

/* ── 3. TIER 3: BOTTOM NAVIGATION (52px) ── */
.ds-header-nav {
  height: var(--header-nav-h);
  background-color: var(--ds-nav-bg);
  color: var(--ds-nav-text);
  position: relative;
  z-index: 990;
}

/* Sticky state for Bottom Nav */
.ds-header-wrapper.is-sticky .ds-header-nav {
  position: fixed;
  top: var(--header-main-h); 
  left: 0;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ds-header-nav .container {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 30px;
}

/* Categories Button */
.ds-cat-btn-wrapper { position: relative; height: 100%; }
.ds-cat-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  background: var(--clr-primary, #C41E3A);
  color: #fff;
  padding: 0 24px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
  min-width: 250px;
}
.ds-cat-btn:hover { background: #a01830; }
.ds-cat-btn .fa-bars { font-size: 16px; }
.ds-cat-btn .fa-angle-down { margin-left: auto; }

/* Modern Mega Menu Grid */
.ds-mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 250px;
  background: #fff;
  border: 1px solid var(--ds-header-border);
  border-top: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: var(--megamenu-z-index);
  list-style: none;
  margin: 0; padding: 0;
}
.ds-cat-btn-wrapper:hover .ds-mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }

/* Main Menu Items */
.ds-mega-menu-item { border-bottom: 1px solid #f8f8fa; position: relative; }
.ds-mega-menu-item > a {
  display: flex; align-items: center; gap: 12px; padding: 12px 20px;
  color: #1a1a2e; text-decoration: none; font-family: 'Inter', sans-serif; font-size: 14px;
  transition: background 0.2s, color 0.2s;
}
.ds-mega-menu-item > a:hover { background: #f8f8fa; color: var(--clr-primary); }
.ds-mega-menu-item > a img { width: 20px; height: 20px; object-fit: contain; }
.ds-mega-menu-item > a i.fa-angle-right { margin-left: auto; color: #8a8a9a; }

/* Sub Menu Panel */
.ds-sub-menu-panel {
  position: absolute;
  top: 0;
  left: 100%;
  width: 700px;
  min-height: 100%;
  background: #fff;
  border-left: 1px solid var(--ds-header-border);
  box-shadow: 10px 10px 30px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 24px;
  z-index: calc(var(--megamenu-z-index) + 1);
}
.ds-mega-menu-item:hover .ds-sub-menu-panel { opacity: 1; visibility: visible; }

.ds-sub-cat-group h4 { margin: 0 0 10px 0; }
.ds-sub-cat-group h4 a { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14px; color: #1a1a2e; border-bottom: 2px solid var(--clr-primary); padding-bottom: 4px; text-decoration: none; display: inline-block; }
.ds-sub-cat-group ul { list-style: none; margin: 0; padding: 0; }
.ds-sub-cat-group ul li a { display: block; padding: 6px 0; color: #4a4a5a; font-family: 'Inter', sans-serif; font-size: 13px; text-decoration: none; transition: color 0.2s; }
.ds-sub-cat-group ul li a:hover { color: var(--clr-primary); padding-left: 4px; }

/* Main Nav Links */
.ds-nav-links { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; height: 100%; }
.ds-nav-links li { height: 100%; }
.ds-nav-links a {
  display: flex; align-items: center; height: 100%; padding: 0 16px;
  color: var(--ds-nav-text); text-decoration: none; font-family: 'Inter', sans-serif;
  font-weight: 500; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px;
  transition: background 0.2s, color 0.2s;
}
.ds-nav-links a:hover, .ds-nav-links a.active { background: rgba(255,255,255,0.1); color: #fff; }

/* ── Prevent Layout Shift for Hero Banner ── */
/* When sticky is active, the fixed headers are removed from flow (80px + 52px = 132px). We compensate with padding on the next element. */
.ds-header-wrapper.is-sticky ~ #main-content {
  padding-top: calc(var(--header-main-h) + var(--header-nav-h));
}

/* ── 4. RESPONSIVE DESIGN ── */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
  .ds-header-top-center { display: none; } 
  .ds-search-wrapper { max-width: 400px; }
  .ds-search-cat { width: 120px; }
  .ds-cat-btn { min-width: 200px; padding: 0 16px; }
  .ds-mega-menu { width: 200px; }
  .ds-sub-menu-panel { width: 500px; }
  .ds-nav-links a { padding: 0 12px; font-size: 13px; }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  :root {
    --header-main-h: 140px; /* Fallback for calc() */
    --header-nav-h: 0px; 
    --mobile-nav-top: 130px; /* Default, overridden by JS */
  }
  
  /* Top Bar */
  .ds-header-top {
    height: 32px !important;
    padding: 0 !important;
    background-color: var(--offer-bar-bg-color, #1a1a2e) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .ds-header-top.offer-bar-disabled {
    display: none !important;
  }
  .ds-header-top .container {
    flex-direction: row !important;
    gap: 0 !important;
    padding: 0 15px !important;
    height: 100% !important;
    justify-content: center !important;
    align-items: center !important;
  }
  .ds-header-top-left, .ds-header-top-right {
    display: none !important;
  }
  .ds-header-top-center {
    display: block !important;
    font-size: 11px !important;
    color: var(--offer-bar-text-color, #ffffff) !important;
    text-align: center !important;
    width: 100% !important;
    line-height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    position: relative !important;
  }
  .ds-header-top-center > span {
    display: inline-block !important;
    padding-left: 100% !important;
    animation: dsMarquee 15s linear infinite !important;
  }
  @keyframes dsMarquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
  }
  
  /* Main Header */
  .ds-header-main .container {
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    padding: 10px 15px !important;
    height: auto !important;
  }
  .ds-logo {
    height: 40px !important;
    max-width: 150px !important;
    display: flex !important;
    align-items: center !important;
  }
  .ds-logo img {
    max-height: 32px !important;
    max-width: 100% !important;
    object-fit: contain !important;
  }
  
  @media (max-width: 359px) {
    .ds-logo {
      max-width: 110px !important;
    }
    .ds-logo img {
      max-height: 26px !important;
    }
    .ds-user-actions {
      gap: 8px !important;
    }
    .ds-mobile-toggle {
      width: 32px !important;
      height: 32px !important;
      font-size: 20px !important;
    }
  }
  
  /* Mobile Hamburger */
  .ds-mobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: transparent; border: none; font-size: 24px; color: #1a1a2e; cursor: pointer;
  }
  
  /* User Actions */
  .ds-user-actions { gap: 12px; height: 40px; }
  .ds-user-actions .ds-action-item i { font-size: 20px; }
  .ds-user-actions .ds-hide-mobile { display: none !important; }
  .ds-action-badge { top: calc(50% - 14px); right: -6px; width: 16px; height: 16px; font-size: 9px; }
  
  /* Move Search to new row */
  .ds-search-wrapper {
    width: 100%; max-width: 100%; order: 4; flex: 1 1 100%;
    margin-top: 10px; height: 40px; border-radius: 6px;
  }
  .ds-search-cat { display: none; } 
  .ds-search-input-area .autocomplete-items { left: 0; width: 100%; }
  
  /* Adjust header height for search row */
  .ds-header-main { padding-bottom: 12px; }
  
  /* Bottom Nav Hidden by default but transitions / displays when active */
  .ds-header-nav {
    display: block !important;
    position: fixed !important;
    top: var(--mobile-nav-top, 130px) !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100vh - var(--mobile-nav-top, 130px)) !important;
    background-color: var(--ds-nav-bg) !important;
    color: var(--ds-nav-text) !important;
    z-index: 100100 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s !important;
    overflow-y: auto !important;
    border-top: 1px solid rgba(255,255,255,0.08) !important;
    padding: 15px 0 40px 0 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
  }
  .ds-header-nav.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }
  .ds-header-nav .container {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px;
    height: auto !important;
  }
  .ds-cat-btn-wrapper {
    width: 100% !important;
    height: auto !important;
    margin-bottom: 8px !important;
  }
  .ds-cat-btn-wrapper.active .ds-cat-btn {
    background: var(--clr-primary, #C41E3A) !important;
    color: #fff !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  .ds-cat-btn {
    width: 100% !important;
    justify-content: space-between !important;
    height: 44px !important;
    border-radius: 4px !important;
  }
  .ds-cat-btn i.fa-chevron-down,
  .ds-cat-btn i.fa-angle-down {
    transition: transform 0.2s ease !important;
  }
  .ds-cat-btn-wrapper.active .ds-cat-btn i.fa-chevron-down,
  .ds-cat-btn-wrapper.active .ds-cat-btn i.fa-angle-down {
    transform: rotate(180deg) !important;
  }
  .ds-mega-menu {
    position: static !important;
    width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    display: none;
    box-shadow: none !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: none !important;
    background: #252538 !important;
    margin-top: 0px !important;
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    padding: 6px 0 !important;
  }
  .ds-cat-btn-wrapper.active .ds-mega-menu {
    display: block !important;
  }
  .ds-mega-menu-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  }
  .ds-mega-menu-item:last-child {
    border-bottom: none !important;
  }
  .ds-mega-menu-item > a {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 15px !important;
    color: #f1f5f9 !important;
    background: transparent !important;
    transition: all 0.2s ease !important;
  }
  .ds-mega-menu-item > a i.fa-angle-right {
    margin-left: auto !important;
    color: #cbd5e1 !important;
    transition: transform 0.2s ease !important;
  }
  .ds-mega-menu-item.open > a {
    color: var(--clr-primary, #C41E3A) !important;
    background: rgba(255, 255, 255, 0.02) !important;
  }
  .ds-mega-menu-item.open > a i.fa-angle-right {
    transform: rotate(90deg) !important;
    color: var(--clr-primary, #C41E3A) !important;
  }
  .ds-sub-menu-panel {
    position: static !important;
    width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: none;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 12px 16px !important;
    border-left: none !important;
    background: #1c1c2a !important;
    box-shadow: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.04) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
  }
  .ds-mega-menu-item.open .ds-sub-menu-panel {
    display: grid !important;
  }
  .ds-sub-cat-group {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    padding-bottom: 6px !important;
    margin-bottom: 6px !important;
  }
  .ds-sub-cat-group:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
  .ds-sub-cat-group ul {
    display: none;
    padding-left: 12px !important;
    margin-top: 5px !important;
    margin-bottom: 6px !important;
  }
  .ds-sub-cat-group.open ul {
    display: block !important;
  }
  .ds-sub-cat-group h4 {
    position: relative !important;
    margin-bottom: 0 !important;
    padding: 6px 0 !important;
    cursor: pointer !important;
  }
  .ds-sub-cat-group h4 a {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    display: inline-block !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
  }
  .ds-sub-cat-group h4::after {
    content: '\f107' !important;
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 900 !important;
    position: absolute !important;
    right: 5px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    transition: transform 0.2s ease !important;
    color: #cbd5e1 !important;
    font-size: 14px !important;
  }
  .ds-sub-cat-group.open h4::after {
    transform: translateY(-50%) rotate(180deg) !important;
    color: var(--clr-primary, #C41E3A) !important;
  }
  .ds-sub-cat-group ul li a {
    color: #cbd5e1 !important;
    padding: 6px 0 !important;
    font-size: 12px !important;
    text-decoration: none !important;
    display: block !important;
    transition: color 0.2s ease !important;
  }
  .ds-sub-cat-group ul li a:hover {
    color: var(--clr-primary, #C41E3A) !important;
  }
  .ds-nav-links {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    height: auto !important;
    gap: 0px !important;
  }
  .ds-nav-links li {
    width: 100% !important;
    height: auto !important;
  }
  .ds-nav-links a {
    width: 100% !important;
    padding: 12px 15px !important;
    height: auto !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    color: #f1f5f9 !important;
  }
  .ds-nav-links a:hover, .ds-nav-links a.active {
    color: var(--clr-primary, #C41E3A) !important;
    background: rgba(255, 255, 255, 0.05) !important;
  }
  
  /* Adjust Sticky Padding */
  .ds-header-wrapper.is-sticky ~ #main-content {
    padding-top: 130px !important; /* Approx height of mobile header */
  }

  /* Make mobile menu sticky when header is sticky */
  .ds-header-wrapper.is-sticky .ds-header-nav {
    position: fixed !important;
    top: 130px !important;
    height: calc(100vh - 130px) !important;
  }
}

/* Base state for elements only shown on mobile */
.ds-mobile-toggle { display: none; }

/* Clean Body Padding Reset */
body { margin: 0; padding: 0; }

/* RTL Support */
[dir=rtl] .ds-search-cat { border-radius: 0 6px 6px 0; }
[dir=rtl] .ds-search-btn { border-radius: 6px 0 0 6px; margin-right: 0; margin-left: -2px; }
