/* ==========================================================================
   AxonSystems Online Store — store-specific components
   Loaded alongside css/style.css on /store/ pages only. The light theme
   itself now lives sitewide in css/style.css's :root — this file only
   holds the store's own components (header, product cards, filters, cart,
   checkout, account pages) that were already built against those tokens.
   ========================================================================== */

/* ---------- Standalone store header ----------
   Deliberately its own header, not the corporate dark .site-header — the
   store is meant to feel like a distinct storefront destination even
   though it's the same company/site under the hood. Only one link back
   to the corporate site (the "Home" link in the category bar) by design. */

:root {
  --store-header-h: 76px;
}

.store-header {
  position: relative;
  z-index: 60;
}

/* Main header: logo, big search, account + cart */
.store-header__main {
  position: sticky;
  top: 0;
  z-index: 55;
  background: var(--white);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 4px 18px -8px rgba(22, 35, 74, 0.12);
}

.store-header__main-inner {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 620px) 1fr;
  align-items: center;
  gap: 24px;
  min-height: var(--store-header-h);
  padding-block: 12px;
}

.store-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  justify-self: start;
}

.store-header__logo img {
  height: 46px;
  width: auto;
}

.store-header__logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-900);
  line-height: 1.15;
}

.store-header__logo-text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.store-header__search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  justify-self: center;
  border: 2px solid var(--blue-500);
  border-radius: 999px;
  background: var(--white);
  padding: 4px 4px 4px 20px;
  transition: box-shadow var(--dur-fast) ease;
}

/* ---------- Live search suggestions (Sept 2026) ----------
   Appears under the header search box the moment someone starts typing —
   see js/store/search-suggest.js, which appends this panel into the
   <form> itself (hence position:relative on .store-header__search above)
   so it tracks the box on every page without per-page markup. */
.search-suggest {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card-hover);
  max-height: 420px;
  overflow-y: auto;
  z-index: 60;
  padding: 8px;
}

.search-suggest__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: var(--radius-sm);
  color: inherit;
  text-decoration: none;
}

.search-suggest__item:hover,
.search-suggest__item.is-active {
  background: var(--silver-100);
}

.search-suggest__item img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--silver-100);
  flex-shrink: 0;
}

.search-suggest__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.search-suggest__name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggest__price {
  font-size: 0.82rem;
  color: var(--blue-600);
  font-weight: 700;
}

.search-suggest__see-all {
  display: block;
  text-align: center;
  padding: 10px 8px 6px;
  margin-top: 4px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-600);
  text-decoration: none;
}

.search-suggest__see-all:hover {
  text-decoration: underline;
}

.search-suggest__empty {
  padding: 16px 10px;
  font-size: 0.86rem;
  color: var(--ink-500);
  text-align: center;
}

.store-header__search:focus-within {
  box-shadow: 0 0 0 4px rgba(47, 111, 239, 0.15);
}

.store-header__search input {
  border: none;
  outline: none;
  background: none;
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--navy-900);
  flex: 1;
  min-width: 0;
}

.store-header__search button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--grad-brand);
  color: var(--navy-950);
  flex-shrink: 0;
}

.store-header__search button svg {
  width: 18px;
  height: 18px;
}

.store-header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  justify-self: end;
}

/* The cart is deliberately set apart from account/search with real
   breathing room + a divider, per design brief — it should read as its
   own zone on the far right, not just another nav item. */
.store-header__cart-zone {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 18px;
  margin-left: 8px;
  border-left: 1px solid var(--border-soft);
}

/* Colored department bar */
.store-header__cats {
  background: var(--grad-brand);
  position: sticky;
  top: var(--store-header-h);
  z-index: 50;
}

.store-header__cats-inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.store-header__cats-inner::-webkit-scrollbar {
  display: none;
}

.store-header__cats-inner a {
  padding: 12px 18px;
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(4, 6, 13, 0.75);
  white-space: nowrap;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}

.store-header__cats-inner a:hover,
.store-header__cats-inner a[aria-current="page"] {
  background: rgba(4, 6, 13, 0.12);
  color: var(--navy-950);
}

/* Sept 2026 — prev/next scroll affordance for this strip, added by
   category-nav.js once it knows whether the rendered category list
   actually overflows (see that file's setUpScrollArrows for the why).
   Deliberately NOT hidden on narrow screens like .promo-carousel__arrow
   is below 640px — a phone is the exact case this exists for.

   Solid dark circle + white icon, no backdrop-filter — an earlier version
   copied .promo-carousel__arrow's frosted-glass look (translucent
   background + backdrop-filter blur), which turned out to only half-render
   on real phones: a blurry patch with no visible chevron, reported on an
   actual device even though it looked fine in every desktop-browser test.
   backdrop-filter on a descendant of a position:sticky ancestor (this bar
   is sticky) is a known bad combination on mobile Safari and some Android
   WebViews — the blur composites but the element's own background/content
   painted "underneath" it often doesn't, which matches exactly what was
   reported. Solid colors have no such ambiguity, so that's what a
   customer-facing "which way do I swipe" affordance gets — not the
   subtler frosted look, which stays fine for the promo carousel since
   that one hides itself on mobile entirely and only has to render right
   on desktop. */
.store-header__cats {
  position: sticky; /* already set above; restated so this rule block reads standalone */
  top: var(--store-header-h);
}

.store-header__cats-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(4, 6, 13, 0.55);
  box-shadow: 0 1px 3px rgba(4, 6, 13, 0.25);
  transition: background var(--dur-fast) ease, transform var(--dur-fast) ease;
}

.store-header__cats-arrow:hover {
  background: rgba(4, 6, 13, 0.75);
}

.store-header__cats-arrow[hidden] {
  display: none;
}

.store-header__cats-arrow--prev {
  left: 5px;
}

.store-header__cats-arrow--next {
  right: 5px;
}

.store-header__cats-arrow svg {
  width: 13px;
  height: 13px;
}

/* Extra room so the first/last link never sits half-hidden under a
   visible arrow button. Tied to "is there any overflow at all" rather
   than to the individual prev/next hidden state below, deliberately —
   that state changes as the strip is scrolled (the prev arrow appears/
   disappears near the start), and padding tracking it directly would
   reflow the whole strip's content mid-scroll. This only changes when
   the list itself gains or loses enough entries to overflow. */
.store-header__cats.is-scrollable .store-header__cats-inner {
  padding-left: 36px;
  padding-right: 36px;
}

/* Soft fade on whichever edge still has more to scroll to — pure
   decoration (the arrows are the real, clickable affordance), but a
   quieter continuous hint for anyone who scrolls past the buttons or
   never notices them (e.g. dragging the strip directly on a touchscreen). */
.store-header__cats::before,
.store-header__cats::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-fast) ease;
}
.store-header__cats::before {
  left: 36px;
  background: linear-gradient(to right, rgba(4, 6, 13, 0.14), transparent);
}
.store-header__cats::after {
  right: 36px;
  background: linear-gradient(to left, rgba(4, 6, 13, 0.14), transparent);
}
.store-header__cats.has-fade-start::before,
.store-header__cats.has-fade-end::after {
  opacity: 1;
}

