/* ImportHub ? storefront styles
   Palette: deep navy (#0B3A6E) + white + accent orange (#F97316)
   Fonts: Outfit (display) + DM Sans (body)
*/

:root {
  --navy: #0B3A6E;
  --navy-deep: #072848;
  --navy-soft: #1A5FA8;
  --orange: #F97316;
  --orange-dark: #EA580C;
  --ink: #0F172A;
  --muted: #64748B;
  --line: #E2E8F0;
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --success: #15803D;
  --danger: #B91C1C;
  --warning: #B45309;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(7, 40, 72, 0.08);
  --header-h: 6.75rem;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --max: 1320px;
  --page-shell: min(100% - 1.25rem, var(--max));
}

*,
*::before,
*::after {
  box-sizing: border-box;
  /* Kill Android Chrome’s default blue rectangular tap flash */
  -webkit-tap-highlight-color: transparent;
}

/* Stop iOS Safari auto-zoom when focusing inputs under 16px */
@media (max-width: 1024px) {
  input,
  select,
  textarea,
  .form-control,
  .header-search-form input,
  .price-range-box input,
  .catalog-filter-select {
    font-size: 16px !important;
  }
}

html {
  /* Avoid animated scroll jumps on navigation / restore */
  scroll-behavior: auto;
  /* White canvas — overscroll / bfcache must never flash navy behind the footer */
  background-color: #fff;
  /*
   * Root owns page scroll. overflow-y:auto + scrollbar-gutter:stable keeps the
   * classic scrollbar track reserved so centered header/footer nav cannot jump
   * when page height crosses the viewport threshold (Home ↔ Product, etc.).
   */
  overflow-x: clip;
  overflow-y: auto;
  scrollbar-gutter: stable;
  /* Reduce double-tap zoom on phones/tablets (viewport also locks scale) */
  touch-action: manipulation;
}

/* Browsers without scrollbar-gutter: keep a stable classic scrollbar track */
@supports not (scrollbar-gutter: stable) {
  html {
    overflow-y: scroll;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  /* Match page canvas — keeps Back/overscroll white under the navy footer block */
  background-color: #fff;
  line-height: 1.55;
  /* svh stays stable when mobile browser chrome shows/hides (dvh jumps the footer) */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  max-width: 100%;
  touch-action: manipulation;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--navy-soft);
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1em;
}

.container {
  width: var(--page-shell);
  margin-inline: auto;
  max-width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/*
 * Unified root scroll-lock (mobile nav / cart / lightbox).
 * Compensation uses --scroll-lock-pad only when JS measures a real width gap
 * after overflow:hidden (scrollbar-gutter:stable usually makes that gap 0).
 */
html.ih-scroll-lock {
  overflow: hidden !important;
  /* Keep gutter reserved while overflow is hidden (avoids pad=0 + width expand) */
  scrollbar-gutter: stable;
  overscroll-behavior: none;
  background-color: #fff;
}

body.ih-scroll-lock {
  overflow: hidden !important;
  overscroll-behavior: none;
  touch-action: none;
  padding-right: var(--scroll-lock-pad, 0px);
}

html.ih-scroll-lock .site-top {
  padding-right: var(--scroll-lock-pad, 0px);
}

html.ih-scroll-lock .mobile-nav,
html.ih-scroll-lock .cart-drawer,
html.ih-scroll-lock .cart-drawer-body,
html.ih-scroll-lock .sv-lightbox,
html.ih-scroll-lock .sv-lightbox-dialog,
html.ih-scroll-lock .catalog-cat-panel,
html.ih-scroll-lock .catalog-cat-panel-inner,
html.ih-scroll-lock .catalog-cat-panel-cats,
html.ih-scroll-lock .catalog-sidebar-filters {
  touch-action: pan-y;
}

html.ih-scroll-lock .catalog-cat-panel .price-range-slider,
html.ih-scroll-lock .catalog-cat-panel .price-range-input,
html.ih-scroll-lock .catalog-cat-panel .price-range-box,
html.ih-scroll-lock .catalog-cat-panel .price-range-box input {
  touch-action: manipulation;
}

/* Header */
.site-top {
  position: fixed;
  top: 0;
  left: 0;
  /* width:100% (not left+right:0) tracks the same layout width as in-flow content
     when scrollbar-gutter reserves space — avoids fixed-header horizontal jump */
  width: 100%;
  max-width: 100%;
  right: auto;
  z-index: 100;
  overflow: visible;
  background: #fff;
  box-sizing: border-box;
  /* Always visible — no hide/slide on scroll (avoids jump on desktop) */
  transform: translate3d(0, 0, 0);
  opacity: 1;
}
.site-top-spacer {
  height: var(--header-h, 6.75rem);
  flex-shrink: 0;
}
.header-info {
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
}
.site-header {
  position: relative;
  top: auto;
  z-index: 200;
  background: var(--navy-deep);
  color: #fff;
  transition: box-shadow 0.2s ease;
  overflow: visible;
  isolation: isolate;
}

/* Full-bleed paint without 100vw (avoids scrollbar-width horizontal jump) */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--navy-deep);
  z-index: 1;
  pointer-events: none;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(7, 40, 72, 0.18);
}

.announce-bar {
  background: #0a0a0a;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
}

.announce-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.55rem 2.5rem;
  text-align: center;
}

.announce-inner p {
  margin: 0;
}

.announce-close {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
}

.header-info-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 1.9rem;
}

.header-social {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.header-social a {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  opacity: 0.95;
  transition: opacity 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.header-social img {
  width: 18px;
  height: 18px;
  display: block;
  border-radius: 4px;
  object-fit: contain;
  /* Keep decoded bitmaps while sticky header slides off-screen */
  content-visibility: visible;
}

.header-info-text {
  margin: 0;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  font-size: 0.78rem;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-inline: 0.25rem;
}

.header-info-right {
  justify-self: end;
}

.header-info-right a {
  color: var(--ink);
  font-weight: 600;
}

.header-main {
  position: relative;
  z-index: 200;
  background: var(--navy-deep);
  color: #fff;
  overflow: visible;
}

.header-main-inner {
  position: relative;
  display: grid;
  /* Equal side columns keep the centered nav from shifting when badges/actions change */
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "logo nav actions";
  gap: 1.25rem;
  align-items: center;
  padding: 0.55rem 0;
  overflow: visible;
  z-index: auto;
}

.logo,
.nav-toggle {
  position: relative;
  z-index: 2;
}

/* Grid item z-index only — do not create a positioning box (search panel must span the header) */
.header-actions {
  z-index: 2;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  line-height: 0;
  min-width: 0;
  max-width: 100%;
  grid-area: logo;
  justify-self: start;
}

.logo-on-dark {
  color: #fff;
}

.logo-on-dark:hover {
  color: #fff;
}

.brand-logo {
  display: block;
  width: auto;
  height: 48px;
  max-width: min(220px, 58vw);
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.brand-logo-header {
  height: 40px;
  max-width: min(200px, 58vw);
}

.brand-logo-footer {
  height: 52px;
  max-width: 230px;
}

.brand-logo-checkout {
  height: 58px;
  max-width: 240px;
  object-fit: contain;
  object-position: center;
}

.brand-logo-auth {
  height: 72px;
  max-width: 280px;
}

.brand-logo-custom {
  width: auto;
  height: auto;
  max-width: 48px;
  max-height: 48px;
  border-radius: 12px;
  object-fit: contain;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, var(--orange), var(--orange-dark));
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.28);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.logo-on-dark .logo-text span {
  color: var(--orange);
}

.logo-text span {
  color: var(--orange);
}

.main-nav {
  grid-area: nav;
  /* Stretch the middle column so the nav track width stays fixed; centering a
     shrink-wrapped list reflows every item when any link's paint width changes. */
  justify-self: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  position: static;
}

.main-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  /* Fixed tracks — a centered shrink-wrap reflows every link when any label,
     font metric, or active style changes width. */
  display: grid;
  grid-template-columns: 4.34rem 7.17rem 8.77rem 5.82rem 6.73rem;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  height: 100%;
  width: max-content;
  max-width: 100%;
}

.main-nav-list > li {
  display: flex;
  align-items: center;
  height: 100%;
  min-width: 0;
  width: 100%;
}

.main-nav-list > li > a,
.nav-drop-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  height: 100%;
  width: 100%;
  justify-content: center;
  padding: 0 0.85rem;
  color: rgba(255, 255, 255, 0.88);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.2;
  white-space: nowrap;
  border: 0;
  background: transparent;
  cursor: pointer;
  box-sizing: border-box;
  /* Keep glyph metrics stable across hover/active color changes. */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

/* Invisible label copy locks each link's width so hover/focus/active color
   (and any subpixel paint change) cannot reflow neighboring items. */
.main-nav-list .nav-link-label {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.main-nav-list .nav-link-label::before {
  content: attr(data-nav-stable);
  display: block;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  font: inherit;
  /* Reserve the widest paint metrics the label may use */
  font-weight: 700;
  letter-spacing: inherit;
  speak: never;
}

.main-nav-list > li > a.is-active,
.nav-drop-btn.is-active {
  color: var(--orange);
}

.has-dropdown {
  position: static;
  display: flex;
  align-items: center;
}

/* Hover bridge only under the Categories control — keep pointer live across the panel gap */
#cat-nav .has-dropdown {
  padding-bottom: 0.55rem;
  margin-bottom: -0.55rem;
}

#cat-nav .has-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 0;
  pointer-events: none;
  z-index: 2;
}

#cat-nav .has-dropdown:hover::after,
#cat-nav .has-dropdown.is-open::after {
  height: 0.55rem;
  pointer-events: auto;
}

.nav-drop-btn::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.8;
}

.nav-dropdown {
  --nav-cat-row: 1.7rem;
  --nav-cat-gap: 0.15rem;
  --nav-cat-pad-y: 0.75rem;
  --nav-cat-pad-x: 0.9rem;
  --nav-cat-rows: 12;
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 120;
  width: auto;
  min-width: 0;
  max-width: none;
  height: auto;
  /* 5 columns × 12 rows visible; scroll for the rest */
  max-height: calc(
    (var(--nav-cat-row) * var(--nav-cat-rows)) +
    (var(--nav-cat-gap) * (var(--nav-cat-rows) - 1)) +
    (var(--nav-cat-pad-y) * 2)
  );
  margin: 0;
  padding: var(--nav-cat-pad-y) var(--nav-cat-pad-x);
  list-style: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-columns: auto;
  grid-template-rows: none;
  grid-auto-rows: var(--nav-cat-row);
  grid-auto-flow: row;
  align-content: start;
  justify-content: stretch;
  gap: var(--nav-cat-gap) 1.15rem;
  pointer-events: auto;
}

/* Categories panel slides out from under the navy bar (z-index below ::before paint) */
#cat-nav .has-dropdown > .nav-dropdown {
  display: grid;
  z-index: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, -10px, 0);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0s linear 0.18s;
}

#cat-nav .has-dropdown.is-open > .nav-dropdown,
#cat-nav .has-dropdown:hover > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0s linear 0s;
}

/* Anchor trigger — match other nav links */
a.nav-drop-btn {
  text-decoration: none;
}

.nav-dropdown > li {
  position: relative;
  width: auto;
  max-width: 100%;
  min-width: 0;
  height: var(--nav-cat-row);
  min-height: var(--nav-cat-row);
  max-height: var(--nav-cat-row);
  margin: 0;
}

.nav-dropdown a,
.nav-submenu a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  width: 100%;
  height: 100%;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  text-align: left;
}

.nav-dropdown > li > a {
  justify-content: space-between;
}

.has-submenu.is-flyout-active > .nav-parent-link {
  background: #fff7ed;
  color: var(--orange);
}

.nav-dropdown a.is-active,
.nav-submenu a.is-active {
  color: var(--orange);
  background: transparent;
}

.nav-submenu-caret {
  flex-shrink: 0;
  width: 0;
  height: 0;
  margin-left: 0.2rem;
  border-top: 3.5px solid transparent;
  border-bottom: 3.5px solid transparent;
  border-left: 4.5px solid currentColor;
  opacity: 0.7;
  color: #64748b;
}

.has-submenu.is-open > .nav-parent-link .nav-submenu-caret,
.has-submenu.is-flyout-active > .nav-parent-link .nav-submenu-caret {
  opacity: 1;
  color: var(--orange);
}

/* Subcategories — desktop flyouts are portaled/fixed via JS (escape scroll clip) */
.nav-submenu {
  display: none;
  position: absolute;
  top: -0.2rem;
  left: calc(100% + 0.2rem);
  right: auto;
  bottom: auto;
  z-index: 4000;
  box-sizing: border-box;
  width: 15rem;
  min-width: 15rem;
  max-width: 15rem;
  max-height: calc(var(--nav-cat-row) * 10 + 0.9rem);
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  grid-template-columns: 1fr;
  grid-auto-rows: var(--nav-cat-row);
  align-content: start;
  align-items: stretch;
  gap: 0.15rem;
}

.nav-submenu.is-flyout-open {
  display: grid;
  position: fixed;
  z-index: 5000;
}

.has-submenu.opens-left > .nav-submenu {
  left: auto;
  right: calc(100% + 0.2rem);
}

.has-submenu::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100%;
  width: 0.35rem;
}

.has-submenu.opens-left::after {
  left: auto;
  right: 100%;
}

/* Desktop: JS opens flyouts (.is-flyout-open). Keep click-open for touch. */
.has-submenu.is-open > .nav-submenu {
  display: grid;
}

@media (min-width: 901px) {
  .has-submenu.is-open > .nav-submenu:not(.is-flyout-open) {
    display: none;
  }
}

.nav-submenu > li {
  break-inside: avoid;
  min-width: 0;
  height: var(--nav-cat-row);
}

.nav-submenu a {
  justify-content: flex-start;
  height: 100%;
  min-height: 0;
  font-weight: 500;
  font-size: 0.88rem;
  color: #64748b;
  padding: 0.35rem 0.55rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
  flex-wrap: nowrap;
  justify-content: flex-end;
  justify-self: end;
  grid-area: actions;
}

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

#search-toggle[aria-expanded="true"],
#cart-drawer-open[aria-expanded="true"],
#nav-toggle[aria-expanded="true"],
.header-actions .icon-btn.is-active {
  color: var(--orange);
}

.icon-btn-badge {
  position: relative;
}

/* Shared dropdown card chrome (Categories mega-menu + flyouts) */
.header-dropdown {
  --dd-radius: 12px;
  --dd-pad: 0.4rem;
  --dd-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  min-width: 11.5rem;
  max-width: min(16.5rem, calc(100vw - 1.5rem));
  padding: var(--dd-pad);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--dd-radius);
  box-shadow: var(--dd-shadow);
}

/* Categories panel: same card chrome, full header width */
.nav-dropdown.header-dropdown {
  min-width: 0;
  max-width: none;
  width: auto;
  left: 0;
  right: 0;
  padding: var(--nav-cat-pad-y, 0.75rem) var(--nav-cat-pad-x, 0.9rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--dd-radius);
  box-shadow: var(--dd-shadow);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  max-height: calc(
    (var(--nav-cat-row) * var(--nav-cat-rows, 12)) +
    (var(--nav-cat-gap) * (var(--nav-cat-rows, 12) - 1)) +
    (var(--nav-cat-pad-y) * 2)
  );
}

.nav-submenu.header-dropdown {
  width: 15rem;
  min-width: 15rem;
  max-width: 15rem;
  padding: var(--dd-pad);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--dd-radius);
  box-shadow: var(--dd-shadow);
}

/* Rounded scrollbar for categories mega-menu + subcategory flyouts */
.nav-dropdown,
.nav-submenu {
  scrollbar-width: thin;
  scrollbar-color: #c5ced9 transparent;
}

.nav-dropdown::-webkit-scrollbar,
.nav-submenu::-webkit-scrollbar {
  width: 8px;
}

.nav-dropdown::-webkit-scrollbar-track,
.nav-submenu::-webkit-scrollbar-track {
  background: transparent;
  margin-block: 8px;
}

.nav-dropdown::-webkit-scrollbar-thumb,
.nav-submenu::-webkit-scrollbar-thumb {
  background: #c5ced9;
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.nav-dropdown::-webkit-scrollbar-thumb:hover,
.nav-submenu::-webkit-scrollbar-thumb:hover {
  background: #9aa8b8;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.nav-dropdown::-webkit-scrollbar-corner,
.nav-submenu::-webkit-scrollbar-corner {
  background: transparent;
}

.header-dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  text-align: left;
}

.header-dropdown a.is-active {
  color: var(--orange);
  background: transparent;
}

/* Categories mega-menu link colors */
.nav-dropdown.header-dropdown a,
.nav-submenu.header-dropdown a {
  color: #64748b;
  padding: 0.35rem 0.55rem;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 6px;
  gap: 0.35rem;
}

.nav-dropdown.header-dropdown .has-submenu.is-flyout-active > .nav-parent-link {
  background: #fff7ed;
  color: var(--orange);
}

.nav-dropdown.header-dropdown a.is-active,
.nav-submenu.header-dropdown a.is-active {
  color: var(--orange);
  background: transparent;
}

.nav-dropdown.header-dropdown .nav-submenu-caret {
  color: #64748b;
}

.nav-dropdown.header-dropdown .has-submenu.is-open > .nav-parent-link .nav-submenu-caret,
.nav-dropdown.header-dropdown .has-submenu.is-flyout-active > .nav-parent-link .nav-submenu-caret {
  color: var(--orange);
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  box-sizing: border-box;
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-body), "DM Sans", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

/* Header icon badges share the same circle size */
.icon-btn-badge > .cart-badge {
  width: 18px;
  min-width: 18px;
  max-width: 18px;
  height: 18px;
  padding: 0;
  font-size: 10px;
  line-height: 1;
}

.cart-badge[hidden] {
  display: none !important;
}

/* Header search dropdown — panel spans full header container width */
.header-search {
  position: static;
}

.header-search-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  width: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(7, 40, 72, 0.18);
  z-index: 1200;
  overflow: hidden;
  color: var(--ink);
  padding: 0.65rem;
}

.header-search-panel[hidden] {
  display: none !important;
}

.header-search-form {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #f4f7fb;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.15rem 0.2rem 0.15rem 0.75rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.header-search-form:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
  background: #fff;
}

.header-search-icon {
  display: grid;
  place-items: center;
  color: #94a3b8;
  flex: 0 0 auto;
}

.header-search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.55rem 0.25rem;
  outline: none;
  color: var(--ink);
}

.header-search-form input::placeholder {
  color: #94a3b8;
}

.header-search-go {
  flex: 0 0 auto;
  border: 0;
  border-radius: 10px;
  background: var(--orange);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
}

.header-search-results {
  max-height: min(60vh, 22rem);
  overflow-y: auto;
  margin-top: 0.45rem;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #c5ced9 transparent;
}

.header-search-results::-webkit-scrollbar {
  width: 8px;
}

.header-search-results::-webkit-scrollbar-track {
  background: transparent;
  margin-block: 6px;
}

