:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --text: #101a2c;
  --muted: #5b6b82;
  --line: #e4e9f2;
  --brand: #2563eb;
  --brand-dark: #1e50c8;
  --navy: #0f1a2e;
  --green: #16a34a;
  --amber: #d97706;
  --red: #dc2626;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 12px; }

h1 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; }
h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.02em; font-weight: 700; }
h3 { font-size: 17px; font-weight: 600; }

a { color: inherit; text-decoration: none; }
img { display: block; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--brand);
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 500;
}

.section { padding: 80px 24px 20px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--line);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 18px;
}
.logo span { color: var(--brand); font-family: var(--mono); font-weight: 400; }
.logo-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #4f46e5);
  border-radius: 9px;
}
.logo-mark svg { width: 16px; height: 16px; }

.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(16, 26, 44, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cart-btn:hover { border-color: #c9d4e6; box-shadow: 0 3px 10px rgba(16, 26, 44, 0.08); }
.cart-btn svg { width: 17px; height: 17px; color: var(--brand); }
.cart-count {
  min-width: 21px; height: 21px;
  display: grid; place-items: center;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 11.5px;
  border-radius: 999px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 56px;
  padding-top: 76px;
  padding-bottom: 64px;
}
.hero-copy .lead { margin-top: 18px; color: var(--muted); max-width: 52ch; font-size: 17px; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  padding: 13px 24px;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: transform 0.15s ease, filter 0.2s, background 0.2s, border-color 0.2s;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-ghost { background: var(--panel); color: var(--text); border-color: var(--line); box-shadow: 0 1px 3px rgba(16, 26, 44, 0.06); }
.btn-ghost:hover { border-color: #c9d4e6; }

.hero-collage { position: relative; }
.collage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.tile {
  height: 150px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(16, 26, 44, 0.07);
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile-wide { grid-column: span 2; height: 120px; }
.float-badge {
  position: absolute;
  left: -18px;
  bottom: -18px;
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 13px 18px;
  box-shadow: 0 16px 40px rgba(16, 26, 44, 0.14);
}
.fb-icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: #ecfdf3;
  border-radius: 10px;
  color: var(--green);
}
.fb-icon svg { width: 19px; height: 19px; }
.float-badge b { display: block; font-size: 13.5px; }
.float-badge span { font-size: 12px; color: var(--muted); }

.trustbar { border-block: 1px solid var(--line); background: var(--panel); }
.trust-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.trust-item { display: flex; align-items: center; gap: 12px; justify-content: center; }
.trust-item svg { width: 20px; height: 20px; color: var(--brand); flex-shrink: 0; }
.trust-item b { font-size: 13.5px; font-weight: 600; display: block; }
.trust-item span { font-size: 12px; color: var(--muted); display: block; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter:hover { color: var(--text); border-color: #c9d4e6; }
.filter.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(16, 26, 44, 0.1);
}

.thumb {
  height: 150px;
  overflow: hidden;
  background: #f1f5f9;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-top-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cat-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ac, var(--brand));
  background: color-mix(in srgb, var(--ac, var(--brand)) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--ac, var(--brand)) 25%, transparent);
  padding: 4px 9px;
  border-radius: 6px;
  font-weight: 500;
}
.badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--amber);
  background: #fef3e2;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}
.card .tagline { font-size: 13.5px; color: var(--muted); min-height: 42px; }

.price-row { display: flex; align-items: baseline; gap: 10px; margin-top: auto; }
.price { font-family: var(--mono); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.old-price { font-family: var(--mono); font-size: 13px; color: #94a3b8; text-decoration: line-through; }
.delivery-note { font-size: 12px; color: var(--green); font-weight: 600; }

.add-btn, .buy-btn {
  margin-top: 4px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 11px;
  cursor: pointer;
  color: #fff;
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 10px;
  transition: all 0.2s;
}
.add-btn svg, .buy-btn svg { width: 15px; height: 15px; }
.add-btn:hover, .buy-btn:hover { background: var(--brand-dark); transform: translateY(-1px); }

.deals-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

.deal {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 4px 16px rgba(16, 26, 44, 0.05);
}
.deal-pct {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 700;
  color: var(--amber);
  white-space: nowrap;
}
.deal p { font-size: 13.5px; color: var(--muted); margin: 5px 0 12px; }
.deal code {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--brand);
  border: 1px dashed #b6ccf5;
  background: #eff5ff;
  padding: 6px 12px;
  border-radius: 7px;
}

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(16, 26, 44, 0.08); }
.feature svg { width: 28px; height: 28px; color: var(--brand); margin-bottom: 14px; }
.feature h3 { margin-bottom: 8px; }
.feature p { font-size: 13.5px; color: var(--muted); }

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  background: linear-gradient(120deg, #eef4ff, #f8f5ff);
  border: 1px solid #dbe6f8;
  border-radius: 18px;
  padding: 44px;
}
.cta-panel h2 { margin-bottom: 6px; }
#newsForm { display: flex; gap: 10px; flex-wrap: wrap; }
#newsForm input {
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
#newsForm input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }

.footer { background: var(--navy); color: #cbd5e1; margin-top: 90px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-top: 54px;
  padding-bottom: 40px;
}
.footer-grid > div { display: grid; gap: 10px; align-content: start; }
.footer-grid p { font-size: 13.5px; max-width: 34ch; color: #94a3b8; }
.footer h4 { font-size: 12px; letter-spacing: 0.12em; color: #94a3b8; text-transform: uppercase; margin-bottom: 4px; font-weight: 600; }
.footer-grid a { font-size: 14px; color: #cbd5e1; transition: color 0.2s; }
.footer-grid a:hover { color: #fff; }
.footer .logo { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid #233150;
  padding-top: 20px;
  padding-bottom: 26px;
  font-size: 12.5px;
  color: #94a3b8;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 26, 46, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
  z-index: 90;
}
.overlay.show { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 100vw);
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.3, 1);
  z-index: 100;
  box-shadow: -24px 0 60px rgba(16, 26, 44, 0.18);
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h3 { font-weight: 700; font-size: 16px; letter-spacing: 0.02em; }
.icon-btn {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
  border-radius: 9px;
  transition: all 0.2s;
}
.icon-btn:hover { color: var(--red); border-color: #f3c6c6; background: #fef2f2; }

.drawer-items { flex: 1; overflow-y: auto; padding: 8px 22px; }
.cart-empty {
  text-align: center;
  color: var(--muted);
  padding: 60px 20px;
  font-size: 14px;
}
.cart-item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.ci-img {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px;
}
.ci-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ci-info { display: grid; gap: 2px; }
.ci-name { font-size: 14px; font-weight: 600; }
.ci-unit { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.ci-right { display: grid; gap: 8px; justify-items: end; }
.qty { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty button {
  width: 27px; height: 27px;
  background: #fff;
  border: none;
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
}
.qty button:hover { background: var(--bg); color: var(--brand); }
.qty span { min-width: 26px; text-align: center; font-family: var(--mono); font-size: 12.5px; }
.ci-total { font-family: var(--mono); font-size: 13.5px; font-weight: 700; }
.ci-rm { background: none; border: none; color: #94a3b8; font-size: 14px; cursor: pointer; }
.ci-rm:hover { color: var(--red); }

.drawer-foot { border-top: 1px solid var(--line); padding: 20px 22px; display: grid; gap: 12px; }
.subtotal-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; font-weight: 600; }
.subtotal-row strong { font-family: var(--mono); font-size: 21px; letter-spacing: -0.02em; }

.toast-wrap { position: fixed; right: 22px; bottom: 22px; display: grid; gap: 10px; z-index: 200; }
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  padding: 13px 18px;
  border-radius: 11px;
  box-shadow: 0 16px 44px rgba(16, 26, 44, 0.16);
  animation: toastIn 0.3s cubic-bezier(0.2, 1, 0.3, 1);
}
.toast.out { animation: toastOut 0.3s forwards; }
@keyframes toastIn { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toastOut { to { transform: translateY(16px); opacity: 0; } }

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

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

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; gap: 44px; }
  .float-badge { left: 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero-stats { gap: 22px; }
  .section { padding: 62px 24px 10px; }
  .cta-panel { padding: 30px; }
}
