/* BuyCoded — pages.css : layouts, hero, demo, sections, footer */

/* === Site header (deep navy sticky bar) === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: box-shadow 200ms var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(15,22,41,.30); }
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--s-3);
  gap: var(--s-5);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand:hover { color: #fff; }
.brand-light { color: #fff; }
.brand-light:hover { color: #fff; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; }
.brand-mark svg { display: block; }
.brand-word { color: inherit; }

.site-nav {
  display: flex;
  gap: var(--s-5);
  align-items: center;
}
.site-nav a {
  color: rgba(255,255,255,.78);
  font-weight: 500;
  font-size: var(--fs-sm);
  padding-block: 8px;
  position: relative;
  text-decoration: none;
}
.site-nav a:hover { color: #fff; }
.site-nav a.is-active { color: #fff; }
.site-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--blue-500);
  border-radius: 2px;
}

.site-actions { display: flex; align-items: center; gap: var(--s-3); }
.cart-link {
  position: relative;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-full);
  color: rgba(255,255,255,.85);
  transition: background 160ms var(--ease), color 160ms var(--ease);
}
.cart-link:hover { background: rgba(255,255,255,.10); color: #fff; }
.cart-link svg { width: 22px; height: 22px; }
.cart-badge {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  border-radius: var(--r-full);
  background: var(--blue-500);
  color: #fff;
  font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(79,142,255,.50);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: var(--s-2);
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  border-radius: var(--r-md);
}
.nav-toggle:hover { background: rgba(255,255,255,.10); }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  padding: var(--s-3) var(--s-5) var(--s-5);
  border-top: 1px solid rgba(255,255,255,.08);
  background: var(--navy-900);
}
.mobile-nav a {
  display: block;
  padding: var(--s-3) 0;
  font-weight: 500;
  color: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(255,255,255,.06);
  text-decoration: none;
}
.mobile-nav a:hover { color: #fff; }
.mobile-nav a:last-child { border-bottom: 0; }

@media (max-width: 768px) {
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* === Hero (dark navy band, own.page-inspired) === */
.hero,
.hero-dark {
  position: relative;
  padding: var(--s-12) 0 var(--s-10);
  background: var(--navy-900);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-glow {
  position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 50% 0%, rgba(79,142,255,.16), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}

/* Brand mark icon */
.hero-brand-mark {
  width: 56px; height: 56px;
  margin: 0 auto var(--s-5);
  border-radius: 12px;
  background: var(--blue-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(79,142,255,.45), 0 0 0 6px rgba(79,142,255,.10);
}

/* Two-line headline with gradient on line 2 */
.hero-headline {
  margin: 0 0 var(--s-4);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.hero-headline .hero-line-1 { color: #fff; }
.hero-headline .hero-line-2 {
  background: linear-gradient(90deg, #4f8eff, #6ba0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  max-width: 620px;
  margin: 0 auto var(--s-6);
  color: rgba(238,242,251,.72);
  font-size: clamp(1rem, 1.4vw, var(--fs-lg));
  line-height: var(--lh-relaxed);
}

/* Pill search bar */
.hero-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 560px;
  margin: 0 auto var(--s-5);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-full);
  padding: 6px 6px 6px var(--s-5);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease), background 160ms var(--ease);
}
.hero-search:focus-within {
  border-color: rgba(122,169,255,.55);
  background: rgba(255,255,255,.10);
  box-shadow: 0 0 0 3px rgba(79,142,255,.18);
}
.hero-search-label {
  display: inline-flex;
  align-items: center;
  color: rgba(255,255,255,.55);
  font-size: var(--fs-base);
  flex: 0 0 auto;
  pointer-events: none;
}
.hero-search-label i { width: 18px; text-align: center; }
.hero-search-input {
  flex: 1 1 auto;
  background: transparent;
  border: 0;
  outline: none;
  color: #fff;
  font-size: var(--fs-base);
  padding: var(--s-3) var(--s-3);
  min-height: 0;
  min-width: 0;
  width: 100%;
  font-family: inherit;
}
.hero-search-input::placeholder { color: rgba(255,255,255,.50); }
.hero-search-input:focus { outline: none; box-shadow: none; border: 0; background: transparent; }
.hero-search-input::-webkit-search-cancel-button { display: none; }
/* Override the global input default styles when nested in the dark pill */
.hero-search input[type="search"] {
  background: transparent;
  border: 0;
  color: #fff;
  padding: var(--s-3) var(--s-3);
  min-height: 0;
  border-radius: 0;
}
.hero-search input[type="search"]:focus {
  border: 0;
  box-shadow: none;
  background: transparent;
}
/* Dark-pill autofill override */
.hero-search input:-webkit-autofill,
.hero-search input:-webkit-autofill:hover,
.hero-search input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px rgba(255,255,255,.06) inset;
  caret-color: #fff;
}
.hero-search-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: var(--fs-sm);
  padding: var(--s-3) var(--s-5);
  cursor: pointer;
  transition: background 160ms var(--ease), transform 160ms var(--ease);
  min-height: 40px;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(79,142,255,.45);
}
.hero-search-btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.hero-search-btn:active { transform: translateY(0); background: var(--accent); }

