/* ProjexaGo Public Storefront — Premium Design System */
/* Brand colour injected at runtime via --p; all other tokens derived from it. */

/* ── Platform notice banners (real-time, sticky top) ───────────────────────── */
#pg-notice-bar { position: relative; z-index: 1200; }
.pg-notice { display: flex; align-items: center; gap: .7rem; padding: .6rem 1.2rem; font-size: .88rem; color: #fff; background: #1e293b; }
.pg-notice + .pg-notice { border-top: 1px solid rgba(255,255,255,.18); }
.pg-notice-ic { flex-shrink: 0; opacity: .9; }
.pg-notice-text { flex: 1; min-width: 0; line-height: 1.4; }
.pg-notice-text span { opacity: .9; }
.pg-notice-cta { color: #fff; font-weight: 700; text-decoration: underline; white-space: nowrap; }
.pg-notice-x { background: none; border: none; color: #fff; opacity: .8; font-size: 1.25rem; line-height: 1; cursor: pointer; padding: 0 .2rem; }
.pg-notice-x:hover { opacity: 1; }
.pg-notice-info { background: #1d4ed8; }
.pg-notice-success { background: #047857; }
.pg-notice-warning { background: #b45309; }
.pg-notice-error, .pg-notice-critical { background: #b91c1c; }
.pg-notice-promotion { background: #6d28d9; }
.pg-notice-maintenance { background: #334155; }

:root {
  --p: #4f46e5;
  --p-ink: #fff;
  --bg: #fff;
  --brand-font: 'Inter';
  --surface: #f8fafc;
  --surface-2: #f1f5f9;
  --border: #e2e8f0;
  --border-2: #cbd5e1;
  --text: #0f172a;
  --text-2: #334155;
  --text-muted: #64748b;
  --text-faint: #94a3b8;
  --success: #059669;
  --error: #dc2626;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-xs: 0 1px 2px rgba(0,0,0,.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.1),0 1px 2px rgba(0,0,0,.06);
  --shadow: 0 4px 8px rgba(0,0,0,.07),0 2px 4px rgba(0,0,0,.05);
  --shadow-md: 0 10px 25px rgba(0,0,0,.1),0 4px 10px rgba(0,0,0,.06);
  --shadow-lg: 0 20px 40px rgba(0,0,0,.12),0 8px 16px rgba(0,0,0,.07);
  --shadow-xl: 0 30px 60px rgba(0,0,0,.15),0 10px 24px rgba(0,0,0,.1);
  --header-h: 68px;
  --ease: cubic-bezier(.4,0,.2,1);
}

*,*::before,*::after { box-sizing: border-box; }
body.store {
  font-family: var(--brand-font),-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  background: var(--bg); color: var(--text); margin: 0;
  -webkit-font-smoothing: antialiased; line-height: 1.5;
}
a { text-decoration: none; }
img { max-width: 100%; }

/* ── Header ────────────────────────────────────────────────────────────────── */
.store-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  transition: box-shadow 200ms var(--ease);
}
.store-header.scrolled { box-shadow: var(--shadow-md); }
.store-header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 1.5rem; height: 100%;
  display: flex; align-items: center; gap: 1.25rem;
}
.store-logo {
  font-weight: 800; font-size: 1.15rem; letter-spacing: -.025em;
  display: flex; align-items: center; gap: .45rem;
  color: var(--text); text-decoration: none; white-space: nowrap; flex-shrink: 0;
}
.store-logo img { height: 34px; width: auto; object-fit: contain; }
.store-nav { display: flex; flex: 1; margin-left: .25rem; }
.store-nav a {
  color: var(--text-muted); font-weight: 500; font-size: .9rem;
  padding: .45rem .7rem; border-radius: var(--radius-sm);
  transition: color 150ms, background 150ms;
}
.store-nav a:hover { color: var(--text); background: var(--surface); }
.store-header-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }

.header-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .42rem .85rem; border-radius: var(--radius-sm);
  font-size: .87rem; font-weight: 600; cursor: pointer;
  border: 1.5px solid transparent; transition: all 150ms; font-family: inherit;
  white-space: nowrap; line-height: 1;
}
.header-btn-ghost {
  background: none; border-color: var(--border-2); color: var(--text-2);
}
.header-btn-ghost:hover { border-color: var(--p); color: var(--p); background: none; }
.header-btn-primary { background: var(--p); color: var(--p-ink); border-color: var(--p); }
.header-btn-primary:hover { opacity: .88; }

/* ── Customer account dropdown ───────────────────────────────────────────────── */
.cust-menu-wrap { position: relative; }
.cust-menu-btn { gap: .45rem; }
.cust-avatar { font-size: 1.05rem; color: var(--p); line-height: 1; }
.cust-name { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cust-chevron { font-size: .6rem; opacity: .7; transition: transform 200ms; }
.cust-menu-btn[aria-expanded="true"] .cust-chevron { transform: rotate(180deg); }
.cust-dropdown {
  display: none;
  position: absolute; top: calc(100% + .55rem); right: 0;
  background: var(--bg, #fff);
  border: 1px solid var(--border, rgba(0,0,0,.1));
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.07);
  min-width: 220px; width: max-content; max-width: 280px;
  z-index: 200;
  overflow: hidden;
  animation: scaleIn .18s cubic-bezier(.34,1.56,.64,1);
  transform-origin: top right;
}
.cust-drop-header {
  padding: 1rem 1.15rem .85rem;
  background: color-mix(in srgb, var(--p) 8%, transparent);
  border-bottom: 1px solid var(--border, rgba(0,0,0,.07));
}
.cust-drop-name { font-size: .9rem; font-weight: 700; color: var(--text, #1e293b); margin-bottom: .18rem; }
.cust-drop-email { font-size: .75rem; color: var(--text-muted, #64748b); font-weight: 400; }
.cust-drop-item {
  display: flex; align-items: center; gap: .65rem;
  padding: .72rem 1.15rem;
  font-size: .875rem; font-weight: 500; line-height: 1;
  color: var(--text, #374151);
  background: none; border: none;
  width: 100%; cursor: pointer; font-family: inherit;
  text-decoration: none;
  transition: background 120ms, color 120ms;
}
.cust-drop-item:hover { background: color-mix(in srgb, var(--p) 9%, transparent); color: var(--p); }
.cust-drop-item i { width: 16px; text-align: center; font-size: .9rem; opacity: .75; flex-shrink: 0; }
.cust-drop-item:hover i { opacity: 1; }
.cust-drop-divider { height: 1px; background: var(--border, rgba(0,0,0,.07)); margin: .2rem 0; }
.cust-drop-signout { color: #dc2626; }
.cust-drop-signout:hover { background: #fef2f2 !important; color: #dc2626 !important; }
.cust-drop-signout i { opacity: .8 !important; }

.cart-btn {
  position: relative; background: var(--p); color: var(--p-ink);
  border: none; padding: .48rem .95rem; border-radius: var(--radius-sm);
  cursor: pointer; font-weight: 700; font-size: .9rem; font-family: inherit;
  display: inline-flex; align-items: center; gap: .4rem;
  transition: opacity 150ms;
}
.cart-btn:hover { opacity: .88; }
.cart-count {
  position: absolute; top: -7px; right: -7px;
  background: #ef4444; color: #fff;
  border-radius: 999px; font-size: .62rem; padding: .1rem .38rem;
  font-weight: 800; min-width: 18px; text-align: center;
  line-height: 1.45; border: 2px solid #fff;
}
.nav-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: .45rem; color: var(--text-2);
  font-size: 1.1rem; border-radius: var(--radius-sm);
  transition: background 150ms;
}
.nav-toggle:hover { background: var(--surface); }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.store-hero {
  min-height: 60vh;
  background:
    radial-gradient(ellipse 130% 70% at 50% -15%,
      color-mix(in srgb, var(--p) 52%, transparent) 0%,
      transparent 65%),
    linear-gradient(160deg, color-mix(in srgb, var(--p) 22%, #000) 0%, color-mix(in srgb, var(--p) 12%, #050810) 100%);
  color: #fff; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 5rem 1.5rem 4rem;
  position: relative; overflow: hidden;
}
.store-hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 52px 52px;
}
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(100px); pointer-events: none; z-index: 0;
}
.hero-orb-1 {
  width: 700px; height: 700px;
  background: color-mix(in srgb, var(--p) 40%, transparent);
  top: -320px; left: 50%; transform: translateX(-20%); opacity: .65;
}
.hero-orb-2 {
  width: 420px; height: 420px;
  background: color-mix(in srgb, var(--p) 50%, transparent);
  bottom: -100px; right: -80px; opacity: .45;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: color-mix(in srgb, var(--p) 35%, transparent);
  top: 40%; left: -70px; opacity: .3;
}
.store-hero-content { position: relative; z-index: 1; max-width: 740px; }
.store-hero-eyebrow {
  display: inline-flex; align-items: center; gap: .42rem;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.82); padding: .32rem .9rem;
  border-radius: 999px; font-size: .79rem; font-weight: 600;
  margin-bottom: 1.6rem; letter-spacing: .02em;
  backdrop-filter: blur(8px);
}
.store-hero h1 {
  font-size: calc(clamp(2.5rem, 6.5vw, 4.4rem) * var(--hero-scale, 1)); font-weight: 900;
  margin: 0 0 1.2rem; line-height: 1.02; letter-spacing: -.045em;
  background: linear-gradient(180deg, #ffffff 35%, color-mix(in srgb, var(--p) 50%, #fff));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.store-hero p {
  font-size: clamp(.97rem,2vw,1.2rem); color: rgba(255,255,255,.55);
  margin: 0 auto 2.75rem; line-height: 1.7; max-width: 530px;
}
.store-hero-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.hero-cta-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; color: var(--p);
  padding: .9rem 2.1rem; border-radius: var(--radius);
  font-weight: 800; font-size: 1rem; cursor: pointer;
  border: none; font-family: inherit;
  transition: transform 180ms var(--ease), box-shadow 180ms;
  box-shadow: 0 4px 20px rgba(0,0,0,.35); text-decoration: none;
}
.hero-cta-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,.45); }
.hero-cta-secondary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.1); color: #fff;
  padding: .9rem 2.1rem; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; cursor: pointer;
  border: 1.5px solid rgba(255,255,255,.22); font-family: inherit;
  transition: background 150ms; text-decoration: none;
  backdrop-filter: blur(8px);
}
.hero-cta-secondary:hover { background: rgba(255,255,255,.18); }
.hero-trust {
  margin-top: 2rem; font-size: .8rem; color: rgba(255,255,255,.4);
  display: flex; align-items: center; justify-content: center;
  gap: 1.5rem; flex-wrap: wrap;
}
.hero-trust-item { display: flex; align-items: center; gap: .32rem; }
.hero-stats {
  display: flex; gap: 3rem; justify-content: center;
  margin-top: 2rem; padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,.08); flex-wrap: wrap;
}
.hero-stat-num {
  font-size: 1.9rem; font-weight: 900; color: #fff;
  letter-spacing: -.045em; line-height: 1;
}
.hero-stat-label { font-size: .72rem; color: rgba(255,255,255,.35); margin-top: .32rem; letter-spacing: .04em; text-transform: uppercase; }

/* ── Main content ──────────────────────────────────────────────────────────── */
.store-main { max-width: 1200px; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.sec-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: .75rem; }
.sec-title { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; color: var(--text); margin: 0; }
.sec-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2rem; flex-wrap: wrap; gap: .75rem; }
.sec-header-left { flex: 1; }
.sec-eyebrow { font-size: .73rem; font-weight: 700; color: var(--p); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .35rem; display: flex; align-items: center; gap: .3rem; }
.sec-heading { font-size: 1.75rem; font-weight: 900; letter-spacing: -.03em; color: var(--text); margin: 0; line-height: 1.15; }
.sec-link { font-size: .87rem; font-weight: 600; color: var(--p); white-space: nowrap; }
.sec-link:hover { text-decoration: underline; }

/* ── Category tiles ─────────────────────────────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); gap: 1rem; }
.cat-tile {
  border-radius: var(--radius-xl); overflow: hidden;
  aspect-ratio: 3/4; background: var(--surface-2);
  display: flex; align-items: flex-end; padding: 1rem;
  text-decoration: none; position: relative; cursor: pointer;
  transition: transform 220ms var(--ease), box-shadow 220ms;
  border: 1px solid var(--border);
}
.cat-tile::before {
  content: ''; position: absolute; inset: -4%; z-index: 0; pointer-events: none;
  background: var(--img, none) center/cover no-repeat;
  filter: blur(22px) brightness(.95); transform: scale(1.14);
}
.cat-tile::after {
  content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit;
  background: linear-gradient(0deg,rgba(0,0,0,.62) 0%,rgba(0,0,0,.0) 60%),
              var(--img, none) center/contain no-repeat;
  transition: opacity 220ms;
}
.cat-tile-no-img::before { content: none; }
.cat-tile:hover { transform: translateY(-5px) scale(1.015); box-shadow: var(--shadow-lg); }
.cat-tile:hover::after { opacity: .85; }
.cat-tile-label {
  position: relative; z-index: 2;
  color: #fff; font-weight: 700; font-size: .92rem;
  text-shadow: 0 1px 6px rgba(0,0,0,.5); line-height: 1.25;
  letter-spacing: -.01em;
}
.cat-tile-no-img {
  background: linear-gradient(145deg,
    color-mix(in srgb, var(--p) 16%, var(--surface-2)),
    color-mix(in srgb, var(--p) 7%, var(--surface))
  );
  border: 2px solid color-mix(in srgb, var(--p) 18%, transparent);
}
.cat-tile-no-img::after { background: none; }
.cat-tile-no-img .cat-tile-label { color: var(--p); font-size: 1rem; }

/* ── Category scroll carousel ───────────────────────────────────────────────── */
.cat-scroll {
  display: flex; gap: .85rem; overflow-x: auto; padding-bottom: .65rem;
  scrollbar-width: thin; scrollbar-color: var(--border-2) transparent;
  -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory;
  margin-bottom: 4.5rem;
}
.cat-scroll::-webkit-scrollbar { height: 5px; }
.cat-scroll::-webkit-scrollbar-track { background: transparent; }
.cat-scroll::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
.cat-scroll .cat-tile { flex-shrink: 0; width: 190px; scroll-snap-align: start; }

/* ── Hero variants ──────────────────────────────────────────────────────────── */
.store-hero.hero-photo {
  min-height: 60vh;
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--p) 22%, #000) 0%,
    color-mix(in srgb, var(--p) 12%, #050810) 100%);
}
.store-hero.hero-photo .hero-orb { display: none; }
.store-hero.hero-photo::before {
  content: ''; display: block; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: var(--img, none) center/cover no-repeat;
  transform: scale(1.03);
}
/* Full-bleed photo hero: the image fills the section (cover) with a brand-tinted
   dark overlay so the white hero text stays legible over any photo. */
.store-hero.hero-photo::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2,6,23,.42) 0%, rgba(2,6,23,.58) 55%, rgba(2,6,23,.72) 100%),
    radial-gradient(ellipse 120% 80% at 50% 0%, color-mix(in srgb, var(--p) 38%, transparent) 0%, transparent 60%);
}
.store-hero.hero-photo .store-hero-content { position: relative; z-index: 2; }
/* Demo "watermark" — fixed corner badge (design_config.watermark). */
.store-watermark {
  position: fixed; right: 14px; bottom: 14px; z-index: 2000; pointer-events: none;
  background: rgba(15,23,42,.82); color: #fff;
  font-weight: 700; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .42rem .72rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(6px);
  box-shadow: 0 6px 22px rgba(0,0,0,.28);
}
@media (max-width: 600px) { .store-watermark { right: 10px; bottom: 10px; font-size: .62rem; } }
.store-hero.hero-minimal {
  min-height: 44vh; padding: 4.5rem 1.5rem 3.5rem;
}
.store-hero.hero-minimal .hero-stats { margin-top: 1.75rem; padding-top: 1.5rem; }
.store-hero.hero-split {
  min-height: 62vh; flex-direction: row; text-align: left;
  justify-content: flex-start; gap: 3rem; padding: 4rem 4rem 3.5rem;
}
@media (max-width: 900px) { .store-hero.hero-split { flex-direction: column; text-align: center; padding: 5rem 1.5rem 4rem; } }
.store-hero.hero-split .store-hero-content { max-width: 52%; text-align: left; }
@media (max-width: 900px) { .store-hero.hero-split .store-hero-content { max-width: 100%; text-align: center; } }
.store-hero.hero-split .store-hero-actions { justify-content: flex-start; }
@media (max-width: 900px) { .store-hero.hero-split .store-hero-actions { justify-content: center; } }
.store-hero.hero-split .hero-trust,
.store-hero.hero-split .hero-stats { justify-content: flex-start; }
@media (max-width: 900px) { .store-hero.hero-split .hero-trust, .store-hero.hero-split .hero-stats { justify-content: center; } }
.hero-split-img {
  flex: 1; min-height: 380px; border-radius: var(--radius-xl);
  background: var(--surface-2); flex-shrink: 0;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
@media (max-width: 900px) { .hero-split-img { display: none; } }

/* ── Catalog sidebar layout ─────────────────────────────────────────────────── */
.catalog-layout { display: flex; gap: 2rem; align-items: flex-start; }
.cat-sidebar {
  width: 210px; flex-shrink: 0;
  position: sticky; top: calc(var(--header-h,64px) + 1rem);
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem; align-self: flex-start;
}
.cat-sidebar-title {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .09em; color: var(--text-muted); margin-bottom: .75rem;
}
.cat-sidebar a {
  display: flex; align-items: center; justify-content: space-between;
  padding: .42rem .65rem; border-radius: var(--radius-sm);
  font-size: .87rem; font-weight: 500; color: var(--text-2);
  text-decoration: none; transition: background 130ms, color 130ms;
}
.cat-sidebar a:hover { background: var(--surface); color: var(--text); }
.cat-sidebar a.active {
  background: color-mix(in srgb, var(--p) 10%, var(--surface-1));
  color: var(--p); font-weight: 600;
}
.catalog-content { flex: 1; min-width: 0; }
@media (max-width: 780px) { .catalog-layout { flex-direction: column; } .cat-sidebar { width: 100%; position: static; } }

/* ── Product grid column variants ───────────────────────────────────────────── */
.prod-grid-2 { grid-template-columns: repeat(2, 1fr) !important; }
.prod-grid-4 { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)) !important; }

/* ── Product grid ───────────────────────────────────────────────────────────── */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(225px,1fr)); gap: 1.25rem; }
.prod-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer;
  transition: box-shadow 200ms var(--ease), transform 200ms var(--ease);
  background: var(--bg); display: flex; flex-direction: column; position: relative;
  /* Perf: skip rendering/layout for off-screen cards in long catalogs. */
  content-visibility: auto; contain-intrinsic-size: auto 340px;
}
.prod-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.prod-img {
  aspect-ratio: 4/3; background: var(--surface);
  display: grid; place-items: center;
  color: var(--text-faint); font-size: 2rem;
  position: relative; overflow: hidden;
}