.header-search-results::-webkit-scrollbar-thumb {
  background: #c5ced9;
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.header-search-results::-webkit-scrollbar-thumb:hover {
  background: #9aa8b8;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.header-search-results::-webkit-scrollbar-corner {
  background: transparent;
}

.header-search-hint,
.header-search-empty,
.header-search-loading {
  margin: 0;
  padding: 0.85rem 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.header-search-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.header-search-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.45rem 0.5rem;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s ease;
}

.header-search-item.is-active {
  background: #f4f7fb;
}

.header-search-thumb {
  width: 48px;
  height: 48px;
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}

.header-search-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.header-search-meta {
  min-width: 0;
}

.header-search-name {
  display: block;
  font-weight: 650;
  font-size: 0.9rem;
  color: var(--navy);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-search-cat {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.header-search-price {
  text-align: right;
  white-space: nowrap;
}

.header-search-price-now {
  display: block;
  font-weight: 750;
  color: var(--navy);
  font-size: 0.88rem;
}

.header-search-price-was {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  text-decoration: line-through;
}

.header-search-footer {
  padding: 0.35rem 0.15rem 0.1rem;
}

.header-search-view-all {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  background: #fff7ed;
  color: var(--orange-dark);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
}

@media (max-width: 640px) {
  .header-search-item {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .header-search-price {
    grid-column: 2;
    text-align: left;
  }

  .header-search-price-now,
  .header-search-price-was {
    display: inline;
  }

  .header-search-price-was {
    margin-left: 0.35rem;
  }
}

.nav-toggle {
  display: none;
  grid-area: logo;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: #fff;
}

/* ?? Flash / toast ?? */
.flash {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-weight: 560;
}

.flash-success {
  background: #dcfce7;
  color: var(--success);
}

.flash-error {
  background: #fee2e2;
  color: var(--danger);
}

.flash-info {
  background: #e0f2fe;
  color: var(--navy);
}

.site-toast.flash {
  position: fixed;
  top: calc(var(--header-h, 5.5rem) + 0.65rem);
  left: 50%;
  right: auto;
  bottom: auto;
  z-index: 1300;
  margin: 0;
  padding: 0;
  max-width: min(18.5rem, calc(100vw - 1.5rem));
  width: max-content;
  background: transparent;
  color: inherit;
  font-weight: inherit;
  box-shadow: none;
  transform: translate3d(-50%, 0, 0);
  animation: site-toast-in 0.28s ease both;
  pointer-events: none;
}
.site-toast.flash-success,
.site-toast.flash-error,
.site-toast.flash-info {
  background: transparent;
  color: inherit;
}
.site-toast-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
  padding: 0.55rem 0.8rem;
  pointer-events: auto;
}
.site-toast-head {
  margin: 0 0 0.1rem;
  padding: 0;
  background: transparent;
  color: #0f172a;
  font-family: var(--font-body), "DM Sans", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
}
.site-toast.flash-success .site-toast-head {
  color: var(--success);
}
.site-toast.flash-error .site-toast-head {
  color: var(--danger);
}
.site-toast.flash-info .site-toast-head {
  color: var(--navy);
}
.site-toast-body {
  margin: 0;
  padding: 0;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.35;
}

@keyframes site-toast-in {
  from { opacity: 0; transform: translate3d(-50%, -8px, 0); }
  to { opacity: 1; transform: translate3d(-50%, 0, 0); }
}

.site-toast.flash.is-hiding {
  opacity: 0;
  transform: translate3d(-50%, -6px, 0);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Auth / checkout share the same top-center spot */
.auth-page .site-toast.flash,
body:has(.co-main) .site-toast.flash {
  top: 1rem;
}

/* Floating WhatsApp — flat icon, no shadow */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1100;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow: none !important;
  filter: none !important;
  text-shadow: none !important;
  animation: none !important;
  transition: transform 0.2s ease, background 0.2s ease;
}

.wa-float::before,
.wa-float::after {
  content: none !important;
  display: none !important;
  box-shadow: none !important;
}

.wa-float:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.45);
  outline-offset: 3px;
}

.wa-float svg {
  display: block;
  filter: none !important;
}

@media (max-width: 560px) {
  .wa-float {
    right: 1rem;
    bottom: 1rem;
    width: 3.25rem;
    height: 3.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float {
    animation: none;
  }
}

/* —— Buttons (storefront: two sizes only) ——
   Large  = default .btn  (e.g. Proceed to checkout)
   Small  = .btn-sm       (e.g. Sign out)
*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-sizing: border-box;
  min-height: 2.85rem;
  padding: 0.75rem 1.35rem;
  border-radius: 10px;
  border: 1.5px solid transparent;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.15s ease, background 0.15s, color 0.15s, filter 0.15s, border-color 0.15s;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  box-shadow: none;
}

.btn-primary:focus-visible,
a.btn-primary:focus-visible,
.btn-primary:active,
a.btn-primary:active {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  color: #fff;
  filter: none;
}

.btn-navy,
a.btn-navy {
  background: #fff;
  border-color: var(--navy);
  color: var(--navy);
  box-shadow: none;
}

.btn-navy:visited,
a.btn-navy:visited {
  background: #fff;
  border-color: var(--navy);
  color: var(--navy);
}

.btn-navy:focus-visible,
a.btn-navy:focus-visible,
.btn-navy:active,
a.btn-navy:active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.btn-primary:disabled,
.btn-primary[disabled],
.btn-primary[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
}

.btn-primary:disabled:active,
.btn-primary[disabled]:active,
.btn-primary[aria-disabled="true"]:active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  transform: none;
}

.btn-secondary {
  background: var(--navy);
  color: #fff;
}

.btn-secondary:focus-visible,
.btn-secondary:active {
  background: var(--navy-soft);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: none;
}

.btn-outline:focus-visible,
a.btn-outline:focus-visible,
.btn-outline:active,
a.btn-outline:active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.btn-ghost {
  background: #fff7ed;
  color: var(--orange-dark);
  border-color: transparent;
  box-shadow: none;
}

.btn-remove,
a.btn-remove,
button.btn-remove {
  background: #fff;
  border-color: var(--orange);
  color: var(--orange-dark);
  box-shadow: none;
}

.btn-remove:visited,
a.btn-remove:visited {
  background: #fff;
  border-color: var(--orange);
  color: var(--orange-dark);
}

.btn-remove:focus-visible,
a.btn-remove:focus-visible,
.btn-remove:active,
a.btn-remove:active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

/* Hover fills only on devices that can hover — avoids sticky tap states on mobile/tablet */
@media (hover: hover) and (pointer: fine) {
  .icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }

  #search-toggle[aria-expanded="true"]:hover,
  #cart-drawer-open[aria-expanded="true"]:hover,
  .header-actions .icon-btn.is-active:hover {
    color: var(--orange);
    background: rgba(255, 255, 255, 0.1);
  }

  .btn-primary:hover,
  a.btn-primary:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
    color: #fff;
    filter: none;
  }

  .btn-navy:hover,
  a.btn-navy:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
  }

  .btn-primary:disabled:hover,
  .btn-primary[disabled]:hover,
  .btn-primary[aria-disabled="true"]:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
  }

  .btn-secondary:hover {
    background: var(--navy-soft);
    color: #fff;
  }

  .btn-outline:hover,
  a.btn-outline:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
  }

  .btn-remove:hover,
  a.btn-remove:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
  }

  .header-search-go:hover {
    background: var(--orange-dark);
  }

  .wa-float:hover {
    background: #1ebe57;
    color: #fff;
    animation: none !important;
    transform: translateY(-2px);
    box-shadow: none !important;
    filter: none !important;
  }

  .section-link-btn:hover,
  a.section-link-btn:hover {
    background: transparent;
    border-color: transparent;
    color: var(--orange-dark);
    gap: 0.5rem;
  }

  .section-link-btn:hover::after,
  a.section-link-btn:hover::after {
    transform: translateX(2px);
  }

  .pagination a:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
  }

  .gallery-thumbs button:hover {
    border-color: var(--orange);
  }

  .gallery-nav:hover {
    background: #fff;
    color: var(--orange-dark);
  }

  .cart-drawer-qty-btn:hover:not(:disabled) {
    background: var(--orange);
    color: #fff;
  }

  .catalog-filter-clear:hover {
    border-color: var(--orange);
    color: #fff;
    background: var(--orange);
    text-decoration: none;
  }

  .acc-orders-tab:hover {
    border-color: #c5d4e6;
    box-shadow: 0 6px 18px rgba(11, 58, 110, 0.06);
  }

  .announce-close:hover {
    opacity: 1;
  }

  .header-search-item:hover {
    background: #f4f7fb;
  }

  /* Hover = light tint only; solid orange + filled heart means "saved" */
  .product-wish-icon:hover {
    border-color: var(--orange);
    color: var(--orange-dark);
    background: #fff7ed;
  }

  .product-wish-icon.is-active:hover {
    border-color: var(--orange-dark);
    color: #fff;
    background: var(--orange-dark);
  }

  .acc-orders-pagination a:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
  }

  .mobile-nav-list a:hover,
  .mobile-nav-link:hover {
    background: #f8fafc;
    color: #475569;
  }

  .mobile-nav-help a:hover,
  .mobile-nav-social a:hover {
    color: var(--navy);
  }

  .social-link:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
  }

  .header-social a:hover {
    opacity: 1;
    transform: translateY(-1px);
  }

  /* Site-wide orange / highlight text — desktop hover only (no sticky tap color on touch) */
  a:hover {
    color: var(--orange-dark);
  }

  .product-card-title a:hover {
    color: var(--orange);
  }

  .header-info-right a:hover {
    color: var(--navy);
  }

  .main-nav-list > li > a:hover,
  .nav-drop-btn:hover {
    color: #fff;
  }

  .nav-dropdown a:hover,
  .nav-submenu a:hover,
  .has-submenu:hover > .nav-parent-link {
    background: #fff7ed;
    color: var(--orange);
  }

  .has-submenu:hover > .nav-parent-link .nav-submenu-caret {
    opacity: 1;
    color: var(--orange);
  }

  .header-dropdown a:hover {
    background: #fff7ed;
    color: var(--orange);
  }

  .nav-dropdown.header-dropdown a:hover,
  .nav-submenu.header-dropdown a:hover,
  .nav-dropdown.header-dropdown .has-submenu:hover > .nav-parent-link {
    background: #fff7ed;
    color: var(--orange);
  }

  .nav-dropdown.header-dropdown .has-submenu:hover > .nav-parent-link .nav-submenu-caret {
    opacity: 1;
    color: var(--orange);
  }

  .header-search-view-all:hover {
    background: #ffedd5;
    color: var(--orange-dark);
  }

  .catalog-cat-menu a:hover {
    background: rgba(11, 58, 110, 0.06);
    color: var(--navy);
  }

  .catalog-cat-menu a.is-active:hover {
    background: rgba(11, 58, 110, 0.06);
    color: var(--orange-dark);
  }

  .category-subnav-tile:hover {
    color: var(--orange);
    border-color: var(--orange);
    background: #fff;
  }

  .category-subnav-tile.is-active:hover {
    color: #fff;
    border-color: var(--orange-dark);
    background: var(--orange-dark);
  }

  .cart-line-name:hover {
    color: var(--accent, #f97316);
  }

  .product-checkout-btn:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
    filter: none;
  }

  .site-footer a:hover {
    color: var(--orange);
  }

  .auth-switch a:hover {
    color: var(--orange);
  }

  .auth-tabs a:not(.is-active):hover {
    color: var(--orange);
  }

  .auth-otp-change-email:hover {
    color: var(--orange);
  }

  .auth-otp-resend:hover:not(:disabled) {
    background: var(--navy-soft);
    color: #fff;
  }

  .auth-link:hover {
    color: var(--orange);
  }

  .contact-reach a:hover,
  .contact-social a:hover {
    color: var(--orange);
  }

  .about-inline-meta a:hover {
    color: var(--orange);
  }

  .about-cta-meta a:hover {
    color: #fff;
  }

  .wishlist-row-title:hover {
    color: var(--orange);
  }

  .orders-row-title:hover {
    color: var(--orange);
  }

  .cart-drawer-name:hover {
    color: var(--orange);
  }

  .cart-remove-btn:hover {
    color: #b91c1c;
    background: #fee2e2;
  }

  .co-back:hover {
    color: var(--navy-deep);
    gap: 0.5rem;
  }

  .co-back:hover::before {
    transform: translateX(-2px);
  }

  .co-signin:hover {
    color: #0b5a8c;
  }
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-sm {
  min-height: 2.15rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.btn-block {
  width: 100%;
}

/* ?? Hero ?? */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  min-height: 0;
  background: transparent;
  overflow: visible;
}

.hero-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 800;
  background: transparent;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: none;
  transition: opacity 0.7s ease;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

a.hero-slide {
  display: block;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

a.hero-slide:hover {
  color: inherit;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4.5rem 0 3.5rem;
  color: #fff;
  max-width: 620px;
  animation: riseIn 0.8s ease both;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  letter-spacing: -0.04em;
  margin: 0 0 0.35rem;
}

.hero-brand span {
  color: var(--orange);
}

.hero-title {
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: #e8eef7;
}

.hero-text {
  color: #b8c7db;
  max-width: 38ch;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-dots {
  position: static;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 0 0.15rem;
  background: transparent;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 10px;
  border: 0;
  background: #cbd5e1;
  cursor: pointer;
  padding: 0;
}

.hero-dots button.is-active {
  background: var(--orange);
  width: 28px;
}

@media (min-width: 901px) {
  .hero {
    display: block;
    height: calc(100dvh - var(--header-h, 6.75rem));
    max-height: calc(100dvh - var(--header-h, 6.75rem));
    background: transparent;
    overflow: hidden;
  }

  .hero-slides {
    position: absolute;
    inset: 0;
    flex: none;
    min-height: 0;
    aspect-ratio: auto;
    height: 100%;
    background: transparent;
  }

  .hero-slide {
    background-size: cover;
    background-position: center top;
  }

  .hero-dots {
    position: absolute;
    left: 50%;
    bottom: 1.15rem;
    transform: translateX(-50%);
    flex: none;
    padding: 0;
  }

  .hero-dots button {
    background: rgba(255, 255, 255, 0.45);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ?? Sections ?? */
.section {
  padding: 3.5rem 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.3;
  color: var(--ink);
}

.section-head p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.section-link {
  font-weight: 650;
  white-space: nowrap;
}

.section-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  align-self: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--orange);
  font-size: 0.95rem;
  font-weight: 700;
  transition: color 0.15s ease, gap 0.15s ease;
}

.section-link-btn::after {
  content: "→";
  font-weight: 700;
  line-height: 1;
  transition: transform 0.15s ease;
}

.section-more {
  display: none;
}

/* ?? Category grid ?? */
/* Homepage Shop by Category: up to 12 tiles → 6×2 rows (smaller tiles) */
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.home-category-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.category-tile {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  background: #eef3f9;
}

.category-tile:hover {
  color: #fff;
}

.category-tile.is-empty {
  color: var(--ink);
}

.category-tile.is-empty:hover {
  color: var(--ink);
}

.category-tile.is-empty span {
  color: var(--ink);
  text-shadow: none;
  background: linear-gradient(transparent, rgba(238, 243, 249, 0.95));
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 0.4s ease;
}

/* Zoom on hover — desktop only: needs a mouse AND a desktop-size screen */
@media (hover: hover) and (pointer: fine) and (min-width: 1025px) {
  .category-tile:hover img {
    transform: scale(1.06);
  }
}

.category-tile span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.1rem 0.85rem 0.85rem;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 2px 10px rgba(0, 0, 0, 0.35);
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.38) 38%,
    rgba(0, 0, 0, 0.12) 68%,
    transparent 100%
  );
}

/* ?? Product grid ?? */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

/* Match homepage featured card size to All Products grid beside category panel */
@media (min-width: 1101px) {
  .home-product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.product-card {
  background: var(--surface);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(7, 40, 72, 0.04);
}

.product-card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #eef3f9;
  overflow: hidden;
}

.product-card-media-wrap {
  position: relative;
  display: block;
  width: 100%;
}

/* Keep guest wishlist link positioned like the logged-in form */
a.product-card-wish-btn {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 3;
}

.product-card-wish {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 3;
  margin: 0;
}

.product-card-wish-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  line-height: 0;
  border: 1.5px solid rgba(255, 122, 0, 0.85);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--orange);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  box-shadow: 0 4px 12px rgba(7, 40, 72, 0.08);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.product-card-wish-btn.is-active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.product-card-wish-btn.is-active svg {
  fill: currentColor;
}

.product-card-wish-btn.is-loading,
.product-wish-icon.is-loading,
.btn.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.72;
}

.product-card-wish-btn.is-loading::after,
.product-wish-icon.is-loading::after,
.btn.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: ih-btn-spin 0.7s linear infinite;
}

/* Keep heart optically centered; SVG transform default origin is top-left */
.product-wish-icon > svg,
.product-card-wish-btn > svg {
  display: block;
  transform-origin: center center;
  transform-box: fill-box;
}

.product-wish-icon.is-wish-pulse > svg,
.product-card-wish-btn.is-wish-pulse > svg {
  animation: ih-wish-pop 0.35s ease both;
}

.btn.is-added {
  transform: scale(1.02);
}

.product-card.is-ajax-enter {
  animation: ih-card-enter 0.38s ease both;
}

/* Soft opacity-only reveal for live catalog swaps (no translateY jump). */
.product-card.is-ajax-fade {
  animation: ih-card-fade 0.2s ease both;
}

@keyframes ih-card-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .product-card.is-ajax-fade {
    animation: none;
  }
}

.wishlist-row.is-removing {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

@keyframes ih-btn-spin {
  to { transform: rotate(360deg); }
}

@keyframes ih-wish-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@keyframes ih-card-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.35s ease;
}

/* Zoom on hover — desktop only: needs a mouse AND a desktop-size screen
   (phones/tablets keep the photo still, even with a mouse or trackpad) */
@media (hover: hover) and (pointer: fine) and (min-width: 1025px) {
  .product-card:hover .product-card-media img {
    transform: scale(1.04);
  }
}

.product-card-oos {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
}