/* Secondary CTA row */
.hero-cta-row {
  display: flex;
  gap: var(--s-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--s-6);
}
/* Hero CTA primary already inherits btn-primary's solid-accent style. */

/* Social proof avatars row */
.hero-social-proof {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  margin: 0 auto var(--s-6);
  padding: var(--s-2) var(--s-4) var(--s-2) var(--s-2);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r-full);
}
.hero-avatars { display: inline-flex; align-items: center; }
.hero-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  display: inline-block;
  margin-left: -8px;
  background: var(--accent);
  flex: 0 0 28px;
}
.hero-avatar:first-child { margin-left: 0; }
/* All avatars use blue tones (no cyan/amber/rose) per the locked palette. */
.hero-avatar[data-tone="blue"]   { background: var(--accent); }
.hero-avatar[data-tone="cyan"]   { background: var(--accent-hover); }
.hero-avatar[data-tone="violet"] { background: var(--accent); opacity: .85; }
.hero-avatar[data-tone="amber"]  { background: var(--accent-hover); opacity: .85; }
.hero-avatar[data-tone="rose"]   { background: var(--accent); opacity: .70; }
.hero-social-text {
  margin: 0;
  font-size: var(--fs-sm);
  color: rgba(238,242,251,.72);
  font-weight: 500;
}

/* Tools-we-ship-for logo strip */
.hero-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--s-5);
  list-style: none;
  padding: 0;
  margin: 0;
  color: rgba(238,242,251,.45);
  font-weight: 600;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* === Floating decorative product cards (hidden < 1024px) === */
