/* ============ Tokens ============ */
:root {
  --primary: #2B7FFF;
  --primary-600: #1964d4;
  --primary-50: #e8f2ff;
  --accent: #22D3EE;
  --ink: #0b1a2b;
  --ink-2: #35475c;
  --ink-3: #6a7a8c;
  --line: #e4ecf5;
  --bg: #ffffff;
  --bg-soft: #f4f8fd;
  --bg-blue: #eaf3ff;
  --dark: #050b18;
  --dark-2: #0c1628;
  --dark-3: #172238;
  --radius: 14px;
  --density: 1;
  --shadow-sm: 0 1px 2px rgba(10,30,60,.04), 0 2px 8px rgba(10,30,60,.04);
  --shadow-md: 0 4px 12px rgba(10,30,60,.06), 0 12px 32px rgba(10,30,60,.08);
  --shadow-lg: 0 24px 60px rgba(10,60,140,.15);
  --shadow-blue: 0 18px 48px -12px rgba(10,132,255,.45);
  --ease: cubic-bezier(.2,.7,.2,1);
  --font-display: "Inter Tight", "Helvetica Neue", sans-serif;
  --font-body: "Inter", "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.5;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ============ Scroll ============ */
html { scroll-behavior: smooth; }
::selection { background: var(--primary); color: white; }

/* ============ Layout ============ */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.stack { display: flex; flex-direction: column; gap: calc(16px * var(--density)); }
.row { display: flex; align-items: center; gap: 12px; }

/* ============ Type ============ */
.h-display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--ink);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 500;
}
.muted { color: var(--ink-3); }

/* ============ Header ============ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 32px;
  height: 68px;
}
.logo {
  display: inline-flex; align-items: center;
}
.logo-img {
  display: block;
  height: 40px; width: auto;
}
.footer .logo-img {
  height: 48px;
}
.nav {
  display: flex; gap: 2px; flex: 1; justify-content: center;
}
.nav a {
  position: relative;
  padding: 10px 14px;
  font-size: 14px; font-weight: 500;
  color: var(--ink-2);
  border-radius: 8px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav a:hover { color: var(--primary); background: var(--primary-50); }
.nav a.active { color: var(--primary); }
.nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: var(--primary); border-radius: 2px;
}

.header-actions { display: flex; gap: 4px; align-items: center; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2);
  transition: background .2s var(--ease), color .2s var(--ease);
  position: relative;
}
.icon-btn:hover { background: var(--primary-50); color: var(--primary); }
.cart-dot {
  position: absolute; top: 6px; right: 6px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--primary); color: white;
  border-radius: 10px; font-size: 10px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid white;
}
.header-right { display: flex; align-items: center; gap: 14px; }
.cart-link {
  position: relative;
  width: 40px; height: 40px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.cart-link:hover { background: var(--primary-50); color: var(--primary); }

.lang-dropdown { position: relative; }
.lang-select {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: .08em; color: var(--ink-2);
  border: 1px solid var(--line);
  background: white;
  cursor: pointer; transition: all .2s var(--ease);
}
.lang-select:hover,
.lang-select[aria-expanded="true"] { border-color: var(--primary); color: var(--primary); }
.lang-select .lang-caret { transition: transform .2s var(--ease); opacity: .7; }
.lang-select[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 120px;
  background: white; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-md);
  padding: 6px;
  display: flex; flex-direction: column;
  z-index: 60;
  animation: langMenuIn .15s var(--ease);
}
@keyframes langMenuIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.lang-menu[hidden] { display: none; }
.lang-opt {
  padding: 9px 12px; border-radius: 8px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: .08em; color: var(--ink-2);
  text-align: left;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.lang-opt:hover { background: var(--primary-50); color: var(--primary); }
.lang-opt.active { background: var(--primary-50); color: var(--primary); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 11px;
  font-weight: 600; font-size: 14px;
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: white;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { background: var(--primary-600); transform: translateY(-1px); box-shadow: 0 22px 52px -12px rgba(10,132,255,.55); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: white; color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-whatsapp {
  background: #25D366; color: white;
}
.btn-whatsapp:hover { background: #1fb858; transform: translateY(-1px); }
.btn-lg { padding: 16px 28px; font-size: 15px; border-radius: 13px; }

/* ============ Product placeholder (vial/bottle) ============ */
.placeholder {
  position: relative;
  background: linear-gradient(135deg, #f0f6ff 0%, #e6f0fc 100%);
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px);
}
.placeholder::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0, transparent 10px,
    rgba(10,132,255,.04) 10px, rgba(10,132,255,.04) 11px
  );
}
.placeholder-label {
  position: absolute; bottom: 10px; left: 10px;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--primary); letter-spacing: .08em;
  background: rgba(255,255,255,.8);
  padding: 3px 8px; border-radius: 6px;
  backdrop-filter: blur(4px);
  text-transform: uppercase;
}
.placeholder-glyph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}