.product-card-media:has(.product-card-oos)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.product-card-body {
  padding: 1rem 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.product-card-cat {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #94a3b8;
  font-weight: 500;
}

.product-card-title {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
  min-height: 2.7em;
}

.product-card-title a {
  color: inherit;
  display: inline;
}

.product-card-price {
  font-weight: 600;
  color: var(--success);
  font-size: 1.05rem;
  margin-top: auto;
}

.product-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.stock-ok {
  color: var(--success);
  font-size: 0.82rem;
  font-weight: 600;
}

.stock-low {
  color: var(--danger);
  font-size: 0.82rem;
  font-weight: 600;
}

.stock-out {
  color: var(--danger);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ?? Page chrome ?? */
.page-hero {
  padding: 1.15rem 0 1rem;
}

.page-hero:has(.catalog-filter-bar),
.page-hero:has(.page-hero-title-row) {
  padding-bottom: 0;
  overflow: visible;
}

.page-hero h1 {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.3;
  color: var(--ink);
}

.page-hero-lead {
  margin: 0.55rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Catalog filter — icon next to title + overlay dropdown */
.page-hero-title-row {
  position: relative;
  z-index: 80;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: 0.15rem;
}

.page-hero-title-row h1 {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.catalog-filter-menu {
  position: relative;
  flex: 0 0 auto;
  z-index: 90;
  align-self: flex-start;
  margin-top: 0.1rem;
}

.catalog-filter-icon-btn {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--orange);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.catalog-filter-icon-btn:focus,
.catalog-filter-icon-btn:focus-visible,
.catalog-filter-icon-btn:active {
  outline: none;
  box-shadow: none;
}

.catalog-filter-menu.is-open .catalog-filter-icon-btn {
  position: relative;
  z-index: 102;
  border-color: var(--line);
  border-bottom-color: #fff;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  color: var(--orange-dark);
  background: #fff;
  box-shadow: none;
}

.catalog-filter-menu.is-open .catalog-filter-dropdown {
  border-top-right-radius: 0;
}

@media (hover: hover) and (pointer: fine) {
  .catalog-filter-menu:not(.is-open) .catalog-filter-icon-btn:hover {
    border-color: rgba(249, 115, 22, 0.45);
    color: var(--orange-dark);
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.12);
  }
}

.catalog-filter-menu.has-active .catalog-filter-icon-btn {
  border-color: rgba(249, 115, 22, 0.55);
  color: var(--orange-dark);
  background: #fff7ed;
}

.catalog-filter-menu:not(.is-open):not(.has-active) .catalog-filter-icon-btn {
  border-color: var(--line);
  color: var(--orange);
  background: #fff;
  box-shadow: none;
}

.catalog-filter-menu.is-open .catalog-filter-icon-btn,
.catalog-filter-menu.is-open.has-active .catalog-filter-icon-btn,
.catalog-filter-menu.is-open .catalog-filter-icon-btn:hover,
.catalog-filter-menu.is-open .catalog-filter-icon-btn:focus,
.catalog-filter-menu.is-open .catalog-filter-icon-btn:active {
  position: relative;
  z-index: 102;
  border-color: var(--line);
  border-bottom-color: #fff;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  color: var(--orange);
  background: #fff;
  box-shadow: none;
}

.catalog-filter-icon {
  display: block;
  width: 1.55rem;
  height: 1.55rem;
}

.catalog-filter-dropdown {
  position: absolute;
  top: calc(100% - 1px);
  right: 0;
  z-index: 100;
  box-sizing: border-box;
  width: 17.5rem;
  max-width: calc(100vw - 1.25rem);
  padding: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(7, 40, 72, 0.14);
  display: block;
  overflow: visible;
}

.catalog-filter-dropdown[hidden] {
  display: none !important;
}

.catalog-filter-dropdown-body {
  box-sizing: border-box;
  width: 100%;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.catalog-filter-dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
}

.catalog-filter-dropdown-title {
  margin: 0;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 700;
}

/* Catalog filter price block — self-contained, ignores global .price-range-box 7rem lock */
.catalog-filter-price-stack {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100%;
  min-width: 0;
  max-width: none;
  gap: 0.45rem;
  flex: none;
}

.catalog-filter-price-stack > .catalog-sidebar-filters-label {
  display: block;
  margin: 0 0 0.15rem;
  flex: none;
}

.catalog-filter-price-stack .catalog-price-range,
.catalog-filter-price-stack .price-range {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  gap: 0.6rem;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.catalog-filter-price-stack .price-range-slider {
  position: relative;
  flex: none;
  width: 100%;
  min-width: 0;
  height: 1.55rem;
  padding: 0;
  box-sizing: border-box;
}

.catalog-filter-price-stack .price-range-track,
.catalog-filter-price-stack .price-range-input {
  left: 0;
  right: 0;
  width: 100%;
}

.catalog-filter-price-stack .price-range-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.catalog-filter-price-stack .catalog-price-box,
.catalog-filter-price-stack .price-range-box.catalog-price-box,
.catalog-filter-price-stack label.price-range-box {
  display: flex !important;
  align-items: center;
  gap: 0.3rem;
  flex: 0 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 2.3rem !important;
  min-height: 2.3rem !important;
  padding: 0 0.55rem !important;
  border: 1px solid var(--line) !important;
  border-radius: 9px !important;
  background: #fff !important;
  box-sizing: border-box !important;
  overflow: hidden;
  cursor: text;
}

.catalog-filter-price-stack .price-range-box:first-child,
.catalog-filter-price-stack .price-range-box:last-child {
  border-left: 1px solid var(--line) !important;
  border-right: 1px solid var(--line) !important;
}

.catalog-filter-price-stack .price-range-currency {
  flex: 0 0 auto;
  font-size: 0.8rem;
}

.catalog-filter-price-stack .price-range-box input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  color: var(--navy);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
}

.catalog-filter-price-stack .price-range-box input::-webkit-outer-spin-button,
.catalog-filter-price-stack .price-range-box input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.catalog-filter-features {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
}

.catalog-filter-picks {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.catalog-filter-pick {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.4rem 0.35rem;
  border: 0;
  border-radius: calc(var(--radius) - 6px);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 550;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  transition: background 0.12s ease, color 0.12s ease;
  box-sizing: border-box;
}

.catalog-filter-pick:last-child {
  padding-bottom: 0.4rem;
}

.catalog-filter-pick::before {
  content: none;
  display: none;
}

.catalog-filter-pick:hover,
.catalog-filter-pick:focus,
.catalog-filter-pick:focus-visible,
.catalog-filter-pick:active {
  color: var(--navy);
  background: rgba(11, 58, 110, 0.06);
  border: 0;
  box-shadow: none;
}

.catalog-filter-pick.is-active,
.catalog-filter-pick.is-active:focus,
.catalog-filter-pick.is-active:focus-visible,
.catalog-filter-pick.is-active:active {
  color: var(--orange-dark);
  background: transparent;
  border: 0;
  box-shadow: none;
  font-weight: 700;
}

.catalog-filter-pick.is-active:hover {
  color: var(--orange-dark);
  background: rgba(11, 58, 110, 0.06);
  border: 0;
  box-shadow: none;
}

.catalog-filter-pick.is-active::before {
  content: none;
  display: none;
}

.catalog-filter-dropdown .catalog-filter-clear {
  margin-left: 0;
  min-height: 1.85rem;
  height: 1.85rem;
  padding: 0.25rem 0.65rem;
}

.catalog-filter-bar {
  display: none;
}

.catalog-filter-field {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  min-width: 0;
}

.catalog-filter-sub-wrap {
  display: contents;
}

.catalog-filter-sub-wrap:empty {
  display: none;
}

.catalog-cat-dropdown {
  position: relative;
  z-index: 40;
  flex: 0 0 10.25rem;
  width: 10.25rem;
  min-width: 10.25rem;
  max-width: 10.25rem;
}

.catalog-filter-label {
  display: block;
  flex-shrink: 0;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  line-height: 2.4rem;
  white-space: nowrap;
}

.catalog-filter-select {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 2.4rem;
  min-height: 2.4rem;
  padding: 0.4rem 1.85rem 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%230B3A6E' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
  background-size: 0.7rem;
  color: var(--navy);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.3;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: border-color 0.15s ease;
}

button.catalog-cat-trigger {
  display: inline-flex;
  align-items: center;
  width: 100%;
  max-width: none;
  min-width: 0;
}

.catalog-cat-trigger-text {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-filter-select:hover,
.catalog-filter-select:focus,
.catalog-filter-select:focus-visible,
.catalog-cat-dropdown.is-open .catalog-cat-trigger {
  outline: none;
  border-color: var(--navy);
}

.catalog-cat-menu.header-dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 50;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  max-height: min(22rem, 60vh);
  margin: 0;
  list-style: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #c5ced9 transparent;
}

.catalog-cat-menu::-webkit-scrollbar {
  width: 8px;
}

.catalog-cat-menu::-webkit-scrollbar-track {
  background: transparent;
  margin-block: 8px;
}

.catalog-cat-menu::-webkit-scrollbar-thumb {
  background: #c5ced9;
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.catalog-cat-menu[hidden] {
  display: none;
}

.catalog-cat-menu a {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  overflow: hidden;
  text-align: left;
}

.catalog-cat-menu a .catalog-panel-cat-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-cat-menu a.is-active {
  color: var(--orange);
  background: transparent;
}

.catalog-filter-price {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  flex: 1 1 auto;
  min-width: 14rem;
  max-width: none;
}

.catalog-filters-panel-actions {
  display: none;
}

.catalog-filters-apply {
  display: none;
}

.price-range {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-width: 0;
  height: 2.4rem;
}

.price-range-slider {
  position: relative;
  flex: 1 1 auto;
  min-width: 5.5rem;
  height: 1.55rem;
  display: flex;
  align-items: center;
}

.price-range-track {
  position: absolute;
  left: 0;
  right: 0;
  height: 0.35rem;
  border-radius: 999px;
  background: #e5e7eb;
  pointer-events: none;
}

.price-range-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: inherit;
  background: var(--orange);
}

.price-range-input {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.55rem;
  margin: 0;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.price-range-input::-webkit-slider-runnable-track {
  height: 0.35rem;
  background: transparent;
  border: none;
}

.price-range-input::-moz-range-track {
  height: 0.35rem;
  background: transparent;
  border: none;
}

.price-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: -0.35rem;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 1px 4px rgba(249, 115, 22, 0.32);
  cursor: pointer;
  pointer-events: auto;
}

.price-range-input::-moz-range-thumb {
  width: 1.05rem;
  height: 1.05rem;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 1px 4px rgba(249, 115, 22, 0.32);
  cursor: pointer;
  pointer-events: auto;
}

.price-range-input-min {
  z-index: 2;
}

.price-range-input-max {
  z-index: 3;
}

.price-range-box {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex: 0 0 7rem;
  width: 7rem;
  min-width: 7rem;
  max-width: 7rem;
  height: 2.4rem;
  min-height: 2.4rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: text;
}

.price-range-currency {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 650;
}

.price-range-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  outline: none;
  -moz-appearance: textfield;
}

.price-range-box input::-webkit-outer-spin-button,
.price-range-box input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.catalog-filter-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: auto;
  height: 2.4rem;
  min-height: 2.4rem;
  padding: 0.4rem 1rem;
  border: 1.5px solid var(--orange);
  border-radius: 8px;
  background: #fff;
  color: var(--orange-dark);
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.catalog-filter-clear.is-disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

/* All Products — left category panel + main catalog */
.catalog-shell {
  --catalog-side-w: 16.5rem;
  width: var(--page-shell);
  margin-inline: auto;
  max-width: 100%;
  display: grid;
  grid-template-columns: var(--catalog-side-w) minmax(0, 1fr);
  gap: 1.25rem 1.65rem;
  align-items: start;
  padding-bottom: 3rem;
}

.catalog-main {
  min-width: 0;
}

.catalog-page-hero {
  padding-top: 1.15rem;
}

/* Left category panel — in document flow (not sticky) so nested lists grow
   the page downward instead of pulling Categories up. No panel scrollbar. */
.catalog-cat-panel {
  position: relative;
  top: auto;
  z-index: 80;
  align-self: start;
  overflow: visible;
}

.catalog-cat-panel-inner {
  position: relative;
  box-sizing: border-box;
  padding: 1rem 0.1rem 0.35rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  max-height: none;
  overflow: visible;
  overflow-anchor: none;
}

/* Open parent dropdown: one menu scrollbar only (don't clip under panel scroll) */
.catalog-cat-panel:has(.catalog-cat-dropdown.is-open) {
  overflow: visible;
  z-index: 120;
}

.catalog-cat-panel-inner:has(.catalog-cat-dropdown.is-open) {
  overflow: visible;
  max-height: none;
}

.catalog-cat-panel-mobile-head {
  display: none;
}

.catalog-cat-panel-cats {
  display: block;
  min-width: 0;
  max-width: 100%;
}

.catalog-sidebar-filters {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.95rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.catalog-sidebar-filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.catalog-sidebar-filters-title {
  margin: 0;
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.catalog-sidebar-filters-label {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.catalog-sidebar-filters .catalog-filter-clear {
  min-height: 1.75rem;
  height: 1.75rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.8rem;
}

.catalog-drawer-backdrop {
  display: none;
}

.catalog-cat-panel-title {
  margin: 0 0 0.55rem;
  padding: 0 0.1rem;
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.catalog-cat-panel-empty {
  margin: 0.45rem 0.1rem 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.catalog-panel-parent {
  margin: 0 0 0.35rem;
  min-width: 0;
  max-width: 100%;
}

.catalog-cat-panel .catalog-panel-parent-dropdown {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  z-index: 130;
}

.catalog-cat-panel .catalog-panel-parent-dropdown .catalog-cat-menu {
  z-index: 140;
  max-height: min(20rem, 50vh);
  box-shadow: 0 14px 32px rgba(7, 40, 72, 0.14);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0.35rem;
}

.catalog-panel-cascade {
  position: relative;
  margin: 0.25rem 0 0;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  overflow-anchor: none;
}

.catalog-panel-sublist {
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  max-width: 100%;
  overflow-anchor: none;
}

.catalog-panel-sublist-root {
  margin-top: 0.15rem;
}

.catalog-panel-subitem {
  position: relative;
  margin: 0;
  min-width: 0;
  max-width: 100%;
  overflow-anchor: none;
}

.catalog-panel-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.42rem 0.35rem;
  border-radius: calc(var(--radius) - 6px);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 550;
  line-height: 1.3;
  text-decoration: none;
  overflow: hidden;
  transition: background 0.12s ease, color 0.12s ease;
}

.catalog-panel-cat-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-panel-cat-link.is-branch-active {
  color: var(--orange-dark);
  font-weight: 650;
  background: transparent;
}

.catalog-panel-cat-link.is-active {
  color: var(--orange-dark);
  font-weight: 700;
  background: transparent;
}

@media (hover: hover) and (pointer: fine) and (min-width: 961px) {
  .catalog-panel-cat-link:hover {
    color: var(--navy);
    background: rgba(11, 58, 110, 0.06);
  }

  .catalog-panel-cat-link.is-active:hover,
  .catalog-panel-cat-link.is-branch-active:hover {
    color: var(--orange-dark);
    background: rgba(11, 58, 110, 0.06);
  }

  .catalog-panel-subitem.has-children:hover > .catalog-panel-cat-link::after {
    border-top-color: var(--navy);
  }

  .catalog-panel-subitem.has-children:hover > .catalog-panel-cat-link {
    color: var(--navy);
    background: rgba(11, 58, 110, 0.06);
  }

  .catalog-panel-subitem.has-children:hover > .catalog-panel-cat-link.is-active,
  .catalog-panel-subitem.has-children:hover > .catalog-panel-cat-link.is-branch-active {
    color: var(--orange-dark);
  }
}

.catalog-panel-sublist-root > .catalog-panel-subitem > .catalog-panel-cat-link {
  min-height: 2.15rem;
}

.catalog-panel-subitem.has-children > .catalog-panel-cat-link::after {
  content: "";
  flex: 0 0 auto;
  margin-left: auto;
  width: 0;
  height: 0;
  border-left: 0.28rem solid transparent;
  border-right: 0.28rem solid transparent;
  border-top: 0.34rem solid var(--muted);
}

.catalog-panel-subitem.has-children > .catalog-panel-cat-link.is-active::after,
.catalog-panel-subitem.has-children > .catalog-panel-cat-link.is-branch-active::after {
  border-top-color: var(--orange-dark);
}

/* Nested sub-subcategories: under parent in the left panel, only on hover
   (not focus-within — focusing links was scrolling the panel and jumping the page) */
.catalog-panel-sublist-nested {
  display: none;
  margin: 0.05rem 0 0.2rem;
  padding: 0.1rem 0 0.1rem 0.7rem;
  border-left: 2px solid rgba(11, 58, 110, 0.12);
  overflow-anchor: none;
}

.catalog-panel-subitem.has-children:hover > .catalog-panel-sublist-nested,
.catalog-panel-subitem.has-children.is-branch-active > .catalog-panel-sublist-nested,
.catalog-panel-subitem.has-children.is-active:not(.is-collapsed) > .catalog-panel-sublist-nested,
.catalog-panel-subitem.has-children.is-open:not(.is-collapsed) > .catalog-panel-sublist-nested {
  display: block;
}

@media (hover: none) {
  /* Touch: no sticky :hover — open via active selection, branch, or tap toggle */
  .catalog-panel-subitem.has-children:hover > .catalog-panel-sublist-nested {
    display: none;
  }
  .catalog-panel-subitem.has-children.is-branch-active > .catalog-panel-sublist-nested,
  .catalog-panel-subitem.has-children.is-active:not(.is-collapsed) > .catalog-panel-sublist-nested,
  .catalog-panel-subitem.has-children.is-open:not(.is-collapsed) > .catalog-panel-sublist-nested {
    display: block;
  }
}

/* Mobile / tablet drawer: never rely on hover to reveal nested cats */
@media (max-width: 960px) {
  .catalog-panel-subitem.has-children:hover > .catalog-panel-sublist-nested {
    display: none;
  }
  .catalog-panel-subitem.has-children.is-branch-active > .catalog-panel-sublist-nested,
  .catalog-panel-subitem.has-children.is-active:not(.is-collapsed) > .catalog-panel-sublist-nested,
  .catalog-panel-subitem.has-children.is-open:not(.is-collapsed) > .catalog-panel-sublist-nested {
    display: block;
  }

  .catalog-panel-subitem.has-children.is-collapsed > .catalog-panel-sublist-nested {
    display: none !important;
  }

  /* Kill sticky :hover after tap / swipe (touch leaves hover paint on rows) */
  .catalog-panel-cat-link:hover,
  .catalog-panel-cat-link:active,
  .catalog-panel-cat-link:focus,
  .catalog-panel-cat-link:focus-visible,
  .catalog-panel-subitem.has-children:hover > .catalog-panel-cat-link,
  .catalog-panel-subitem.has-children:hover > .catalog-panel-cat-link.is-active,
  .catalog-panel-subitem.has-children:hover > .catalog-panel-cat-link.is-branch-active,
  .catalog-cat-menu a:hover,
  .catalog-cat-menu a:active,
  .catalog-filter-pick:hover,
  .catalog-filter-pick:active {
    background: transparent !important;
  }

  .catalog-panel-cat-link:hover,
  .catalog-panel-cat-link:active {
    color: var(--ink) !important;
  }

  .catalog-panel-cat-link.is-active,
  .catalog-panel-cat-link.is-active:hover,
  .catalog-panel-cat-link.is-active:active,
  .catalog-panel-cat-link.is-branch-active,
  .catalog-panel-cat-link.is-branch-active:hover,
  .catalog-panel-cat-link.is-branch-active:active,
  .catalog-panel-subitem.has-children:hover > .catalog-panel-cat-link.is-active,
  .catalog-panel-subitem.has-children:hover > .catalog-panel-cat-link.is-branch-active,
  .catalog-cat-menu a.is-active,
  .catalog-cat-menu a.is-active:hover {
    color: var(--orange-dark) !important;
    background: transparent !important;
  }

  .catalog-panel-subitem.has-children:hover > .catalog-panel-cat-link::after {
    border-top-color: var(--muted);
  }

  .catalog-panel-subitem.has-children > .catalog-panel-cat-link.is-active::after,
  .catalog-panel-subitem.has-children > .catalog-panel-cat-link.is-branch-active::after {
    border-top-color: var(--orange-dark);
  }
}

@media (hover: none) {
  .catalog-panel-cat-link:hover,
  .catalog-panel-cat-link:focus,
  .catalog-panel-cat-link:focus-visible,
  .catalog-panel-subitem.has-children:hover > .catalog-panel-cat-link {
    background: transparent;
  }

  .catalog-panel-cat-link:hover {
    color: var(--ink);
  }

  .catalog-panel-cat-link.is-active:hover,
  .catalog-panel-cat-link.is-branch-active:hover {
    color: var(--orange-dark);
    background: transparent;
  }
}

.catalog-panel-sublist-nested .catalog-panel-cat-link {
  font-size: 0.875rem;
  font-weight: 550;
  padding: 0.42rem 0.35rem;
  min-height: 2.15rem;
}

/* Keep shared tree-link styles for any leftover markup */
.catalog-cat-tree-link,
.catalog-cat-flyout-all {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 550;
  line-height: 1.3;
  text-decoration: none;
}

.catalog-cat-tree-link.is-active,
.catalog-cat-flyout-all.is-active {
  color: var(--orange-dark);
  font-weight: 700;
}

.catalog-cat-tree {
  list-style: none;
  margin: 0;
  padding: 0;
}

.catalog-cat-tree-item {
  position: relative;
  margin: 0;
}

.catalog-cat-tree-row {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  min-height: 2rem;
  padding: 0 0.15rem 0 0.1rem;
  border-radius: calc(var(--radius) - 6px);
  transition: background 0.12s ease;
}

.catalog-cat-tree-row:hover {
  background: rgba(11, 58, 110, 0.05);
}

.catalog-cat-tree-link {
  flex: 1 1 auto;
  padding: 0.4rem 0.3rem;
  overflow-wrap: anywhere;
}

.catalog-cat-tree-toggle {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.catalog-cat-tree-toggle:hover {
  color: var(--navy);
  background: rgba(11, 58, 110, 0.06);
}

.catalog-cat-tree-toggle span {
  display: block;
  width: 0;
  height: 0;
  border-top: 0.24rem solid transparent;
  border-bottom: 0.24rem solid transparent;
  border-left: 0.32rem solid currentColor;
  transform-origin: 40% 50%;
  transition: transform 0.15s ease;
}

.catalog-cat-tree-item.is-open > .catalog-cat-tree-row > .catalog-cat-tree-toggle span {
  transform: rotate(90deg);
}

.catalog-cat-flyout-head {
  margin: 0 0 0.15rem;
  padding: 0 0 0.3rem;
  border-bottom: 1px solid var(--line);
}

.catalog-cat-flyout-all {
  padding: 0.38rem 0.45rem;
  border-radius: calc(var(--radius) - 6px);
  font-weight: 650;
  color: var(--navy);
}

.catalog-cat-flyout-all:hover {
  background: rgba(11, 58, 110, 0.05);
}

.catalog-cat-tree-children {
  margin: 0;
}

.catalog-cat-tree-children[hidden] {
  display: none !important;
}

/*
 * Desktop:
 * Parent hover → subcategory panel opens straight beside it (square box)
 * Deeper levels expand BELOW that subcategory on hover only
 */
@media (min-width: 961px) {
  /* Parent → subcategory flyout (straight next to panel) */
  .catalog-cat-tree-root > .catalog-cat-tree-item.has-children > .catalog-cat-tree-children,
  .catalog-cat-tree-root > .catalog-cat-tree-item.has-children > .catalog-cat-tree-children[hidden] {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 0;
    left: 100%;
    z-index: 70;
    box-sizing: border-box;
    width: max-content;
    min-width: 10.5rem;
    max-width: min(92vw, 42rem);
    margin: 0;
    padding: 0.35rem 0.45rem;
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) - 4px);
    background: #fff;
    box-shadow: 4px 6px 16px rgba(7, 40, 72, 0.1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: visible;
    transition: opacity 0.1s ease, visibility 0.1s ease;
  }

  /* "All {Parent}" + direct subcategories on one straight row */
  .catalog-cat-tree-root > .catalog-cat-tree-item.has-children > .catalog-cat-tree-children > .catalog-cat-flyout-head {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    border-bottom: 0;
  }

  .catalog-cat-tree-root > .catalog-cat-tree-item.has-children > .catalog-cat-tree-children > .catalog-cat-flyout-head .catalog-cat-flyout-all {
    width: auto;
    white-space: nowrap;
  }

  .catalog-cat-tree-root > .catalog-cat-tree-item.has-children > .catalog-cat-tree-children > .catalog-cat-tree[data-depth="1"] {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    flex: 0 1 auto;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    padding: 0;
  }

  .catalog-cat-tree-root > .catalog-cat-tree-item.has-children > .catalog-cat-tree-children > .catalog-cat-tree[data-depth="1"] > .catalog-cat-tree-item {
    flex: 0 0 auto;
    position: relative;
  }

  .catalog-cat-tree-root > .catalog-cat-tree-item.has-children > .catalog-cat-tree-children > .catalog-cat-tree[data-depth="1"] > .catalog-cat-tree-item > .catalog-cat-tree-row {
    min-height: 1.85rem;
  }

  .catalog-cat-tree-root > .catalog-cat-tree-item.has-children > .catalog-cat-tree-children > .catalog-cat-tree[data-depth="1"] .catalog-cat-tree-link {
    width: auto;
    white-space: nowrap;
  }

  /* Hover bridge — no gap flicker */
  .catalog-cat-tree-root > .catalog-cat-tree-item.has-children > .catalog-cat-tree-children::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -12px;
    width: 12px;
  }

  .catalog-cat-tree-root > .catalog-cat-tree-item.has-children:hover > .catalog-cat-tree-children,
  .catalog-cat-tree-root > .catalog-cat-tree-item.has-children:hover > .catalog-cat-tree-children[hidden],
  .catalog-cat-tree-root > .catalog-cat-tree-item.has-children:focus-within > .catalog-cat-tree-children,
  .catalog-cat-tree-root > .catalog-cat-tree-item.has-children:focus-within > .catalog-cat-tree-children[hidden],
  .catalog-cat-tree-root > .catalog-cat-tree-item.has-children.is-flyout-open > .catalog-cat-tree-children,
  .catalog-cat-tree-root > .catalog-cat-tree-item.has-children.is-flyout-open > .catalog-cat-tree-children[hidden] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .catalog-cat-tree-root > .catalog-cat-tree-item.has-children:hover > .catalog-cat-tree-row,
  .catalog-cat-tree-root > .catalog-cat-tree-item.has-children:focus-within > .catalog-cat-tree-row {
    background: rgba(11, 58, 110, 0.06);
  }

  .catalog-cat-tree-root > .catalog-cat-tree-item.has-children:hover > .catalog-cat-tree-row > .catalog-cat-tree-toggle,
  .catalog-cat-tree-root > .catalog-cat-tree-item.has-children:focus-within > .catalog-cat-tree-row > .catalog-cat-tree-toggle {
    color: var(--navy);
  }

  .catalog-cat-tree-root > .catalog-cat-tree-item.has-children > .catalog-cat-tree-children .catalog-cat-tree-link,
  .catalog-cat-tree-root > .catalog-cat-tree-item.has-children > .catalog-cat-tree-children .catalog-cat-flyout-all {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
  }

  /* Deeper levels — ONLY on hover/focus, open BELOW (ignore stuck .is-open from page state) */
  .catalog-cat-tree-children .catalog-cat-tree-item.has-children > .catalog-cat-tree-children,
  .catalog-cat-tree-children .catalog-cat-tree-item.has-children > .catalog-cat-tree-children[hidden] {
    display: none !important;
    position: static !important;
    inset: auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0;
    padding: 0 0 0.15rem 0.75rem;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    overflow: visible !important;
    transform: none !important;
  }

  .catalog-cat-tree-children .catalog-cat-tree-item.has-children:hover > .catalog-cat-tree-children,
  .catalog-cat-tree-children .catalog-cat-tree-item.has-children:hover > .catalog-cat-tree-children[hidden],
  .catalog-cat-tree-children .catalog-cat-tree-item.has-children:focus-within > .catalog-cat-tree-children,
  .catalog-cat-tree-children .catalog-cat-tree-item.has-children:focus-within > .catalog-cat-tree-children[hidden] {
    display: block !important;
  }

  .catalog-cat-tree-children .catalog-cat-tree-item.has-children:hover > .catalog-cat-tree-row,
  .catalog-cat-tree-children .catalog-cat-tree-item.has-children:focus-within > .catalog-cat-tree-row {
    background: rgba(11, 58, 110, 0.05);
  }

  .catalog-cat-tree-children .catalog-cat-tree-item.has-children:hover > .catalog-cat-tree-row > .catalog-cat-tree-toggle span,
  .catalog-cat-tree-children .catalog-cat-tree-item.has-children:focus-within > .catalog-cat-tree-row > .catalog-cat-tree-toggle span {
    transform: rotate(90deg);
  }

  /* Root caret always points right on desktop */
  .catalog-cat-tree-root > .catalog-cat-tree-item > .catalog-cat-tree-row > .catalog-cat-tree-toggle span,
  .catalog-cat-tree-root > .catalog-cat-tree-item.is-open > .catalog-cat-tree-row > .catalog-cat-tree-toggle span {
    transform: none;
  }

  .catalog-cat-tree-root > .catalog-cat-tree-item > .catalog-cat-tree-row > .catalog-cat-tree-toggle {
    pointer-events: none;
  }

  .catalog-cat-tree-children .catalog-cat-tree-toggle {
    pointer-events: none; /* hover opens nested; no click needed on desktop */
  }

  .catalog-cat-tree-children .catalog-cat-tree-row {
    min-height: 1.7rem;
  }

  .catalog-cat-tree-children .catalog-cat-tree-link {
    font-size: 0.82rem;
    padding: 0.28rem 0.25rem;
  }

  /* Deeper nest under a flyout row item — drops BELOW that item */
  .catalog-cat-tree-root > .catalog-cat-tree-item.has-children > .catalog-cat-tree-children > .catalog-cat-tree[data-depth="1"] > .catalog-cat-tree-item.has-children > .catalog-cat-tree-children,
  .catalog-cat-tree-root > .catalog-cat-tree-item.has-children > .catalog-cat-tree-children > .catalog-cat-tree[data-depth="1"] > .catalog-cat-tree-item.has-children > .catalog-cat-tree-children[hidden] {
    display: none !important;
    position: absolute !important;
    top: calc(100% - 0.05rem) !important;
    left: 0 !important;
    z-index: 75 !important;
    box-sizing: border-box !important;
    width: max-content !important;
    min-width: 9.5rem !important;
    max-width: min(88vw, 18rem) !important;
    margin: 0 !important;
    padding: 0.3rem 0.35rem !important;
    border: 1px solid var(--line) !important;
    border-radius: calc(var(--radius) - 4px) !important;
    background: #fff !important;
    box-shadow: 4px 8px 18px rgba(7, 40, 72, 0.12) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    overflow: visible !important;
    transform: none !important;
  }

  .catalog-cat-tree-root > .catalog-cat-tree-item.has-children > .catalog-cat-tree-children > .catalog-cat-tree[data-depth="1"] > .catalog-cat-tree-item.has-children:hover > .catalog-cat-tree-children,
  .catalog-cat-tree-root > .catalog-cat-tree-item.has-children > .catalog-cat-tree-children > .catalog-cat-tree[data-depth="1"] > .catalog-cat-tree-item.has-children:hover > .catalog-cat-tree-children[hidden],
  .catalog-cat-tree-root > .catalog-cat-tree-item.has-children > .catalog-cat-tree-children > .catalog-cat-tree[data-depth="1"] > .catalog-cat-tree-item.has-children:focus-within > .catalog-cat-tree-children,
  .catalog-cat-tree-root > .catalog-cat-tree-item.has-children > .catalog-cat-tree-children > .catalog-cat-tree[data-depth="1"] > .catalog-cat-tree-item.has-children:focus-within > .catalog-cat-tree-children[hidden] {
    display: block !important;
  }

  .catalog-cat-tree-root > .catalog-cat-tree-item.has-children > .catalog-cat-tree-children > .catalog-cat-tree[data-depth="1"] > .catalog-cat-tree-item.has-children > .catalog-cat-tree-children .catalog-cat-tree {
    display: block;
  }

  .catalog-cat-tree-root > .catalog-cat-tree-item.has-children > .catalog-cat-tree-children > .catalog-cat-tree[data-depth="1"] > .catalog-cat-tree-item.has-children > .catalog-cat-tree-children .catalog-cat-tree-item {
    position: relative;
  }
}

.category-products.has-filter-divider {
  margin-top: 1.15rem;
  padding-top: 0;
}

/* Tablet / mobile: category+filters become left drawer opened by filter button */
@media (max-width: 960px) {
  .catalog-shell {
    width: var(--page-shell);
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  /* Title full width on top; filter button on its own row below */
  .catalog-page-hero .page-hero-title-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .catalog-page-hero .page-hero-title-row h1 {
    flex: none;
    width: 100%;
  }

  .catalog-page-hero .catalog-filter-menu {
    align-self: flex-end;
    margin-top: 0;
  }

  /* Keep filter icon on mobile/tablet only */
  .catalog-filter-menu {
    display: block;
  }

  .catalog-drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1900;
    background: rgba(7, 40, 72, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .catalog-drawer-backdrop.is-open,
  .catalog-drawer-backdrop:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
  }

  .catalog-drawer-backdrop[hidden] {
    display: none !important;
  }

  /* Cart-style full-height left drawer */
  .catalog-cat-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    bottom: 0;
    z-index: 2000;
    width: min(100%, 22.5rem);
    max-width: calc(100vw - 2.5rem);
    height: 100%;
    height: 100dvh;
    max-height: 100%;
    max-height: 100dvh;
    min-height: 100%;
    min-height: 100dvh;
    margin: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: 12px 0 40px rgba(7, 40, 72, 0.18);
    transform: translateX(-105%);
    transition: transform 0.28s ease;
    pointer-events: none;
    overflow: hidden;
    visibility: hidden;
    display: flex;
    flex-direction: column;
  }

  .catalog-cat-panel.is-drawer-open {
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
    height: 100%;
    height: 100dvh;
    min-height: 100%;
    min-height: 100dvh;
  }

  /* Keep drawer above blue backdrop even when category dropdown is open */
  .catalog-cat-panel.is-drawer-open {
    z-index: 2000;
  }

  .catalog-cat-panel.is-drawer-open:has(.catalog-cat-dropdown.is-open) {
    z-index: 2000;
    overflow: visible;
  }

  .catalog-cat-panel-inner {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    max-height: none;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    overflow-anchor: none;
    background: #fff;
    box-sizing: border-box;
  }

  .catalog-cat-panel-inner:has(.catalog-cat-dropdown.is-open) {
    overflow: hidden;
    max-height: none;
  }

  /* Middle zone scrolls: Categories list between header and Filters */
  .catalog-cat-panel-cats {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overflow-anchor: none;
    padding: 1rem 1rem 0.75rem;
  }

  .catalog-cat-panel-cats .catalog-cat-panel-title {
    margin: 0 0 0.65rem;
  }

  .catalog-cat-panel-cats:has(.catalog-cat-dropdown.is-open) {
    /* Keep scroll containment — overflow:visible was letting cascade bleed over Filters */
    overflow-x: hidden;
    overflow-y: auto;
  }

  .catalog-cat-panel .catalog-panel-parent-dropdown {
    position: relative;
    z-index: 40;
  }

  .catalog-cat-panel .catalog-panel-parent-dropdown.is-open {
    z-index: 60;
  }

  .catalog-cat-panel .catalog-panel-parent-dropdown .catalog-cat-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.25rem);
    z-index: 70;
    max-height: min(14rem, 40vh);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    box-shadow: 0 14px 32px rgba(7, 40, 72, 0.18);
  }

  .catalog-cat-panel-cats .catalog-panel-cascade {
    position: relative;
    z-index: 1;
  }

  .catalog-sidebar-filters {
    position: relative;
    z-index: 20;
    flex: 0 0 auto;
    margin-top: 0;
    margin-inline: 0;
    padding: 0.75rem 1rem 1.1rem;
    gap: 0.5rem;
    border-top: 1px solid var(--line);
    background: #fff;
  }

  .catalog-sidebar-filters .catalog-sidebar-filters-label {
    margin-bottom: 0.3rem;
  }

  .catalog-sidebar-filters .catalog-filter-price-stack .price-range {
    gap: 0.4rem;
  }

  .catalog-sidebar-filters .catalog-filter-price-stack .price-range-slider {
    height: 2rem;
    touch-action: none;
    cursor: pointer;
  }

  .catalog-sidebar-filters .catalog-filter-price-stack .price-range-slider.is-dragging {
    cursor: grabbing;
  }

  /* Native inputs are visual only on touch — JS pointer drag owns the interaction */
  .catalog-sidebar-filters .catalog-filter-price-stack .price-range-input {
    pointer-events: none;
    touch-action: none;
    height: 2rem;
  }

  .catalog-sidebar-filters .catalog-filter-price-stack .price-range-input::-webkit-slider-thumb {
    width: 1.35rem;
    height: 1.35rem;
    margin-top: -0.5rem;
    pointer-events: none;
  }

  .catalog-sidebar-filters .catalog-filter-price-stack .price-range-input::-moz-range-thumb {
    width: 1.35rem;
    height: 1.35rem;
    pointer-events: none;
  }

  .catalog-sidebar-filters .catalog-filter-price-stack .price-range-box,
  .catalog-sidebar-filters .catalog-filter-price-stack label.price-range-box {
    height: 2rem !important;
    min-height: 2rem !important;
    padding: 0 0.45rem !important;
  }

  .catalog-sidebar-filters .catalog-filter-price-stack .price-range-box input {
    touch-action: manipulation;
    font-size: 16px; /* prevent iOS zoom on focus */
  }

  .catalog-sidebar-filters .catalog-filter-pick {
    padding: 0.28rem 0.25rem;
  }

  .catalog-cat-panel-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    position: relative;
    z-index: 5;
    flex: 0 0 auto;
    margin: 0;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--line);
    background: #fff;
  }

  .catalog-cat-panel-mobile-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
  }

  .catalog-cat-panel-close {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }

  .catalog-cat-panel-close:hover {
    background: #f1f5f9;
    color: var(--orange-dark);
  }

  .catalog-cat-panel-title {
    flex: 0 0 auto;
    margin: 0 0 0.55rem;
    padding: 0 0.1rem;
  }

  .catalog-cat-panel .catalog-panel-parent-dropdown .catalog-cat-menu {
    z-index: 2100;
  }

  .catalog-page-hero {
    padding-top: 0.85rem;
  }
}

@media (min-width: 961px) {
  /* Desktop: filters live under categories; hide hero filter button */
  .catalog-filter-menu {
    display: none !important;
  }
}

@media (max-width: 720px) {
  .catalog-shell {
    width: var(--page-shell);
    gap: 0.75rem;
  }

}

/* Live catalog skeleton — mirrors real .product-card structure; shine only */
.catalog-skeleton-grid {
  pointer-events: none;
}

.catalog-skeleton-card {
  pointer-events: none;
}

.catalog-skeleton-shine,
.catalog-skeleton-line,
.catalog-skeleton-wish {
  background: linear-gradient(90deg, #eef2f7 0%, #f7f9fc 45%, #eef2f7 90%);
  background-size: 200% 100%;
  animation: catalog-skeleton-shine 1.1s ease-in-out infinite;
}

/* Wishlist circle uses real .product-card-wish-btn size/position */
.catalog-skeleton-wish {
  border-color: transparent;
  box-shadow: none;
  color: transparent;
  cursor: default;
}

.catalog-skeleton-line {
  display: block;
  border-radius: 999px;
  height: 0.72em;
  max-width: 100%;
}

.catalog-skeleton-line-cat {
  width: 38%;
  height: 0.65em;
}

/* Match real text line-boxes so body height equals loaded cards */
.catalog-skeleton-card .product-card-cat {
  min-height: 1.55em;
  display: flex;
  align-items: center;
}

.catalog-skeleton-card .product-card-price {
  min-height: 1.55em;
  display: flex;
  align-items: center;
}

/* Keep .product-card-title min-height; stack bars instead of -webkit-box clamp */
.catalog-skeleton-card .product-card-title.catalog-skeleton-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4em;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: hidden;
}

.catalog-skeleton-line-title {
  width: 94%;
  height: 0.85em;
}

.catalog-skeleton-line-title-2 {
  width: 64%;
  height: 0.85em;
}

.catalog-skeleton-line-price {
  width: 44%;
  height: 0.95em;
}

.catalog-skeleton-line-stock {
  width: 4.75rem;
  height: 0.82em;
  flex: 0 0 auto;
}

/* Match .btn.btn-sm footprint in .product-card-meta */
.catalog-skeleton-line-btn {
  width: 4.05rem;
  height: 2.15rem;
  min-height: 2.15rem;
  border-radius: 10px;
  flex: 0 0 auto;
}

@keyframes catalog-skeleton-shine {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-skeleton-shine,
  .catalog-skeleton-line,
  .catalog-skeleton-wish {
    animation: none;
  }
}

@media (max-width: 720px) {
  .catalog-skeleton-line-btn {
    height: 2rem;
    min-height: 2rem;
    width: 3.85rem;
  }
}

[data-catalog-results][aria-busy="true"] {
  min-height: 12rem;
}

/* Keep existing cards visible (slightly dimmed) while a live filter request is in flight. */
[data-catalog-results].is-catalog-updating .product-grid:not(.catalog-skeleton-grid) {
  opacity: 0.55;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-catalog-results].is-catalog-updating .product-grid:not(.catalog-skeleton-grid) {
    transition: none;
  }
}

