/* ============================================================
   VICENZO — Limited Edition store
   Dve teme:
     • default  -> DARK (crno/sivo, beli tekst, zlatni akcenat)
     • [data-theme="light"] -> POSTER (srebrno-siva, crni potezi, taman tekst)
   Font kao na slici: Anton (tezak kondenzovani).
   ============================================================ */

/* ---------- DARK (default) ---------- */
:root {
  /* slojevi sive */
  --bg:        #0c0c0d;
  --bg-grad-1: #2a2a2e;
  --bg-grad-2: #0a0a0b;
  --surface:   #161618;
  --surface-2: #1d1d20;
  --line:      #2c2c31;
  --line-soft: #232327;

  /* tekst */
  --text:       #f3f3f5;
  --gray:       #8c8c95;
  --gray-light: #b8b8c0;

  /* akcenti */
  --accent:       #ffffff;   /* primarno dugme */
  --accent-ink:   #0a0a0a;   /* tekst na primarnom dugmetu */
  --gold:         #cda54f;   /* zlatni akcenat (iz rama na majici) */
  --gold-soft:    rgba(205,165,79,.16);

  --brush:        #000000;
  --brush-op:     .55;

  --radius: 6px;
  --maxw: 1200px;
  --font-display: 'Anton', 'Archivo', sans-serif;
  --font-body: 'Archivo', system-ui, sans-serif;
}

/* ---------- POSTER / LIGHT ---------- */
[data-theme="light"] {
  --bg:        #c7c9cc;
  --bg-grad-1: #e6e7e9;
  --bg-grad-2: #b3b5b9;
  --surface:   #f4f4f5;
  --surface-2: #ffffff;
  --line:      #c2c2c6;
  --line-soft: #d4d4d8;

  --text:       #131318;
  --gray:       #5f5f67;
  --gray-light: #3c3c43;

  --accent:     #0c0c0d;   /* primarno dugme = crno */
  --accent-ink: #f6f6f6;
  --gold:       #9a772b;
  --gold-soft:  rgba(154,119,43,.14);

  --brush:      #0a0a0a;
  --brush-op:   .82;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .35s ease, color .35s ease;
}

img { display: block; max-width: 100%; }
.hidden { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-display);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  padding: 16px 28px;
  border-radius: var(--radius);
  transition: transform .12s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 6px 22px rgba(0,0,0,.25);
}
.btn-primary:hover { box-shadow: 0 8px 30px var(--gold-soft), 0 0 0 1px var(--gold); }
.btn-block { width: 100%; display: block; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 2px;
  color: var(--text);
  text-decoration: none;
}
.logo::after { content: ""; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a {
  font-family: var(--font-display);
  letter-spacing: 1px;
  color: var(--gray-light);
  text-decoration: none;
  font-size: .95rem;
  position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; background: var(--gold); transition: width .2s ease;
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

/* theme toggle */
.theme-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-display);
  letter-spacing: 1px;
  font-size: .8rem;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.theme-btn:hover { border-color: var(--gold); }
.theme-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #6a6a6a);
  box-shadow: 0 0 0 2px var(--gold-soft);
}

.cart-btn {
  position: relative;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-display);
  letter-spacing: 1px;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .2s;
}
.cart-btn:hover { border-color: var(--gold); }
.cart-count {
  position: absolute;
  top: -8px; right: -8px;
  background: var(--gold);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: .72rem;
  min-width: 20px; height: 20px;
  border-radius: 999px;
  display: grid; place-items: center;
  padding: 0 5px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 70px 20px;
  /* pozadina kao na slici: srebrno-siva + crni potezi cetkom (X).
     Slojevi (odozgo na dole):
       1-2) crni overlay/vinjeta -> tekst se bolje istakne
       3)   tvoja slika  assets/hero-bg.jpg  (ubaci je u /assets)
       4)   fallback SVG X (vidi se dok slika nije ubacena)
       5)   srebrni gradijent kao osnova */
  background:
    radial-gradient(closest-side at 50% 50%, rgba(0,0,0,.62), rgba(0,0,0,0) 62%),
    linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.15) 30%, rgba(0,0,0,.18) 70%, rgba(0,0,0,.5) 100%),
    url('assets/hero-bg.jpg') center / cover no-repeat,
    url('assets/hero-x.svg') center 46% / 118% no-repeat,
    radial-gradient(120% 95% at 50% 30%, #e7e8ea 0%, #c6c8cb 42%, #97999c 100%);
  overflow: hidden;
}
/* stari .brush span-ovi se vise ne koriste */
.hero .brush { display: none; }

