/* HM DUTYFREE — storefront theme (black / deep red / gold) */

:root {
  --gold: #d9a441;
  --gold-light: #f5dc9a;
  --gold-dim: rgba(217, 164, 65, .38);
  --red: #a4111d;
  --red-bright: #e01c2b;
  --bg: #0b0708;
  --bg-2: #100b0c;
  --panel: #161011;
  --panel-2: #1d1516;
  --line: rgba(217, 164, 65, .18);
  --line-soft: rgba(255, 255, 255, .07);
  --text: #f5ece2;
  --muted: #a2938a;
  --radius: 14px;
  --font: 'Noto Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Anuphan', var(--font);
  --shell: 1320px;
  --gold-grad: linear-gradient(175deg, #f6e7c0 0%, #e0c078 38%, #c39a4c 70%, #a67c33 100%);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
/* inline icons default to text size unless a component sets its own */
svg { width: 1.2em; height: 1.2em; flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.3; margin: 0 0 .5em; }

.shell { width: min(var(--shell), 100% - 32px); margin-inline: auto; }
.only-desktop { display: block; }
.only-mobile { display: none; }

/* ---------------- top announce ---------------- */
.announce {
  background: linear-gradient(90deg, #6d0b14, var(--red) 45%, #6d0b14);
  color: #ffe9c6;
  font-size: 13px;
  text-align: center;
  padding: 7px 16px;
  letter-spacing: .01em;
}
.announce a { text-decoration: underline; }

/* ---------------- header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11, 7, 8, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-in {
  display: flex; align-items: center; gap: 18px;
  min-height: 74px;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand img { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--gold-dim); }
.brand-text strong {
  display: block; font-family: var(--font-head); font-size: 19px; font-weight: 600; line-height: 1.15;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: .04em;
}
.brand-text span { display: block; font-size: 10.5px; color: var(--muted); letter-spacing: .22em; text-transform: uppercase; }

.main-nav { display: flex; gap: 2px; margin-inline: auto; }
.main-nav a {
  position: relative; padding: 10px 14px; font-size: 14.5px; color: #e8dccf;
  border-radius: 8px; transition: color .18s, background .18s; white-space: nowrap;
}
.main-nav a:hover { color: var(--gold-light); background: rgba(217, 164, 65, .07); }
.main-nav a.on { color: var(--gold-light); }
.main-nav a.on::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: linear-gradient(90deg, var(--red-bright), var(--gold)); border-radius: 2px;
}

.header-search {
  display: flex; align-items: center; gap: 8px; flex: 0 1 300px; min-width: 0;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .03);
  padding: 0 6px 0 16px; height: 42px; transition: border-color .18s;
}
.header-search:focus-within { border-color: var(--gold); }
.header-search input {
  flex: 1; min-width: 0; border: 0; background: none; font-size: 14px; padding: 0;
}
.header-search input:focus { outline: none; }
.header-search input::placeholder { color: #7d7068; }
.header-search button {
  width: 32px; height: 32px; flex-shrink: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(217, 164, 65, .14); color: var(--gold-light); display: grid; place-items: center;
}
.header-search button:hover { background: var(--gold); color: #2a1a05; }
.header-search button svg { width: 16px; height: 16px; }

.header-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .02); cursor: pointer;
  color: var(--gold-light); position: relative; transition: border-color .18s, background .18s;
}
.icon-btn:hover { border-color: var(--gold); background: rgba(217, 164, 65, .1); }
.icon-btn svg { width: 19px; height: 19px; }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--red-bright); color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid var(--bg);
}
.cart-count[hidden] { display: none; }
.burger { display: none; }
.only-mobile-flex { display: none; }

/* search overlay */
.search-bar { display: none; padding: 0 0 14px; }
.search-bar.open { display: block; }
.search-form { display: flex; gap: 8px; }
.search-form input {
  flex: 1; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text);
}
.search-form input:focus { outline: none; border-color: var(--gold); }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0 auto 0 0; width: min(320px, 86vw); z-index: 100;
  background: var(--bg-2); border-right: 1px solid var(--line);
  transform: translateX(-100%); transition: transform .26s ease; overflow-y: auto; padding: 18px;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.drawer nav a { display: block; padding: 12px 10px; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.drawer nav a:hover { color: var(--gold-light); }
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .26s; }
.scrim.on { opacity: 1; pointer-events: auto; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; cursor: pointer; transition: transform .16s, box-shadow .2s, background .2s, border-color .2s;
  text-align: center; white-space: nowrap; line-height: 1.4;
}
.btn svg { width: 18px; height: 18px; }
.btn-sm svg { width: 15px; height: 15px; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold-grad); color: #2c1c06; box-shadow: 0 8px 24px -14px rgba(217, 164, 65, .8); }
.btn-gold:hover { box-shadow: 0 12px 30px -10px rgba(217, 164, 65, .95); }
.btn-outline { border-color: rgba(217, 164, 65, .7); color: var(--gold-light); background: rgba(10, 6, 7, .28); backdrop-filter: blur(2px); }
.btn-outline:hover { background: rgba(217, 164, 65, .12); }
.btn-red { background: linear-gradient(180deg, var(--red-bright), var(--red)); color: #fff; }
.btn-red:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { border-color: var(--gold-dim); }
.btn-block { width: 100%; }
.btn-wrap { white-space: normal; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------------- hero ---------------- */
.hero { position: relative; overflow: hidden; background: #000; }
.hero-track { display: flex; transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.hero-slide { position: relative; flex: 0 0 100%; min-height: clamp(340px, 46vw, 560px); display: flex; align-items: center; }
.hero-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6, 3, 4, .94) 0%, rgba(6, 3, 4, .8) 34%, rgba(6, 3, 4, .3) 64%, rgba(6, 3, 4, .05) 100%);
}
.hero-copy { position: relative; z-index: 2; padding: 46px 0; max-width: 660px; }
.hero-copy h1 { font-size: clamp(32px, 4.9vw, 60px); line-height: 1.16; font-weight: 500; margin-bottom: 18px; }
.hero-copy .l1, .hero-copy .l3 { display: block; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy .l2 {
  display: block; font-weight: 600;
  background: linear-gradient(180deg, #d9414f 0%, #b31c2b 55%, #7d1019 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-copy p {
  color: #cfc2b4; font-size: clamp(14px, 1.5vw, 17px); font-weight: 300;
  margin: 0 0 28px; max-width: 44ch;
}
.hero-dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; gap: 8px; justify-content: center; z-index: 3; }
.hero-dots button { width: 26px; height: 3px; border: 0; border-radius: 2px; background: rgba(255, 255, 255, .28); cursor: pointer; padding: 0; }
.hero-dots button.on { background: var(--red-bright); width: 34px; }

/* ---------------- category strip ---------------- */
.cat-strip { background: linear-gradient(180deg, #150e0f, #0e0809); border-bottom: 1px solid var(--line); }
.cat-row {
  display: flex; gap: 10px 4px; padding: 26px 0; scrollbar-width: none;
  flex-wrap: wrap; justify-content: center;
}
.cat-row::-webkit-scrollbar { display: none; }
.cat-item { flex: 0 0 calc(100% / 7 - 4px); min-width: 104px; text-align: center; }
.cat-ring {
  width: 78px; height: 78px; margin: 0 auto 10px; border-radius: 50%;
  border: 1.5px solid var(--gold-dim); display: grid; place-items: center;
  background: radial-gradient(circle at 50% 30%, rgba(217, 164, 65, .12), transparent 70%);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.cat-item:hover .cat-ring { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 10px 26px -14px var(--gold); }
.cat-ring img { width: 44px; height: 44px; object-fit: contain; }
.cat-item span { font-size: 13.5px; color: #e2d5c8; }

/* ---------------- sections ---------------- */
.section { padding: 54px 0; }
.section.alt { background: linear-gradient(180deg, #0e0a0b, #0b0708); }
.sec-head { text-align: center; margin-bottom: 30px; }
.sec-head h2 {
  font-size: clamp(23px, 3vw, 34px); font-weight: 500; margin-bottom: 6px;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sec-head p { color: var(--muted); margin: 0; font-size: 14.5px; }
.sec-head::after {
  content: ''; display: block; width: 150px; height: 1px; margin: 16px auto 0;
  background: linear-gradient(90deg, transparent, rgba(217, 164, 65, .75), transparent);
}
.sec-head.left { text-align: left; }
.sec-head.left::after { margin-inline: 0; }

/* ---------------- product grid & card ---------------- */
.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.rail-wrap { position: relative; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr);
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold-dim);
  background: rgba(12, 8, 9, .88); color: var(--gold-light); cursor: pointer;
  display: grid; place-items: center; transition: background .18s, border-color .18s;
}
.rail-btn svg { width: 18px; height: 18px; }
.rail-btn:hover { background: rgba(217, 164, 65, .18); border-color: var(--gold); }
.rail-btn.prev { left: -14px; }
.rail-btn.next { right: -14px; }

.card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: var(--gold-dim); transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .9); }
.card-media { position: relative; aspect-ratio: 1; background: #fff; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.card:hover .card-media img { transform: scale(1.05); }
.badge {
  position: absolute; top: 10px; left: 0; z-index: 2;
  background: linear-gradient(90deg, var(--red-bright), var(--red)); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 5px 11px 5px 10px;
  border-radius: 0 6px 6px 0; text-transform: uppercase;
}
.badge.gold { background: var(--gold-grad); color: #2a1a05; }
.card-body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-brand { font-size: 11px; letter-spacing: .1em; color: var(--gold); text-transform: uppercase; }
.card-name {
  font-size: 14px; line-height: 1.4; color: #f1e6da; font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em;
}
.card-meta { font-size: 12px; color: var(--muted); }
.card-foot { margin-top: auto; padding-top: 9px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.price { font-family: var(--font-head); font-size: 20px; font-weight: 600; color: var(--gold-light); white-space: nowrap; }
.price small { font-size: 12px; color: var(--muted); font-weight: 400; }
.price-old { font-size: 12.5px; color: #6f625b; text-decoration: line-through; display: block; }
.price-ask { font-size: 14px; color: var(--muted); font-weight: 500; }
.add-btn {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; border: 1px solid var(--gold-dim);
  background: rgba(217, 164, 65, .1); color: var(--gold-light); cursor: pointer;
  display: grid; place-items: center; transition: background .18s, transform .18s;
}
.add-btn:hover { background: var(--gold); color: #2a1a05; }
.add-btn.done { background: #1e7a45; border-color: #1e7a45; color: #fff; }
.card-link { position: absolute; inset: 0; z-index: 1; }
.card-foot, .add-btn { position: relative; z-index: 2; }

/* ---------------- benefits ---------------- */
.benefits { border-block: 1px solid var(--line); background: linear-gradient(180deg, #120c0d, #0d0809); }
.benefit-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 26px 0; }
.benefit { display: flex; align-items: center; gap: 13px; justify-content: center; min-width: 0; }
.benefit > div { min-width: 0; }
.benefit img { width: 42px; height: 42px; object-fit: contain; flex-shrink: 0; }
.benefit strong { display: block; font-size: 15px; color: var(--gold-light); font-weight: 600; }
.benefit span { font-size: 12.5px; color: var(--muted); }

/* ---------------- promo cards ---------------- */
.promo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.promo {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3;
  border: 1px solid var(--line-soft); display: flex; align-items: flex-end;
}
.promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.promo:hover img { transform: scale(1.06); }
.promo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(6, 3, 4, .92)); }
.promo-copy { position: relative; z-index: 2; padding: 16px; }
.promo-copy strong { display: block; font-family: var(--font-head); font-size: 17px; color: var(--gold-light); }
.promo-copy span { font-size: 12.5px; color: #cdbfb3; }

/* ---------------- reviews ---------------- */
.review-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 14px; overflow-x: auto; scrollbar-width: none; }
.review-rail::-webkit-scrollbar { display: none; }
.review-rail img { border-radius: 12px; border: 1px solid var(--line-soft); width: 100%; height: auto; }

/* ---------------- cta ---------------- */
.cta {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center;
  background: linear-gradient(120deg, #1b0f11, #120b0c 60%);
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
}
.cta-copy { padding: 38px; }
.cta-copy h2 { font-size: clamp(22px, 3vw, 32px); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-copy p { color: #cbbcae; margin-bottom: 22px; }
.cta-img { height: 100%; min-height: 220px; }
.cta-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- footer ---------------- */
.site-footer { background: #080506; border-top: 1px solid var(--line); padding: 46px 0 22px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 30px; }
.foot h4 { font-size: 15px; color: var(--gold-light); margin-bottom: 14px; }
.foot p, .foot li { color: var(--muted); font-size: 13.5px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a:hover { color: var(--gold-light); }
.foot-contact li { display: flex; gap: 9px; align-items: flex-start; }
.foot-contact svg { width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0; color: var(--gold); }
.foot-note { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line-soft); text-align: center; color: #7c6d64; font-size: 12.5px; }
.warn-strip { background: rgba(164, 17, 29, .16); border: 1px solid rgba(224, 28, 43, .3); border-radius: 10px; padding: 11px 16px; color: #e9b6ba; font-size: 12.5px; text-align: center; margin-top: 24px; }

/* ---------------- floating contact ---------------- */
.fab-stack { position: fixed; right: 16px; bottom: 16px; z-index: 70; display: grid; gap: 10px; }
.fab {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: 0 10px 28px -10px rgba(0, 0, 0, .9); color: #fff; border: 0; cursor: pointer;
}
.fab.line { background: #06c755; }
.fab.tel { background: linear-gradient(180deg, var(--red-bright), var(--red)); }
.fab svg { width: 25px; height: 25px; }

/* ---------------- generic page bits ---------------- */
.crumbs { font-size: 13px; color: var(--muted); padding: 18px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--gold-light); }
.page-head { padding: 26px 0 6px; }
.page-head h1 { font-size: clamp(25px, 3.4vw, 36px); font-weight: 500; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-head p { color: var(--muted); margin: 0; }

.panel { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 20px; }
.panel + .panel { margin-top: 16px; }
.panel h3 { font-size: 17px; color: var(--gold-light); }

.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; color: #d3c5b8; margin-bottom: 6px; }
.field > span em { color: var(--red-bright); font-style: normal; }
.input, .field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: #0e0a0b; color: var(--text); transition: border-color .18s;
}
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--gold); }
.field textarea { min-height: 96px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }

.alert { padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }
.alert.err { background: rgba(224, 28, 43, .12); border: 1px solid rgba(224, 28, 43, .4); color: #ffb9bf; }
.alert.ok { background: rgba(30, 122, 69, .14); border: 1px solid rgba(30, 122, 69, .45); color: #a9e8c3; }
.alert.info { background: rgba(217, 164, 65, .1); border: 1px solid var(--gold-dim); color: #f0dcb4; }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty svg { width: 64px; height: 64px; color: var(--gold-dim); margin: 0 auto 16px; }

/* ---------------- shop layout ---------------- */
.shop-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 26px; align-items: start; padding-top: 22px; }
.shop-layout > * { min-width: 0; }
.filters { position: sticky; top: 92px; min-width: 0; }
.filters input, .filters .input { min-width: 0; }
.filter-group { border-bottom: 1px solid var(--line-soft); padding: 14px 0; }
.filter-group:last-child { border-bottom: 0; }
.filter-group h4 { font-size: 14px; color: var(--gold-light); margin-bottom: 10px; }
.filter-list { display: grid; gap: 4px; max-height: 260px; overflow-y: auto; }
.filter-list a { font-size: 13.5px; color: #cbbdb1; padding: 5px 8px; border-radius: 7px; display: flex; justify-content: space-between; gap: 8px; }
.filter-list a:hover { background: rgba(217, 164, 65, .09); color: var(--gold-light); }
.filter-list a.on { background: rgba(164, 17, 29, .28); color: #fff; }
.filter-list b { color: var(--muted); font-weight: 400; font-size: 12px; }
.shop-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.shop-toolbar .count { color: var(--muted); font-size: 13.5px; margin-right: auto; }
.select {
  padding: 9px 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 13.5px;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: rgba(217, 164, 65, .12); border: 1px solid var(--gold-dim); color: var(--gold-light); font-size: 12.5px;
}
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 14px; color: #d8cabd;
}
.pagination svg { width: 16px; height: 16px; }
.pagination a:hover { border-color: var(--gold); color: var(--gold-light); }
.pagination .on { background: linear-gradient(180deg, var(--red-bright), var(--red)); border-color: transparent; color: #fff; }

/* ---------------- product detail ---------------- */
.pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; padding-top: 22px; }
.pd-gallery { position: sticky; top: 92px; }
.pd-main { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-soft); }
.pd-main img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: #fff; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.pd-thumbs button { width: 74px; height: 74px; flex-shrink: 0; border-radius: 10px; overflow: hidden; border: 1.5px solid var(--line); background: #fff; cursor: pointer; padding: 0; }
.pd-thumbs button.on { border-color: var(--gold); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd h1 { font-size: clamp(23px, 3.2vw, 34px); margin-bottom: 8px; }
.pd-brand { color: var(--gold); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.pd-price { font-family: var(--font-head); font-size: 38px; font-weight: 600; color: var(--gold-light); margin: 14px 0 4px; }
.pd-price small { font-size: 15px; color: var(--muted); font-weight: 400; }
.pd-attrs { display: grid; gap: 8px; margin: 18px 0; }
.pd-attrs div { display: flex; gap: 12px; font-size: 14px; }
.pd-attrs dt { color: var(--muted); min-width: 96px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty button { width: 42px; height: 46px; border: 0; background: transparent; color: var(--gold-light); font-size: 19px; cursor: pointer; }
.qty button:hover { background: rgba(217, 164, 65, .12); }
.qty input { width: 58px; height: 46px; border: 0; background: transparent; text-align: center; font-size: 16px; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0; }
.buy-row .btn { flex: 1; min-width: 160px; }
.bulk-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bulk-table th, .bulk-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.bulk-table th { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.bulk-table tr:last-child td { border-bottom: 0; }
.bulk-table .save { color: #6fdc9b; font-size: 12.5px; }
.trust-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.trust-list li { display: flex; gap: 10px; font-size: 14px; color: #ded1c4; }
.trust-list svg { width: 17px; height: 17px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.prose { color: #ded1c4; font-size: 14.5px; }
.prose h2, .prose h3 { color: var(--gold-light); margin-top: 1.4em; }
.prose ul { padding-left: 20px; }
.prose a { color: var(--gold-light); text-decoration: underline; }

/* ---------------- cart / checkout ---------------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: start; padding-top: 22px; }
.two-col > * { min-width: 0; }
.summary { position: sticky; top: 92px; }
.cart-line { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); align-items: center; }
.cart-line:last-child { border-bottom: 0; }
.cart-line img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; background: #fff; }
.cart-line h4 { font-size: 14.5px; margin: 0 0 4px; }
.cart-line .meta { font-size: 12.5px; color: var(--muted); }
.cart-line .line-price { font-family: var(--font-head); font-size: 17px; color: var(--gold-light); text-align: right; white-space: nowrap; }
.rm-btn { background: none; border: 0; color: #8a7a70; cursor: pointer; font-size: 12.5px; padding: 2px 0; }
.rm-btn svg { width: 14px; height: 14px; vertical-align: -2px; }
.rm-btn:hover { color: var(--red-bright); }
.totals { display: grid; gap: 10px; font-size: 14.5px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals .grand { border-top: 1px solid var(--line); padding-top: 12px; font-size: 20px; font-family: var(--font-head); font-weight: 700; color: var(--gold-light); }
.totals .free { color: #6fdc9b; }
.code-row { display: flex; gap: 8px; margin: 14px 0; }
.code-row input { flex: 1; }

.pay-option {
  display: flex; gap: 13px; align-items: flex-start; padding: 15px; border: 1.5px solid var(--line);
  border-radius: 12px; cursor: pointer; margin-bottom: 11px; transition: border-color .18s, background .18s;
}
.pay-option:hover { border-color: var(--gold-dim); }
.pay-option.on { border-color: var(--gold); background: rgba(217, 164, 65, .07); }
.pay-option input { margin-top: 4px; accent-color: var(--gold); }
.pay-option img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; background: #fff; }
.pay-option strong { display: block; font-size: 15px; }
.pay-option span { font-size: 13px; color: var(--muted); }

.qr-box { text-align: center; background: #fff; border-radius: 14px; padding: 16px; max-width: 300px; margin: 0 auto; }
.qr-box img { width: 100%; border-radius: 8px; }
.copy-row { display: flex; align-items: center; gap: 10px; background: #0e0a0b; border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; margin: 8px 0; }
.copy-row code { font-family: ui-monospace, monospace; font-size: 16px; color: var(--gold-light); letter-spacing: .04em; flex: 1; }
.copy-btn { border: 1px solid var(--gold-dim); background: rgba(217, 164, 65, .1); color: var(--gold-light); border-radius: 8px; padding: 6px 12px; font-size: 12.5px; cursor: pointer; }
.copy-btn svg { width: 14px; height: 14px; vertical-align: -2px; }
.copy-btn:hover { background: var(--gold); color: #2a1a05; }

.drop {
  border: 2px dashed var(--line); border-radius: 14px; padding: 30px 20px; text-align: center;
  cursor: pointer; transition: border-color .18s, background .18s; color: var(--muted);
}
.drop:hover, .drop.over { border-color: var(--gold); background: rgba(217, 164, 65, .06); }
.drop svg { width: 40px; height: 40px; color: var(--gold-dim); margin: 0 auto 10px; }
.drop img.preview { max-height: 260px; margin: 12px auto 0; border-radius: 10px; }

.steps { display: flex; gap: 6px; justify-content: center; margin: 22px 0 4px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.step i { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-style: normal; font-size: 12px; }
.step.on { color: var(--gold-light); }
.step.on i { border-color: var(--gold); background: rgba(217, 164, 65, .16); color: var(--gold-light); }
.step.done i { background: var(--gold); border-color: var(--gold); color: #2a1a05; }
.step + .step::before { content: ''; width: 26px; height: 1px; background: var(--line); }

.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.st-pending { background: rgba(217, 164, 65, .16); color: #f0cd84; }
.st-paid { background: rgba(56, 132, 255, .16); color: #9dc4ff; }
.st-packing { background: rgba(190, 110, 255, .16); color: #d5aaff; }
.st-shipped { background: rgba(30, 160, 120, .18); color: #7ce0b8; }
.st-done { background: rgba(30, 122, 69, .2); color: #a9e8c3; }
.st-cancelled { background: rgba(224, 28, 43, .16); color: #ffb0b6; }

/* age gate */
.gate { position: fixed; inset: 0; z-index: 200; background: rgba(5, 3, 3, .94); display: grid; place-items: center; padding: 20px; backdrop-filter: blur(6px); }
.gate-box { max-width: 420px; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 32px 26px; }
.gate-box img { width: 76px; margin: 0 auto 14px; border-radius: 50%; }
.gate-box h3 { font-size: 21px; color: var(--gold-light); }
.gate-box p { color: var(--muted); font-size: 13.5px; }
.gate-actions { display: flex; gap: 10px; margin-top: 18px; }
.gate-actions .btn { flex: 1; }

/* toast */
.toast-wrap { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 300; display: grid; gap: 8px; }
.toast {
  background: #1c1516; border: 1px solid var(--gold-dim); color: var(--text); padding: 12px 20px;
  border-radius: 999px; font-size: 14px; box-shadow: 0 14px 34px -16px #000; animation: pop .22s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(10px); } }

/* ---------------- responsive ---------------- */
@media (max-width: 1280px) {
  .cat-item { flex: 0 0 calc(100% / 6 - 4px); }
  .header-search { flex-basis: 220px; }
}
@media (max-width: 1080px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .promo-grid { grid-template-columns: repeat(2, 1fr); }
  .header-search { display: none; }
  .only-mobile-flex { display: grid; }
  .cat-item { flex: 0 0 calc(100% / 5 - 4px); }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .burger { display: grid; }
  .cat-item { flex: 0 0 calc(100% / 4 - 4px); }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filters-panel { display: none; }
  .filters-panel.open { display: block; }
  .pd { grid-template-columns: 1fr; gap: 22px; }
  .pd-gallery { position: static; }
  .two-col { grid-template-columns: 1fr; }
  .summary { position: static; }
  .cta { grid-template-columns: 1fr; }
  .cta-img { order: -1; min-height: 180px; max-height: 230px; }
  .benefit-row { grid-template-columns: 1fr 1fr; gap: 14px 10px; }
  .benefit { justify-content: flex-start; gap: 10px; }
  .benefit img { width: 34px; height: 34px; }
  .benefit strong { font-size: 13.5px; }
  .benefit span { font-size: 11.5px; line-height: 1.4; display: block; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .shell { width: min(var(--shell), 100% - 24px); }
  .only-desktop { display: none; }
  .only-mobile { display: block; }
  .header-in { min-height: 62px; gap: 10px; }
  .brand img { width: 40px; height: 40px; }
  .brand-text strong { font-size: 15.5px; }
  .brand-text span { font-size: 9px; letter-spacing: .16em; }
  .icon-btn { width: 38px; height: 38px; }
  .section { padding: 38px 0; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 11px; }
  .rail { grid-auto-columns: minmax(158px, 1fr); gap: 11px; }
  .rail-btn { display: none; }
  .card-name { font-size: 13px; }
  .price { font-size: 17px; }
  .cat-item { flex: 0 0 calc(100% / 4 - 4px); min-width: 0; }
  .cat-ring { width: 64px; height: 64px; }
  .cat-item span { font-size: 12.5px; }
  .cat-ring img { width: 34px; height: 34px; }
  .hero-copy { padding: 30px 0; }
  .hero-slide::after { background: linear-gradient(180deg, rgba(6, 3, 4, .55), rgba(6, 3, 4, .9)); }
  .promo-grid { grid-template-columns: 1fr 1fr; gap: 11px; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .cta-copy { padding: 24px; }
  .pd-price { font-size: 32px; }
  .buy-row .btn { min-width: 100%; }
  .cart-line { grid-template-columns: 64px 1fr; }
  .cart-line img { width: 64px; height: 64px; }
  .cart-line .line-price { grid-column: 2; text-align: left; }
  .fab { width: 46px; height: 46px; }
}