@media (max-width: 780px) {
  .store-header__main-inner {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "logo actions"
      "search search";
    gap: 12px;
  }
  .store-header__logo {
    grid-area: logo;
  }
  .store-header__actions {
    grid-area: actions;
  }
  .store-header__search {
    grid-area: search;
  }
  .store-header__cats {
    /* Sept 2026: was `position: static` — changed to `relative` (which
       behaves identically for this element itself: no offsets are set,
       so it stays in normal flow exactly like static did, still not
       sticky on mobile) because `static` doesn't establish a positioning
       context for absolutely-positioned children, and the scroll-arrow
       buttons + edge fade added below (see .store-header__cats-arrow)
       are exactly that — position:absolute, meant to anchor to this bar.
       Under `static` they anchored to the next positioned ancestor up
       the tree instead, landing nowhere near this bar — which is exactly
       why they silently failed to appear specifically on a real mobile
       viewport (this rule only applies under 780px) despite testing fine
       on desktop, where this media query never applied at all. */
    position: relative;
  }
  /* Logo mark only on mobile — the wordmark was crowding the account
     and cart controls out of the top row. The logo's alt text still
     carries the company name for screen readers. */
  .store-header__logo-text {
    display: none;
  }
}

.cart-trigger {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: var(--white);
  flex-shrink: 0;
  transition: border-color var(--dur-fast) ease, transform var(--dur-fast) ease;
}

.cart-trigger:hover {
  border-color: var(--blue-500);
  transform: translateY(-2px);
}

.cart-trigger svg {
  width: 20px;
  height: 20px;
  color: var(--navy-800);
}

.account-menu {
  position: relative;
  flex-shrink: 0;
}

.account-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-800);
  transition: border-color var(--dur-fast) ease;
  max-width: 140px;
}

.account-trigger:hover {
  border-color: var(--blue-500);
}

.account-trigger svg {
  width: 18px;
  height: 18px;
  color: var(--navy-800);
  flex-shrink: 0;
}

.account-trigger span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: 0 20px 40px -16px rgba(22, 35, 74, 0.25);
  z-index: 50;
}

.account-dropdown a,
.account-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--navy-800);
  background: none;
  border: none;
  font-family: var(--font-body);
  cursor: pointer;
}

.account-dropdown a:hover,
.account-dropdown button:hover {
  background: var(--silver-100);
  color: var(--blue-600);
}

@media (max-width: 640px) {
  .account-trigger span {
    display: none;
  }
  .account-trigger {
    width: 42px;
    padding: 0;
    justify-content: center;
  }
}

.cart-trigger__count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--grad-brand);
  color: var(--navy-950);
  font-size: 0.68rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
}

/* ---------- Promo hero carousel ----------
   Replaces the old static .store-hero text block. Slide art is CSS
   gradients + inline icons (no fabricated product photography) so it
   stays honest about what's actually in the catalog. */
.promo-carousel {
  position: relative;
  overflow: hidden;
}

.promo-carousel__track {
  display: flex;
  transition: transform var(--dur-med) var(--ease-out-quart);
}

.promo-slide {
  flex: 0 0 100%;
  min-height: clamp(280px, 40vw, 420px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.promo-slide__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.promo-slide__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 70% 90% at 20% 50%, black, transparent 75%);
}

.promo-slide--1 .promo-slide__bg { background: linear-gradient(120deg, var(--navy-900), var(--blue-700) 65%, var(--cyan-500)); }
.promo-slide--2 .promo-slide__bg { background: linear-gradient(120deg, #1c1440, #6d28d9 60%, #22d3ee); }
.promo-slide--3 .promo-slide__bg { background: linear-gradient(120deg, #041c17, #0f9d68 65%, #8ff0ff); }
.promo-slide--4 .promo-slide__bg { background: linear-gradient(120deg, var(--navy-900), #c2410c 70%, #f97316); }

.promo-slide__content {
  position: relative;
  z-index: 2;
  padding: clamp(32px, 6vw, 64px) clamp(24px, 8vw, 96px);
  max-width: 620px;
}

/* Fills the open space to the right of the text on wide screens — the
   text column above caps at 620px, so anything past that on a big
   monitor was just empty gradient before this. Sized off the slide's own
   box (top/bottom insets) rather than a fixed square, so it claims as
   much of that space as the slide's height actually allows instead of
   topping out at an arbitrary width — object-fit: cover center-crops the
   square source to fill whatever rectangle that leaves. Hidden below
   900px: there isn't width left for it once the text needs to breathe,
   and the carousel already reads fine as text-only on tablet/mobile (see
   the responsive audit). */
.promo-slide__media {
  display: none;
  position: absolute;
  z-index: 1;
  right: clamp(16px, 4vw, 56px);
  top: 50%;
  transform: translateY(-50%);
  /* Both dimensions set explicitly rather than stretched via top+bottom —
     a <video> is a replaced element, so with height:auto a browser sizes
     it from its own intrinsic ratio (or the 300×150 UA default before
     metadata loads) and ignores inset-based stretching entirely. */
  width: clamp(320px, 34vw, 620px);
  height: clamp(240px, 34vw, 440px);
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
}

/* Only once the text column (max 620px + its own padding) and this element
   both comfortably fit side by side — below this the slide already reads
   fine as text-only (see the responsive audit). */
@media (min-width: 1180px) {
  .promo-slide__media {
    display: block;
  }
}

.promo-slide__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-300);
  margin-bottom: 14px;
}

.promo-slide h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  margin-bottom: 12px;
}

.promo-slide p {
  color: var(--ink-on-dark-300);
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  max-width: 460px;
  margin-bottom: 26px;
}

.promo-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-on-dark-strong);
  background: rgba(4, 6, 13, 0.35);
  backdrop-filter: blur(6px);
  color: var(--white);
  display: grid;
  place-items: center;
  transition: background var(--dur-fast) ease, transform var(--dur-fast) ease;
}

.promo-carousel__arrow:hover {
  background: rgba(4, 6, 13, 0.55);
  transform: translateY(-50%) scale(1.06);
}

.promo-carousel__arrow--prev { left: 18px; }
.promo-carousel__arrow--next { right: 18px; }

.promo-carousel__arrow svg { width: 20px; height: 20px; }

.promo-carousel__dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 8px;
}

.promo-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  transition: background var(--dur-fast) ease, width var(--dur-fast) ease;
}

.promo-carousel__dot[aria-current="true"] {
  background: var(--white);
  width: 22px;
  border-radius: 4px;
}

@media (max-width: 640px) {
  .promo-carousel__arrow { display: none; }
}

/* ---------- Category tiles ---------- */
.category-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.category-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: var(--white);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: border-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out-quart), box-shadow var(--dur-fast) ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--grad-brand);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--dur-fast) ease;
  pointer-events: none;
}

.category-tile:hover {
  border-color: transparent;
  transform: translateY(-5px);
  box-shadow: var(--shadow-pop);
}

