/* =========================================================
   ALPHA NEXT MART LLC — Global Stylesheet
   ========================================================= */

:root {
  --accent: #5b3df5;
  --accent-dark: #4526e0;
  --accent-soft: #efeafe;
  --deal: #f0642b;
  --deal-soft: #fff0e9;
  --ink: #101116;
  --ink-2: #3a3d4a;
  --muted: #6b7185;
  --line: #e7e8ee;
  --line-soft: #f1f2f6;
  --bg: #ffffff;
  --bg-alt: #f7f8fb;
  --bg-dark: #101116;
  --star: #ffb020;
  --ok: #12915f;
  --danger: #d92b2b;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-xs: 0 1px 2px rgba(16, 17, 22, .06);
  --shadow-sm: 0 2px 10px rgba(16, 17, 22, .06);
  --shadow: 0 8px 30px rgba(16, 17, 22, .08);
  --shadow-lg: 0 24px 60px rgba(16, 17, 22, .14);

  --max: 1280px;
  --header-h: 132px;

  --sans: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

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

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

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

h1, h2, h3, h4, h5 {
  margin: 0 0 .5em;
  line-height: 1.18;
  letter-spacing: -.02em;
  font-weight: 800;
}
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.center { text-align: center; }
.muted { color: var(--muted); }
.hide { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: .9rem; letter-spacing: .01em;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(91, 61, 245, .28); }
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 12px 28px rgba(91, 61, 245, .36); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #26283a; }
.btn-deal { background: var(--deal); color: #fff; box-shadow: 0 8px 22px rgba(240, 100, 43, .28); }
.btn-deal:hover { background: #dd541e; }
.btn-outline { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { background: var(--bg-alt); color: var(--ink); }
.btn-ghost:hover { background: #ecedf3; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: .82rem; }
.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 6px; }
.field .req { color: var(--danger); }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.textarea { min-height: 130px; resize: vertical; }
.field-error { color: var(--danger); font-size: .78rem; margin-top: 5px; display: none; }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea { border-color: var(--danger); }
.field.invalid .field-error { display: block; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.checkline { display: flex; align-items: flex-start; gap: 9px; font-size: .86rem; margin-bottom: 14px; }
.checkline input { margin-top: 3px; accent-color: var(--accent); flex: none; }

/* =========================================================
   HEADER
   ========================================================= */
.announce {
  background: var(--ink); color: #fff; font-size: .8rem; text-align: center;
  padding: 9px 20px; letter-spacing: .02em;
}
.announce strong { color: #ffd25e; }

.site-header { position: sticky; top: 0; z-index: 200; background: #fff; box-shadow: var(--shadow-xs); }
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-main { display: flex; align-items: center; gap: 22px; padding: 14px 0; }

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, var(--accent), #8b6bff);
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.15rem;
  box-shadow: 0 6px 16px rgba(91, 61, 245, .3);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; font-size: 1.02rem; letter-spacing: -.02em; }
.brand-sub { font-size: .62rem; letter-spacing: .18em; color: var(--muted); font-weight: 600; }

.search-form { flex: 1; position: relative; max-width: 620px; }
.search-form input {
  width: 100%; padding: 12px 48px 12px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-alt); font-size: .9rem;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.search-form input:focus { outline: none; background: #fff; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-form button {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--accent); color: #fff;
  display: grid; place-items: center; transition: background .15s;
}
.search-form button:hover { background: var(--accent-dark); }

.suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; z-index: 60; max-height: 380px; overflow-y: auto;
}
.suggest a { display: flex; gap: 12px; align-items: center; padding: 10px 14px; transition: background .12s; }
.suggest a:hover { background: var(--bg-alt); }
.suggest img { width: 42px; height: 42px; object-fit: cover; border-radius: 8px; flex: none; background: var(--bg-alt); }
.suggest .s-name { font-size: .85rem; font-weight: 600; }
.suggest .s-cat { font-size: .72rem; color: var(--muted); }
.suggest .s-price { margin-left: auto; font-weight: 700; font-size: .85rem; }
.suggest .s-empty { padding: 16px; color: var(--muted); font-size: .86rem; text-align: center; }

.header-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.iconbtn {
  position: relative; width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent;
  display: grid; place-items: center; color: var(--ink); transition: background .15s, color .15s;
}
.iconbtn:hover { background: var(--bg-alt); color: var(--accent); }
.iconbtn .label { display: none; }
.badge-count {
  position: absolute; top: 5px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--deal); color: #fff; font-size: .68rem; font-weight: 800;
  display: grid; place-items: center; border: 2px solid #fff;
}
.badge-count[data-count="0"] { display: none; }

.nav-bar { border-top: 1px solid var(--line-soft); }
.nav-list { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; flex-wrap: wrap; }
.nav-list > li > a {
  display: block; padding: 13px 14px; font-size: .84rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2);
  border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.nav-list > li > a:hover { color: var(--accent); }
.nav-list > li > a.active { color: var(--accent); border-bottom-color: var(--accent); }
.nav-list > li > a.hot { color: var(--deal); }
.nav-item { position: relative; }
.nav-item > a::after { content: ''; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 230px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s; z-index: 50;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 9px 12px; border-radius: 9px; font-size: .86rem; font-weight: 600; transition: background .12s, color .12s; }
.dropdown a:hover { background: var(--accent-soft); color: var(--accent); }

.burger { display: none; }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0 auto 0 0; width: min(340px, 86vw); background: #fff; z-index: 400;
  transform: translateX(-100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--line); }
.drawer-body { overflow-y: auto; padding: 10px 0 30px; flex: 1; }
.drawer-body a { display: block; padding: 12px 20px; font-weight: 600; font-size: .92rem; border-bottom: 1px solid var(--line-soft); }
.drawer-body a:hover { background: var(--bg-alt); color: var(--accent); }
.drawer-body .grp { padding: 16px 20px 6px; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.overlay {
  position: fixed; inset: 0; background: rgba(16, 17, 22, .5); z-index: 350;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  backdrop-filter: blur(2px);
}
.overlay.show { opacity: 1; visibility: visible; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; background: linear-gradient(120deg, #17162b 0%, #2a1f5c 55%, #4426a8 100%);
  color: #fff; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; width: 620px; height: 620px; right: -180px; top: -220px;
  background: radial-gradient(circle, rgba(240,100,43,.34), transparent 68%); pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 40px; align-items: center; padding: 68px 0 76px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
  font-size: .74rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); margin-bottom: 14px; letter-spacing: -.035em; }
.hero h1 span { background: linear-gradient(100deg, #ffd25e, #ff8a4c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(.95rem, 1.5vw, 1.15rem); color: rgba(255,255,255,.86); margin-bottom: 28px; font-weight: 500; letter-spacing: .04em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats .n { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.hero-stats .l { font-size: .76rem; color: rgba(255,255,255,.7); letter-spacing: .04em; }

.hero-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-collage figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: rgba(255,255,255,.08); }
.hero-collage img { width: 100%; height: 100%; object-fit: cover; }
.hero-collage .tall { grid-row: span 2; aspect-ratio: 3/4.5; }
.hero-collage .sq { aspect-ratio: 1; }

.trust-bar { border-bottom: 1px solid var(--line); background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 26px 0; }
.trust-item { display: flex; align-items: center; gap: 13px; }
.trust-item svg { color: var(--accent); flex: none; }
.trust-item .t { font-weight: 700; font-size: .88rem; }
.trust-item .d { font-size: .76rem; color: var(--muted); }

/* =========================================================
   SECTION HEADS
   ========================================================= */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.sec-head .eyebrow {
  font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 7px;
}
.sec-head h2 { margin: 0; }
.sec-head p { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.link-more { font-weight: 700; font-size: .86rem; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.link-more:hover { gap: 10px; }
.link-more svg { transition: transform .2s; }

/* =========================================================
   CATEGORY TILES
   ========================================================= */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat-card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 12px; text-align: center; transition: transform .22s, box-shadow .22s, border-color .22s;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.cat-card .ic {
  width: 68px; height: 68px; margin: 0 auto 12px; border-radius: 50%; overflow: hidden;
  background: var(--bg-alt); display: grid; place-items: center;
}
.cat-card .ic img { width: 100%; height: 100%; object-fit: cover; }
.cat-card .nm { font-weight: 700; font-size: .87rem; margin-bottom: 2px; }
.cat-card .ct { font-size: .74rem; color: var(--muted); }

/* =========================================================
   PRODUCT CARD
   ========================================================= */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.pcard {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }

.pcard-media { position: relative; aspect-ratio: 1 / 1; background: var(--bg-alt); overflow: hidden; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.3,0,.2,1); }
.pcard:hover .pcard-media img { transform: scale(1.07); }

.pcard-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; align-items: flex-start; }
.pbadge {
  padding: 4px 10px; border-radius: 999px; font-size: .67rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; color: #fff; backdrop-filter: blur(4px);
}
.pbadge.sale { background: var(--deal); }
.pbadge.new { background: var(--accent); }
.pbadge.best { background: var(--ink); }
.pbadge.out { background: var(--muted); }

.pcard-tools {
  position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 8px; z-index: 3;
  opacity: 0; transform: translateX(12px); transition: opacity .25s, transform .25s;
}
.pcard:hover .pcard-tools, .pcard:focus-within .pcard-tools { opacity: 1; transform: translateX(0); }
.ptool {
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95);
  box-shadow: var(--shadow-sm); display: grid; place-items: center; color: var(--ink);
  transition: background .15s, color .15s, transform .15s;
}
.ptool:hover { background: var(--accent); color: #fff; transform: scale(1.08); }
.ptool.active { background: var(--deal); color: #fff; }

.pcard-cart {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3;
  opacity: 0; transform: translateY(14px); transition: opacity .25s, transform .25s;
}
.pcard:hover .pcard-cart, .pcard:focus-within .pcard-cart { opacity: 1; transform: translateY(0); }

.pcard-body { padding: 15px 15px 17px; display: flex; flex-direction: column; flex: 1; }
.pcard-cat { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.pcard-name { font-size: .92rem; font-weight: 700; line-height: 1.36; margin-bottom: 5px; }
.pcard-name a:hover { color: var(--accent); }
.pcard-desc {
  font-size: .78rem; color: var(--muted); line-height: 1.5; margin-bottom: 9px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard-rate { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.pcard-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.price-now { font-size: 1.1rem; font-weight: 800; letter-spacing: -.02em; }
.price-old { font-size: .84rem; color: var(--muted); text-decoration: line-through; }
.price-off { font-size: .72rem; font-weight: 800; color: var(--deal); background: var(--deal-soft); padding: 2px 7px; border-radius: 6px; }

.stars { display: inline-flex; gap: 1px; color: var(--star); }
.stars svg { width: 13px; height: 13px; }
.rate-num { font-size: .75rem; color: var(--muted); font-weight: 600; }

/* list view */
.product-grid.list-view { grid-template-columns: 1fr; }
.product-grid.list-view .pcard { flex-direction: row; }
.product-grid.list-view .pcard-media { width: 240px; flex: none; aspect-ratio: 1; }
.product-grid.list-view .pcard-body { padding: 20px 24px; }
.product-grid.list-view .pcard-desc { -webkit-line-clamp: 3; font-size: .84rem; }
.product-grid.list-view .pcard-cart { position: static; opacity: 1; transform: none; margin-top: 14px; max-width: 220px; }

/* =========================================================
   PROMO / BANNERS
   ========================================================= */
.promo-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; }
.promo {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 250px;
  display: flex; align-items: flex-end; padding: 26px; color: #fff; isolation: isolate;
}
.promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.promo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,10,20,.85) 5%, rgba(10,10,20,.15) 75%); z-index: -1; }
.promo:hover img { transform: scale(1.06); }
.promo .tag { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #ffd25e; }
.promo h3 { font-size: 1.4rem; margin: 6px 0 4px; color: #fff; }
.promo p { font-size: .84rem; color: rgba(255,255,255,.82); margin-bottom: 14px; }
.promo .go { font-weight: 700; font-size: .84rem; display: inline-flex; align-items: center; gap: 7px; border-bottom: 2px solid #ffd25e; padding-bottom: 2px; }

.deal-banner {
  background: linear-gradient(115deg, #1b1030, #3d1a6e 60%, #7a2ea8);
  border-radius: var(--radius-lg); padding: 44px; color: #fff; display: grid;
  grid-template-columns: 1fr auto; gap: 30px; align-items: center; position: relative; overflow: hidden;
}
.deal-banner::after {
  content: ''; position: absolute; width: 420px; height: 420px; right: -90px; bottom: -190px;
  background: radial-gradient(circle, rgba(255,210,94,.3), transparent 70%);
}
.deal-banner h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); margin-bottom: 8px; }
.deal-banner p { color: rgba(255,255,255,.82); margin-bottom: 0; }
.countdown { display: flex; gap: 10px; position: relative; z-index: 2; }
.cd-box {
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px; padding: 12px 16px; text-align: center; min-width: 72px;
}
.cd-box .v { font-size: 1.6rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.cd-box .u { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.72); margin-top: 4px; }

/* =========================================================
   NEWSLETTER
   ========================================================= */
.newsletter { background: var(--bg-alt); border-top: 1px solid var(--line); }
.news-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 52px 0; }
.news-form { display: flex; gap: 10px; }
.news-form input { flex: 1; padding: 14px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.news-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.news-note { font-size: .78rem; color: var(--muted); margin: 10px 0 0; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--bg-dark); color: #b9bdcc; padding: 56px 0 0; font-size: .87rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr; gap: 34px; padding-bottom: 42px; }
.site-footer h4 {
  color: #fff; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 16px; font-weight: 800;
}
.site-footer a { color: #b9bdcc; transition: color .15s, padding-left .15s; }
.site-footer a:hover { color: #fff; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.foot-links a:hover { padding-left: 4px; }
.foot-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.foot-brand .brand-name { color: #fff; font-size: 1.05rem; }
.foot-brand .brand-sub { color: #7f8497; }
.addr { font-style: normal; line-height: 1.85; margin-bottom: 16px; }
.addr .co { color: #fff; font-weight: 700; }
.foot-contact { display: flex; flex-direction: column; gap: 7px; font-size: .85rem; }
.foot-contact a { display: inline-flex; align-items: center; gap: 9px; }
.socials { display: flex; gap: 9px; margin-top: 18px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: grid; place-items: center; color: #fff; transition: background .18s, transform .18s;
}
.socials a:hover { background: var(--accent); transform: translateY(-3px); }
.foot-news input {
  width: 100%; padding: 12px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06); color: #fff; margin-bottom: 10px;
}
.foot-news input::placeholder { color: #7f8497; }
.foot-news input:focus { outline: none; border-color: var(--accent); }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.09); padding: 20px 0; display: flex;
  justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .8rem;
}
.pay-icons { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pay-chip {
  background: rgba(255,255,255,.09); border-radius: 6px; padding: 5px 10px;
  font-size: .68rem; font-weight: 700; color: #dfe2ec; letter-spacing: .04em;
}

/* =========================================================
   BREADCRUMB / PAGE HEAD
   ========================================================= */
.page-head { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 30px 0; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .8rem; color: var(--muted); flex-wrap: wrap; margin-bottom: 8px; }
.crumbs a:hover { color: var(--accent); }
.crumbs span.sep { opacity: .5; }
.page-head h1 { margin: 0; font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.page-head p { margin: 8px 0 0; color: var(--muted); max-width: 760px; }

/* =========================================================
   SHOP LAYOUT
   ========================================================= */
.shop-layout { display: grid; grid-template-columns: 268px 1fr; gap: 32px; align-items: start; }
.filters {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; position: sticky; top: calc(var(--header-h) + 16px);
  max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto;
}
.filter-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.filter-head h3 { margin: 0; font-size: 1rem; }
.filter-clear { background: none; border: 0; color: var(--accent); font-size: .78rem; font-weight: 700; padding: 0; }
.fgroup { border-top: 1px solid var(--line-soft); padding: 15px 0; }
.fgroup:first-of-type { border-top: 0; padding-top: 0; }
.fgroup > h4 {
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
  margin: 0 0 12px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; cursor: pointer;
}
.fgroup > h4 svg { transition: transform .2s; color: var(--muted); }
.fgroup.collapsed > h4 svg { transform: rotate(-90deg); }
.fgroup.collapsed .fbody { display: none; }
.fbody { display: flex; flex-direction: column; gap: 9px; }
.fopt { display: flex; align-items: center; gap: 9px; font-size: .85rem; cursor: pointer; }
.fopt input { accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.fopt .cnt { margin-left: auto; font-size: .74rem; color: var(--muted); }
.fopt:hover { color: var(--accent); }

.price-inputs { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.price-inputs input { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: .84rem; }
.price-inputs input:focus { outline: none; border-color: var(--accent); }
.range-wrap { position: relative; height: 26px; }
.range-wrap input[type=range] { position: absolute; width: 100%; margin: 0; accent-color: var(--accent); pointer-events: auto; }

.swatches { display: flex; flex-wrap: wrap; gap: 9px; }
.swatch {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer;
  position: relative; transition: transform .15s, border-color .15s; padding: 0;
}
.swatch:hover { transform: scale(1.12); }
.swatch.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.swatch.on::after {
  content: ''; position: absolute; inset: 0; margin: auto; width: 9px; height: 9px;
  border-radius: 50%; background: rgba(255,255,255,.95); box-shadow: 0 0 3px rgba(0,0,0,.35);
}
.size-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.size-chip {
  min-width: 42px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; font-size: .8rem; font-weight: 700; transition: all .15s; text-align: center;
}
.size-chip:hover { border-color: var(--ink); }
.size-chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.size-chip[disabled] { opacity: .35; text-decoration: line-through; pointer-events: none; }

.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-bottom: 22px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 16px;
}
.toolbar-left { font-size: .86rem; color: var(--muted); }
.toolbar-left b { color: var(--ink); }
.toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar-right select { padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: .85rem; font-weight: 600; }
.view-toggle { display: flex; gap: 4px; border: 1px solid var(--line); border-radius: 9px; padding: 3px; }
.view-toggle button { width: 32px; height: 30px; border: 0; background: none; border-radius: 6px; display: grid; place-items: center; color: var(--muted); }
.view-toggle button.on { background: var(--ink); color: #fff; }
.btn-filter-m { display: none; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: .78rem; font-weight: 700; border: 0;
}
.chip button { background: none; border: 0; color: inherit; display: grid; place-items: center; padding: 0; opacity: .7; }
.chip button:hover { opacity: 1; }

.empty-state { text-align: center; padding: 70px 20px; }
.empty-state svg { color: var(--line); margin-bottom: 16px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: 20px; }

.pagination { display: flex; justify-content: center; gap: 7px; margin-top: 38px; flex-wrap: wrap; }
.pagination button {
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; font-weight: 700; font-size: .85rem; transition: all .15s;
}
.pagination button:hover:not([disabled]):not(.on) { border-color: var(--ink); }
.pagination button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination button[disabled] { opacity: .4; cursor: not-allowed; }

/* =========================================================
   PRODUCT DETAIL
   ========================================================= */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 46px; align-items: start; }
.gallery-main {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-alt);
  aspect-ratio: 1; border: 1px solid var(--line);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.gallery-thumbs button {
  border-radius: var(--radius-sm); overflow: hidden; border: 2px solid var(--line); background: var(--bg-alt);
  aspect-ratio: 1; padding: 0; transition: border-color .18s;
}
.gallery-thumbs button.on { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pdp-info h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 12px; }
.pdp-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; font-size: .84rem; }
.pdp-meta .sku { color: var(--muted); }
.pdp-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.pdp-price .price-now { font-size: 2rem; }
.save-line { color: var(--ok); font-weight: 700; font-size: .85rem; margin-bottom: 18px; }
.pdp-desc { color: var(--ink-2); margin-bottom: 22px; }
.opt-block { margin-bottom: 20px; }
.opt-block .opt-label { font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
.opt-block .opt-label span { color: var(--muted); font-weight: 600; text-transform: none; letter-spacing: 0; }

.qty {
  display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
}
.qty button { width: 42px; height: 46px; border: 0; background: #fff; font-size: 1.1rem; color: var(--ink-2); transition: background .15s; }
.qty button:hover { background: var(--bg-alt); color: var(--accent); }
.qty input {
  width: 52px; height: 46px; border: 0; text-align: center; font-weight: 700;
  -moz-appearance: textfield; background: #fff;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.buy-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.buy-row .btn { flex: 1; min-width: 160px; }
.buy-row-2 { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }

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

.assure { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 13px; }
.assure-row { display: flex; gap: 12px; align-items: flex-start; font-size: .84rem; }
.assure-row svg { color: var(--accent); flex: none; margin-top: 2px; }
.assure-row b { display: block; }
.assure-row span { color: var(--muted); font-size: .8rem; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 26px; overflow-x: auto; }
.tabs button {
  padding: 13px 20px; border: 0; background: none; font-weight: 700; font-size: .89rem;
  color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; transition: color .15s, border-color .15s;
}
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--accent); border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.on { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.spec-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.spec-table td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.spec-table td:first-child { font-weight: 700; width: 220px; background: var(--bg-alt); }

.review-summary { display: grid; grid-template-columns: 220px 1fr; gap: 34px; margin-bottom: 32px; align-items: center; }
.rev-score { text-align: center; background: var(--bg-alt); border-radius: var(--radius); padding: 24px; }
.rev-score .big { font-size: 3rem; font-weight: 800; line-height: 1; }
.rev-bars { display: flex; flex-direction: column; gap: 9px; }
.rev-bar { display: flex; align-items: center; gap: 12px; font-size: .8rem; }
.rev-bar .track { flex: 1; height: 8px; background: var(--line-soft); border-radius: 99px; overflow: hidden; }
.rev-bar .fill { height: 100%; background: var(--star); border-radius: 99px; }
.rev-bar .lbl { width: 48px; color: var(--muted); }
.rev-bar .pc { width: 42px; text-align: right; color: var(--muted); }

.review { border-top: 1px solid var(--line-soft); padding: 20px 0; display: grid; grid-template-columns: 52px 1fr; gap: 16px; }
.rev-avatar {
  width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 800; font-size: 1.05rem;
}
.rev-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 5px; }
.rev-head .nm { font-weight: 700; }
.rev-head .vf { font-size: .7rem; font-weight: 700; color: var(--ok); background: #e7f6ef; padding: 2px 8px; border-radius: 6px; }
.rev-head .dt { font-size: .78rem; color: var(--muted); margin-left: auto; }
.review p { margin: 6px 0 0; font-size: .88rem; color: var(--ink-2); }

/* =========================================================
   CART
   ========================================================= */
.cart-layout { display: grid; grid-template-columns: 1fr 370px; gap: 32px; align-items: start; }
.cart-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cart-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; padding: 20px; border-bottom: 1px solid var(--line-soft); align-items: center; }
.cart-row:last-child { border-bottom: 0; }
.cart-row .thumb { width: 110px; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-alt); }
.cart-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-row .nm { font-weight: 700; font-size: .94rem; margin-bottom: 4px; }
.cart-row .nm a:hover { color: var(--accent); }
.cart-row .vr { font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
.cart-row .unit { font-size: .84rem; color: var(--muted); }
.cart-row .right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cart-row .line-total { font-weight: 800; font-size: 1.05rem; }
.link-danger { background: none; border: 0; color: var(--muted); font-size: .8rem; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; padding: 0; }
.link-danger:hover { color: var(--danger); }
.qty.small button { width: 34px; height: 36px; font-size: 1rem; }
.qty.small input { width: 42px; height: 36px; font-size: .88rem; }

.summary {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  position: sticky; top: calc(var(--header-h) + 16px);
}
.summary h3 { margin-bottom: 18px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: .89rem; }
.sum-row.total {
  border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px;
  font-size: 1.15rem; font-weight: 800;
}
.sum-row .free { color: var(--ok); font-weight: 700; }
.sum-row .disc { color: var(--deal); font-weight: 700; }
.promo-row { display: flex; gap: 8px; margin: 16px 0; }
.promo-row input { flex: 1; padding: 11px 14px; border: 1px solid var(--line); border-radius: 9px; font-size: .85rem; }
.promo-row input:focus { outline: none; border-color: var(--accent); }
.promo-msg { font-size: .78rem; margin: -8px 0 14px; display: none; }
.promo-msg.ok { color: var(--ok); display: block; }
.promo-msg.err { color: var(--danger); display: block; }
.ship-progress { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 13px 15px; margin-bottom: 18px; font-size: .82rem; }
.ship-progress .track { height: 7px; background: #dfe1ea; border-radius: 99px; margin-top: 9px; overflow: hidden; }
.ship-progress .fill { height: 100%; background: linear-gradient(90deg, var(--accent), #8b6bff); border-radius: 99px; transition: width .4s; }

/* =========================================================
   CHECKOUT
   ========================================================= */
.checkout-layout { display: grid; grid-template-columns: 1fr 390px; gap: 34px; align-items: start; }
.co-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 22px; }
.co-block > h3 { display: flex; align-items: center; gap: 11px; margin-bottom: 20px; }
.co-step {
  width: 27px; height: 27px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: .82rem; font-weight: 800; flex: none;
}
.pay-opt {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 15px 17px; margin-bottom: 11px;
  cursor: pointer; transition: border-color .16s, background .16s;
}
.pay-opt:hover { border-color: var(--accent); }
.pay-opt.on { border-color: var(--accent); background: var(--accent-soft); }
.pay-opt-head { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: .9rem; }
.pay-opt-head input { accent-color: var(--accent); width: 17px; height: 17px; }
.pay-opt-head .mini { margin-left: auto; font-size: .72rem; color: var(--muted); font-weight: 600; }
.pay-body { padding: 18px 0 4px; display: none; }
.pay-opt.on .pay-body { display: block; }
.co-item { display: flex; gap: 13px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); align-items: center; }
.co-item .th { width: 58px; height: 58px; border-radius: 9px; overflow: hidden; background: var(--bg-alt); position: relative; flex: none; }
.co-item .th img { width: 100%; height: 100%; object-fit: cover; }
.co-item .qbadge {
  position: absolute; top: -6px; right: -6px; min-width: 21px; height: 21px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff;
}
.co-item .n { font-size: .85rem; font-weight: 600; line-height: 1.35; }
.co-item .v { font-size: .75rem; color: var(--muted); }
.co-item .p { margin-left: auto; font-weight: 700; font-size: .88rem; white-space: nowrap; }
.order-done { max-width: 600px; margin: 0 auto; text-align: center; padding: 50px 20px; }
.order-done .tick {
  width: 84px; height: 84px; border-radius: 50%; background: #e7f6ef; color: var(--ok);
  display: grid; place-items: center; margin: 0 auto 22px;
}
.order-box { background: var(--bg-alt); border-radius: var(--radius); padding: 22px; margin: 26px 0; text-align: left; }

/* =========================================================
   AUTH
   ========================================================= */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; }
.auth-visual {
  position: relative; overflow: hidden; display: flex; align-items: flex-end;
  padding: 46px; color: #fff; isolation: isolate;
}
.auth-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.auth-visual::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(23,17,48,.92), rgba(23,17,48,.35)); z-index: -1; }
.auth-visual h2 { color: #fff; font-size: 1.8rem; }
.auth-visual p { color: rgba(255,255,255,.82); margin-bottom: 22px; }
.auth-perks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; font-size: .88rem; }
.auth-perks li { display: flex; gap: 10px; align-items: center; }
.auth-perks svg { color: #ffd25e; flex: none; }
.auth-form { padding: 54px 46px; display: flex; flex-direction: column; justify-content: center; }
.auth-form-inner { width: 100%; max-width: 400px; margin: 0 auto; }
.auth-alt { text-align: center; font-size: .86rem; margin-top: 22px; }
.auth-alt a { color: var(--accent); font-weight: 700; }
.divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: var(--muted); font-size: .78rem; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.social-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.strength { height: 5px; background: var(--line-soft); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.strength div { height: 100%; width: 0; border-radius: 99px; transition: width .3s, background .3s; }
.strength-txt { font-size: .74rem; margin-top: 5px; color: var(--muted); }

/* =========================================================
   CONTENT PAGES
   ========================================================= */
.doc-layout { display: grid; grid-template-columns: 250px 1fr; gap: 40px; align-items: start; }
.doc-nav { position: sticky; top: calc(var(--header-h) + 16px); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.doc-nav h4 { font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.doc-nav a { display: block; padding: 8px 11px; border-radius: 8px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.doc-nav a:hover, .doc-nav a.on { background: var(--accent-soft); color: var(--accent); }
.doc { max-width: 820px; }
.doc h2 { margin-top: 44px; padding-top: 6px; font-size: 1.4rem; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin-top: 26px; font-size: 1.05rem; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul, .doc ol { padding-left: 20px; margin-bottom: 1em; }
.doc li { margin-bottom: 7px; }
.doc .updated { font-size: .82rem; color: var(--muted); border-left: 3px solid var(--accent); padding-left: 14px; margin-bottom: 30px; }
.doc table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .88rem; }
.doc th, .doc td { padding: 12px 15px; border: 1px solid var(--line); text-align: left; }
.doc th { background: var(--bg-alt); font-weight: 800; }

.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.info-card h3 { display: flex; align-items: center; gap: 10px; }
.info-card h3 svg { color: var(--accent); }

.accordion { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; background: #fff; }
.acc-item { border-bottom: 1px solid var(--line-soft); }
.acc-item:last-child { border-bottom: 0; }
.acc-q {
  width: 100%; text-align: left; padding: 17px 20px; background: none; border: 0;
  font-weight: 700; font-size: .93rem; display: flex; justify-content: space-between; gap: 16px; align-items: center;
  transition: color .15s;
}
.acc-q:hover { color: var(--accent); }
.acc-q svg { flex: none; transition: transform .25s; color: var(--muted); }
.acc-item.open .acc-q svg { transform: rotate(45deg); color: var(--accent); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc-a > div { padding: 0 20px 18px; color: var(--ink-2); font-size: .89rem; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; text-align: center;
}
.stat .n { font-size: 2.1rem; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 6px; }
.stat .l { font-size: .82rem; color: var(--muted); font-weight: 600; }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.value-card .ic {
  width: 50px; height: 50px; border-radius: 14px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 15px;
}
.value-card h3 { font-size: 1.02rem; }
.value-card p { font-size: .88rem; color: var(--muted); margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.split img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.contact-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cmethod { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; }
.cmethod .ic {
  width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin: 0 auto 13px;
}
.cmethod h4 { font-size: .95rem; margin-bottom: 5px; }
.cmethod p { font-size: .84rem; color: var(--muted); margin: 0; }
.map-embed {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  height: 340px; background: var(--bg-alt); position: relative;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

.form-success {
  background: #e7f6ef; border: 1px solid #b6e3ce; color: #0d6b47; border-radius: var(--radius-sm);
  padding: 14px 18px; font-size: .88rem; font-weight: 600; margin-bottom: 18px; display: none;
  align-items: center; gap: 10px;
}
.form-success.show { display: flex; animation: fade .3s; }

/* =========================================================
   QUICK VIEW MODAL
   ========================================================= */
.modal {
  position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 22px;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.modal.show { opacity: 1; visibility: visible; }
.modal-back { position: absolute; inset: 0; background: rgba(16,17,22,.6); backdrop-filter: blur(3px); }
.modal-card {
  position: relative; background: #fff; border-radius: var(--radius-lg); width: min(940px, 100%);
  max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg);
  transform: translateY(18px) scale(.98); transition: transform .28s cubic-bezier(.3,0,.2,1);
}
.modal.show .modal-card { transform: none; }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.92); box-shadow: var(--shadow-sm); display: grid; place-items: center; z-index: 5;
}
.modal-close:hover { background: var(--ink); color: #fff; }
.qv-grid { display: grid; grid-template-columns: 1fr 1fr; }
.qv-media { background: var(--bg-alt); aspect-ratio: 1; }
.qv-media img { width: 100%; height: 100%; object-fit: cover; }
.qv-body { padding: 32px; }

/* =========================================================
   TOAST
   ========================================================= */
.toast-wrap {
  position: fixed; bottom: 22px; right: 22px; z-index: 600; display: flex;
  flex-direction: column; gap: 10px; pointer-events: none; max-width: min(360px, calc(100vw - 44px));
}
.toast {
  background: var(--ink); color: #fff; border-radius: 12px; padding: 13px 17px; font-size: .87rem;
  font-weight: 600; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 11px;
  animation: toastIn .3s cubic-bezier(.2,.9,.3,1.3); pointer-events: auto;
}
.toast.out { animation: toastOut .25s forwards; }
.toast svg { flex: none; }
.toast.ok svg { color: #5ee0a0; }
.toast.warn svg { color: #ffd25e; }
.toast img { width: 34px; height: 34px; border-radius: 7px; object-fit: cover; flex: none; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }

/* mini cart drawer */
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(410px, 92vw); background: #fff; z-index: 400;
  transform: translateX(100%); transition: transform .32s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.cart-drawer.open { transform: none; }
.cd-head { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.cd-head h3 { margin: 0; font-size: 1.05rem; }
.cd-body { flex: 1; overflow-y: auto; padding: 6px 20px; }
.cd-foot { border-top: 1px solid var(--line); padding: 18px 20px; }
.cd-item { display: grid; grid-template-columns: 68px 1fr auto; gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); align-items: center; }
.cd-item .th { width: 68px; aspect-ratio: 1; border-radius: 9px; overflow: hidden; background: var(--bg-alt); }
.cd-item .th img { width: 100%; height: 100%; object-fit: cover; }
.cd-item .n { font-size: .85rem; font-weight: 700; line-height: 1.35; margin-bottom: 3px; }
.cd-item .v { font-size: .74rem; color: var(--muted); }
.cd-item .p { font-size: .85rem; font-weight: 700; margin-top: 4px; }
.cd-empty { text-align: center; padding: 60px 20px; color: var(--muted); }

.skel { background: linear-gradient(90deg, #f0f1f5 25%, #e6e8ef 50%, #f0f1f5 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }
.skel-card { height: 380px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

.back-top {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: #fff; border: 0; display: grid; place-items: center; z-index: 300;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s, transform .25s;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { transform: translateY(-4px); background: var(--accent); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .product-grid, .product-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .foot-grid { grid-template-columns: 1.5fr 1fr 1fr; row-gap: 34px; }
}

@media (max-width: 1024px) {
  :root { --header-h: 72px; }
  .burger { display: grid; }
  .nav-bar { display: none; }
  /* search drops to its own row below the logo — without wrap it would be
     squeezed to a few pixels and push the header past the viewport */
  .header-main { gap: 12px; padding: 12px 0; flex-wrap: wrap; }
  .brand { margin-right: auto; }
  .search-form { order: 3; flex: 1 0 100%; max-width: none; }
  .hero-inner { grid-template-columns: 1fr; padding: 46px 0 54px; }
  .hero-collage { max-width: 520px; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters {
    position: fixed; inset: 0 auto 0 0; width: min(330px, 88vw); z-index: 400; border-radius: 0;
    max-height: none; transform: translateX(-100%); transition: transform .3s; border: 0; padding: 20px;
  }
  .filters.open { transform: none; }
  .btn-filter-m { display: inline-flex; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .pdp { grid-template-columns: 1fr; gap: 32px; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-nav { display: none; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-grid { grid-template-columns: 1fr 1fr; }
  .promo-grid .promo:first-child { grid-column: span 2; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-visual { min-height: 230px; padding: 30px; }
  .auth-perks { display: none; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .news-inner { grid-template-columns: 1fr; gap: 24px; padding: 40px 0; }
  .deal-banner { grid-template-columns: 1fr; padding: 32px; }
}

@media (max-width: 780px) {
  .section { padding: 40px 0; }
  .product-grid, .product-grid.cols-5, .product-grid.cols-3 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: 1fr; }
  .qv-grid { grid-template-columns: 1fr; }
  .qv-body { padding: 24px; }
  .review-summary { grid-template-columns: 1fr; gap: 22px; }
  .contact-methods { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cart-row { grid-template-columns: 82px 1fr; }
  .cart-row .thumb { width: 82px; }
  .cart-row .right { grid-column: span 2; flex-direction: row; align-items: center; justify-content: space-between; }
  .product-grid.list-view .pcard { flex-direction: column; }
  .product-grid.list-view .pcard-media { width: 100%; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .auth-form { padding: 34px 22px; }
  .spec-table td:first-child { width: 130px; }
  .pcard-tools, .pcard-cart { opacity: 1; transform: none; }
  .hero-stats { gap: 22px; }
  .toast-wrap { left: 14px; right: 14px; bottom: 14px; max-width: none; }
}

@media (max-width: 560px) {
  .brand-sub { display: none; }
  .promo-grid { grid-template-columns: 1fr; }
  .promo-grid .promo:first-child { grid-column: auto; }
  .trust-grid { grid-template-columns: 1fr; gap: 14px; padding: 18px 0; }
  .foot-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .buy-row .btn { min-width: 100%; }
  .cd-box { min-width: 60px; padding: 10px 12px; }
  .cd-box .v { font-size: 1.25rem; }
  .modal { padding: 0; }
  .modal-card { max-height: 100vh; border-radius: 0; height: 100%; }
}

/* Very small handsets (iPhone SE and similar). Below ~400px the 3-up tile
   grid, the 2-up stat grid and the default card padding stop fitting. */
@media (max-width: 420px) {
  .wrap { padding: 0 14px; }
  /* keep burger + logo + actions on one row, search on the row below */
  .brand-name { font-size: .8rem; letter-spacing: -.03em; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; font-size: 1rem; }
  .iconbtn { width: 38px; height: 38px; }
  .header-main { gap: 8px; }
  .header-actions { margin-left: auto; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-card { padding: 14px 8px; }
  .cat-card .ic { width: 58px; height: 58px; }
  .stat { padding: 18px 10px; }
  .stat .n { font-size: 1.6rem; }
  .stat .l { font-size: .76rem; }
  .info-card, .co-block, .summary { padding: 18px; }
  .news-form { flex-wrap: wrap; }
  .news-form input { flex: 1 0 100%; }
  .news-form .btn { width: 100%; }
  .hero h1 { font-size: 2rem; }
  .product-grid, .product-grid.cols-5, .product-grid.cols-3 { gap: 12px; }
  .pcard-body { padding: 12px 12px 14px; }
  .deal-banner { padding: 24px 18px; }
  .auth-form { padding: 28px 16px; }
  .doc table { display: block; overflow-x: auto; }
}

@media print {
  .site-header, .site-footer, .back-top, .toast-wrap, .announce { display: none !important; }
}