.category-subnav-block {
  margin-top: 1.25rem;
}

.category-subnav {
  --subnav-gap: 0.55rem;
  position: relative;
  display: block;
  margin-top: 0;
  max-width: 100%;
  padding: 0;
}

.category-products.has-subnav-divider {
  margin-top: 1.75rem;
  padding-top: 0;
}

.category-subnav-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--subnav-gap);
  width: 100%;
  max-width: 100%;
  padding: 0 0 0.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #c5ced9 transparent;
}

.category-subnav-track::-webkit-scrollbar {
  height: 6px;
}

.category-subnav-track::-webkit-scrollbar-thumb {
  background: #c5ced9;
  border-radius: 999px;
}

.category-subnav-tile {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  min-height: 2.4rem;
  aspect-ratio: auto;
  padding: 0.55rem 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  overflow: hidden;
  color: var(--ink);
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 650;
  white-space: nowrap;
  letter-spacing: 0;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  text-shadow: none;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.category-subnav-tile.is-active {
  color: #fff;
  border-color: var(--orange);
  background: var(--orange);
}

@media (max-width: 1024px) {
  .category-subnav {
    --subnav-gap: 0.45rem;
  }

  .category-subnav-tile {
    min-height: 2.2rem;
    padding: 0.45rem 0.8rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 720px) {
  .catalog-filter-dropdown {
    width: min(17.5rem, calc(100vw - 1.25rem));
    padding: 0;
    overflow: visible;
  }

  .catalog-filter-dropdown-body {
    padding: 0.95rem;
  }

  .catalog-filter-price-stack .price-range {
    flex-direction: column;
    height: auto;
    gap: 0.55rem;
  }

  .catalog-filter-price-stack label.price-range-box {
    flex: 0 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 2.3rem !important;
  }

  .catalog-filter-price-stack .price-range-box:last-child {
    border-left: 1px solid var(--line) !important;
  }

  .catalog-filter-price-stack .price-range-slider {
    order: 0;
    flex: none;
    min-width: 0;
    width: 100%;
    height: 1.55rem;
    border-top: 0;
  }
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breadcrumb a,
.breadcrumb .breadcrumb-label,
.breadcrumb .breadcrumb-current {
  color: var(--muted);
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  vertical-align: baseline;
}

.breadcrumb-current {
  display: inline;
  color: var(--muted);
}

/* Categories page */
.categories-page {
  padding-bottom: 3.5rem;
}

.categories-page-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
}

.category-card:hover {
  color: var(--ink);
}

.category-card-media {
  display: block;
  aspect-ratio: 1;
  background: #eef3f9;
  overflow: hidden;
}

.category-card-media.is-empty {
  background: #eef3f9;
}

.category-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

/* Zoom on hover — desktop only: needs a mouse AND a desktop-size screen */
@media (hover: hover) and (pointer: fine) and (min-width: 1025px) {
  .category-card:hover .category-card-media img {
    transform: scale(1.04);
  }
}

.category-card-body {
  padding: 1rem 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.category-card-name {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0;
  color: var(--ink);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.category-card-desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.category-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.category-card-count {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.category-card-meta .btn {
  pointer-events: none;
}

/* ?? Filters / toolbar ?? */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.toolbar form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.toolbar select,
.toolbar input,
.form-control {
  font: inherit;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  box-sizing: border-box;
}

.form-control {
  width: 100%;
}

.toolbar select:focus,
.form-control:focus {
  outline: none;
  border-color: var(--navy-soft);
  box-shadow: 0 0 0 3px rgba(26, 95, 168, 0.12);
}

.results-count {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ?? Pagination ?? */
.pagination {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  min-width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
}

.pagination .is-active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

/* ?? Product detail ?? */
.page-hero-compact {
  padding: 1.15rem 0 0.35rem;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 540px) minmax(0, 1fr);
  grid-template-rows: auto;
  gap: 0.75rem 1.25rem;
  align-items: start;
  padding-bottom: 2.75rem;
}

.product-gallery {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  width: 100%;
  max-width: 540px;
}

.product-gallery.has-thumbs {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

.gallery-main {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
  height: auto;
  max-height: 460px;
  flex-shrink: 0;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid var(--line);
  align-self: start;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(7, 40, 72, 0.14);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.gallery-nav:active {
  transform: translateY(-50%) scale(0.96);
}

.gallery-nav-prev {
  left: 0.65rem;
}

.gallery-nav-next {
  right: 0.65rem;
}

.gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
  flex-shrink: 0;
  width: 72px;
  max-height: 460px;
  align-self: start;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gallery-thumbs::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.product-info {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  padding: 1.25rem 1.35rem 1.35rem;
  overflow-wrap: anywhere;
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-sizing: border-box;
}

.product-info-heading {
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 0.85rem;
}

.product-wish-form,
.product-info-heading > a.product-wish-icon {
  margin: 0.15rem 0 0;
  flex: 0 0 auto;
  align-self: flex-start;
}

.product-wish-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  line-height: 0;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  border: 1.5px solid var(--orange);
  border-radius: 999px;
  background: #fff;
  color: var(--orange);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  box-shadow: 0 4px 12px rgba(7, 40, 72, 0.08);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, transform 0.18s ease;
}

a.product-wish-icon:link,
a.product-wish-icon:visited {
  color: var(--orange);
  text-decoration: none;
}

.product-wish-icon:focus-visible {
  border-color: var(--orange);
  color: #fff;
  background: var(--orange);
}

.product-wish-icon:focus-visible svg,
.product-wish-icon.is-active svg {
  fill: currentColor;
}

.product-wish-icon.is-active {
  border-color: var(--orange);
  color: #fff;
  background: var(--orange);
}

.product-wish-icon.is-active:focus-visible {
  border-color: var(--orange-dark);
  color: #fff;
  background: var(--orange-dark);
}

.gallery-main img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover;
  object-position: center;
  display: block;
  padding: 0;
  margin: 0;
}

.gallery-thumbs button {
  flex: 0 0 auto;
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: #f1f5f9;
  transition: border-color 0.2s ease;
}

.gallery-thumbs button.is-active {
  border-color: var(--orange);
}

.gallery-thumbs img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.product-info-cat {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.product-info-title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-body);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.3;
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.product-info-specs {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.9rem;
}

.product-spec-row {
  display: grid;
  grid-template-columns: 6.25rem minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
}

.product-spec-label {
  font-size: 1rem;
  font-weight: 650;
  color: var(--ink);
}

.product-info-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem;
  margin: 0;
}

.product-info-price .price-now {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--success);
  letter-spacing: 0;
}

.product-info-price .price-was {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: line-through;
}

.product-info-stock {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.product-info-stock.stock-ok,
.product-info-stock.stock-low,
.product-info-stock.stock-out {
  font-size: 1rem;
}

/* Product color picker */
.product-color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-color-option {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.8rem 0.35rem 0.4rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.product-color-option:hover:not(:disabled) {
  border-color: var(--orange);
}

/* Selected: one solid orange border — no extra glow ring */
.product-color-option.is-active {
  border-color: var(--orange);
  box-shadow: none;
}

.product-color-option:focus {
  outline: none;
}

.product-color-option:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.product-color-option.is-out {
  cursor: not-allowed;
  opacity: 0.5;
}

.product-color-option.is-out .product-color-name {
  text-decoration: line-through;
}

.product-color-dot {
  width: 1.6rem;
  height: 1.6rem;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.18);
}

/* "Color: Red" under item names (cart drawer, checkout) */
.item-color-label {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}

.product-description-section {
  padding-bottom: 1.75rem;
  min-width: 0;
}

/* Beat later .section { padding } shorthand on ≤1024px so PDP gaps stay tight */
.section.product-description-section,
.section.product-reviews-section {
  padding-top: 0;
  padding-bottom: 1.75rem;
}

.section.product-related-section {
  padding-top: 0;
}

.section.product-description-section:has(+ .product-reviews-section),
.section.product-description-section:has(+ .product-related-section),
.section.product-reviews-section:has(+ .product-related-section) {
  /* Match .product-detail padding-bottom so the gap above Related mirrors Description */
  padding-bottom: 2.75rem;
}

.product-description-section .section-head {
  margin-bottom: 0.55rem;
}

.product-description-section .container {
  max-width: var(--max);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.product-description {
  color: #475569;
  line-height: 1.7;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: left;
}

.product-description strong {
  font-weight: 700;
  color: var(--ink);
}

.product-description-section:has(+ .product-reviews-section) .product-description,
.product-description-section:has(+ .product-related-section) .product-description {
  padding-bottom: 0;
  border-bottom: none;
}

.product-reviews-section {
  padding-bottom: 1.75rem;
  min-width: 0;
}

.product-reviews-section .section-head {
  margin-bottom: 0.55rem;
}

.product-reviews-section .section-head h2,
.product-related-section .section-head h2 {
  font-family: var(--font-body);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.3;
  color: var(--ink);
}

.product-related-section {
  padding-top: 0;
}

.product-related-section .container {
  max-width: var(--max);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.product-related-section .section-head {
  margin-bottom: 1.25rem;
}

.product-reviews-section .container {
  max-width: var(--max);
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-review-card {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "name stars"
    "body stars";
  column-gap: 1rem;
  align-items: center;
}

.product-review-head {
  display: contents;
}

.product-review-head strong {
  grid-area: name;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  align-self: end;
}

.product-review-head strong:empty {
  display: none;
}

.product-review-stars {
  grid-area: stars;
  align-self: center;
  justify-self: end;
  letter-spacing: 0.08em;
  line-height: 1;
  font-size: 1.85rem;
  text-align: right;
  white-space: nowrap;
}

.product-review-stars .is-on {
  color: #f5c518;
}

.product-review-stars .is-off {
  color: #d9d9d9;
}

.product-review-body {
  grid-area: body;
  margin: 0.35rem 0 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
  line-height: 1.55;
  align-self: start;
}

.form-label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 650;
  font-size: 0.9rem;
}

.review-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
}

.review-form-head h3 {
  margin: 0;
  font-size: 1rem;
}

.star-rating {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  flex-shrink: 0;
  gap: 0.1rem;
  line-height: 1;
  margin-left: auto;
}

.star-rating input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.star-rating label {
  display: inline-block;
  cursor: pointer;
  font-size: 1.85rem;
  font-weight: 400;
  margin: 0;
  color: #d9d9d9;
  transition: color 0.12s ease, transform 0.12s ease;
  user-select: none;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: #f5c518;
}

.star-rating label:hover {
  transform: scale(1.08);
}

.star-rating input:focus-visible + label {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}

.product-reviews-list {
  min-width: 0;
  max-width: 100%;
  margin-bottom: 0.75rem;
}

.product-reviews-pagination {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  justify-content: flex-start;
}

.product-reviews-panel.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

.product-review-card {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "name stars"
    "body stars";
  column-gap: 1rem;
  align-items: center;
}

.product-review-body {
  grid-area: body;
  margin: 0.35rem 0 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
  line-height: 1.55;
  align-self: start;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  max-width: none;
  width: 100%;
  margin-top: 0.95rem;
  align-items: stretch;
}

.product-buy-row,
.product-checkout-form {
  display: contents;
}

.product-buy-row {
  width: 100%;
}

.qty-row {
  display: grid;
  grid-template-columns: 6.25rem minmax(0, 1fr);
  grid-column: 1 / -1;
  gap: 0.75rem;
  align-items: center;
  margin: 0 0 0.2rem;
}

.qty-row-label {
  font-size: 1rem;
  font-weight: 650;
  color: var(--ink);
}

.product-qty {
  min-height: 2.6rem;
  width: fit-content;
  border-radius: 8px;
}

.product-qty .cart-drawer-qty-btn {
  width: 2.6rem;
  height: 2.6rem;
}

.product-qty .cart-drawer-qty-val {
  min-width: 2.25rem;
  line-height: 2.6rem;
  font-size: 1rem;
}

.product-soldout-btn {
  grid-column: 1 / -1;
  background: #94a3b8;
  border: 0;
  color: #fff;
  cursor: not-allowed;
}

.product-soldout-btn:disabled {
  opacity: 1;
}

.product-buy-btn {
  width: 100%;
  min-height: 2.7rem;
  min-width: 0;
  padding: 0.65rem 0.7rem;
  font-size: 0.88rem;
  white-space: nowrap;
}

.product-buy-btn-navy,
.product-buy-btn-navy:visited {
  background: #fff;
  border: 1.5px solid var(--navy);
  color: var(--navy);
}

.product-buy-btn-navy:focus-visible,
.product-buy-btn-navy:active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

@media (hover: hover) and (pointer: fine) {
  .product-buy-btn-navy:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
  }
}

.product-checkout-form {
  margin: 0;
}

.product-checkout-form .product-buy-btn {
  width: 100%;
}

.product-checkout-btn {
  background: transparent;
  border: 1.5px solid var(--orange);
  color: var(--orange);
  box-shadow: none;
}

.product-checkout-btn:focus-visible {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  filter: none;
}

.wishlist-form {
  margin: 0;
}

/* -- Cart / checkout -- */
.cart-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.75fr);
  gap: 1.15rem;
  align-items: start;
  padding-bottom: 2.5rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: 0 4px 14px rgba(7, 40, 72, 0.04);
}

.cart-panel { padding: 0; overflow: hidden; }
.cart-panel .empty-state { padding: 1.5rem 1.1rem; }

.cart-lines-head {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) 0.75fr 0.9fr 0.75fr minmax(5.75rem, auto);
  gap: 0.75rem 1rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) 0.75fr 0.9fr 0.75fr minmax(5.75rem, auto);
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
}

