/* ============================================================
   FIYIBAN — storefront design system
   Light editorial theme · black primary · warm signal accent
   ============================================================ */

:root {
  --ink: #14171c;
  --ink-2: #3a4048;
  --muted: #6b7280;
  --muted-2: #9aa1ac;
  --line: #e7e9ee;
  --line-2: #f1f3f7;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-mute: #fbfbfc;
  --accent: #e4572e;
  --accent-deep: #c4411c;
  --accent-soft: #fdeee9;
  --success: #12805c;
  --warn: #b4720c;
  --danger: #c92a2a;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --pill: 999px;

  --sh-1: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
  --sh-2: 0 18px 50px rgba(16, 24, 40, .12);
  --sh-3: 0 2px 8px rgba(16, 24, 40, .05);

  --header-h: 68px;
  --maxw: 1280px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-wide { width: 100%; max-width: 1560px; margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------- typography */
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
}
.display { font-size: clamp(34px, 5vw, 62px); letter-spacing: -.035em; }
.h1 { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -.03em; }
.h2 { font-size: clamp(24px, 2.8vw, 36px); letter-spacing: -.025em; }
.h3 { font-size: clamp(18px, 2vw, 22px); }
.lede { font-size: 16px; color: var(--ink-2); line-height: 1.7; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }

.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head p { max-width: 560px; color: var(--muted); margin-top: 10px; }
.bg-soft { background: var(--bg-soft); }
.bg-ink { background: var(--ink); color: #fff; }
.bg-ink .muted { color: rgba(255, 255, 255, .6); }

/* -------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 24px; border-radius: var(--pill);
  font-size: 14px; font-weight: 600; letter-spacing: -.01em;
  transition: transform .18s var(--ease), background .18s, color .18s, box-shadow .18s, border-color .18s;
  white-space: nowrap; border: 1px solid transparent;
}
.btn:active { transform: scale(.975); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; box-shadow: var(--sh-2); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-deep); }
.btn-outline { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { background: rgba(20, 23, 28, .05); color: var(--ink); }
.btn-ghost:hover { background: rgba(20, 23, 28, .1); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: rgba(255, 255, 255, .88); }
.btn-glass { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .34); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 255, 255, .26); }
.btn-lg { height: 54px; padding: 0 32px; font-size: 15px; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: 50%; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.link-arrow svg { transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------- badges */
.badge {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
  border-radius: var(--pill); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.badge-accent { background: var(--accent); color: #fff; }
.badge-ink { background: var(--ink); color: #fff; }
.badge-soft { background: var(--bg-soft); color: var(--ink-2); }
.badge-success { background: #e6f4ef; color: var(--success); }
.badge-warn { background: #fdf3e2; color: var(--warn); }
.badge-danger { background: #fdecec; color: var(--danger); }

/* --------------------------------------------------------------- forms */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field .req { color: var(--accent); }
.input, .select, .textarea {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: #fff; transition: border-color .16s, box-shadow .16s;
}
.textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 120px; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20, 23, 28, .07); }
.input.err, .select.err { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(201, 42, 42, .08); }
.field .hint { font-size: 12px; color: var(--muted); }
.field .error { font-size: 12px; color: var(--danger); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.checkbox input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--ink); }

/* --------------------------------------------------------------- header */
.announce {
  background: var(--ink); color: rgba(255, 255, 255, .92);
  font-size: 12.5px; letter-spacing: .01em; text-align: center; padding: 9px 16px;
}
.announce strong { color: #fff; }
header.site { position: sticky; top: 0; z-index: 60; background: rgba(13, 15, 19, .96); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
/* dark navigation bar */
header.site .brand { color: #fff; }
header.site .nav-link { color: rgba(255, 255, 255, .82); }
header.site .nav-link:hover, header.site .nav-item.open .nav-link { background: rgba(255, 255, 255, .1); color: #fff; }
header.site .icon-btn { color: #fff; }
header.site .icon-btn:hover { background: rgba(255, 255, 255, .1); }
header.site .nav-cta { background: #fff; color: var(--ink); }
header.site.scrolled { box-shadow: var(--sh-3); }
.nav { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: .14em; }
.brand img { height: 26px; width: auto; display: block; }
.nav-main { display: flex; gap: 4px; flex: 1; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px;
  border-radius: var(--pill); font-size: 14px; font-weight: 550; color: var(--ink-2); transition: background .16s, color .16s;
}
.nav-link:hover, .nav-item.open .nav-link { background: var(--bg-soft); color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--ink); transition: background .16s; }
.icon-btn:hover { background: var(--bg-soft); }
.cart-count {
  position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: var(--pill); background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}
.cart-count[hidden] { display: none; }
.burger { display: none; }

/* mega menu */
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px);
  width: min(760px, 88vw); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-2); padding: 22px; opacity: 0; visibility: hidden; transition: .2s var(--ease);
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px;
}
.nav-item.open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 20px; }
.mega-col h5 { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 10px; font-weight: 700; }
.mega-col a { display: block; padding: 7px 0; font-size: 14px; color: var(--ink-2); }
.mega-col a:hover { color: var(--accent); }
.mega-promo { border-radius: var(--r); overflow: hidden; position: relative; background: var(--bg-soft); }
.mega-promo img { width: 100%; height: 100%; object-fit: cover; }
.mega-promo .cap { position: absolute; inset: auto 0 0 0; padding: 16px; background: linear-gradient(transparent, rgba(255, 255, 255, .96)); }
.mega-promo .cap strong { display: block; font-size: 15px; }
.mega-promo .cap span { font-size: 12.5px; color: var(--muted); }

/* search panel */
.search-panel {
  position: fixed; inset: 0; z-index: 90; background: rgba(20, 23, 28, .35); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: .2s;
}
.search-panel.open { opacity: 1; visibility: visible; }
.search-box { background: #fff; padding: 28px 0 20px; transform: translateY(-14px); transition: transform .24s var(--ease); }
.search-panel.open .search-box { transform: none; }
.search-input-wrap { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; }
.search-input-wrap input { flex: 1; border: 0; font-size: 22px; font-weight: 600; letter-spacing: -.02em; outline: none; }
.search-hints { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; align-items: center; }
.chip { height: 32px; padding: 0 14px; border-radius: var(--pill); background: var(--bg-soft); font-size: 13px; display: inline-flex; align-items: center; transition: background .16s; }
.chip:hover { background: var(--line); }
.chip.active { background: var(--ink); color: #fff; }

/* --------------------------------------------------------------- drawer */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(20, 23, 28, .4); opacity: 0; visibility: hidden; transition: .24s; }
.scrim.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(430px, 92vw);
  background: #fff; display: flex; flex-direction: column;
  transform: translateX(102%); transition: transform .32s var(--ease); box-shadow: var(--sh-2);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 17px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 22px; background: var(--bg-mute); }
.drawer-nav a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line-2); font-size: 15.5px; font-weight: 600; }
.drawer-nav .sub a { font-size: 14px; font-weight: 400; color: var(--muted); padding: 9px 0 9px 14px; }

/* --------------------------------------------------------- cart lines */
.line { display: grid; grid-template-columns: 78px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.line-img { width: 78px; height: 78px; border-radius: var(--r-sm); background: var(--bg-soft); object-fit: cover; }
.line-name { font-weight: 600; font-size: 14px; line-height: 1.4; }
.line-meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.line-price { font-weight: 700; font-size: 14px; text-align: right; white-space: nowrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--pill); overflow: hidden; height: 34px; }
.qty button { width: 32px; height: 100%; display: grid; place-items: center; color: var(--ink-2); }
.qty button:hover { background: var(--bg-soft); }
.qty span { min-width: 30px; text-align: center; font-size: 13.5px; font-weight: 600; }
.link-danger { font-size: 12.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.link-danger:hover { color: var(--danger); }

.totals { display: flex; flex-direction: column; gap: 11px; font-size: 14px; }
.totals .row { display: flex; justify-content: space-between; }
.totals .row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.totals .row .ok { color: var(--success); font-weight: 600; }

.empty { text-align: center; padding: 70px 20px; }
.empty .ico { width: 74px; height: 74px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; margin: 0 auto 18px; color: var(--muted-2); }

/* ------------------------------------------------------------ product card */
.grid-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-products.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-products.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--r);
  background: #fff; transition: transform .22s var(--ease);
}
.card:hover { transform: translateY(-4px); }
.card-media { position: relative; border-radius: var(--r); overflow: hidden; background: var(--bg-soft); aspect-ratio: 1/1; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.card-wish { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; opacity: 0; transition: .2s; }
.card:hover .card-wish { opacity: 1; }
.card-quick {
  position: absolute; inset: auto 12px 12px 12px; height: 42px; border-radius: var(--pill);
  background: rgba(20, 23, 28, .9); color: #fff; display: grid; place-items: center; font-size: 13.5px; font-weight: 600;
  opacity: 0; transform: translateY(8px); transition: .22s var(--ease); backdrop-filter: blur(6px);
}
.card:hover .card-quick { opacity: 1; transform: none; }
.card-body { padding: 14px 2px 4px; display: flex; flex-direction: column; gap: 6px; }
.card-cat { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }
.card-name { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.card-name a:hover { color: var(--accent); }
.card-tagline { font-size: 12.5px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.price { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.price-now { color: var(--accent); }
.price-was { font-size: 13px; color: var(--muted-2); text-decoration: line-through; }
.stars { display: inline-flex; gap: 2px; align-items: center; color: #f5a524; }
.stars span { font-size: 12px; color: var(--muted); margin-left: 4px; }

/* --------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; background: var(--bg-soft); }
.hero-track { display: flex; transition: transform .6s var(--ease); }
.hero-slide { flex: 0 0 100%; position: relative; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; min-height: 560px; padding: 56px 0; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-copy { position: relative; z-index: 2; max-width: 560px; }
.hero-copy h1 { font-size: clamp(30px, 4.4vw, 54px); letter-spacing: -.035em; margin: 14px 0 16px; }
.hero-copy p { font-size: 16.5px; color: var(--ink-2); max-width: 480px; }
.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-tags { display: flex; gap: 8px; margin-top: 26px; flex-wrap: wrap; }
.hero-tag { font-size: 12px; font-weight: 600; padding: 7px 13px; border-radius: var(--pill); background: rgba(255, 255, 255, .75); border: 1px solid rgba(20, 23, 28, .08); backdrop-filter: blur(8px); }
.hero-nav { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.hero-dot { width: 30px; height: 4px; border-radius: 2px; background: rgba(20, 23, 28, .18); transition: background .2s, width .2s; }
.hero-dot.active { background: var(--ink); width: 46px; }
.hero-arrows { position: absolute; right: 24px; bottom: 22px; display: flex; gap: 8px; z-index: 3; }
.hero-arrow { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .85); border: 1px solid rgba(20, 23, 28, .08); display: grid; place-items: center; backdrop-filter: blur(8px); transition: .18s; }
.hero-arrow:hover { background: #fff; }

/* --------------------------------------------------------- category tiles */
.cat-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.cat-tile { position: relative; border-radius: var(--r); overflow: hidden; background: var(--bg-soft); aspect-ratio: 4/5; display: flex; flex-direction: column; justify-content: flex-end; }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.cat-tile:hover img { transform: scale(1.06); }
.cat-tile .cap { position: relative; padding: 18px; background: linear-gradient(transparent, rgba(255, 255, 255, .95) 55%); }
.cat-tile .cap strong { display: block; font-size: 15.5px; }
.cat-tile .cap span { font-size: 12.5px; color: var(--muted); }

/* ----------------------------------------------------------- split block */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.rev > .split-media { order: 2; }
.split-media { border-radius: var(--r-lg); overflow: hidden; background: var(--bg-soft); aspect-ratio: 4/3; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.stat strong { display: block; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.03em; }
.stat span { font-size: 13px; color: var(--muted); }
.bg-ink .stat span { color: rgba(255, 255, 255, .6); }

/* --------------------------------------------------------------- perks */
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.perk { padding: 26px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: border-color .2s, box-shadow .2s; }
.perk:hover { border-color: transparent; box-shadow: var(--sh-1); }
.perk .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.perk h4 { font-size: 15.5px; margin-bottom: 6px; }
.perk p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* --------------------------------------------------------------- quotes */
.quote-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { padding: 26px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.quote p { font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.who strong { display: block; font-size: 13.5px; }
.who span { font-size: 12px; color: var(--muted); }

/* ------------------------------------------------------------- newsletter */
.news { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.news-form { display: flex; gap: 10px; }
.news-form .input { height: 52px; border-radius: var(--pill); padding: 0 20px; }
.news-form .btn { height: 52px; }

/* ------------------------------------------------------------- footer */
footer.site { background: var(--ink); color: rgba(255, 255, 255, .74); padding: 64px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 36px; }
footer.site h5 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 0 0 16px; font-weight: 700; }
footer.site a { display: block; padding: 6px 0; font-size: 13.5px; transition: color .16s; }
footer.site a:hover { color: #fff; }
.foot-brand .brand { color: #fff; margin-bottom: 14px; }
.foot-brand p { font-size: 13.5px; max-width: 320px; line-height: 1.7; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: grid; place-items: center; padding: 0; }
.socials a:hover { background: rgba(255, 255, 255, .2); }
.foot-bottom { margin-top: 52px; border-top: 1px solid rgba(255, 255, 255, .12); padding: 22px 0; display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; font-size: 12.5px; }
.pay-row { display: flex; gap: 8px; align-items: center; }
.pay { height: 26px; padding: 0 10px; border-radius: 6px; background: rgba(255, 255, 255, .12); display: grid; place-items: center; font-size: 11px; font-weight: 600; color: #fff; letter-spacing: .02em; }

/* --------------------------------------------------------------- toast */
.toasts { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff;
  padding: 13px 20px; border-radius: var(--pill); font-size: 14px; font-weight: 500;
  box-shadow: var(--sh-2); animation: toastIn .28s var(--ease); max-width: 90vw;
}
.toast.err { background: var(--danger); }
.toast.ok { background: var(--success); }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } }

/* --------------------------------------------------------------- breadcrumb */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); padding: 22px 0; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { opacity: .5; }

/* --------------------------------------------------------------- shop page */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 44px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); }
.filter-group { border-bottom: 1px solid var(--line-2); padding: 20px 0; }
.filter-group:first-child { padding-top: 0; }
.filter-group h4 { font-size: 13px; margin-bottom: 14px; letter-spacing: .02em; }
.filter-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.filter-opt:hover { color: var(--ink); }
.filter-opt input { accent-color: var(--ink); width: 16px; height: 16px; }
.filter-opt .n { font-size: 12px; color: var(--muted-2); }
.range-row { display: flex; gap: 10px; align-items: center; }
.range-row .input { height: 40px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.toolbar .input { height: 42px; width: 240px; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 44px; }
.pager button { min-width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; }
.pager button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager button[disabled] { opacity: .4; }

/* ------------------------------------------------------------ product page */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
.gallery { display: grid; grid-template-columns: 84px 1fr; gap: 16px; position: sticky; top: calc(var(--header-h) + 20px); }
.thumbs { display: flex; flex-direction: column; gap: 12px; }
.thumb { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); transition: border-color .18s; }
.thumb.active { border-color: var(--ink); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.stage { border-radius: var(--r-lg); overflow: hidden; background: var(--bg-soft); aspect-ratio: 1/1; position: relative; }
.stage img { width: 100%; height: 100%; object-fit: cover; }
.pdp h1 { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.03em; margin: 10px 0 12px; }
.pdp .price-row { display: flex; align-items: baseline; gap: 12px; margin: 20px 0 6px; }
.pdp .price-row .price { font-size: 30px; }
.opt-group { margin-top: 26px; }
.opt-group > label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 10px; border: 1px solid var(--line); border-radius: var(--pill); font-size: 13.5px; transition: border-color .16s, background .16s; }
.swatch .dot { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); }
.swatch.active { border-color: var(--ink); background: var(--bg-soft); font-weight: 600; }
.buy-row { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.buy-row .qty { height: 54px; border-radius: var(--pill); }
.buy-row .qty button { width: 44px; }
.buy-row .qty span { min-width: 38px; font-size: 15px; }
.buy-row .btn { flex: 1; min-width: 180px; }
.trust-row { display: flex; gap: 22px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.trust { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-2); }
.trust .ico { width: 34px; height: 34px; border-radius: 10px; background: var(--bg-soft); display: grid; place-items: center; color: var(--ink); }
.hl-list { display: flex; flex-direction: column; gap: 11px; margin-top: 24px; }
.hl { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.hl svg { flex: none; margin-top: 3px; color: var(--accent); }

.accordion { border-top: 1px solid var(--line); margin-top: 52px; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 22px 0; text-align: left; font-size: 16px; font-weight: 650; }
.acc-head svg { transition: transform .24s var(--ease); flex: none; }
.acc-item.open .acc-head svg { transform: rotate(45deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.acc-item.open .acc-body { max-height: 1200px; }
.acc-inner { padding: 0 0 26px; color: var(--ink-2); font-size: 14.5px; line-height: 1.75; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table td { padding: 11px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.spec-table td:first-child { color: var(--muted); width: 42%; }
.spec-table td:last-child { font-weight: 550; }
.review { padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.review-head strong { font-size: 14px; }
.review-head .date { font-size: 12px; color: var(--muted-2); margin-left: auto; }
.review h5 { font-size: 14.5px; margin-bottom: 5px; }

/* ------------------------------------------------------------ checkout */
.checkout-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: start; }
.summary { position: sticky; top: calc(var(--header-h) + 20px); background: var(--bg-mute); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.steps { display: flex; align-items: center; gap: 12px; margin: 6px 0 34px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.step .num { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 12.5px; font-weight: 700; }
.step.active { color: var(--ink); font-weight: 600; }
.step.active .num { background: var(--ink); color: #fff; border-color: var(--ink); }
.step.done .num { background: var(--success); color: #fff; border-color: var(--success); }
.step-line { flex: 1; height: 1px; background: var(--line); min-width: 20px; }
.form-block { border: 1px solid var(--line); border-radius: var(--r); padding: 26px; margin-bottom: 22px; }
.form-block h3 { font-size: 17px; margin-bottom: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-2 .span-2 { grid-column: 1 / -1; }
.radio-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; transition: border-color .16s, background .16s; }
.radio-card + .radio-card { margin-top: 10px; }
.radio-card.active { border-color: var(--ink); background: var(--bg-soft); }
.radio-card input { accent-color: var(--ink); width: 17px; height: 17px; margin-top: 2px; }
.radio-card strong { display: block; font-size: 14.5px; }
.radio-card span { font-size: 12.5px; color: var(--muted); }

/* ------------------------------------------------------------ order page */
.status-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; margin-bottom: 26px; }
.timeline { display: flex; flex-direction: column; gap: 0; margin-top: 8px; }
.tl-item { display: grid; grid-template-columns: 30px 1fr; gap: 14px; padding-bottom: 22px; position: relative; }
.tl-item:not(:last-child)::before { content: ''; position: absolute; left: 14px; top: 26px; bottom: 0; width: 2px; background: var(--line); }
.tl-dot { width: 30px; height: 30px; border-radius: 50%; background: var(--bg-soft); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); z-index: 1; }
.tl-item.done .tl-dot { background: var(--success); border-color: var(--success); color: #fff; }
.tl-item.current .tl-dot { background: var(--ink); border-color: var(--ink); color: #fff; }
.tl-body strong { display: block; font-size: 14.5px; }
.tl-body span { font-size: 12.5px; color: var(--muted); }
.summary-item { display: flex; gap: 14px; align-items: center; padding: 12px 0; }
.summary-item img { width: 60px; height: 60px; border-radius: 10px; background: var(--bg-soft); }

/* --------------------------------------------------------------- misc */
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-card { padding: 26px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.info-card h4 { font-size: 15.5px; margin-bottom: 10px; }
.info-card p, .info-card li { font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.info-card ul { margin-top: 8px; }
.info-card li { padding-left: 16px; position: relative; }
.info-card li::before { content: ''; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.page-hero { background: var(--bg-soft); padding: 64px 0 56px; }
.page-hero .eyebrow { margin-bottom: 12px; }
.skeleton { background: linear-gradient(90deg, var(--line-2) 25%, #eceef2 37%, var(--line-2) 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; border-radius: var(--r-sm); }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
[hidden] { display: none !important; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .grid-products { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1.4fr repeat(2, 1fr); gap: 30px; }
  .cat-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .nav-main { display: none; }
  .burger { display: grid; }
  .hero-inner { grid-template-columns: 1fr; min-height: 500px; }
  .hero-copy { max-width: none; }
  .section { padding: 60px 0; }
  .split, .news, .pdp, .checkout-layout, .shop-layout { grid-template-columns: 1fr; gap: 32px; }
  .split.rev > .split-media { order: 0; }
  .perks, .quote-row, .info-grid { grid-template-columns: 1fr 1fr; }
  .filters { position: static; }
  .gallery { position: static; grid-template-columns: 1fr; }
  .thumbs { flex-direction: row; overflow-x: auto; }
  .summary { position: static; }
  .grid-products { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 640px) {
  .container, .container-wide { padding: 0 18px; }
  .grid-products, .grid-products.cols-3, .perks, .quote-row, .info-grid, .grid-2 { grid-template-columns: 1fr; }
  .cat-strip { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .hero-inner { min-height: 440px; padding: 40px 0; }
  .news-form { flex-direction: column; }
  .buy-row .btn { min-width: 0; flex: 1 0 100%; }
}
