/* ============================================================
   Meridian — futuristic dark storefront
   ============================================================ */
:root {
  --bg: #060a12;
  --bg-2: #0a1018;
  --surface: rgba(18, 26, 38, 0.72);
  --surface-solid: #0e1622;
  --border: rgba(120, 200, 230, 0.12);
  --border-strong: rgba(120, 220, 240, 0.28);
  --text: #e8f1f7;
  --text-dim: #8da3b5;
  --text-faint: #5d7387;
  --accent: #22d3ee;
  --accent-2: #34f5c5;
  --accent-3: #4f8cff;
  --danger: #ff6b81;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.8);
  --glow: 0 0 0 1px rgba(34, 211, 238, 0.25), 0 0 30px -6px rgba(34, 211, 238, 0.45);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Sora", var(--font);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[id] { scroll-margin-top: 86px; } /* keep anchor targets clear of the sticky header */
.container { width: min(1440px, 92vw); margin: 0 auto; }

/* ---------- Background FX ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -3;
  background-image:
    linear-gradient(rgba(80, 160, 200, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 160, 200, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
}
.bg-glow {
  position: fixed; z-index: -2; border-radius: 50%;
  filter: blur(120px); opacity: 0.5; pointer-events: none;
}
.bg-glow--1 { width: 540px; height: 540px; top: -180px; left: -120px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.5), transparent 70%); }
.bg-glow--2 { width: 620px; height: 620px; top: 200px; right: -200px;
  background: radial-gradient(circle, rgba(79, 140, 255, 0.4), transparent 70%); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(6, 10, 18, 0.72);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s, background 0.3s;
}
.site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(0,0,0,0.9); }
.header-inner { display: flex; align-items: center; gap: 22px; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 18px; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #04121a; box-shadow: var(--glow);
}
.brand-mark i { width: 20px; height: 20px; }
.brand-text { white-space: nowrap; }

.search-wrap { position: relative; flex: 1; max-width: 440px; }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-dim); }
.search-input {
  width: 100%; height: 42px; padding: 0 16px 0 42px;
  background: rgba(12, 20, 30, 0.8); border: 1px solid var(--border);
  border-radius: 12px; color: var(--text); font-size: 14px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-input::placeholder { color: var(--text-dim); }
.search-input:focus { border-color: var(--border-strong); box-shadow: 0 0 0 3px rgba(34,211,238,0.12); }

.header-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.header-link { color: var(--text-dim); font-weight: 500; font-size: 14px; transition: color 0.2s; }
.header-link:hover { color: var(--text); }
.cart-btn {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px;
  background: rgba(12, 20, 30, 0.8); border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); transition: border-color 0.2s, transform 0.15s;
}
.cart-btn:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.cart-btn i { width: 20px; height: 20px; }
.cart-count {
  position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
  background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #04121a;
  border-radius: 999px; border: 2px solid var(--bg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn i { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-3)); color: #03121a;
  box-shadow: 0 12px 28px -12px rgba(34, 211, 238, 0.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(34, 211, 238, 0.85); }
.btn-ghost { background: rgba(255,255,255,0.03); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 60px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: var(--accent-2); background: rgba(52, 245, 197, 0.08);
  border: 1px solid rgba(52, 245, 197, 0.2); padding: 7px 14px; border-radius: 999px;
}
.pill i { width: 15px; height: 15px; }
.hero-title { font-family: var(--display); font-size: clamp(34px, 5vw, 56px); line-height: 1.06; font-weight: 800; margin: 20px 0 16px; letter-spacing: -0.02em; }
.grad { background: linear-gradient(120deg, var(--accent-2), var(--accent), var(--accent-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--text-dim); font-size: 18px; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; margin: 30px 0 36px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--display); font-size: 26px; color: var(--text); }
.hero-stats span { font-size: 13px; color: var(--text-dim); }

.hero-visual { position: relative; height: 360px; display: grid; place-items: center; }
.orb {
  position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: conic-gradient(from 180deg, var(--accent-3), var(--accent), var(--accent-2), var(--accent-3));
  filter: blur(8px); opacity: 0.28; animation: spin 18s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-card {
  position: relative; z-index: 2; width: 230px; padding: 30px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 22px;
  backdrop-filter: blur(14px); box-shadow: var(--shadow); text-align: center;
}
.hero-card > i { width: 64px; height: 64px; color: var(--accent); margin-bottom: 18px; }
.hero-card-bars { display: flex; gap: 8px; justify-content: center; align-items: flex-end; height: 56px; }
.hero-card-bars span { width: 14px; border-radius: 6px; background: linear-gradient(var(--accent-2), var(--accent)); animation: pulse 1.4s ease-in-out infinite; }
.hero-card-bars span:nth-child(1) { height: 40%; animation-delay: 0s; }
.hero-card-bars span:nth-child(2) { height: 90%; animation-delay: 0.2s; }
.hero-card-bars span:nth-child(3) { height: 60%; animation-delay: 0.4s; }
.hero-card-bars span:nth-child(4) { height: 75%; animation-delay: 0.6s; }
@keyframes pulse { 0%,100% { transform: scaleY(0.6); opacity: 0.6; } 50% { transform: scaleY(1); opacity: 1; } }

/* ---------- Features ---------- */
.features { padding: 30px 0 50px; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; backdrop-filter: blur(10px); transition: border-color 0.2s, transform 0.2s;
}
.feature:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.feature i { width: 26px; height: 26px; color: var(--accent); margin-bottom: 14px; }
.feature h3 { font-family: var(--display); font-size: 16px; margin-bottom: 6px; }
.feature p { color: var(--text-dim); font-size: 14px; }

/* ---------- Catalog ---------- */
.catalog { padding: 40px 0 90px; }
.catalog-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.section-title { font-family: var(--display); font-size: 32px; font-weight: 700; }
.section-sub { color: var(--text-dim); margin-top: 4px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-pill {
  padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(12, 20, 30, 0.6); border: 1px solid var(--border); color: var(--text-dim);
  transition: all 0.18s;
}
.filter-pill:hover { color: var(--text); border-color: var(--border-strong); }
.filter-pill.active { background: linear-gradient(135deg, var(--accent), var(--accent-3)); color: #03121a; border-color: transparent; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; backdrop-filter: blur(10px);
  display: flex; flex-direction: column; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-4px); box-shadow: var(--shadow); }
.card { cursor: pointer; }
/* Whole-card link overlay (stretched link) — buttons sit above it */
.card-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card .badge, .card .quick-btn { z-index: 3; }
.card .add-btn { position: relative; z-index: 3; }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, #0c1622, #122031); cursor: pointer; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .card-media img { transform: scale(1.06); }
.card-media .ph { display: grid; place-items: center; height: 100%; color: var(--accent); }
.card-media .ph i { width: 48px; height: 48px; opacity: 0.5; }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; padding: 5px 10px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #03121a;
}
.badge.out { background: rgba(20,30,42,0.9); color: var(--text-dim); border: 1px solid var(--border); }
.quick-btn {
  position: absolute; bottom: 12px; right: 12px; z-index: 2; display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px; background: rgba(6,10,18,0.7);
  border: 1px solid var(--border-strong); color: var(--text); opacity: 0; transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s, background 0.2s;
}
.quick-btn i { width: 18px; height: 18px; }
.card:hover .quick-btn { opacity: 1; transform: translateY(0); }
.quick-btn:hover { background: var(--accent); color: #03121a; }

.card-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-cat { font-size: 12px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.04em; }
.card-name { font-family: var(--display); font-size: 16px; font-weight: 600; line-height: 1.3; }
.card-desc { font-size: 13px; color: var(--text-dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price .from-pre { font-size: 12px; font-weight: 600; color: var(--text-dim); align-self: center; }
.price .now { font-family: var(--display); font-size: 20px; font-weight: 700; }
.price .was { font-size: 13px; color: var(--text-faint); text-decoration: line-through; }
.add-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px;
  background: rgba(34, 211, 238, 0.12); border: 1px solid var(--border-strong); color: var(--accent);
  transition: background 0.18s, color 0.18s, transform 0.12s;
}
.add-btn i { width: 20px; height: 20px; }
.add-btn:hover { background: var(--accent); color: #03121a; transform: translateY(-2px); }
.add-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.empty-state { text-align: center; padding: 60px 0; color: var(--text-dim); }
.empty-state i { width: 46px; height: 46px; margin-bottom: 12px; opacity: 0.5; }

/* ---------- Cart drawer ---------- */
.drawer-overlay, .modal-overlay {
  position: fixed; inset: 0; z-index: 60; background: rgba(2, 6, 12, 0.6);
  backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.drawer-overlay.open, .modal-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; z-index: 70; width: min(420px, 100vw); height: 100%;
  background: var(--surface-solid); border-left: 1px solid var(--border-strong);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
}
.cart-drawer.open { transform: translateX(0); }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 16px; border-bottom: 1px solid var(--border); }
.cart-header h3 { font-family: var(--display); font-size: 18px; display: flex; align-items: center; gap: 10px; }
.cart-header i { width: 20px; height: 20px; color: var(--accent); }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: transparent; border: 1px solid var(--border); color: var(--text); transition: border-color 0.2s, background 0.2s; }
.icon-btn:hover { border-color: var(--border-strong); background: rgba(255,255,255,0.04); }
.icon-btn i { width: 18px; height: 18px; }

.cart-items { flex: 1; overflow-y: auto; padding: 16px 22px; display: flex; flex-direction: column; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; }
.cart-item-media { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: #0c1622; }
.cart-item-media img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info h4 { font-size: 14px; font-weight: 600; line-height: 1.3; }
.cart-item-info .ci-price { font-size: 13px; color: var(--text-dim); margin-top: 2px; }
.qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty button { width: 26px; height: 26px; border-radius: 7px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--text); display: grid; place-items: center; }
.qty button:hover { border-color: var(--border-strong); }
.qty span { min-width: 18px; text-align: center; font-size: 14px; font-weight: 600; }
.ci-remove { background: transparent; border: none; color: var(--text-faint); display: grid; place-items: center; }
.ci-remove:hover { color: var(--danger); }
.ci-remove i { width: 16px; height: 16px; }

.cart-empty { flex: 1; display: none; flex-direction: column; align-items: center; justify-content: center; color: var(--text-dim); gap: 12px; }
.cart-empty i { width: 48px; height: 48px; opacity: 0.4; }
.cart-drawer.empty .cart-items, .cart-drawer.empty .cart-footer { display: none; }
.cart-drawer.empty .cart-empty { display: flex; }

.cart-footer { padding: 20px 22px; border-top: 1px solid var(--border); }
.cart-row { display: flex; justify-content: space-between; align-items: center; font-size: 16px; margin-bottom: 6px; }
.cart-row strong { font-family: var(--display); font-size: 22px; }
.cart-tax { font-size: 12px; color: var(--text-faint); margin-bottom: 16px; }

/* ---------- Modal ---------- */
.modal { position: fixed; z-index: 80; top: 50%; left: 50%; transform: translate(-50%, -46%); width: min(820px, 92vw); max-height: 88vh; overflow-y: auto;
  background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: 20px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s; }
.modal-overlay.open ~ .modal, .modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 3; background: rgba(6,10,18,0.6); }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; }
.modal-media { aspect-ratio: 1; background: linear-gradient(135deg, #0c1622, #122031); }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-info { padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.modal-info .card-cat { font-size: 13px; }
.modal-info h2 { font-family: var(--display); font-size: 26px; line-height: 1.2; }
.modal-info .m-desc { color: var(--text-dim); font-size: 15px; }
.m-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.m-tag { font-size: 12px; padding: 5px 10px; border-radius: 8px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--text-dim); }
.m-sku { font-size: 12px; color: var(--text-faint); }
.modal-info .price { margin-top: 6px; }
.modal-info .price .now { font-size: 28px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 24px); z-index: 100;
  background: var(--surface-solid); border: 1px solid var(--border-strong); color: var(--text);
  padding: 13px 20px; border-radius: 12px; font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast i { width: 18px; height: 18px; color: var(--accent-2); }

/* ---------- Responsive ---------- */
@media (min-width: 1280px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-media { aspect-ratio: 16/10; }
}
@media (max-width: 620px) {
  .search-wrap { display: none; }
  .header-link { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
}

/* ============================================================
   Why Meridian / How it works / Footer / Qty stepper
   ============================================================ */
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent);
  background: rgba(34,211,238,0.08); border: 1px solid rgba(34,211,238,0.2);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 16px; }