/* ── Image fit: full image (contain) over a blurred fill of itself ───────────────
   The image is shown complete (never cropped); a scaled, blurred copy fills the
   empty space so there are no ugly bars. Shared by every media tile. */
.prod-img, .pdp-img, .prod-spotlight-img, .hero-split-img { position: relative; overflow: hidden; isolation: isolate; }
.prod-img::before, .pdp-img::before, .prod-spotlight-img::before, .hero-split-img::before {
  content: ''; position: absolute; inset: -4%; z-index: 0; pointer-events: none;
  background: var(--img, none) center/cover no-repeat;
  filter: blur(26px) saturate(1.15) brightness(.96); transform: scale(1.14);
}
.prod-img::after, .pdp-img::after, .prod-spotlight-img::after, .hero-split-img::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--img, none) center/contain no-repeat;
}
.prod-spotlight-img-empty::before, .prod-spotlight-img-empty::after { content: none; }
.prod-img-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: rgba(0,0,0,.38);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 180ms;
}
.prod-card:hover .prod-img-overlay { opacity: 1; }
.prod-quick-add {
  background: #fff; color: var(--p);
  border: none; border-radius: var(--radius-sm);
  padding: .52rem 1.1rem; font-weight: 700; font-size: .85rem;
  cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; gap: .38rem;
  transition: transform 150ms;
}
.prod-quick-add:hover { transform: scale(1.04); }
.prod-img-overlay-guest { background: rgba(0,0,0,.28); }
.prod-view-hint {
  color: rgba(255,255,255,.9); font-size: .82rem; font-weight: 600;
  display: flex; align-items: center; gap: .35rem;
  background: rgba(0,0,0,.25); padding: .38rem .8rem; border-radius: 999px;
}
.prod-badge {
  position: absolute; top: .55rem; left: .55rem;
  background: #ef4444; color: #fff;
  font-size: .66rem; font-weight: 800; padding: .15rem .48rem;
  border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; z-index: 3;
}
.prod-badge.featured { background: var(--p); }
/* Stack multiple corner badges (NEW + sale) vertically, top-left. */
.prod-badges { position: absolute; top: .55rem; left: .55rem; z-index: 3; display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; }
.prod-badges .prod-badge { position: static; }
.prod-badge.is-new { background: #10b981; }
/* Favorite (wishlist) heart — top-right of the image. */
.prod-fav-btn {
  position: absolute; top: .5rem; right: .5rem; z-index: 4;
  width: 32px; height: 32px; border-radius: 999px; border: none; cursor: pointer;
  background: rgba(255,255,255,.92); color: #64748b;
  display: grid; place-items: center; font-size: .9rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.12); transition: transform 150ms var(--ease), color 150ms;
}
.prod-fav-btn:hover { transform: scale(1.1); }
.prod-fav-btn.is-fav { color: #ef4444; }
.fav-btn-header { position: relative; }
.prod-body { padding: .95rem 1.1rem 1.15rem; flex: 1; display: flex; flex-direction: column; }
.prod-body h3 { font-size: .95rem; font-weight: 700; margin: 0 0 .28rem; color: var(--text); line-height: 1.3; }
.prod-desc { color: var(--text-muted); font-size: .82rem; flex: 1; line-height: 1.5; margin-bottom: .5rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.prod-price-row { display: flex; align-items: center; gap: .45rem; margin-top: auto; flex-wrap: wrap; }
.prod-price { font-weight: 800; font-size: 1.02rem; color: var(--p); }
.prod-price-del { font-size: .82rem; color: var(--text-faint); font-weight: 500; text-decoration: line-through; }
.prod-sale-badge { font-size: .7rem; font-weight: 700; background: #fef2f2; color: #ef4444; padding: .1rem .38rem; border-radius: 4px; white-space: nowrap; }

/* ── Banner carousel ─────────────────────────────────────────────────────────── */
.banner-carousel, .bn-single {
  position: relative; border-radius: var(--radius-xl);
  overflow: hidden; margin-bottom: 2.5rem;
}
.bn-track {
  display: flex; will-change: transform;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
}
.bn-slide, .bn-single > a {
  display: block; flex: 0 0 100%; min-height: 400px;
  background: var(--p);
  text-decoration: none; position: relative; overflow: hidden;
}
.bn-slide::before, .bn-single > a::before {
  content: ''; position: absolute; inset: -4%; z-index: 0; pointer-events: none;
  background: var(--img, none) center/cover no-repeat;
  filter: blur(24px) brightness(.95); transform: scale(1.14);
}
.bn-slide::after, .bn-single > a::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg,rgba(0,0,0,.56),rgba(0,0,0,.08)),
              var(--img, none) center/contain no-repeat;
}
.store-banner-text {
  position: relative; z-index: 2;
  padding: 3rem 3.5rem; max-width: 580px;
}
.bn-eyebrow {
  display: inline-block; background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.9);
  padding: .22rem .75rem; border-radius: 999px; font-size: .75rem;
  font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  margin-bottom: .85rem;
}
.store-banner-text h2 { color: #fff; font-size: clamp(1.6rem,3.5vw,2.4rem); margin: 0 0 .55rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.store-banner-text p  { color: rgba(255,255,255,.82); margin: 0 0 1.25rem; font-size: 1rem; max-width: 420px; line-height: 1.6; }
.banner-cta {
  display: inline-flex; align-items: center; gap: .45rem;
  background: #fff; color: var(--text);
  padding: .6rem 1.3rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .88rem; transition: transform .15s;
}
.banner-cta:hover { transform: translateY(-1px); }
.bn-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  background: rgba(255,255,255,.18); border: 1.5px solid rgba(255,255,255,.3);
  color: #fff; width: 46px; height: 46px; border-radius: 50%;
  cursor: pointer; font-size: 1.5rem; display: grid; place-items: center;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .15s; line-height: 1;
}
.bn-arrow:hover { background: rgba(255,255,255,.32); }
.bn-prev { left: 1.1rem; }
.bn-next { right: 1.1rem; }
.bn-dots {
  position: absolute; bottom: 1.1rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: .4rem; z-index: 2;
}
.bn-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: rgba(255,255,255,.4); border: none; cursor: pointer; padding: 0;
  transition: background .2s, width .25s cubic-bezier(.4,0,.2,1);
}
.bn-dot.active { background: #fff; width: 24px; }

/* ── Value props band ────────────────────────────────────────────────────────── */
.value-props {
  background: linear-gradient(125deg,
    color-mix(in srgb, var(--p) 92%, #000) 0%,
    color-mix(in srgb, var(--p) 60%, #0f172a) 100%
  );
  border-radius: var(--radius-xl); overflow: hidden;
  margin-bottom: 4.5rem;
  display: grid; grid-template-columns: repeat(4,1fr);
  position: relative;
}
.value-props::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 100% at 50% -20%, rgba(255,255,255,.1), transparent);
}
.vp-item {
  display: flex; align-items: center; gap: .9rem;
  padding: 1.4rem 1.7rem;
  border-right: 1px solid rgba(255,255,255,.1);
  position: relative; z-index: 1;
}
.vp-item:last-child { border-right: none; }
.vp-item i { font-size: 1.45rem; color: rgba(255,255,255,.65); flex-shrink: 0; }
.vp-item strong { display: block; font-size: .9rem; font-weight: 700; color: #fff; }
.vp-item span { display: block; font-size: .77rem; color: rgba(255,255,255,.45); margin-top: .08rem; }

/* ── Generic landing: Features / Pricing / Contact (SaaS & Marketplace) ───────── */
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.1rem; }
.feature-card {
  background: var(--card, #fff); border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-lg, 16px); padding: 1.6rem 1.5rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--p) 45%, var(--border, #e2e8f0)); box-shadow: 0 16px 40px -24px rgba(15,23,42,.4); }
.feature-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.2rem; margin-bottom: 1rem;
  background: color-mix(in srgb, var(--p) 14%, transparent); color: var(--p);
}
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 .35rem; color: var(--ink, #0f172a); }
.feature-card p { font-size: .88rem; line-height: 1.55; color: var(--muted, #64748b); margin: 0; }

.pricing-cta {
  text-align: center; border-radius: var(--radius-xl, 24px); padding: 3.2rem 2rem;
  background: linear-gradient(125deg, color-mix(in srgb, var(--p) 92%, #000) 0%, color-mix(in srgb, var(--p) 55%, #0f172a) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.pricing-cta-icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; margin: 0 auto 1.1rem; background: rgba(255,255,255,.16); color: #fff; }
.pricing-cta h3 { font-size: 1.7rem; font-weight: 800; margin: 0 0 .6rem; letter-spacing: -.03em; }
.pricing-cta p { color: rgba(255,255,255,.7); margin: 0 auto 1.6rem; max-width: 480px; line-height: 1.6; }

.contact-block { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.1rem; }
.contact-item {
  display: flex; align-items: center; gap: .9rem; text-decoration: none;
  background: var(--card, #fff); border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-lg, 16px); padding: 1.3rem 1.4rem; color: inherit;
}
.contact-item i { font-size: 1.3rem; color: var(--p); flex-shrink: 0; }
.contact-item strong { display: block; font-size: .9rem; font-weight: 700; color: var(--ink, #0f172a); }
.contact-item span { display: block; font-size: .82rem; color: var(--muted, #64748b); margin-top: .1rem; word-break: break-word; }

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2,1fr); }
  .contact-block { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* ── Product Spotlight ───────────────────────────────────────────────────────── */
.prod-spotlight {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-radius: var(--radius-xl); overflow: hidden;
  margin-bottom: 4.5rem; min-height: 440px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); cursor: pointer;
  transition: box-shadow 200ms, transform 200ms;
}
.prod-spotlight:hover { box-shadow: var(--shadow-xl); transform: translateY(-3px); }
.prod-spotlight-img {
  background: var(--surface-2);
  min-height: 440px;
}
.prod-spotlight-img-empty {
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; color: color-mix(in srgb, var(--p) 20%, transparent);
  background: linear-gradient(145deg,
    color-mix(in srgb, var(--p) 10%, var(--surface-2)),
    color-mix(in srgb, var(--p) 5%, var(--surface))
  );
}
.prod-spotlight-body {
  padding: 3rem; display: flex; flex-direction: column; justify-content: center;
  background: var(--bg);
}
.prod-spotlight-eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  background: color-mix(in srgb, var(--p) 12%, transparent);
  color: var(--p); border-radius: 999px;
  padding: .3rem .85rem; font-size: .73rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 1.15rem; width: fit-content;
}
.prod-spotlight-body h2 {
  font-size: 2.1rem; font-weight: 900; letter-spacing: -.035em;
  margin: 0 0 .7rem; line-height: 1.12; color: var(--text);
}
.prod-spotlight-price {
  font-size: 1.9rem; font-weight: 800; color: var(--p);
  margin-bottom: 1.15rem; display: flex; align-items: baseline; gap: .75rem;
}
.prod-spotlight-orig { font-size: 1.1rem; font-weight: 500; color: var(--text-faint); text-decoration: line-through; }
.prod-spotlight-desc {
  color: var(--text-muted); line-height: 1.7; font-size: .97rem;
  margin-bottom: 2rem; max-width: 380px;
}
.prod-spotlight-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--p); color: var(--p-ink);
  padding: .88rem 2.1rem; border-radius: var(--radius);
  font-weight: 700; font-size: .97rem; cursor: pointer;
  border: none; font-family: inherit;
  transition: opacity 150ms, transform 150ms; text-decoration: none; width: fit-content;
}
.prod-spotlight-btn:hover { opacity: .88; transform: translateY(-1px); }

/* ── Account CTA block ──────────────────────────────────────────────────────── */
.auth-cta-block {
  margin-top: 4rem; position: relative; overflow: hidden;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--p) 88%, #000) 0%,
    color-mix(in srgb, var(--p) 55%, #0f172a) 100%
  );
  color: #fff; border-radius: var(--radius-xl); padding: 5rem 3rem; text-align: center;
}
.auth-cta-orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(80px);
}
.auth-cta-orb-1 {
  width: 400px; height: 400px;
  background: rgba(255,255,255,.08);
  top: -150px; left: -80px;
}
.auth-cta-orb-2 {
  width: 350px; height: 350px;
  background: rgba(0,0,0,.2);
  bottom: -120px; right: -60px;
}
.auth-cta-icon {
  width: 74px; height: 74px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  border-radius: 20px; display: grid; place-items: center;
  font-size: 2.1rem; color: #fff; margin: 0 auto 1.5rem;
  position: relative; z-index: 1;
}
.auth-cta-block h3 { font-size: 2.4rem; font-weight: 900; margin: 0 0 .7rem; color: #fff; letter-spacing: -.04em; position: relative; z-index: 1; }
.auth-cta-block p { color: rgba(255,255,255,.52); margin: 0 auto 2rem; max-width: 450px; font-size: 1.07rem; line-height: 1.65; position: relative; z-index: 1; }
.auth-cta-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.btn-auth-primary {
  display: inline-flex; align-items: center; gap: .45rem;
  background: #fff; color: var(--p);
  padding: .9rem 2rem; border-radius: var(--radius);
  font-weight: 800; font-size: .97rem; cursor: pointer;
  border: none; font-family: inherit;
  transition: opacity 150ms, transform 150ms; text-decoration: none;
}
.btn-auth-primary:hover { opacity: .92; transform: translateY(-1px); }
.btn-auth-outline {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(255,255,255,.1); color: #fff;
  border: 1.5px solid rgba(255,255,255,.25);
  padding: .9rem 2rem; border-radius: var(--radius);
  font-weight: 600; font-size: .97rem; cursor: pointer;
  font-family: inherit; transition: background 150ms; text-decoration: none;
}
.btn-auth-outline:hover { background: rgba(255,255,255,.18); }

/* ── PDP auth gate (shown to non-logged-in visitors) ─────────────────────────── */
.pdp-auth-gate { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: .75rem; }
.pdp-auth-note { font-size: .82rem; color: var(--text-muted); margin: 0 0 1rem; display: flex; align-items: center; gap: .4rem; }

/* ── Product Detail Page ────────────────────────────────────────────────────── */
.pdp-breadcrumb { font-size: .82rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.pdp-breadcrumb a { color: var(--text-muted); }
.pdp-breadcrumb a:hover { color: var(--p); }
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.pdp-img-wrap { position: sticky; top: calc(var(--header-h) + 1rem); }
.pdp-img {
  aspect-ratio: 1; border-radius: var(--radius-xl);
  background: var(--surface);
  display: grid; place-items: center; color: var(--text-faint); font-size: 3rem;
}
.pdp-info { display: flex; flex-direction: column; }
.pdp h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.025em; margin: 0 0 .8rem; line-height: 1.15; }
.pdp-price { display: flex; align-items: baseline; gap: .75rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.pdp-price .price { font-size: 2rem; font-weight: 800; color: var(--p); }
.pdp-price .price-del { font-size: 1.2rem; color: var(--text-faint); text-decoration: line-through; font-weight: 500; }
.pdp-desc { color: var(--text-2); font-size: .95rem; line-height: 1.7; margin-bottom: 1.5rem; }
.pdp-stock-out {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #fef2f2; color: #dc2626; padding: .4rem .85rem;
  border-radius: var(--radius-sm); font-size: .85rem; font-weight: 600; margin-bottom: 1rem;
}
.pdp-stock-ok {
  font-size: .82rem; color: #059669; margin: -.5rem 0 1rem;
  display: flex; align-items: center; gap: .3rem;
}
.qty-row { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.qty {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--border-2); border-radius: var(--radius-sm); overflow: hidden;
}
.qty button {
  border: none; background: var(--surface); width: 40px; height: 44px;
  cursor: pointer; font-size: 1.1rem; color: var(--text-2); font-family: inherit;
  transition: background 150ms;
}
.qty button:hover { background: var(--surface-2); }
.qty span { width: 46px; text-align: center; font-weight: 700; font-size: .95rem; }
.btn-shop {
  background: var(--p); color: var(--p-ink); border: none;
  border-radius: var(--radius); padding: .78rem 1.6rem;
  font-weight: 700; cursor: pointer; font-size: .97rem; font-family: inherit;
  display: inline-flex; align-items: center; gap: .45rem;
  transition: opacity 150ms, transform 150ms; flex: 1;
}
.btn-shop:hover { opacity: .88; }
.btn-shop:active { transform: scale(.98); }
.btn-shop:disabled { opacity: .45; cursor: not-allowed; }
.btn-outline {
  background: #fff; color: var(--p); border: 1.5px solid var(--p);
  border-radius: var(--radius-sm); padding: .55rem 1.1rem;
  font-weight: 600; cursor: pointer; font-family: inherit; font-size: .88rem;
  text-decoration: none; display: inline-flex; align-items: center; gap: .38rem;
  transition: background 150ms;
}
.btn-outline:hover { background: color-mix(in srgb,var(--p) 8%,transparent); }
.pdp-full-desc {
  color: var(--text-2); line-height: 1.8; white-space: pre-wrap; font-size: .94rem;
  border-top: 1px solid var(--border); padding-top: 1.5rem; margin-top: 1.5rem;
}

/* ── Cart drawer ─────────────────────────────────────────────────────────────── */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.48); z-index: 200;
  animation: fadeIn .2s ease;
}
.drawer {
  position: fixed; top: 0; right: 0; height: 100%;
  width: 420px; max-width: 96vw;
  background: var(--bg); z-index: 201;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-xl);
  animation: slideInRight .25s cubic-bezier(.4,0,.2,1);
}
.drawer-head {
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; flex-shrink: 0;
}
.drawer-head h3 { margin: 0; font-size: 1.1rem; font-weight: 800; }
.drawer-close {
  background: var(--surface); border: none; width: 30px; height: 30px;
  border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  color: var(--text-muted); font-size: .9rem; transition: background 150ms;
}
.drawer-close:hover { background: var(--surface-2); color: var(--text); }
.drawer-body { flex: 1; overflow-y: auto; padding: .75rem 1.4rem; }
.drawer-foot { padding: 1.2rem 1.4rem; border-top: 1px solid var(--border); background: var(--surface); flex-shrink: 0; }
.cart-line {
  display: flex; gap: .85rem; padding: .9rem 0;
  border-bottom: 1px solid var(--border); align-items: flex-start;
}
.cart-line:last-child { border-bottom: none; }
.cart-thumb {
  width: 62px; height: 62px; border-radius: var(--radius-sm); flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--text-faint); font-size: 1.1rem; overflow: hidden;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-line-info { flex: 1; min-width: 0; }
.cart-line-name { font-weight: 600; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: .2rem; }
.cart-line-price { font-size: .8rem; color: var(--text-muted); }
.cart-line-total { font-weight: 700; font-size: .95rem; flex-shrink: 0; }
.cart-remove { background: none; border: none; cursor: pointer; color: var(--text-faint); padding: .2rem; border-radius: 4px; transition: color 150ms; flex-shrink: 0; }
.cart-remove:hover { color: var(--error); }
.cart-subtotal { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: 1rem; }
.cart-subtotal-amount { font-size: 1.25rem; color: var(--p); }
.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.cart-empty i { font-size: 2.4rem; margin-bottom: .7rem; color: var(--text-faint); display: block; }

/* ── Auth modal ──────────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.52); z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  animation: fadeIn .2s ease;
}
.modal {
  background: var(--bg); border-radius: var(--radius-xl);
  width: 100%; max-width: 420px; position: relative;
  box-shadow: var(--shadow-xl);
  animation: scaleIn .26s cubic-bezier(.34,1.56,.64,1);
  overflow: hidden;
}
.modal-head { padding: 1.9rem 2rem 0; text-align: center; }
.modal-logo {
  width: 50px; height: 50px;
  background: color-mix(in srgb,var(--p) 13%,transparent);
  border-radius: 14px; display: grid; place-items: center;
  font-size: 1.5rem; color: var(--p); margin: 0 auto 1rem;
}
.modal-title { font-size: 1.4rem; font-weight: 800; margin: 0 0 .25rem; letter-spacing: -.02em; }
.modal-sub { font-size: .87rem; color: var(--text-muted); margin: 0; }
.modal-tabs {
  display: flex; gap: 0; margin: 1.4rem 2rem 0;
  background: var(--surface); border-radius: var(--radius-sm); padding: 3px;
}
.modal-tab {
  flex: 1; padding: .48rem; border-radius: 7px; border: none;
  background: none; font-family: inherit; font-size: .88rem; font-weight: 600;
  cursor: pointer; color: var(--text-muted);
  transition: background 150ms, color 150ms;
}
.modal-tab.active { background: #fff; color: var(--text); box-shadow: var(--shadow-xs); }
.modal-body { padding: 1.25rem 2rem 1.5rem; }
.modal-footer {
  text-align: center; padding: 0 2rem 1.75rem;
  font-size: .83rem; color: var(--text-muted);
}
.modal-switch {
  color: var(--p); font-weight: 600; cursor: pointer;
  background: none; border: none; font-size: inherit; font-family: inherit; padding: 0;
}
.modal-switch:hover { text-decoration: underline; }
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--surface); border: none; width: 28px; height: 28px;
  border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  color: var(--text-muted); font-size: .85rem; z-index: 1;
  transition: background 150ms;
}
.modal-close:hover { background: var(--surface-2); color: var(--text); }

/* ── Form elements ───────────────────────────────────────────────────────────── */
.form-field { margin-bottom: 1.05rem; }
.form-label { display: block; font-size: .81rem; font-weight: 600; color: var(--text-2); margin-bottom: .38rem; }
.form-input {
  width: 100%; padding: .68rem .88rem; font-family: inherit; font-size: .92rem;
  border: 1.5px solid var(--border-2); border-radius: var(--radius-sm);
  box-sizing: border-box; color: var(--text); background: var(--bg);
  transition: border-color 150ms, box-shadow 150ms; outline: none;
}
.form-input:focus { border-color: var(--p); box-shadow: 0 0 0 3px color-mix(in srgb,var(--p) 15%,transparent); }
.form-input::placeholder { color: var(--text-faint); }
.form-hint { font-size: .77rem; color: var(--text-faint); margin: .28rem 0 0; }
.form-err { font-size: .83rem; color: var(--error); margin-bottom: .75rem; display: none; padding: .6rem .8rem; background: #fef2f2; border-radius: var(--radius-sm); border: 1px solid #fecaca; }
.btn-form {
  width: 100%; padding: .8rem; border-radius: var(--radius-sm);
  background: var(--p); color: var(--p-ink); border: none;
  font-family: inherit; font-size: .96rem; font-weight: 700; cursor: pointer;
  margin-top: .25rem;
  transition: opacity 150ms, transform 150ms;
  display: flex; align-items: center; justify-content: center; gap: .4rem;
}
.btn-form:hover { opacity: .88; }
.btn-form:active { transform: scale(.99); }
.btn-form:disabled { opacity: .5; cursor: not-allowed; }

/* ── Checkout ────────────────────────────────────────────────────────────────── */
.checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 2.5rem; margin-top: 1.5rem; }
.checkout-form-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; }
.checkout-section-title { font-size: .95rem; font-weight: 700; margin: 0 0 1.15rem; padding-bottom: .7rem; border-bottom: 1px solid var(--border); }
.checkout-summary-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; position: sticky; top: calc(var(--header-h) + 1rem); height: fit-content; }
.co-item { display: flex; justify-content: space-between; align-items: flex-start; padding: .52rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; gap: .5rem; }
.co-item:last-child { border-bottom: none; }
.co-item-name { color: var(--text-2); flex: 1; }
.co-item-qty { font-size: .78rem; color: var(--text-muted); }
.co-total { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 1.1rem; padding-top: 1rem; margin-top: .4rem; border-top: 2px solid var(--border); }
.co-total-amount { color: var(--p); font-size: 1.25rem; }
.notice {
  background: #fffbeb; border: 1px solid #fde68a;
  border-radius: var(--radius-sm); padding: .85rem .95rem;
  font-size: .87rem; color: #92400e; margin-bottom: 1.15rem;
  display: flex; gap: .5rem; align-items: flex-start; line-height: 1.55;
}
.notice i { flex-shrink: 0; margin-top: .1rem; }
.notice a { color: #92400e; text-decoration: underline; }

/* ── Order tracking ──────────────────────────────────────────────────────────── */
.track-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; margin-top: 1.5rem; }
.track-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; }
.track-card-title { font-size: .95rem; font-weight: 700; margin: 0 0 1.1rem; }
.status-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .38rem .85rem; border-radius: 999px; font-weight: 700; font-size: .83rem;
  background: color-mix(in srgb,var(--p) 12%,transparent); color: var(--p);
}
.status-badge.delivered { background: #d1fae5; color: #065f46; }
.status-badge.cancelled { background: #fee2e2; color: #991b1b; }
.track-step { display: flex; gap: .85rem; padding: .6rem 0; position: relative; }
.track-step:not(:last-child)::before { content: ''; position: absolute; left: 5px; top: 22px; width: 2px; background: var(--border); bottom: -4px; }
.track-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--p); flex-shrink: 0; margin-top: 5px; }
.track-step-label { font-weight: 600; font-size: .88rem; margin-bottom: .12rem; }
.track-step-time { font-size: .77rem; color: var(--text-muted); }

/* ── Account ──────────────────────────────────────────────────────────────────── */
.acct-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.75rem; margin-top: 1.5rem; }
.acct-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; }
.acct-card-title { font-size: 1rem; font-weight: 800; margin: 0 0 1.4rem; }
.order-row { display: flex; align-items: center; gap: .7rem; padding: .72rem 0; border-bottom: 1px solid var(--border); font-size: .88rem; flex-wrap: wrap; }
.order-row:last-child { border-bottom: none; }
.order-num { font-weight: 700; color: var(--p); flex-shrink: 0; }
.order-status { font-size: .74rem; font-weight: 600; padding: .18rem .52rem; border-radius: 999px; background: color-mix(in srgb,var(--p) 10%,transparent); color: var(--p); white-space: nowrap; }
.order-total { margin-left: auto; font-weight: 700; flex-shrink: 0; }
.order-date { color: var(--text-muted); font-size: .79rem; flex-shrink: 0; }
.signout-btn {
  background: none; border: 1.5px solid var(--border-2); border-radius: var(--radius-sm);
  padding: .58rem 1rem; font-family: inherit; font-size: .87rem;
  color: var(--text-muted); cursor: pointer; width: 100%; margin-top: .75rem;
  transition: border-color 150ms, color 150ms; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: .4rem;
}
.signout-btn:hover { border-color: var(--error); color: var(--error); }

