/* ==========================================================================
   Rex Print Studio: storefront styles
   Clean, premium layout + pop-culture accents (halftone, stickers, hard shadows)
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --paper: #fffaf3;
  --surface: #ffffff;
  --surface-2: #fff1e0;
  --text: #16131c;
  --muted: #6b6375;
  --ink: #16131c;          /* comic outlines + hard shadows */
  --border: #16131c;
  --line-soft: #eadfce;
  --primary: #ff4b2b;
  --primary-dark: #e23a1c;
  --on-primary: #ffffff;
  --yellow: #ffd23f;
  --cyan: #2ec4e6;
  --green: #17a463;
  --red: #e5383b;
  --wa: #25d366;
  --wa-dark: #128c4a;
  --dot: rgba(22, 19, 28, .07);

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 4px 4px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --shadow-lg: 6px 6px 0 var(--ink);
  --soft-shadow: 0 10px 30px -12px rgba(22, 19, 28, .25);

  --font-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-comic: "Bangers", "Impact", sans-serif;

  --container: 1240px;
  --header-h: 72px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121016; --surface: #1c1922; --surface-2: #26212e; --text: #f4eee6; --muted: #a79fb2;
    --ink: #000000; --border: #4b4358; --line-soft: #2e2938; --dot: rgba(255, 255, 255, .05);
    --soft-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121016; --surface: #1c1922; --surface-2: #26212e; --text: #f4eee6; --muted: #a79fb2;
  --ink: #000000; --border: #4b4358; --line-soft: #2e2938; --dot: rgba(255, 255, 255, .05);
  --soft-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--primary); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--yellow); color: #16131c; padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { left: 8px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.green { color: var(--green); font-weight: 700; }
.grow { flex: 1; }
.linklike { background: none; border: 0; padding: 0; color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--surface); --fg: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .6em 1.2em; border: 2.5px solid var(--ink); border-radius: 999px;
  background: var(--bg); color: var(--fg); font-weight: 700; text-decoration: none; line-height: 1.1;
  box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease, background .15s;
  white-space: nowrap;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); color: var(--fg); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.btn svg { width: 1.25em; height: 1.25em; }
.btn-primary { --bg: var(--primary); --fg: var(--on-primary); }
.btn-yellow { --bg: var(--yellow); --fg: #16131c; }
.btn-wa { --bg: var(--wa); --fg: #08311a; }
.btn-ghost { --bg: transparent; box-shadow: none; border-color: var(--border); }
.btn-ghost:hover { box-shadow: none; transform: none; background: var(--surface-2); }
.btn-sm { min-height: 38px; padding: .4em .95em; font-size: .9rem; box-shadow: 2px 2px 0 var(--ink); }
.btn-lg { min-height: 54px; padding: .8em 1.6em; font-size: 1.08rem; }
.btn-block { display: flex; width: 100%; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .55; pointer-events: none; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 12px; background: transparent; color: var(--text); text-decoration: none;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.count {
  position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--primary); color: #fff; border: 2px solid var(--paper);
  font: 700 11px/16px var(--font-body); text-align: center;
}
.count.bump { animation: bump .5s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.6) rotate(-10deg); } 100% { transform: scale(1); } }

