/* ==========================================================================
   G.GORGEOUS — Gents Wear
   Brand palette: white canvas, black ink, antique gold accents
   ========================================================================== */

:root {
  --gold: #c8a24a;
  --gold-deep: #a8842f;
  --gold-soft: #e7d7ac;
  --gold-wash: #faf5e9;

  --ink: #0d0d0d;
  --ink-2: #2b2b2b;
  --muted: #6f6a63;
  --muted-2: #9b968e;

  --bg: #ffffff;
  --surface: #fbfaf7;
  --surface-2: #f4f1ea;
  --line: #e8e3d9;
  --line-soft: #f1ede4;

  --ok: #2f7d5d;
  --warn: #b8860b;
  --danger: #b3423a;

  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(13, 13, 13, .05);
  --shadow: 0 6px 24px rgba(13, 13, 13, .07);
  --shadow-lg: 0 18px 60px rgba(13, 13, 13, .13);

  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1280px;
  --header-h: 118px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.15;
  margin: 0 0 .4em;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.28rem; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 40px, 940px); margin-inline: auto; }

/* ---------- Shared atoms ---------- */

.eyebrow {
  font-size: .68rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin: 0 0 .7rem;
}

.rule-ornament {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; color: var(--gold); margin: 8px 0 26px;
}
.rule-ornament::before, .rule-ornament::after {
  content: ""; height: 1px; width: 62px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), var(--gold));
}
.rule-ornament::after { background: linear-gradient(270deg, transparent, var(--gold-soft), var(--gold)); }
.rule-ornament span { font-size: 11px; letter-spacing: .2em; }

.section { padding: 68px 0; }
.section-head { text-align: center; margin-bottom: 34px; }
.section-head p { color: var(--muted); max-width: 560px; margin: 0 auto; }