.cart-line-product {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  min-width: 0;
}

.cart-line-thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}

.cart-line-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.cart-line-meta { min-width: 0; }
.cart-line-name {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy-soft, #1a5fa8);
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.cart-line-price-mobile { display: none; margin-top: 0.2rem; font-size: 0.84rem; color: var(--muted); }

.cart-line-price,
.cart-line-total {
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
}

.cart-line-price {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  color: var(--ink);
}

.cart-price-compare {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 0.78rem;
}

.cart-qty-form {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cart-line-qty {
  display: flex;
  align-items: center;
}

.cart-line-remove {
  display: flex;
  justify-content: flex-end;
  margin-left: 0.35rem;
  padding-left: 0.5rem;
}

.cart-remove-form { margin: 0; }

.cart-qty-input {
  width: 58px;
  text-align: center;
  padding: 0.35rem 0.3rem;
  font-size: 0.9rem;
}

.cart-line-total { font-size: 0.95rem; }

.cart-remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
}

.cart-panel-footer {
  padding: 0.75rem 1rem;
}

.cart-summary h2 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
}

.cart-summary-hint {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0.15rem 0 0.85rem;
  line-height: 1.4;
}

.cart-continue { margin-top: 0.55rem; }

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
}

.summary-total {
  font-weight: 750;
  font-size: 1rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--line);
  margin-top: 0.25rem;
  margin-bottom: 0.35rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
/* ?? Shopify-style dedicated checkout ?? */
body.checkout-page {
  background: #fff;
  min-height: 100vh;
}

body.checkout-page::before {
  display: none;
}

.co-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.co-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.co-header-form,
.co-header-summary {
  display: flex;
  align-items: center;
  min-width: 0;
}

.co-header-summary {
  justify-content: flex-end;
}

.co-brand {
  font-family: var(--font-display, Outfit, sans-serif);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111;
  text-decoration: none;
  line-height: 1.2;
}

.co-brand:hover {
  color: #111;
}

.co-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.15s ease, gap 0.15s ease;
}

.co-back::before {
  content: "←";
  font-weight: 700;
  line-height: 1;
  transition: transform 0.15s ease;
}

.co-main {
  max-width: 1100px;
  margin: 0 auto;
}

.co-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  min-height: calc(100vh - 72px);
}

.co-form {
  padding: 1.75rem 1.5rem 2.5rem;
  border-right: 1px solid var(--line);
}

.co-summary {
  background: #f5f5f5;
  padding: 1.75rem 1.35rem 2.5rem;
}

.co-summary-inner {
  position: sticky;
  top: 1.25rem;
}

.co-section {
  margin-bottom: 1.75rem;
}

.co-section h2 {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.co-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.co-section-head h2 {
  margin: 0;
}

.co-section-head a,
.co-signin {
  font-size: 0.92rem;
  font-weight: 500;
  color: #1773b0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.co-muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.co-secure {
  margin: -0.35rem 0 0.85rem;
}

.co-stack {
  display: grid;
  gap: 0.75rem;
}

.co-field {
  position: relative;
}

.co-control {
  width: 100%;
  display: block;
  appearance: none;
  border: 1px solid #d0d3d9;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.3;
  padding: 0.95rem 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.co-control:focus {
  outline: none;
  border-color: #1773b0;
  box-shadow: 0 0 0 1px #1773b0;
}

.co-control.is-invalid,
.co-field.is-invalid .co-control {
  border-color: #d72c0d;
  box-shadow: 0 0 0 1px #d72c0d;
  background: #fff8f7;
}

.co-control.is-invalid:focus,
.co-field.is-invalid .co-control:focus {
  border-color: #d72c0d;
  box-shadow: 0 0 0 1px #d72c0d;
}

.co-field-error {
  margin: 0.4rem 0 0;
  color: #d72c0d;
  font-size: 0.82rem;
  line-height: 1.35;
}

.co-choice-group.is-invalid {
  border-color: #d72c0d;
  box-shadow: 0 0 0 1px #d72c0d;
}

.co-choice-group.is-invalid + .co-field-error,
.co-field-icon + .co-field-error {
  margin-top: 0.45rem;
}

.co-control::placeholder {
  color: #8c9196;
}

textarea.co-control {
  resize: vertical;
  min-height: 4.5rem;
}

select.co-control {
  padding-right: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7177' d='M1.4 0.6L6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  cursor: default;
}

.co-field-float .co-control {
  padding-top: 1.35rem;
  padding-bottom: 0.55rem;
}

.co-float-label {
  position: absolute;
  left: 0.9rem;
  top: 0.35rem;
  font-size: 0.72rem;
  color: #6d7175;
  pointer-events: none;
}

.co-field-icon .co-control {
  padding-right: 2.5rem;
}

.co-field-tip {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  border-radius: 10px;
  border: 1px solid #b5b9be;
  color: #6d7175;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: help;
  user-select: none;
  background: #fff;
  z-index: 2;
  line-height: 1;
}

.co-field-tip::after {
  content: attr(data-tip);
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.45rem);
  width: max-content;
  max-width: min(16rem, 70vw);
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  background: #1a1c1d;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s ease;
  pointer-events: none;
  z-index: 5;
}

.co-field-tip::before {
  content: "";
  position: absolute;
  right: 0.3rem;
  bottom: calc(100% + 0.15rem);
  border: 6px solid transparent;
  border-top-color: #1a1c1d;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease, visibility 0.12s ease;
  pointer-events: none;
  z-index: 5;
}

.co-field-tip:hover::after,
.co-field-tip:hover::before,
.co-field-tip:focus-visible::after,
.co-field-tip:focus-visible::before,
.co-field-tip.is-open::after,
.co-field-tip.is-open::before {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.co-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.co-check {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.85rem;
  font-size: 0.92rem;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}

.co-check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.co-check-box {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  border: 1.5px solid #8c9196;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 0 0 0 #1773b0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.co-check input:checked + .co-check-box {
  border-color: #1773b0;
  background: #1773b0;
  box-shadow: inset 0 0 0 3px #fff;
}

.co-check input:focus-visible + .co-check-box {
  outline: 2px solid rgba(23, 115, 176, 0.35);
  outline-offset: 2px;
}

.co-choice-group {
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.co-option {
  position: relative;
  border-bottom: 1px solid #d9d9d9;
  background: #fff;
}

.co-option:last-child {
  border-bottom: 0;
}

.co-option.is-selected {
  z-index: 2;
  background: #f0f7ff;
  box-shadow: inset 0 0 0 2px #1773b0;
}

.co-option:first-child.is-selected {
  border-radius: 7px 7px 0 0;
}

.co-option:last-child.is-selected {
  border-radius: 0 0 7px 7px;
}

.co-option:first-child:last-child.is-selected {
  border-radius: 7px;
}

.co-choice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.05rem;
  cursor: pointer;
  margin: 0;
  background: transparent;
  border: 0;
}

.co-choice input {
  flex: 0 0 auto;
  accent-color: #1773b0;
  width: 1.05rem;
  height: 1.05rem;
}

.co-choice-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.co-choice-main strong {
  font-weight: 650;
  font-size: 0.95rem;
}

.co-choice-price {
  white-space: nowrap;
  font-size: 0.95rem;
}

.co-pay-panel {
  margin: 0 2px 2px;
  padding: 0.85rem 1.05rem 1.1rem;
  background: #f4f6f8;
  border-top: 1px solid #dce0e5;
  border-radius: 0 0 6px 6px;
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.55;
}

.co-option.is-selected .co-pay-panel {
  background: #eef2f6;
}

.co-pay-panel p {
  margin: 0 0 0.65rem;
}

.co-pay-panel p:last-child {
  margin-bottom: 0;
}

.co-pay-panel a {
  color: #1773b0;
  font-weight: 650;
}

.co-pay-panel[hidden] {
  display: none;
}

.co-submit {
  margin-top: 0.35rem;
  background: #1773b0;
  color: #fff;
  box-shadow: none;
  border-color: transparent;
}

.co-submit:hover {
  background: #145f92;
  color: #fff;
  filter: none;
}

.co-policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin-top: 1.15rem;
  font-size: 0.85rem;
}

.co-policy-links a {
  color: #1773b0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.co-errors {
  margin-bottom: 1.25rem;
}

.co-items {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.co-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
}

.co-thumb {
  position: relative;
  width: 64px;
  height: 64px;
}

.co-thumb img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.co-qty {
  position: absolute;
  top: -0.4rem;
  right: -0.4rem;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.3rem;
  border-radius: 10px;
  background: #1f2937;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}

.co-item-meta {
  min-width: 0;
}

.co-item-meta strong {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.co-item-price {
  font-weight: 650;
  white-space: nowrap;
}

.co-totals {
  border-top: 1px solid #d9dee7;
  padding-top: 1rem;
}

.co-totals .summary-total {
  margin-top: 0.75rem;
  padding-top: 0.85rem;
  align-items: baseline;
}

.co-total-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
}

.co-currency {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.co-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.co-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  font-size: 0.85rem;
}

.co-footer a {
  color: var(--navy-soft);
}

@media (max-width: 900px) {
  .co-layout {
    grid-template-columns: 1fr;
  }

  .co-form {
    border-right: 0;
    order: 2;
    padding-top: 1.25rem;
  }

  .co-summary {
    order: 1;
    border-bottom: 1px solid var(--line);
    padding-bottom: 1.25rem;
  }

  .co-summary-inner {
    position: static;
  }

  .co-row-2 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 901px) {
  .co-main {
    max-width: none;
  }

  .co-header-inner {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 54%) minmax(0, 46%);
    align-items: center;
    padding: 0;
    gap: 0;
  }

  .co-header-form {
    justify-content: flex-end;
    padding: 0.65rem 3.25rem 0.65rem 5vw;
  }

  .co-brand {
    width: 100%;
    max-width: 36rem;
  }

  .co-header-summary {
    justify-content: flex-start;
    padding: 0.65rem 5vw 0.65rem 2.5rem;
  }

  .co-back {
    width: 100%;
    max-width: 26.5rem;
    justify-content: flex-end;
  }

  .co-layout {
    grid-template-columns: minmax(0, 54%) minmax(0, 46%);
    min-height: calc(100vh - 5.75rem);
  }

  .co-form {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 2.35rem 3.25rem 3.25rem 5vw;
  }

  .co-form > * {
    width: 100%;
    max-width: 36rem;
  }

  .co-summary {
    padding: 2.35rem 5vw 3.25rem 2.5rem;
  }

  .co-summary-inner {
    max-width: 26.5rem;
  }

  .co-control {
    padding: 1.05rem 1rem;
    font-size: 1rem;
  }

  .co-field-float .co-control {
    padding-top: 1.45rem;
    padding-bottom: 0.6rem;
  }
}


.summary-total {
  font-size: 1.25rem;
  font-weight: 800;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
  margin-top: 0.5rem;
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

.form-grid.two {
  grid-template-columns: 1fr 1fr;
}

.form-group label {
  display: block;
  font-weight: 650;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

.form-group .hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

.auth-wrap {
  max-width: 460px;
  margin: 2rem auto 3.5rem;
}

.auth-panel h1 {
  margin: 0 0 .35rem;
  font-family: var(--font-body);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.3;
  color: var(--ink);
}

.auth-lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.15rem 0;
  color: var(--muted);
  font-size: .85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn-google:focus-visible,
.btn-google:active {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: var(--ink);
}

@media (hover: hover) and (pointer: fine) {
  .btn-google:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: var(--ink);
  }
}

.auth-switch {
  margin: 1.35rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: .92rem;
}

.auth-switch a {
  color: var(--navy);
  font-weight: 650;
}

/* Focused auth pages — brand stage + form panel, one viewport */
.auth-page {
  --auth-navy: #06233f;
  --auth-navy-mid: #0b3a6e;
  --auth-sky: #1a5fa8;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
  background: #fff;
}

html:has(body.auth-page) {
  height: 100%;
  overflow: hidden;
}

.auth-shell {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(420px, 1.05fr);
}

.auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.75rem 2rem;
  color: #e8eef7;
  background:
    radial-gradient(900px 520px at 18% 12%, rgba(249, 115, 22, 0.22), transparent 55%),
    radial-gradient(700px 480px at 88% 88%, rgba(26, 95, 168, 0.55), transparent 50%),
    linear-gradient(160deg, var(--auth-navy) 0%, var(--auth-navy-mid) 48%, #0e4a86 100%);
  overflow: hidden;
}

.auth-brand-glow {
  position: absolute;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  right: -4rem;
  top: 28%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.35), transparent 68%);
  filter: blur(8px);
  animation: authGlow 7s ease-in-out infinite alternate;
  pointer-events: none;
}

.auth-brand-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 40% 45%, #000 20%, transparent 75%);
  opacity: .7;
  pointer-events: none;
}

@keyframes authGlow {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: .75; }
  to { transform: translate3d(-12px, 18px, 0) scale(1.08); opacity: 1; }
}

.auth-brand-top {
  position: relative;
  z-index: 1;
  display: none;
}

.auth-brand-logo-mobile {
  display: none;
}

.auth-brand-logo-link {
  display: inline-block;
  line-height: 0;
  margin: 0 0 1rem;
}

