/* ============================================================
   Apple Store NZ — Reimagined. Original design system.
   No Apple assets. Typography-led, calm, premium, tactile.
   ============================================================ */

:root {
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --bg: #ffffff;
  --bg-section: #f5f5f7;
  --bg-card: #ffffff;
  --hairline: #d2d2d7;
  --hairline-soft: #e8e8ed;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-soft: rgba(0, 113, 227, 0.08);
  --success: #1d7a3a;
  --success-soft: #e6f4ea;
  --danger: #b3001b;
  --danger-soft: #fdebee;
  --warning-soft: #fff4e0;
  --warning: #8a5a00;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 8px 28px rgba(0,0,0,.10);
  --shadow-lg: 0 18px 60px rgba(0,0,0,.16);
  --radius: 18px;
  --radius-lg: 28px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --ease-spring: cubic-bezier(.28,.84,.42,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --nav-h: 52px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 17px;
  line-height: 1.47;
}
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(0,113,227,.18); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--text); color: #fff; padding: 10px 18px; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header / nav ---------- */
#site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav-inner {
  max-width: 1060px; margin: 0 auto; height: var(--nav-h);
  display: flex; align-items: center; gap: 6px; padding: 0 20px;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px; margin-right: 14px;
  color: var(--text); font-weight: 600; letter-spacing: -.01em; font-size: 15px;
}
.nav-logo:hover { text-decoration: none; }
.nav-logo svg { width: 18px; height: 18px; }
.nav-logo-img { width: 18px; height: 18px; object-fit: contain; mix-blend-mode: multiply; }
.nav-links { display: flex; gap: 2px; flex: 1; }
.nav-links a {
  color: rgba(29,29,31,.85); font-size: 13.5px; padding: 8px 11px; border-radius: 8px;
  transition: color .18s, background .18s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; background: rgba(0,0,0,.045); }
.nav-links a.active { color: var(--text); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 2px; }
.nav-icon-btn {
  position: relative; display: grid; place-items: center; width: 38px; height: 38px;
  border: 0; background: none; border-radius: 10px; cursor: pointer; color: var(--text);
  transition: background .18s;
}
.nav-icon-btn:hover { background: rgba(0,0,0,.05); }
.nav-icon-btn svg { width: 19px; height: 19px; }
.bag-badge {
  position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700;
  border-radius: 999px; display: grid; place-items: center; line-height: 1;
  transform: scale(0); transition: transform .3s var(--ease-spring);
}
.bag-badge.on { transform: scale(1); }
.bag-badge.pop { animation: badge-pop .45s var(--ease-spring); }
@keyframes badge-pop { 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
.nav-burger { display: none; }

/* ---------- Page veil (route transitions) ---------- */
#page-veil {
  position: fixed; inset: 0; background: var(--bg); z-index: 90; pointer-events: none;
  opacity: 0; transition: opacity .16s ease;
}
#page-veil.on { opacity: 1; }

/* ---------- Typography helpers ---------- */
.display {
  font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 1.04; font-weight: 700;
  letter-spacing: -.022em; margin: 0;
}
.headline { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.subhead { font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--text-2); font-weight: 500; letter-spacing: -.01em; margin: 0; }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 10px;
}
.section-head { max-width: 1060px; margin: 0 auto; padding: 0 22px; }
.section-head .headline { margin-bottom: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; font-size: 16px; font-weight: 600; letter-spacing: -.01em;
  padding: 13px 26px; border-radius: 980px; transition: background .2s, transform .12s, box-shadow .2s, color .2s;
  text-decoration: none; line-height: 1.2;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); text-decoration: none; }