.category-tile:hover::after {
  opacity: 1;
}

.category-tile__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--grad-brand-soft);
  flex-shrink: 0;
}

.category-tile__icon svg {
  width: 26px;
  height: 26px;
  color: var(--blue-600);
}

/* Each category gets its own accent instead of one repeated blue icon —
   plain white cards to be able to lean on color for scannability, closer
   to how big-box storefronts color-code departments. Order matches the
   fixed category list in store/index.html (Cellphones, Samsung, Laptops,
   Gaming PCs, Watches, Headphones, Speakers, Accessories). */
.category-tile:nth-of-type(1) .category-tile__icon { background: #e0edff; }
.category-tile:nth-of-type(1) .category-tile__icon svg { color: #1e54c7; }
.category-tile:nth-of-type(2) .category-tile__icon { background: #e4f7f0; }
.category-tile:nth-of-type(2) .category-tile__icon svg { color: #0f9d68; }
.category-tile:nth-of-type(3) .category-tile__icon { background: #f2ecff; }
.category-tile:nth-of-type(3) .category-tile__icon svg { color: #7c3aed; }
.category-tile:nth-of-type(4) .category-tile__icon { background: #fff1e6; }
.category-tile:nth-of-type(4) .category-tile__icon svg { color: #c2570b; }
.category-tile:nth-of-type(5) .category-tile__icon { background: #fde9f3; }
.category-tile:nth-of-type(5) .category-tile__icon svg { color: #c2258a; }
.category-tile:nth-of-type(6) .category-tile__icon { background: #fdecec; }
.category-tile:nth-of-type(6) .category-tile__icon svg { color: #d13c3c; }
.category-tile:nth-of-type(7) .category-tile__icon { background: #e6faf6; }
.category-tile:nth-of-type(7) .category-tile__icon svg { color: #0c9488; }
.category-tile:nth-of-type(8) .category-tile__icon { background: #eef0ff; }
.category-tile:nth-of-type(8) .category-tile__icon svg { color: #4338ca; }

.category-tile h3 {
  font-size: 1.02rem;
  margin-bottom: 2px;
}

.category-tile p {
  font-size: 0.85rem;
  color: var(--ink-400);
}

/* ---------- PC Builder promo banner (home page) ---------- */
.pc-builder-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 30px 34px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #0b1224, #2f3564 55%, #4338ca);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow-pop);
  transition: transform var(--dur-fast) var(--ease-out-quart), box-shadow var(--dur-fast) ease;
}

.pc-builder-promo:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -20px rgba(67, 56, 202, 0.55);
}

.pc-builder-promo__text {
  max-width: 560px;
}

.pc-builder-promo__eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a8b3ff;
  margin-bottom: 8px;
}

.pc-builder-promo__text h3 {
  font-size: 1.4rem;
  margin: 0 0 8px;
  color: #fff;
}

.pc-builder-promo__text p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #c7cdf0;
}

.pc-builder-promo__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 13px 22px;
  border-radius: 999px;
  background: #fff;
  color: #14162b;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
}

/* ---------- Store section rhythm ----------
   Store pages pack more sections into the same scroll length than the
   corporate marketing pages this heading style was designed for — the
   sitewide clamp(36px,6vw,64px) reads as dead air here. */
.store-header ~ main .section-head {
  margin-bottom: clamp(24px, 4vw, 36px);
}

.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.section-head--split .section-head,
.section-head--split > div {
  margin-bottom: 0;
}

/* ---------- Today's Deals ---------- */
.deals-section {
  padding-block: 40px;
  background: linear-gradient(180deg, #fff7ed 0%, transparent 100%);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.eyebrow--deals {
  color: #c2410c;
}

.eyebrow--deals::before {
  background: linear-gradient(135deg, #f97316, #dc2626);
}

.deals-badge {
  padding: 6px 14px;
  border-radius: 999px;
  background: #ffedd5;
  color: #9a3412;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  margin-bottom: 4px;
}

/* ---------- Brand strip ---------- */
.brand-section {
  padding-block: 40px;
  background: var(--silver-100);
}

.brand-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.brand-chip {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-700);
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}

.brand-chip:hover {
  border-color: var(--blue-500);
  color: var(--blue-600);
}

/* ---------- Product grid & card ----------
   Fixed 4 columns on desktop (paired with pagination.js's
   DEFAULT_PAGE_SIZE = 24, i.e. 4 cols × 6 rows per page), stepping down at
   the same breakpoints the rest of the storefront already uses. */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

@media (max-width: 1180px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

/* Stays 2-up all the way down to phone widths (Takealot-style) rather than
   dropping to a single column — narrower cards below get their own,
   tighter type scale so two columns stay comfortable on a small screen. */
@media (max-width: 480px) {
  .product-grid {
    gap: 10px;
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--white);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: border-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out-quart), box-shadow var(--dur-fast) ease;
}

.product-card:hover {
  border-color: var(--blue-400);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.product-card__media {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--silver-100);
  overflow: hidden;
  padding: 16px;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  /* contain, not cover — the whole product stays visible and unclipped
     inside the box regardless of its photo's own aspect ratio, matching
     how a real photo (portrait phone shot, landscape laptop shot, square
     icon tile) actually looks rather than cropping it to fill the square. */
  object-fit: contain;
  transition: transform 0.6s var(--ease-out-quart);
}

.product-card:hover .product-card__media img {
  transform: scale(1.08);
}

.product-card__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 4px 10px -4px rgba(4, 6, 13, 0.28);
}

.badge--sale {
  background: linear-gradient(135deg, var(--accent-deal-2), var(--accent-deal));
  color: var(--white);
}

.badge--featured {
  background: var(--grad-brand);
  color: var(--navy-950);
}

.badge--low-stock {
  background: #fef3c7;
  color: #92400e;
  box-shadow: none;
}

.badge--out {
  background: var(--silver-200);
  color: var(--ink-500);
  box-shadow: none;
}

.badge--gift {
  background: #dcfce7;
  color: #15803d;
  box-shadow: none;
}

/* ---------- Save-amount chip (product card + product detail) ---------- */
.save-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--accent-deal-soft);
  color: var(--accent-deal);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.product-card__body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.product-card__brand {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.product-card__name {
  font-size: 1.04rem;
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1.4;
  flex: 1;
}

.product-card__name a {
  color: inherit;
}

.product-card__rating {
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-card__rating-count {
  font-size: 0.76rem;
  color: var(--ink-500);
}

.product-card__price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-top: 2px;
}

.product-card__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.34rem;
  color: var(--navy-900);
}

.product-card__compare {
  font-size: 0.82rem;
  color: var(--ink-500);
  text-decoration: line-through;
}

.product-card__add {
  position: relative;
  margin-top: 12px;
  width: 100%;
  padding: 13px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--grad-brand);
  color: var(--navy-950);
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--font-display);
  box-shadow: 0 10px 22px -12px rgba(47, 111, 239, 0.6);
  transition: transform var(--dur-fast) var(--ease-out-quart), box-shadow var(--dur-fast) ease, background var(--dur-fast) ease;
}

.product-card:hover .product-card__add {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -12px rgba(34, 211, 238, 0.65);
}

.product-card__add:disabled {
  background: var(--silver-200);
  color: var(--ink-500);
  box-shadow: none;
  cursor: not-allowed;
}

/* Brief "Added ✓" success state — toggled via JS for ~900ms after a click,
   swaps the label text/color in place instead of a layout-shifting icon. */
.product-card__add.is-added {
  background: var(--accent-success);
  color: var(--white);
  box-shadow: 0 10px 22px -12px rgba(21, 128, 61, 0.55);
}

/* Compact card on narrow phones — two columns at this width leaves each
   card ~150-170px wide, so the roomier desktop padding/type scale would
   clip prices and wrap names awkwardly. Everything just steps down a
   size, same layout. */
@media (max-width: 480px) {
  .product-card__media {
    padding: 10px;
  }

  .product-card__body {
    padding: 12px 12px 14px;
    gap: 6px;
  }

  .product-card__brand {
    font-size: 0.64rem;
  }

  .product-card__name {
    font-size: 0.86rem;
    line-height: 1.35;
  }

  .product-card__price {
    font-size: 1.02rem;
  }

  .product-card__compare {
    font-size: 0.7rem;
  }

  .product-card__add {
    margin-top: 8px;
    padding: 10px;
    font-size: 0.76rem;
  }

  .badge {
    padding: 4px 8px;
    font-size: 0.6rem;
  }

  .wishlist-btn {
    width: 30px;
    height: 30px;
  }
}

/* ---------- Category page layout (filters + grid) ---------- */
.store-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}

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

.filter-panel {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 20px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  position: sticky;
  /* below the store's own sticky header stack (main header + category bar),
     not the old corporate --header-h — the store no longer nests under
     that header at all. */
  top: calc(var(--store-header-h) + 56px);
}

/* Filter accordion — reuses .mobile-accordion__* (trigger/chevron/panel),
   the exact expand-collapse pattern already wired up sitewide in
   js/main.js for the mobile nav's Services submenu, restyled here to sit
   inside the filter panel's compact "eyebrow" look instead of the mobile
   nav's larger link style. */
.filter-panel .mobile-accordion__trigger {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-500);
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--border-soft);
}

.filter-panel .mobile-accordion__section:first-child .mobile-accordion__trigger {
  padding-top: 0;
}

.filter-panel .mobile-accordion__chevron {
  width: 15px;
  height: 15px;
  color: var(--ink-400);
}

.filter-panel .mobile-accordion__trigger[aria-expanded="true"] .mobile-accordion__chevron {
  color: var(--blue-500);
}

.filter-panel .mobile-accordion__panel-inner {
  padding: 14px 2px 6px;
}

/* ---------- Active filter chips ---------- */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.active-filters:empty {
  display: none;
  margin: 0;
}

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px 6px 14px;
  border-radius: 999px;
  background: var(--grad-brand-soft);
  border: 1px solid rgba(47, 111, 239, 0.25);
  color: var(--blue-700);
  font-size: 0.8rem;
  font-weight: 600;
}

.active-filter-chip button {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(47, 111, 239, 0.16);
  border: none;
  color: var(--blue-700);
  cursor: pointer;
  transition: background var(--dur-fast) ease;
}

.active-filter-chip button:hover {
  background: var(--blue-500);
  color: var(--white);
}

.active-filter-chip button svg {
  width: 10px;
  height: 10px;
}

@media (max-width: 780px) {
  .filter-panel {
    position: static;
  }
}

.filter-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
}

.filter-panel__header h3 {
  font-size: 1rem;
}

.filter-panel h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-500);
  margin-bottom: 12px;
}

.filter-group {
  margin-bottom: 22px;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--navy-700);
  margin-bottom: 8px;
  cursor: pointer;
}

