/* Shared homepage navbar, dropdown, and mobile drawer styles. */
/* ── Mobile menu drawer (liquid glass) ── */
#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s linear 0.40s;
}

#mobile-menu.open {
  pointer-events: all;
  visibility: visible;
  transition-delay: 0s;
}

#mobile-menu.closing {
  pointer-events: none;
  visibility: visible;
  transition-delay: 0s;
}

#mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(0.25rem);
  /* 4px */
  -webkit-backdrop-filter: blur(0.25rem);
  opacity: 0;
  transition: opacity 0.40s cubic-bezier(0.25, 1, 0.3, 1);
}

#mobile-menu.open #mobile-menu-backdrop {
  opacity: 1;
}

#mobile-menu.closing #mobile-menu-backdrop {
  opacity: 0;
}

#mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 80%;
  max-width: 20rem;
  /* 320px */
  transform: translateX(100%);
  transition: transform 0.40s cubic-bezier(0.25, 1, 0.3, 1);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(1.25rem) saturate(180%);
  -webkit-backdrop-filter: blur(1.25rem) saturate(180%);
  border-left: 0.0625rem solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0.0625rem 1px 0 rgba(255, 255, 255, 0.1),
    -0.25rem 0 2rem rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

#mobile-menu-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 45% at 50% 0%,
      rgba(255, 255, 255, 0.45) 0%,
      rgba(255, 255, 255, 0.12) 45%,
      transparent 70%);
  pointer-events: none;
  z-index: 1;
}

#mobile-menu-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 30% at 50% 100%,
      rgba(255, 255, 255, 0.15) 0%,
      transparent 70%);
  pointer-events: none;
  z-index: 1;
}

#mobile-menu-panel>* {
  position: relative;
  z-index: 2;
}

#mobile-menu.open #mobile-menu-panel {
  transform: translateX(0);
}

#mobile-menu.closing #mobile-menu-panel {
  transform: translateX(100%);
}

/* ══════════════════════════════════════════════════
   BRAND GLOW SEARCH BAR — Desktop Nav
   ══════════════════════════════════════════════════ */

.glow-search-wrap {
  position: relative;
  border-radius: 6.1875rem;
  /* 99px */
}

.glow-search-wrap .glow-search-inner {
  position: relative;
  z-index: 1;
  border-radius: inherit;
}

.glow-search-wrap input {
  transition: box-shadow 0.35s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.35s ease;
}

.glow-search-wrap:focus-within input {
  border-color: transparent !important;
  box-shadow:
    0 0 0 0.0625rem rgba(255, 255, 255, 0.5),
    0 0 0.625rem 0.125rem rgba(255, 255, 255, 0.4),
    0 0 1.125rem 0.25rem rgba(70, 70, 175, 0.4);
  outline: none;
}

/* ══════════════════════════════════════════════════
   BRAND GLOW SEARCH BAR — Mobile Sidebar
   ══════════════════════════════════════════════════ */

.mobile-glow-search-wrap {
  position: relative;
  border-radius: 6.1875rem;
  /* 99px */
}

.mobile-glow-search-wrap .mobile-glow-inner {
  position: relative;
  z-index: 1;
  border-radius: inherit;
}

#mobile-menu-search {
  background: rgba(255, 255, 255, 0.12);
  border: 0.0625rem solid rgba(255, 255, 255, 0.2);
  border-radius: 6.1875rem;
  /* 99px */
  padding: 0.625rem 1rem 0.625rem 2.5rem;
  /* 10px 16px 10px 40px */
  color: #fff;
  font-size: 0.875rem;
  /* 14px */
  width: 100%;
  outline: none;
  transition: box-shadow 0.35s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.35s ease;
}

#mobile-menu-search::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

#mobile-menu-search:focus {
  border-color: transparent !important;
  box-shadow:
    0 0 0 0.0625rem rgba(255, 255, 255, 0.3),
    0 0 0.625rem 0.1875rem rgba(255, 255, 255, 0.25),
    0 0 1.375rem 0.375rem rgba(70, 70, 175, 0.5);
}

/* ══════════════════════════════════════════════════

   NAVBAR — Centered nav links, no overlap at any width
   ══════════════════════════════════════════════════ */