.btn-primary:disabled { background: #a9cfe9; cursor: not-allowed; transform: none; }
.btn-secondary { background: var(--text); color: #fff; }
.btn-secondary:hover { background: #000; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); text-decoration: none; }
.btn-quiet { background: transparent; color: var(--accent); padding: 10px 14px; }
.btn-quiet:hover { background: var(--accent-soft); text-decoration: none; }
.btn-danger-quiet { background: transparent; color: var(--danger); padding: 10px 14px; }
.btn-danger-quiet:hover { background: var(--danger-soft); text-decoration: none; }
.btn-lg { font-size: 18px; padding: 16px 34px; }
.btn-sm { font-size: 14px; padding: 9px 18px; }
.btn-block { width: 100%; }
.btn .spinner { width: 18px; height: 18px; }

.spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2.5px solid rgba(0,0,0,.12); border-top-color: var(--text-2);
  animation: spin .7s linear infinite;
}
.btn-primary .spinner { border-color: rgba(255,255,255,.35); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

.arrow-link { font-weight: 500; display: inline-flex; align-items: center; gap: 5px; }
.arrow-link::after { content: "›"; font-size: 1.15em; line-height: 1; transition: transform .18s; }
.arrow-link:hover::after { transform: translateX(3px); }
.arrow-link:hover { text-decoration: none; }

/* ---------- Layout ---------- */
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 22px; }
.wrap-wide { max-width: 1240px; margin: 0 auto; padding: 0 22px; }
.section { padding: 76px 0; }
.section.tint { background: var(--bg-section); }
main { min-height: 60vh; }

/* ---------- Hero (storefront) ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(64px, 10vw, 120px) 0 clamp(48px, 7vw, 90px);
  background: linear-gradient(180deg, #fafafc 0%, #fff 100%);
  text-align: center;
}
.hero .display { margin-bottom: 18px; }
.hero .subhead { max-width: 620px; margin: 0 auto 30px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stage {
  position: relative; margin: clamp(30px, 5vw, 60px) auto 0; max-width: 900px; padding: 0 22px;
  perspective: 1200px;
}
.hero-stage .art-scene { transform-style: preserve-3d; transition: transform .5s var(--ease-out); will-change: transform; }
.hero-glow {
  position: absolute; inset: auto; width: 640px; height: 640px; left: 50%; top: -120px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(120,170,255,.28), rgba(200,160,255,.14) 55%, transparent 75%);
  filter: blur(10px); pointer-events: none; z-index: -1;
}
.hero-badges { display:flex; gap: 22px; justify-content:center; flex-wrap: wrap; margin-top: 34px; }
.hero-badge { display:flex; align-items:center; gap:8px; color: var(--text-2); font-size: 14px; }
.hero-badge svg { width: 18px; height: 18px; }

/* marquee strip */
.strip {
  background: var(--text); color: #f5f5f7; font-size: 13.5px; letter-spacing: .02em;
  padding: 11px 0; overflow: hidden; white-space: nowrap;
}
.strip-track { display: inline-block; animation: marquee 36s linear infinite; }
.strip span { margin: 0 26px; opacity: .85; }
.strip b { color: #fff; font-weight: 600; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Category tiles ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.tile {
  position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-card); box-shadow: var(--shadow-sm); color: var(--text);
  transition: transform .35s var(--ease-out), box-shadow .35s;
}
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); text-decoration: none; }
.tile-art { padding: 34px 20px 8px; }
.tile-art svg { width: 100%; height: auto; transition: transform .5s var(--ease-out); }
.tile:hover .tile-art svg { transform: scale(1.045); }
.tile-body { padding: 10px 26px 28px; }
.tile-body h3 { margin: 0 0 4px; font-size: 24px; letter-spacing: -.015em; }
.tile-body p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.tile-body .from { display: block; margin-top: 10px; font-size: 14px; color: var(--text); font-weight: 600; }

/* ---------- Featured rail / product cards ---------- */
.rail-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.card-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(340px, 78vw);
  gap: 18px; overflow-x: auto; padding: 34px 22px 26px; scroll-snap-type: x mandatory;
  margin: 0 -22px; scrollbar-width: none;
}
.card-rail::-webkit-scrollbar { display: none; }
.p-card {
  scroll-snap-align: start; border-radius: var(--radius-lg); background: var(--bg-card);
  box-shadow: var(--shadow-sm); overflow: hidden; color: var(--text); display: flex; flex-direction: column;
  transition: transform .35s var(--ease-out), box-shadow .35s;
}
.p-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); text-decoration: none; }
.p-card-art { position: relative; padding: 30px 24px 10px; }
.p-card-art svg { width: 100%; height: auto; }