.auth-brand-logo-link:hover { opacity: 0.92; }

.auth-brand-name {
  margin: 0 0 .85rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.2vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff !important;
  text-decoration: none;
}

.auth-brand-name:hover { color: #fff !important; }

.auth-brand-logo .logo-text span,
.auth-brand-name span { color: #fb923c !important; }

.auth-brand-copy {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 26rem;
  margin: 0 auto;
  width: 100%;
  animation: authRise .85s .08s ease both;
}

.auth-brand-copy h1 {
  margin: 0 0 .65rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  font-weight: 650;
}

.auth-brand-text {
  margin: 0;
  max-width: 22rem;
  font-size: .98rem;
  line-height: 1.5;
  color: rgba(232, 238, 247, 0.82);
}

.auth-brand-text {
  margin: 0;
  max-width: 22rem;
  font-size: .98rem;
  line-height: 1.5;
  color: rgba(232, 238, 247, 0.82);
}

.auth-brand-back {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(232, 238, 247, 0.92);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.15s ease, gap 0.15s ease;
}

.auth-brand-back::before {
  content: "←";
  font-weight: 700;
  line-height: 1;
  transition: transform 0.15s ease;
}

.auth-brand-back-desktop {
  align-self: center;
  animation: authRise .9s .14s ease both;
}

.auth-brand-back:hover {
  color: #fff;
  gap: 0.5rem;
}

.auth-brand-back:hover::before {
  transform: translateX(-2px);
}

.auth-brand-back-mobile {
  display: none;
  font-size: 0.88rem;
}

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2rem;
  background:
    radial-gradient(700px 320px at 100% 0%, rgba(26, 95, 168, 0.07), transparent 55%),
    #f4f7fb;
  overflow: hidden;
}

.auth-panel {
  width: min(100%, 460px);
  animation: authRise .75s .1s ease both;
}

.auth-panel-head {
  margin-bottom: 1.1rem;
}

.auth-panel-head h2 {
  margin: 0 0 .3rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.auth-panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.4;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid #dbe4ef;
}

.auth-tabs a {
  text-align: center;
  padding: .7rem .5rem .8rem;
  color: var(--muted);
  font-weight: 650;
  font-size: .95rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s ease, border-color .15s ease;
}

.auth-tabs a.is-active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.auth-form .form-group { margin-bottom: .85rem; }
.auth-form .form-group label {
  margin-bottom: .32rem;
  font-size: .88rem;
  color: #334155;
}

.auth-name-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.32rem;
}

.auth-name-label-row label {
  margin-bottom: 0;
}

.auth-name-limit {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--orange-dark, #c2410c);
  line-height: 1.2;
}

.auth-name-limit[hidden] {
  display: none !important;
}

.auth-form .form-control {
  width: 100%;
  box-sizing: border-box;
  padding: .72rem .9rem;
  border-radius: 11px;
  border: 1.5px solid #d5dee9;
  background: #fff;
  font-size: .97rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.auth-form .form-control:hover { border-color: #b8c7d9; }

.auth-form .form-control:focus {
  outline: none;
  border-color: var(--navy-soft);
  box-shadow: 0 0 0 3px rgba(26, 95, 168, 0.14);
}

.auth-form .form-control:-webkit-autofill,
.auth-form .form-control:-webkit-autofill:hover,
.auth-form .form-control:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 40px #fff inset;
  box-shadow: 0 0 0 40px #fff inset;
  -webkit-text-fill-color: var(--ink);
}

.auth-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
}

.auth-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
}

.auth-otp-hint {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #64748b;
}
.auth-otp-hint strong {
  color: #0f172a;
  font-weight: 600;
  word-break: break-all;
}
.auth-otp-change-form {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.auth-otp-change-form-inline {
  display: inline;
  margin: 0;
}
.auth-otp-change-email {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--navy-soft, #1a5fa8);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.auth-switch-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}
.auth-page .auth-switch-row {
  text-align: left;
  width: 100%;
}
.auth-otp-input {
  letter-spacing: 0.35em;
  font-weight: 600;
  text-align: center;
  font-size: 1.15rem;
}
.auth-otp-actions {
  margin: 0.85rem 0 0;
}
.auth-otp-inline {
  margin: 0;
  width: 100%;
}
.auth-otp-resend {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.1rem;
  border-radius: 10px;
  border: none;
  background: var(--navy);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.auth-otp-resend:disabled {
  opacity: 1;
  cursor: not-allowed;
  pointer-events: none;
  color: #fff;
  background: #94a3b8;
}

.auth-otp-lockout {
  margin-top: 0.45rem;
  font-size: 0.92rem;
}

.auth-otp-lockout strong {
  font-variant-numeric: tabular-nums;
}

.auth-link {
  font-size: .82rem;
  font-weight: 650;
  color: var(--navy);
}

.auth-password { position: relative; }
.auth-password .form-control { padding-right: 3.7rem; }

.auth-password-toggle {
  position: absolute;
  right: .35rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 650;
  padding: .3rem .5rem;
  border-radius: 7px;
  cursor: pointer;
}

.auth-password-toggle:hover {
  color: var(--navy);
  background: #eef3f9;
}

.auth-form .btn-primary {
  margin-top: .2rem;
}

.auth-page .auth-divider {
  margin: .95rem 0;
  font-size: .78rem;
  letter-spacing: .02em;
}

.auth-page .btn-google {
  background: #fff;
}

.auth-page .auth-switch {
  margin: 1.1rem 0 0;
  font-size: .9rem;
  text-align: left;
}

.auth-hint {
  margin: 0 0 .85rem;
  font-size: .88rem;
  line-height: 1.45;
  color: var(--muted);
}

.auth-inline-action { margin: 0 0 .85rem; }

.auth-reset-link {
  word-break: break-all;
  font-size: .86rem;
  margin: .25rem 0 1rem;
}

.auth-page .alert {
  margin-bottom: .85rem;
  padding: .65rem .8rem;
  font-size: .88rem;
  border-radius: 11px;
}

@keyframes authRise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-brand-glow,
  .auth-brand-top,
  .auth-brand-copy,
  .auth-brand-back-desktop,
  .auth-panel {
    animation: none !important;
  }
}

@media (max-width: 900px) {
  html:has(body.auth-page) {
    height: auto;
    overflow: auto;
  }

  .auth-page {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: auto;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100dvh;
  }

  .auth-brand {
    position: relative;
    min-height: 7.5rem;
    padding: 1.1rem 1.15rem 1.25rem;
    gap: 0;
    justify-content: center;
    align-items: center;
  }

  .auth-brand-top {
    display: flex;
    align-items: center;
    justify-content: center;
    position: static;
    width: 100%;
    min-height: 3.5rem;
  }

  .auth-brand-logo-mobile {
    display: inline-block;
    margin: 0;
    flex: 0 1 auto;
    min-width: 0;
    line-height: 0;
  }

  .auth-brand-logo-mobile .brand-logo-auth {
    height: 52px;
    max-width: min(190px, 58vw);
  }

  .auth-brand-copy,
  .auth-brand-back-desktop,
  .auth-brand-glow,
  .auth-brand-grid { display: none; }

  .auth-brand-back-mobile {
    display: inline-flex;
    position: absolute;
    top: 0.85rem;
    right: 1.15rem;
    z-index: 2;
  }

  .auth-main {
    padding: 1.25rem 1.15rem 2rem;
    align-items: flex-start;
    overflow: visible;
  }

  .auth-panel { width: 100%; }
  .auth-form-row { grid-template-columns: 1fr; gap: 0; }
  .auth-page .auth-switch { text-align: center; }
}

@media (max-height: 780px) and (min-width: 901px) {
  .auth-brand { padding: 1.25rem 1.5rem; }
  .auth-brand-name { font-size: 2.2rem; margin-bottom: .55rem; }
  .auth-brand-copy h1 { font-size: 1.25rem; }
  .auth-brand-text { font-size: .9rem; }
  .auth-main { padding: 1rem 1.5rem; }
  .auth-panel-head { margin-bottom: .75rem; }
  .auth-panel-head h2 { font-size: 1.35rem; }
  .auth-form .form-group { margin-bottom: .65rem; }
  .auth-form .form-control { padding: .58rem .8rem; }
  .auth-page .auth-divider { margin: .7rem 0; }
}


.header-user {
  color: #c5d3e6;
  font-size: .85rem;
  margin-right: .15rem;
}

.empty-state {
  text-align: center;
  padding: 3rem 1.25rem;
  color: var(--muted);
}

.empty-state h2 {
  color: var(--ink);
  margin: 0 0 .5rem;
}

.empty-state h2 + .btn {
  margin-top: 1rem;
}

.empty-state p {
  margin: 0 0 1.25rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.empty-state.panel,
.home-empty {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
}

.nav-dropdown-empty {
  display: block;
  padding: .65rem 1rem;
  color: var(--muted);
  font-size: .9rem;
}

.nav-view-all {
  display: none;
}

/* Contact page */
.contact-page {
  max-width: 100%;
  margin: 0 auto;
  padding-bottom: 3.5rem;
}

.contact-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 10px 28px rgba(7, 40, 72, 0.05);
}

.contact-block {
  padding: 1.25rem 0;
  border-bottom: 1px solid #eef2f7;
}

.contact-block:first-child { padding-top: 0; }
.contact-block-last,
.contact-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-block h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.contact-headline {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--navy);
}

.contact-intro,
.contact-block p,
.contact-hours {
  margin: 0;
  color: #475569;
  line-height: 1.65;
  font-size: 0.98rem;
}

.contact-reach,
.contact-social {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-reach li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.65rem;
  align-items: baseline;
  padding: 0.45rem 0;
  color: var(--navy);
  font-size: 0.98rem;
}

.contact-reach li > span:first-child {
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 600;
}

.contact-reach a,
.contact-social a {
  color: var(--navy);
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  word-break: break-word;
}

.contact-social a img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  object-fit: contain;
  flex-shrink: 0;
}

.contact-social-lead {
  margin: 0 0 0.65rem !important;
}

.contact-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
}

.contact-hours { white-space: pre-line; }

.about-values {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.about-values li {
  display: grid;
  gap: 0.2rem;
}

.about-values strong {
  color: var(--navy);
  font-size: 0.98rem;
}

.about-values span {
  color: #475569;
  line-height: 1.55;
  font-size: 0.95rem;
}

.about-inline-meta {
  margin: 0.75rem 0 0;
  color: #64748b;
  font-size: 0.95rem;
}

.about-inline-meta a {
  color: var(--navy);
  font-weight: 650;
}

@media (max-width: 560px) {
  .contact-panel { padding: 1.25rem 1.15rem; }
  .contact-reach li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}
/* ?? Footer ?? */
main#main {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
  overflow-anchor: none;
  background: var(--bg);
}

body.auth-page main#main,
body.checkout-page main#main {
  background: transparent;
}

.site-footer {
  position: relative;
  margin-top: auto;
  margin-bottom: 0;
  background: var(--navy-deep);
  color: #c5d3e6;
  padding-top: 3rem;
  padding-bottom: 0;
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.55;
  letter-spacing: 0;
  /* Keep scroll position stable when sections above load / animate */
  overflow-anchor: none;
}

.footer-grid {
  display: grid;
  /* minmax(0, …) stops logo/text min-content from widening a column and
     sliding the Information links sideways. */
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-brand p {
  color: #9db0c9;
  max-width: 34ch;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.55;
}

.site-footer h3 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.3;
  margin: 0 0 0.85rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.45rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
}

.site-footer a {
  color: #c5d3e6;
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Information / Help links: full column box, not shrink-wrapped inline-block,
   so font/active/content changes cannot move the link edges. */
.footer-grid > div:not(.footer-brand) li > a {
  display: block;
  width: 100%;
  max-width: 100%;
  text-align: left;
  line-height: inherit;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

.social-links {
  display: flex;
  gap: 0.65rem;
  margin-top: 1rem;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  transition: background 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.social-link img {
  width: 36px;
  height: 36px;
  display: block;
  border-radius: 8px;
  object-fit: contain;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 0;
  padding: 1rem 0;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0;
  background: var(--navy-deep);
  margin: 0;
}

.footer-bottom p {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
}

.footer-bottom .container {
  margin-bottom: 0;
}

/* ?? Admin ?? */
.admin-body {
  background: #edf1f7;
}

.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: linear-gradient(180deg, var(--navy-deep), #0a335f);
  color: #fff;
  padding: 1.5rem 1rem;
}

.admin-sidebar .logo {
  color: #fff;
  margin-bottom: 2rem;
  padding: 0 0.5rem;
}

.admin-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.admin-nav a {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  color: #c9d7ea;
  font-weight: 560;
}

.admin-nav a:hover,
.admin-nav a.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.admin-main {
  padding: 1.5rem;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.25rem;
  border: 1px solid var(--line);
}

.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--navy);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.admin-table th,
.admin-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.92rem;
}

.admin-table th {
  background: #f8fafc;
  font-weight: 700;
}

.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(800px 400px at 20% 0%, rgba(249, 115, 22, 0.18), transparent),
    linear-gradient(160deg, #061E38, #0B3A6E);
}

.admin-login .panel {
  width: min(100%, 420px);
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-pending { background: #ffedd5; color: #9a3412; }
.badge-shipped { background: #dbeafe; color: #1e40af; }
.badge-delivered { background: #dcfce7; color: #166534; }
.badge-cancelled { background: #fee2e2; color: #991b1b; }

.alert {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.alert-error { background: #fee2e2; color: var(--danger); }
.alert-success { background: #dcfce7; color: var(--success); }




/* Reveal animations — stay visible by default so products never disappear if JS stalls */
.reveal {
  opacity: 1;
  transition: opacity 0.45s ease;
}

html.reveal-anim .reveal:not(.is-visible) {
  opacity: 0;
}

html.reveal-anim .reveal.is-visible {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  html.reveal-anim .reveal:not(.is-visible),
  .reveal {
    opacity: 1;
    transition: none;
  }
}

/* ?? Responsive ?? */
@media (max-width: 1100px) {
  .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-category-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .categories-page-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .home-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .home-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .categories-page-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-gallery {
    max-width: 480px;
  }

  .gallery-main {
    max-width: none;
    aspect-ratio: 1 / 1;
    height: auto;
    max-height: none;
  }

  .gallery-thumbs {
    max-height: min(400px, calc(100vw - 8rem));
  }
}

@media (max-width: 900px) {
  .product-detail,
  .cart-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .product-detail {
    gap: 1.5rem;
    padding-bottom: 2.25rem;
    grid-template-rows: none;
  }

  .section.product-description-section:has(+ .product-reviews-section),
  .section.product-description-section:has(+ .product-related-section),
  .section.product-reviews-section:has(+ .product-related-section) {
    padding-bottom: 2.25rem;
  }

  .product-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.55rem;
    max-width: min(420px, 100%);
    width: 100%;
    margin-inline: auto;
    height: auto;
    align-self: auto;
  }

  .product-gallery.has-thumbs {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .gallery-main {
    flex: none;
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: 0;
    height: auto;
    aspect-ratio: 1 / 1;
    margin-inline: 0;
  }

  .gallery-nav {
    width: 36px;
    height: 36px;
  }

  .gallery-thumbs {
    width: 64px;
    max-width: none;
    max-height: min(360px, 78vw);
    margin-inline: 0;
  }

  .gallery-thumbs button {
    width: 64px;
    height: 64px;
  }

  .product-info {
    grid-column: auto;
    grid-row: auto;
  }

  .product-actions {
    max-width: none;
  }
}


/* Mobile / tablet drill-in menu (shown ≤1024px) */
.mobile-nav {
  display: none;
}

@media (max-width: 1024px) {
  .header-info-inner {
    gap: 0.4rem;
    min-height: 1.85rem;
    padding: 0.22rem 0;
  }

  .header-info-text {
    font-size: 0.7rem;
    letter-spacing: 0.04em;
  }

  .header-social {
    gap: 0.35rem;
  }

  .header-social a {
    width: 16px;
    height: 16px;
  }

  .header-social img {
    width: 14px;
    height: 14px;
  }

  .header-info-right a {
    font-size: 0.72rem;
  }


  .main-nav {
    display: none !important;
  }

  .mobile-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    bottom: auto;
    z-index: 120;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: #fff;
    border: 0;
    border-top: 1px solid #e8eef5;
    box-shadow: none;
    transform: none;
    height: calc(100dvh - var(--header-h, 5.5rem));
    max-height: calc(100dvh - var(--header-h, 5.5rem));
    min-height: calc(100dvh - var(--header-h, 5.5rem));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-nav.is-open,
  .mobile-nav:not([hidden]) {
    display: block;
  }

  .mobile-nav[hidden] {
    display: none !important;
  }

  .mobile-nav-track {
    position: relative;
    min-height: 100%;
  }

  .mobile-nav-panel {
    display: none;
    padding: 0 0 1.25rem;
  }

  .mobile-nav-panel.is-active {
    display: block;
  }

  .mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0.15rem 0 0;
  }

  .mobile-nav-list > li {
    border-bottom: 0;
  }

  .mobile-nav-list > li:last-child {
    border-bottom: 0;
  }

  .mobile-nav-list a,
  .mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.95rem 1.25rem;
    border: 0;
    background: transparent;
    color: #64748b;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.35;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
  }

  .mobile-nav-chev,
  .mobile-nav-back-chev {
    flex: 0 0 auto;
    width: 0.45rem;
    height: 0.45rem;
    border: solid #94a3b8;
    border-width: 0 1.75px 1.75px 0;
  }

  .mobile-nav-chev {
    transform: rotate(-45deg);
  }

  .mobile-nav-back {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.95rem 1.25rem;
    border: 0;
    border-bottom: 1px solid #eef2f7;
    background: #fff;
    color: #64748b;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
  }

  .mobile-nav-back-chev {
    transform: rotate(135deg);
  }

  .mobile-nav-panel-title {
    margin: 0;
    padding: 1rem 1.25rem 0.35rem;
    color: var(--navy);
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.3;
  }

  .mobile-nav-empty {
    display: block;
    padding: 1.05rem 1.25rem;
    color: #94a3b8;
    font-size: 0.95rem;
  }

  .mobile-nav-block {
    margin-top: 0.35rem;
    padding: 1.1rem 1.25rem 0.35rem;
    border-top: 1px solid #e2e8f0;
  }

  .mobile-nav-heading {
    margin: 0 0 0.85rem;
    color: var(--navy);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .mobile-nav-help,
  .mobile-nav-social {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
  }

  .mobile-nav-help a,
  .mobile-nav-social a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
  }

  .mobile-nav-help-ico {
    display: grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    color: var(--navy);
    flex: 0 0 auto;
  }

  .mobile-nav-social-ico {
    display: grid;
    place-items: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 8px;
    background: transparent;
    overflow: hidden;
    flex: 0 0 auto;
  }

  .mobile-nav-social-ico img {
    width: 1.85rem;
    height: 1.85rem;
    object-fit: contain;
    filter: none;
  }

  .header-main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    padding: 0.55rem 0;
  }

  .logo {
    position: relative;
    z-index: 1;
    flex: 0 1 auto;
    max-width: min(46%, 168px);
    justify-self: start;
  }

  .brand-logo-header {
    height: 40px;
    max-width: 100%;
  }

  .nav-toggle {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    display: flex;
    order: -1;
    z-index: 2;
    grid-area: auto;
    flex-shrink: 0;
    margin-right: 0.15rem;
    background: transparent !important;
    border-radius: 0;
    box-shadow: none !important;
  }

  .nav-toggle:hover,
  .nav-toggle:focus,
  .nav-toggle:focus-visible,
  .nav-toggle:active {
    background: transparent !important;
    box-shadow: none !important;
  }

  #nav-toggle[aria-expanded="true"],
  #nav-toggle[aria-expanded="true"]:hover,
  #nav-toggle[aria-expanded="true"]:focus-visible {
    color: #fff;
    background: transparent !important;
    box-shadow: none !important;
  }

  #nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  #nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  #nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-toggle span {
    transition: transform 0.2s ease, opacity 0.15s ease;
  }

  #nav-toggle[aria-expanded="true"]::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -0.55rem;
    z-index: 130;
    width: 0;
    height: 0;
    transform: translateX(-50%);
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 9px solid #fff;
    pointer-events: none;
  }

  .header-actions {
    position: static;
    z-index: auto;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    justify-self: end;
    margin-left: auto;
    gap: 0;
  }

  .header-actions .icon-btn {
    z-index: 3;
    background: transparent !important;
    border-radius: 0;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
  }

  .header-actions .icon-btn:hover,
  .header-actions .icon-btn:focus,
  .header-actions .icon-btn:focus-visible,
  .header-actions .icon-btn:active,
  .header-actions #search-toggle[aria-expanded="true"],
  .header-actions #cart-drawer-open[aria-expanded="true"],
  .header-actions .icon-btn.is-active,
  .header-actions #search-toggle[aria-expanded="true"]:hover,
  .header-actions #cart-drawer-open[aria-expanded="true"]:hover,
  .header-actions .icon-btn.is-active:hover,
  .header-actions #search-toggle[aria-expanded="true"]:focus-visible,
  .header-actions #cart-drawer-open[aria-expanded="true"]:focus-visible,
  .header-actions .icon-btn.is-active:focus-visible {
    background: transparent !important;
    box-shadow: none !important;
  }

  .header-actions #search-toggle[aria-expanded="true"],
  .header-actions #cart-drawer-open[aria-expanded="true"],
  .header-actions .icon-btn.is-active {
    color: var(--orange);
  }

  .header-search-panel {
    top: calc(100% + 0.45rem);
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    padding: 0.7rem;
    border-radius: 12px;
    max-height: min(70dvh, 32rem);
    display: flex;
    flex-direction: column;
  }

  .header-search-form {
    flex-wrap: nowrap;
  }

  .header-search-form input {
    font-size: 1rem;
  }

  .header-search-results {
    max-height: min(55dvh, 22rem);
  }

  .icon-btn,
  .nav-toggle {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  .section {
    padding: 2.75rem 0;
  }

  main#main > :last-child {
    margin-bottom: 0;
    padding-bottom: 0.5rem !important;
  }

  .site-footer {
    padding-top: 1.35rem;
    text-align: center;
  }

  .footer-grid {
    padding-bottom: 1.25rem;
    justify-items: center;
  }

  .footer-grid > * {
    width: 100%;
    max-width: 28rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-brand p {
    max-width: 34ch;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .site-footer h3 {
    text-align: center;
  }

  .site-footer ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .site-footer li {
    width: 100%;
    text-align: center;
  }

  /* Full-width hit boxes keep left/right edges stable when fonts/metrics change */
  .footer-grid > div:not(.footer-brand) li > a {
    display: block;
    width: 100%;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-bottom {
    text-align: center;
  }

  .footer-bottom .container {
    text-align: center;
  }

  .section-head {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .account-hero,
  .wishlist-hero {
    flex-wrap: wrap;
  }
}
@media (max-width: 720px) {
  .container {
    width: min(100% - 1.5rem, var(--max));
  }

  .header-info-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 1.7rem;
    padding: 0.2rem 0;
  }

  .header-social,
  .header-info-right {
    display: none;
  }

  .header-info-text {
    font-size: 0.68rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    padding-inline: 0;
  }

  .header-main-inner {
    padding: 0.5rem 0;
  }

  .brand-logo-header {
    height: 38px;
  }

  .icon-btn,
  .nav-toggle {
    width: 38px;
    height: 38px;
  }

  .header-top-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .announce-inner {
    padding-inline: 2rem 2.5rem;
    font-size: 0.8rem;
  }

  .product-grid,
  .category-grid,
  .categories-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .product-card-body {
    padding: 0.75rem 0.7rem 0.85rem;
    gap: 0.25rem;
  }

  .product-card-cat {
    font-size: 0.68rem;
    letter-spacing: 0.04em;
  }

  .product-card-title {
    font-size: 0.92rem;
    min-height: 2.5em;
    line-height: 1.3;
  }

  .product-card-price {
    font-size: 0.98rem;
  }

  .product-card-meta {
    gap: 0.35rem;
    margin-top: 0.35rem;
  }

  .product-card-meta .btn,
  .product-card-meta .btn-sm {
    padding: 0.35rem 0.7rem;
    font-size: 0.78rem;
    min-height: 2rem;
  }

  .stock-ok,
  .stock-low,
  .stock-out {
    font-size: 0.74rem;
  }

  .category-tile span {
    padding: 0.65rem;
    font-size: 0.95rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    justify-items: center;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .section-head .section-link-top {
    display: none;
  }

  .section-more {
    display: flex;
    justify-content: center;
    margin-top: 1.85rem;
    margin-bottom: 0.25rem;
    padding-top: 0.35rem;
  }

  .section-link-btn {
    align-self: center;
  }

  .form-grid.two {
    grid-template-columns: 1fr;
  }

  .cart-lines-head { display: none; }

  .cart-line {
    grid-template-columns: 1fr auto auto;
    grid-template-areas:
      "product product product"
      "qty total remove";
    gap: 0.55rem 1rem;
    padding: 0.85rem 1rem;
  }

  .cart-line-product { grid-area: product; }
  .cart-line-price { display: none; }
  .cart-line-price-mobile { display: block; }
  .cart-line-qty { grid-area: qty; }
  .cart-line-total {
    grid-area: total;
    text-align: right;
    align-self: center;
  }
  .cart-line-remove {
    grid-area: remove;
    justify-content: flex-end;
    margin-left: 0.5rem;
    padding-left: 0.75rem;
  }

  .panel {
    padding: 0.9rem 0.95rem;
  }

  .co-header-inner,
  .co-form,
  .co-summary {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .account-page,
  .wishlist-page,
  .orders-page {
    padding-top: 1.15rem;
    margin-bottom: 2.5rem;
  }

  .account-hero .acc-signout,
  .acc-reviews-pending-flag {
    white-space: normal;
  }

  .product-info-heading {
    flex-wrap: nowrap;
    gap: 0.65rem;
  }

  .toolbar {
    padding: 0.75rem;
  }

  .toolbar form,
  .toolbar select,
  .toolbar input {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 420px) {
  .product-grid,
  .category-grid,
  .categories-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .product-card {
    border-radius: 12px;
  }

  .product-card-body {
    padding: 0.65rem 0.55rem 0.75rem;
  }

  .product-card-title {
    font-size: 0.86rem;
    min-height: 2.35em;
  }

  .product-card-price {
    font-size: 0.92rem;
  }

  .brand-logo-header {
    height: 36px;
    max-width: min(132px, 38vw);
  }

  .icon-btn,
  .nav-toggle {
    width: 36px;
    height: 36px;
  }

  .header-actions {
    gap: 0;
  }

  .social-link {
    width: 40px;
    height: 40px;
  }

  .social-link img {
    width: 32px;
    height: 32px;
  }

  .page-hero {
    padding: 1.35rem 0 0.75rem;
  }
}

/* ?? Account page ?? */
.account-page {
  max-width: 1040px;
  margin: 0 auto 3.5rem;
  padding-top: 1.5rem;
}

.account-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.account-hero-copy {
  min-width: 0;
}

.account-hero h1 {
  margin: 0 0 0.2rem;
  font-family: var(--font-body);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.3;
  color: var(--ink);
}

.account-hello {
  margin: 0;
  color: var(--muted);
}

.account-hero .acc-signout {
  flex: 0 0 auto;
  align-self: center;
  text-decoration: none;
  white-space: nowrap;
}

.acc-reviews-pending-flag {
  flex: 0 0 auto;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  background: #fff7ed;
  border: 1.5px solid #fdba74;
  color: #c2410c;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.acc-reviews-pending-flag::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 10px;
  background: var(--orange);
  flex: 0 0 auto;
}

.acc-block {
  margin-bottom: 1.75rem;
}

.acc-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.acc-block-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
}

.acc-block-actions form {
  margin: 0;
}

.acc-block-head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-family: var(--font-body);
  font-weight: 700;
}

.acc-orders-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Small secondary actions — same size as .btn-sm */
.acc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 2.15rem;
  padding: 0.45rem 0.95rem;
  border: 1.5px solid #d0d3d9;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.acc-btn:active {
  transform: scale(0.98);
  border-color: #b8bcc4;
  color: var(--ink);
  background: #fafafa;
}

.acc-btn:focus-visible {
  border-color: #b8bcc4;
  color: var(--ink);
  background: #fafafa;
}

.acc-btn-danger {
  color: #b91c1c;
  border-color: #f1c0c0;
}

.acc-btn-danger:active,
.acc-btn-danger:focus-visible {
  color: #991b1b;
  background: #fef2f2;
}

@media (hover: hover) and (pointer: fine) {
  .acc-btn:hover {
    border-color: #b8bcc4;
    color: var(--ink);
    background: #fafafa;
  }

  .acc-btn-danger:hover {
    color: #991b1b;
    background: #fef2f2;
  }
}

.acc-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.acc-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.acc-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.acc-row:first-child {
  padding-top: 0;
}

.acc-label {
  color: #6b7280;
  font-size: 0.92rem;
  flex: 0 0 auto;
  min-width: 5.5rem;
}

.acc-value {
  font-weight: 600;
  text-align: right;
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
}

.acc-empty {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #6b7280;
}

.acc-empty-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  background: #f3f4f6;
  color: #9ca3af;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.acc-form {
  display: grid;
  gap: 0.85rem;
}

.acc-form .form-group {
  min-width: 0;
}

.acc-form .form-grid.two {
  gap: 0.85rem;
}

.acc-address-form-card {
  padding: 1.25rem 1.35rem;
}

.acc-address-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.25rem;
}

.acc-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  margin-top: 0.15rem;
}

.acc-address-list {
  display: grid;
  gap: 0.85rem;
}

.acc-address {
  display: block;
}

.acc-address-body p {
  margin: 0.35rem 0 0;
  color: #4b5563;
  font-size: 0.92rem;
  line-height: 1.45;
}

.acc-address-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.acc-address-actions .acc-btn,
.acc-address-actions form {
  margin: 0;
}

.acc-address-actions .acc-btn {
  min-width: 5.75rem;
}

.acc-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1773b0;
  background: #eef6fc;
  padding: 0.2rem 0.45rem;
  border-radius: 10px;
  margin-bottom: 0.35rem;
}

.acc-order-list {
  display: grid;
  gap: 0.75rem;
}

.acc-orders-pagination {
  margin-top: 1.25rem;
  margin-bottom: 0;
  justify-content: flex-start;
}

.acc-orders-pagination .is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

#orders {
  scroll-margin-top: calc(var(--header-h, 6.75rem) + 0.75rem);
  position: relative;
}

.acc-orders-live {
  position: relative;
  transition: opacity 0.25s ease;
}

#orders.is-loading .acc-orders-live {
  opacity: 0.4;
  pointer-events: none;
}