.hero-floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  display: none;
}
@media (min-width: 1024px) {
  .hero-floats { display: block; }
}
.hero-float {
  position: absolute;
  width: 200px;
  background: rgba(255,255,255,.96);
  color: var(--text);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  opacity: .92;
}
.hero-float-thumb {
  height: 88px;
  width: 100%;
  background: linear-gradient(135deg, #4f8eff, #6ba0ff);
}
.hero-float-thumb[data-tone="violet"] { background: linear-gradient(135deg, #8b5cf6, #4f8eff); }
.hero-float-thumb[data-tone="cyan"]   { background: linear-gradient(135deg, #6ba0ff, #6ba0ff); }
.hero-float-thumb[data-tone="blue"]   { background: linear-gradient(135deg, #4f8eff, #3b78f0); }
.hero-float-thumb[data-tone="amber"]  { background: linear-gradient(135deg, #f59e0b, #fb7185); }
.hero-float-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-3) var(--s-4);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.hero-float-title { color: var(--text); }
.hero-float-price {
  background: var(--blue-50);
  color: var(--blue-600);
  padding: 2px 10px;
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 700;
}
/* Positioning + rotation */
.hero-float-l1 { top: 22%;  left: -40px; transform: rotate(-8deg); }
.hero-float-l2 { top: 58%;  left: 30px;  transform: rotate(-6deg); }
.hero-float-r1 { top: 18%;  right: -40px; transform: rotate(8deg); }
.hero-float-r2 { top: 60%;  right: 20px;  transform: rotate(6deg); }
@media (prefers-reduced-motion: no-preference) {
  .hero-float { transition: transform 600ms var(--ease); }
}

/* Mobile: pill goes edge-to-edge */
@media (max-width: 560px) {
  .hero-search { max-width: 100%; padding-left: var(--s-4); }
  .hero-search-btn { padding: var(--s-3) var(--s-4); font-size: var(--fs-xs); }
}

/* Screen-reader only helper (scoped, doesn't collide with existing utilities) */
.bc-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* === Answer summary (AEO) === */
.answer-summary {
  padding: var(--s-8) 0;
  border-bottom: 1px solid var(--border);
}
.answer-summary .lead {
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
}

/* === Product grid — 3 desktop / 2 tablet / 1 mobile === */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
}
@media (min-width: 640px) and (max-width: 1023px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
}

/* === Product card (image-forward, premium) ===
   The entire card is a single <a>. The CSS for the base card lives in
   components.css; the rules below override + extend for the home/catalog look. */
a.product-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  position: relative;
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease), border-color 240ms var(--ease);
}
a.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: var(--blue-100);
  color: inherit;
}

/* Thumbnail (16/10, full-bleed, hover zoom + Quick View pill) */
.product-card .product-card-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
}
.product-card .product-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 300ms var(--ease);
}
.product-card:hover .product-card-thumb img { transform: scale(1.05); }

.product-card-quickview {
  position: absolute;
  bottom: var(--s-3);
  left: 50%;
  transform: translate(-50%, 8px);
  background: rgba(15,22,41,.88);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px var(--s-3);
  border-radius: var(--r-full);
  opacity: 0;
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
  pointer-events: none;
}
.product-card:hover .product-card-quickview {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Featured pill (small, top-left, understated) */
.product-card-featured-pill {
  position: absolute;
  top: var(--s-3);
  left: var(--s-3);
  background: linear-gradient(90deg, #4f8eff, #6ba0ff);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-full);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(79,142,255,.35);
}

/* Featured ring around the entire card (subtle 1.5px gradient outline) */
.product-card.is-featured {
  border-color: transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, #4f8eff, #6ba0ff) border-box;
  border: 1.5px solid transparent;
}

/* Body */
.product-card .product-card-body {
  padding: var(--s-4) var(--s-5) var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  flex: 1;
}
.product-card-eyebrow {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--blue-600);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.product-card-title {
  margin: 0;
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer row: seller (left) + price pill (right) */
.product-card .product-card-foot {
  margin-top: auto;
  padding-top: var(--s-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  border-top: 0;
  font-weight: 600;
}
.product-card-seller {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.product-card-seller::before {
  content: "";
  display: inline-block;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f8eff, #6ba0ff);
  flex: 0 0 22px;
}
.product-card-price-pill {
  background: var(--blue-50);
  color: var(--text);
  font-weight: 700;
  font-size: var(--fs-sm);
  padding: 6px var(--s-3);
  border-radius: var(--r-full);
  white-space: nowrap;
}

/* Tap-target friendly */
.product-card .product-card-foot,
.product-card-quickview,
.product-card-price-pill { min-height: 28px; }

/* === Catalog === */
.catalog-head { padding-block: var(--s-8) var(--s-5); }
.catalog-controls {
  display: flex;
  gap: var(--s-3);
  align-items: center;
  margin: var(--s-4) 0 var(--s-3);
  flex-wrap: wrap;
}
.control-search { position: relative; flex: 1; min-width: 220px; }
.control-search svg { position: absolute; top: 50%; left: 14px; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.control-search input {
  padding-left: 40px;
  border-radius: var(--r-full);
  background: var(--surface);
}
.control-sort { max-width: 240px; border-radius: var(--r-full); }

/* === Value section === */
.value-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-8);
  align-items: center;
}
@media (max-width: 820px) { .value-grid { grid-template-columns: 1fr; } }
.value-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--r-xl);
  padding: var(--s-8);
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh-md);
}
.value-card::before {
  content: "";
  position: absolute; inset: -40% 40% 40% -40%;
  background: radial-gradient(closest-side, var(--blue-500), transparent 70%);
  opacity: .35;
  filter: blur(40px);
}
.value-card h3, .value-card p { position: relative; }
.value-card h3 { color: #fff; font-size: var(--fs-xl); margin-bottom: var(--s-3); }
.value-card p { color: rgba(255,255,255,.78); }
.value-card-stats {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  margin-top: var(--s-5);
}
.value-card-stats > div {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4);
}
.value-card-stats strong {
  display: block;
  color: var(--blue-400);
  font-size: var(--fs-xl);
  font-weight: 700;
}
.value-card-stats span { color: rgba(255,255,255,.7); font-size: var(--fs-xs); }

/* === Pricing === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
}
@media (max-width: 820px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-8) var(--s-5);
  text-align: center;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease);
}
.price-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.price-card h3 { font-size: var(--fs-xl); margin-bottom: var(--s-1); }
.price-big { font-size: var(--fs-xl); color: var(--text-muted); margin: var(--s-2) 0 var(--s-4); }
.price-big strong { font-size: var(--fs-3xl); color: var(--text); font-weight: 700; }
.price-card.is-featured {
  border-color: var(--blue-500);
  box-shadow: 0 16px 40px rgba(79,142,255,.16);
  transform: translateY(-6px);
  position: relative;
}
.price-card.is-featured > .pill { position: absolute; top: 16px; right: 16px; }
.price-card .check-list { text-align: left; max-width: 260px; margin: 0 auto var(--s-4); }

/* === FAQ === */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
}
@media (max-width: 760px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--s-5);
}
.faq-q { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-2); }
.faq-q h3 { font-size: var(--fs-base); margin: 0; }
.q-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-600);
  font-weight: 700;
  font-size: 1rem;
  flex: 0 0 30px;
}
.faq-card p { color: var(--text-soft); margin: 0; }