/* ---------- Stickers / badges / pills ---------- */
.sticker {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 3px 10px 1px; border: 2px solid var(--ink); border-radius: 8px;
  font: 400 1rem/1.2 var(--font-comic); letter-spacing: .06em; text-transform: uppercase;
  transform: rotate(-5deg); box-shadow: 2px 2px 0 var(--ink);
}
.sticker-lg { font-size: 1.3rem; top: 16px; left: 16px; }
.badge-red { background: var(--primary); color: #fff; }
.badge-yellow { background: var(--yellow); color: #16131c; }
.badge-cyan { background: var(--cyan); color: #06303a; }
.badge-dark { background: #16131c; color: #fff; }
.pill {
  display: inline-flex; align-items: center; gap: .35em; padding: .3em .8em; border-radius: 999px;
  background: var(--surface-2); border: 1.5px solid var(--line-soft); font-size: .85rem; font-weight: 600;
}
.pill-green { background: rgba(23, 164, 99, .12); color: var(--green); border-color: rgba(23, 164, 99, .3); }
.pill-yellow { background: rgba(255, 210, 63, .25); border-color: rgba(214, 160, 0, .45); }
.pill-red { background: rgba(229, 56, 59, .12); color: var(--red); border-color: rgba(229, 56, 59, .3); }
.chip { display: inline-block; padding: .35em .85em; border: 2px solid var(--border); border-radius: 999px; font-weight: 600; text-decoration: none; font-size: .9rem; }

/* ---------- Announcement bar ---------- */
.announce { background: var(--yellow); color: #16131c; border-bottom: 2.5px solid #16131c; font-weight: 700; font-size: .85rem; overflow: hidden; }
.announce-track { padding: 7px 16px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1.5px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand:hover { color: var(--text); }
.logo { display: inline-flex; align-items: center; gap: 8px; }
.logo-mark { flex-shrink: 0; overflow: visible; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.logo-mark .mascot-sparkle { transform-origin: 50% 20%; transition: transform .4s cubic-bezier(.3, 1.8, .5, 1), opacity .3s; }
.brand:hover .logo-mark { transform: translateY(-2px) rotate(-6deg) scale(1.06); }
.brand:hover .logo-mark .mascot-sparkle { transform: scale(1.25) rotate(20deg); }
.logo-text { display: flex; flex-direction: column; line-height: .95; }
.logo-text b { font: 800 1.55rem/1 var(--font-display); letter-spacing: -.04em; }
.logo-text b span { color: var(--primary); }
.logo-text small { font: 600 .6rem/1.2 var(--font-body); letter-spacing: .34em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.logo-img { max-height: 44px; width: auto; }
.nav-toggle { margin-left: -8px; }
.main-nav { display: none; align-items: center; gap: 4px; margin-left: 12px; }
.main-nav > a, .nav-drop > button {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 0; border-radius: 10px;
  background: none; font-weight: 600; text-decoration: none; font-size: .95rem;
}
.main-nav > a:hover, .nav-drop > button:hover { background: var(--surface-2); color: var(--text); }
.nav-drop { position: relative; }
.drop-panel {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; padding: 8px;
  background: var(--surface); border: 2.5px solid var(--ink); border-radius: var(--radius-sm); box-shadow: var(--shadow);
  display: grid; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s ease;
}
.drop-panel a { padding: 8px 12px; border-radius: 8px; text-decoration: none; font-weight: 500; }
.drop-panel a:hover { background: var(--surface-2); color: var(--primary); }
.nav-drop:hover .drop-panel, .nav-drop:focus-within .drop-panel, .nav-drop.open .drop-panel { opacity: 1; visibility: visible; transform: none; }
.search { display: none; position: relative; flex: 1; max-width: 360px; margin-left: auto; }
.search input {
  width: 100%; height: 44px; padding: 0 46px 0 16px; border: 2px solid var(--line-soft); border-radius: 999px;
  background: var(--surface); transition: border-color .15s;
}
.search input:focus { border-color: var(--ink); outline: none; }
.search button { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; }
.header-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; } :root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .i-sun { display: block; } :root:not([data-theme="light"]) .i-moon { display: none; } }
@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .main-nav { display: flex; }
  .search { display: block; }
  .header-actions { margin-left: 8px; }
}
@media (max-width: 420px) { .logo-text small { letter-spacing: .26em; } .logo-text b { font-size: 1.35rem; } .logo-mark { width: 40px; height: 40px; } }
.site-footer .logo-text b span { color: #ff7a5c; }

/* ---------- Drawer (mobile menu) ---------- */
.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(10, 8, 14, .5); animation: fade .2s; }
.drawer-panel {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(88vw, 360px); overflow-y: auto;
  background: var(--paper); border-right: 3px solid var(--ink); padding: 16px; animation: slideIn .25s ease;
}
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.search-mobile { display: block; max-width: none; margin: 0 0 12px; }
.drawer-nav { display: grid; gap: 2px; }
.drawer-nav > a { padding: 12px 10px; border-radius: 10px; font-weight: 600; text-decoration: none; font-size: 1.05rem; }
.drawer-nav > a:hover { background: var(--surface-2); }
.drawer-label { margin: 16px 0 6px; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.drawer-chips { display: flex; flex-wrap: wrap; gap: 8px; }
@keyframes slideIn { from { transform: translateX(-100%); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 3px solid var(--ink); background: #16131c; }
.hero-track { position: relative; min-height: clamp(420px, 62vh, 600px); }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; display: flex; align-items: center; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide.is-active .hero-bg img { animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 8, 14, .72) 0%, rgba(10, 8, 14, .35) 55%, rgba(10, 8, 14, 0) 100%); }
.hero-speed {
  position: absolute; inset: -50%; z-index: 1; pointer-events: none; opacity: .14;
  background: repeating-conic-gradient(from 0deg at 75% 50%, #fff 0deg 1.2deg, transparent 1.2deg 9deg);
  mask: radial-gradient(circle at 75% 50%, transparent 18%, #000 60%);
  -webkit-mask: radial-gradient(circle at 75% 50%, transparent 18%, #000 60%);
}
.hero-content { position: relative; z-index: 2; color: #fff; padding-top: 48px; padding-bottom: 64px; }
.hero-title {
  max-width: 13ch; font-size: clamp(2.3rem, 7vw, 4.6rem); font-weight: 800; line-height: 1;
  text-shadow: 4px 4px 0 #16131c; letter-spacing: -.02em; margin-bottom: .35em;
}
.hero-slide.is-active .hero-title, .hero-plain .hero-title { animation: pop-in .7s cubic-bezier(.3, 1.4, .5, 1) both; }
.hero-sub { max-width: 46ch; font-size: clamp(1rem, 2.2vw, 1.2rem); opacity: .92; margin-bottom: 1.6em; }
.hero-slide.is-active .hero-sub { animation: rise .7s .12s ease both; }
.hero-slide.is-active .btn { animation: rise .7s .22s ease both; }
@keyframes pop-in { from { opacity: 0; transform: translateY(20px) scale(.96) rotate(-1deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.hero-dots { position: absolute; z-index: 3; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-dots button { width: 12px; height: 12px; padding: 0; border-radius: 99px; border: 2px solid #fff; background: transparent; transition: width .25s, background .25s; }
.hero-dots button[aria-selected="true"] { width: 32px; background: var(--yellow); border-color: var(--yellow); }
@media (max-width: 700px) {
  .hero-track { min-height: 500px; }
  .hero-slide { align-items: flex-end; }
  .hero-bg img { object-position: 82% 30%; }
  .hero-slide::after { background: linear-gradient(0deg, rgba(10, 8, 14, .85) 0%, rgba(10, 8, 14, .45) 50%, rgba(10, 8, 14, 0) 80%); }
  .hero-content { padding-bottom: 56px; }
  .hero-speed { mask: radial-gradient(circle at 75% 30%, transparent 18%, #000 60%); -webkit-mask: radial-gradient(circle at 75% 30%, transparent 18%, #000 60%); }
}
.hero-plain { min-height: 440px; display: flex; align-items: center; background: linear-gradient(135deg, var(--primary), #ff8a3d); }

/* ---------- Sections ---------- */
.section { padding: clamp(40px, 7vw, 80px) 0; }
.section-dots { background-color: var(--surface-2); background-image: radial-gradient(var(--dot) 1.6px, transparent 1.7px); background-size: 16px 16px; border-block: 1.5px solid var(--line-soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head.center { justify-content: center; text-align: center; }
.h-pop { font-size: clamp(1.75rem, 4.2vw, 2.7rem); font-weight: 800; margin: 0; }
.h-pop mark {
  background: none; color: inherit; position: relative; z-index: 0; white-space: nowrap;
}
.h-pop mark::before {
  content: ""; position: absolute; z-index: -1; left: -4px; right: -4px; bottom: .06em; height: .42em;
  background: var(--yellow); transform: skew(-12deg) rotate(-1deg); border-radius: 3px;
}
:root[data-theme="dark"] .h-pop mark::before { background: var(--primary); opacity: .9; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .h-pop mark::before { background: var(--primary); opacity: .9; } }
.link-more { font-weight: 700; text-decoration: none; white-space: nowrap; }

/* ---------- Franchise row ---------- */
.franchise-row { display: flex; gap: 18px; overflow-x: auto; padding: 6px 4px 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.franchise { flex: 0 0 auto; display: grid; justify-items: center; gap: 10px; width: 108px; text-align: center; font-weight: 700; font-size: .92rem; text-decoration: none; scroll-snap-align: start; }
.franchise-img { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; border: 3px solid var(--ink); box-shadow: var(--shadow-sm); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); background: var(--surface); }
.franchise-img img { width: 100%; height: 100%; object-fit: cover; }
.franchise:hover .franchise-img { transform: translateY(-4px) rotate(-6deg); }
@media (min-width: 900px) { .franchise-row { justify-content: flex-start; gap: 28px; } .franchise { width: 128px; } .franchise-img { width: 116px; height: 116px; } }

/* ---------- Product grid & cards ---------- */
.grid-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 700px) { .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1100px) { .grid-products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
.shop-main .grid-products { }
@media (min-width: 1000px) { .shop-main .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  position: relative; display: flex; flex-direction: column; background: var(--surface);
  border: 2.5px solid var(--ink); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 0 0 var(--ink); transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translate(-3px, -4px) rotate(-.4deg); box-shadow: var(--shadow-lg); }
.card-media { position: relative; display: block; aspect-ratio: 1; background: var(--surface-2); overflow: hidden; border-bottom: 2.5px solid var(--ink); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform .5s ease; }
.card-media .alt { opacity: 0; }
.card:hover .card-media .alt { opacity: 1; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 14px; flex: 1; }
.card-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); text-decoration: none; }
.card-title { font-family: var(--font-body); font-size: .98rem; font-weight: 700; line-height: 1.3; margin: 0 0 6px; }
.card-title a { text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price b { font: 800 1.12rem/1 var(--font-display); }
.price s { color: var(--muted); font-size: .85rem; }
.price small { color: var(--muted); font-size: .78rem; }
@media (max-width: 480px) {
  .card-body { padding: 10px; }
  .card-title { font-size: .9rem; }
  .card-foot .btn-sm { width: 100%; }
  .sticker { font-size: .85rem; top: 8px; left: 8px; }
}
.wish-btn {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center;
  border: 2px solid var(--ink); border-radius: 50%; background: var(--surface); color: var(--text);
  transition: transform .2s cubic-bezier(.3, 1.8, .5, 1);
}
.wish-btn svg { fill: transparent; transition: fill .2s; }
.wish-btn:hover { transform: scale(1.1); }
.wish-btn[aria-pressed="true"] { color: var(--primary); }
.wish-btn[aria-pressed="true"] svg { fill: var(--primary); }
.wish-btn.pop { animation: bump .45s cubic-bezier(.3, 1.8, .5, 1); }
.wish-btn-lg { position: static; width: 54px; height: 54px; flex-shrink: 0; box-shadow: var(--shadow-sm); }

/* added-to-cart "pop" */
.btn.added { animation: added .5s cubic-bezier(.3, 1.8, .5, 1); --bg: var(--green); --fg: #fff; }
@keyframes added { 0% { transform: scale(1); } 40% { transform: scale(1.12) rotate(-3deg); } 100% { transform: scale(1); } }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 800px) { .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; } }
.cat-tile { position: relative; display: block; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; border: 3px solid var(--ink); box-shadow: var(--shadow); text-decoration: none; transition: transform .25s cubic-bezier(.3, 1.5, .5, 1); }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat-tile:hover { transform: rotate(-2deg) scale(1.02); }
.cat-tile:hover img { transform: scale(1.06); }
.tilt-1:hover { transform: rotate(2deg) scale(1.02); }
.cat-name {
  position: absolute; left: 12px; bottom: 12px; padding: 4px 14px 2px; background: var(--surface); color: var(--text);
  border: 2.5px solid var(--ink); border-radius: 10px; font: 400 clamp(1.1rem, 2.6vw, 1.5rem)/1.2 var(--font-comic); letter-spacing: .05em; box-shadow: 2px 2px 0 var(--ink); transform: rotate(-3deg);
}

/* ---------- How it works ---------- */
.how { background: var(--primary); color: #fff; border-block: 3px solid var(--ink); position: relative; overflow: hidden; }
.how::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(0, 0, 0, .14) 2px, transparent 2.2px); background-size: 18px 18px; }
.how .container { position: relative; }
.how .h-pop mark::before { background: #16131c; }
.how .h-pop mark { color: var(--yellow); }
.how-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; counter-reset: s; }
@media (min-width: 860px) { .how-steps { grid-template-columns: repeat(4, 1fr); gap: 22px; } }
.how-steps li { counter-increment: s; position: relative; padding: 22px 16px 18px; background: var(--surface); color: var(--text); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 4px; text-align: center; justify-items: center; }
.how-steps li::before { content: counter(s); position: absolute; top: -14px; left: -10px; width: 34px; height: 34px; display: grid; place-items: center; background: var(--yellow); color: #16131c; border: 2.5px solid var(--ink); border-radius: 50%; font: 400 1.2rem/1 var(--font-comic); }
.how-ic { font-size: 2rem; line-height: 1; }
.how-steps b { font-family: var(--font-display); font-size: 1.05rem; }
.how-steps small { color: var(--muted); }

/* ---------- Horizontal scroller ---------- */
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 46%); gap: 14px; overflow-x: auto; padding: 4px 4px 18px; scroll-snap-type: x mandatory; }
.scroller > * { scroll-snap-align: start; }
@media (min-width: 700px) { .scroller { grid-auto-columns: minmax(220px, 30%); gap: 20px; } }
@media (min-width: 1100px) { .scroller { grid-auto-columns: calc(25% - 15px); } }

/* ---------- Reviews ---------- */
.reviews { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review { margin: 0; display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 16px; background: var(--surface); border: 2.5px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.review-photo { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; border: 2px solid var(--ink); transform: rotate(-3deg); }
.review blockquote { margin: 6px 0 10px; font-size: .95rem; }
.review figcaption { font-size: .85rem; color: var(--muted); }
.review figcaption a { color: var(--primary); font-weight: 600; text-decoration: none; }
.stars { color: #f5a400; letter-spacing: 2px; font-size: 1rem; }
.stars span { color: var(--line-soft); }

/* ---------- Instagram ---------- */
.insta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 800px) { .insta-grid { grid-template-columns: repeat(6, 1fr); gap: 14px; } }
.insta-item { display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; border: 2.5px solid var(--ink); position: relative; }
.insta-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
a.insta-item:hover img { transform: scale(1.08) rotate(1deg); }

/* ---------- Trust strip & footer ---------- */
.trust-strip { border-top: 3px solid var(--ink); background: var(--yellow); color: #16131c; padding: 22px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 860px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-grid > div { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.trust-ic { grid-row: span 2; font-size: 1.7rem; }
.trust-grid b { font-family: var(--font-display); line-height: 1.1; }
.trust-grid small { opacity: .75; font-size: .82rem; }
.site-footer { background: #16131c; color: #e9e2d8; padding: 48px 0 24px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); border-top: 3px solid var(--ink); }
.site-footer a { color: #e9e2d8; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } .footer-brand { grid-column: auto; } }
.footer-grid h4 { font-size: 1rem; color: #fff; margin-bottom: 12px; }
.footer-grid > div > a { display: block; padding: 4px 0; font-size: .93rem; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .logo-text small { color: #b3aabd; }
.site-footer p { color: #b3aabd; font-size: .93rem; max-width: 38ch; }
.social { display: flex; gap: 6px; }
.social .icon-btn { color: #fff; border: 2px solid #3b3446; }
.social .icon-btn:hover { background: #2a2433; color: var(--yellow); }
.mini-steps { margin: 0; padding-left: 18px; color: #b3aabd; font-size: .93rem; display: grid; gap: 4px; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid #2f2938; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.footer-bottom p { margin: 0; font-size: .82rem; max-width: none; }
.disclaimer { opacity: .8; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50;
  width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%;
  background: var(--wa); color: #fff; border: 3px solid var(--ink); box-shadow: var(--shadow-sm);
  transition: transform .2s cubic-bezier(.3, 1.8, .5, 1);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.1) rotate(-8deg); color: #fff; }
.wa-float::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 3px solid var(--wa); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
body.has-buybar .wa-float { bottom: calc(92px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { body.has-buybar .wa-float { bottom: 24px; } .wa-float { right: 24px; bottom: 24px; } }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; z-index: 90; left: 50%; top: 84px; transform: translateX(-50%); display: grid; gap: 8px; width: min(92vw, 380px); pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--surface); color: var(--text);
  border: 2.5px solid var(--ink); border-radius: 14px; box-shadow: var(--shadow); animation: toastIn .35s cubic-bezier(.3, 1.5, .5, 1);
}
.toast img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; border: 2px solid var(--ink); }
.toast .t-body { flex: 1; font-size: .9rem; line-height: 1.3; }
.toast .t-body b { display: block; }
.toast a { font-weight: 700; color: var(--primary); white-space: nowrap; }
.toast.out { animation: toastOut .25s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-16px) scale(.95); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px); } }

/* ---------- Page heads, breadcrumbs ---------- */
.page-head { padding: 28px 0 22px; background-color: var(--surface-2); background-image: radial-gradient(var(--dot) 1.6px, transparent 1.7px); background-size: 16px 16px; border-bottom: 1.5px solid var(--line-soft); }
.page-head-row { display: flex; align-items: center; gap: 14px; }
.page-head-badge { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--ink); }
.page-head p { margin: 6px 0 0; }
.page-head-plain { padding: 28px 0 20px; }
.crumbs { font-size: .85rem; color: var(--muted); padding: 14px 0 10px; }
.page-head .crumbs { padding-top: 0; }
.crumbs a { text-decoration: none; }
.crumbs span { color: var(--text); }

/* ---------- Shop layout & filters ---------- */
.shop-layout { display: grid; gap: 28px; padding-top: 22px; padding-bottom: 64px; }
@media (min-width: 1000px) { .shop-layout { grid-template-columns: 250px 1fr; align-items: start; } }
.filters { display: grid; gap: 18px; }
.filters fieldset { border: 0; padding: 0 0 16px; margin: 0; border-bottom: 1.5px solid var(--line-soft); display: grid; gap: 2px; }
.filters legend { font: 800 1rem/1 var(--font-display); margin-bottom: 10px; padding: 0; }
.radio { display: flex; align-items: center; gap: 10px; padding: 5px 2px; cursor: pointer; font-size: .95rem; }
.radio input { width: 18px; height: 18px; accent-color: var(--primary); margin: 0; }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range input { width: 100%; }
.filters-head { display: none; }
.filters-actions { display: grid; gap: 8px; }
.filters-backdrop { display: none; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.sort { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; margin-left: auto; }
.sort select { height: 40px; }
@media (min-width: 1000px) {
  .filters { position: sticky; top: calc(var(--header-h) + 16px); }
  .filter-toggle { display: none; }
  [data-autosubmit] .filters-actions .btn-primary { display: none; }
}
@media (max-width: 999px) {
  .filters {
    position: fixed; z-index: 85; top: 0; right: 0; bottom: 0; width: min(90vw, 360px); overflow-y: auto;
    padding: 16px 18px calc(18px + env(safe-area-inset-bottom)); background: var(--paper); border-left: 3px solid var(--ink);
    transform: translateX(105%); transition: transform .28s ease;
  }
  .filters.open { transform: none; }
  .filters-head { display: flex; justify-content: space-between; align-items: center; }
  .filters-head h2 { margin: 0; font-size: 1.4rem; }
  .filters-backdrop.open { display: block; position: fixed; inset: 0; z-index: 84; background: rgba(10, 8, 14, .5); }
}
.pager { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 36px; }
.pager-num { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; font-weight: 700; text-decoration: none; border: 2px solid transparent; }
.pager-num:hover { border-color: var(--border); }
.pager-num.is-current { background: var(--ink); color: #fff; border-color: var(--ink); }
:root[data-theme="dark"] .pager-num.is-current { background: var(--yellow); color: #16131c; }

/* ---------- Forms ---------- */
input[type="text"], input[type="search"], input[type="email"], input[type="number"], input[type="tel"], input:not([type]), select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 2px solid var(--line-soft); border-radius: 12px;
  background: var(--surface); color: var(--text); transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 80px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 3px 3px 0 var(--cyan); }
[aria-invalid="true"] { border-color: var(--red) !important; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: .9rem; }
.field-row { display: grid; gap: 0 14px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } .field-row.three { grid-template-columns: 1fr 1fr 1.2fr; } }
.field-error { color: var(--red); font-size: .85rem; font-weight: 600; margin: 0; }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix span { display: grid; place-items: center; padding: 0 12px; border: 2px solid var(--line-soft); border-right: 0; border-radius: 12px 0 0 12px; background: var(--surface-2); font-weight: 600; }
.input-prefix input { border-radius: 0 12px 12px 0; }
.panel { background: var(--surface); border: 2.5px solid var(--ink); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin: 0 0 20px; }
fieldset.panel { min-width: 0; }
fieldset.panel legend { float: left; width: 100%; font: 800 1.2rem/1 var(--font-display); margin-bottom: 16px; padding: 0; }
fieldset.panel legend + * { clear: both; }

/* ---------- Alerts ---------- */
.alert { padding: 12px 16px; border-radius: 12px; border: 2px solid; margin: 16px 0; font-weight: 500; }
.alert-error { background: rgba(229, 56, 59, .08); border-color: var(--red); color: var(--text); }
.alert-success { background: rgba(23, 164, 99, .1); border-color: var(--green); }
.alert-info { background: rgba(46, 196, 230, .1); border-color: var(--cyan); }
.notice { padding: 12px 16px; border-radius: 12px; background: rgba(255, 210, 63, .2); border: 2px dashed #d6a000; margin-bottom: 14px; font-size: .92rem; }

/* ---------- Product page ---------- */
.pdp { display: grid; gap: 28px; padding-bottom: 48px; }
@media (min-width: 900px) { .pdp { grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; } .gallery { position: sticky; top: calc(var(--header-h) + 16px); } }
.gallery { position: relative; min-width: 0; }
.gallery-main {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-lg); background: var(--surface-2);
}
.gallery-main::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; aspect-ratio: 1; scroll-snap-align: start; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding: 4px; }
.gallery-thumbs button { flex: 0 0 72px; height: 72px; padding: 0; border: 2.5px solid var(--line-soft); border-radius: 12px; overflow: hidden; background: none; transition: border-color .15s, transform .15s; }
.gallery-thumbs button.is-active { border-color: var(--ink); transform: translateY(-2px); box-shadow: 2px 2px 0 var(--ink); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info { min-width: 0; }
.pdp-title { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; margin: 6px 0 8px; }
.pdp-rating { display: inline-flex; gap: 8px; align-items: center; font-size: .9rem; color: var(--muted); text-decoration: none; margin-bottom: 8px; }
.pdp-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.pdp-price b { font: 800 2rem/1 var(--font-display); }
.pdp-price s { color: var(--muted); font-size: 1.1rem; }
.save { background: var(--green); color: #fff; padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: .85rem; }
.pdp-lead { font-size: 1.05rem; }
.pdp-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
.buy-box { display: grid; gap: 14px; padding: 18px; border: 2.5px solid var(--ink); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); margin-bottom: 26px; }
.variants { border: 0; padding: 0; margin: 0; }
.variants legend { font-weight: 700; margin-bottom: 10px; padding: 0; }
.variant-list { display: flex; flex-wrap: wrap; gap: 10px; }
.variant { position: relative; cursor: pointer; }
.variant input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.variant span { display: grid; padding: 10px 16px; border: 2.5px solid var(--line-soft); border-radius: 14px; font-weight: 700; font-size: .92rem; line-height: 1.25; transition: .15s; background: var(--surface); }
.variant small { font-weight: 600; color: var(--muted); }
.variant input:checked + span { border-color: var(--ink); background: var(--yellow); color: #16131c; box-shadow: 3px 3px 0 var(--ink); transform: translate(-1px, -1px); }
.variant input:checked + span small { color: #16131c; }
.variant input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }
.variant.is-out span { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.variants.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
.buy-row { display: flex; gap: 10px; align-items: stretch; }
.qty { display: inline-flex; align-items: center; border: 2.5px solid var(--ink); border-radius: 999px; overflow: hidden; background: var(--surface); flex-shrink: 0; }
.qty button { width: 40px; height: 100%; min-height: 44px; border: 0; background: none; font-size: 1.3rem; font-weight: 700; }
.qty button:hover { background: var(--surface-2); }
.qty input { width: 40px; min-height: 0; height: 100%; padding: 0; border: 0; text-align: center; font-weight: 700; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { box-shadow: none; }
.qty-sm button { width: 34px; min-height: 36px; font-size: 1.1rem; }
.qty-sm input { width: 32px; }
.pdp-links { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 600; font-size: .92rem; }
.pdp-links a { text-decoration: none; color: var(--primary); }
.tabs { border-top: 1.5px solid var(--line-soft); }
.tab-list { display: flex; gap: 4px; overflow-x: auto; padding-top: 14px; }
.tab-list button { padding: 8px 16px; border: 2px solid transparent; border-radius: 999px; background: none; font-weight: 700; color: var(--muted); }
.tab-list button[aria-selected="true"] { color: var(--text); border-color: var(--ink); background: var(--yellow); color: #16131c; }
.tab-panel { padding: 18px 2px; }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 0 0 14px; }
.specs dt { font-weight: 700; }
.specs dd { margin: 0; color: var(--muted); }
.prose { line-height: 1.7; }
.prose h2, .prose h3 { margin-top: 1.3em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose a { color: var(--primary); }

/* sticky buy bar (mobile) */
.buybar {
  position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 3px solid var(--ink);
  transform: translateY(110%); transition: transform .25s ease;
}
.buybar.show { transform: none; }
.buybar-info { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
.buybar-info small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar-info b { font: 800 1.25rem/1.1 var(--font-display); }
@media (min-width: 900px) { .buybar { display: none; } }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(10, 8, 14, .92); display: grid; place-items: center; padding: 16px; animation: fade .2s; }
.lightbox img { max-height: 90vh; max-width: min(96vw, 1100px); width: auto; border-radius: 14px; cursor: zoom-out; }
.lightbox-close { position: absolute; top: 12px; right: 12px; color: #fff; background: rgba(255, 255, 255, .12); }
.lightbox-close:hover { background: rgba(255, 255, 255, .25); color: #fff; }

/* ---------- Cart / checkout ---------- */
.narrow-page { padding-top: 28px; padding-bottom: 64px; }
.narrow-page > .h-pop { margin-bottom: 22px; }
.cart-loading { padding: 40px 0; display: flex; align-items: center; gap: 12px; color: var(--muted); }
.spinner { width: 22px; height: 22px; border: 3px solid var(--line-soft); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cart-layout, .checkout-layout { display: grid; gap: 24px; }
@media (min-width: 900px) {
  .cart-layout, .checkout-layout { grid-template-columns: 1fr 380px; align-items: start; gap: 32px; }
  .summary { position: sticky; top: calc(var(--header-h) + 16px); }
}
.cart-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cart-line { display: grid; grid-template-columns: 88px 1fr; gap: 14px; padding: 12px; background: var(--surface); border: 2.5px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-sm); animation: rise .3s ease both; }
.cart-line img { width: 88px; height: 88px; object-fit: cover; border-radius: 12px; border: 2px solid var(--ink); }
.cart-line h3 { font: 700 1rem/1.3 var(--font-body); margin: 0; }
.cart-line h3 a { text-decoration: none; }
.cart-line .meta { font-size: .82rem; color: var(--muted); margin: 2px 0 8px; }
.cart-line-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cart-line-foot b { font: 800 1.1rem var(--font-display); }
.remove { border: 0; background: none; color: var(--muted); font-size: .85rem; text-decoration: underline; padding: 4px; }
.remove:hover { color: var(--red); }
.cart-line.removing { animation: toastOut .25s ease forwards; }
.summary { background: var(--surface); border: 2.5px solid var(--ink); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.summary h2 { font-size: 1.3rem; }
.coupon { display: flex; gap: 8px; margin: 12px 0 6px; }
.coupon input { text-transform: uppercase; min-height: 40px; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 14px 0 18px; padding-top: 14px; border-top: 1.5px dashed var(--line-soft); }
.totals dt, .totals dd { margin: 0; }
.totals dd { text-align: right; font-weight: 600; }
.totals .grand { font: 800 1.3rem/1.2 var(--font-display); padding-top: 8px; border-top: 1.5px solid var(--line-soft); }
.free-ship { padding: 12px 16px; border-radius: 14px; background: var(--surface-2); border: 2px solid var(--line-soft); margin-bottom: 14px; }
.free-ship p { margin: 0 0 8px; font-weight: 600; font-size: .92rem; }
.progress { height: 10px; border-radius: 99px; background: var(--line-soft); overflow: hidden; border: 1.5px solid var(--ink); }
.progress span { display: block; height: 100%; width: 0; background: repeating-linear-gradient(-45deg, var(--primary) 0 8px, #ff7a52 8px 16px); transition: width .5s ease; }
.mini-lines { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 10px; }
.mini-lines li { display: flex; justify-content: space-between; gap: 12px; font-size: .93rem; }
.mini-lines li.grand { padding-top: 10px; border-top: 1.5px solid var(--line-soft); font-weight: 800; }
.mini-line-img { display: flex; gap: 10px; align-items: flex-start; }
.mini-line-img small { color: var(--muted); }
.mini-line-img img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; border: 1.5px solid var(--ink); }
.steps { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; font-size: .85rem; font-weight: 700; }
.steps > * { padding: 5px 12px; border-radius: 999px; border: 2px solid var(--line-soft); color: var(--muted); text-decoration: none; }
.steps .done { border-color: var(--green); color: var(--green); }
.steps .active { border-color: var(--ink); background: var(--yellow); color: #16131c; }

/* ---------- Thank you ---------- */
.thankyou { position: relative; }
.ty-card { max-width: 640px; margin: 0 auto; background: var(--surface); border: 3px solid var(--ink); border-radius: 24px; box-shadow: var(--shadow-lg); padding: clamp(20px, 5vw, 40px); text-align: left; position: relative; }
.ty-badge { position: absolute; top: -30px; right: 24px; width: 64px; height: 64px; display: grid; place-items: center; font-size: 2rem; background: var(--yellow); border: 3px solid var(--ink); border-radius: 50%; transform: rotate(10deg); }
.ty-code { font-size: 1.05rem; }
.ty-code b { font-family: var(--font-display); font-size: 1.25rem; background: var(--surface-2); padding: 2px 10px; border-radius: 8px; border: 1.5px dashed var(--ink); }
.ty-summary { margin: 22px 0; padding: 16px; border-radius: 14px; background: var(--surface-2); }
.ty-next { padding-left: 20px; display: grid; gap: 6px; font-size: .95rem; }
.ty-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.ty-actions.center { justify-content: center; }
.lead { font-size: 1.05rem; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border: 1.5px solid var(--ink); animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ---------- Track ---------- */
.track-form .btn { margin-top: 4px; }
.track-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.track-head h2 { margin: 0; }
.track-head p { margin: 0; }
.status { display: inline-block; padding: 5px 14px; border-radius: 999px; font-weight: 800; font-size: .85rem; border: 2px solid var(--ink); background: var(--surface-2); }
.status-new { background: var(--cyan); color: #06303a; }
.status-confirmed { background: #c9b8ff; color: #1f1147; }
.status-printing { background: var(--yellow); color: #16131c; }
.status-shipped { background: #ffb36b; color: #3c1d00; }
.status-delivered { background: var(--green); color: #fff; }
.status-cancelled { background: #16131c; color: #fff; }
.timeline { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 0; }
.timeline li { position: relative; display: flex; gap: 14px; padding-bottom: 22px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; width: 3px; background: var(--line-soft); }
.timeline li.tl-done:not(:last-child)::after { background: var(--green); }
.tl-dot { flex: 0 0 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 2.5px solid var(--line-soft); background: var(--surface); font-weight: 800; color: var(--muted); position: relative; z-index: 1; }
.tl-done .tl-dot { background: var(--green); border-color: var(--ink); color: #fff; }
.tl-current .tl-dot { background: var(--yellow); border-color: var(--ink); color: #16131c; box-shadow: 0 0 0 6px rgba(255, 210, 63, .3); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(255, 210, 63, 0); } }
.timeline b { display: block; }
.timeline small { color: var(--muted); display: block; }
.timeline .tl-note { color: var(--text); font-style: italic; }
.tl-todo b { color: var(--muted); }
.shipment { padding: 14px 16px; border-radius: 14px; background: var(--surface-2); margin: 0 0 16px; }
.shipment p { margin: 0 0 6px; }

/* ---------- Empty states, contact, 404 ---------- */
.empty { text-align: center; padding: 48px 16px; display: grid; justify-items: center; gap: 8px; }
.empty .btn { margin: 4px; }
.empty-art { font-size: 3.5rem; line-height: 1; margin-bottom: 8px; animation: wobble 3s ease-in-out infinite; }
@keyframes wobble { 50% { transform: rotate(-8deg) translateY(-4px); } }
.contact-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 22px; }
.contact-card { display: grid; gap: 4px; padding: 18px; background: var(--surface); border: 2.5px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-sm); text-decoration: none; transition: transform .2s; }
a.contact-card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); color: var(--text); }
.contact-card small { color: var(--muted); }
.cc-ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); font-size: 1.4rem; margin-bottom: 4px; }
.cc-ic.wa { background: var(--wa); color: #fff; }
.notfound { text-align: center; padding: 56px 16px 80px; }
.nf-art { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 18px; }
.nf-num { font: 400 clamp(6rem, 22vw, 11rem)/1 var(--font-comic); color: var(--primary); -webkit-text-stroke: 4px var(--ink); text-shadow: 6px 6px 0 var(--ink); }
.nf-art svg { animation: wobble 2.4s ease-in-out infinite; overflow: visible; }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
[data-reveal].in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .wa-float::after { display: none; }
}

/* ---------- Print ---------- */
@media print { .site-header, .site-footer, .trust-strip, .wa-float, .announce, .buybar { display: none !important; } }
