/* ============================================================
   LUCRAFT 3D — Design System
   Preto · Branco · Azul (+ ciano de acento dos banners)
   ============================================================ */

:root {
  --bg:        #070a10;
  --bg-soft:   #0b1018;
  --surface:   #0e131d;
  --surface-2: #141c2a;
  --surface-3: #1b2434;
  --line:      rgba(255,255,255,.08);
  --line-2:    rgba(255,255,255,.14);

  --text:      #eef2f8;
  --muted:     #98a3b8;
  --muted-2:   #6d7789;

  --blue:      #2274ff;
  --blue-hi:   #4a90ff;
  --cyan:      #16c9ff;
  --blue-deep: #0b39a8;
  --white:     #ffffff;

  --green:     #22c07b;
  --red:       #ff4d5e;
  --amber:     #ffb020;

  --grad-blue:  linear-gradient(135deg, #2274ff 0%, #16c9ff 100%);
  --grad-dark:  linear-gradient(180deg, #0e131d 0%, #0a0e16 100%);
  --glow-blue:  0 10px 40px -12px rgba(34,116,255,.55);

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-xl: 30px;

  --shadow:    0 20px 50px -24px rgba(0,0,0,.85);
  --shadow-sm: 0 8px 24px -12px rgba(0,0,0,.7);

  --header-h: 118px;
  --max: 1320px;

  --ff-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --ff-body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font-family: inherit; }
ul { list-style: none; }
h1,h2,h3,h4 { font-family: var(--ff-display); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* Scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 20px; border: 2px solid var(--bg-soft); }
::-webkit-scrollbar-thumb:hover { background: #2a3550; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font-family: var(--ff-display); font-weight: 600; font-size: 15px;
  padding: 13px 26px; border-radius: 999px; transition: .22s ease;
  white-space: nowrap; letter-spacing: -.01em;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad-blue); color: #fff; box-shadow: var(--glow-blue); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -12px rgba(34,116,255,.75); }
.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border: 1px solid var(--line-2); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); }
.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Top bar ---------- */
.topbar {
  background: linear-gradient(90deg, var(--blue-deep), var(--blue));
  color: #eaf1ff; font-size: 13px; font-weight: 600;
  text-align: center; padding: 8px 16px; letter-spacing: .01em;
  position: relative; z-index: 60;
}
.topbar b { color: #fff; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 55;
  background: rgba(8,11,17,.82);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.header-main { display: flex; align-items: center; gap: 26px; padding: 16px 0; }

/* Logo */
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-mark { width: 42px; height: 42px; filter: drop-shadow(0 4px 14px rgba(34,116,255,.5)); }
.logo-txt { font-family: var(--ff-display); font-weight: 700; font-size: 25px; letter-spacing: -.03em; }
.logo-txt span { color: var(--cyan); font-weight: 500; }

/* Search */
.search { flex: 1; position: relative; max-width: 620px; }
.search input {
  width: 100%; background: var(--surface-2); border: 1px solid var(--line);
  color: var(--text); padding: 14px 52px 14px 20px; border-radius: 999px; font-size: 15px;
  transition: .2s;
}
.search input::placeholder { color: var(--muted-2); }
.search input:focus { outline: none; border-color: var(--blue); background: var(--surface-3); box-shadow: 0 0 0 4px rgba(34,116,255,.14); }
.search button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; background: var(--grad-blue); display: grid; place-items: center; }
.search button svg { width: 18px; height: 18px; color: #fff; }
.search-results {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; background: var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow);
  max-height: 62vh; overflow-y: auto; z-index: 70; padding: 8px;
}
.sr-item { display: flex; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 10px; }
.sr-item:hover { background: var(--surface-2); }
.sr-item img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; }
.sr-item .n { font-weight: 600; font-size: 14px; }
.sr-item .p { color: var(--cyan); font-weight: 700; font-size: 14px; margin-left: auto; }

/* Header actions */
.actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.icon-btn { position: relative; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  color: var(--text); transition: .2s; }
.icon-btn:hover { background: var(--surface-2); color: var(--cyan); }
.icon-btn svg { width: 23px; height: 23px; }
.icon-btn .label { display: none; }
.badge-count {
  position: absolute; top: 5px; right: 5px; min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--grad-blue); color: #fff; font-size: 11px; font-weight: 800; font-family: var(--ff-display);
  border-radius: 999px; display: grid; place-items: center; border: 2px solid var(--bg);
}
.badge-count:empty, .badge-count[data-n="0"] { display: none; }