.eyebrow i { width: 14px; height: 14px; }

.why { padding: 50px 0 30px; }
.why .features-grid { margin-bottom: 30px; }
.feature-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px;
  background: linear-gradient(135deg, rgba(34,211,238,0.16), rgba(79,140,255,0.16));
  border: 1px solid var(--border-strong); margin-bottom: 16px; }
.feature-ic i { width: 24px; height: 24px; color: var(--accent); margin: 0; }

.trust-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; backdrop-filter: blur(10px); }
.trust-item { display: flex; align-items: center; gap: 13px; }
.trust-item > i { width: 26px; height: 26px; color: var(--accent-2); flex-shrink: 0; }
.trust-item strong { display: block; font-family: var(--display); font-size: 15px; }
.trust-item span { font-size: 12.5px; color: var(--text-dim); }

.how { padding: 50px 0 30px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px; backdrop-filter: blur(10px); overflow: hidden; transition: border-color .2s, transform .2s; }
.step:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.step-no { position: absolute; top: 14px; right: 18px; font-family: var(--display); font-weight: 800;
  font-size: 40px; color: rgba(120,200,230,0.08); }
.step > i { width: 30px; height: 30px; color: var(--accent); margin-bottom: 14px; }
.step h3 { font-family: var(--display); font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 14px; }