.filter-group input[type="checkbox"],
.filter-group input[type="radio"] {
  accent-color: var(--blue-500);
}

.price-range-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.price-range-inputs input {
  width: 0;
  flex: 1;
  padding: 9px 10px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  color: var(--navy-900);
  background: var(--white);
}

.price-range-inputs input:focus {
  outline: none;
  border-color: var(--blue-500);
}

.price-range-inputs span {
  color: var(--ink-400);
  flex-shrink: 0;
}

.price-apply-btn {
  width: 100%;
  padding: 9px !important;
  font-size: 0.82rem !important;
}

.filter-clear {
  font-size: 0.82rem;
  color: var(--blue-600);
  font-weight: 600;
}

.store-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
  flex-wrap: wrap;
}

.store-toolbar__count {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-700);
}

.store-toolbar select {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--white);
  font-size: 0.86rem;
  color: var(--navy-800);
  transition: border-color var(--dur-fast) ease;
}

.store-toolbar select:hover,
.store-toolbar select:focus {
  border-color: var(--blue-400);
  outline: none;
}

/* ---------- Skeleton loading cards ---------- */
.skeleton-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--white);
  overflow: hidden;
}

.skeleton-card__media {
  aspect-ratio: 1/1;
  background: var(--shimmer);
  background-size: 200% 100%;
  animation: shimmerSweep 1.6s ease-in-out infinite;
}

.skeleton-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-card__line {
  height: 12px;
  border-radius: 6px;
  background: var(--shimmer);
  background-size: 200% 100%;
  animation: shimmerSweep 1.6s ease-in-out infinite;
}

.skeleton-card__line--wide { width: 85%; }
.skeleton-card__line--price { width: 45%; height: 18px; margin-top: 4px; }
.skeleton-card__line--btn { width: 100%; height: 34px; border-radius: 999px; margin-top: 6px; }

.store-empty {
  text-align: center;
  padding: 64px 24px;
  color: var(--ink-500);
}

/* ---------- One-time marketing-consent prompt (account portal) ---------- */
.marketing-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--silver-100);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.marketing-prompt__text {
  color: var(--navy-700);
  font-size: 0.9rem;
  line-height: 1.5;
  flex: 1 1 320px;
}

.marketing-prompt__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* Same fix as .cookie-modal__actions in style.css: side-by-side compact
   pair on phone screens rather than each button stretching full-width. */
@media (max-width: 480px) {
  .marketing-prompt {
    padding: 14px 16px;
  }
  .marketing-prompt__actions {
    width: 100%;
  }
  .marketing-prompt__actions .btn {
    flex: 1 1 0;
    padding: 10px 12px !important;
    font-size: 0.8rem !important;
  }
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.pagination button {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: var(--white);
  color: var(--navy-700);
  font-size: 0.86rem;
  font-weight: 600;
}

.pagination button[aria-current="true"] {
  background: var(--grad-brand);
  border-color: transparent;
  color: var(--navy-950);
}

.pagination button:hover:not(:disabled):not([aria-current="true"]) {
  border-color: var(--blue-500);
  color: var(--blue-500);
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination__ellipsis {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--ink-400);
}

/* ---------- Product detail page ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 860px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
}

.gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
  aspect-ratio: 4/3;
  background: var(--silver-100);
  padding: 24px;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.gallery-thumbs button {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border-soft);
  padding: 6px;
  background: var(--silver-100);
  cursor: pointer;
}

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

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Sept 2026 — a small play-button overlay on a video entry's thumbnail
   (its own YouTube hqdefault frame — see product-page.js) so it reads as
   "this one plays a video" in the strip, not a broken/odd photo. */
.gallery-thumb--video {
  position: relative;
  padding: 0;
}

.gallery-thumb--video img {
  object-fit: cover;
}

.gallery-thumb__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.gallery-attribution {
  margin-top: 10px;
  font-size: 0.72rem;
  color: var(--ink-500);
}

.gallery-attribution a {
  color: var(--ink-500);
  text-decoration: underline;
}

.product-info__brand a {
  color: var(--blue-600);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-info h1 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: 8px 0 16px;
}

.product-info__price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 6px;
}