/* Official Apple CDN photo layered over the generative render.
   The SVG underneath paints instantly and is the automatic onerror/offline fallback. */
.art-media { position: relative; display: block; }
.art-media svg { width: 100%; height: auto; }
.art-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; background: transparent;
}
.p-card-body { padding: 8px 24px 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p-card-body h3 { margin: 0; font-size: 21px; letter-spacing: -.015em; }
.p-card-body .tagline { margin: 0; color: var(--text-2); font-size: 14px; }
.p-card-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-weight: 600; font-size: 16.5px; letter-spacing: -.01em; }
.price .from-label { font-weight: 400; color: var(--text-2); font-size: 13px; display: block; }
.badge-new {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #b64400; margin-bottom: 6px;
}
.swatches { display: flex; gap: 6px; margin-top: 4px; }
.swatch-dot { display: inline-block; width: 13px; height: 13px; border-radius: 50%; box-shadow: inset 0 0 1px rgba(0,0,0,.3); }

/* ---------- Seasonal highlight band ---------- */
.band {
  border-radius: var(--radius-lg); overflow: hidden; position: relative; color: #fff;
  padding: clamp(40px,6vw,72px) clamp(24px,5vw,64px); display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px;
  align-items: center; background: linear-gradient(120deg, #17171c 0%, #2b2b33 60%, #3a3a44 100%);
}
.band h2 { font-size: clamp(1.8rem,3.4vw,2.6rem); margin: 0 0 12px; letter-spacing: -.02em; line-height: 1.1; }
.band p { color: rgba(255,255,255,.75); margin: 0 0 24px; max-width: 46ch; }
.band .band-art { max-width: 380px; margin: 0 auto; }
.band .btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.band .btn-ghost:hover { background: rgba(255,255,255,.12); }

/* values row */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value-cell { text-align: center; padding: 26px 14px; border-radius: var(--radius); background: var(--bg-card); box-shadow: var(--shadow-sm); }
.value-cell svg { width: 34px; height: 34px; margin: 0 auto 12px; }
.value-cell h3 { font-size: 16.5px; margin: 0 0 6px; }
.value-cell p { font-size: 13.5px; color: var(--text-2); margin: 0; }

/* ---------- Category page ---------- */
.cat-hero { padding: 72px 0 40px; text-align: center; }
.cat-hero .headline { margin-bottom: 12px; }
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; padding-bottom: 80px; }
.cat-grid .p-card-art { padding: 44px 30px 14px; }

/* help strip on category pages */
.help-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: var(--bg-section); border-radius: var(--radius); padding: 20px 26px; margin: 0 0 42px;
}
.help-strip p { margin: 0; font-size: 15px; }
.help-strip b { display: block; font-size: 16.5px; }