/* Quantity stepper (quick-view) */
.qty-select { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 0 4px; }
.qty-label { font-size: 14px; font-weight: 600; color: var(--text-dim); }
.qty-stepper { display: inline-flex; align-items: center; gap: 4px; background: rgba(12,20,30,0.7);
  border: 1px solid var(--border); border-radius: 12px; padding: 4px; }
.qty-stepper button { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--text); transition: .15s; }
.qty-stepper button:hover { border-color: var(--border-strong); color: var(--accent); }
.qty-stepper button i { width: 16px; height: 16px; }
.qty-stepper input { width: 52px; height: 36px; text-align: center; background: transparent; border: none;
  color: var(--text); font-family: var(--display); font-size: 17px; font-weight: 700; outline: none;
  -moz-appearance: textfield; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 60px;
  background: linear-gradient(180deg, transparent, rgba(10,16,24,0.6)); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; padding: 56px 0 36px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { font-family: var(--display); font-size: 18px; }
.footer-desc { color: var(--text-dim); font-size: 14px; margin: 16px 0 18px; max-width: 340px; line-height: 1.6; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact a, .footer-addr { display: inline-flex; align-items: center; gap: 9px; color: var(--text-dim); font-size: 14px; transition: color .2s; }
.footer-contact a:hover { color: var(--accent); }
.footer-contact i { width: 16px; height: 16px; color: var(--accent); }
.footer-col h4 { font-family: var(--display); font-size: 14px; font-weight: 700; margin-bottom: 16px; letter-spacing: 0.02em; }
.footer-col a { display: block; color: var(--text-dim); font-size: 14px; padding: 6px 0; transition: color .2s; }
.footer-col a:hover { color: var(--text); }

.footer-disclaimer { display: flex; gap: 12px; align-items: flex-start; padding: 18px 20px;
  background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 28px; }
.footer-disclaimer i { width: 18px; height: 18px; color: var(--text-dim); flex-shrink: 0; margin-top: 2px; }
.footer-disclaimer p { font-size: 12.5px; color: var(--text-faint); line-height: 1.6; }
.footer-disclaimer strong { color: var(--text-dim); }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px;
  flex-wrap: wrap; padding: 22px 0 36px; border-top: 1px solid var(--border); }
.footer-note { color: var(--text-faint); font-size: 13px; }
.footer-pay { display: flex; align-items: center; gap: 10px; color: var(--text-faint); font-size: 13px; }
.footer-pay i { width: 22px; height: 22px; color: var(--text-dim); }
.footer-legal-links { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.footer-legal-links a { color: var(--text-dim); transition: color .2s; }
.footer-legal-links a:hover { color: var(--accent); }
.footer-legal-links span { color: var(--text-faint); }

@media (max-width: 900px) {
  .trust-bar { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .trust-bar { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Legal / content pages */
.legal-page { max-width: 820px; margin: 0 auto; padding: 50px 0 80px; }
.legal-page h1 { font-family: var(--display); font-size: 34px; margin-bottom: 8px; }
.legal-page .updated { color: var(--text-faint); font-size: 13px; margin-bottom: 30px; }
.legal-page h2 { font-family: var(--display); font-size: 20px; margin: 30px 0 10px; }
.legal-page p, .legal-page li { color: var(--text-dim); font-size: 15px; line-height: 1.7; }
.legal-page ul { padding-left: 22px; margin: 8px 0; }
.legal-page a { color: var(--accent); }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--text-dim); font-size: 14px; margin-bottom: 24px; }
.back-link:hover { color: var(--accent); }
.back-link i { width: 16px; height: 16px; }

/* ============================================================
   Checkout (on-site card payment)
   ============================================================ */
.checkout-view {
  position: fixed; inset: 0; z-index: 120; overflow-y: auto;
  background: var(--bg);
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.checkout-view.open { opacity: 1; pointer-events: auto; }
.checkout-inner { padding: 30px 0 80px; }
.checkout-back {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px;
  background: transparent; border: 1px solid var(--border); color: var(--text-dim);
  padding: 9px 16px; border-radius: 10px; font-size: 14px; font-weight: 500; transition: .2s;
}
.checkout-back:hover { border-color: var(--border-strong); color: var(--text); }
.checkout-back i { width: 16px; height: 16px; }
.checkout-grid { display: grid; grid-template-columns: 1.4fr 0.9fr; gap: 40px; align-items: start; }
.checkout-title { font-family: var(--display); font-size: 30px; font-weight: 800; margin-bottom: 24px; }

.co-section {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; margin-bottom: 18px; backdrop-filter: blur(10px);
}
.co-h { font-family: var(--display); font-size: 17px; display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.co-step {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-size: 13px; font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-3)); color: #03121a;
}
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.co-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.co-field label { font-size: 13px; font-weight: 600; color: var(--text-dim); }
.co-opt { color: var(--text-faint); font-weight: 400; }
.co-field input, .co-field select {
  height: 46px; padding: 0 14px; background: rgba(12,20,30,0.8); border: 1px solid var(--border);
  border-radius: 11px; color: var(--text); font-family: inherit; font-size: 14.5px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.co-field select {
  appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238da3b5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.co-field input::placeholder { color: var(--text-faint); }
.co-field input:focus, .co-field select:focus { border-color: var(--border-strong); box-shadow: 0 0 0 3px rgba(34,211,238,0.12); }

.co-payment { min-height: 44px; }
.co-notice {
  display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 12px; font-size: 13.5px; line-height: 1.55;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border); color: var(--text-dim);
}
.co-notice i { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; }
.co-notice.warn { background: rgba(245, 197, 52, 0.06); border-color: rgba(245,197,52,0.28); color: #f0d28a; }
.co-notice.error { background: rgba(255,107,129,0.08); border-color: rgba(255,107,129,0.3); color: #ffb3bf; }

.co-pay { height: 52px; margin-top: 22px; font-size: 16px; }
.co-pay:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.co-secure { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--text-faint); font-size: 12.5px; margin-top: 14px; }
.co-secure i { width: 14px; height: 14px; color: var(--accent-2); }
.co-error { color: var(--danger); font-size: 13.5px; margin-top: 12px; text-align: center; }

/* Order summary */
.checkout-summary-col { position: sticky; top: 24px; }
.checkout-summary {
  background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.cs-title { font-family: var(--display); font-size: 16px; display: flex; align-items: center; gap: 9px; margin-bottom: 18px; }
.cs-title i { width: 18px; height: 18px; color: var(--accent); }
.cs-items { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.cs-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; }
.cs-thumb { position: relative; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: #0c1622; display: grid; place-items: center; color: var(--accent); }
.cs-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cs-thumb i { width: 22px; height: 22px; opacity: 0.5; }
.cs-qty { position: absolute; top: -7px; right: -7px; min-width: 19px; height: 19px; padding: 0 5px; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #03121a; border-radius: 999px; border: 2px solid var(--surface-solid); }
.cs-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cs-name { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.cs-cat { font-size: 11.5px; color: var(--text-faint); }
.cs-line { font-family: var(--display); font-size: 14px; font-weight: 600; }
.cs-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--text-dim); padding: 7px 0; }
.cs-muted { color: var(--text-faint); }
.cs-total { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 14px; color: var(--text); font-size: 15px; }
.cs-total strong { font-family: var(--display); font-size: 22px; }

/* Success */
.checkout-success { display: grid; place-items: center; padding: 60px 0; }
.cs-success-card { max-width: 460px; text-align: center; background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 20px; padding: 44px 32px; box-shadow: var(--shadow); }
.cs-success-ic { display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #03121a; }
.cs-success-ic i { width: 36px; height: 36px; }
.cs-success-card h2 { font-family: var(--display); font-size: 24px; margin-bottom: 10px; }
.cs-success-card p { color: var(--text-dim); font-size: 15px; margin-bottom: 26px; }

@media (max-width: 900px) {
  .checkout-grid { grid-template-columns: 1fr; gap: 24px; }
  .checkout-summary-col { position: static; order: -1; }
}
@media (max-width: 560px) {
  .co-row { grid-template-columns: 1fr; }
}