@keyframes typewriter {
  0% { width: 0; }
  100% { width: 100%; }
}
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-kicker {
  display: inline-block;
  font-family: var(--font-display);
  letter-spacing: 4px;
  color: #fff;
  font-size: .95rem;
  margin-bottom: 18px;
  padding: 7px 16px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  animation: fadeIn 0.8s ease-in;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 9vw, 5.5rem);
  line-height: .95;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 6px 30px rgba(0,0,0,.85), 0 2px 6px rgba(0,0,0,.9);
}
.hero-baseline {
  font-family: var(--font-display);
  letter-spacing: 3px;
  font-size: 1.8rem;
  color: #f0f0f2;
  margin-top: 24px;
  text-shadow: 0 2px 14px rgba(0,0,0,.85);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-sub {
  font-family: var(--font-display);
  letter-spacing: 6px;
  font-size: clamp(1rem, 3vw, 1.6rem);
  color: #f0f0f2;
  margin: 16px 0 34px;
  text-shadow: 0 2px 14px rgba(0,0,0,.85);
}
/* dugme u hero-u uvek tamno (lepo se cita na srebrnoj pozadini) */
.hero .btn-primary { background: #0c0c0d; color: #fff; }
.hero .btn-primary:hover { box-shadow: 0 8px 30px rgba(0,0,0,.5), 0 0 0 1px var(--gold); }

/* ---------- Sections ---------- */
.shop, .product-detail {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 76px 24px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.4rem);
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.section-title::after {
  content: "";
  display: block;
  width: 64px; height: 4px;
  background: var(--gold);
  margin-top: 14px;
  margin-bottom: 28px;
}

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.product-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s ease, border-color .2s ease, box-shadow .25s ease;
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 16px 40px rgba(0,0,0,.35), 0 0 0 1px var(--gold-soft);
}
.product-card .pc-img-wrap {
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(120% 90% at 50% 20%, var(--bg-grad-1), var(--bg-grad-2));
  position: relative;
  overflow: hidden;
}
.product-card .pc-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s ease;
}
.product-card:hover .pc-img-wrap img { transform: scale(1.06); }
.pc-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--gold);
  color: #fff;
  font-family: var(--font-display);
  letter-spacing: 1px;
  font-size: .72rem;
  padding: 5px 11px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.product-card .pc-body {
  padding: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.product-card .pc-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 1px;
}
.product-card .pc-price {
  color: var(--gold);
  font-weight: 700;
  white-space: nowrap;
}
.pc-stock {
  margin-top: 4px;
  font-size: .82rem;
  color: var(--gray);
  letter-spacing: .3px;
}
.pc-stock.low { color: #e8a33d; font-weight: 700; }
.pc-soldout {
  position: absolute;
  top: 12px; right: 12px;
  background: #c0392b;
  color: #fff;
  font-family: var(--font-display);
  letter-spacing: 1px;
  font-size: .72rem;
  padding: 5px 11px;
  border-radius: 999px;
}
.product-card.sold-out .pc-img-wrap img { filter: grayscale(.7) brightness(.6); }

/* zalihe na stranici proizvoda */
.pd-stock { margin: 0 0 22px; }
.pd-stock .stock-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 8px;
}
.pd-stock .stock-text {
  font-family: var(--font-display);
  letter-spacing: 1px;
  font-size: 1.05rem;
  color: var(--text);
}
.pd-stock.low .stock-text { color: #e8a33d; }
.pd-stock.out .stock-text { color: #e5484d; }
.pd-stock .stock-sold { font-size: .8rem; color: var(--gray); }
.pd-stock .stock-bar {
  height: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.pd-stock .stock-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), #e8a33d);
  border-radius: 999px;
  transition: width .5s ease;
}
.pd-stock.out .stock-bar-fill { background: #e5484d; }

/* ---------- Product detail ---------- */
.back-link {
  background: none; border: none; color: var(--gray-light);
  font-family: var(--font-display); letter-spacing: 1px;
  cursor: pointer; margin-bottom: 24px; font-size: .95rem;
}
.back-link:hover { color: var(--gold); }
.pd-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
}
/* --- Slajder (tecno klizanje + zoom) --- */
.pd-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: radial-gradient(120% 90% at 50% 20%, var(--bg-grad-1), var(--bg-grad-2));
  touch-action: pan-y;
}
.pd-track {
  display: flex;
  width: 100%;
  height: 100%;
  /* tecno klizanje */
  transition: transform .5s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.pd-slide {
  position: relative;
  min-width: 100%;
  height: 100%;
  overflow: hidden;
}
.pd-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
  transform: scale(1);
  transform-origin: center center;
  transition: transform .25s ease;
}
.pd-slide.zoomed img { transition: transform .08s ease-out; }