.product-info__price {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--navy-900);
}

.product-info__compare {
  font-size: 1.05rem;
  color: var(--ink-500);
  text-decoration: line-through;
}

.stock-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 22px;
}

.stock-line--in { color: #15803d; }
.stock-line--low { color: #b45309; }
.stock-line--out { color: var(--ink-500); }

.stock-line::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- Product page color picker (Sept 2026) ----------
   Real curated colourways (data/ingest/ingest-catalogue.mjs's
   PRODUCT_COLORS), not a generic swatch grid — shown as labelled pills
   naming the actual colour rather than a paint-chip circle, since there's
   no honest way to render an exact on-screen match for a real product
   colour. Selected-state border reuses the same idiom as the gallery
   thumbnails just above on this same page (2px border, var(--blue-500)
   when active) so it reads as native to the page. */
.color-picker { margin-bottom: 22px; }

.color-picker__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-500);
  margin-bottom: 10px;
}

.color-picker__label span {
  font-weight: 700;
  color: var(--navy-900);
}

.color-picker__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-swatch {
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid var(--border-soft);
  background: var(--silver-100);
  color: var(--ink-500);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.color-swatch:hover {
  border-color: var(--blue-300);
}

.color-swatch.is-selected {
  border-color: var(--blue-500);
  background: #fff;
  color: var(--navy-900);
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

#add-to-cart-btn {
  flex: 1 1 160px;
  white-space: nowrap;
}

/* Below ~160px of remaining space (qty-stepper + wishlist circle already
   eat ~190px on a narrow phone), the button would otherwise get squeezed
   into a tiny wrapped-text blob — give it the full next line instead. */
@media (max-width: 420px) {
  #add-to-cart-btn {
    flex-basis: 100%;
    order: 3;
  }
}

.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  overflow: hidden;
}

.qty-stepper button {
  width: 38px;
  height: 38px;
  background: var(--silver-100);
  border: none;
  font-size: 1.1rem;
  color: var(--navy-800);
  cursor: pointer;
}

.qty-stepper input {
  width: 44px;
  text-align: center;
  border: none;
  font-size: 0.95rem;
  color: var(--navy-900);
  -moz-appearance: textfield;
}

.product-info__desc {
  color: var(--ink-300);
  line-height: 1.75;
  margin-bottom: 24px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 8px;
}

.spec-table tr {
  border-bottom: 1px solid var(--border-soft);
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 10px 4px;
  font-size: 0.88rem;
}

.spec-table th {
  color: var(--ink-500);
  font-weight: 600;
  width: 40%;
}

.spec-table td {
  color: var(--navy-800);
}

/* ---------- What's in the box ---------- */
.box-contents-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.box-contents-list li {
  font-size: 0.88rem;
  color: var(--navy-800);
  padding-left: 22px;
  position: relative;
}

.box-contents-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue-600);
  font-weight: 700;
}

/* ---------- Cart drawer ---------- */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  pointer-events: none;
}

.cart-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 13, 0.45);
  opacity: 0;
  transition: opacity var(--dur-med) ease;
}

.cart-drawer.is-open .cart-drawer__backdrop {
  opacity: 1;
}

.cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  background: var(--white);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--dur-med) var(--ease-out-quart);
  box-shadow: -20px 0 50px rgba(4, 6, 13, 0.2);
}

.cart-drawer.is-open .cart-drawer__panel {
  transform: translateX(0);
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border-soft);
}

.cart-drawer__header h3 {
  color: var(--navy-900);
  font-size: 1.1rem;
}

.cart-drawer__close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: none;
  display: grid;
  place-items: center;
  color: var(--navy-700);
  cursor: pointer;
}

.cart-drawer__items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 24px;
}

.cart-drawer__item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}

.cart-drawer__item img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--silver-100);
  padding: 4px;
}

.cart-drawer__item-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1.3;
}

.cart-drawer__item-color {
  font-size: 0.76rem;
  color: var(--ink-500);
  margin-top: 1px;
}

.cart-drawer__item-price {
  font-size: 0.8rem;
  color: var(--ink-500);
  margin-top: 2px;
}

.cart-drawer__item-remove {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: none;
  color: var(--ink-500);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.cart-drawer__item-remove svg {
  width: 16px;
  height: 16px;
}

.cart-drawer__empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--ink-500);
  font-size: 0.9rem;
}

.cart-drawer__footer {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-drawer__total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 6px;
}

/* ---------- Toast ---------- */
.cart-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  z-index: 300;
  background: var(--navy-900);
  color: var(--white);
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out-quart);
  box-shadow: 0 16px 32px -12px rgba(4, 6, 13, 0.4);
}

.cart-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Tone variants — used for coupon apply/remove feedback at checkout
   (js/store/pages/checkout-page.js) alongside the default navy "added to
   cart" toast above. */
.cart-toast--success {
  background: #15803d;
}

.cart-toast--error {
  background: #b91c1c;
}

/* ---------- Cart page ---------- */
.cart-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  align-items: start;
}

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

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th {
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-500);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
}

.cart-table td {
  padding: 18px 8px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}

.cart-table__product {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart-table__product img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--silver-100);
  border: 1px solid var(--border-soft);
  padding: 6px;
}

.cart-table__name {
  font-weight: 600;
  color: var(--navy-900);
  font-size: 0.92rem;
}

.cart-table__color {
  font-size: 0.78rem;
  color: var(--ink-500);
  margin-top: 2px;
}

/* Everything shrinks a size rather than the table just spilling wider than
   the (already-scrollable) wrapper needs to let it — keeps most phones
   from needing to swipe sideways at all to see Quantity/Total. */
@media (max-width: 600px) {
  .cart-table th,
  .cart-table td {
    padding: 12px 6px;
    font-size: 0.86rem;
  }

  .cart-table__product {
    gap: 8px;
  }

  .cart-table__product img {
    width: 48px;
    height: 48px;
    padding: 4px;
  }

  .cart-table__name {
    font-size: 0.82rem;
  }

  .cart-table .qty-stepper button {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }

  .cart-table .qty-stepper input {
    width: 30px;
    font-size: 0.82rem;
  }
}

.cart-summary {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--navy-700);
  margin-bottom: 12px;
}