/* ============ Cards ============ */
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cfe0f5;
}
.card-img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
  background: #eef3fa;
}
.card-img .placeholder,
.card-img .prod-img,
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.prod-img {
  background-size: cover;
  background-position: center;
  background-color: #0c1628;
}
.card:hover .card-img .placeholder,
.card:hover .card-img .prod-img,
.card:hover .card-img img {
  transform: scale(1.08);
}
.badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; font-weight: 600;
  color: white; z-index: 2;
}
.badge-hot { background: var(--primary); }
.badge-new { background: var(--accent); top: 12px; left: auto; right: 12px; }
.card-body { padding: 18px 20px 20px; }
.card-cat {
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--primary); letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 6px;
}
.card-title {
  font-family: var(--font-display);
  font-weight: 600; font-size: 17px;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  line-height: 1.25;
}
.card-sub { color: var(--ink-3); font-size: 13px; margin-bottom: 14px; }
.card-price-row { display: flex; justify-content: space-between; align-items: center; }
.price { font-weight: 600; font-family: var(--font-display); font-size: 18px; letter-spacing: -0.01em; }
.card-add {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--primary-50); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .2s var(--ease);
}
.card-add:hover { background: var(--primary); color: white; transform: rotate(90deg); }

/* ============ Skeleton shimmer ============ */
.skel {
  background: linear-gradient(90deg, #eef4fc 0%, #f7faff 50%, #eef4fc 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.cat-card { overflow: hidden; }
.cat-card:hover .cat-img { transform: scale(1.06); }

/* ============ Hero (DARK TECH) ============ */
.hero {
  position: relative; overflow: hidden;
  padding: 100px 0 110px;
  background: var(--dark);
  color: white;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(34,211,238,.22), transparent 65%),
    radial-gradient(ellipse 70% 60% at 15% 75%, rgba(43,127,255,.28), transparent 60%),
    linear-gradient(180deg, #050b18 0%, #0c1628 55%, #0a1020 100%);
  z-index: 0;
}
.hero::after {
  /* subtle grid */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(43,127,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43,127,255,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 40%, transparent 80%);
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { color: white; }
.hero p.lede { color: #b8c6d6; }
.hero-eyebrow { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #a8cfff; }
.hero-stats .v { color: white; }
.hero-stats .k { color: #7a8aa0; }
.hero .btn-ghost { background: rgba(255,255,255,.06); color: white; border-color: rgba(255,255,255,.15); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: white; color: white; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: white; border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px;
  color: var(--primary); letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 600; line-height: 1.02; letter-spacing: -0.035em;
  margin: 0 0 20px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lede { font-size: 17px; color: var(--ink-2); max-width: 520px; margin: 0 0 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 44px; }
.hero-stats .v { font-family: var(--font-display); font-weight: 600; font-size: 28px; letter-spacing: -0.02em; }
.hero-stats .k { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }

.hero-viz {
  position: relative; aspect-ratio: 1 / 1.05;
  animation: heroIn 1.1s var(--ease) both;
}
@keyframes heroIn {
  0% { opacity: 0; transform: scale(.85); }
  100% { opacity: 1; transform: scale(1); }
}
.hero-viz .orb {
  position: absolute; inset: 8% 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #7ebdff 0%, var(--primary) 45%, #0051a8 100%);
  box-shadow: 0 40px 100px -20px rgba(10,132,255,.6);
  animation: orbFloat 6s ease-in-out infinite;
}
@keyframes orbFloat {
  0%,100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-14px) rotate(3deg); }
}
.hero-viz .orb::before {
  content: ""; position: absolute; inset: 20% 50% 50% 20%;
  background: radial-gradient(circle, rgba(255,255,255,.7), transparent 60%);
  border-radius: 50%;
}
.hero-viz .ring {
  position: absolute; inset: 0;
  border: 1.5px dashed rgba(10,132,255,.3);
  border-radius: 50%;
  animation: spin 30s linear infinite;
}
.hero-viz .ring::before {
  content: ""; position: absolute; top: -6px; left: 50%;
  width: 12px; height: 12px; background: var(--accent); border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 20px var(--accent);
}
.hero-viz .ring.r2 { inset: 12%; animation-duration: 22s; animation-direction: reverse; border-color: rgba(34,211,238,.4); }
.hero-viz .ring.r2::before { background: var(--primary); box-shadow: 0 0 16px var(--primary); }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-viz .ring, .hero-viz .orb { display: none; }

/* ============ Hero viz variants ============ */
.viz-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity .45s ease;
  pointer-events: none;
}
.hero-viz[data-viz="chain"] .viz-chain,
.hero-viz[data-viz="hplc"]  .viz-hplc,
.hero-viz[data-viz="dna"]   .viz-dna { opacity: 1; }

.pulse-node { animation: pulseNode 2.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pulseNode {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .55; transform: scale(1.25); }
}

.viz-hplc-trace { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: traceIn 3s ease-out .2s forwards; }
@keyframes traceIn { to { stroke-dashoffset: 0; } }
.viz-hplc-scan { animation: scanX 4s linear infinite; }
@keyframes scanX {
  0%   { transform: translateX(60px); opacity: 0; }
  10%  { opacity: .5; }
  90%  { opacity: .5; }
  100% { transform: translateX(460px); opacity: 0; }
}

.viz-dna-spin { animation: dnaBreathe 6s ease-in-out infinite; transform-origin: 260px 260px; transform-box: fill-box; }
@keyframes dnaBreathe {
  0%, 100% { transform: scaleX(1); }
  50%      { transform: scaleX(.82); }
}

.hero-viz .tag {
  position: absolute;
  background: white; border: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 12px;
  box-shadow: var(--shadow-md);
  display: flex; gap: 10px; align-items: center;
  font-size: 12px;
  animation: tagFloat 4s ease-in-out infinite;
}
.hero-viz .tag .chip {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--primary-50); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.hero-viz .tag .meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hero-viz .tag .k { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.hero-viz .tag .v { font-weight: 600; font-size: 13px; color: var(--ink); white-space: nowrap; }
.hero-viz .tag { background: rgba(255,255,255,.95); }
.hero-viz .t1 { top: 10%; left: -6%; animation-delay: -1s; }
.hero-viz .t2 { bottom: 18%; right: -4%; animation-delay: -2s; }
.hero-viz .t3 { bottom: 0%; left: 12%; animation-delay: -3s; }
@keyframes tagFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ============ Sections ============ */
.section { padding: 80px 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 36px; gap: 24px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600; letter-spacing: -0.025em;
  margin: 8px 0 0;
}

/* ============ Grid ============ */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

/* ============ Best sellers carousel ============ */
.carousel-wrap { position: relative; }
.carousel {
  display: flex; gap: 22px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding-bottom: 8px;
  scrollbar-width: thin;
}
.carousel::-webkit-scrollbar { height: 6px; }
.carousel::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.carousel > * { flex: 0 0 300px; scroll-snap-align: start; }

/* ============ Testimonials ============ */
.quote-card {
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  transition: all .3s var(--ease);
}
.quote-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.quote-card .mark {
  font-family: var(--font-display); font-size: 44px;
  color: var(--primary); line-height: 1; font-weight: 700;
}
.quote-card blockquote {
  margin: 8px 0 20px; font-size: 15px; color: var(--ink-2);
  line-height: 1.55;
}
.quote-who { display: flex; align-items: center; gap: 12px; }
.quote-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13px;
}
.quote-name { font-weight: 600; font-size: 13px; }
.quote-role { color: var(--ink-3); font-size: 12px; font-family: var(--font-mono); }

/* ============ Footer ============ */
.footer {
  background: #0b1a2b; color: #b8c6d6;
  padding: 64px 0 32px;
  margin-top: 80px;
}
.footer a { color: #b8c6d6; }
.footer a:hover { color: white; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer h5 { color: white; font-size: 13px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; margin: 0 0 16px; font-weight: 500; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid #1a2e4a;
  display: flex; justify-content: space-between; font-size: 12px;
  font-family: var(--font-mono); color: #6c7d91;
}

/* ============ Category DARK banner ============ */
.cat-hero {
  padding: 64px 0 48px;
  background: var(--dark);
  color: white;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.cat-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 85% 20%, rgba(34,211,238,.28), transparent 60%),
    radial-gradient(ellipse 50% 80% at 5% 90%, rgba(43,127,255,.30), transparent 60%),
    linear-gradient(180deg, #050b18, #0c1628);
  z-index: 0;
}
.cat-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(43,127,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43,127,255,.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 40%, transparent 85%);
  z-index: 0;
}
.cat-hero > * { position: relative; z-index: 1; }
.cat-hero .breadcrumbs { color: #7a8aa0; }
.cat-hero .breadcrumbs a { color: #a8cfff; }
.cat-hero h1 { color: white; }
.cat-hero p { color: #b8c6d6; }
.breadcrumbs {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-3); margin-bottom: 12px;
}
.breadcrumbs a { color: var(--ink-3); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .sep { margin: 0 8px; color: var(--line); }

.cat-grid { display: grid; grid-template-columns: 280px 1fr; gap: 40px; padding: 40px 0 80px; }
.sidebar h4 {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-3); margin: 0 0 16px; font-weight: 500;
}
.side-card {
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
  margin-bottom: 24px;
}
.hot-item {
  display: grid; grid-template-columns: 64px 1fr; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: all .2s var(--ease);
}
.hot-item:last-child { border-bottom: none; }
.hot-item:hover { transform: translateX(2px); }
.hot-item:hover .hot-title { color: var(--primary); }
.hot-thumb {
  width: 64px; height: 64px; border-radius: 10px;
  overflow: hidden; background: #eef3fa;
}
.hot-thumb .prod-img { width: 100%; height: 100%; }
.hot-title { font-weight: 600; font-size: 13px; line-height: 1.3; margin-bottom: 2px; transition: color .2s var(--ease); }
.hot-rank { font-family: var(--font-mono); font-size: 10px; color: var(--primary); letter-spacing: .1em; margin-bottom: 4px; font-weight: 600; }
.hot-price { font-family: var(--font-display); font-weight: 600; font-size: 13px; }

.filter-bar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.filter-pills { display: flex; gap: 8px; }
.pill {
  padding: 8px 14px; border-radius: 999px;
  background: white; border: 1px solid var(--line);
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  cursor: pointer; transition: all .2s var(--ease);
}
.pill:hover { border-color: var(--primary); color: var(--primary); }
.pill.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ============ Product detail ============ */
.pd-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px;
  padding: 40px 0 80px;
}
.pd-gallery { position: relative; }
.pd-main {
  aspect-ratio: 1; border-radius: var(--radius);
  overflow: hidden; position: relative; cursor: zoom-in;
  background: #0c1628;
}
.pd-main .placeholder,
.pd-main .prod-img,
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-magnifier {
  position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 8px 40px rgba(0,0,0,.3);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s var(--ease);
  background-repeat: no-repeat;
  z-index: 2;
}
.pd-thumbs {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
  margin-top: 12px;
}
.pd-thumb {
  aspect-ratio: 1; border-radius: 10px;
  overflow: hidden; cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s var(--ease);
}
.pd-thumb.active { border-color: var(--primary); }
.pd-thumb .placeholder,
.pd-thumb .prod-img,
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }

.pd-title { font-family: var(--font-display); font-size: clamp(28px, 3vw, 40px); font-weight: 600; letter-spacing: -0.025em; margin: 10px 0 12px; line-height: 1.1; }
.pd-sku { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: .1em; text-transform: uppercase; }
.pd-rating { display: flex; align-items: center; gap: 8px; margin: 8px 0 20px; }
.pd-stars { color: #f59e0b; font-size: 14px; letter-spacing: 2px; }
.pd-price-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.pd-price {
  font-family: var(--font-display); font-weight: 600;
  font-size: 40px; letter-spacing: -0.025em; color: var(--primary);
  transition: opacity .2s var(--ease);
}
.currency-switch {
  display: inline-flex; background: var(--bg-soft); border-radius: 10px; padding: 3px; gap: 2px;
  border: 1px solid var(--line);
}
.currency-switch button {
  padding: 6px 12px; font-size: 12px; font-weight: 600; color: var(--ink-3);
  border-radius: 7px; font-family: var(--font-mono); letter-spacing: .05em;
}
.currency-switch button.active { background: white; color: var(--primary); box-shadow: var(--shadow-sm); }

.pd-section { margin-bottom: 24px; }
.pd-section label { display: block; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin-bottom: 10px; }
.spec-list { display: flex; flex-wrap: wrap; gap: 10px; }
.spec-btn {
  padding: 12px 18px; border-radius: 11px;
  background: white; border: 1.5px solid var(--line);
  font-size: 14px; font-weight: 500;
  transition: all .2s var(--ease);
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  min-width: 110px;
}
.spec-btn .sv { font-weight: 600; font-size: 14px; }
.spec-btn .sp { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.spec-btn:hover { border-color: var(--primary); }
.spec-btn.active { border-color: var(--primary); background: var(--primary-50); color: var(--primary); }
.spec-btn.active .sp { color: var(--primary); }

.qty-btn-group {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--line); border-radius: 11px; overflow: hidden;
}
.qty-btn-group button {
  width: 40px; height: 44px; font-size: 18px; color: var(--ink-2);
  transition: background .15s var(--ease);
}
.qty-btn-group button:hover { background: var(--primary-50); color: var(--primary); }
.qty-btn-group .num { width: 48px; text-align: center; font-weight: 600; font-size: 15px; }

.pd-actions { display: flex; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.pd-actions .btn { flex: 1; min-width: 180px; }

.pd-tabs {
  display: flex; gap: 4px; margin-top: 40px; border-bottom: 1px solid var(--line);
}
.pd-tab {
  padding: 14px 22px; font-weight: 600; font-size: 14px;
  color: var(--ink-3); position: relative;
  transition: color .2s var(--ease);
}
.pd-tab:hover { color: var(--ink); }
.pd-tab.active { color: var(--primary); }
.pd-tab.active::after {
  content: ""; position: absolute; left: 22px; right: 22px; bottom: -1px;
  height: 2px; background: var(--primary);
}
.pd-tab-content { padding: 28px 0 0; max-width: 800px; color: var(--ink-2); font-size: 15px; line-height: 1.7; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.feature-item {
  padding: 16px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg-soft);
}
.feature-item .k { font-family: var(--font-mono); font-size: 10px; color: var(--primary); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; font-weight: 600; }
.feature-item .v { font-weight: 600; font-size: 14px; }

/* ============ Cart drawer ============ */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(11,26,43,.4);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
  backdrop-filter: blur(3px);
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100vh; width: 440px;
  background: white; z-index: 90;
  transform: translateX(100%);
  transition: transform .4s var(--ease);
  display: flex; flex-direction: column;
  box-shadow: -24px 0 60px rgba(0,0,0,.15);
}
.drawer.open { transform: translateX(0); }
.drawer-head { padding: 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.drawer-head h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin: 0; letter-spacing: -0.02em; }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 24px; }
.drawer-foot { padding: 24px; border-top: 1px solid var(--line); background: var(--bg-soft); }

.cart-row {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.cart-row:last-child { border-bottom: none; }
.cart-thumb { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; }
.cart-thumb .placeholder { width: 100%; height: 100%; }
.cart-name { font-weight: 600; font-size: 14px; }
.cart-meta { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.cart-price { font-weight: 600; font-family: var(--font-display); margin-top: 6px; font-size: 15px; }
.cart-remove { color: var(--ink-3); font-size: 12px; margin-top: 6px; text-decoration: underline; }
.cart-remove:hover { color: #dc2626; }
.empty-cart {
  text-align: center; padding: 60px 20px; color: var(--ink-3);
}
.empty-cart .icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--bg-soft); display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: var(--primary);
}

/* ============ Checkout ============ */
.co-grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px;
  padding: 40px 0 80px;
}
.form-section {
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 28px 24px;
  margin-bottom: 20px;
}
.form-section h3 {
  font-family: var(--font-display); font-size: 18px; font-weight: 600;
  margin: 0 0 4px; letter-spacing: -0.01em;
}
.form-section .sh { color: var(--ink-3); font-size: 13px; margin-bottom: 20px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; font-weight: 500; }
.field input, .field select {
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: white; color: var(--ink);
  transition: border-color .2s var(--ease);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-50); }

.order-summary {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  position: sticky; top: 92px;
}
.os-item {
  display: grid; grid-template-columns: 54px 1fr auto; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center;
}
.os-thumb { width: 54px; height: 54px; border-radius: 8px; overflow: hidden; }
.os-thumb .placeholder { width: 100%; height: 100%; }
.os-name { font-size: 13px; font-weight: 600; }
.os-meta { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); margin-top: 2px; }
.os-line { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.os-line.total { font-family: var(--font-display); font-size: 20px; font-weight: 600; padding: 16px 0 0; border-top: 1px solid var(--line); margin-top: 8px; }
.os-line.discount { color: #16a34a; }

.promo-row { display: flex; gap: 8px; margin: 16px 0; }
.promo-row input { flex: 1; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; }
.promo-row input:focus { outline: none; border-color: var(--primary); }

.chip-good {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: #dcfce7; color: #166534;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
}
.chip-bad {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: #fee2e2; color: #991b1b;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
}

/* ============ Order success ============ */
.success-wrap {
  max-width: 640px; margin: 0 auto; text-align: center;
  padding: 80px 32px;
}
.success-badge {
  width: 88px; height: 88px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white; display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  box-shadow: var(--shadow-blue);
  animation: pop .6s var(--ease) both;
}
@keyframes pop {
  0% { transform: scale(0); }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.order-num {
  display: inline-block;
  padding: 14px 28px; border-radius: 14px;
  background: var(--bg-soft); border: 1px dashed var(--primary);
  font-family: var(--font-mono); font-size: 20px; font-weight: 600;
  letter-spacing: .08em; color: var(--primary);
  margin: 20px 0 28px;
}

/* ============ Add to cart flyover ============ */
.flyer {
  position: fixed; z-index: 100; pointer-events: none;
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 8px 20px rgba(10,132,255,.5);
  transition: all .8s cubic-bezier(.5,-.3,.5,1.3);
}
.cart-bump { animation: bump .4s var(--ease); }
@keyframes bump {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

/* ============ Tweaks panel ============ */
.tweaks {
  position: fixed; right: 20px; bottom: 20px; z-index: 120;
  width: 280px;
  background: white; border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 18px; display: none;
}
.tweaks.open { display: block; }
.tweaks h4 { margin: 0 0 14px; font-family: var(--font-display); font-size: 14px; font-weight: 600; letter-spacing: -0.01em; display: flex; justify-content: space-between; align-items: center; }
.tweaks .row-t { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 10px; font-size: 12px; color: var(--ink-2); }
.tweaks input[type=color] { width: 28px; height: 28px; border: none; padding: 0; border-radius: 6px; background: none; cursor: pointer; }
.tweaks input[type=range] { flex: 1; }
.tweaks .seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.tweaks .seg button { padding: 5px 10px; font-size: 11px; background: white; color: var(--ink-3); }
.tweaks .seg button.active { background: var(--primary); color: white; }

/* ============ Responsive (compact) ============ */
@media (max-width: 960px) {
  .hero-grid, .pd-grid, .cat-grid, .co-grid, .footer-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav { display: none; }
}