/* === Trust strip === */
.trust-strip { padding: var(--s-8) 0; background: var(--surface-2); border-block: 1px solid var(--border); }
.trust-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
  text-align: center;
}
@media (max-width: 720px) { .trust-inner { grid-template-columns: 1fr; } }
.trust-inner strong { display: block; font-size: var(--fs-lg); margin-bottom: 4px; color: var(--text); }
.trust-inner span { color: var(--text-muted); }

/* === Product detail === */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--s-8);
  align-items: start;
}
@media (max-width: 920px) { .product-detail-grid { grid-template-columns: 1fr; } }
.product-gallery-main {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
.product-gallery-main img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; }
.product-gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: var(--s-3);
  overflow-x: auto;
  scrollbar-width: thin;
}
.product-gallery-thumbs .thumb {
  flex: 0 0 80px;
  height: 56px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 160ms var(--ease);
}
.product-gallery-thumbs .thumb:hover { border-color: var(--blue-100); }
.product-gallery-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery-thumbs .thumb.is-active { border-color: var(--blue-500); }

.product-buy {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  position: sticky;
  top: 88px;
  box-shadow: var(--sh-md);
}
.product-short { color: var(--text-soft); margin-bottom: var(--s-4); }
.product-price-row {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-block: var(--s-4);
}
.product-price { font-size: var(--fs-3xl); font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.product-price-meta { color: var(--text-muted); font-size: var(--fs-sm); }
.product-actions { display: flex; gap: var(--s-3); margin-block: var(--s-4); }
@media (max-width: 920px) { .product-actions { flex-direction: column; } }
.product-actions .btn { flex: 1; }
.product-check { margin: 0; }

.product-detail-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-8);
}
@media (max-width: 920px) { .product-detail-cols { grid-template-columns: 1fr; } }
.product-prose h2, .product-prose h3 { margin-top: var(--s-6); }
.product-prose-side { background: var(--surface-2); border-radius: var(--r-lg); padding: var(--s-5); border: 1px solid var(--border-subtle); }
.delivery-steps { padding-left: 22px; margin: 0 0 var(--s-4); }
.delivery-steps li { margin-bottom: var(--s-2); }

/* === Cart === */
.cart-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-8);
  align-items: start;
}
@media (max-width: 820px) { .cart-grid { grid-template-columns: 1fr; } }
.cart-items { display: flex; flex-direction: column; gap: var(--s-3); }
.cart-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: var(--s-4);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  box-shadow: var(--sh-sm);
}
.cart-item-thumb img { width: 90px; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-md); }
.cart-item-title { color: var(--text); font-weight: 600; text-decoration: none; }
.cart-item-title:hover { color: var(--blue-600); }
.cart-item-meta { color: var(--text-muted); font-size: var(--fs-sm); margin: 4px 0 6px; }
.cart-item-price { font-weight: 700; color: var(--text); font-size: var(--fs-lg); }
.cart-item-remove { margin-top: 4px; }

.cart-summary {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  position: sticky;
  top: 88px;
  box-shadow: var(--sh-md);
}
.cart-summary h2 { margin-bottom: var(--s-4); font-size: var(--fs-lg); }
.cart-summary-list { display: grid; gap: var(--s-2); margin: 0; padding: 0; }
.cart-summary-list > div { display: flex; justify-content: space-between; color: var(--text-soft); }
.cart-summary-list .total { padding-top: var(--s-3); border-top: 1px solid var(--border); color: var(--text); font-size: var(--fs-lg); font-weight: 700; }
.coupon-form { display: flex; gap: var(--s-2); margin-block: var(--s-4); }
.coupon-form input { flex: 1; }
.checkout-form { display: grid; gap: var(--s-2); }
.pay-meta { display: block; color: var(--text-muted); text-align: center; margin-top: var(--s-2); font-size: var(--fs-xs); }
.cart-account-hint { color: var(--text-muted); margin-top: var(--s-4); text-align: center; font-size: var(--fs-sm); }