.cart-summary__row--total {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy-900);
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}

/* ---------- Auth (login / register) ---------- */
.auth-shell {
  display: flex;
  justify-content: center;
  padding-block: clamp(48px, 8vw, 96px);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: var(--white);
  box-shadow: var(--shadow-card-hover);
}

.auth-card h1 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.auth-card > p {
  color: var(--ink-400);
  font-size: 0.9rem;
  margin-bottom: 26px;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--white);
  color: var(--navy-800);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease;
}

.btn-google:hover {
  border-color: var(--blue-400);
  background: var(--silver-100);
}

.btn-google svg {
  width: 18px;
  height: 18px;
}

/* Container for the real Google Identity Services button (see
   js/store/google-config.js + login-page.js/register-page.js) — GIS renders
   its own button/iframe into this rather than us styling one ourselves, so
   it stays visually the exact button people already trust and recognize.
   min-height reserves the space so the card doesn't jump once GIS's script
   finishes loading and actually renders it a beat after page load; hidden
   entirely (via JS) when no Google Client ID is configured. */
.google-btn-container {
  display: flex;
  justify-content: center;
  min-height: 44px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-block: 22px;
  color: var(--ink-500);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-soft);
}

.auth-footer-link {
  text-align: center;
  margin-top: 22px;
  font-size: 0.88rem;
  color: var(--ink-400);
}

.auth-footer-link a {
  color: var(--blue-600);
  font-weight: 600;
}

.auth-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  display: none;
}

.auth-status.is-visible {
  display: block;
}

.auth-status--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.auth-status--info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.auth-status--success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

/* ---------- Account dashboard ---------- */
.account-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}

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

.account-sidebar {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-card);
  padding: 10px;
}

.account-sidebar a,
.account-sidebar button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy-700);
  background: none;
  border: none;
  font-family: var(--font-body);
  cursor: pointer;
}

.account-sidebar a:hover,
.account-sidebar a[aria-current="page"],
.account-sidebar button:hover {
  background: var(--silver-100);
  color: var(--blue-600);
}

.order-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
  transition: box-shadow var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out-quart);
}

.order-row:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .order-row {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

.order-row__number {
  font-weight: 700;
  color: var(--navy-900);
  font-size: 0.95rem;
}

.order-row__date {
  font-size: 0.82rem;
  color: var(--ink-500);
}

.order-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.order-status-badge--pending_payment { background: #fef3c7; color: #92400e; }
.order-status-badge--paid { background: #dbeafe; color: #1e40af; }
.order-status-badge--processing { background: #e0e7ff; color: #4338ca; }
.order-status-badge--shipped { background: #cffafe; color: #0e7490; }
.order-status-badge--delivered { background: #dcfce7; color: #15803d; }
.order-status-badge--cancelled,
.order-status-badge--failed { background: #fee2e2; color: #b91c1c; }
.order-status-badge--refunded { background: var(--silver-200); color: var(--ink-500); }

/* Return statuses — reuses this same badge component (order-status-badge)
   since a return's lifecycle is the same visual idea as an order's, just a
   different set of status words. requested/approved/rejected/etc. are
   unique to returns; cancelled/refunded above are shared with orders and
   already covered. */
.order-status-badge--requested { background: #fef3c7; color: #92400e; }
.order-status-badge--approved { background: #dbeafe; color: #1e40af; }
.order-status-badge--rejected { background: #fee2e2; color: #b91c1c; }
.order-status-badge--awaiting_collection { background: #e0e7ff; color: #4338ca; }
.order-status-badge--collected { background: #cffafe; color: #0e7490; }
.order-status-badge--received { background: #ede9fe; color: #6d28d9; }
.order-status-badge--replaced { background: #dcfce7; color: #15803d; }

/* ---------- Order-detail "Download Invoice" (window.print()) ----------
   No PDF-generation dependency needed for this — window.print() plus a
   focused print stylesheet is what a small store like this actually
   needs, and "Save as PDF" is a print-destination choice every browser
   already ships. .print-only is invisible on screen and only appears in
   the print stylesheet below; .print-hide is the opposite (site chrome
   that makes no sense on a printed invoice — header, nav, buttons,
   footer, cart widgets, decorative background). */
.print-only { display: none; }

@media print {
  .site-header, .store-header, .mobile-nav, .trust-bar, .store-footer,
  .cart-drawer, .cart-toast, .bg-scene, .breadcrumbs, .print-hide,
  #account-not-configured, #cookie-modal-overlay, .back-to-top {
    display: none !important;
  }
  .print-only { display: block !important; }
  .account-layout { display: block !important; }
  .account-sidebar { display: none !important; }
  body { background: #fff !important; }
  .checkout-layout { display: block !important; }

  /* Sept 2026 — corporate watermark, print-only: a background-image on
     the printable container itself (never shown while just browsing the
     order-detail page on-screen — this whole rule only exists inside
     @media print), in the same navy/blue the logo uses, so removing it
     means editing this stylesheet rather than deleting a stray <div> in
     dev tools before printing — the standard, well-known way to
     watermark a document that (like this whole invoice feature) has no
     server-rendered PDF pipeline behind it. Repeats the company name
     diagonally at ~5% opacity: visible enough to prove the page came
     from AxonSystems and make a doctored copy obvious, faint enough to
     never get in the way of reading the actual invoice. SVG, not a
     raster image, so it stays crisp at any print resolution/zoom.
     print-color-adjust (and the WebKit-prefixed form Chrome/Safari still
     need) is required — browsers strip background images from a printed
     page by default to save ink, which would make this invisible on the
     one output where it actually matters. */
  #account-content {
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPSczMjAnIGhlaWdodD0nMjAwJz4KICA8dGV4dCB4PSctMjAnIHk9JzcwJyBmb250LWZhbWlseT0nQXJpYWwsIEhlbHZldGljYSwgc2Fucy1zZXJpZicgZm9udC1zaXplPSczMCcgZm9udC13ZWlnaHQ9JzgwMCcgZmlsbD0nIzJmNmZlZicgZmlsbC1vcGFjaXR5PScwLjA2JyBsZXR0ZXItc3BhY2luZz0nMicgdHJhbnNmb3JtPSdyb3RhdGUoLTI4IDE2MCAxMDApJz5BWE9OU1lTVEVNUzwvdGV4dD4KICA8dGV4dCB4PSctMjAnIHk9JzE3MCcgZm9udC1mYW1pbHk9J0FyaWFsLCBIZWx2ZXRpY2EsIHNhbnMtc2VyaWYnIGZvbnQtc2l6ZT0nMzAnIGZvbnQtd2VpZ2h0PSc4MDAnIGZpbGw9JyMwYjEyMjQnIGZpbGwtb3BhY2l0eT0nMC4wNDUnIGxldHRlci1zcGFjaW5nPScyJyB0cmFuc2Zvcm09J3JvdGF0ZSgtMjggMTYwIDEwMCknPlRFQ0hOT0xPR0lFUzwvdGV4dD4KPC9zdmc+");
    background-repeat: repeat;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .cart-summary { margin-top: 24px; box-shadow: none !important; border: 1px solid #e6e9f2; }
}

.order-timeline {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-timeline__step {
  display: flex;
  gap: 14px;
  padding-bottom: 20px;
  position: relative;
}

.order-timeline__step::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 16px;
  bottom: 0;
  width: 1px;
  background: var(--border-soft);
}

.order-timeline__step:last-child::before {
  display: none;
}

.order-timeline__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border-strong);
  margin-top: 4px;
  flex-shrink: 0;
}

.order-timeline__step.is-done .order-timeline__dot {
  background: var(--grad-brand);
}

.order-timeline__label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-800);
}

.order-timeline__note {
  font-size: 0.82rem;
  color: var(--ink-500);
  margin-top: 2px;
}

/* ---------- Wishlist heart button (on product cards + detail) ---------- */
.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
}

.wishlist-btn svg {
  width: 16px;
  height: 16px;
  color: var(--navy-700);
  transition: color var(--dur-fast) ease;
}

.wishlist-btn.is-active svg,
#product-wishlist-btn.is-active svg {
  color: #e11d48;
  fill: #e11d48;
}

/* ---------- Checkout ---------- */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}

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

/* ---------- Checkout step indicator ---------- */
.checkout-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 26px;
}

.checkout-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-400);
}

.checkout-step__num {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--silver-200);
  color: var(--ink-500);
  font-size: 0.76rem;
  font-weight: 700;
}

.checkout-step.is-active { color: var(--navy-900); }

.checkout-step.is-active .checkout-step__num {
  background: var(--grad-brand);
  color: var(--navy-950);
}

.checkout-step__divider {
  width: 32px;
  height: 1px;
  background: var(--border-strong);
}

/* ---------- Payment method (Sept 2026) ----------
   Sept 2026: a real customer has no idea what "PayFast" or "Paystack" mean
   — they recognize Visa/Mastercard/EFT, the payment TYPES those gateways
   actually process. So the choice here is framed by payment type (what a
   shopper picks based on), with the gateway itself relegated to invisible
   plumbing — same principle as most large stores, which show "Card" as the
   button, not the processor's name. */
.checkout-payment-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.checkout-payment-option {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 220px;
  padding: 14px 16px;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--white);
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}

.checkout-payment-option:hover {
  border-color: var(--blue-400);
}

.checkout-payment-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkout-payment-option:has(input:checked) {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(47, 111, 239, 0.14);
}

/* The icon/title/check line — was the whole card's layout before the
   Sept 2026 logo strip below needed its own row underneath, on the option
   that has one (see .checkout-payment-option__logos). */
.checkout-payment-option__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkout-payment-option__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--silver-100);
  color: var(--navy-700);
}

.checkout-payment-option__icon svg {
  width: 20px;
  height: 20px;
}

.checkout-payment-option__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.checkout-payment-option__title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy-900);
}