#smart-navbar .ios26-liquid-pill {
  min-width: 0;
}

.nav-links-center {
  display: none;
}

@media (min-width: 75rem) {

  /* 1200px */
  .nav-links-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    /* 12px */
    flex: 0 1 auto;
    white-space: nowrap;
    pointer-events: auto;
    z-index: 3;
  }
}

@media (min-width: 80rem) {

  /* 1280px */
  .nav-links-center {
    gap: 1rem;
    /* 16px */
  }
}

@media (min-width: 90rem) {

  /* 1440px */
  .nav-links-center {
    gap: 1.5rem;
    /* 24px */
  }
}

/* Scale font at breakpoints */
.nav-links-center a {
  font-size: 0.6875rem !important;
  /* 11px */
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s ease;
  font-weight: 600;
}

#smart-navbar [data-nav-page].nav-link-active {
  color: #4f46e5 !important;
}

@media (min-width: 75rem) {
  .nav-links-center a {
    font-size: 0.71875rem !important;
    /* 11.5px */
  }
}

@media (min-width: 80rem) {
  .nav-links-center a {
    font-size: 0.78125rem !important;
    /* 12.5px */
  }
}

@media (min-width: 90rem) {
  .nav-links-center a {
    font-size: 0.84375rem !important;
    /* 13.5px */
  }
}

/* Flex boundaries enforce true center without overlap */
.nav-logo-wrap {
  display: flex;
  align-items: center;
  margin-top: 0.0625rem;
  /* 1px */
  justify-content: flex-start;
  flex: 1 1 0%;
  min-width: max-content;
  z-index: 3;
}

.nav-actions-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  /* 8px */
  flex: 1 1 0%;
  min-width: max-content;
  z-index: 3;
}

/* ── Dynamic fluid container mapping ── */
nav#smart-navbar>div[class*="max-w-"] {
  max-width: 90rem !important;
}

/* ================================================================
   COMPONENT HARDCODED OVERRIDES
   ================================================================ */

/* 1. Nav-bar Pill & Logo */
#smart-navbar .ios26-liquid-pill {
  height: 3.5rem !important;
  /* 56px baseline */
}

@media (min-width: 48rem) {
  #smart-navbar img {
    height: 1.5rem !important;
    /* 24px baseline */
  }
}

@media (max-width: 47.9375rem) {
  #smart-navbar img {
    height: 1.125rem !important;
    /* 18px baseline */
  }
}


#smart-navbar .nav-actions-wrap a:not(:has(svg)),
#smart-navbar .nav-actions-wrap button:not(:has(svg)) {
  font-size: 0.8125rem !important;
  /* 13px baseline */
  padding: 0.5rem 1.25rem !important;
  border-radius: 6.1875rem !important;
}

/* ═══════════════════════════════════════════════════════
   FLUID MATERIAL ICONS OVERRIDE
   Overwrites Google's static 24px default stylesheet value 
   to scale relative to your root clamp() font size.
   ═══════════════════════════════════════════════════════ */
.material-symbols-outlined {
  font-size: 1.5rem;
  /* Converts static 24px to a relative, scaling 1.5rem */
}

/* ══════════════════════════════════════════════════
   NAV SUBMENU DROPDOWNS — Desktop (.nav-dd)
   Added for: Store / Design Your Mousepad / Collaborate / Accessories
   ══════════════════════════════════════════════════ */
.nav-dd {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.1875rem;
  /* 3px */
}



.nav-dd-caret {
  font-size: 1rem !important;
  /* 16px, overrides .material-symbols-outlined default */
  opacity: 0.55;
  transition: transform 0.25s ease, opacity 0.2s ease;
  margin-top: 0.125rem; /* <-- ADD THIS: Nudges the arrow down by 2px */
}
.nav-dd:hover .nav-dd-caret,
.nav-dd.open .nav-dd-caret {
  transform: rotate(180deg);
  opacity: 0.9;
}