/* Nav */
.nav { border-top: 1px solid var(--line); }
.nav-list { display: flex; align-items: center; gap: 4px; padding: 4px 0; overflow-x: auto; scrollbar-width: none; }
.nav-list::-webkit-scrollbar { display: none; }
.nav-list > li > a, .nav-list > li > button {
  display: inline-flex; align-items: center; gap: 6px; padding: 12px 15px; font-size: 14.5px; font-weight: 600;
  color: var(--muted); border-radius: 10px; white-space: nowrap; transition: .18s;
}
.nav-list > li > a:hover, .nav-list > li.has-mega:hover > button { color: #fff; background: var(--surface-2); }
.nav-list a.active { color: #fff; }
.nav-hot { color: var(--cyan) !important; }
.nav-chev { width: 15px; height: 15px; opacity: .7; }

/* Mega menu */
.has-mega { position: static; }
.mega {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--surface);
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: .22s ease; z-index: 50; padding: 30px 0;
}
.has-mega:hover .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 30px; }
.mega-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--cyan); margin-bottom: 12px; }
.mega-col a { display: block; padding: 6px 0; color: var(--muted); font-size: 14px; font-weight: 500; transition: .15s; }
.mega-col a:hover { color: #fff; padding-left: 6px; }

/* ---------- Hero carousel ---------- */
.hero { position: relative; margin-top: 22px; }
.hero-track { display: flex; transition: transform .6s cubic-bezier(.65,0,.35,1); }
.hero-slide { min-width: 100%; position: relative; }
.hero-slide img { width: 100%; aspect-ratio: 1376 / 620; object-fit: cover; border-radius: var(--r-lg); }
.hero-wrap { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.hero-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 9px; z-index: 5; }
.hero-dots button { width: 9px; height: 9px; border-radius: 999px; background: rgba(255,255,255,.4); transition: .25s; }
.hero-dots button.active { width: 30px; background: var(--cyan); }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 52px; height: 52px; border-radius: 50%; background: rgba(8,11,17,.55); backdrop-filter: blur(6px);
  border: 1px solid var(--line-2); display: grid; place-items: center; transition: .2s; }
.hero-arrow:hover { background: var(--blue); border-color: var(--blue); }
.hero-arrow svg { width: 24px; height: 24px; color: #fff; }
.hero-arrow.prev { left: 16px; } .hero-arrow.next { right: 16px; }

/* Trust strip */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 26px; }
.trust-item { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px 18px; }
.trust-item svg { width: 30px; height: 30px; color: var(--cyan); flex-shrink: 0; }
.trust-item .t { font-family: var(--ff-display); font-weight: 700; font-size: 14.5px; }
.trust-item .s { font-size: 12.5px; color: var(--muted); }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 62px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section-head .eyebrow { color: var(--cyan); font-family: var(--ff-display); font-weight: 600; font-size: 13px;
  letter-spacing: .16em; text-transform: uppercase; display: block; margin-bottom: 8px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 40px); }
.section-head p { color: var(--muted); margin-top: 8px; max-width: 520px; }
.section-link { color: var(--muted); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.section-link:hover { color: var(--cyan); }
.section-link svg { width: 16px; height: 16px; }

/* ---------- Product grid & cards ---------- */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 20px;
  overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }

.card {
  background: var(--grad-dark); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; transition: .28s cubic-bezier(.4,0,.2,1); position: relative; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); border-color: rgba(34,116,255,.5); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.chip { font-family: var(--ff-display); font-weight: 700; font-size: 11px; letter-spacing: .03em;
  padding: 5px 10px; border-radius: 999px; text-transform: uppercase; }