/* === Auth pages === */
.auth-section { padding-block: var(--s-10); }
.auth-card {
  max-width: 440px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  padding: var(--s-8);
  box-shadow: var(--sh-md);
}
.auth-card h1 { font-size: var(--fs-2xl); margin-bottom: var(--s-2); }
.auth-card > p { color: var(--text-soft); margin-bottom: var(--s-5); }
.auth-meta {
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.auth-meta a { color: var(--blue-600); font-weight: 600; }

/* === Account === */
.account { padding-block: var(--s-10); }
.account-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--s-8);
  align-items: start;
}
@media (max-width: 820px) { .account-grid { grid-template-columns: 1fr; } }
.account-nav {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  box-shadow: var(--sh-sm);
  position: sticky;
  top: 88px;
}
.account-nav h3 {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--s-3);
}
.account-nav nav { display: grid; gap: 2px; }
.account-nav nav a {
  padding: var(--s-3) var(--s-3);
  border-radius: var(--r-md);
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  font-size: var(--fs-sm);
}
.account-nav nav a:hover { background: var(--blue-50); color: var(--blue-600); }
.account-nav nav a.is-active { background: var(--blue-500); color: #fff; }
.account-logout { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--border-subtle); }

.account-main h1 { margin-bottom: var(--s-2); font-size: var(--fs-2xl); }
.account-main > p.muted { margin-bottom: var(--s-5); }
.account-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  margin: var(--s-5) 0;
}
@media (max-width: 720px) { .account-stats { grid-template-columns: 1fr; } }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--sh-sm);
}
.stat-num {
  display: block;
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--blue-600);
  margin-bottom: 4px;
  word-break: break-word;
  letter-spacing: -0.02em;
}
.stat-label { color: var(--text-muted); font-size: var(--fs-sm); font-weight: 500; }

.account-row { margin-top: var(--s-6); }
.account-row h2 { font-size: var(--fs-xl); margin-bottom: var(--s-3); }

.order-list { list-style: none; padding: 0; margin: var(--s-3) 0; }
.order-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  margin-bottom: var(--s-2);
  box-shadow: var(--sh-sm);
}

.order-cards { display: grid; gap: var(--s-4); }
.order-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--sh-sm);
}
.order-card header {
  display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--s-3); margin-bottom: var(--s-3);
}
.order-card ul { list-style: none; padding: 0; margin: 0 0 var(--s-3); }
.order-card li { display: flex; justify-content: space-between; padding: 6px 0; }
.order-card footer {
  display: flex; align-items: center; gap: var(--s-3);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--s-3);
}
.order-card footer strong { font-size: var(--fs-lg); margin-right: auto; color: var(--text); }

.settings-grid { display: grid; gap: var(--s-4); }
.settings-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--sh-sm);
}
.settings-card h2 { font-size: var(--fs-lg); margin-bottom: var(--s-4); }
.settings-card.is-danger { border-color: rgba(239,68,68,.30); background: rgba(239,68,68,.04); }
.settings-card.is-danger h2 { color: var(--danger); }

/* === Downloads (account) === */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--s-4);
  margin-top: var(--s-5);
}
.download-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--sh-sm);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.download-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.download-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.download-card-body { padding: var(--s-4); flex: 1; display: flex; flex-direction: column; gap: var(--s-2); }
.download-card-body h3 { font-size: var(--fs-base); margin: 0; }
.download-card-actions { margin-top: auto; display: flex; gap: var(--s-2); flex-wrap: wrap; }
.inline-form { display: inline; }

.page-header { margin-bottom: var(--s-6); }
.page-header h1 { font-size: var(--fs-2xl); margin-bottom: var(--s-2); }