.nav-dd-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 0.6875rem;
  /* 11px — invisible bridge so hover doesn't drop between trigger and panel */
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.nav-dd:hover .nav-dd-panel,
.nav-dd.open .nav-dd-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-dd-panel-inner {
  min-width: 12.5rem;
  /* 200px */
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(1.25rem) saturate(180%);
  -webkit-backdrop-filter: blur(1.25rem) saturate(180%);
  border: 0.0625rem solid rgba(255, 255, 255, 0.6);
  border-radius: 1.25rem;
  box-shadow:
    inset 0 0.0625rem 0 rgba(255, 255, 255, 0.6),
    0 0.5rem 1rem rgba(15, 23, 42, 0.08),
    0 1rem 2.5rem rgba(15, 23, 42, 0.14);
  padding: 0.4375rem;
  display: flex;
  flex-direction: column;
  gap: 0.0625rem;
  transform: translateY(-0.375rem);
  opacity: 0;
  transition: transform 0.22s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.22s ease;
}

.nav-dd:hover .nav-dd-panel-inner,
.nav-dd.open .nav-dd-panel-inner {
  transform: translateY(0);
  opacity: 1;
}

/* ══════════════════════════════════════════════════
   WIDE DROPDOWNS (Collaborate & Corporate)
   ══════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════
   WIDE DROPDOWNS & STORE COLUMNS (Typography & Hover)
   ══════════════════════════════════════════════════ */
.nav-dd-panel--wide .nav-dd-panel-inner {
  min-width: 24rem; 
  padding: 1.25rem 1.25rem 1.75rem 1.25rem; 
  gap: 0.375rem; 
}

/* 1. Large chunkier hover states for BOTH Wide panels and Store columns */
.nav-links-center .nav-dd-panel--wide .nav-dd-item,
.nav-links-center .nav-dd-panel-inner--columns .nav-dd-item {
  padding: 0.75rem 1.25rem !important; 
  border-radius: 0.75rem; 
  justify-content: center; /* Keeps single-line items perfectly centered vertically */
}

/* 2. Larger Title Text */
.nav-dd-panel--wide .nav-dd-item-title,
.nav-dd-panel-inner--columns .nav-dd-item-title {
  font-size: 0.9375rem; 
  font-weight: 600; 
  letter-spacing: 0.02em;
  margin-bottom: 0; /* Flexbox 'gap' handles spacing now */
}

/* 3. Larger Description / Tag Text */
.nav-dd-panel--wide .nav-dd-item-desc,
.nav-dd-panel-inner--columns .nav-dd-item-desc,
.nav-dd-panel-inner--columns .nav-dd-item-tag {
  font-size: 0.75rem; 
  line-height: 1.5; 
  letter-spacing: 0.015em; 
}

/* ══════════════════════════════════════════════════
   BASE DROPDOWN ITEMS (Fixes regular dropdowns too)
   ══════════════════════════════════════════════════ */
.nav-links-center .nav-dd-item {
  display: flex !important;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.5625rem 0.75rem !important;
  border-radius: 0.75rem;
  text-decoration: none;
  white-space: normal !important;
  font-size: 0.8125rem !important;
  transition: background-color 0.15s ease;
}

/* ADD THESE TWO BLOCKS BACK TO RESTORE THE HOVER EFFECTS */
.nav-links-center .nav-dd-item:hover {
  background: rgba(79, 70, 229, 0.08);
}

.nav-dd-item:hover .nav-dd-item-title {
  color: #4f46e5;
}

/* ══════════════════════════════════════════════════
   NAV SUBMENU DROPDOWNS — Desktop (.nav-dd)
   Added for: Store / Design Your Mousepad / Collaborate / Accessories
   ══════════════════════════════════════════════════ */
.nav-dd {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.1875rem;
  /* 3px */
}

/* 👇 ADD THIS BLOCK: Keeps the trigger text purple when the panel is hovered or open 👇 */
.nav-dd:hover .nav-dd-trigger,
.nav-dd.open .nav-dd-trigger {
  color: #4f46e5 !important;
}

.nav-dd-caret {
  font-size: 1rem !important;
  /* 16px, overrides .material-symbols-outlined default */
  opacity: 0.55;
  transition: transform 0.25s ease, opacity 0.2s ease;
  margin-top: 0.125rem; 
}

