/* =========================================================
   SilkCrown Wigs — storefront styles
   Design language modeled on US wig/beauty retail (SamsBeauty):
   white canvas, hot-pink accents, dense merchandising, 5-up grids.
   ========================================================= */

:root {
  --pink: #f40d71;
  --pink-dark: #d1095f;
  --pink-soft: #fe5f94;
  --pink-wash: #fff1f6;
  --red: #e52c2c;
  --ink: #17171a;
  --text: #3a3a3a;
  --muted: #7c7c7c;
  --line: #e9e5e0;
  --line-soft: #f2eeea;
  --sand: #f8f5f1;
  --sand-2: #f1ece5;
  --gold: #b98f5b;
  --green: #1c8a5a;
  --white: #fff;
  --radius: 2px;
  --shadow-sm: 0 1px 2px rgba(20, 15, 10, .06);
  --shadow-md: 0 8px 30px rgba(20, 15, 10, .10);
  --shadow-lg: 0 24px 70px rgba(20, 15, 10, .18);
  --container: 1320px;
  --header-h: 108px;
  --sans: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: Georgia, "Times New Roman", "Songti SC", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 24px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid transparent; transition: .18s ease; white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--pink); }
.btn-pink { background: var(--pink); color: #fff; }
.btn-pink:hover { background: var(--pink-dark); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { border-color: var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 11px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.link-underline { border-bottom: 1px solid currentColor; padding-bottom: 2px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- promo bar ---------- */
.promo-bar {
  background: var(--ink); color: #fff; font-size: 11.5px; letter-spacing: .09em;
  text-transform: uppercase; height: 36px; display: flex; align-items: center;
}
.promo-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.promo-rotator { position: relative; height: 36px; overflow: hidden; flex: 1; max-width: 720px; }
.promo-rotator span {
  position: absolute; inset: 0; display: flex; align-items: center; gap: 8px;
  opacity: 0; transform: translateY(8px); transition: .5s ease;
}
.promo-rotator span.on { opacity: 1; transform: none; }
.promo-rotator b { color: var(--pink-soft); font-weight: 700; }
.promo-bar nav { display: flex; gap: 22px; opacity: .85; }
.promo-bar nav a:hover { color: var(--pink-soft); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); }
.header-main { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 34px; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #ff7fae, var(--pink) 55%, #9c0746);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
.logo-text { font-family: var(--serif); font-size: 25px; letter-spacing: .02em; color: var(--ink); line-height: 1; }
.logo-text small { display: block; font-family: var(--sans); font-size: 8.5px; letter-spacing: .42em; color: var(--muted); margin-top: 4px; }

.search { position: relative; display: flex; align-items: center; height: 46px; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; background: #fff; }
.search input { flex: 1; border: 0; outline: 0; padding: 0 22px; height: 100%; font-size: 13.5px; background: transparent; }
.search input::placeholder { color: #9a9a9a; }
.search button { width: 56px; height: 100%; display: grid; place-items: center; background: var(--ink); color: #fff; }
.search button:hover { background: var(--pink); }
.search-hints { position: absolute; left: 0; right: 0; top: 52px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md); border-radius: 12px; padding: 8px; display: none; z-index: 70; }
.search-hints.open { display: block; }
.search-hints a { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 8px; }
.search-hints a:hover { background: var(--sand); }
.search-hints img { width: 40px; height: 48px; object-fit: cover; background: var(--sand); }
.search-hints strong { font-size: 12.5px; font-weight: 600; display: block; }
.search-hints span { font-size: 11px; color: var(--muted); }

.header-actions { display: flex; align-items: center; gap: 16px; padding-right: 10px; }
.h-action { position: relative; display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.h-action .cart-count { position: absolute; top: -8px; left: 13px; right: auto; box-shadow: 0 0 0 2px #fff; }
.h-action svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.h-action:hover { color: var(--pink); }
.lang-switch {
  display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px;
  border: 1px solid rgba(23,23,26,.16); background: transparent; cursor: pointer;
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #9a9490;
  font-family: inherit; transition: border-color .18s, color .18s;
}
.lang-switch:hover { border-color: var(--pink); }
.lang-switch i { font-style: normal; color: #d5cfc9; }
.lang-switch span.on { color: var(--ink); font-weight: 700; }
.lang-switch span:not(.on):hover { color: var(--pink); }
.cart-count {
  min-width: 18px; height: 18px; border-radius: 9px; background: var(--pink); color: #fff;
  font-size: 10px; font-weight: 700; display: grid; place-items: center; padding: 0 4px;
}
.header-nav { border-top: 1px solid var(--line-soft); }
.nav-list { display: flex; align-items: center; gap: 21px; height: 46px; }
.nav-list > li { position: relative; height: 100%; display: flex; align-items: center; }
.nav-list > li > a {
  font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink);
  height: 100%; display: flex; align-items: center; border-bottom: 2px solid transparent; white-space: nowrap;
}
.nav-list > li > a:hover, .nav-list > li.active > a { color: var(--pink); border-color: var(--pink); }
.nav-list .sale > a { color: var(--red); }
.nav-list .sale > a:hover { color: var(--red); border-color: var(--red); }
.nav-spacer { flex: 1; }
.nav-tag { font-size: 10px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.nav-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block; }

.mega {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(6px);
  width: min(980px, 88vw); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  padding: 28px 32px; display: none; grid-template-columns: 1.1fr 1.6fr; gap: 36px; z-index: 65;
}
.nav-list > li:hover .mega { display: grid; }
.mega h5 { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.mega-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 28px; }
.mega-cols a { font-size: 13px; padding: 5px 0; color: var(--text); display: block; }
.mega-cols a:hover { color: var(--pink); }
.mega-promo { background: var(--sand); padding: 22px; display: flex; flex-direction: column; justify-content: space-between; }
.mega-promo .kicker { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--pink); }
.mega-promo h4 { font-family: var(--serif); font-size: 24px; margin: 8px 0 6px; color: var(--ink); }
.mega-promo p { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }

@media (max-width: 1460px) { .nav-tag { display: none; } .nav-list { gap: 16px; } .header-actions { gap: 14px; } }

/* mobile nav */
.menu-toggle { display: none; }
.mobile-nav { position: fixed; inset: 0 30% 0 0; background: #fff; z-index: 90; transform: translateX(-100%); transition: .3s; overflow-y: auto; padding: 20px; }
.mobile-nav.open { transform: none; }
.mobile-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--sand); overflow: hidden; }
.hero-slide { display: none; grid-template-columns: 1fr 1fr; align-items: center; min-height: 520px; }
.hero-slide.on { display: grid; animation: fade .5s ease; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.hero-copy { padding: 60px 0 60px 8%; max-width: 620px; }
.hero-copy .kicker { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--pink); margin-bottom: 18px; }
.hero-copy h1 { font-family: var(--serif); font-size: clamp(38px, 4.4vw, 62px); line-height: 1.04; color: var(--ink); letter-spacing: -.02em; }
.hero-copy h1 em { font-style: italic; color: var(--pink); }
.hero-copy p { margin: 20px 0 28px; font-size: 15px; color: #5c5c5c; max-width: 420px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { position: relative; height: 100%; min-height: 520px; display: grid; place-items: center; }
.hero-visual .hero-img { width: 88%; max-height: 540px; object-fit: contain; filter: drop-shadow(0 30px 44px rgba(0,0,0,.16)); }
.hero-price-tag {
  position: absolute; right: 12%; bottom: 12%; background: #fff; padding: 14px 20px;
  box-shadow: var(--shadow-md); border-radius: 2px; text-align: center;
}
.hero-price-tag span { display: block; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hero-price-tag strong { font-size: 26px; color: var(--red); font-family: var(--serif); }
.hero-dots { position: absolute; bottom: 22px; left: 8%; display: flex; gap: 8px; }
.hero-dots button { width: 26px; height: 3px; background: #cfc7bd; }
.hero-dots button.on { background: var(--ink); }

/* ---------- usp ---------- */
.usp { border-bottom: 1px solid var(--line); }
.usp .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.usp-item { display: flex; gap: 12px; align-items: center; padding: 18px 20px; border-left: 1px solid var(--line-soft); }
.usp-item:first-child { border-left: 0; }
.usp-item svg { width: 26px; height: 26px; stroke: var(--ink); fill: none; stroke-width: 1.3; flex: 0 0 auto; }
.usp-item strong { display: block; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.usp-item span { font-size: 11.5px; color: var(--muted); }

/* ---------- section ---------- */
.section { padding: 58px 0; }
.section.tight { padding: 38px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; gap: 20px; }
.section-head .kicker { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--pink); margin-bottom: 8px; }
.section-head h2 { font-family: var(--serif); font-size: 32px; color: var(--ink); }
.section-head p { color: var(--muted); font-size: 13px; margin-top: 6px; }
.rail-controls { display: flex; gap: 8px; }
.rail-controls button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; background: #fff; }
.rail-controls button:hover { border-color: var(--ink); }

/* ---------- promo tiles ---------- */
.promo-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.promo-tile {
  position: relative; min-height: 170px; padding: 26px 28px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; color: var(--ink);
}
.promo-tile.a { background: linear-gradient(120deg, #ffe3ee, #ffc9dd); }
.promo-tile.b { background: linear-gradient(120deg, #ece7ff, #d9d2f8); }
.promo-tile.c { background: linear-gradient(120deg, #f4ecdf, #e6d6bd); }
.promo-tile small { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: rgba(0,0,0,.55); }
.promo-tile h3 { font-family: var(--serif); font-size: 27px; margin: 8px 0 10px; max-width: 240px; line-height: 1.15; }
.promo-tile .code { font-size: 12px; font-weight: 700; letter-spacing: .12em; border-bottom: 1px solid rgba(0,0,0,.35); display: inline-block; padding-bottom: 2px; width: fit-content; }
.promo-tile .tile-img { position: absolute; right: -18px; bottom: -24px; width: 190px; opacity: .95; }

/* ---------- category circles ---------- */
.cat-circles { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.cat-circle { text-align: center; }
.cat-circle .ring {
  width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: var(--sand); border: 1px solid var(--line); transition: .2s;
  display: grid; place-items: center;
}
.cat-circle:hover .ring { border-color: var(--pink); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.cat-circle img { width: 100%; height: 100%; object-fit: cover; }
.cat-circle span { display: block; margin-top: 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }

/* ---------- product grid / card ---------- */
.product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 26px 18px; }
.product-grid.four { grid-template-columns: repeat(4, 1fr); }
.rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 72px) / 5); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.rail-track::-webkit-scrollbar { display: none; }
.rail-track .product-card { scroll-snap-align: start; }

.product-card { position: relative; display: flex; flex-direction: column; }
.pc-media { position: relative; background: var(--sand); overflow: hidden; aspect-ratio: 4 / 5; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s; }
.pc-media img.alt { position: absolute; inset: 0; opacity: 0; }
.product-card:hover .pc-media img.alt { opacity: 1; }
.product-card:hover .pc-media img { transform: scale(1.03); }
.pc-badge {
  position: absolute; top: 10px; left: 10px; background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .12em; padding: 4px 8px; text-transform: uppercase; z-index: 2;
}
.pc-badge.new { background: var(--ink); }
.pc-badge.best { background: var(--gold); }
.pc-wish { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; opacity: 0; transition: .2s; z-index: 2; }
.product-card:hover .pc-wish { opacity: 1; }
.pc-wish svg { width: 16px; height: 16px; stroke: var(--ink); fill: none; stroke-width: 1.6; }
.pc-wish.on svg { fill: var(--pink); stroke: var(--pink); }
.pc-quick {
  position: absolute; left: 10px; right: 10px; bottom: 10px; height: 38px; background: rgba(23,23,26,.94);
  color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  display: grid; place-items: center; opacity: 0; transform: translateY(6px); transition: .2s; z-index: 2;
}
.product-card:hover .pc-quick { opacity: 1; transform: none; }
.pc-quick:hover { background: var(--pink); }
.pc-body { padding: 12px 2px 0; display: flex; flex-direction: column; gap: 5px; }
.pc-brand { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pc-title { font-size: 13px; line-height: 1.35; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 35px; }
.pc-title:hover { color: var(--pink); }
.pc-rating { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
.stars { color: #e8a33d; letter-spacing: 1px; font-size: 11px; }
.pc-price { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.pc-price .now { color: var(--red); font-weight: 700; font-size: 15px; }
.pc-price .was { color: #9b9b9b; text-decoration: line-through; font-size: 12px; }
.pc-price .off { color: var(--red); font-size: 11px; font-weight: 700; }
.pc-colors { display: flex; gap: 5px; margin-top: 2px; }
.pc-colors i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); display: block; }

/* ---------- brand wall ---------- */
.brand-wall { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); }
.brand-wall a { padding: 26px 10px; text-align: center; font-family: var(--serif); font-size: 17px; letter-spacing: .04em; color: #6a6a6a; border-right: 1px solid var(--line); }
.brand-wall a:last-child { border-right: 0; }
.brand-wall a:hover { color: var(--pink); background: var(--sand); }

/* ---------- editorial ---------- */
.editorial { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--sand); }
.editorial-media { min-height: 420px; position: relative; background: linear-gradient(135deg, #e9dfd3, #d8c7b4); display: grid; place-items: center; overflow: hidden; }
.editorial-media img { width: 62%; max-height: 380px; object-fit: contain; }
.editorial-copy { padding: 64px 8%; display: flex; flex-direction: column; justify-content: center; }
.editorial-copy .kicker { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--pink); }
.editorial-copy h2 { font-family: var(--serif); font-size: 38px; line-height: 1.1; margin: 14px 0 16px; color: var(--ink); }
.editorial-copy p { color: #5f5f5f; font-size: 14px; margin-bottom: 26px; max-width: 420px; }
.editorial-copy ul { margin-bottom: 28px; display: grid; gap: 10px; }
.editorial-copy li { font-size: 13px; display: flex; gap: 10px; align-items: flex-start; }
.editorial-copy li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); margin-top: 7px; flex: 0 0 auto; }

/* ---------- reviews ---------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review-card { border: 1px solid var(--line); padding: 26px; background: #fff; }
.review-card .stars { font-size: 13px; }
.review-card h4 { font-size: 13.5px; margin: 10px 0 8px; color: var(--ink); }
.review-card p { font-size: 13px; color: #5f5f5f; line-height: 1.65; }
.review-card footer { margin-top: 16px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; }
.review-card .verified { color: var(--green); }

/* ---------- newsletter ---------- */
.newsletter { background: var(--ink); color: #fff; padding: 56px 0; }
.newsletter .container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.newsletter h2 { font-family: var(--serif); font-size: 34px; margin-bottom: 8px; }
.newsletter p { color: rgba(255,255,255,.65); font-size: 13px; }
.nl-form { display: flex; height: 52px; border: 1px solid rgba(255,255,255,.35); }
.nl-form input { flex: 1; background: transparent; border: 0; padding: 0 18px; color: #fff; outline: 0; }
.nl-form input::placeholder { color: rgba(255,255,255,.45); }
.nl-form button { padding: 0 28px; background: var(--pink); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.nl-note { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 10px; }

/* ---------- footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding-top: 54px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 30px; padding-bottom: 44px; }
.footer-brand p { font-size: 12.5px; color: var(--muted); margin: 16px 0 18px; max-width: 260px; line-height: 1.7; }
.socials { display: flex; gap: 10px; }
.socials a { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--muted); }
.socials a:hover { border-color: var(--ink); color: var(--ink); }
.footer-col h5 { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); margin-bottom: 16px; }
.footer-col a, .footer-col li { display: block; font-size: 12.5px; color: var(--muted); padding: 5px 0; }
.footer-col a:hover { color: var(--pink); }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 11.5px; color: var(--muted); }
.pay-icons { display: flex; gap: 8px; }
.pay-icons span { border: 1px solid var(--line); padding: 4px 8px; font-size: 9.5px; letter-spacing: .06em; font-weight: 700; color: #555; background: #fff; }

/* ---------- drawer / overlay / toast ---------- */
.overlay { position: fixed; inset: 0; background: rgba(15,12,10,.45); opacity: 0; pointer-events: none; transition: .25s; z-index: 80; }
.overlay.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); background: #fff; z-index: 85;
  transform: translateX(100%); transition: .28s ease; display: flex; flex-direction: column;
}
.drawer.on { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-family: var(--serif); font-size: 22px; }
.drawer-close { font-size: 22px; line-height: 1; color: var(--muted); }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 24px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 24px 22px; background: #fff; }
.ship-bar { margin-bottom: 14px; }
.ship-bar p { font-size: 12px; color: var(--text); margin-bottom: 8px; }
.ship-bar .track { height: 4px; background: var(--line-soft); }
.ship-bar .fill { height: 100%; background: var(--pink); transition: .3s; }
.drawer-line { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.drawer-line img { width: 76px; height: 95px; object-fit: cover; background: var(--sand); }
.drawer-line h4 { font-size: 12.5px; font-weight: 500; line-height: 1.35; margin-bottom: 4px; }
.drawer-line .meta { font-size: 11px; color: var(--muted); }
.drawer-line .row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); height: 30px; }
.qty button { width: 28px; height: 100%; font-size: 14px; color: var(--muted); }
.qty button:hover { color: var(--ink); }
.qty span { width: 30px; text-align: center; font-size: 12px; }
.line-price { font-weight: 700; color: var(--ink); font-size: 13px; }
.remove-line { font-size: 11px; color: var(--muted); text-decoration: underline; }
.empty-state { text-align: center; padding: 60px 10px; color: var(--muted); font-size: 13px; }
.totals-row { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; color: var(--text); }
.totals-row.total { font-size: 17px; font-weight: 700; color: var(--ink); padding-top: 10px; margin-top: 8px; border-top: 1px solid var(--line); }
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px); background: var(--ink); color: #fff;
  padding: 12px 22px; font-size: 12.5px; letter-spacing: .04em; z-index: 120; opacity: 0; pointer-events: none; transition: .25s;
  box-shadow: var(--shadow-md); max-width: 90vw;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--red); }

/* ---------- category page ---------- */
.page-head { background: var(--sand); padding: 34px 0; border-bottom: 1px solid var(--line); }
.crumbs { font-size: 11.5px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--pink); }
.page-head h1 { font-family: var(--serif); font-size: 36px; color: var(--ink); margin-top: 10px; }
.page-head .sub { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

.catalog { display: grid; grid-template-columns: 250px 1fr; gap: 40px; padding: 34px 0 70px; }
.filters h4 { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); margin: 24px 0 12px; }
.filters h4:first-child { margin-top: 0; }
.filter-list a { display: flex; justify-content: space-between; padding: 6px 0; font-size: 12.5px; color: var(--text); }
.filter-list a:hover, .filter-list a.on { color: var(--pink); font-weight: 600; }
.filter-list a span { color: var(--muted); font-size: 11px; }
.check { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 12.5px; cursor: pointer; }
.check input { accent-color: var(--pink); width: 14px; height: 14px; }
.price-inputs { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.price-inputs input { width: 100%; height: 34px; border: 1px solid var(--line); padding: 0 10px; font-size: 12px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }
.swatches button.on { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--ink); }

.toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 16px; }
.toolbar .count { font-size: 12.5px; color: var(--muted); }
.toolbar select { height: 38px; border: 1px solid var(--line); padding: 0 12px; font-size: 12.5px; background: #fff; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 11.5px; display: inline-flex; gap: 6px; align-items: center; }
.chip button { color: var(--muted); font-size: 13px; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; }
.pagination button { min-width: 36px; height: 36px; border: 1px solid var(--line); font-size: 12.5px; }
.pagination button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination button:disabled { opacity: .4; }

/* ---------- PDP ---------- */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; padding: 34px 0 70px; }
.gallery { display: grid; grid-template-columns: 78px 1fr; gap: 14px; align-items: start; }
.thumbs { display: grid; gap: 10px; }
.thumbs button { border: 1px solid var(--line); padding: 0; background: var(--sand); aspect-ratio: 4/5; overflow: hidden; }
.thumbs button.on { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main { background: var(--sand); position: relative; aspect-ratio: 4/5; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .pc-badge { top: 14px; left: 14px; }

.pdp-info .brand { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.pdp-info h1 { font-size: 25px; line-height: 1.3; color: var(--ink); margin: 8px 0 12px; font-weight: 600; }
.pdp-rating { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.pdp-price { display: flex; align-items: baseline; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.pdp-price .now { font-size: 30px; color: var(--red); font-weight: 700; }
.pdp-price .was { font-size: 16px; color: #9b9b9b; text-decoration: line-through; }
.pdp-price .save { background: var(--pink-wash); color: var(--red); font-size: 11px; font-weight: 700; padding: 4px 8px; }
.pdp-price .tax { font-size: 11px; color: var(--muted); margin-left: auto; }
.opt { margin: 22px 0; }
.opt-label { display: flex; justify-content: space-between; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; }
.opt-label span { color: var(--muted); letter-spacing: 0; text-transform: none; font-size: 12px; }
.color-opts { display: flex; gap: 10px; flex-wrap: wrap; }
.color-opt { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 56px; }
.color-opt i { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); display: block; }
.color-opt.on i { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--ink); }
.color-opt span { font-size: 10px; color: var(--muted); text-align: center; line-height: 1.2; }
.color-opt.on span { color: var(--ink); font-weight: 600; }
.size-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.size-opt { min-width: 62px; height: 38px; border: 1px solid var(--line); font-size: 12.5px; padding: 0 12px; }
.size-opt.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.size-opt:disabled { opacity: .35; text-decoration: line-through; }
.buy-row { display: flex; gap: 12px; margin: 24px 0 14px; }
.buy-row .qty { height: 52px; border-radius: 999px; padding: 0 4px; }
.buy-row .qty button { width: 34px; }
.buy-row .btn { flex: 1; height: 52px; }
.stock-note { font-size: 12px; color: var(--green); display: flex; align-items: center; gap: 6px; margin-bottom: 18px; }
.stock-note.low { color: #c07a12; }
.assurance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border: 1px solid var(--line); padding: 14px; }
.assurance div { text-align: center; font-size: 10.5px; color: var(--muted); line-height: 1.4; }
.assurance strong { display: block; color: var(--ink); font-size: 11.5px; margin-bottom: 2px; }
.accordion { margin-top: 26px; border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.acc-body { display: none; padding-bottom: 18px; font-size: 13px; color: #5f5f5f; line-height: 1.7; }
.acc-item.on .acc-body { display: block; }
.acc-body table { width: 100%; border-collapse: collapse; }
.acc-body td { padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; }
.acc-body td:first-child { color: var(--muted); width: 42%; }
.review-summary { display: grid; grid-template-columns: 220px 1fr; gap: 30px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.review-score { text-align: center; }
.review-score strong { font-family: var(--serif); font-size: 54px; color: var(--ink); display: block; line-height: 1; }
.review-bars { display: grid; gap: 6px; }
.review-bar { display: grid; grid-template-columns: 40px 1fr 30px; gap: 10px; align-items: center; font-size: 11.5px; color: var(--muted); }
.review-bar .b { height: 6px; background: var(--line-soft); }
.review-bar .b i { display: block; height: 100%; background: #e8a33d; }

/* ---------- cart / checkout ---------- */
.cart-page { display: grid; grid-template-columns: 1fr 380px; gap: 50px; padding: 40px 0 80px; }
.cart-table-head { display: grid; grid-template-columns: 1fr 140px 120px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.cart-line { display: grid; grid-template-columns: 110px 1fr 140px 120px; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line-soft); align-items: center; }
.cart-line img { width: 110px; height: 138px; object-fit: cover; background: var(--sand); }
.cart-line h4 { font-size: 13.5px; font-weight: 500; line-height: 1.4; margin-bottom: 6px; }
.cart-line .meta { font-size: 11.5px; color: var(--muted); }
.summary { border: 1px solid var(--line); padding: 26px; align-self: start; position: sticky; top: 130px; }
.summary h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 18px; }
.promo-row { display: flex; gap: 8px; margin: 16px 0; }
.promo-row input { flex: 1; height: 40px; border: 1px solid var(--line); padding: 0 12px; font-size: 12.5px; }
.summary .note { font-size: 11.5px; color: var(--muted); margin-top: 14px; line-height: 1.6; }

.checkout { display: grid; grid-template-columns: 1fr 400px; gap: 60px; padding: 34px 0 80px; }
.steps { display: flex; gap: 10px; align-items: center; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.steps b { color: var(--ink); }
.steps i { flex: 1; height: 1px; background: var(--line); }
.form-block { margin-bottom: 30px; }
.form-block h3 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 11.5px; color: var(--muted); }
.field input, .field select { height: 44px; border: 1px solid var(--line); padding: 0 12px; font-size: 13px; background: #fff; outline: 0; }
.field input:focus, .field select:focus { border-color: var(--ink); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pay-option { border: 1px solid var(--line); padding: 16px; display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; cursor: pointer; }
.pay-option.on { border-color: var(--ink); background: #fcfbf9; }
.pay-option input { accent-color: var(--pink); margin-top: 3px; }
.pay-option strong { display: block; font-size: 13px; color: var(--ink); }
.pay-option span { font-size: 11.5px; color: var(--muted); }
.ship-option { display: flex; justify-content: space-between; border: 1px solid var(--line); padding: 14px 16px; margin-bottom: 10px; cursor: pointer; font-size: 13px; }
.ship-option.on { border-color: var(--ink); }
.checkout-summary { background: var(--sand); padding: 26px; align-self: start; position: sticky; top: 130px; }
.checkout-summary h3 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.mini-line { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; padding: 8px 0; align-items: center; font-size: 12px; }
.mini-line img { width: 54px; height: 68px; object-fit: cover; background: #fff; }
.mini-line span { color: var(--muted); }

/* ---------- order / track ---------- */
.order-wrap { padding: 40px 0 80px; max-width: 980px; margin: 0 auto; }
.order-hero { text-align: center; padding: 34px 0 30px; border-bottom: 1px solid var(--line); }
.order-hero .tick { width: 58px; height: 58px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; margin: 0 auto 18px; font-size: 26px; }
.order-hero h1 { font-family: var(--serif); font-size: 34px; margin-bottom: 8px; }
.order-hero p { color: var(--muted); font-size: 13px; }
.order-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.order-meta div span { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.order-meta div strong { font-size: 13px; color: var(--ink); }
.order-section { padding: 26px 0; border-bottom: 1px solid var(--line); }
.order-section h3 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.timeline li { position: relative; padding-bottom: 18px; font-size: 12.5px; }
.timeline li::before { content: ""; position: absolute; left: -22px; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 2px solid var(--line); }
.timeline li.on::before { border-color: var(--pink); background: var(--pink); }
.timeline li b { display: block; color: var(--ink); font-weight: 600; }
.timeline li span { color: var(--muted); font-size: 11.5px; }
.track-box { max-width: 560px; margin: 60px auto; border: 1px solid var(--line); padding: 34px; }
.track-box h1 { font-family: var(--serif); font-size: 28px; margin-bottom: 8px; }
.track-box p { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.track-result { margin-top: 24px; }

/* ---------- admin ---------- */
.admin-shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-side { background: var(--ink); color: #fff; padding: 26px 20px; }
.admin-side h2 { font-family: var(--serif); font-size: 22px; margin-bottom: 4px; }
.admin-side .sub { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 26px; }
.admin-side a { display: block; padding: 10px 12px; font-size: 12.5px; color: rgba(255,255,255,.65); border-radius: 4px; }
.admin-side a.on, .admin-side a:hover { background: rgba(255,255,255,.1); color: #fff; }
.admin-main { padding: 30px 34px 60px; background: #fbfaf8; }
.admin-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 16px; }
.admin-head h1 { font-size: 24px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.stat { background: #fff; border: 1px solid var(--line); padding: 18px; }
.stat span { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stat strong { display: block; font-size: 26px; color: var(--ink); margin-top: 6px; font-family: var(--serif); }
.panel { background: #fff; border: 1px solid var(--line); margin-bottom: 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.panel-head h3 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
table.data { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.data th { text-align: left; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fcfbf9; }
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.data tr:hover td { background: #fdfcfa; }
.status { display: inline-block; font-size: 10.5px; padding: 3px 8px; border-radius: 999px; letter-spacing: .06em; text-transform: uppercase; }
.status.pending_payment { background: #fff3d6; color: #8a6100; }
.status.paid { background: #e3f1ff; color: #0b5aa4; }
.status.processing { background: #eee6ff; color: #5a35b0; }
.status.shipped { background: #e6f7ee; color: #166b45; }
.status.delivered { background: #e6f7ee; color: #166b45; }
.status.cancelled, .status.refunded { background: #fdeaea; color: #a52222; }
.admin-token-box { display: flex; gap: 8px; }
.admin-token-box input { height: 38px; border: 1px solid var(--line); padding: 0 10px; font-size: 12px; width: 180px; }
.log-list li { font-size: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); display: flex; gap: 12px; }
.log-list b { color: var(--ink); font-weight: 600; min-width: 150px; }
.log-list span { color: var(--muted); }

/* ---------- sandbox pay ---------- */
.pay-shell { max-width: 480px; margin: 70px auto; border: 1px solid var(--line); padding: 34px; }
.pay-shell h1 { font-family: var(--serif); font-size: 28px; margin-bottom: 6px; }
.pay-shell .tag { display: inline-block; background: #fff3d6; color: #8a6100; font-size: 10.5px; letter-spacing: .1em; padding: 3px 8px; text-transform: uppercase; margin-bottom: 20px; }
.pay-line { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13px; border-bottom: 1px solid var(--line-soft); }
.pay-line.total { font-weight: 700; font-size: 16px; border-bottom: 0; padding-top: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .rail-track { grid-auto-columns: calc((100% - 54px) / 4); }
  .cat-circles { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr repeat(2, 1fr); row-gap: 30px; }
}
@media (max-width: 980px) {
  .container { padding: 0 18px; }
  .header-main { grid-template-columns: auto 1fr auto; gap: 14px; height: 64px; }
  .search { display: none; }
  .h-action span { display: none; }
  .menu-toggle { display: grid; place-items: center; width: 36px; height: 36px; }
  .nav-list { gap: 16px; overflow-x: auto; scrollbar-width: none; }
  .nav-list::-webkit-scrollbar { display: none; }
  .mega { display: none !important; }
  .hero-slide { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding: 42px 18px 10px; max-width: none; }
  .hero-visual { min-height: 330px; }
  .hero-visual .hero-img { max-height: 320px; }
  .hero-price-tag { right: 6%; bottom: 6%; }
  .hero-dots { left: 18px; }
  .usp .container { grid-template-columns: repeat(2, 1fr); }
  .usp-item:nth-child(3) { border-left: 0; }
  .promo-tiles { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .rail-track { grid-auto-columns: calc((100% - 36px) / 3); }
  .brand-wall { grid-template-columns: repeat(3, 1fr); }
  .editorial { grid-template-columns: 1fr; }
  .editorial-media { min-height: 320px; }
  .review-grid { grid-template-columns: 1fr; }
  .newsletter .container { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .catalog { grid-template-columns: 1fr; }
  .filters { display: none; }
  .filters.mobile-open { display: block; }
  .pdp { grid-template-columns: 1fr; gap: 28px; }
  .cart-page, .checkout { grid-template-columns: 1fr; gap: 30px; }
  .summary, .checkout-summary { position: static; }
  .cart-line { grid-template-columns: 84px 1fr; }
  .cart-line img { width: 84px; height: 105px; }
  .cart-line > .qty, .cart-line > .line-total { grid-column: 2; }
  .cart-table-head { display: none; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { display: flex; gap: 10px; overflow-x: auto; padding: 14px; }
  .admin-side h2, .admin-side .sub { display: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .order-meta { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 62px 1fr; }
}
@media (max-width: 640px) {
  .promo-bar { height: auto; min-height: 34px; padding: 7px 0; }
  .promo-rotator { height: auto; min-height: 0; overflow: visible; }
  .promo-rotator span { position: static; display: none; font-size: 10px; line-height: 1.35; }
  .promo-rotator span.on { display: flex; }
  .header-actions { gap: 16px; }
  .header-actions .h-action:nth-child(2) { display: none; }
  .logo-text { font-size: 21px; }
  .logo-mark { width: 32px; height: 32px; }
  .product-grid, .product-grid.four { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .rail-track { grid-auto-columns: calc((100% - 12px) / 2); }
  .section { padding: 40px 0; }
  .section-head h2 { font-size: 26px; }
  .promo-bar nav { display: none; }
  .hero-copy h1 { font-size: 34px; }
  .cat-circles { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .checkout-summary { padding: 18px; }
  .grid-2 { grid-template-columns: 1fr; }
}
