:root {
  --bg: #07080F;
  --bg-soft: #0A0B14;
  --surface: #0E1020;
  --border: rgba(148,163,184,.12);
  --border-soft: rgba(148,163,184,.07);
  --ink: #E4EFFC;
  --muted: #8896A8;
  --muted-2: #52606D;

  --brand: #3B82F6;
  --brand-dark: #2563EB;
  --brand-soft: rgba(59,130,246,.12);
  --navy: #020810;

  --blue: #3B82F6;
  --blue-mid: #2563EB;
  --blue-soft: rgba(59,130,246,.10);

  --deal: #F5B731;
  --deal-soft: rgba(245,183,49,.13);

  --wa: #25D366;
  --wa-dark: #128C5E;
  --wa-soft: rgba(37,211,102,.12);

  --gold: #C9A84C;
  --gold-dark: #9F7A1C;
  --gold-soft: rgba(201,168,76,.13);

  --container: 1200px;
  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 30px;

  --shadow-card: 0 2px 8px rgba(0,4,18,.5), 0 18px 44px -20px rgba(0,4,18,.7);
  --shadow-card-hover: 0 4px 14px rgba(0,4,18,.6), 0 28px 56px -22px rgba(59,130,246,.22);

  --ff-display: "Sora", sans-serif;
  --ff-body: "Inter", sans-serif;
  --ff-mono: "JetBrains Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(148,163,184,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.025) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: 0;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--ff-display); margin: 0; line-height: 1.1; letter-spacing: -0.015em; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

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

/* ============================================================
   AMBIENT BG
============================================================ */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-fx span {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}
.bg-fx span:nth-child(1) {
  width: 500px; height: 500px;
  background: #162040;
  top: -200px; right: -150px;
  opacity: .25;
}
.bg-fx span:nth-child(2) {
  width: 400px; height: 400px;
  background: #0D2030;
  bottom: 10%; left: -180px;
  opacity: .14;
}

/* ============================================================
   EYEBROW
============================================================ */
.eyebrow {
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold-soft);
  padding: 8px 14px;
  border-radius: 999px;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  padding: 16px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  white-space: nowrap;
  transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease, background .25s ease, border-color .25s ease, color .25s ease;
}
.btn:active { transform: scale(.97); }
.btn--brand {
  background: linear-gradient(180deg, #60A5FA, var(--brand));
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 14px 30px -10px rgba(37,99,235,.55);
}
.btn--brand:hover {
  transform: translateY(-3px);
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 22px 44px -12px rgba(37,99,235,.75);
}
.btn--ghost {
  background: rgba(10,21,48,.6);
  border-color: rgba(59,130,246,.25);
  color: var(--ink);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-3px); }
.btn--sm { padding: 12px 20px; font-size: 13.5px; }
.btn svg { width: 18px; height: 18px; }

/* ============================================================
   NAV
============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7,8,15,.92);
  backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,.055);
  box-shadow: 0 1px 0 rgba(255,255,255,.03), 0 4px 24px rgba(0,0,0,.5);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
}
.nav__logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #080910;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px rgba(201,168,76,.35), 0 4px 16px rgba(201,168,76,.18);
  overflow: hidden;
  flex-shrink: 0;
}
.nav__logo-mark img { width: 100%; height: 100%; object-fit: cover; }
.nav__logo-text strong {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 17px;
  display: block;
}
.nav__logo-text span {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: .3em;
  color: var(--gold);
}
.nav__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: color .2s ease;
}
.nav__back:hover { color: var(--ink); }
.nav__back svg { width: 16px; height: 16px; }

/* ============================================================
   PAGE HEADER
============================================================ */
.page-header {
  position: relative;
  z-index: 1;
  padding: 52px 0 44px;
  border-bottom: 1px solid var(--border-soft);
}
.page-header__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.page-header h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin-top: 16px;
}
.page-header p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
}
.page-header__count {
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

/* ============================================================
   CATALOG BODY
============================================================ */
.catalog-body {
  position: relative;
  z-index: 1;
  padding: 48px 0 80px;
}

/* ============================================================
   SEARCH + FILTERS
============================================================ */
.catalog-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}
.catalog-search {
  position: relative;
  max-width: 420px;
}
.catalog-search svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--muted);
  pointer-events: none;
}
.catalog-search input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 14px;
  transition: border-color .2s ease;
}
.catalog-search input::placeholder { color: var(--muted-2); }
.catalog-search input:focus { outline: none; border-color: var(--brand); }

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-btn {
  font-size: 13.5px;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  transition: all .25s ease;
}
.filter-btn:hover { border-color: var(--brand); color: var(--brand); }
.filter-btn.is-active {
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 8px 18px -8px rgba(37,99,235,.5);
}