.chip-new { background: var(--grad-blue); color: #fff; }
.chip-off { background: var(--red); color: #fff; }
.chip-top { background: #fff; color: #0a0e16; }
.chip-out { background: var(--surface-3); color: var(--muted); }
.card-fav { position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(8,11,17,.6); backdrop-filter: blur(6px); display: grid; place-items: center; transition: .2s; border: 1px solid var(--line); }
.card-fav svg { width: 19px; height: 19px; color: #fff; transition: .2s; }
.card-fav:hover { background: rgba(255,77,94,.2); }
.card-fav.on svg { color: var(--red); fill: var(--red); }
.card-quick { position: absolute; bottom: 12px; left: 12px; right: 12px; z-index: 2;
  opacity: 0; transform: translateY(10px); transition: .25s; }
.card:hover .card-quick { opacity: 1; transform: translateY(0); }
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-col { font-size: 11.5px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.card-name { font-family: var(--ff-display); font-weight: 600; font-size: 15.5px; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px; }
.card-name a:hover { color: var(--cyan); }
.stars { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); }
.stars .s { color: var(--amber); letter-spacing: -1px; }
.card-price { display: flex; align-items: baseline; gap: 9px; margin-top: auto; }
.price-now { font-family: var(--ff-display); font-weight: 700; font-size: 21px; }
.price-old { color: var(--muted-2); text-decoration: line-through; font-size: 14px; }
.price-x { font-size: 12px; color: var(--muted); }
.card-swatches { display: flex; gap: 5px; margin-top: 2px; }
.swatch { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--line-2); }
.card-add { margin-top: 12px; }

/* ---------- Collections grid ---------- */
.col-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); }
.col-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/3;
  border: 1px solid var(--line); transition: .28s; display: flex; align-items: flex-end;
}
.col-card::before { content: ''; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(120% 100% at 50% 0%, transparent 30%, rgba(0,0,0,.75) 100%); }
.col-card canvas, .col-card .col-bg { position: absolute; inset: 0; z-index: 0; }
.col-card:hover { transform: translateY(-5px); border-color: rgba(34,116,255,.55); box-shadow: var(--shadow); }
.col-bg { background-size: cover; background-position: center; transition: transform .5s; }
.col-card:hover .col-bg { transform: scale(1.08); }
.col-info { position: relative; z-index: 2; padding: 16px; width: 100%; }
.col-info h3 { font-size: 17px; }
.col-info span { font-size: 12px; color: var(--cyan); font-weight: 600; }

/* ---------- Promo band ---------- */
.promo-band { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow); }
.promo-band img { width: 100%; aspect-ratio: 1600/500; object-fit: cover; }
.promo-band-cta { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(24px, 6vw, 80px); gap: 14px; }

/* ---------- Custom CTA ---------- */
.custom-cta { background: var(--grad-dark); border: 1px solid var(--line-2); border-radius: var(--r-xl);
  padding: clamp(30px, 5vw, 56px); display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center;
  position: relative; overflow: hidden; }
.custom-cta::after { content: ''; position: absolute; right: -10%; top: -40%; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(34,116,255,.4), transparent 65%); z-index: 0; }
.custom-cta > * { position: relative; z-index: 1; }
.custom-cta h2 { font-size: clamp(26px, 3.6vw, 42px); margin-bottom: 12px; }
.custom-steps { display: flex; flex-direction: column; gap: 14px; }
.custom-step { display: flex; gap: 14px; align-items: flex-start; }
.custom-step .n { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; background: rgba(34,116,255,.15);
  color: var(--cyan); display: grid; place-items: center; font-family: var(--ff-display); font-weight: 700; }

/* ---------- Testimonials ---------- */
.tst-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.tst { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.tst .q { font-size: 15px; line-height: 1.6; margin: 12px 0 18px; }
.tst-foot { display: flex; align-items: center; gap: 12px; }
.tst-av { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-blue); display: grid; place-items: center;
  font-family: var(--ff-display); font-weight: 700; color: #fff; }
.tst-foot .n { font-weight: 700; font-size: 14px; }
.tst-foot .c { font-size: 12px; color: var(--muted); }
.stars-lg { color: var(--amber); font-size: 16px; letter-spacing: 1px; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--grad-blue); border-radius: var(--r-xl); padding: clamp(30px,5vw,56px); text-align: center;
  position: relative; overflow: hidden; }