.nav-dd-item-title {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #0f172a;
  font-family: "Outfit", sans-serif;
  line-height: 1.3;
  letter-spacing: 0.015em; /* ADDED: Global tracking fix */
}

.nav-dd-item-tag,
.nav-dd-item-desc {
  font-size: 0.6875rem;
  font-weight: 400;
  color: #64748b;
  line-height: 1.4;
  letter-spacing: 0.01em; /* ADDED: Global tracking fix */
}

.nav-dd-item--desc {
  padding-top: 0.625rem !important;
  padding-bottom: 0.625rem !important;
}

/* ══════════════════════════════════════════════════
   NAV ACCORDION SUBMENUS — Mobile drawer (.mobile-nav-group)
   Added for: Store / Design Your Mousepad / Collaborate / Accessories
   ══════════════════════════════════════════════════ */
#mobile-nav-list>.mobile-nav-link,
#mobile-nav-list>.mobile-nav-group {
  border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.08);
  /* 1px */
}

#mobile-nav-list>.mobile-nav-link:last-child,
#mobile-nav-list>.mobile-nav-group:last-child {
  border-bottom: none;
}

/* Trigger reuses .mobile-nav-link visuals but its own border is suppressed —
   the wrapping .mobile-nav-group owns the divider line instead. */
.mobile-nav-group-trigger.mobile-nav-link {
  width: 100%;
  background: none;
  border: none;
  border-bottom: none;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}

.mobile-nav-group-label {
  flex: 1;
}

.mobile-nav-chevron {
  font-size: 1.25rem !important;
  /* 20px */
  opacity: 0.6;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.mobile-nav-group.open .mobile-nav-chevron {
  transform: rotate(180deg);
}

.mobile-nav-submenu {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.mobile-nav-group.open .mobile-nav-submenu {
  grid-template-rows: 1fr;
}

.mobile-nav-submenu-inner {
  overflow: hidden;
  min-height: 0;
}

.mobile-nav-sublink {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.625rem 0 0.625rem 2.4375rem;
  /* 10px 0 10px 39px — aligns under group icon/label */
  font-size: 0.875rem;
  /* 14px */
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.2s;
}

#mobile-menu [data-nav-page].nav-link-active {
  color: #a78bfa;
}

.mobile-nav-sublink:active {
  color: #fff;
}

.mobile-nav-sublink-title {
  font-weight: 600;
}

.mobile-nav-sublink-tag {
  font-size: 0.75rem;
  /* 12px */
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
}

.mobile-nav-sublink--desc {
  padding-top: 0.6875rem;
  padding-bottom: 0.6875rem;
}

.mobile-nav-sublink-desc {
  font-size: 0.75rem;
  /* 12px */
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.5);
}


/* ══════════════════════════════════════════════════
   NAVBAR DROPDOWN BACKDROP (DISCORD BLUR EFFECT)
   ══════════════════════════════════════════════════ */
#nav-dropdown-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45); /* Dark overlay matching your surface colors */
  backdrop-filter: blur(80px);
  -webkit-backdrop-filter: blur(80px);
  z-index: 55; /* Sits above the CTA (z-50) but below the Navbar (z-60) */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease 0.08s, visibility 0.22s ease 0.08s;
}

/* ADD THIS: Elegant, high-performance inline grain layer */
#nav-dropdown-backdrop::before {
  content: '';
  position: absolute;
  inset: 0;
  
  /* baseFrequency increased from 0.85 to 0.95 for denser grain */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  
  background-size: 140px 140px; /* Tighter grain scale */
  opacity: 0.15; /* Increased from 0.04 to make it clearly visible */
  mix-blend-mode: screen; /* Changed to 'screen' to force clean browser rendering over the blur */
  pointer-events: none; /* Mouse clicks pass right through */
}

/* Magically show the backdrop when any dropdown is hovered or actively clicked open */
body:has(.nav-dd:hover) #nav-dropdown-backdrop,
body:has(.nav-dd.open) #nav-dropdown-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.18s ease 0.05s, visibility 0.18s ease 0.05s; /* Delay opacity so the pill whitens first */
}

/* ══════════════════════════════════════════════════
   KEEP NAVBAR & DROPDOWN BRIGHT WHEN OVERLAY IS ACTIVE
   ══════════════════════════════════════════════════ */