/* ── Footer ──────────────────────────────────────────────────────────────────── */
/* Footer background is derived from the store's selected brand colour so it feels
   on-brand instead of a generic slate, while staying dark enough for legible text.
   Falls back to slate when --p is unavailable. */
.store-footer { background: #0f172a; background: linear-gradient(180deg, color-mix(in srgb, var(--p, #1e40af) 20%, #0c1320), color-mix(in srgb, var(--p, #1e40af) 10%, #0b1118)); color: #cbd5e1; margin-top: 5rem; padding: 4rem 1.5rem 0; }
.store-footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer-brand { font-size: 1.12rem; font-weight: 800; color: #fff; margin-bottom: .7rem; display: flex; align-items: center; gap: .55rem; }
/* drop-shadow follows the logo's actual transparent shape — no white chip needed. */
.footer-brand img { height: 30px; max-width: 150px; object-fit: contain; filter: drop-shadow(0 1px 3px rgba(0,0,0,.55)); }
.footer-tagline { font-size: .87rem; line-height: 1.6; color: #94a3b8; margin: 0 0 1.15rem; max-width: 270px; }
.footer-contact p { margin: .3rem 0; font-size: .84rem; color: #b6c2d2; display: flex; align-items: center; gap: .48rem; }
.footer-contact i { width: 13px; text-align: center; flex-shrink: 0; color: color-mix(in srgb, var(--p, #4f46e5) 55%, #ffffff); }
.footer-col-title { font-size: .78rem; font-weight: 700; color: #f1f5f9; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .85rem; }
.store-footer a { color: #aab6c6; font-size: .87rem; display: block; margin-bottom: .5rem; transition: color 150ms; }
.store-footer a:hover { color: #fff; }
.footer-bottom { max-width: 1200px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,.1); padding: 1.4rem 0; font-size: .79rem; color: #8b98a9; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.footer-bottom a { color: #aab6c6; font-size: .79rem; }

/* ── Get-the-app buttons (Install / App Store / Google Play) ─────────────────── */
.footer-getapp { max-width: 1200px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,.1); padding: 2rem 0; text-align: center; }
.footer-getapp-title { color: #f1f5f9; font-weight: 800; font-size: 1.02rem; letter-spacing: -.01em; margin-bottom: .3rem; }
.footer-getapp-title i { color: color-mix(in srgb, var(--p, #4f46e5) 55%, #ffffff); margin-right: .35rem; }
.footer-getapp-sub { color: #94a3b8; font-size: .85rem; margin: 0 0 1.25rem; }
.getapp-btns { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: center; }
.getapp-btn {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .6rem 1.05rem; border-radius: 12px; min-width: 156px;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05);
  color: #fff; font-family: inherit; text-align: left; position: relative;
  transition: transform 150ms var(--ease), opacity 150ms, background 150ms;
}
.getapp-btn i { font-size: 1.55rem; flex-shrink: 0; }
.getapp-btn > span { display: flex; flex-direction: column; line-height: 1.18; }
.getapp-btn small { font-size: .64rem; color: #cbd5e1; opacity: .85; }
.getapp-btn strong { font-size: .98rem; font-weight: 700; }
.getapp-btn-go { border-color: var(--p); background: var(--p); cursor: pointer; }
.getapp-btn-go small { color: rgba(255,255,255,.85); }
.getapp-btn-go:hover { opacity: .92; }
.getapp-btn-go:active { transform: scale(.97); }
.getapp-btn-off { opacity: .5; cursor: not-allowed; }
.getapp-soon {
  position: absolute; top: -8px; right: -6px; font-style: normal;
  background: #f59e0b; color: #1f2937; font-size: .58rem; font-weight: 800;
  padding: .08rem .4rem; border-radius: 999px; letter-spacing: .03em;
}
/* The 'nav' copy lives inside the mobile menu only — hidden everywhere else. */
.nav-app-cta { display: none; }

/* ── Toasts ──────────────────────────────────────────────────────────────────── */
#toasts { position: fixed; top: 1.2rem; right: 1.2rem; z-index: 999; display: flex; flex-direction: column; gap: .45rem; max-width: 320px; }
.toast {
  background: #1e293b; color: #fff; padding: .75rem 1rem;
  border-radius: var(--radius-sm); font-size: .87rem;
  box-shadow: var(--shadow-md); animation: slideInRight .2s ease;
  display: flex; align-items: center; gap: .45rem; line-height: 1.4;
}
.toast.ok { background: #059669; }
.toast.err { background: #dc2626; }

/* ── Animations ──────────────────────────────────────────────────────────────── */
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(18px) } to { opacity: 1; transform: none } }
@keyframes scaleIn { from { opacity: 0; transform: scale(.93) } to { opacity: 1; transform: scale(1) } }
@keyframes shimmer { 0% { background-position: 200% 0 } 100% { background-position: -200% 0 } }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .pdp { grid-template-columns: 1fr; gap: 2rem; }
  .pdp-img-wrap { position: static; }
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary-card { position: static; order: -1; }
  .track-grid, .acct-grid { grid-template-columns: 1fr; }
  .store-footer-inner { grid-template-columns: 1fr 1fr; }
  .value-props { grid-template-columns: repeat(2,1fr); }
  .vp-item:nth-child(2) { border-right: none; }
  .vp-item:nth-child(3) { border-right: 1px solid rgba(255,255,255,.1); }
  .bn-slide, .bn-single > a { min-height: 320px; }
  .store-banner-text { padding: 2rem 2rem; }
  .prod-spotlight { grid-template-columns: 1fr; }
  .prod-spotlight-img { min-height: 280px; }
  .prod-spotlight-body { padding: 2rem 2rem; }
  .prod-spotlight-body h2 { font-size: 1.6rem; }
  .hero-stats { gap: 2rem; }
}
@media (max-width: 640px) {
  .value-props { grid-template-columns: 1fr 1fr; }
  .vp-item:nth-child(2) { border-right: none; }
  .vp-item:nth-child(3) { border-right: 1px solid rgba(255,255,255,.1); }
  .bn-slide, .bn-single > a { min-height: 260px; }
  .store-banner-text { padding: 1.5rem 1.5rem; }
  .store-banner-text h2 { font-size: 1.3rem; }
  .bn-arrow { width: 36px; height: 36px; font-size: 1.2rem; }
  .store-nav { display: none; }
  .store-nav.open {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: .5rem 1.5rem 1rem; z-index: 39;
    box-shadow: var(--shadow-md);
  }
  .store-nav.open a { padding: .75rem 0; border-bottom: 1px solid var(--border); font-size: .95rem; }
  .nav-toggle { display: flex; }
  #installAppBtn .install-label { display: none; }  /* icon-only install button on phones */

  /* "Get the app" buttons inside the mobile menu — restyled for the light menu. */
  .store-nav.open .nav-app-cta { display: flex; flex-direction: column; gap: .55rem; padding-top: .9rem; }
  .store-nav.open .nav-app-cta .getapp-btn { width: 100%; border-color: var(--border-2); background: var(--surface); color: var(--text); }
  .store-nav.open .nav-app-cta .getapp-btn small { color: var(--text-muted); }
  .store-nav.open .nav-app-cta .getapp-btn-go { background: var(--p); border-color: var(--p); color: #fff; }
  .store-nav.open .nav-app-cta .getapp-btn-go small { color: rgba(255,255,255,.85); }
  .prod-grid { grid-template-columns: repeat(auto-fill,minmax(155px,1fr)); }
  .cat-grid { grid-template-columns: repeat(3,1fr); }
  .store-footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .store-hero { min-height: 52vh; padding: 3.5rem 1.25rem 3rem; }
  .store-hero h1 { font-size: calc(clamp(2rem, 8vw, 3rem) * var(--hero-scale, 1)); }
  .auth-cta-block { padding: 3.5rem 1.5rem; }
  .auth-cta-block h3 { font-size: 1.8rem; }
  .hero-stats { gap: 1.5rem; padding-top: 1.75rem; }
  .hero-stat-num { font-size: 1.5rem; }
}
@media (max-width: 400px) {
  .header-btn-ghost { display: none; }
  .prod-grid { grid-template-columns: repeat(2,1fr); gap: .75rem; }
  .cat-grid { grid-template-columns: repeat(2,1fr); }
  .value-props { grid-template-columns: 1fr; }
  .vp-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .vp-item:last-child { border-bottom: none; }
}

/* ════════════════════════════════════════════════════════════════════════════
   NATIVE-APP POLISH — makes the installed PWA feel like a first-class mobile app
   ════════════════════════════════════════════════════════════════════════════ */

/* Tactile, app-like base behaviour. */
body.store {
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: contain;             /* no rubber-band glow past the edges */
  text-rendering: optimizeLegibility;
}

/* Press feedback — everything reacts to touch like a native control. */
.prod-card { -webkit-tap-highlight-color: transparent; }
.prod-card:active { transform: scale(.985); }
.header-btn:active, .cart-btn:active, .btn-form:active,
.hero-cta-primary:active, .hero-cta-secondary:active, .btn-auth-primary:active { transform: scale(.96); }

/* Quick-add FAB on product cards — add to cart without opening the product. */
.prod-fab {
  position: absolute; right: .6rem; bottom: .6rem; z-index: 4;
  width: 38px; height: 38px; border-radius: 999px; border: none; cursor: pointer;
  background: var(--p); color: var(--p-ink);
  display: grid; place-items: center; font-size: .95rem;
  box-shadow: var(--shadow-md);
  transition: transform 150ms var(--ease), opacity 150ms;
}
.prod-fab:hover { transform: scale(1.08); }
.prod-fab:active { transform: scale(.9); }

/* Safe-area insets when launched full-screen (notch / Dynamic Island). */
@media (display-mode: standalone) {
  .store-header {
    padding-top: env(safe-area-inset-top);
    height: calc(var(--header-h) + env(safe-area-inset-top));
  }
}

/* ── Bottom tab bar: phones only ───────────────────────────────────────────── */
.store-tabbar { display: none; }
@media (max-width: 640px) {
  .store-tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -2px 16px rgba(0,0,0,.06);
  }
  .store-tab {
    flex: 1; background: none; border: none; cursor: pointer; font-family: inherit;
    color: var(--text-muted); text-decoration: none;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; padding: .5rem 0 .55rem; min-height: 56px;
    font-size: .66rem; font-weight: 600; letter-spacing: .01em;
    transition: color 150ms var(--ease);
  }
  .store-tab i { font-size: 1.18rem; line-height: 1; }
  .store-tab.active { color: var(--p); }
  .store-tab:active { transform: scale(.92); }
  .tab-cart { position: relative; display: inline-flex; }
  .tab-cart .cart-count {
    position: absolute; top: -6px; right: -10px;
    background: #ef4444; color: #fff; border: 1.5px solid #fff; border-radius: 999px;
    font-size: .58rem; font-weight: 800; padding: .05rem .3rem;
    min-width: 15px; text-align: center; line-height: 1.5;
  }

  /* Clear space so the fixed bar never covers content or the footer. */
  body.store { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  .store-main { padding: 1.75rem 1.25rem 2.5rem; }

  /* The tab bar owns primary nav on mobile, so declutter the header. */
  .store-header-actions .cart-btn,
  .store-header-actions [onclick*="openAuthModal"] { display: none; }
  /* Favorites has no tab-bar entry — keep its header heart reachable on mobile. */
  .store-header-actions .cart-btn.fav-btn-header { display: inline-flex; }

  /* Compact the hero so the first screen sells instead of showing empty space. */
  .store-hero { min-height: 42vh; padding: 2.5rem 1rem 2.5rem; }

  /* ── Secondary views (checkout, account, tracking, profile) ──────────────────
     Bigger tap targets, no iOS focus-zoom (needs ≥16px font), roomier cards. */
  .form-input { font-size: 16px; padding: .8rem .9rem; }
  .form-input:focus { box-shadow: 0 0 0 3px color-mix(in srgb,var(--p) 18%,transparent); }
  .checkout-form-card, .checkout-summary-card,
  .acct-card, .track-card { padding: 1.25rem; border-radius: var(--radius-lg); }
  .btn-form, .btn-shop { padding: .95rem; font-size: 1rem; }   /* thumb-friendly primary CTAs */
  .co-total { font-size: 1.15rem; }
  .co-total-amount { font-size: 1.3rem; }
  /* Account tabs scroll horizontally instead of cramping/wrapping. */
  .acct-tab { white-space: nowrap; }
}

/* ── Storefront language switch ────────────────────────────────── */
.store-lang { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.store-lang button {
  appearance: none; border: none; background: none; font-family: inherit;
  font-size: .72rem; font-weight: 700; color: var(--text-muted, #64748b);
  padding: .34rem .55rem; cursor: pointer; line-height: 1;
}
.store-lang button.active { background: var(--p, #1D9E75); color: var(--p-ink, #fff); }
