/* ==========================================================================
   KukuBuy — Design System
   ========================================================================== */

:root {
  --ink: #0B1020;
  --ink-2: #171E33;
  --ink-3: #232B44;
  --primary: #2F5BFF;
  --primary-dark: #1E44D6;
  --primary-soft: #EDF2FF;
  --violet: #7C3AED;
  --cyan: #00B8D9;
  --text: #101527;
  --muted: #5C6579;
  --muted-2: #8A93A6;
  --line: #E6E9F1;
  --line-2: #EFF2F8;
  --bg: #FFFFFF;
  --bg-soft: #F6F8FC;
  --bg-dark: #0B1020;
  --success: #16A34A;
  --success-soft: #E9F9EF;
  --sale: #E11D48;
  --sale-soft: #FFEEF2;
  --warn: #B45309;
  --warn-soft: #FFF7EA;
  --star: #F5A623;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(16, 21, 39, .06), 0 1px 3px rgba(16, 21, 39, .05);
  --shadow: 0 6px 18px -6px rgba(16, 21, 39, .12), 0 2px 6px rgba(16, 21, 39, .05);
  --shadow-lg: 0 24px 48px -16px rgba(16, 21, 39, .22), 0 8px 20px -10px rgba(16, 21, 39, .1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1200px;
}

* { box-sizing: border-box; }

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

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

img, svg { display: block; max-width: 100%; }
/* neutralize width/height presentational hints so aspect-ratio in the layout wins */
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; color: var(--ink); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ---------- typography helpers ---------- */
.btn svg, .topbar svg, .drawer-body a svg, .header-actions a svg { width: 18px; height: 18px; flex: 0 0 18px; }
.topbar svg { color: #8FACFF; }

.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); }
.kicker::before { content: ''; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.h-xl { font-size: clamp(34px, 5vw, 56px); }
.h-lg { font-size: clamp(28px, 3.6vw, 40px); }
.h-md { font-size: clamp(22px, 2.6vw, 30px); }
.lead { font-size: 18px; color: var(--muted); }
.center { text-align: center; }
.center .kicker::before { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 15.5px; line-height: 1;
  padding: 15px 26px; border-radius: 12px; border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 22px -10px rgba(47, 91, 255, .65); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-outline { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-ghost { background: var(--bg-soft); color: var(--ink); }
.btn-ghost:hover { background: #EDF1F9; }
.btn-lg { padding: 18px 34px; font-size: 16.5px; border-radius: 14px; }
.btn-sm { padding: 11px 18px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--primary); }
.link-arrow svg { transition: transform .18s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- badges / pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px; line-height: 1;
}
.badge-sale { background: var(--sale); color: #fff; }
.badge-new { background: var(--ink); color: #fff; }
.badge-best { background: #FFF4DE; color: #92500B; }
.badge-soft { background: var(--primary-soft); color: var(--primary-dark); }
.badge-stock { background: var(--success-soft); color: #0F7A38; }
.badge-low { background: var(--warn-soft); color: var(--warn); }

/* ---------- rating ---------- */
.rating { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--muted); }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 15px; height: 15px; }
.stars .on { fill: var(--star); }
.stars .off { fill: #DCE1EB; }

/* ---------- top announcement ---------- */
.topbar { background: var(--ink); color: #E8ECFA; font-size: 13.5px; }
.topbar .wrap { display: flex; align-items: center; justify-content: center; gap: 26px; min-height: 42px; padding-top: 6px; padding-bottom: 6px; text-align: center; }
.topbar b { color: #fff; }
.topbar .dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.35); }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 8px; }
.topbar .tb-hide { display: none; }
@media (min-width: 900px) { .topbar .tb-hide { display: inline-flex; } }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 90; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 22px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 21.5px; letter-spacing: -0.03em; color: var(--ink); }
.logo img { width: 34px; height: 34px; }
.logo span i { font-style: normal; color: var(--primary); }

.nav { display: none; align-items: center; gap: 4px; margin-left: 8px; }
@media (min-width: 1024px) { .nav { display: flex; } }
.nav a { padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: 15px; color: #2A3040; }
.nav a:hover { background: var(--bg-soft); color: var(--ink); }
.nav a.active { color: var(--primary); }
.nav .has-drop { position: relative; }
.nav .drop {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .16s ease;
}
.nav .has-drop:hover .drop, .nav .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: none; }
.nav .drop a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; font-size: 14.5px; }
.nav .drop a img { width: 30px; height: 30px; border-radius: 8px; }

.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; color: var(--ink);
}
.icon-btn:hover { background: var(--bg-soft); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: 5px; right: 4px; min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--primary); color: #fff; font-size: 11.5px; font-weight: 800;
  border-radius: 999px; display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
}
.cart-count[hidden] { display: none; }
.header-cta { display: none; }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }
.burger { display: inline-flex; }
@media (min-width: 1024px) { .burger { display: none; } }