/* 1. Smooth transition on the navbar pill — delay the fade-OUT so it doesn't
      flicker when the cursor briefly gaps between two dropdown triggers */
#smart-navbar .ios26-liquid-pill {
  transition: background 0.22s ease 0.08s; /* 80ms exit delay eliminates inter-dropdown flicker */
}

/* 2. Make the navbar pill highly opaque white when any dropdown is open/hovered.
      On the way IN there's no delay — instant response feels snappy */
body:has(.nav-dd:hover) #smart-navbar .ios26-liquid-pill,
body:has(.nav-dd.open) #smart-navbar .ios26-liquid-pill {
  background: rgba(255, 255, 255, 0.95);
  transition: background 0.12s ease 0s; /* Whiten faster to perfectly block the dark overlay */
}

/* 3. Ensure the dropdown panel itself stays bright */
body:has(.nav-dd:hover) .nav-dd-panel-inner,
body:has(.nav-dd.open) .nav-dd-panel-inner {
  background: rgba(255, 255, 255, 0.98);
  
}


/* DOnt remove thes comments as we may need them for future reference. */



/* 4. Fix: search icon + cart icon stay dark/visible when pill turns white.
      text-on-surface-variant (#64748b) is already dark enough, but the icon's
      color is inherited via Tailwind classes. We force it explicitly so it
      never washes out against the white pill background. */
/* body:has(.nav-dd:hover) #smart-navbar .nav-actions-wrap .material-symbols-outlined,
body:has(.nav-dd.open) #smart-navbar .nav-actions-wrap .material-symbols-outlined {
  color: #0f172a !important;
  opacity: 0.7 !important;
} */

/* 4a. Base state: Keep search icon permanently in front and add anti-flicker delay */
#smart-navbar .glow-search-wrap .material-symbols-outlined {
  z-index: 10;
  transition: color 0.22s ease 0.08s, opacity 0.22s ease 0.08s; /* 80ms delay stops flicker between dropdowns */
}

/* 4b. Hover state: ONLY the search icon stays crisp and dark */
body:has(.nav-dd:hover) #smart-navbar .glow-search-wrap .material-symbols-outlined,
body:has(.nav-dd.open) #smart-navbar .glow-search-wrap .material-symbols-outlined {
  color: #0f172a !important;
  opacity: 0.7 !important;
  transition: color 0.18s ease 0s, opacity 0.18s ease 0s !important; /* Instant turn-on */
}



/* 5. Also keep the backdrop's fade-out slightly delayed to match the pill */
#nav-dropdown-backdrop {
  transition: opacity 0.22s ease 0.08s, visibility 0.22s ease 0.08s;
}

/* ══════════════════════════════════════════════════
   DROPDOWN MENU SPACING (BREATHING ROOM)
   ══════════════════════════════════════════════════ */
.nav-dd-panel {
  /* Default was 0.6875rem. 1.5rem pushes it down cleanly below the navbar pill */
  padding-top: 1.5rem !important; 
}

/* Optional: Make the slide-in animation slightly more pronounced to match the new gap */
.nav-dd-panel-inner {
  transform: translateY(-0.75rem); /* Starts slightly higher before sliding down */
}
/* ══════════════════════════════════════════════════
   MULTI-COLUMN STORE DROPDOWN
   Three sections separated by vertical dividers
   ══════════════════════════════════════════════════ */

/* Override: column layout for the merged Store panel */
/* Override: column layout for the merged Store panel */
/* ══════════════════════════════════════════════════
   MULTI-COLUMN STORE DROPDOWN
   Three sections separated by vertical dividers
   ══════════════════════════════════════════════════ */
.nav-dd-panel-inner--columns {
  flex-direction: row !important;
  gap: 0.5rem !important; /* Space for the dividers to breathe */
  min-width: max-content !important; /* Let it grow naturally to fit the new chunkier items */
  width: max-content; 
  align-items: stretch;
  padding: 1.25rem 1.25rem 1.75rem 1.25rem !important; /* MATCHES wide panel padding perfectly */
}