/* strelice */
.pd-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: rgba(10,10,10,.55);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 4;
  backdrop-filter: blur(4px);
  transition: background .2s, border-color .2s, opacity .2s;
}
.pd-arrow:hover { background: var(--gold); border-color: var(--gold); }
.pd-arrow.prev { left: 12px; }
.pd-arrow.next { right: 12px; }

.pd-zoom-hint {
  position: absolute;
  left: 12px; bottom: 12px;
  z-index: 4;
  background: rgba(10,10,10,.55);
  color: #fff;
  font-size: .72rem;
  letter-spacing: .5px;
  padding: 5px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  transition: opacity .25s;
  pointer-events: none;
}
.pd-viewport.zooming .pd-zoom-hint,
.pd-viewport.zooming .pd-arrow { opacity: 0; }

.pd-thumbs { display: flex; gap: 12px; margin-top: 12px; }
.pd-thumbs img {
  width: 84px; height: 84px; object-fit: cover;
  border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; opacity: .6; transition: opacity .2s, border-color .2s;
  background: var(--surface);
}
.pd-thumbs img:hover, .pd-thumbs img.active { opacity: 1; border-color: var(--gold); }

.pd-edition {
  display: inline-block;
  font-family: var(--font-display);
  letter-spacing: 3px;
  color: var(--gold);
  font-size: .8rem;
  margin-bottom: 12px;
  padding: 4px 12px;
  border: 1px solid var(--gold);
  border-radius: 999px;
}
.pd-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 1px;
  line-height: 1;
}
.pd-price {
  font-size: 1.7rem;
  font-weight: 800;
  margin: 16px 0;
  color: var(--text);
}
.pd-desc { color: var(--gray-light); margin-bottom: 28px; }
.pd-notice { color: #ff4444; font-weight: 600; margin-bottom: 20px; font-size: .9rem; }

.pd-sizes { margin-bottom: 24px; }
.pd-label {
  font-family: var(--font-display);
  letter-spacing: 2px;
  font-size: .85rem;
  margin-bottom: 10px;
}
.size-options { display: flex; flex-wrap: wrap; gap: 10px; }
.size-opt {
  min-width: 52px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-display);
  letter-spacing: 1px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .15s ease;
}
.size-opt:hover { border-color: var(--gold); }
.size-opt.selected { background: var(--gold); color: #fff; border-color: var(--gold); }
.size-error { color: #e5484d; font-size: .85rem; margin-top: 10px; }

.pd-meta {
  list-style: none;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.pd-meta li { color: var(--gray-light); padding: 6px 0; font-size: .92rem; }
.pd-meta strong { color: var(--text); }

/* ---------- Cart drawer ---------- */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease;
  z-index: 60;
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(420px, 100%);
  height: 100%;
  background: var(--surface);
  border-left: 1px solid var(--line);
  z-index: 70;
  transform: translateX(100%);
  transition: transform .28s ease;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; border-bottom: 1px solid var(--line);
}
.cart-head h2 { font-family: var(--font-display); letter-spacing: 2px; }
.cart-close {
  background: none; border: none; color: var(--text);
  font-size: 2rem; line-height: 1; cursor: pointer;
}
.cart-close:hover { color: var(--gold); }
.cart-items { flex: 1; overflow-y: auto; padding: 12px 24px; }
.cart-empty { padding: 40px 24px; color: var(--gray); text-align: center; }

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.cart-item img {
  width: 64px; height: 64px; object-fit: cover;
  border-radius: var(--radius); background: var(--surface-2);
}
.ci-name { font-family: var(--font-display); letter-spacing: .5px; font-size: 1.05rem; }
.ci-size { color: var(--gray); font-size: .85rem; }
.ci-price { color: var(--gold); font-weight: 700; margin-top: 2px; font-size: .9rem; }
.ci-qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; }
.ci-qty button {
  width: 26px; height: 26px;
  background: transparent; border: 1px solid var(--line); color: var(--text);
  border-radius: var(--radius); cursor: pointer; font-size: 1rem; line-height: 1;
}
.ci-qty button:hover { border-color: var(--gold); }
.ci-qty span { min-width: 20px; text-align: center; }
.ci-linetotal { font-weight: 700; }
.ci-remove {
  background: none; border: none; color: var(--gray); cursor: pointer;
  font-size: .8rem; text-decoration: underline; padding: 0; margin-top: 6px;
}
.ci-remove:hover { color: #e5484d; }

.cart-foot { padding: 20px 24px; border-top: 1px solid var(--line); }
.cart-row { display: flex; justify-content: space-between; padding: 6px 0; }
.cart-row.muted { color: var(--gray); }
.cart-row.total {
  font-family: var(--font-display); letter-spacing: 1px;
  font-size: 1.3rem; padding: 12px 0; border-top: 1px solid var(--line); margin-top: 6px;
}
.cart-row.total span:last-child { color: var(--gold); }
.cart-note { color: var(--gray); font-size: .85rem; margin: 6px 0 16px; }

/* ---------- Modals ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.78);
  display: none;
  align-items: center; justify-content: center;
  z-index: 100; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  width: min(480px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.modal h2 { font-family: var(--font-display); letter-spacing: 2px; font-size: 1.8rem; }
.modal-sub { color: var(--gray); margin: 6px 0 24px; font-size: .9rem; }
.modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; color: var(--gray);
  font-size: 1.8rem; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--gold); }

.checkout-form .field { margin-bottom: 16px; }
.checkout-form label {
  display: block; margin-bottom: 6px;
  font-size: .85rem; color: var(--gray-light); letter-spacing: .5px;
}
.checkout-form input,
.checkout-form textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 14px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  resize: vertical;
}
.checkout-form input:focus,
.checkout-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }

.order-summary {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 8px 0 18px;
  font-size: .88rem;
}
.order-summary .os-line { display: flex; justify-content: space-between; padding: 4px 0; color: var(--gray-light); }
.order-summary .os-total { font-weight: 800; color: var(--text); border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.order-summary .os-total span:last-child { color: var(--gold); }
.order-summary .os-pay { color: var(--gray); margin-top: 8px; }

.form-error { color: #e5484d; font-size: .88rem; margin-bottom: 12px; }
.form-hint { color: var(--gray); font-size: .78rem; margin-top: 12px; text-align: center; }

.modal-success { text-align: center; }
.modal-success h2 { margin-bottom: 14px; color: var(--gold); }
.modal-success p { color: var(--gray-light); margin-bottom: 24px; }

.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 64px 24px 52px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
  background: radial-gradient(120% 100% at 50% 100%, var(--bg-grad-1), transparent 70%);
}
.footer-logo { font-family: var(--font-display); font-size: 2.4rem; letter-spacing: 3px; }
.footer-text { font-family: var(--font-display); letter-spacing: 2px; color: var(--gold); margin: 8px 0; font-size: .9rem; }
.footer-small { color: var(--gray); font-size: .8rem; margin-top: 14px; }

/* ---------- Responsive ---------- */
/* TABLET (768px - 1024px) */
@media (max-width: 1024px) {
  .site-header { padding: 14px 24px; }
  .hero { padding: 50px 20px; min-height: 75vh; }
  .hero-baseline { font-size: 1.5rem; }
  .shop, .product-detail { padding: 60px 24px; }
  .pd-grid { grid-template-columns: 1fr; gap: 28px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
  .cart-drawer { width: min(100%, 90vw); }
}

/* MOBILE (640px - 768px) */
@media (max-width: 768px) {
  :root { --radius: 4px; }
  .site-header { padding: 12px 16px; }
  .logo { font-size: 1.3rem; letter-spacing: 1px; }
  .nav { gap: 8px; }
  .nav a { font-size: .85rem; }
  .theme-btn { padding: 6px 10px; font-size: .75rem; }

  .hero { padding: 40px 16px; min-height: 70vh; }
  .hero-kicker { font-size: .85rem; margin-bottom: 12px; padding: 6px 14px; }
  .hero-title { font-size: clamp(2rem, 8vw, 4rem); }
  .hero-baseline { font-size: 1.3rem; margin-top: 16px; }

  .shop, .product-detail { padding: 48px 16px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
  .product-card .pc-body { padding: 14px; }
  .product-card .pc-name { font-size: 1.1rem; }

  .modal { padding: 24px 20px; width: 95vw; }
  .btn { padding: 12px 20px; font-size: .9rem; }
  .checkout-form input,
  .checkout-form textarea { font-size: 16px; }
}

/* SMALL MOBILE (480px - 640px) */
@media (max-width: 640px) {
  .site-header { padding: 10px 14px; gap: 8px; }
  .logo { font-size: 1.1rem; letter-spacing: 0; }
  .nav a { font-size: .75rem; }
  .theme-btn { padding: 5px 8px; font-size: .7rem; }
  .cart-btn { padding: 7px 12px; }

  .hero { padding: 30px 14px; min-height: 60vh; }
  .hero-kicker { font-size: .9rem; margin-bottom: 10px; padding: 6px 14px; }
  .hero-title { font-size: clamp(2rem, 8vw, 3.5rem); }
  .hero-baseline { font-size: 1.4rem; margin-top: 12px; }
  .hero .btn-primary { padding: 12px 24px; font-size: .85rem; }

  .shop, .product-detail { padding: 40px 14px; }
  .section-title { font-size: clamp(1.6rem, 5vw, 2.4rem); }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .product-card .pc-body { padding: 12px; flex-direction: column; }
  .product-card .pc-name { font-size: .95rem; }
  .product-card .pc-price { font-size: .85rem; }

  .pd-thumbs { gap: 8px; }
  .pd-thumbs img { width: 70px; height: 70px; }
  .pd-edition { font-size: .7rem; padding: 3px 10px; }
  .pd-name { font-size: clamp(1.5rem, 4vw, 2rem); }
  .pd-price { font-size: 1.4rem; margin: 12px 0; }
  .pd-desc { font-size: .9rem; }
  .size-options { gap: 8px; }
  .size-opt { min-width: 48px; padding: 10px 12px; font-size: .85rem; }

  .cart-drawer { width: 100%; }
  .cart-item { grid-template-columns: 56px 1fr; gap: 10px; }
  .cart-item img { width: 56px; height: 56px; }
  .ci-name { font-size: .95rem; }
  .cart-foot { padding: 16px 18px; }

  .modal { padding: 20px 16px; width: 100%; }
  .modal h2 { font-size: 1.4rem; }
  .checkout-form input,
  .checkout-form textarea { font-size: 16px; padding: 10px 12px; }

  .pd-meta { margin-top: 20px; padding-top: 16px; }
  .pd-meta li { font-size: .85rem; }

  .site-footer { padding: 40px 16px 32px; }
  .footer-logo { font-size: 1.8rem; }
  .footer-text { font-size: .8rem; }
}

/* EXTRA SMALL (up to 480px) */
@media (max-width: 480px) {
  :root { --radius: 3px; }
  .site-header { padding: 8px 12px; }
  .logo { font-size: .95rem; letter-spacing: 0; }
  .nav a { display: none; }
  .nav { justify-content: flex-end; }
  .theme-btn { padding: 4px 6px; font-size: .65rem; }
  .cart-btn { padding: 6px 10px; font-size: .75rem; }

  .hero { padding: 24px 12px; min-height: 55vh; }
  .hero-inner { gap: 6px; }
  .hero-kicker { font-size: .85rem; margin-bottom: 8px; padding: 5px 12px; letter-spacing: 2px; }
  .hero-title { font-size: clamp(1.8rem, 7vw, 3rem); }
  .hero-baseline { font-size: 1.3rem; margin-top: 10px; letter-spacing: 2px; }
  .hero .btn-primary { padding: 10px 20px; font-size: .8rem; }

  .shop, .product-detail { padding: 32px 12px; }
  .section-title { font-size: clamp(1.4rem, 4vw, 2rem); }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card { border-radius: 3px; }
  .product-card .pc-img-wrap { aspect-ratio: 1/1; }
  .product-card .pc-body { padding: 10px; flex-direction: column; align-items: flex-start; }
  .product-card .pc-name { font-size: .85rem; }
  .pc-badge { font-size: .6rem; padding: 3px 8px; top: 8px; left: 8px; }

  .pd-grid { gap: 20px; }
  .pd-viewport { aspect-ratio: 0.9/1; }
  .pd-arrow { width: 36px; height: 36px; font-size: 1.3rem; }
  .pd-arrow.prev { left: 6px; }
  .pd-arrow.next { right: 6px; }
  .pd-thumbs { gap: 6px; }
  .pd-thumbs img { width: 60px; height: 60px; }
  .pd-edition { font-size: .65rem; padding: 2px 8px; }
  .pd-name { font-size: clamp(1.3rem, 3vw, 1.8rem); }
  .pd-price { font-size: 1.2rem; margin: 10px 0; }
  .pd-desc { font-size: .85rem; margin-bottom: 20px; }
  .pd-label { font-size: .75rem; }
  .size-options { gap: 6px; }
  .size-opt { min-width: 44px; padding: 8px 10px; font-size: .75rem; }

  .cart-drawer { width: 100%; }
  .cart-head { padding: 16px 14px; }
  .cart-items { padding: 10px 14px; }
  .cart-item { gap: 8px; grid-template-columns: 48px 1fr; }
  .cart-item img { width: 48px; height: 48px; }
  .ci-name { font-size: .85rem; }
  .cart-foot { padding: 14px 14px; }

  .modal { padding: 16px 14px; width: 100%; max-height: 90vh; }
  .modal h2 { font-size: 1.2rem; margin-bottom: 10px; }
  .modal-sub { font-size: .8rem; }
  .checkout-form .field { margin-bottom: 12px; }
  .checkout-form label { font-size: .8rem; }
  .checkout-form input,
  .checkout-form textarea { font-size: 16px; padding: 10px 10px; }

  .back-link { margin-bottom: 16px; font-size: .9rem; }
  .pd-meta { margin-top: 16px; padding-top: 14px; }
  .pd-meta li { font-size: .8rem; padding: 4px 0; }

  .site-footer { padding: 32px 12px 24px; }
  .footer-logo { font-size: 1.5rem; letter-spacing: 2px; }
  .footer-text { font-size: .75rem; letter-spacing: 1px; }
  .footer-small { font-size: .7rem; }
}