.checkout-payment-option__sub {
  font-size: 0.78rem;
  color: var(--ink-500);
}

.checkout-payment-option__check {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-left: auto;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--blue-500);
  color: var(--white);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity var(--dur-fast) ease, transform var(--dur-fast) ease;
}

.checkout-payment-option__check svg {
  width: 11px;
  height: 11px;
}

.checkout-payment-option:has(input:checked) .checkout-payment-option__check {
  opacity: 1;
  transform: scale(1);
}

/* Sept 2026 — the actual accepted-methods logo strip (Instant EFT + major
   SA bank logos + Visa/Mastercard, no gateway wordmark in the image
   itself) under the first option, real visual proof of the "Visa ·
   Mastercard · Instant EFT" line above rather than just asserting it in
   text. object-fit + a fixed height keeps the source image's native
   1024×280 crop from ever stretching regardless of the card's own width. */
.checkout-payment-option__logos {
  display: block;
  height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
}

/* Sept 2026 — PayFast/Paystack shown but disabled while those gateway
   accounts are still in verification, rather than removed outright: keeps
   both visible (so it's obvious more ways to pay are coming, not that the
   store dropped them) without letting either actually be selected. */
.checkout-payment-option--disabled {
  cursor: not-allowed;
  opacity: 0.55;
  background: var(--silver-100);
}

.checkout-payment-option--disabled:hover {
  border-color: var(--border-soft);
}

.checkout-payment-option--disabled .checkout-payment-option__icon {
  background: var(--white);
}

.checkout-payment-option__badge {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-500);
  background: var(--silver-200, #e5e9f0);
  border-radius: 999px;
  padding: 4px 10px;
}

.checkout-payment-security-note {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: var(--ink-500);
  margin: 0 0 4px;
}

.checkout-payment-security-note svg {
  flex-shrink: 0;
  color: var(--accent-success);
}

/* Sept 2026 — sits under the two greyed-out/disabled payment options
   (Card or Instant EFT, Card Payment) making the "Coming Soon" badge on
   each impossible to miss, with a plain apology rather than leaving a
   shopper to guess why those are locked out. */
.checkout-payment-coming-soon-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 18px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(217, 119, 6, 0.08);
  border: 1px solid rgba(217, 119, 6, 0.25);
  color: #92400e;
  font-size: 0.85rem;
  line-height: 1.5;
}

.checkout-payment-coming-soon-note svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.checkout-notice {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  font-size: 0.88rem;
  display: none;
}

.checkout-notice.is-visible {
  display: block;
}

.checkout-notice--error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.checkout-order-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.86rem;
}

/* ---------- Trust bar (footer, every store page) ---------- */
.trust-bar {
  border-bottom: 1px solid var(--border-soft);
  background: var(--white);
}

.trust-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-block: 26px;
}

@media (max-width: 780px) {
  .trust-bar__inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-bar__item .icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--grad-brand-soft);
}

.trust-bar__item .icon svg {
  width: 19px;
  height: 19px;
  color: var(--blue-600);
}

.trust-bar__item strong {
  display: block;
  font-size: 0.86rem;
  color: var(--navy-900);
}

.trust-bar__item span {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-500);
}

/* ---------- Product-page trust lines (delivery/returns/warranty) ----------
   Deliberately plain, small print — same register as Takealot's own
   per-listing disclosure ("Free Delivery Available. Hassle-Free Exchanges &
   Returns for 30 Days. 12-Month Limited Warranty."), and deliberately not
   styled like a headline — this is fine print, not a selling point. */
.product-trust-lines {
  list-style: none;
  margin: 16px 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-trust-lines li {
  font-size: 0.78rem;
  color: var(--ink-500);
  line-height: 1.5;
}

/* ---------- Standalone store footer ---------- */
.store-footer {
  position: relative;
  background: var(--silver-100);
  border-top: 1px solid var(--border-soft);
  overflow: hidden;
}

/* Crisp brand-gradient seam right at the footer's top edge — the light
   store's answer to the dark corporate footer's glow (see .site-footer)
   below: a clean line rather than a blur, since it sits on a light
   surface. Same job either way — announce "the footer starts here". */
.store-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-brand);
  z-index: 1;
}