.nav-dd-col {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  flex: auto; 
  padding: 1rem 2rem 1.75rem 1.5rem !important; /* REDUCED: Perfectly balanced at 2.5rem */
  min-width: 11.5rem; /* 1. Default to narrower width for left & right columns */
}

/* 2. Target the middle column specifically (3rd child in the container) to give it more breathing room */
.nav-dd-col:nth-child(3) {
  min-width: 18.5rem; /* Roomy width for long mousepad names */
}

/* .nav-dd-col:first-child { padding-left: 0; } */
.nav-dd-col:last-child { padding-right: 0; }

/* Column section heading — adapted to the chunkier layout */
.nav-dd-col-heading {
  font-size: 0.75rem; /* Increased to match larger scale */
  font-weight: 700;
  letter-spacing: 0.06em; 
  color: #94a3b8;
  padding: 0.25rem 1.25rem 0.2rem; /* Left padding matches the 1.25rem hover pill padding exactly */
  margin-bottom: 0;
  font-family: "Outfit", sans-serif;
}

/* Vertical divider between columns */
.nav-dd-divider {
  width: 0.0625rem;
  background: rgba(15, 23, 42, 0.08);
  align-self: stretch;
  margin: 0.5rem 0.5rem; 
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════
   MOBILE: SECTION HEADINGS WITHIN ACCORDION
   ══════════════════════════════════════════════════ */
.mobile-nav-sublink-section-heading {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.38);
  padding: 0.75rem 0 0.25rem 2.4375rem;
  font-family: "Outfit", sans-serif;
  margin: 0;
}

/* First section heading has less top padding — no preceding content */
.mobile-nav-submenu-inner .mobile-nav-sublink-section-heading:first-child {
  padding-top: 0.375rem;
}


/* =========================================
   SHRINK NAVBAR CONTENTS (Keep Navbar Height)
   ========================================= */

/* 1. Make the Logo smaller */
@media (min-width: 48rem) {
  #smart-navbar img { 
    height: 1.15rem !important; /* Reduced from 1.5rem */
  }
}

/* 2. Make the Main Nav Links smaller */
#smart-navbar .nav-links-center > a,
#smart-navbar .nav-dd-trigger {
  font-size: 0.72rem !important; /* Reduces base font size */
}

/* 3. Make the Search Bar smaller */
#smart-navbar .glow-search-wrap input {
  font-size: 0.75rem !important;
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
}

/* 4. Make the Icons (Search, Cart) smaller */
#smart-navbar .nav-actions-wrap .material-symbols-outlined {
  font-size: 1.15rem !important; /* Reduced from 1.375rem */
}

/* 5. Make the "Sign up" button smaller */
#smart-navbar .nav-actions-wrap button.cart-btn-glass,
#smart-navbar .nav-actions-wrap a.cart-btn-glass {
  font-size: 0.72rem !important;
  padding: 0.35rem 1rem !important; 
  height: 2.25rem !important; /* Reduced from standard height */
}


/* ══════════════════════════════════════════════════

#mobile-menu-panel div::-webkit-scrollbar {
  display: none;
}

#mobile-menu-panel div {
  scrollbar-width: none;
}

/* ══════════════════════════════════════════════════
   GLOBAL CART DRAWER
   ══════════════════════════════════════════════════ */
#cart-drawer {
  position: fixed; inset: 0; z-index: 500;
  pointer-events: none; visibility: hidden;
  transition: visibility 0s linear 0.4s;
}
#cart-drawer.open { pointer-events: all; visibility: visible; transition-delay: 0s; }

#cart-backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(80px);
  -webkit-backdrop-filter: blur(80px);
  opacity: 0; transition: opacity 0.3s cubic-bezier(0.25, 1, 0.3, 1);
}

/* Add the exact same high-performance inline grain layer as the navbar */
#cart-backdrop::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  opacity: 0.15;
  mix-blend-mode: screen;
  pointer-events: none;
}

#cart-drawer.open #cart-backdrop { opacity: 1; }

#cart-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 100%; max-width: 26rem; /* 416px */
  border-radius: 1.5rem 0 0 1.5rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.3, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
}
@media (max-width: 480px) {
  #cart-panel { border-radius: 0; }
}
#cart-drawer.open #cart-panel { transform: translateX(0); }