/* ============================================================
   PRODUCT GRID & CARD
============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(264px, 1fr));
  gap: 22px;
}
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.empty-state svg { width: 40px; height: 40px; margin: 0 auto 16px; opacity: .4; }
.empty-state h3 { font-size: 18px; color: var(--ink); margin-bottom: 8px; }

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s ease;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-card-hover); }

.product-card__media {
  position: relative;
  height: 152px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  overflow: hidden;
}
.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.product-card:hover .product-card__img { transform: scale(1.08); }

.product-card__tag {
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 5px 9px;
  border-radius: 7px;
  color: var(--muted);
  background: rgba(255,255,255,.85);
  border: 1px solid var(--border-soft);
  z-index: 2;
}
.product-card__stamp {
  position: absolute;
  top: 12px; right: 12px;
  background: linear-gradient(135deg, #F5B731, #D4960E);
  color: #0A0600;
  border-radius: 10px;
  padding: 7px 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 8px 18px -6px rgba(245,183,49,.45);
  z-index: 2;
}
.product-card__stamp small {
  font-family: var(--ff-body);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.product-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.product-card__eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cat-color, var(--brand));
}
.product-card__title {
  font-size: 16.5px;
  font-family: var(--ff-display);
  font-weight: 700;
}
.product-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 20px;
}
.product-card__price { display: flex; flex-direction: column; line-height: 1.2; }
.product-card__price .old { font-size: 12.5px; color: var(--muted-2); text-decoration: line-through; }
.product-card__price .new { font-family: var(--ff-display); font-size: 21px; font-weight: 800; color: var(--ink); }
.product-card__price .new.is-deal { color: var(--deal); }

.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  padding: 12px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #34E27A, var(--wa));
  color: #073D24;
  white-space: nowrap;
  box-shadow: 0 10px 20px -8px rgba(37,211,102,.5);
  transition: transform .25s ease, box-shadow .25s ease;
}
.wa-btn:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 16px 28px -10px rgba(37,211,102,.6); }
.wa-btn svg { width: 16px; height: 16px; }

@media (max-width: 620px) {
  .product-card__footer { flex-direction: column; align-items: stretch; gap: 12px; }
  .wa-btn { justify-content: center; }
}

/* ============================================================
   MODAL
============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10,20,40,.62);
  backdrop-filter: blur(7px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.modal-overlay.is-open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface);
  border-radius: var(--radius-l);
  max-width: 800px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 40px 80px -20px rgba(10,20,40,.45);
  transform: translateY(28px) scale(.96);
  transition: transform .38s cubic-bezier(.16,1,.3,1);
  scrollbar-width: none;
}
.modal::-webkit-scrollbar { display: none; }
.modal-overlay.is-open .modal { transform: translateY(0) scale(1); }

.modal__header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-soft);
  gap: 12px;
}
.modal__header-info { display: flex; align-items: center; gap: 10px; min-width: 0; }
.modal__cat-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.modal__id { font-family: var(--ff-mono); font-size: 12px; color: var(--muted-2); }
.modal__close {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-soft);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .2s ease;
}
.modal__close:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.modal__close svg { width: 17px; height: 17px; }

.modal__body { display: grid; grid-template-columns: 1fr 1fr; }
.modal__image-wrap {
  background: var(--bg-soft);
  border-right: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
  min-height: 320px;
  position: relative;
}
.modal__img { width: 100%; max-height: 300px; object-fit: contain; border-radius: var(--radius-s); }
.modal__discount-stamp {
  position: absolute;
  top: 14px; left: 14px;
  background: linear-gradient(135deg, #F5B731, #D4960E);
  color: #0A0600;
  border-radius: 10px;
  padding: 8px 13px;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 8px 18px -6px rgba(245,183,49,.45);
}
.modal__info { padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.modal__title { font-size: clamp(18px,2.8vw,24px); font-weight: 800; line-height: 1.2; }
.modal__price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-s);
}
.modal__price-old { font-size: 13px; color: var(--muted-2); text-decoration: line-through; }
.modal__price-new { font-family: var(--ff-display); font-size: 30px; font-weight: 800; }
.modal__price-new.is-deal { color: var(--deal); }
.modal__savings-badge {
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--wa-dark);
  background: var(--wa-soft);
  padding: 4px 11px;
  border-radius: 999px;
}
.modal__wa-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #34E27A, var(--wa));
  color: #073D24;
  font-weight: 800;
  font-size: 15px;
  margin-top: auto;
  box-shadow: 0 14px 28px -10px rgba(37,211,102,.55);
  transition: transform .3s ease, box-shadow .3s ease;
}
.modal__wa-link:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -12px rgba(37,211,102,.65); }
.modal__wa-link svg { width: 19px; height: 19px; }
.modal__meta-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.modal__stars { display: flex; align-items: center; gap: 4px; }
.modal__stars-icons { display: flex; gap: 1px; }
.modal__star { width: 15px; height: 15px; color: #FACC15; }
.modal__star--empty { color: var(--border); }
.modal__rating-val { font-size: 13px; font-weight: 700; color: var(--ink); margin-left: 2px; }
.modal__bestseller {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(245,183,49,.18);
  border: 1px solid rgba(245,183,49,.3);
  color: #F5B731;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
}
.modal__bestseller svg { width: 12px; height: 12px; }
.modal__spec-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-s);
}
@media (max-width: 640px) {
  .modal__body { grid-template-columns: 1fr; }
  .modal__image-wrap { border-right: none; border-bottom: 1px solid var(--border-soft); min-height: 210px; padding: 24px; }
  .modal__info { padding: 24px; }
}

/* ============================================================
   FLOATING WA
============================================================ */
.wa-float {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 22px 15px 17px;
  border-radius: 999px;
  background: linear-gradient(180deg, #34E27A, var(--wa));
  color: #073D24;
  font-weight: 800;
  font-size: 14.5px;
  box-shadow: 0 14px 34px -8px rgba(37,211,102,.6);
  transition: transform .3s ease;
}
.wa-float:hover { transform: scale(1.05); }
.wa-float svg { width: 24px; height: 24px; }
@media (max-width: 520px) {
  .wa-float span { display: none; }
  .wa-float { padding: 16px; }
}

/* ============================================================
   REVEAL
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESULTS BAR
============================================================ */
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 12px;
  flex-wrap: wrap;
}
.results-bar__count { color: var(--muted); font-size: 14px; }
.results-bar__cat {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-soft);
  padding: 6px 14px;
  border-radius: 999px;
  display: none;
}
.results-bar__cat.is-visible { display: inline-block; }
.results-bar__left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ── PDF Button ────────────────────────────────────────────── */
.pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  background: var(--brand-soft);
  border: 1px solid rgba(59,130,246,.35);
  border-radius: var(--radius-s);
  color: var(--brand);
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .1s;
  white-space: nowrap;
}
.pdf-btn svg { width: 15px; height: 15px; stroke: currentColor; flex-shrink: 0; }
.pdf-btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.pdf-btn:active { transform: scale(.96); }
.pdf-btn.is-loading {
  opacity: .6;
  pointer-events: none;
  cursor: default;
}
.pdf-btn.is-loading svg {
  animation: pdf-spin .9s linear infinite;
}
@keyframes pdf-spin { to { transform: rotate(360deg); } }