/* === Checkout success/cancel === */
.success-banner {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  color: var(--text);
  padding: var(--s-6);
  border-radius: var(--r-lg);
  margin-bottom: var(--s-4);
  text-align: center;
}
.success-banner h1 { margin-bottom: var(--s-3); }
.success-banner.pending { background: var(--surface-2); border-color: var(--border); }
.spinner {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 3px solid var(--blue-100);
  border-top-color: var(--blue-500);
  animation: spin 1s linear infinite;
  margin: var(--s-4) auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.small { font-size: var(--fs-sm); }

/* === Legal === */
.legal h2 { margin-top: var(--s-8); }
.legal h3 { margin-top: var(--s-5); }
.legal p, .legal li { color: var(--text-soft); line-height: var(--lh-relaxed); }

/* === Footer (deep navy, 4-column) === */
.site-footer {
  position: relative;
  margin-top: var(--s-12);
  background: var(--navy-900);
  color: var(--text-inverse);
  overflow: hidden;
}
.site-footer-inner { padding: var(--s-10) 0 var(--s-4); position: relative; z-index: 1; }
.site-footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s-8);
  position: relative;
  z-index: 1;
}
@media (max-width: 820px) { .site-footer-cols { grid-template-columns: 1fr 1fr; gap: var(--s-5); } }
@media (max-width: 520px) { .site-footer-cols { grid-template-columns: 1fr; } }

.site-footer-col h4 {
  color: rgba(255,255,255,.55);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--s-3);
  font-weight: 600;
}
.site-footer-col a {
  display: block;
  color: rgba(255,255,255,.85);
  padding-block: 6px;
  font-weight: 500;
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: color 160ms var(--ease);
}
.site-footer-col a:hover { color: var(--blue-400); }
.site-footer-col.is-brand p { color: rgba(255,255,255,.72); margin: var(--s-3) 0 var(--s-4); max-width: 320px; line-height: var(--lh-relaxed); }
.site-footer-col .btn-dark {
  background: var(--blue-500);
  box-shadow: var(--sh-blue);
}
.site-footer-col .btn-dark:hover { background: var(--blue-600); }

.site-footer-wordmark {
  font-size: clamp(80px, 18vw, 220px);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,.04);
  position: absolute;
  bottom: -38px;
  left: 0; right: 0;
  text-align: center;
  pointer-events: none;
  z-index: 0;
  line-height: 1;
  user-select: none;
}

.site-footer-base {
  margin-top: var(--s-8);
  padding-top: var(--s-4);
  border-top: 1px solid rgba(255,255,255,.10);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3);
  position: relative; z-index: 1;
}
.site-footer-base small { color: rgba(255,255,255,.55); }

/* === Newsletter (footer) === */
.footer-newsletter { display: flex; gap: var(--s-2); margin-top: var(--s-4); max-width: 360px; }
.footer-newsletter input {
  flex: 1;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  border-radius: var(--r-md);
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,.50); }
.footer-newsletter input:focus { background: rgba(255,255,255,.12); border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(122,169,255,.20); }

/* Footer dark-form autofill override */
.footer-newsletter input:-webkit-autofill,
.footer-newsletter input:-webkit-autofill:hover,
.footer-newsletter input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px rgba(255,255,255,.08) inset;
  caret-color: #fff;
}

/* === Footer socials === */
.footer-social { display: flex; gap: var(--s-2); margin-top: var(--s-4); }
.footer-social a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.85);
  padding: 0;
  transition: background 160ms var(--ease), color 160ms var(--ease);
}
.footer-social a:hover { background: var(--blue-500); color: #fff; }

/* === Contact form === */
.contact-form { display: grid; gap: 0; max-width: 540px; }

/* === Misc === */
.catalog-sub { color: var(--text-soft); margin-bottom: var(--s-4); font-size: var(--fs-lg); max-width: 720px; }

/* === Header-scoped button overrides ===
   The dark navy bar needs light-colored buttons. Scope class names from
   the storefront so PHP templates don't change. */
.site-header .btn-ghost {
  color: rgba(255,255,255,.92);
  background: transparent;
  border: 1px solid transparent;
}
.site-header .btn-ghost:hover {
  background: rgba(255,255,255,.10);
  color: #fff;
}
.site-header .btn-primary {
  background: var(--blue-500);
  color: #fff;
  box-shadow: 0 4px 14px rgba(79,142,255,.45);
}
.site-header .btn-primary:hover {
  background: var(--blue-600);
  color: #fff;
}
.site-header .btn { font-size: var(--fs-sm); min-height: 38px; padding: 8px 16px; }

/* Force autofill text to stay readable on light auth forms */
.auth-card input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--surface) inset;
}