/* ---------- Product detail ---------- */
.pd { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 64px); padding: 44px 0 80px; }
.pd-gallery { position: sticky; top: calc(var(--nav-h) + 28px); align-self: start; }
.pd-stage {
  border-radius: var(--radius-lg); background: linear-gradient(180deg, #fafafc, #f1f1f4);
  padding: clamp(24px, 4vw, 56px); box-shadow: var(--shadow-sm);
  transition: background .6s;
}
.pd-stage svg { width: 100%; height: auto; }
.pd-art-fade { animation: art-fade .45s var(--ease-out); }
@keyframes art-fade { from { opacity: 0; transform: scale(.985); } }
.pd-thumbs { display: flex; gap: 10px; margin-top: 14px; justify-content: center; }
.pd-thumb {
  width: 62px; height: 62px; border-radius: 14px; border: 1.5px solid transparent; background: #f1f1f4;
  cursor: pointer; padding: 6px; transition: border-color .2s, background .2s;
}
.pd-thumb[aria-pressed="true"] { border-color: var(--accent); background: #fff; }
.pd-thumb svg { width: 100%; height: 100%; }

.pd-info .eyebrow { margin-bottom: 8px; }
.pd-title { font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 8px; }
.pd-tagline { color: var(--text-2); font-size: 16.5px; margin: 0 0 18px; }
.pd-price-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 4px; }
.pd-price { font-size: 27px; font-weight: 700; letter-spacing: -.015em; }
.pd-monthly { color: var(--text-2); font-size: 14px; }
.pd-gst { color: var(--text-3); font-size: 13px; margin: 0 0 22px; }

.opt-group { margin: 26px 0 0; border-top: 1px solid var(--hairline-soft); padding-top: 22px; }
.opt-group-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.opt-group-head h3 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.opt-group-head .opt-current { color: var(--text-2); font-size: 14px; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; }
.opt-grid.colors { display: flex; flex-wrap: wrap; gap: 12px; }
.opt-color {
  display: flex; flex-direction: column; align-items: center; gap: 7px; background: none; border: 0;
  cursor: pointer; padding: 8px 6px; border-radius: 14px; width: 84px;
}
.opt-color .ring {
  width: 40px; height: 40px; border-radius: 50%; padding: 3px;
  border: 2px solid transparent; transition: border-color .2s, transform .2s var(--ease-spring);
}
.opt-color:hover .ring { transform: scale(1.08); }
.opt-color[aria-pressed="true"] .ring { border-color: var(--accent); }
.opt-color .fill { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 2px rgba(0,0,0,.28); }
.opt-color .cname { font-size: 12px; color: var(--text-2); text-align: center; line-height: 1.25; }
.opt-color[aria-pressed="true"] .cname { color: var(--text); font-weight: 600; }
.opt-pill {
  text-align: left; background: #fff; border: 1.5px solid var(--hairline); border-radius: 14px;
  padding: 12px 14px; cursor: pointer; transition: border-color .2s, background .2s, opacity .2s;
  display: flex; flex-direction: column; gap: 2px; position: relative;
}
.opt-pill:hover { border-color: var(--text-3); }
.opt-pill[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.opt-pill .o-name { font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.opt-pill .o-sub { color: var(--text-2); font-size: 12.5px; }
.opt-pill:disabled { opacity: .45; cursor: not-allowed; background: #fafafa; }
.opt-pill .o-soldout { color: var(--danger); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.opt-note { color: var(--danger); font-size: 13.5px; margin: 10px 0 0; }

.buy-panel {
  margin-top: 30px; background: var(--bg-section); border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
}
.delivery-line { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.delivery-line svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.delivery-line b { display: block; font-size: 15px; }
.delivery-line .sub { color: var(--text-2); }
.delivery-region { display: flex; gap: 8px; align-items: center; margin-top: 2px; }
.delivery-region select { flex: 1; }
.buy-row { display: flex; gap: 10px; }
.qty-stepper {
  display: inline-flex; align-items: center; border: 1.5px solid var(--hairline); border-radius: 980px; background: #fff;
}
.qty-stepper button { width: 40px; height: 44px; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--accent); }
.qty-stepper button:disabled { color: var(--hairline); cursor: not-allowed; }
.qty-stepper .qty { min-width: 30px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

.pd-section { padding: 64px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 34px; }
.feature-cell { background: var(--bg-card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.feature-cell svg { width: 32px; height: 32px; margin-bottom: 14px; }
.feature-cell h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.015em; }
.feature-cell p { margin: 0; color: var(--text-2); font-size: 14.5px; }

/* compare table */
.compare-scroll { overflow-x: auto; margin-top: 30px; border-radius: var(--radius); }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; background: #fff; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--hairline-soft); font-size: 14.5px; vertical-align: top; }
.compare thead th { font-size: 16px; letter-spacing: -.01em; }
.compare thead .th-art { width: 84px; }
.compare tbody th { color: var(--text-2); font-weight: 500; white-space: nowrap; }
.compare .cmp-art { width: 72px; }
.compare td b { font-weight: 600; }
.compare tr.current td, .compare tr.current th { background: var(--accent-soft); }
.guidance { background: var(--bg-section); border-radius: var(--radius); padding: 26px 30px; margin-top: 26px; font-size: 15.5px; }
.guidance b { display: block; margin-bottom: 6px; font-size: 17px; }

/* ---------- Bag ---------- */
.bag-layout { display: grid; grid-template-columns: 1.5fr .9fr; gap: 40px; padding: 40px 0 90px; align-items: start; }
.bag-item {
  display: grid; grid-template-columns: 128px 1fr; gap: 20px; padding: 26px 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.bag-item-art { background: var(--bg-section); border-radius: var(--radius); padding: 12px; }
.bag-item-top { display: flex; justify-content: space-between; gap: 14px; }
.bag-item h3 { margin: 0 0 4px; font-size: 18.5px; letter-spacing: -.01em; }
.bag-item h3 a { color: var(--text); }
.bag-item .config { color: var(--text-2); font-size: 13.5px; margin: 0 0 4px; }
.bag-item .gift-note { color: var(--text-2); font-size: 13px; font-style: italic; }
.bag-item .price { white-space: nowrap; }
.bag-item-controls { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.bag-item-controls .spacer { flex: 1; }
.link-btn { border: 0; background: none; color: var(--accent); cursor: pointer; font-size: 14px; padding: 6px 4px; }
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--danger); }
.bag-line-delivery { font-size: 13.5px; color: var(--success); margin-top: 6px; }

.summary-card { background: var(--bg-section); border-radius: var(--radius-lg); padding: 28px; position: sticky; top: calc(var(--nav-h) + 24px); }
.summary-card h2 { margin: 0 0 18px; font-size: 22px; letter-spacing: -.015em; }
.sum-row { display: flex; justify-content: space-between; font-size: 15px; padding: 7px 0; color: var(--text-2); }
.sum-row.total { color: var(--text); font-weight: 700; font-size: 19px; border-top: 1px solid var(--hairline); margin-top: 10px; padding-top: 16px; }
.sum-row .free { color: var(--success); font-weight: 600; }
.sum-gst { color: var(--text-3); font-size: 13px; margin: 4px 0 16px; }
.promo-row { display: flex; gap: 8px; margin: 12px 0; }
.promo-row input { flex: 1; }
.promo-applied { display: flex; justify-content: space-between; align-items: center; background: var(--success-soft); color: var(--success); border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 600; margin: 10px 0; }
.promo-applied button { border: 0; background: none; color: inherit; cursor: pointer; font-size: 16px; }

.empty-state { text-align: center; padding: 90px 22px 110px; }
.empty-state .art { max-width: 300px; margin: 0 auto 34px; }
.empty-state h1 { font-size: clamp(2rem,4vw,3rem); letter-spacing: -.02em; margin: 0 0 14px; }
.empty-state p { color: var(--text-2); max-width: 46ch; margin: 0 auto 30px; }
.saved-list { padding-bottom: 70px; }

/* ---------- Checkout ---------- */
.co-layout { display: grid; grid-template-columns: 1.35fr .85fr; gap: 44px; padding: 40px 0 90px; align-items: start; }
.co-steps { display: flex; gap: 4px; margin: 26px 0 34px; flex-wrap: wrap; }
.co-step-tab {
  display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-3);
  padding: 8px 12px; border-radius: 980px; border: 0; background: none; cursor: default;
}
.co-step-tab .n {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--hairline-soft); color: var(--text-2); font-size: 12px; font-weight: 700;
}
.co-step-tab.done { color: var(--text-2); cursor: pointer; }
.co-step-tab.done .n { background: var(--success-soft); color: var(--success); }
.co-step-tab.current { color: var(--text); font-weight: 700; background: var(--accent-soft); }
.co-step-tab.current .n { background: var(--accent); color: #fff; }
.co-panel h1 { font-size: clamp(1.7rem,3vw,2.3rem); letter-spacing: -.02em; margin: 0 0 8px; }
.co-panel .lead { color: var(--text-2); margin: 0 0 28px; }
.co-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 16px; padding: 13px 14px; border-radius: 12px;
  border: 1.5px solid var(--hairline); background: #fff; color: var(--text); width: 100%;
  transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0,113,227,.14);
}
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.field .err { display: none; color: var(--danger); font-size: 13px; }
.field.invalid .err { display: block; animation: err-in .25s var(--ease-out); }
@keyframes err-in { from { opacity: 0; transform: translateY(-3px); } }
.field .hint { color: var(--text-3); font-size: 12.5px; }
.card-input-wrap { position: relative; }
.card-brand-mark { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); height: 26px; display: flex; align-items: center; }
.card-brand-mark svg { height: 26px; width: auto; }

.radio-cards { display: grid; gap: 12px; }
.radio-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  border: 1.5px solid var(--hairline); border-radius: var(--radius); padding: 18px 20px; cursor: pointer;
  transition: border-color .2s, background .2s; background: #fff; text-align: left; width: 100%;
}
.radio-card:hover { border-color: var(--text-3); }
.radio-card[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.radio-card .dot {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--hairline); position: relative; transition: border-color .2s;
}
.radio-card[aria-pressed="true"] .dot { border-color: var(--accent); }
.radio-card[aria-pressed="true"] .dot::after {
  content: ""; position: absolute; inset: 3.5px; border-radius: 50%; background: var(--accent);
}
.radio-card .rc-title { font-weight: 700; font-size: 16px; display: block; letter-spacing: -.01em; }
.radio-card .rc-sub { color: var(--text-2); font-size: 14px; display: block; margin-top: 2px; }
.radio-card .rc-price { font-weight: 700; font-size: 15.5px; white-space: nowrap; }
.radio-card .rc-price .free { color: var(--success); }
.radio-card:disabled { opacity: .5; cursor: not-allowed; }

.apple-pay-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%;
  background: #000; color: #fff; border: 0; border-radius: 12px; padding: 15px; font-size: 17px; font-weight: 600;
  cursor: pointer; transition: background .2s, transform .12s;
}
.apple-pay-btn:hover { background: #1d1d1f; }
.apple-pay-btn:active { transform: scale(.98); }
.apple-pay-btn svg { height: 20px; width: auto; }
.or-divider { display: flex; align-items: center; gap: 14px; color: var(--text-3); font-size: 13px; margin: 22px 0; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--hairline-soft); }

.review-block { border: 1px solid var(--hairline-soft); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 14px; background: #fff; }
.review-block h3 { margin: 0 0 10px; font-size: 15px; color: var(--text-2); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 12.5px; }
.review-block p { margin: 0 0 4px; font-size: 15.5px; }
.review-block .edit { float: right; }
.review-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--hairline-soft); align-items: center; }
.review-item:last-child { border-bottom: 0; }
.review-item .art { background: var(--bg-section); border-radius: 12px; padding: 6px; }
.review-item h4 { margin: 0; font-size: 15.5px; }
.review-item .config { color: var(--text-2); font-size: 13px; margin: 2px 0 0; }