#orders.is-shift-in .acc-orders-live {
  animation: acc-orders-in 0.3s ease both;
}

@keyframes acc-orders-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#orders.is-loading::after {
  content: "";
  position: absolute;
  top: 3.2rem;
  left: 50%;
  width: 1.65rem;
  height: 1.65rem;
  margin-left: -0.825rem;
  border-radius: 10px;
  border: 2.5px solid rgba(249, 115, 22, 0.22);
  border-top-color: var(--orange);
  animation: acc-orders-spin 0.7s linear infinite;
  z-index: 2;
  pointer-events: none;
}

@keyframes acc-orders-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .acc-orders-live,
  #orders.is-shift-in .acc-orders-live {
    transition: none;
    animation: none;
  }

  #orders.is-loading::after {
    animation: none;
  }
}

.acc-order-card {
  display: grid;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.acc-order-card:visited,
.acc-order-card:hover,
.acc-order-card:active,
.acc-order-card:focus {
  color: var(--ink);
  text-decoration: none;
  background: #fff;
}

.acc-order-card:hover {
  border-color: #c5d4e6;
  box-shadow: 0 6px 18px rgba(11, 58, 110, 0.06);
}

.acc-order-card.has-pending-review:hover {
  border-color: #fdba74;
}

.acc-order-card.has-pending-review {
  border-color: #fdba74;
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.12);
}

.acc-order-card-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  min-width: 0;
  flex: 1 1 auto;
}

.acc-order-card-items {
  min-width: 0;
  font-size: 0.98rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.acc-order-review-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #fff;
  background: var(--orange);
  padding: 0.18rem 0.5rem;
  border-radius: 10px;
  line-height: 1.2;
  flex-shrink: 0;
  white-space: nowrap;
}

.acc-order-review-mark::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}

.acc-order-review-mark-done {
  background: #15803d;
}

.acc-order-card-top,
.acc-order-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.acc-order-card-bottom {
  align-items: baseline;
}

.acc-order-card-date {
  color: var(--muted);
  font-size: 0.88rem;
  flex: 0 0 auto;
  white-space: nowrap;
}

.acc-order-card-mid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.acc-order-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 650;
  padding: 0.2rem 0.55rem;
  border-radius: 10px;
  background: #eef3f9;
  color: #0b3a6e;
}

.acc-order-card-bottom {
  color: var(--muted);
  font-size: 0.9rem;
}

.acc-order-card-bottom strong {
  color: var(--ink);
  font-size: 1rem;
}

.acc-order-detail {
  display: grid;
  gap: 1.1rem;
}

.acc-order-meta .acc-row {
  align-items: flex-start;
}

.acc-order-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}

.acc-order-items li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.acc-order-item-row {
  flex-wrap: wrap;
}

.acc-order-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.acc-order-review-actions .acc-btn {
  border-color: transparent;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
}

.acc-order-review-actions .acc-btn:focus-visible,
.acc-order-review-actions .acc-btn:active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--orange-dark), #c2410c);
  color: #fff;
}

@media (hover: hover) and (pointer: fine) {
  .acc-order-review-actions .acc-btn:hover {
    border-color: transparent;
    background: linear-gradient(135deg, var(--orange-dark), #c2410c);
    color: #fff;
  }
}

.acc-order-review-done {
  font-size: 0.82rem;
  font-weight: 650;
  color: #15803d;
}

.acc-order-review-hint {
  font-size: 0.82rem;
  color: var(--muted);
}

.acc-order-review-form-wrap {
  display: block !important;
  list-style: none;
}

.acc-order-review-form {
  margin: 0.15rem 0 0.35rem;
  display: grid;
  gap: 0.75rem;
}

.acc-order-review-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.acc-order-item-main {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.acc-order-item-name {
  overflow-wrap: anywhere;
  word-break: break-word;
  font-weight: 600;
}

.acc-order-item-qty {
  color: var(--muted);
  font-size: 0.88rem;
}

.acc-order-item-price {
  flex: 0 0 auto;
  font-weight: 650;
}

.acc-order-totals {
  display: grid;
  gap: 0.4rem;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

.acc-order-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.acc-order-totals .acc-order-grand {
  margin-top: 0.25rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 750;
  font-size: 1rem;
}

.acc-order-empty {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  padding: 2.25rem 1.25rem;
}

.acc-orders-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.acc-orders-tab-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.acc-orders-tab-copy span {
  color: var(--muted);
  font-size: 0.9rem;
}

.acc-orders-tab-arrow {
  flex: 0 0 auto;
  font-size: 1.15rem;
  color: #0b3a6e;
}

.acc-wish-grid {
  display: grid;
  gap: 0.85rem;
}

.acc-wish-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.9rem;
  align-items: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 0.85rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.acc-wish-card img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  background: #fff;
}

.acc-wish-price {
  margin: 0.25rem 0 0.5rem;
  font-weight: 700;
}

/* Wishlist page */
.wishlist-page {
  max-width: 1040px;
  margin: 0 auto;
  padding-top: 1.5rem;
  padding-bottom: 3.5rem;
  /* Just tall enough that short lists tip the page into a scrollbar */
  min-height: calc(100dvh - var(--header-h, 6.75rem) - 16rem);
}

.wishlist-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.wishlist-hero > .btn {
  flex-shrink: 0;
  align-self: center;
}

.wishlist-hero h1 {
  margin: 0 0 0.2rem;
  font-family: var(--font-body);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.3;
  color: var(--ink);
}

.wishlist-count {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}

.wishlist-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .75rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 2.75rem 1.5rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.wishlist-empty-icon {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 10px;
  background: #fff4ec;
  color: var(--orange, #f97316);
  display: grid;
  place-items: center;
  margin-bottom: .25rem;
}

.wishlist-empty h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
}

.wishlist-empty p {
  margin: 0 0 .35rem;
  color: var(--muted);
  max-width: 28rem;
  line-height: 1.5;
}

.wishlist-list {
  padding: 0;
  overflow: hidden;
}

.wishlist-list-head {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) 0.7fr minmax(12rem, 1.1fr);
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.wishlist-row {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) 0.7fr minmax(12rem, 1.1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}

.wishlist-row:last-child {
  border-bottom: none;
}

.wishlist-row-product {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  min-width: 0;
}

.wishlist-row-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}

.wishlist-row-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.wishlist-row-meta {
  min-width: 0;
}

.wishlist-row-title {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.35;
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.wishlist-row-title:link,
.wishlist-row-title:visited {
  color: var(--ink);
}

.wishlist-row-title:focus-visible {
  color: var(--orange);
}

.wishlist-row-price-mobile {
  display: none;
  margin-top: 0.25rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.wishlist-row-price {
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.wishlist-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
}

.wishlist-row-actions form {
  margin: 0;
}

.wishlist-row-actions .btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.88rem;
}

@media (max-width: 720px) {
  .wishlist-list-head {
    display: none;
  }

  .wishlist-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    align-items: start;
  }

  .wishlist-row-price {
    display: none;
  }

  .wishlist-row-price-mobile {
    display: block;
  }

  .wishlist-row-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 520px) {
  .wishlist-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .wishlist-row {
    padding: 0.85rem;
  }

  .wishlist-row-thumb {
    width: 64px;
    height: 64px;
  }
}

/* Order history — match wishlist page layout */
.orders-page {
  max-width: 1040px;
  margin: 0 auto 3.5rem;
  padding-top: 1.5rem;
}

.orders-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.orders-hero > .btn {
  flex-shrink: 0;
  align-self: center;
}

.orders-hero h1 {
  margin: 0 0 0.2rem;
  font-family: var(--font-body);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.3;
  color: var(--ink);
}

.orders-count {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}

.orders-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .75rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 2.75rem 1.5rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.orders-empty-icon {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 10px;
  background: #fff4ec;
  color: var(--orange, #f97316);
  display: grid;
  place-items: center;
  margin-bottom: .25rem;
}

.orders-empty h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
}

.orders-empty p {
  margin: 0 0 .35rem;
  color: var(--muted);
  max-width: 28rem;
  line-height: 1.5;
}

.orders-list {
  padding: 0;
  overflow: hidden;
}

.orders-list-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7rem minmax(0, 1fr);
  gap: 0.75rem 1rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.orders-list-head > span:nth-child(2) {
  text-align: center;
  justify-self: center;
}

.orders-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7rem minmax(0, 1fr);
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}

.orders-row:last-child {
  border-bottom: none;
}

.orders-row-product {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  min-width: 0;
}

.orders-row-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  display: block;
}

.orders-row-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.orders-row-thumb-empty {
  background: linear-gradient(145deg, #eef3f9, #e2e8f0);
}

.orders-row-meta {
  min-width: 0;
}

.orders-row-title {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.35;
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.orders-row-title:link,
.orders-row-title:visited {
  color: var(--ink);
}

.orders-row-title:focus-visible {
  color: var(--orange);
}

.orders-row-sub {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.orders-row-price-mobile,
.orders-row-pills-mobile {
  display: none;
}

.orders-row-price {
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  justify-self: center;
  width: 100%;
}

.orders-row-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.orders-row-actions .btn-sm {
  flex-shrink: 0;
  padding: 0.4rem 0.9rem;
  font-size: 0.88rem;
}

.orders-row-pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  justify-content: flex-end;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}

.orders-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.orders-pill-warn {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

.orders-pill-ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.orders-pill-refund {
  border-color: #e5e7eb;
  background: #f8fafc;
  color: var(--muted);
  padding: 0.22rem 0.65rem;
  font-size: 0.72rem;
}

.orders-row-note {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.orders-detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.85rem 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  background: #fafbfd;
}

.orders-detail-meta-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
}

.orders-detail-meta-item .orders-pill {
  align-self: flex-start;
  width: fit-content;
  max-width: max-content;
  justify-content: center;
}

.orders-status {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

.orders-status-processing {
  color: #b45309;
  background: #fffbeb;
  border-color: #fcd34d;
}

.orders-status-delivered {
  color: #15803d;
  background: #ecfdf5;
  border-color: #86efac;
}

.orders-status-cancelled {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fecaca;
}

.orders-status-refunded {
  color: #475569;
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.orders-detail-meta-wide {
  grid-column: 1 / -1;
}

.orders-detail-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

.orders-detail-value {
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.4;
}

.orders-detail-totals {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  border-top: 1px solid var(--line);
  background: #fafbfd;
}

.orders-detail-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.orders-detail-grand {
  margin-top: 0.25rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
  color: var(--ink) !important;
  font-weight: 700;
  font-size: 1rem !important;
}

.orders-review-form-wrap {
  padding: 0 1rem 1rem;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h, 6.75rem) + 0.75rem);
}

.orders-review-form {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
}

.orders-page .pagination {
  margin-top: 1.25rem;
}

@media (max-width: 720px) {
  .orders-list-head {
    display: none;
  }

  .orders-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    align-items: start;
  }

  .orders-row-price {
    display: none;
  }

  .orders-row-price-mobile,
  .orders-row-pills-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.35rem;
  }

  .orders-row-price-mobile {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ink);
  }

  .orders-row-pills {
    display: none;
  }

  .orders-row-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 520px) {
  .orders-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .orders-row {
    padding: 0.85rem;
  }

  .orders-row-thumb {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 600px) {
  .acc-block-actions .btn {
    min-width: 0;
  }
}

/* About page */
.page-about .about-hero,
.about-hero {
  position: relative;
  padding: 4.5rem 0 4rem;
  overflow: hidden;
  background: linear-gradient(145deg, #072848 0%, #0b3a6e 55%, #134e8a 100%);
  color: #e8eef7;
}
.about-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.28), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(26, 95, 168, 0.4), transparent 50%);
}
.about-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}
.about-eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232, 238, 247, 0.72);
}
.about-brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
}
.about-brand span { color: #fb923c; }
.about-lead {
  margin: 0 0 1.5rem;
  font-size: 1.08rem;
  line-height: 1.55;
  color: rgba(232, 238, 247, 0.88);
  max-width: 34rem;
}
.about-hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.about-hero .btn-secondary {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}
.about-hero .btn-secondary:focus-visible,
.about-hero .btn-secondary:active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
@media (hover: hover) and (pointer: fine) {
  .about-hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
  }
}
.about-section { padding: 3.75rem 0; }
.about-section-alt {
  background: #f3f6fb;
}
.about-section-head { max-width: 36rem; margin-bottom: 2rem; }
.about-section-head h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.55rem, 2.5vw, 2rem);
}
.about-section-head p { margin: 0; color: var(--muted); }
.about-story {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}
.about-story-copy h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.55rem, 2.5vw, 2rem);
}
.about-story-copy p {
  margin: 0 0 1rem;
  color: #475569;
  line-height: 1.65;
  font-size: 1.02rem;
}
.about-facts {
  display: grid;
  gap: 1rem;
  padding: 1.35rem 1.4rem;
  border-left: 3px solid var(--orange);
  background: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 0 10px 28px rgba(7, 40, 72, 0.05);
}
.about-facts div { display: grid; gap: 0.2rem; }
.about-facts strong {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}
.about-facts span { color: #475569; line-height: 1.45; }
.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.about-pillar h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  color: var(--navy);
}
.about-pillar p {
  margin: 0;
  color: #475569;
  line-height: 1.55;
}
.about-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 2.1rem;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(135deg, #072848, #0b3a6e 60%, #1a5fa8);
  color: #e8eef7;
}
.about-cta h2 {
  margin: 0 0 0.4rem;
  color: #fff;
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
}
.about-cta p { margin: 0; color: rgba(232, 238, 247, 0.85); }
.about-cta-meta { margin-top: 0.75rem !important; font-size: 0.92rem; }
.about-cta-meta a { color: #fdba74; font-weight: 650; }
.about-cta-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; flex-shrink: 0; }
.about-cta .btn-secondary {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}
.about-cta .btn-secondary:focus-visible,
.about-cta .btn-secondary:active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
@media (hover: hover) and (pointer: fine) {
  .about-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }
}
@media (max-width: 900px) {
  .about-hero { padding: 3.25rem 0 2.75rem; }
  .about-story,
  .about-pillars {
    grid-template-columns: 1fr;
  }
  .about-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
  }
  .about-facts {
    border-left: 0;
    border-top: 3px solid var(--orange);
    border-radius: var(--radius);
  }
}