.newsletter h2 { color: #fff; font-size: clamp(24px,3.4vw,38px); }
.newsletter p { color: rgba(255,255,255,.85); margin: 10px auto 24px; max-width: 460px; }
.nl-form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.nl-form input { flex: 1; padding: 15px 20px; border-radius: 999px; border: none; font-size: 15px; background: rgba(255,255,255,.95); color: #0a0e16; }
.nl-form input:focus { outline: 3px solid rgba(255,255,255,.5); }
.nl-form .btn { background: #0a0e16; color: #fff; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-soft); border-top: 1px solid var(--line); margin-top: 40px; padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 16px; }
.footer a { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; transition: .15s; }
.footer a:hover { color: var(--cyan); }
.footer-about p { color: var(--muted); font-size: 14px; margin: 14px 0 18px; max-width: 320px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 11px; background: var(--surface-2); display: grid; place-items: center; }
.socials svg { width: 20px; height: 20px; }
.pay-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pay-row .pay { height: 30px; padding: 0 10px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted-2); font-size: 13px; }

/* ---------- Drawer (cart / favorites) ---------- */
.overlay { position: fixed; inset: 0; background: rgba(3,5,9,.66); backdrop-filter: blur(3px); z-index: 90;
  opacity: 0; visibility: hidden; transition: .3s; }
.overlay.open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(440px, 100%); background: var(--surface);
  border-left: 1px solid var(--line-2); z-index: 95; transform: translateX(100%); transition: transform .34s cubic-bezier(.5,0,.2,1);
  display: flex; flex-direction: column; }
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 20px; }
.drawer-close { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; }
.drawer-close:hover { background: var(--surface-2); }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 22px; }
.drawer-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.drawer-empty svg { width: 60px; height: 60px; margin: 0 auto 16px; color: var(--surface-3); }
.ci { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ci img { width: 74px; height: 74px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.ci-info { flex: 1; min-width: 0; }
.ci-info .n { font-family: var(--ff-display); font-weight: 600; font-size: 14.5px; line-height: 1.25; }
.ci-info .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.ci-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.qty { display: flex; align-items: center; gap: 0; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.qty button { width: 30px; height: 30px; display: grid; place-items: center; font-weight: 700; color: var(--muted); }
.qty button:hover { color: #fff; background: var(--surface-2); }
.qty span { min-width: 30px; text-align: center; font-weight: 700; font-size: 14px; }
.ci-price { font-family: var(--ff-display); font-weight: 700; }
.ci-remove { color: var(--muted-2); font-size: 12px; }
.ci-remove:hover { color: var(--red); }
.drawer-foot { border-top: 1px solid var(--line-2); padding: 20px 22px; background: var(--bg-soft); }
.drawer-total { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 14px; color: var(--muted); }
.drawer-total.grand { color: #fff; font-size: 19px; font-family: var(--ff-display); font-weight: 700; margin: 10px 0 16px; }

/* ---------- Toast ---------- */
.toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--surface-3); border: 1px solid var(--line-2); border-left: 3px solid var(--cyan);
  border-radius: 12px; padding: 14px 18px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 600; animation: toastIn .3s ease; }
.toast svg { width: 20px; height: 20px; color: var(--cyan); }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Catalog page ---------- */
.catalog { display: grid; grid-template-columns: 268px 1fr; gap: 34px; align-items: start; padding-top: 34px; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 8px 20px 20px; }
.filter-group { padding: 18px 0; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: none; }
.filter-group h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; color: #fff; }
.filter-opt { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; color: var(--muted); cursor: pointer; }
.filter-opt:hover { color: #fff; }
.filter-opt input { accent-color: var(--blue); width: 16px; height: 16px; }
.filter-opt .count { margin-left: auto; font-size: 12px; color: var(--muted-2); }
.color-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.color-opt { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-2); cursor: pointer; transition: .18s; position: relative; }
.color-opt.on { border-color: var(--cyan); transform: scale(1.12); }
.color-opt.on::after { content: '✓'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; color: #fff; mix-blend-mode: difference; }
.price-range { display: flex; align-items: center; gap: 10px; }
.price-range input { width: 100%; }
.range-vals { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 8px; font-weight: 600; }

.catalog-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.catalog-top .found { color: var(--muted); font-size: 14px; }
.catalog-top .found b { color: #fff; }
.sort-sel { background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); padding: 11px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.filter-toggle { display: none; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.af { display: inline-flex; align-items: center; gap: 7px; background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 6px 8px 6px 14px; font-size: 13px; font-weight: 600; }
.af button { width: 18px; height: 18px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-size: 11px; }
.af button:hover { background: var(--red); color: #fff; }
.no-results { text-align: center; padding: 80px 20px; color: var(--muted); }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; padding-top: 30px; align-items: start; }
.gallery-main { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1; background: var(--surface-2); position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-video { position: absolute; bottom: 14px; right: 14px; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(8,11,17,.7); backdrop-filter: blur(6px); border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 16px; font-size: 13px; font-weight: 700; }
.gallery-video svg { width: 16px; height: 16px; color: var(--cyan); }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.thumbs button { border-radius: 12px; overflow: hidden; border: 2px solid var(--line); aspect-ratio: 1; transition: .18s; }
.thumbs button.on { border-color: var(--cyan); }
.pdp-col { display: flex; flex-direction: column; }
.pdp-breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.pdp-breadcrumb a:hover { color: var(--cyan); }
.pdp h1 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 12px; }
.pdp-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 14px; color: var(--muted); }
.pdp-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.pdp-price .now { font-family: var(--ff-display); font-weight: 700; font-size: 38px; }
.pdp-price .old { color: var(--muted-2); text-decoration: line-through; font-size: 20px; }
.pdp-price .off { background: var(--red); color: #fff; font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 999px; }
.pdp-installment { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.pdp-installment b { color: var(--green); }
.opt-block { margin-bottom: 22px; }
.opt-block .lbl { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; display: block; }
.opt-block .lbl span { color: #fff; }
.color-picker, .size-picker { display: flex; flex-wrap: wrap; gap: 10px; }
.color-pick { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line-2); cursor: pointer; transition: .18s; }
.color-pick.on { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(22,201,255,.18); }
.size-pick { min-width: 48px; height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--surface-2); font-weight: 700; color: var(--muted); transition: .18s; }
.size-pick.on { border-color: var(--cyan); color: #fff; background: var(--surface-3); }
.pdp-actions { display: flex; gap: 12px; margin: 8px 0 24px; }
.pdp-actions .qty { height: 52px; }
.pdp-actions .qty button { width: 44px; height: 100%; }
.pdp-fav { width: 52px; height: 52px; border-radius: 12px; border: 1px solid var(--line-2); display: grid; place-items: center; flex-shrink: 0; }
.pdp-fav svg { width: 22px; height: 22px; }
.pdp-fav.on svg { color: var(--red); fill: var(--red); }
.pdp-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-top: 6px; }
.pdp-meta div { font-size: 13px; }
.pdp-meta .k { color: var(--muted); }
.pdp-meta .v { font-weight: 700; margin-top: 1px; }
.stock-ok { color: var(--green); font-weight: 700; }
.stock-out { color: var(--red); font-weight: 700; }

.tabs { margin-top: 60px; }
.tab-nav { display: flex; gap: 6px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab-nav button { padding: 14px 22px; font-family: var(--ff-display); font-weight: 600; font-size: 15px; color: var(--muted);
  border-bottom: 2px solid transparent; white-space: nowrap; }
.tab-nav button.on { color: #fff; border-bottom-color: var(--cyan); }
.tab-panel { padding: 28px 0; max-width: 780px; }
.tab-panel p { color: var(--muted-2); margin-bottom: 14px; line-height: 1.7; }
.tab-panel.hidden { display: none; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.spec-table td:first-child { color: var(--muted); width: 40%; }
.spec-table td:last-child { font-weight: 600; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-family: var(--ff-display); font-weight: 600; font-size: 16px; width: 100%; text-align: left; }
.faq-q svg { width: 20px; height: 20px; flex-shrink: 0; transition: .2s; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: .28s; color: var(--muted-2); }
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 18px; }

/* ---------- Page hero (inner) ---------- */
.page-hero { padding: 40px 0 10px; }
.page-hero .eyebrow { color: var(--cyan); font-family: var(--ff-display); font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 52px); margin: 8px 0 10px; }
.page-hero p { color: var(--muted); max-width: 620px; }
.crumbs { font-size: 13px; color: var(--muted-2); margin-bottom: 8px; }
.crumbs a:hover { color: var(--cyan); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Skeleton spinner for lazy ---------- */
.loadmore-wrap { text-align: center; margin-top: 40px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .mega-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .pdp { grid-template-columns: 1fr; gap: 30px; }
  .custom-cta { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 74px; }
  .header-main { gap: 14px; }
  .nav, .search-desktop { display: none; }
  .logo-txt { font-size: 21px; }
  .trust { grid-template-columns: 1fr 1fr; }
  .catalog { grid-template-columns: 1fr; }
  .filters { position: fixed; top: 0; left: 0; height: 100%; width: min(340px, 88%); z-index: 96; border-radius: 0;
    transform: translateX(-100%); transition: transform .3s; overflow-y: auto; border-right: 1px solid var(--line-2); }
  .filters.open { transform: translateX(0); }
  .filter-toggle { display: inline-flex; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 16px; }
  .section { padding: 44px 0; }
  .trust { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .col-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .nl-form { flex-direction: column; }
  .card-body { padding: 12px; }
  .card-name { font-size: 14px; }
  .price-now { font-size: 18px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .pdp-price .now { font-size: 30px; }
  .drawer { width: 100%; }
  .mobile-search { display: block !important; }
}
.mobile-search { display: none; padding: 0 0 14px; }

/* Mobile bottom nav */
.mobile-tabbar { display: none; }
@media (max-width: 900px) {
  .mobile-tabbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 80;
    background: rgba(8,11,17,.94); backdrop-filter: blur(16px); border-top: 1px solid var(--line-2); padding: 6px 4px env(safe-area-inset-bottom); }
  .mobile-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px;
    color: var(--muted); font-size: 10.5px; font-weight: 600; position: relative; }
  .mobile-tabbar a.active { color: var(--cyan); }
  .mobile-tabbar svg { width: 22px; height: 22px; }
  .mobile-tabbar .badge-count { top: 2px; right: 22%; }
  body { padding-bottom: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