/* confirmation */
.confirm-hero { text-align: center; padding: 84px 22px 40px; }
.confirm-hero h1 { font-size: clamp(2rem,4.4vw,3rem); letter-spacing: -.02em; margin: 22px 0 12px; }
.confirm-hero p { color: var(--text-2); max-width: 52ch; margin: 0 auto 8px; }
.order-num { font-family: var(--mono); background: var(--bg-section); border-radius: 10px; padding: 8px 16px; display: inline-block; margin-top: 16px; font-size: 15px; }
.check-anim { width: 96px; height: 96px; margin: 0 auto; }
.check-anim circle { stroke: var(--success); stroke-width: 2.5; fill: var(--success-soft); }
.check-anim path { stroke: var(--success); stroke-width: 3.5; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .7s .35s var(--ease-out) forwards; }
.check-anim circle { stroke-dasharray: 290; stroke-dashoffset: 290; animation: draw .8s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Tracking ---------- */
.track-hero { padding: 64px 0 10px; }
.track-hero .order-num { margin-top: 8px; }
.timeline { margin: 44px 0 60px; }
.tl-row { display: grid; grid-template-columns: 34px 1fr; gap: 18px; position: relative; padding-bottom: 38px; }
.tl-row:last-child { padding-bottom: 0; }
.tl-row::before {
  content: ""; position: absolute; left: 16.5px; top: 34px; bottom: 0; width: 2px; background: var(--hairline);
}
.tl-row:last-child::before { display: none; }
.tl-row.done::before { background: var(--success); }
.tl-node {
  width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 2px solid var(--hairline);
  display: grid; place-items: center; z-index: 1; transition: border-color .3s, background .3s;
}
.tl-row.done .tl-node { border-color: var(--success); background: var(--success); }
.tl-row.done .tl-node svg { color: #fff; }
.tl-row.current .tl-node { border-color: var(--accent); animation: pulse 2s infinite; }
.tl-row.current .tl-node::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(0,113,227,.35); } 50% { box-shadow: 0 0 0 9px rgba(0,113,227,0); } }
.tl-body h3 { margin: 4px 0 4px; font-size: 17.5px; letter-spacing: -.01em; }
.tl-body .when { color: var(--text-2); font-size: 14px; margin: 0 0 4px; }
.tl-body .desc { color: var(--text-2); font-size: 14.5px; margin: 0; max-width: 56ch; }
.tl-row.pending { opacity: .55; }
.progress-track { height: 8px; background: var(--hairline-soft); border-radius: 99px; overflow: hidden; margin: 18px 0 8px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #42a1ff); border-radius: 99px; transition: width 1s var(--ease-out); }
.eta-banner { background: var(--bg-section); border-radius: var(--radius); padding: 22px 26px; display: flex; gap: 16px; align-items: center; margin-top: 26px; flex-wrap: wrap; }
.eta-banner svg { width: 30px; height: 30px; flex: none; }
.eta-banner b { font-size: 17px; display: block; }
.eta-banner p { margin: 0; color: var(--text-2); font-size: 14.5px; }

/* orders list */
.order-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center;
  background: #fff; border: 1px solid var(--hairline-soft); border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 14px; color: var(--text);
}
a.order-card:hover { text-decoration: none; box-shadow: var(--shadow-sm); }
.order-card .arts { display: flex; }
.order-card .arts .mini { width: 52px; height: 52px; background: var(--bg-section); border-radius: 12px; padding: 6px; margin-right: -14px; border: 2px solid #fff; }
.order-card h3 { margin: 0 0 3px; font-size: 16.5px; }
.order-card .meta { color: var(--text-2); font-size: 13.5px; margin: 0; }
.status-pill { font-size: 12.5px; font-weight: 700; padding: 6px 13px; border-radius: 99px; white-space: nowrap; }
.status-pill.delivered { background: var(--success-soft); color: var(--success); }
.status-pill.transit { background: var(--accent-soft); color: var(--accent); }
.status-pill.processing { background: var(--warning-soft); color: var(--warning); }

/* ---------- Skeletons ---------- */
.skel { position: relative; overflow: hidden; background: var(--hairline-soft); border-radius: 12px; }
.skel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent);
  animation: shimmer 1.3s infinite; transform: translateX(-100%);
}
@keyframes shimmer { to { transform: translateX(100%); } }
.skel-card { border-radius: var(--radius-lg); background: var(--bg-card); box-shadow: var(--shadow-sm); padding: 24px; }
.skel-card .s1 { height: 190px; border-radius: var(--radius); }
.skel-card .s2 { height: 20px; margin-top: 18px; width: 65%; }
.skel-card .s3 { height: 14px; margin-top: 10px; width: 45%; }