/* Cart drawer */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 40, 72, 0.45);
  z-index: 1900;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.cart-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer-backdrop[hidden] {
  display: none !important;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 400px);
  max-width: 100%;
  background: #fff;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(7, 40, 72, 0.18);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  color: var(--ink);
  pointer-events: none;
}

.cart-drawer[hidden] {
  display: none !important;
}

.cart-drawer.is-open {
  display: flex !important;
  transform: translateX(0);
  pointer-events: auto;
}

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.cart-drawer-head h2 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--navy);
}

.cart-drawer-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.cart-drawer-close:hover {
  background: #f1f5f9;
  color: var(--navy);
}

.cart-drawer-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0.35rem 1rem 0.5rem;
  min-height: 0;
}

.cart-drawer-empty {
  display: grid;
  gap: 0.85rem;
  place-items: center;
  text-align: center;
  padding: 2.5rem 0.5rem;
  color: var(--muted);
}

.cart-drawer-empty p {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}

.cart-drawer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.cart-drawer-item {
  display: flex;
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #eef2f7;
}

.cart-drawer-item:last-child {
  border-bottom: 0;
}

.cart-drawer-thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}

.cart-drawer-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.cart-drawer-meta {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 0.15rem;
  align-content: start;
}

.cart-drawer-name {
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-drawer-name:link,
.cart-drawer-name:visited {
  color: var(--ink);
}

.cart-drawer-name:focus-visible {
  color: var(--orange);
}

.cart-drawer-price {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: baseline;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
}

.cart-drawer-compare {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: line-through;
}

.cart-drawer-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.1rem;
}

.cart-drawer-qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #d0d3d9;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  min-height: 2.15rem;
}

.cart-drawer-qty-btn {
  width: 2.15rem;
  height: 2.15rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.cart-drawer-qty-btn:focus-visible:not(:disabled) {
  background: var(--orange);
  color: #fff;
}

.cart-drawer-qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.cart-drawer-qty-val {
  min-width: 1.75rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  border-left: 1px solid #e8ecf1;
  border-right: 1px solid #e8ecf1;
  line-height: 2.15rem;
}

.cart-drawer-remove {
  min-height: 2.15rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
}

.cart-drawer-foot {
  flex-shrink: 0;
  padding: 0.7rem 1rem 0.85rem;
  border-top: 1px solid var(--line);
  background: #fff;
  display: grid;
  gap: 0.4rem;
}

.cart-drawer-foot[hidden] {
  display: none !important;
}

.cart-drawer-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 1rem;
  color: var(--ink);
}

.cart-drawer-subtotal strong {
  color: var(--navy);
  font-size: 1.1rem;
}

.cart-drawer-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Cart scroll-lock uses html.ih-scroll-lock; these only style the drawer chrome */
html.cart-drawer-open {
  background-color: #fff;
}

html.cart-drawer-open .cart-drawer-backdrop {
  right: 0;
}

/* Cover any remaining gutter strip beside the cart (visual only; not page padding) */
html.cart-drawer-open .cart-drawer {
  right: calc(var(--scroll-lock-edge, 0px) * -1);
  width: min(100%, calc(400px + var(--scroll-lock-edge, 0px)));
  padding-right: var(--scroll-lock-edge, 0px);
}

.cart-drawer.is-loading .cart-drawer-body {
  opacity: 0.55;
  pointer-events: none;
}

/* Filter drawer — left side panel (mobile / tablet) */
.filter-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 40, 72, 0.45);
  z-index: 1900;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.filter-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.filter-drawer-backdrop[hidden] {
  display: none !important;
}

.filter-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(100%, 360px);
  max-width: 100%;
  background: #fff;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  box-shadow: 12px 0 40px rgba(7, 40, 72, 0.18);
  transform: translateX(-100%);
  transition: transform 0.28s ease;
  color: var(--ink);
  pointer-events: none;
}

.filter-drawer[hidden] {
  display: none !important;
}

.filter-drawer.is-open {
  display: flex !important;
  transform: translateX(0);
  pointer-events: auto;
}

.filter-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.filter-drawer-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.filter-drawer-close {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.filter-drawer-close:hover {
  background: #f1f5f9;
  color: var(--orange-dark);
}

.filter-drawer-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem 1.1rem 1.5rem;
  -webkit-overflow-scrolling: touch;
}

.filter-drawer-section {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.filter-drawer-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.filter-drawer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.filter-drawer-link {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}

.filter-drawer-link:hover {
  background: #f4f7fb;
  color: var(--navy);
}

.filter-drawer-link.is-active {
  background: rgba(249, 115, 22, 0.12);
  color: var(--orange-dark);
}

.filter-drawer-price {
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
}

.filter-drawer-price .price-range-slider {
  order: 0;
  flex: none;
  width: 100%;
  min-width: 0;
}

.filter-drawer-price .price-range-box {
  width: 100%;
}

.filter-drawer-foot {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.filter-drawer-foot .btn-block {
  width: 100%;
}

/* Catalog drawer open: lock page scroll like cart */
html.filter-drawer-open,
body.filter-drawer-open {
  overflow: hidden;
}

html.filter-drawer-open .site-top {
  padding-right: var(--scroll-lock-pad, 0px);
}

/* ── Social media videos (stacked carousel, Reelfy-style) ─────────── */

.social-videos-section {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
  background: #fff;
  contain: layout;
}

.social-videos-section > .container {
  width: min(100% - 1.5rem, 1520px);
  max-width: 100%;
}

.social-videos-head {
  text-align: center;
  margin-bottom: 1.75rem;
}

.social-videos-head h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.55rem, 2.8vw, 1.92rem);
  font-weight: 600;
  color: #222;
  letter-spacing: -0.01em;
}

.social-videos-head p {
  margin: 0;
  font-size: clamp(0.95rem, 1.5vw, 1.12rem);
  color: #222;
  font-weight: 400;
}

.social-videos-carousel {
  --sv-gap: 14px;
  --sv-visible: 5;
  --sv-side-h: 0.875;
  --sv-card: clamp(200px, 22vw, 280px);
  --sv-full-h: calc(var(--sv-card) * 16 / 9);
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.social-videos-viewport {
  grid-column: 1;
  grid-row: 1;
  overflow: hidden;
  position: relative;
  height: var(--sv-full-h);
  width: min(
    100%,
    calc(var(--sv-card) * var(--sv-visible) + var(--sv-gap) * (var(--sv-visible) - 1))
  );
  max-width: 100%;
  justify-self: center;
  min-width: 0;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.social-videos-prev,
.social-videos-next {
  position: absolute;
  top: calc(var(--sv-full-h) / 2);
  transform: translateY(-50%);
  z-index: 10;
  grid-column: 1;
  grid-row: 1;
}

.social-videos-prev {
  left: 6px;
  right: auto;
}

.social-videos-next {
  right: 6px;
  left: auto;
}

.social-videos-track {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--sv-gap);
  height: 100%;
  width: max-content;
  position: relative;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Center the middle clip before JS runs (5-up: offset by 2 cards) */
.social-videos-carousel[data-count]:not([data-count="1"]):not([data-count="2"]) .social-videos-track {
  transform: translate3d(calc(-2 * var(--sv-card) - 2 * var(--sv-gap)), 0, 0);
}

.social-video-card {
  flex: 0 0 var(--sv-card);
  width: var(--sv-card);
  height: var(--sv-full-h);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
}

.social-video-card.is-active {
  z-index: 3;
}

/* Scale center clip up — transform only, so the footer below never shifts */
.social-video-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  overflow: hidden;
  background: #111;
  transform: scale(var(--sv-side-h));
  transform-origin: center center;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.social-video-card.is-active .social-video-frame {
  transform: scale(1);
}

.social-video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #111;
  pointer-events: none;
}

/* Side clips (and center until play starts) show cover first */
.social-video-cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.25s ease;
}

/* Only hide cover once the center clip is actually playing */
.social-video-card.is-active.is-playing .social-video-cover {
  opacity: 0;
}

.social-video-play {
  position: absolute;
  inset: auto auto 12px 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-video-card.is-active .social-video-play {
  opacity: 0;
  transform: scale(0.85);
}

.social-video-card:hover .social-video-play,
.social-video-card:focus-within .social-video-play,
.social-video-card.is-active:hover .social-video-play {
  opacity: 1;
  transform: scale(1);
}

.social-videos-nav {
  z-index: 10;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(7, 40, 72, 0.14);
  padding: 0;
  flex: 0 0 auto;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.social-videos-nav svg {
  display: block;
  stroke: currentColor;
}

.social-videos-nav:hover {
  background: #fff;
  color: var(--orange-dark);
  transform: translateY(-50%);
  box-shadow: 0 4px 14px rgba(7, 40, 72, 0.14);
}

.social-videos-nav:active {
  transform: translateY(-50%) scale(0.96);
}

.social-videos-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.35rem;
  grid-column: 1;
  grid-row: 2;
  width: 100%;
}

.social-videos-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #cfcfcf;
  cursor: pointer;
  transition: background 0.2s ease;
}

.social-videos-dot.is-active {
  background: var(--orange);
}

@media (max-width: 1100px) {
  .social-videos-carousel {
    --sv-visible: 3;
    --sv-card: clamp(210px, 26vw, 270px);
    --sv-gap: 12px;
    --sv-side-h: 0.9;
  }
}

@media (max-width: 900px) {
  .social-videos-carousel {
    --sv-visible: 3;
    --sv-card: clamp(200px, 32vw, 260px);
    --sv-gap: 10px;
    --sv-side-h: 0.9;
    column-gap: 0.4rem;
  }
}

@media (max-width: 720px) {
  .social-videos-carousel {
    --sv-visible: 3;
    --sv-card: min(250px, calc((100vw - 1.25rem) * 0.54));
    --sv-gap: 10px;
  }
}

@media (max-width: 640px) {
  .social-videos-carousel {
    --sv-visible: 3;
    --sv-card: min(270px, calc((100vw - 1rem) * 0.6));
    --sv-gap: 8px;
    --sv-side-h: 0.88;
    position: relative;
    grid-template-columns: 1fr;
    width: 100%;
    column-gap: 0;
    padding-inline: 0;
  }

  .social-videos-viewport {
    grid-column: 1;
    grid-row: 1;
    width: min(100%, calc(var(--sv-card) * var(--sv-visible) + var(--sv-gap) * (var(--sv-visible) - 1)));
    max-width: 100%;
  }

  .social-videos-carousel .social-videos-nav {
    display: none;
  }

  .social-videos-dots {
    grid-column: 1;
    grid-row: 2;
    margin-top: 1.1rem;
  }

  .social-videos-section {
    padding-top: 2rem;
    padding-bottom: 2.25rem;
  }

  .social-videos-head {
    margin-bottom: 1.25rem;
  }

  .social-video-frame {
    border-radius: 14px;
  }
}

@media (max-width: 420px) {
  .social-videos-carousel {
    --sv-visible: 3;
    --sv-card: min(250px, calc((100vw - 0.75rem) * 0.64));
    --sv-gap: 6px;
  }
}

/* Social video lightbox — scroll-lock via html.ih-scroll-lock */
.sv-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.sv-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sv-lightbox[hidden] {
  display: none !important;
}

.sv-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 20, 0.72);
  cursor: pointer;
}

.sv-lightbox-dialog {
  position: relative;
  z-index: 1;
  /* Keep true 9:16 — when height is capped, shrink width so sides aren't cropped */
  width: min(420px, calc(100vw - 2rem), calc(min(78vh, 720px) * 9 / 16));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
}

.sv-lightbox-close {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

.sv-lightbox-close:hover,
.sv-lightbox-close:focus-visible {
  background: var(--orange);
  color: #fff;
  outline: none;
}

.sv-lightbox-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #1a2332;
  aspect-ratio: 9 / 16;
  width: 100%;
  height: auto;
  max-height: min(78vh, 720px);
}

.sv-lightbox-frame::before {
  content: "";
  position: absolute;
  inset: -18%;
  background-color: #1a2332;
  background-image: var(--sv-poster, none);
  background-size: cover;
  background-position: center;
  filter: blur(28px) saturate(1.05) brightness(0.75);
  transform: scale(1.15);
  pointer-events: none;
}

.sv-lightbox-frame video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

@media (max-width: 480px) {
  .sv-lightbox {
    padding: 0.75rem;
  }

  .sv-lightbox-dialog {
    width: min(100%, calc(100vw - 1.5rem), calc(min(78vh, 720px) * 9 / 16));
  }

  .sv-lightbox-close {
    top: 0.4rem;
    right: 0.4rem;
  }
}



/* Track order page */
.track-page {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
  padding-bottom: 3rem;
}

.track-form,
.track-result {
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: 44rem;
  padding: 1.5rem;
}

.track-intro,
.track-meta,
.track-stopped {
  margin: 0;
  color: var(--muted);
}

.track-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.track-fields label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.track-form .btn {
  justify-self: start;
}

.track-result-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.track-result-head h2 {
  margin: 0;
}

.track-badge {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  background: #fff7ed;
  color: var(--orange-dark);
}

.track-badge-delivered {
  background: #f0fdf4;
  color: var(--success);
}

.track-badge-cancelled,
.track-badge-refunded {
  background: #fef2f2;
  color: var(--danger);
}

.track-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.track-steps li {
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
}

.track-steps li.is-done {
  color: var(--ink);
  font-weight: 600;
}

.track-step-dot {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--surface);
}

.track-steps li.is-done .track-step-dot {
  border-color: var(--success);
  background: var(--success);
}

.track-step-at {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}

.track-items {
  list-style: none;
  margin: 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.5rem;
}

.track-items li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.track-items small {
  color: var(--muted);
}

.track-total {
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
  font-weight: 700;
}

@media (max-width: 600px) {
  .track-fields {
    grid-template-columns: 1fr;
  }

  .track-form,
  .track-result {
    padding: 1.1rem;
  }
}

/* 404 page */
.not-found-page {
  padding: 3rem 0 4rem;
}

.not-found-panel {
  max-width: 34rem;
  margin: 0 auto;
  padding: 2.25rem 1.5rem;
  text-align: center;
  display: grid;
  gap: 0.85rem;
  justify-items: center;
}

.not-found-panel h1,
.not-found-panel p {
  margin: 0;
}

.not-found-code {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--orange);
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.not-found-help {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Product gallery swipe (phones / tablets) — browser keeps vertical scrolling */
.gallery-main.has-swipe {
  touch-action: pan-y;
}

.gallery-main.has-swipe img {
  -webkit-user-drag: none;
  user-select: none;
  will-change: transform;
}

/* Cart drawer — "sold out / quantity updated" messages */
.cart-drawer-notice {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 0.86rem;
  line-height: 1.4;
}

.cart-drawer-notice p {
  margin: 0;
}

.cart-drawer-notice p + p {
  margin-top: 0.35rem;
}

/* ── Filters button + drawer: smooth open/close (phones & tablets) ── */
@media (max-width: 960px) {
  /* Button keeps its rounded shape when open — just turns "active" orange */
  .catalog-filter-menu.is-open .catalog-filter-icon-btn,
  .catalog-filter-menu.is-open.has-active .catalog-filter-icon-btn,
  .catalog-filter-menu.is-open .catalog-filter-icon-btn:hover,
  .catalog-filter-menu.is-open .catalog-filter-icon-btn:focus,
  .catalog-filter-menu.is-open .catalog-filter-icon-btn:active {
    border-color: rgba(249, 115, 22, 0.55);
    border-bottom-color: rgba(249, 115, 22, 0.55);
    border-radius: 10px;
    background: #fff7ed;
    color: var(--orange-dark);
  }

  .catalog-filter-icon-btn {
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  }

  .catalog-filter-icon-btn:active {
    transform: scale(0.94);
  }

  /* Panel slides in AND out (stay visible until the slide-out has finished) */
  .catalog-cat-panel {
    transition: transform 0.32s cubic-bezier(0.22, 0.8, 0.24, 1), visibility 0s linear 0.32s;
  }

  .catalog-cat-panel.is-drawer-open {
    transition: transform 0.32s cubic-bezier(0.22, 0.8, 0.24, 1), visibility 0s;
  }

  /* Dark overlay fades in and out instead of snapping */
  .catalog-drawer-backdrop,
  .catalog-drawer-backdrop[hidden] {
    display: block !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  }

  .catalog-drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.3s ease, visibility 0s;
  }
}

@media (max-width: 960px) and (prefers-reduced-motion: reduce) {
  .catalog-cat-panel,
  .catalog-cat-panel.is-drawer-open,
  .catalog-drawer-backdrop,
  .catalog-drawer-backdrop.is-open {
    transition: none;
  }
}

/* Photo skeleton: shimmer in the image box until the photo has loaded (set by main.js) */
.is-img-loading {
  background: linear-gradient(90deg, #eef2f7 0%, #f7f9fc 45%, #eef2f7 90%);
  background-size: 200% 100%;
  animation: catalog-skeleton-shine 1.1s ease-in-out infinite;
}

.is-img-loading img {
  opacity: 0;
}

.product-card-media img,
.category-card-media img,
.category-tile img,
.gallery-main img {
  transition: opacity 0.25s ease, transform 0.35s ease;
}

@media (prefers-reduced-motion: reduce) {
  .is-img-loading {
    animation: none;
  }
}

/* Categories dropdown (side panel / filter drawer): box and list joined as one piece when open */
.catalog-cat-panel .catalog-panel-parent-dropdown.is-open .catalog-cat-trigger {
  border-color: var(--navy);
  border-bottom-color: var(--line);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.catalog-cat-panel .catalog-panel-parent-dropdown.is-open .catalog-cat-menu {
  top: 100%;
  margin-top: 0;
  border: 1px solid var(--navy);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 14px 24px rgba(7, 40, 72, 0.12);
}

/* Category dropdown in filters: keep the navy outline when focus moves away */
.catalog-cat-panel .catalog-panel-parent-dropdown .catalog-cat-trigger {
  border-color: var(--navy);
}

/* Mobile / tablet filter drawer: taller category list when opened */
@media (max-width: 960px) {
  .catalog-cat-panel .catalog-panel-parent-dropdown .catalog-cat-menu {
    max-height: min(26rem, 65vh);
  }
}

/* Footer: "Powered by Znex Digital" next to the copyright */
.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1.25rem;
}
.footer-bottom .footer-powered a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}
.footer-bottom .footer-powered a:hover {
  color: var(--orange);
}
@media (max-width: 1024px) {
  .footer-bottom .container {
    flex-direction: column;
    justify-content: center;
  }
}