/* Same oversized watermark motif as .site-footer, tuned for a light
   surface — ties the store back to the corporate site as one design
   system rather than a bolted-on separate site. Centered as a background
   across the whole footer rather than bleeding off the bottom-right
   corner, where `overflow: hidden` used to clip it to a barely-visible
   sliver — see the fuller comment on .site-footer::after. */
.store-footer::after {
  content: "AxonSystems";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 14vw, 11.5rem);
  line-height: 1;
  color: rgba(22, 35, 74, 0.025);
  -webkit-text-stroke: 1px rgba(22, 35, 74, 0.05);
  letter-spacing: -0.02em;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

.store-footer > .container {
  position: relative;
  z-index: 1;
}

/* ---------- Store footer CTA band ---------- */
.store-footer__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 32px;
  border-bottom: 1px solid var(--border-soft);
}

.store-footer__cta h3 {
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  margin-bottom: 6px;
}

.store-footer__cta p {
  color: var(--ink-400);
  font-size: 0.92rem;
  max-width: 440px;
}

.store-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 48px;
}

@media (max-width: 780px) {
  .store-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .store-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer accordion (phones) ----------
   Below 480px each .store-footer__col becomes a tap-to-expand row instead
   of one long stack of links piled under the next — reuses the site-wide
   .mobile-accordion__trigger/__chevron/__panel component (js/main.js's
   delegated click handler already handles the toggle, no JS needed here).
   Above 480px every panel is forced open and the trigger goes inert,
   which restores the exact original "four always-open columns" look —
   see scripts/add-footer-accordion.mjs for how the markup was wrapped. */
.store-footer__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 10px;
}

.store-footer__trigger .mobile-accordion__chevron {
  display: none;
  color: var(--ink-400);
}

.store-footer__panel-inner {
  padding-left: 0;
}

@media (max-width: 480px) {
  .store-footer__grid {
    display: block;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .store-footer__col {
    border-bottom: 1px solid var(--border-soft);
  }

  .store-footer__col:first-child {
    border-top: 1px solid var(--border-soft);
  }

  .store-footer__trigger {
    padding-block: 16px;
    margin-inline: -4px;
    padding-inline: 4px;
    transition: background var(--dur-fast) ease;
  }

  .store-footer__trigger:active {
    background: var(--silver-200);
  }

  .store-footer__trigger h4 {
    margin-bottom: 0;
  }

  .store-footer__trigger .mobile-accordion__chevron {
    display: block;
  }

  .store-footer__panel-inner {
    padding-bottom: 18px;
  }
}

@media (min-width: 481px) {
  .store-footer__trigger {
    pointer-events: none;
    cursor: default;
  }

  .store-footer__col .mobile-accordion__panel {
    grid-template-rows: 1fr !important;
  }
}

.store-footer__col h4 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 16px;
}

.store-footer__col h4::before {
  content: "";
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
  flex-shrink: 0;
}

.store-footer__col a {
  display: block;
  color: var(--navy-700);
  font-size: 0.9rem;
  margin-bottom: 12px;
  transition: color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out-quart);
}

.store-footer__col a:hover {
  color: var(--blue-600);
  transform: translateX(3px);
}

/* Sept 2026 — same fix as .footer-col's #footer-shop-links in style.css:
   the Shop column holds every product category (12+) plus Build a PC,
   far more than the other store-footer columns, which stretched the
   whole footer taller than its neighbors on tablet/laptop. Spreads it
   into two columns there instead — matches the breakpoint the footer
   accordion above already treats as "desktop" (mobile keeps it a single
   always-open-panel column, which reads better on a narrow phone). */
@media (min-width: 481px) {
  #footer-shop-links {
    columns: 2;
    column-gap: 20px;
  }

  #footer-shop-links a {
    break-inside: avoid;
  }
}

.store-footer__col p {
  color: var(--ink-500);
  font-size: 0.85rem;
  margin-bottom: 12px;
  line-height: 1.6;
}

.store-footer__bottom {
  position: relative;
  background: var(--navy-950);
  color: var(--ink-400);
  overflow: hidden;
}

/* Echoes .site-footer's glow at a much smaller scale — the one place the
   light store footer touches navy, so it gets a matching (if faint) hint
   of the same radial glow instead of a flat block of dark. */
.store-footer__bottom::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 220% at 12% 50%, rgba(47, 111, 239, 0.16), transparent 70%);
  pointer-events: none;
}

.store-footer__bottom-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 20px;
  font-size: 0.8rem;
}

.store-footer__bottom-inner a {
  color: var(--ink-400);
}

.store-footer__bottom-inner a:hover {
  color: var(--blue-600);
}

/* ---------- Sign-in pop-up (js/store/auth-modal.js) ----------
   Built once, shared by any page that needs a "sign in to continue" gate
   without a redirect — right now that's just the reviews flow below, but
   deliberately not named after reviews so anything else can reuse it. */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(11, 18, 36, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.auth-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.auth-modal-overlay .auth-card {
  position: relative;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  transform: translateY(8px) scale(0.98);
  transition: transform 0.18s ease;
}

.auth-modal-overlay.is-open .auth-card {
  transform: translateY(0) scale(1);
}

.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--surface-100, #f4f7fb);
  color: var(--ink-500);
  cursor: pointer;
}

.auth-modal-close:hover {
  background: var(--border-soft);
}

/* ---------- Product reviews ---------- */
.reviews-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.reviews-summary__score {
  font-family: var(--font-display, inherit);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--navy-900);
}

.star-rating {
  display: inline-flex;
  gap: 2px;
  color: #d8dce6;
}

.star-rating svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.star-rating .star--full {
  color: #f5a623;
}

.star-rating--input {
  cursor: pointer;
}

.star-rating--input svg {
  width: 26px;
  height: 26px;
  transition: color 0.1s ease;
}

.review-card {
  padding: 18px 0;
  border-bottom: 1px solid var(--border-soft);
}

.review-card:last-child {
  border-bottom: none;
}

.review-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.review-card__author {
  font-weight: 600;
  color: var(--navy-900);
  font-size: 0.92rem;
}

.review-card__date {
  color: var(--ink-500);
  font-size: 0.8rem;
}

.review-card__comment {
  color: var(--ink-400);
  line-height: 1.6;
  font-size: 0.92rem;
}

.review-empty {
  color: var(--ink-500);
  font-size: 0.92rem;
  padding: 12px 0;
}

.review-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--surface-100, #f4f7fb);
  margin-bottom: 20px;
}

.review-form .form-field {
  margin-bottom: 14px;
}

.review-form textarea {
  width: 100%;
  min-height: 100px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  font-family: inherit;
  font-size: 0.92rem;
  resize: vertical;
}

.recent-reviews-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.recent-review-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.recent-review-card__product {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.recent-review-card__product img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--surface-100, #f4f7fb);
  padding: 3px;
}

.recent-review-card__product span {
  font-weight: 600;
  color: var(--navy-900);
  font-size: 0.88rem;
}

.checkout-order-item img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--white);
  padding: 3px;
  border: 1px solid var(--border-soft);
}