/* ---------- Toasts ---------- */
#toast-root { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; background: rgba(29,29,31,.94); color: #fff;
  padding: 13px 22px; border-radius: 980px; font-size: 14.5px; font-weight: 500;
  box-shadow: var(--shadow-lg); animation: toast-in .4s var(--ease-spring); backdrop-filter: blur(8px);
  pointer-events: auto; max-width: min(92vw, 480px);
}
.toast.out { animation: toast-out .3s ease forwards; }
.toast svg { width: 18px; height: 18px; flex: none; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.95); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px) scale(.96); } }

/* ---------- Overlays (search, pay sheet) ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 250; background: rgba(0,0,0,.4);
  display: flex; align-items: flex-start; justify-content: center; padding: 12vh 20px 20px;
  animation: fade-in .2s ease; backdrop-filter: blur(6px);
}
@keyframes fade-in { from { opacity: 0; } }
.overlay.closing { animation: fade-out .18s ease forwards; }
@keyframes fade-out { to { opacity: 0; } }
.sheet {
  background: #fff; border-radius: 24px; width: min(520px, 100%); padding: 28px;
  box-shadow: var(--shadow-lg); animation: sheet-in .35s var(--ease-spring); max-height: 76vh; overflow: auto;
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(26px) scale(.97); } }
.sheet h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.015em; }
.sheet .lead { color: var(--text-2); font-size: 14.5px; margin: 0 0 20px; }
.search-box { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--hairline); border-radius: 14px; padding: 4px 14px; }
.search-box svg { width: 18px; height: 18px; color: var(--text-3); flex: none; }
.search-box input { border: 0; outline: none; font-size: 17px; padding: 10px 0; flex: 1; font-family: inherit; }
.search-results { margin-top: 16px; }
.search-hit { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 12px 8px; border-radius: 14px; color: var(--text); }
.search-hit:hover { background: var(--bg-section); text-decoration: none; }
.search-hit .art { background: var(--bg-section); border-radius: 10px; padding: 5px; }
.search-hit h4 { margin: 0; font-size: 15.5px; }
.search-hit .cat { color: var(--text-3); font-size: 12.5px; }
.search-empty { color: var(--text-2); text-align: center; padding: 26px 0; font-size: 15px; }

.pay-sheet { text-align: center; }
.pay-device { margin: 10px auto 20px; width: 220px; }
.pay-status { font-size: 15px; color: var(--text-2); min-height: 24px; margin-top: 14px; }
.face-id { width: 64px; height: 64px; margin: 0 auto; }
.face-id svg { width: 100%; height: 100%; }
.face-id.scan path { stroke-dasharray: 30; animation: face-scan 1.1s ease infinite; }
@keyframes face-scan { 0% { stroke-dashoffset: 30; opacity: .4; } 50% { opacity: 1; } 100% { stroke-dashoffset: -30; opacity: .4; } }

/* ---------- Footer ---------- */
#site-footer { background: var(--bg-section); border-top: 1px solid var(--hairline-soft); margin-top: 40px; }
.foot-inner { max-width: 1060px; margin: 0 auto; padding: 40px 22px 48px; }
.foot-note { color: var(--text-2); font-size: 12.5px; border-bottom: 1px solid var(--hairline); padding-bottom: 18px; margin-bottom: 22px; line-height: 1.6; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.foot-cols h4 { font-size: 13px; margin: 0 0 10px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; }
.foot-cols li { margin-bottom: 7px; }
.foot-cols a { color: var(--text-2); font-size: 12.5px; }
.foot-legal { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--hairline); color: var(--text-3); font-size: 12px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .pd { grid-template-columns: 1fr; }
  .pd-gallery { position: static; }
  .bag-layout, .co-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .band { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-burger { display: grid; }
  .nav-links.open {
    display: flex; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column;
    background: rgba(255,255,255,.97); backdrop-filter: blur(20px); padding: 12px 16px 18px; gap: 4px;
    border-bottom: 1px solid var(--hairline-soft); box-shadow: var(--shadow-md);
  }
  .nav-links.open a { font-size: 16px; padding: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
  .bag-item { grid-template-columns: 96px 1fr; }
  .tile-grid { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