.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  --btn-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  cursor: pointer; transition: .22s ease;
  white-space: nowrap;
}
.btn:hover { --btn-bg: var(--gold-deep); --btn-bd: var(--gold-deep); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-gold { --btn-bg: var(--gold); --btn-bd: var(--gold); --btn-fg: #1a1408; }
.btn-gold:hover { --btn-bg: var(--gold-deep); --btn-fg: #fff; }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn-ghost:hover { --btn-bg: transparent; --btn-fg: var(--gold-deep); --btn-bd: var(--gold); }
.btn-danger { --btn-bg: transparent; --btn-fg: var(--danger); --btn-bd: #edd6d4; }
.btn-danger:hover { --btn-bg: var(--danger); --btn-fg: #fff; --btn-bd: var(--danger); }
.btn-sm { padding: 9px 16px; font-size: .68rem; letter-spacing: .12em; }
.btn-block { width: 100%; }

.badge {
  display: inline-block; padding: 4px 10px; border-radius: 100px;
  font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.badge-sale { background: #fdecea; color: var(--danger); }
.badge-new { background: var(--gold-wash); color: var(--gold-deep); }
.badge-out { background: var(--surface-2); color: var(--muted); }
.badge-ok { background: #e8f4ee; color: var(--ok); }
.badge-warn { background: #fdf3e0; color: var(--warn); }

.field { margin-bottom: 16px; }
.field label, .lbl {
  display: block; font-size: .68rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 7px;
}
.input, input[type="text"], input[type="email"], input[type="tel"],
input[type="number"], input[type="password"], input[type="url"], select, textarea {
  width: 100%; padding: 12px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  font-size: .92rem; transition: .18s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 162, 74, .14);
}
textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' stroke='%236f6a63' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.hint { font-size: .76rem; color: var(--muted-2); margin-top: 6px; }
.err-msg { font-size: .76rem; color: var(--danger); margin-top: 6px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field.invalid .err-msg { display: block; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }

/* ---------- Header ---------- */

.announce {
  background: var(--ink); color: #efe7d4;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  text-align: center; padding: 9px 16px;
}
.announce b { color: var(--gold); font-weight: 600; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header-bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 16px; padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; justify-self: center; }
.brand img { width: 54px; height: 54px; border-radius: 50%; box-shadow: 0 0 0 1px var(--gold-soft), 0 4px 14px rgba(0,0,0,.12); }
.brand-name { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .06em; line-height: 1; }
.brand-sub { font-size: .58rem; letter-spacing: .34em; text-transform: uppercase; color: var(--gold-deep); margin-top: 3px; }

.header-actions { display: flex; align-items: center; gap: 6px; justify-self: end; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 1px solid transparent; border-radius: 50%;
  background: transparent; cursor: pointer; transition: .2s ease; color: var(--ink);
}
.icon-btn:hover { background: var(--gold-wash); color: var(--gold-deep); }
.icon-btn .count {
  position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--gold); color: #1a1408; border-radius: 100px;
  font-size: .62rem; font-weight: 700; display: grid; place-items: center;
}
.icon-btn .count:empty, .icon-btn .count[data-zero="1"] { display: none; }

.header-search { justify-self: start; position: relative; width: min(320px, 100%); }
.header-search input {
  padding: 10px 14px 10px 38px; background: var(--surface); border-color: transparent;
  font-size: .86rem;
}
.header-search input:focus { background: #fff; }
.header-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted-2); }

.nav {
  display: flex; justify-content: center; gap: 34px;
  border-top: 1px solid var(--line-soft); padding: 12px 0;
}
.nav a {
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 500; color: var(--ink-2); position: relative; padding: 2px 0;
  transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 50%; bottom: -3px; width: 0; height: 1px;
  background: var(--gold); transition: .25s ease; transform: translateX(-50%);
}
.nav a:hover, .nav a.active { color: var(--gold-deep); }
.nav a:hover::after, .nav a.active::after { width: 100%; }

.menu-toggle { display: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 82% 12%, rgba(200,162,74,.16), transparent 62%),
    linear-gradient(180deg, var(--surface) 0%, #fff 78%);
  border-bottom: 1px solid var(--line-soft);
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 50px;
  padding: 66px 0 74px;
}
.hero h1 { margin-bottom: .3em; }
.hero h1 em { font-style: italic; color: var(--gold-deep); }
.hero p.lead { font-size: 1.04rem; color: var(--muted); max-width: 460px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 44px; }
.hero-stats div strong { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--ink); }
.hero-stats div span { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.hero-art {
  position: relative; aspect-ratio: 4 / 4.4;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--ink); box-shadow: var(--shadow-lg);
}
.hero-art { display: grid; place-items: center; }
.logo-ring {
  width: 72%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(200, 162, 74, .45), 0 24px 60px rgba(0, 0, 0, .55);
}
.logo-ring img { width: 108%; height: 108%; margin: -4%; object-fit: cover; }
.hero-art::after {
  content: ""; position: absolute; inset: 16px; border: 1px solid rgba(200,162,74,.35);
  border-radius: var(--radius); pointer-events: none;
}
.hero-tag {
  position: absolute; left: 0; bottom: 26px; background: #fff;
  padding: 14px 22px 14px 26px; box-shadow: var(--shadow);
  border-left: 3px solid var(--gold);
}
.hero-tag b { font-family: var(--serif); font-size: 1.1rem; display: block; }
.hero-tag span { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Category strip ---------- */

.cat-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat-card {
  position: relative; display: block; padding: 22px 18px; text-align: center;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  transition: .24s ease; cursor: pointer;
}
.cat-card:hover { background: #fff; border-color: var(--gold-soft); box-shadow: var(--shadow); transform: translateY(-3px); }
.cat-card .cat-ico { width: 54px; height: 62px; margin: 0 auto 12px; }
.cat-card b { font-family: var(--serif); font-size: 1.02rem; display: block; }
.cat-card span { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Shop layout ---------- */

.shop { display: grid; grid-template-columns: 262px 1fr; gap: 40px; align-items: start; }

.filters {
  position: sticky; top: calc(var(--header-h) + 14px);
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.filters-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--line-soft);
}
.filters-head h3 { margin: 0; font-size: 1.05rem; }
.filters-head button {
  background: none; border: none; cursor: pointer; font-size: .7rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600;
  padding: 8px 0; min-height: 32px;
}
.fgroup { padding: 16px 18px; border-bottom: 1px solid var(--line-soft); }
.fgroup:last-child { border-bottom: none; }
.fgroup > h4 {
  font-family: var(--sans); font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 12px;
}
.check {
  display: flex; align-items: center; gap: 10px; padding: 5px 0;
  cursor: pointer; font-size: .89rem; user-select: none;
}
.check input { appearance: none; width: 16px; height: 16px; border: 1px solid var(--line); border-radius: 3px; flex: none; cursor: pointer; transition: .16s; }
.check input:checked { background: var(--gold) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 6.2l2.6 2.6L10 3.4' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/11px no-repeat; border-color: var(--gold); }
.check .n { margin-left: auto; color: var(--muted-2); font-size: .76rem; }

.size-pills, .color-dots { display: flex; flex-wrap: wrap; gap: 8px; }
.size-pill {
  min-width: 42px; padding: 7px 10px; text-align: center; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: .76rem; font-weight: 600; letter-spacing: .04em; transition: .18s; background: #fff;
}
.size-pill:hover { border-color: var(--gold); }
.size-pill.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.size-pill.disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

.color-dot {
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer; position: relative;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.14);
  transition: .18s;
}
.color-dot:hover { transform: scale(1.08); }
.color-dot.on { box-shadow: inset 0 0 0 1px rgba(0,0,0,.14), 0 0 0 2px #fff, 0 0 0 3.5px var(--gold); }

.price-range { display: flex; align-items: center; gap: 8px; }
.price-range input { padding: 9px 10px; font-size: .84rem; }
.price-range span { color: var(--muted-2); }

.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-bottom: 16px; margin-bottom: 22px; border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.filter-toggle { display: none; }
.shop-toolbar .count-txt { font-size: .84rem; color: var(--muted); }
.shop-toolbar .count-txt b { color: var(--ink); }
.toolbar-right { display: flex; align-items: center; gap: 10px; }
.toolbar-right select { width: auto; min-width: 190px; padding: 9px 34px 9px 12px; font-size: .84rem; }

.active-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px;
  background: var(--gold-wash); border: 1px solid var(--gold-soft); border-radius: 100px;
  font-size: .75rem; color: var(--ink-2);
}
.chip button { background: none; border: none; cursor: pointer; color: var(--gold-deep); font-size: 1rem; line-height: 1; padding: 0; }

/* ---------- Product grid ---------- */

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 22px; }
.product-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card { position: relative; background: #fff; }
.card-media {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface);
  display: block;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.3,1); }
.card:hover .card-media img { transform: scale(1.05); }
.card-flags { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.card-fav {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.94); border: 1px solid var(--line-soft); cursor: pointer;
  display: grid; place-items: center; transition: .2s; color: var(--ink-2); z-index: 2;
}
.card-fav:hover { color: var(--danger); transform: scale(1.08); }
.card-fav.on { color: #d13b3b; }
.card-fav.on svg { fill: currentColor; }
.card-quick {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  opacity: 0; transform: translateY(8px); transition: .26s ease; z-index: 2;
}
.card:hover .card-quick { opacity: 1; transform: translateY(0); }
.card-body { padding: 14px 2px 0; }
.card-cat { font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); }
.card-title { font-family: var(--serif); font-size: 1.12rem; margin: 4px 0 6px; }
.card-title a:hover { color: var(--gold-deep); }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-weight: 600; font-size: 1rem; }
.price .was { color: var(--muted-2); text-decoration: line-through; font-weight: 400; font-size: .86rem; margin-left: 7px; }
.card-colors { display: flex; gap: 5px; }
.card-colors i { width: 13px; height: 13px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.16); }

.stars { display: inline-flex; gap: 2px; color: var(--gold); line-height: 1; }
.stars svg { width: 13px; height: 13px; }
.rating-row { display: flex; align-items: center; gap: 7px; font-size: .76rem; color: var(--muted); margin-top: 6px; }

.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-state h3 { color: var(--ink); }

/* ---------- Product detail ---------- */

.crumbs { font-size: .76rem; color: var(--muted); padding: 22px 0; }
.crumbs a:hover { color: var(--gold-deep); }
.crumbs span { margin: 0 8px; color: var(--muted-2); }

.pdp { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: start; }
/* grid children default to min-width:auto, which lets a wide button row
   stretch the whole column past the viewport on small phones */
.pdp > * { min-width: 0; }
.gallery-main {
  position: relative; aspect-ratio: 4 / 5; background: var(--surface);
  border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden;
}
.gallery-main img, .gallery-main video { width: 100%; height: 100%; object-fit: cover; }
.gallery-main video { background: #000; object-fit: contain; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px;
  border-radius: 50%; background: rgba(255,255,255,.92); border: 1px solid var(--line);
  display: grid; place-items: center; cursor: pointer; transition: .2s;
}
.gallery-nav:hover { background: #fff; color: var(--gold-deep); }
.gallery-nav.prev { left: 12px; } .gallery-nav.next { right: 12px; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb {
  position: relative; width: 76px; aspect-ratio: 4/5; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line); cursor: pointer; transition: .18s; background: var(--surface);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.on { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(200,162,74,.25); }
.thumb.video-thumb { display: grid; place-items: center; background: var(--ink); color: var(--gold); }

.pdp-info h1 { margin-bottom: .2em; }
.pdp-price { display: flex; align-items: baseline; gap: 12px; margin: 14px 0 18px; }
.pdp-price { flex-wrap: wrap; }
.pdp-price .now { font-size: 1.65rem; font-weight: 600; white-space: nowrap; }
.pdp-price .was { font-size: 1.05rem; color: var(--muted-2); text-decoration: line-through; }
.pdp-price .off { font-size: .7rem; }
.pdp-desc { color: var(--muted); margin-bottom: 22px; }

.opt-block { margin-bottom: 20px; }
.opt-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.opt-head .lbl { margin: 0; }
.opt-head .sel { font-size: .84rem; color: var(--ink-2); font-weight: 500; }
.size-guide-link { font-size: .72rem; color: var(--gold-deep); text-decoration: underline; cursor: pointer; }

.qty-picker { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.qty-picker button { width: 40px; height: 44px; background: #fff; border: none; cursor: pointer; font-size: 1.1rem; color: var(--ink-2); transition: .16s; }
.qty-picker button:hover { background: var(--gold-wash); color: var(--gold-deep); }
.qty-picker input { width: 54px; height: 44px; text-align: center; border: none; border-inline: 1px solid var(--line); border-radius: 0; font-weight: 600; }
.qty-picker input:focus { box-shadow: none; }

.buy-row { display: flex; gap: 12px; margin: 22px 0 18px; }
.buy-row .btn { flex: 1; }
.btn-heart {
  width: 52px; flex: none !important; --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: var(--line);
  padding: 0;
}
.btn-heart:hover { --btn-bg: #fff; --btn-fg: var(--danger); --btn-bd: #edd6d4; }
.btn-heart.on { --btn-fg: #d13b3b; --btn-bd: #edd6d4; }
.btn-heart.on svg { fill: currentColor; }

.assurances { display: grid; gap: 12px; padding: 20px; background: var(--surface); border-radius: var(--radius); margin-top: 22px; }
.assurance { display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; }
.assurance svg { color: var(--gold-deep); flex: none; margin-top: 2px; }
.assurance b { display: block; font-weight: 600; }
.assurance span { color: var(--muted); }

.stock-line { display: flex; align-items: center; gap: 8px; font-size: .84rem; margin-bottom: 16px; }
.stock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.stock-dot.low { background: var(--warn); } .stock-dot.out { background: var(--danger); }

.tabs { border-bottom: 1px solid var(--line); display: flex; gap: 30px; margin-bottom: 26px; overflow-x: auto; }
.tab {
  background: none; border: none; padding: 14px 0; cursor: pointer; position: relative;
  font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--muted);
  white-space: nowrap;
}
.tab.on { color: var(--ink); }
.tab.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold); }
.tab-panel { display: none; } .tab-panel.on { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.prose { max-width: 760px; color: var(--ink-2); }
.prose p { margin: 0 0 1em; }
.spec-table { width: 100%; border-collapse: collapse; max-width: 620px; }
.spec-table td { padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: .9rem; }
.spec-table td:first-child { color: var(--muted); width: 190px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Reviews ---------- */

.reviews-layout { display: grid; grid-template-columns: 280px 1fr; gap: 44px; align-items: start; }
.review-summary { background: var(--surface); border-radius: var(--radius); padding: 24px; text-align: center; }
.review-summary .big { font-family: var(--serif); font-size: 3.2rem; line-height: 1; }
.review-summary .stars svg { width: 17px; height: 17px; }
.bar-row { display: flex; align-items: center; gap: 9px; font-size: .78rem; margin-top: 8px; }
.bar { flex: 1; height: 6px; background: var(--surface-2); border-radius: 100px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--gold); }

.review { padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.review:first-child { padding-top: 0; }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--gold);
  display: grid; place-items: center; font-family: var(--serif); font-size: 1rem; flex: none;
}
.review-head b { display: block; font-size: .92rem; }
.review-head time { font-size: .74rem; color: var(--muted-2); }
.review h4 { font-family: var(--sans); font-size: .95rem; margin: 0 0 5px; }
.review p { margin: 0; color: var(--ink-2); font-size: .92rem; }

.star-input { display: flex; gap: 4px; }
.star-input button { background: none; border: none; cursor: pointer; padding: 2px; color: var(--line); transition: .15s; }
.star-input button svg { width: 26px; height: 26px; }
.star-input button.on { color: var(--gold); }
.star-input button.on svg { fill: currentColor; }

.review-form { background: var(--surface); border-radius: var(--radius); padding: 26px; margin-top: 26px; }

/* ---------- Cart / checkout ---------- */

.page-head { text-align: center; padding: 46px 0 30px; }
.page-head p { color: var(--muted); }

.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 42px; align-items: start; }

.cart-row {
  display: grid; grid-template-columns: 104px 1fr auto; gap: 18px;
  padding: 20px 0; border-bottom: 1px solid var(--line-soft);
}
.cart-row .cart-img { width: 104px; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line-soft); }
.cart-row .cart-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-row h4 { font-family: var(--serif); font-size: 1.1rem; margin: 0 0 4px; }
.cart-opts { font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
.cart-opts span + span::before { content: "·"; margin: 0 7px; color: var(--muted-2); }
.cart-actions { display: flex; align-items: center; gap: 14px; }
.link-btn {
  background: none; border: none; cursor: pointer; font-size: .76rem; color: var(--muted);
  text-decoration: underline; padding: 7px 0; min-height: 32px;   /* comfortable tap target */
}
.link-btn:hover { color: var(--danger); }
.cart-row .line-total { text-align: right; font-weight: 600; }

.summary {
  position: sticky; top: calc(var(--header-h) + 14px);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--surface);
}
.summary h3 { margin-bottom: 18px; }
.sum-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: .92rem; }
.sum-row.total {
  border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px;
  font-size: 1.18rem; font-weight: 600; font-family: var(--serif);
}
.sum-row .muted { color: var(--muted); }
.promo { display: flex; gap: 8px; margin: 16px 0; }
.promo input { font-size: .86rem; }

.steps { display: flex; justify-content: center; gap: 0; margin-bottom: 40px; }
.step { display: flex; align-items: center; gap: 10px; color: var(--muted-2); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; }
.step i { width: 26px; height: 26px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; font-style: normal; font-size: .74rem; }
.step.on { color: var(--gold-deep); font-weight: 600; }
.step.done { color: var(--ok); }
.step-sep { width: 60px; height: 1px; background: var(--line); margin: 0 18px; align-self: center; }

.pay-methods { display: grid; gap: 10px; margin-bottom: 18px; }
.pay-option {
  display: flex; align-items: center; gap: 12px; padding: 15px 16px; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius); transition: .18s; background: #fff;
}
.pay-option:hover { border-color: var(--gold-soft); }
.pay-option.on { border-color: var(--gold); background: var(--gold-wash); }
.pay-option input { appearance: none; width: 17px; height: 17px; border-radius: 50%; border: 1px solid var(--line); flex: none; transition: .16s; }
.pay-option input:checked { border: 5px solid var(--gold); }
.pay-option b { font-size: .92rem; display: block; }
.pay-option small { color: var(--muted); }
.pay-logos { margin-left: auto; display: flex; gap: 6px; align-items: center; color: var(--muted-2); }

.card-form { padding: 20px; background: var(--surface); border-radius: var(--radius); margin-bottom: 18px; }
.checkout-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 22px; }
.checkout-block > h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.checkout-block > h3 i { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; font-size: .74rem; font-style: normal; font-family: var(--sans); }

.success-panel { text-align: center; padding: 60px 20px; }
.success-mark {
  width: 82px; height: 82px; border-radius: 50%; margin: 0 auto 22px;
  background: var(--gold-wash); border: 1px solid var(--gold-soft); color: var(--gold-deep);
  display: grid; place-items: center;
}
.order-box { text-align: left; max-width: 540px; margin: 28px auto 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }

/* ---------- Admin ---------- */

.admin-shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.admin-side { background: var(--ink); color: #cfc9bd; padding: 26px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-brand { display: flex; align-items: center; gap: 11px; padding: 0 22px 22px; border-bottom: 1px solid #262626; margin-bottom: 18px; }
.admin-brand img { width: 40px; height: 40px; border-radius: 50%; }
.admin-brand b { font-family: var(--serif); color: #fff; font-size: 1.1rem; display: block; line-height: 1.1; }
.admin-brand span { font-size: .56rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.admin-nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 22px; cursor: pointer;
  font-size: .86rem; transition: .18s; border-left: 2px solid transparent;
}
.admin-nav a:hover { background: #171717; color: #fff; }
.admin-nav a.on { background: #171717; color: var(--gold); border-left-color: var(--gold); }
.admin-side .side-foot { padding: 20px 22px 0; margin-top: 18px; border-top: 1px solid #262626; font-size: .76rem; }
.admin-side .side-foot a { color: var(--gold); text-decoration: underline; display: block; margin-bottom: 8px; }

.admin-main { padding: 30px 34px 60px; background: var(--surface); }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.admin-head h1 { font-size: 1.9rem; margin: 0; }
.admin-head p { color: var(--muted); margin: 4px 0 0; font-size: .88rem; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 30px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  position: relative; overflow: hidden;
}
.stat::after { content: ""; position: absolute; right: -16px; top: -16px; width: 72px; height: 72px; border-radius: 50%; background: var(--gold-wash); }
.stat span { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); position: relative; }
.stat b { display: block; font-family: var(--serif); font-size: 2rem; margin-top: 6px; position: relative; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.panel-head h3 { margin: 0; }
.panel-body { padding: 22px; }

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 720px; }
table.data th {
  text-align: left; padding: 12px 16px; background: var(--surface); color: var(--muted);
  font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  border-bottom: 1px solid var(--line);
}
table.data td { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.data tr:hover td { background: #fdfcfa; }
.t-prod { display: flex; align-items: center; gap: 12px; }
.t-prod img { width: 46px; height: 56px; object-fit: cover; border-radius: 3px; border: 1px solid var(--line-soft); }
.t-prod b { display: block; font-weight: 600; }
.t-prod span { font-size: .74rem; color: var(--muted); }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; }

.admin-form { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.form-card > h3 { font-size: 1.1rem; margin-bottom: 4px; }
.form-card > .sub { color: var(--muted); font-size: .84rem; margin: 0 0 18px; }

.size-stock-row { display: grid; grid-template-columns: 90px 1fr 40px; gap: 10px; align-items: center; margin-bottom: 9px; }
.size-stock-row .sz { font-weight: 600; font-size: .86rem; }
.chip-input { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); min-height: 46px; align-items: center; }
.chip-input .chip { background: var(--surface-2); border-color: var(--line); }
.chip-input input { border: none; padding: 4px; flex: 1; min-width: 110px; }
.chip-input input:focus { box-shadow: none; }

.color-row { display: grid; grid-template-columns: 46px 1fr 40px; gap: 10px; align-items: center; margin-bottom: 9px; }
.color-row input[type="color"] { width: 46px; height: 42px; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; }

.dropzone {
  border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 26px; text-align: center;
  cursor: pointer; transition: .2s; background: var(--surface);
}
.dropzone:hover, .dropzone.drag { border-color: var(--gold); background: var(--gold-wash); }
.dropzone svg { color: var(--gold-deep); margin-bottom: 8px; }
.dropzone b { display: block; font-size: .9rem; }
.dropzone span { font-size: .78rem; color: var(--muted); }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 14px; }
.media-item { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.media-item img, .media-item video { width: 100%; height: 100%; object-fit: cover; }
.media-item .rm {
  position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(13,13,13,.78); color: #fff; border: none; cursor: pointer; font-size: .8rem; line-height: 1;
  display: grid; place-items: center;
}
.media-item .cover-tag { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(13,13,13,.78); color: var(--gold); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; text-align: center; padding: 3px; }

.switch { display: flex; align-items: center; gap: 11px; cursor: pointer; user-select: none; }
.switch input { appearance: none; width: 40px; height: 22px; border-radius: 100px; background: var(--surface-2); position: relative; cursor: pointer; transition: .2s; flex: none; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: .2s; }
.switch input:checked { background: var(--gold); }
.switch input:checked::after { transform: translateX(18px); }

.login-screen { min-height: 100vh; display: grid; place-items: center; background: var(--ink); padding: 24px; }
.login-card { width: min(100%, 400px); background: #fff; border-radius: var(--radius-lg); padding: 38px; text-align: center; box-shadow: var(--shadow-lg); }
.login-card img { width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 16px; }

/* ---------- Accounts ---------- */

.auth-wrap { max-width: 460px; margin: 0 auto; }
.auth-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; background: #fff; }
.auth-card > h2 { text-align: center; margin-bottom: 4px; }
.auth-card > .sub { text-align: center; color: var(--muted); font-size: .9rem; margin: 0 0 24px; }

.auth-tabs { display: flex; background: var(--surface-2); border-radius: var(--radius); padding: 4px; margin-bottom: 26px; }
.auth-tabs button {
  flex: 1; padding: 11px; border: none; background: transparent; cursor: pointer; border-radius: 3px;
  font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  transition: .18s;
}
.auth-tabs button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.demo-note {
  display: flex; gap: 11px; align-items: flex-start;
  background: var(--gold-wash); border: 1px solid var(--gold-soft); border-radius: var(--radius);
  padding: 13px 15px; font-size: .82rem; color: #6b5620; margin-bottom: 22px;
}
.demo-note svg { flex: none; margin-top: 2px; }
.demo-note b { display: block; margin-bottom: 2px; }

.code-box {
  background: var(--ink); color: var(--gold); border-radius: var(--radius);
  padding: 18px; text-align: center; margin: 18px 0;
}
.code-box .lbl { color: #9b968e; margin-bottom: 8px; }
.code-box .code { font-family: var(--serif); font-size: 2.2rem; letter-spacing: .34em; font-weight: 600; padding-left: .34em; }
.code-box .exp { font-size: .74rem; color: #9b968e; margin-top: 6px; }

.otp-row { display: flex; gap: 9px; justify-content: center; margin: 6px 0 4px; }
.otp-row input {
  width: 48px; height: 56px; text-align: center; font-size: 1.4rem; font-weight: 600;
  padding: 0; font-family: var(--serif);
}

.pw-meter { display: flex; gap: 4px; margin-top: 8px; }
.pw-meter i { height: 3px; flex: 1; background: var(--surface-2); border-radius: 2px; transition: .25s; }
.pw-meter.s1 i:nth-child(-n+1), .pw-meter.s2 i:nth-child(-n+2) { background: #d0574e; }
.pw-meter.s3 i:nth-child(-n+3) { background: var(--warn); }
.pw-meter.s4 i:nth-child(-n+4), .pw-meter.s5 i { background: var(--ok); }
.pw-hint { display: flex; justify-content: space-between; font-size: .74rem; color: var(--muted-2); margin-top: 6px; }

.pw-field { position: relative; }
.pw-toggle {
  position: absolute; right: 8px; top: 29px; background: none; border: none; cursor: pointer;
  color: var(--muted-2); padding: 9px; line-height: 0;
}
.pw-toggle:hover { color: var(--gold-deep); }

.auth-alt { text-align: center; font-size: .86rem; color: var(--muted); margin-top: 20px; }
.auth-alt button, .auth-alt a { background: none; border: none; padding: 0; cursor: pointer; color: var(--gold-deep); font-weight: 600; text-decoration: underline; font-size: .86rem; }
.auth-sep { display: flex; align-items: center; gap: 14px; color: var(--muted-2); font-size: .74rem; margin: 22px 0; }
.auth-sep::before, .auth-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.channel-pick { display: grid; gap: 10px; margin-bottom: 18px; }
.channel-opt {
  display: flex; align-items: center; gap: 13px; padding: 15px 16px; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius); transition: .18s; background: #fff;
}
.channel-opt:hover { border-color: var(--gold-soft); }
.channel-opt.on { border-color: var(--gold); background: var(--gold-wash); }
.channel-opt .ic { width: 38px; height: 38px; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); display: grid; place-items: center; flex: none; }
.channel-opt.on .ic { background: #fff; color: var(--gold-deep); }
.channel-opt b { display: block; font-size: .92rem; }
.channel-opt small { color: var(--muted); }

.steps-mini { display: flex; gap: 6px; margin-bottom: 22px; }
.steps-mini i { flex: 1; height: 3px; background: var(--surface-2); border-radius: 2px; }
.steps-mini i.on { background: var(--gold); }

/* signed-in dashboard */
.acct { display: grid; grid-template-columns: 250px 1fr; gap: 34px; align-items: start; }
.acct-side { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.acct-me { padding: 24px 20px; text-align: center; border-bottom: 1px solid var(--line-soft); background: var(--surface); }
.acct-me .avatar { width: 60px; height: 60px; margin: 0 auto 12px; font-size: 1.5rem; }
.acct-me b { display: block; font-family: var(--serif); font-size: 1.2rem; }
.acct-me span { font-size: .78rem; color: var(--muted); word-break: break-all; }
.acct-nav a {
  display: flex; align-items: center; gap: 12px; padding: 13px 20px; cursor: pointer;
  font-size: .89rem; border-left: 2px solid transparent; transition: .18s;
}
.acct-nav a:hover { background: var(--surface); }
.acct-nav a.on { background: var(--gold-wash); color: var(--gold-deep); border-left-color: var(--gold); font-weight: 600; }
.acct-nav a.danger { color: var(--danger); border-top: 1px solid var(--line-soft); }
.acct-panel { display: none; }
.acct-panel.on { display: block; animation: fade .3s ease; }

.acct-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 26px; }
.acct-stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.acct-stat span { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.acct-stat b { display: block; font-family: var(--serif); font-size: 1.7rem; margin-top: 4px; }

.order-card { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.order-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 18px; background: var(--surface); cursor: pointer; flex-wrap: wrap;
}
.order-head b { font-size: .95rem; }
.order-head .muted { font-size: .78rem; }
.order-body { padding: 18px; border-top: 1px solid var(--line-soft); display: none; }
.order-card.open .order-body { display: block; }
.order-line { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.order-line:last-child { border-bottom: none; }
.order-line img { width: 54px; aspect-ratio: 4/5; object-fit: cover; border-radius: 3px; border: 1px solid var(--line-soft); }

.addr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.addr-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: relative; }
.addr-card.default { border-color: var(--gold); background: var(--gold-wash); }
.addr-card b { display: block; margin-bottom: 4px; }
.addr-card p { margin: 0 0 12px; color: var(--muted); font-size: .88rem; }
.addr-card .tag { position: absolute; top: 14px; right: 14px; }

.signin-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 18px; margin-bottom: 22px; font-size: .9rem;
}

/* header account menu */
.acct-menu { position: relative; }
.acct-menu-pop {
  position: absolute; right: 0; top: calc(100% + 8px); width: 232px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 8px; z-index: 70; display: none;
}
.acct-menu.open .acct-menu-pop { display: block; animation: fade .18s ease; }
.acct-menu-pop .who { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); margin-bottom: 6px; }
.acct-menu-pop .who b { display: block; font-size: .9rem; }
.acct-menu-pop .who span { font-size: .76rem; color: var(--muted); word-break: break-all; }
.acct-menu-pop a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 3px;
  font-size: .88rem; cursor: pointer;
}
.acct-menu-pop a:hover { background: var(--surface); color: var(--gold-deep); }
.acct-menu-pop a.danger { color: var(--danger); border-top: 1px solid var(--line-soft); margin-top: 6px; padding-top: 12px; }
.icon-btn .dot {
  position: absolute; top: 7px; right: 6px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok); border: 1.5px solid #fff;
}

@media (max-width: 900px) {
  .acct { grid-template-columns: 1fr; }
  .acct-nav { display: flex; overflow-x: auto; }
  .acct-nav a { white-space: nowrap; border-left: none; border-bottom: 2px solid transparent; }
  .acct-nav a.on { border-left: none; border-bottom-color: var(--gold); }
  .acct-nav a.danger { border-top: none; }
}
@media (max-width: 620px) {
  .auth-card { padding: 24px 20px; }
  .acct-stats { grid-template-columns: 1fr; }
  .addr-grid { grid-template-columns: 1fr; }
  .otp-row input { width: 42px; height: 50px; font-size: 1.2rem; }
}

/* ---------- Toast / modal ---------- */

.toast-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 12px; min-width: 268px; max-width: 360px;
  background: var(--ink); color: #fff; padding: 14px 18px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); font-size: .88rem;
  animation: slideIn .28s cubic-bezier(.2,.8,.3,1);
  border-left: 3px solid var(--gold);
}
.toast.err { border-left-color: var(--danger); }
.toast.leaving { animation: slideOut .25s ease forwards; }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } }
@keyframes slideOut { to { opacity: 0; transform: translateX(30px); } }

.modal-back {
  position: fixed; inset: 0; background: rgba(13,13,13,.55); z-index: 150;
  display: grid; place-items: center; padding: 22px; animation: fade .2s ease;
  overflow-y: auto;
}
.modal {
  background: #fff; border-radius: var(--radius-lg); width: min(100%, 940px);
  max-height: 92vh; overflow-y: auto; box-shadow: var(--shadow-lg); position: relative;
  animation: pop .26s cubic-bezier(.2,.8,.3,1);
}
.modal.sm { width: min(100%, 460px); }
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(8px); } }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: 1px solid var(--line); cursor: pointer; z-index: 3;
  display: grid; place-items: center;
}
.modal-close:hover { color: var(--danger); }
.modal-pad { padding: 30px; }

.drawer-back { position: fixed; inset: 0; background: rgba(13,13,13,.5); z-index: 150; animation: fade .2s ease; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(100%, 420px); background: #fff;
  z-index: 151; display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
  animation: slideDrawer .3s cubic-bezier(.2,.8,.3,1);
}
@keyframes slideDrawer { from { transform: translateX(100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line-soft); }
.drawer-head h3 { margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 6px 22px; }
.drawer-foot { padding: 20px 22px; border-top: 1px solid var(--line-soft); background: var(--surface); }
.drawer .cart-row { grid-template-columns: 76px 1fr; }
.drawer .cart-row .cart-img { width: 76px; }
.drawer .cart-row .line-total { text-align: left; margin-top: 8px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #b9b3a8; margin-top: 70px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 56px 0 42px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a:hover { color: var(--gold); }
.footer-links { display: grid; gap: 9px; font-size: .88rem; }
.footer-brand img { width: 62px; height: 62px; border-radius: 50%; margin-bottom: 14px; }
.footer-brand p { font-size: .88rem; max-width: 300px; }
.contact-line { display: flex; gap: 11px; align-items: flex-start; font-size: .88rem; margin-bottom: 12px; }
.contact-line svg { color: var(--gold); flex: none; margin-top: 3px; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 38px; height: 38px; border: 1px solid #2e2e2e; border-radius: 50%; display: grid; place-items: center; transition: .2s; }
.socials a:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.footer-bottom {
  border-top: 1px solid #232323; padding: 18px 0; display: flex; justify-content: space-between;
  gap: 14px; font-size: .78rem; flex-wrap: wrap;
}

/* ---------- Utilities ---------- */
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.flex { display: flex; } .between { justify-content: space-between; } .items-center { align-items: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.wrap-flex { flex-wrap: wrap; }
.hide { display: none !important; }
.skeleton { background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 37%, var(--surface) 63%); background-size: 400% 100%; animation: sk 1.3s infinite; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .product-grid, .product-grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
  .cat-strip { grid-template-columns: repeat(3, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-form { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 96px; }
  .hero-inner { grid-template-columns: 1fr; padding: 44px 0 54px; }
  .hero-art { max-width: 420px; }
  .pdp { grid-template-columns: 1fr; gap: 30px; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .reviews-layout { grid-template-columns: 1fr; gap: 26px; }
  .shop { grid-template-columns: 1fr; }
  .filters {
    position: fixed; inset: 0; z-index: 160; border-radius: 0; overflow-y: auto;
    transform: translateX(-100%); transition: transform .28s ease;
  }
  .filters.open { transform: none; }
  .filter-toggle { display: inline-flex !important; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; }
  .admin-nav { display: flex; overflow-x: auto; }
  .admin-nav a { white-space: nowrap; border-left: none; border-bottom: 2px solid transparent; }
  .admin-nav a.on { border-left: none; border-bottom-color: var(--gold); }
  .admin-main { padding: 22px 18px 50px; }
}

@media (max-width: 720px) {
  .header-bar { grid-template-columns: auto 1fr auto; }
  .header-search { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; flex-direction: column;
    align-items: center; gap: 0; padding: 0; max-height: 0; overflow: hidden; transition: max-height .3s ease;
    box-shadow: var(--shadow); z-index: 55;
  }
  .nav.open { max-height: 420px; padding: 8px 0 18px; }
  .nav a { padding: 12px 0; }
  .product-grid, .product-grid.cols-4 { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
  .cat-strip { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 22px; }
  .logo-ring { width: 62%; }
  .hero-tag { bottom: 14px; padding: 11px 18px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .modal-pad { padding: 22px; }
  .card-quick { opacity: 1; transform: none; }
  .steps { font-size: .62rem; }
  .step-sep { width: 26px; margin: 0 8px; }
}

@media (max-width: 520px) {
  /* let the buy row stack instead of forcing the whole grid column wider */
  .buy-row { flex-wrap: wrap; gap: 10px; }
  .buy-row > .btn:first-child { flex: 1 1 100%; }
  .buy-row > .btn { flex: 1 1 auto; }
  .btn-heart { flex: 0 0 52px !important; }
  .thumb { width: 64px; }
}

@media (max-width: 460px) {
  .brand img { width: 44px; height: 44px; }
  .brand-name { font-size: 1.2rem; }
  .cart-row { grid-template-columns: 82px 1fr; }
  .cart-row .cart-img { width: 82px; }
  .cart-row .line-total { grid-column: 2; text-align: left; }
}

/* very small phones (320–420px): tighten the header so it never overflows */
@media (max-width: 420px) {
  .header-bar { gap: 8px; }
  .header-actions { gap: 2px; }
  .icon-btn { width: 36px; height: 36px; }
  .icon-btn .count { min-width: 16px; height: 16px; font-size: .58rem; top: 1px; right: -1px; }
  .brand { gap: 8px; }
  .brand img { width: 38px; height: 38px; }
  .brand-name { font-size: 1.02rem; }
  .brand-sub { font-size: .5rem; letter-spacing: .24em; }
  .announce { font-size: .64rem; letter-spacing: .1em; padding: 8px 12px; }
  .wrap, .wrap-narrow { width: min(100% - 24px, var(--wrap)); }
  .page-head { padding: 30px 0 20px; }
  .section { padding: 44px 0; }
  .product-grid, .product-grid.cols-4 { gap: 16px 10px; }
  .card-title { font-size: 1rem; }
  .toolbar-right select { min-width: 0; width: 100%; }
  .shop-toolbar { gap: 10px; }
  .steps { font-size: .56rem; flex-wrap: wrap; gap: 10px 14px; row-gap: 10px; }
  .step i { width: 22px; height: 22px; }
  .step-sep { display: none; }
  .drawer { width: 100%; }
  .modal-pad { padding: 18px 16px; }
  .toast-wrap { left: 12px; right: 12px; bottom: 12px; }
  .toast { min-width: 0; max-width: none; }
}

@media print { .site-header, .site-footer, .btn { display: none; } }