/* ---------- mobile drawer ---------- */
.drawer-mask { position: fixed; inset: 0; background: rgba(11,16,32,.5); opacity: 0; visibility: hidden; transition: .2s; z-index: 120; }
.drawer-mask.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: #fff; z-index: 130;
  transform: translateX(105%); transition: transform .24s ease; display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-body { padding: 14px 12px; overflow-y: auto; }
.drawer-body a { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px; border-radius: 12px; font-weight: 650; font-size: 16.5px; }
.drawer-body a:hover { background: var(--bg-soft); }
.drawer-body .sub { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); padding: 18px 12px 8px; }
.drawer-foot { margin-top: auto; padding: 18px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }

/* ---------- search overlay ---------- */
.search-modal { position: fixed; inset: 0; z-index: 140; background: rgba(11,16,32,.55); opacity: 0; visibility: hidden; transition: .2s; display: flex; justify-content: center; padding: 90px 16px 16px; }
.search-modal.open { opacity: 1; visibility: visible; }
.search-panel { width: min(720px, 100%); background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); align-self: flex-start; overflow: hidden; }
.search-row { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.search-row > svg { width: 22px; height: 22px; flex: 0 0 22px; color: var(--muted-2); }
.search-row input { flex: 1; border: 0; outline: 0; font-size: 17px; font-family: inherit; color: var(--ink); background: transparent; }
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.search-results { max-height: 55vh; overflow-y: auto; padding: 8px; }
.search-results a { display: flex; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 12px; }
.search-results a > span:last-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.search-results a:hover { background: var(--bg-soft); }
.search-results img { width: 56px; height: 56px; border-radius: 10px; background: var(--bg-soft); flex: 0 0 56px; }
.search-results .sr-title { font-weight: 700; font-size: 15px; color: var(--ink); }
.search-results .sr-price { font-size: 13.5px; color: var(--muted); }
.search-results .sr-price s { color: var(--muted-2); }
.search-empty { padding: 26px; text-align: center; color: var(--muted); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(900px 520px at 82% 10%, #22306B 0%, var(--ink) 55%, #070B16 100%); color: #fff; }
.hero .wrap { position: relative; display: grid; gap: 30px; padding-top: 64px; padding-bottom: 64px; }
@media (min-width: 1000px) { .hero .wrap { grid-template-columns: 1.05fr .95fr; align-items: center; padding-top: 84px; padding-bottom: 84px; } }
.hero h1 { color: #fff; }
.hero .lead { color: #B9C2DE; max-width: 54ch; }
.hero .kicker { color: #8FACFF; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 30px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12); }
.hero-points span { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: #C8D1EA; font-weight: 600; }
.hero-points svg { width: 18px; height: 18px; color: #7C96FF; }
.hero-art { position: relative; }
.hero-art img { width: 100%; filter: drop-shadow(0 30px 60px rgba(0,0,0,.45)); }
.hero-chip {
  position: absolute; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.96); color: var(--ink);
  border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow-lg); font-size: 13.5px; font-weight: 700;
}
.hero-chip small { display: block; font-weight: 600; color: var(--muted); font-size: 12px; }
.hero-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(22,163,74,.16); }
.hero-chip.c1 { top: 12%; left: 2%; }
.hero-chip.c2 { bottom: 10%; right: 0; }
@media (max-width: 640px) { .hero-chip { display: none; } }

/* ---------- ticker / trust strip ---------- */
.trust-strip { border-bottom: 1px solid var(--line); background: #fff; }
.trust-strip .wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 20px; padding: 22px 20px; }
@media (min-width: 900px) { .trust-strip .wrap { grid-template-columns: repeat(4, 1fr); } }
.trust { display: flex; align-items: center; gap: 13px; }
.trust .ic { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.trust .ic svg { width: 22px; height: 22px; }
.trust b { display: block; font-size: 14.5px; color: var(--ink); }
.trust small { color: var(--muted); font-size: 13px; }

/* ---------- sections ---------- */
.section { padding: 68px 0; }
.section.tight { padding: 48px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.section-head .h-lg { margin-top: 10px; }
.section-head p { color: var(--muted); margin-top: 8px; max-width: 62ch; }

/* ---------- category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (min-width: 900px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1180px) { .cat-grid { grid-template-columns: repeat(6, 1fr); gap: 16px; } }
.cat-card { position: relative; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 16px 16px; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #D8DFEC; }
.cat-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: #fff; }
.cat-card b { display: block; margin-top: 14px; font-size: 16px; color: var(--ink); }
.cat-card small { color: var(--muted); font-size: 13px; }
.cat-card .go { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; color: var(--primary); opacity: 0; transform: translateY(-4px); transition: .18s; }
.cat-card:hover .go { opacity: 1; transform: none; }

/* ---------- product grid + card ---------- */
.grid-products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 760px) { .grid-products { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
@media (min-width: 1100px) { .grid-products.cols-4 { grid-template-columns: repeat(4, 1fr); } }

.p-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.p-media { position: relative; display: block; background: var(--bg-soft); }
.p-media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.p-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.p-wish { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.94); color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); opacity: 0; transform: translateY(-4px); transition: .18s; }
.p-card:hover .p-wish { opacity: 1; transform: none; }
.p-wish svg { width: 17px; height: 17px; }
.p-wish.on { color: var(--sale); }
.p-wish.on svg { fill: var(--sale); }
.p-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 18px; flex: 1; }
.p-cat { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.p-title { font-size: 15.5px; font-weight: 700; color: var(--ink); line-height: 1.35; min-height: 2.7em; }
.p-title:hover { color: var(--primary); }
.p-price { display: flex; align-items: baseline; gap: 9px; margin-top: auto; flex-wrap: wrap; }
.p-price .now { font-size: 18px; font-weight: 850; color: var(--ink); }
.p-price .was { font-size: 13.5px; color: var(--muted-2); text-decoration: line-through; }
.p-price .off { font-size: 12px; font-weight: 800; color: var(--sale); background: var(--sale-soft); padding: 3px 8px; border-radius: 999px; }
.p-add { margin-top: 4px; }

/* ---------- deal banner ---------- */
.deal { position: relative; overflow: hidden; border-radius: var(--r-xl); background: linear-gradient(115deg, #101736 0%, #1B2B66 52%, #2F5BFF 130%); color: #fff; display: grid; }
@media (min-width: 940px) { .deal { grid-template-columns: 1.1fr .9fr; align-items: center; } }
.deal-copy { padding: 40px 34px; }
@media (min-width: 940px) { .deal-copy { padding: 56px 20px 56px 52px; } }
.deal h3 { color: #fff; font-size: clamp(24px, 3vw, 34px); }
.deal p { color: #C3CCE8; }
.deal-art { position: relative; padding: 20px 24px 0; }
.deal-art img { width: 100%; max-width: 460px; margin: 0 auto; filter: drop-shadow(0 24px 44px rgba(0,0,0,.4)); }
.deal-timer { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 26px; }
.timer-cell { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; min-width: 68px; padding: 10px 8px; text-align: center; backdrop-filter: blur(4px); }
@media (max-width: 520px) {
  .deal-copy { padding: 32px 20px; }
  .timer-cell { min-width: 58px; padding: 8px 4px; }
  .timer-cell b { font-size: 20px; }
  .deal-art { padding: 4px 16px 0; }
}
.timer-cell b { display: block; font-size: 24px; font-weight: 850; font-variant-numeric: tabular-nums; }
.timer-cell small { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #A9B6DC; }
.deal-code { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.1); border: 1px dashed rgba(255,255,255,.4); border-radius: 10px; padding: 9px 14px; font-weight: 700; font-size: 14px; }

/* ---------- value props ---------- */
.vals { display: grid; gap: 18px; }
@media (min-width: 760px) { .vals { grid-template-columns: repeat(3, 1fr); } }
.val { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 22px; }
.val .ic { width: 48px; height: 48px; border-radius: 13px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.val .ic svg { width: 24px; height: 24px; }
.val b { display: block; font-size: 17px; margin-bottom: 6px; color: var(--ink); }
.val p { color: var(--muted); font-size: 14.5px; }

/* ---------- testimonials ---------- */
.quotes { display: grid; gap: 18px; }
@media (min-width: 860px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; }
.quote .stars svg { width: 17px; height: 17px; }
.quote p { color: #2A3040; font-size: 15px; }
.q-who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.q-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-dark); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.q-who b { display: block; font-size: 14.5px; color: var(--ink); }
.q-who small { color: var(--muted); font-size: 13px; }
.q-verified { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--success); font-weight: 700; }

/* ---------- newsletter ---------- */
.newsletter { background: var(--bg-dark); border-radius: var(--r-xl); color: #fff; padding: 46px 30px; display: grid; gap: 24px; }
.newsletter > * { min-width: 0; }
@media (min-width: 900px) { .newsletter { grid-template-columns: 1.1fr .9fr; align-items: center; padding: 52px 56px; } }
.newsletter h3 { color: #fff; font-size: clamp(22px, 2.6vw, 30px); }
.newsletter p { color: #AEB9DB; }
.nl-form { display: flex; gap: 10px; }
@media (max-width: 560px) { .nl-form { flex-wrap: wrap; } .nl-form input { flex: 1 1 100%; } .nl-form .btn { width: 100%; } }
.nl-form input { flex: 1; min-width: 0; padding: 15px 18px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.18); background: rgba(255,255,255,.07); color: #fff; font-size: 15px; font-family: inherit; outline: 0; }
.nl-form input::placeholder { color: #8E9AC0; }
.nl-form input:focus { border-color: #6E8CFF; }
.newsletter .fine { font-size: 12.5px; color: #7E8AB0; margin-top: 12px; }

/* ---------- footer ---------- */
.footer { background: #070B16; color: #A9B3CC; margin-top: 0; }
.footer-top { display: grid; gap: 34px; padding: 58px 0 40px; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; } }
.footer .logo { color: #fff; }
.footer p { font-size: 14.5px; color: #99A3BF; }
.footer h5 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer-links a { display: block; padding: 6px 0; font-size: 14.5px; color: #A9B3CC; }
.footer-links a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; padding: 6px 0; font-size: 14.5px; }
.footer-contact svg { width: 18px; height: 18px; flex: 0 0 18px; color: #6E8CFF; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0 30px; display: flex; flex-wrap: wrap; gap: 16px 26px; align-items: center; justify-content: space-between; }
.pay-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pay-row img { height: 26px; width: auto; border-radius: 5px; }
.footer-bottom small { color: #7E8AB0; font-size: 13px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-legal a { font-size: 13px; color: #99A3BF; }
.footer-legal a:hover { color: #fff; }

/* ---------- breadcrumbs ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); padding: 22px 0 0; }
.crumbs a:hover { color: var(--primary); }
.crumbs .sep { color: #C3CADA; }
.crumbs b { color: var(--ink); font-weight: 650; }

/* ---------- page hero (inner pages) ---------- */
.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 40px 0 44px; }
.page-head .h-lg { margin-top: 10px; }
.page-head p { color: var(--muted); margin-top: 10px; max-width: 70ch; }

/* ---------- shop layout ---------- */
.shop-layout { display: grid; gap: 30px; padding: 34px 0 70px; }
@media (min-width: 1000px) { .shop-layout { grid-template-columns: 264px 1fr; gap: 40px; } }
.filters { align-self: start; }
@media (min-width: 1000px) { .filters { position: sticky; top: 96px; } }
.f-box { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; margin-bottom: 16px; background: #fff; }
.f-box h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); margin-bottom: 14px; }
.f-check { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14.5px; color: #2A3040; cursor: pointer; }
.f-check input { width: 17px; height: 17px; accent-color: var(--primary); }
.f-check .n { margin-left: auto; color: var(--muted-2); font-size: 13px; }
.price-inputs { display: flex; align-items: center; gap: 10px; }
.price-inputs input { width: 100%; min-width: 0; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 14px; outline: 0; }
.price-inputs input:focus { border-color: var(--primary); }
.shop-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: space-between; margin-bottom: 22px; }
.shop-count { font-size: 14.5px; color: var(--muted); }
.shop-count b { color: var(--ink); }
.select { padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 11px; font-family: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink); background: #fff; outline: 0; cursor: pointer; }
.select:focus { border-color: var(--primary); }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--primary-soft); color: var(--primary-dark); border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 700; }
.chip button { border: 0; background: transparent; color: inherit; font-size: 15px; line-height: 1; padding: 0; }
.filter-toggle { display: inline-flex; }
@media (min-width: 1000px) { .filter-toggle { display: none; } }
.empty-state { text-align: center; padding: 70px 20px; }
.empty-state img { width: 120px; margin: 0 auto 18px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: 22px; }

/* ---------- product detail ---------- */
.pd { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; padding: 30px 0 20px; }
/* allow grid/flex children to shrink below their min-content width */
.pd > *, .shop-layout > *, .cart-layout > *, .co-layout > *, .contact-grid > *,
.grid-products > *, .cat-grid > *, .vals > *, .quotes > *, .newsletter > *,
.deal > *, .footer-top > * { min-width: 0; }
@media (min-width: 980px) { .pd { grid-template-columns: 1.02fr 1fr; gap: 54px; } }
.pd-gallery { position: relative; }
.pd-main { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.pd-main img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pd-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.pd-thumb { width: 84px; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg-soft); padding: 0; }
.pd-thumb.active { border-color: var(--primary); }
.pd-thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pd-info .p-cat { font-size: 12px; }
.pd-info h1 { font-size: clamp(24px, 3vw, 34px); margin: 10px 0 12px; }
.pd-rating { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.pd-price { display: flex; align-items: baseline; gap: 12px; margin: 18px 0 6px; flex-wrap: wrap; }
.pd-price .now { font-size: 34px; font-weight: 850; color: var(--ink); letter-spacing: -0.02em; }
.pd-price .was { font-size: 18px; color: var(--muted-2); text-decoration: line-through; }
.pd-price .off { font-size: 13px; font-weight: 800; color: #fff; background: var(--sale); padding: 5px 10px; border-radius: 999px; }
.pd-save { color: var(--success); font-weight: 700; font-size: 14px; }
.pd-points { margin: 20px 0; display: grid; gap: 11px; }
.pd-points li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: #2A3040; }
.pd-points svg { width: 19px; height: 19px; color: var(--success); flex: 0 0 19px; margin-top: 2px; }
.pd-buy { display: flex; gap: 12px; align-items: stretch; margin: 22px 0 10px; flex-wrap: wrap; }
.pd-add { flex: 1 1 220px; }
@media (max-width: 560px) {
  .pd-add, .pd-buy #buyBtn { flex: 1 1 100%; }
}
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.qty button { width: 46px; height: 100%; min-height: 52px; border: 0; background: #fff; font-size: 19px; font-weight: 700; color: var(--ink); }
.qty button:hover { background: var(--bg-soft); }
.qty input { width: 52px; height: 52px; border: 0; text-align: center; font-size: 16px; font-weight: 700; font-family: inherit; outline: 0; }
.pd-meta { display: grid; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.pd-meta b { color: var(--ink); }
.pd-trust { display: grid; gap: 12px; margin-top: 22px; padding: 20px; background: var(--bg-soft); border-radius: var(--r-lg); border: 1px solid var(--line); }
.pd-trust div { display: flex; gap: 12px; align-items: center; font-size: 14px; color: #2A3040; }
.pd-trust svg { width: 20px; height: 20px; color: var(--primary); flex: 0 0 20px; }
.pd-trust b { color: var(--ink); }

/* tabs */
.tabs { margin-top: 26px; }
.tab-nav { display: flex; gap: 6px; border-bottom: 1.5px solid var(--line); overflow-x: auto; }
.tab-btn { border: 0; background: transparent; padding: 14px 18px; font-size: 15px; font-weight: 700; color: var(--muted); border-bottom: 2.5px solid transparent; margin-bottom: -1.5px; white-space: nowrap; }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-pane { display: none; padding: 28px 0 8px; }
.tab-pane.active { display: block; }
.spec-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: 14.5px; }
.spec-table td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); }
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table td:first-child { width: 38%; background: var(--bg-soft); font-weight: 650; color: var(--ink); }
.prose { color: #2A3040; max-width: 76ch; }
.prose h3 { margin: 26px 0 10px; font-size: 20px; }
.prose h4 { margin: 20px 0 8px; font-size: 16.5px; }
.prose ul { list-style: disc; padding-left: 22px; margin: 0 0 14px; }
.prose li { margin-bottom: 7px; }
.prose a { color: var(--primary); font-weight: 600; }
.prose strong { color: var(--ink); }

.review { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 14px; background: #fff; }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-head b { color: var(--ink); }
.review-head small { color: var(--muted-2); }
.review p { font-size: 14.5px; color: #2A3040; }

/* related */
.related { padding: 26px 0 70px; }

/* ---------- cart ---------- */
.cart-layout { display: grid; gap: 30px; padding: 30px 0 70px; }
@media (min-width: 1000px) { .cart-layout { grid-template-columns: 1fr 380px; align-items: start; } }
.cart-box { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.cart-item { display: grid; grid-template-columns: 92px 1fr auto; gap: 16px; padding: 18px; border-bottom: 1px solid var(--line-2); align-items: center; }
.cart-item:last-child { border-bottom: 0; }
.cart-item img { width: 92px; height: 92px; border-radius: 12px; object-fit: cover; background: var(--bg-soft); }
.ci-title { font-weight: 700; color: var(--ink); font-size: 15.5px; }
.ci-title:hover { color: var(--primary); }
.ci-cat { font-size: 12.5px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.ci-controls { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.ci-remove { border: 0; background: transparent; color: var(--muted-2); font-size: 13.5px; font-weight: 600; text-decoration: underline; padding: 0; }
.ci-remove:hover { color: var(--sale); }
.ci-price { text-align: right; font-weight: 800; font-size: 17px; color: var(--ink); white-space: nowrap; }
.ci-price small { display: block; font-weight: 600; font-size: 12.5px; color: var(--muted-2); }
.qty.sm button { min-height: 40px; width: 38px; font-size: 16px; }
.qty.sm input { width: 44px; height: 40px; font-size: 15px; }
.summary { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; background: #fff; }
@media (min-width: 1000px) { .summary { position: sticky; top: 96px; } }
.summary h3 { font-size: 19px; margin-bottom: 18px; }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 15px; color: #2A3040; }
.sum-row.total { border-top: 1.5px solid var(--line); margin-top: 12px; padding-top: 16px; font-size: 19px; font-weight: 850; color: var(--ink); }
.sum-row .muted { color: var(--muted); }
.free-ship-bar { margin: 14px 0 4px; }
.free-ship-bar .bar { height: 7px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.free-ship-bar .bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--primary), var(--cyan)); transition: width .3s ease; }
.free-ship-bar small { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }
.promo-row { display: flex; gap: 10px; margin: 16px 0 4px; }
.promo-row input { flex: 1; min-width: 0; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 11px; font-family: inherit; font-size: 14.5px; outline: 0; text-transform: uppercase; }
.promo-row input:focus { border-color: var(--primary); }
.sum-note { font-size: 13px; color: var(--muted); margin-top: 14px; display: flex; gap: 9px; }
.sum-note svg { width: 17px; height: 17px; flex: 0 0 17px; color: var(--success); margin-top: 2px; }

/* ---------- checkout ---------- */
.co-layout { display: grid; gap: 30px; padding: 30px 0 70px; }
@media (min-width: 1000px) { .co-layout { grid-template-columns: 1.25fr .85fr; align-items: start; } }
.co-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; background: #fff; margin-bottom: 20px; }
.co-card h3 { font-size: 18px; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.co-step { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 28px; }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } .form-grid .span2 { grid-column: span 2; } }
.field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.field .req { color: var(--sale); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 11px;
  font-family: inherit; font-size: 15px; color: var(--ink); background: #fff; outline: 0; transition: border-color .15s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47,91,255,.12); }
.field .hint { font-size: 12.5px; color: var(--muted-2); margin-top: 6px; }
.field .f-check { align-items: flex-start; gap: 11px; line-height: 1.55; }
.field .f-check input { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 3px; accent-color: var(--primary); }
.field .err { font-size: 12.5px; color: var(--sale); margin-top: 6px; display: none; font-weight: 600; }
.field.invalid input, .field.invalid select { border-color: var(--sale); }
.field.invalid .err { display: block; }
.radio-card { display: flex; gap: 14px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 13px; padding: 16px; cursor: pointer; transition: border-color .15s, background .15s; }
.radio-card + .radio-card { margin-top: 10px; }
.radio-card:hover { border-color: #C9D3E8; }
.radio-card input { margin-top: 3px; accent-color: var(--primary); width: 18px; height: 18px; }
.radio-card.selected { border-color: var(--primary); background: var(--primary-soft); }
.radio-card b { display: block; color: var(--ink); font-size: 15px; }
.radio-card small { color: var(--muted); font-size: 13.5px; }
.radio-card .price { margin-left: auto; font-weight: 800; color: var(--ink); font-size: 15px; white-space: nowrap; }
.co-items { border-top: 1px solid var(--line-2); margin-top: 6px; }
.co-item { display: flex; gap: 13px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.co-item img { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; background: var(--bg-soft); }
.co-item .t { font-size: 14px; font-weight: 650; color: var(--ink); line-height: 1.35; }
.co-item .q { font-size: 12.5px; color: var(--muted-2); }
.co-item .p { margin-left: auto; font-weight: 750; font-size: 14.5px; color: var(--ink); white-space: nowrap; }
.secure-badges { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.secure-badges img { height: 24px; width: auto; }
.trust-note { display: flex; gap: 10px; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); margin-top: 14px; }
.trust-note svg { width: 16px; height: 16px; color: var(--success); }

/* ---------- order success ---------- */
.success-wrap { max-width: 720px; margin: 0 auto; padding: 64px 20px 80px; text-align: center; }
.success-ic { width: 92px; height: 92px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.success-ic svg { width: 46px; height: 46px; }
.order-box { text-align: left; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; margin: 30px 0; background: #fff; }
.order-box h3 { font-size: 17px; margin-bottom: 14px; }
.order-meta { display: grid; gap: 10px; font-size: 14.5px; }
.order-meta div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dashed var(--line-2); padding-bottom: 10px; }
.order-meta div:last-child { border-bottom: 0; padding-bottom: 0; }
.order-meta span { color: var(--muted); }
.order-meta b { color: var(--ink); text-align: right; }
.next-steps { text-align: left; margin-top: 8px; }
.next-steps li { display: flex; gap: 12px; padding: 8px 0; font-size: 14.5px; color: #2A3040; }
.next-steps svg { width: 19px; height: 19px; color: var(--primary); flex: 0 0 19px; margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 840px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r); background: #fff; margin-bottom: 12px; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 19px 22px; font-weight: 700; font-size: 16px; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .pl { flex: 0 0 22px; width: 22px; height: 22px; position: relative; }
.faq-item summary .pl::before, .faq-item summary .pl::after { content: ''; position: absolute; background: var(--primary); border-radius: 2px; transition: .2s; }
.faq-item summary .pl::before { left: 4px; right: 4px; top: 10px; height: 2.5px; }
.faq-item summary .pl::after { top: 4px; bottom: 4px; left: 10px; width: 2.5px; }
.faq-item[open] summary .pl::after { transform: scaleY(0); }
.faq-item[open] summary { color: var(--primary); }
.faq-body { padding: 0 22px 22px; color: #2A3040; font-size: 15px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 26px; padding: 36px 0 70px; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: 1fr 1.3fr; align-items: start; } }
.contact-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; background: #fff; }
.contact-card .item { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line-2); }
.contact-card .item:last-child { border-bottom: 0; }
.contact-card .ic { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.contact-card .ic svg { width: 21px; height: 21px; }
.contact-card b { display: block; font-size: 15px; color: var(--ink); }
.contact-card p, .contact-card small { color: var(--muted); font-size: 14px; }

/* ---------- toast ---------- */
.toast-wrap { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; width: min(420px, calc(100vw - 32px)); }
.toast {
  display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff;
  border-radius: 13px; padding: 14px 18px; box-shadow: var(--shadow-lg); font-size: 14.5px; font-weight: 600;
  animation: toastIn .25s ease;
}
.toast svg { width: 20px; height: 20px; flex: 0 0 20px; color: #6EE7A8; }
.toast.warn svg { color: #FFC46B; }
.toast a { color: #9DB4FF; text-decoration: underline; margin-left: auto; white-space: nowrap; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- track order ---------- */
.track-wrap { max-width: 640px; margin: 0 auto; padding: 44px 20px 80px; }
.track-result { margin-top: 26px; }

/* ---------- 404 ---------- */
.nf { text-align: center; padding: 90px 20px; }
.nf b { font-size: 96px; font-weight: 900; letter-spacing: -0.04em; color: var(--ink); line-height: 1; display: block; }
.nf p { color: var(--muted); margin: 14px 0 28px; }

/* ---------- utilities ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.hidden { display: none !important; }
[hidden] { display: none !important; }
.soft-panel { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.notice { display: flex; gap: 12px; padding: 15px 17px; border-radius: 13px; font-size: 14px; line-height: 1.55; }
.notice svg { width: 19px; height: 19px; flex: 0 0 19px; margin-top: 2px; }
.notice.info { background: var(--primary-soft); color: #1E3A8A; }
.notice.info svg { color: var(--primary); }
.notice.warn { background: var(--warn-soft); color: #7C4A03; }
.notice.warn svg { color: var(--warn); }
.notice.ok { background: var(--success-soft); color: #14532D; }
.notice.ok svg { color: var(--success); }

@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .cart-item { grid-template-columns: 74px 1fr; }
  .cart-item img { width: 74px; height: 74px; }
  .ci-price { grid-column: 2; text-align: left; }
  .section-head { flex-direction: column; align-items: flex-start; }
}
