/* ==========================================
   Apex Bio Research — Medical Clean Design
   Pharma-grade aesthetic: white, precise, clinical
   ========================================== */

:root {
  --primary: #0f6fec;
  --primary-dark: #0b5cc7;
  --primary-light: #e8f1fd;
  --primary-50: rgba(15, 111, 236, 0.06);
  --accent: #00b894;
  --accent-light: #e6faf5;
  --bg: #ffffff;
  --bg-alt: #f8fafb;
  --bg-card: #ffffff;
  --surface: #f1f4f8;
  --border: #e2e8f0;
  --border-light: #f0f3f7;
  --text: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #94a3b8;
  --danger: #e53e3e;
  --warning: #f6ad55;
  --success: #38a169;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }

/* === Navbar === */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s;
}
.navbar.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border);
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text); cursor: pointer;
}
.logo-mark {
  width: 36px; height: 36px; background: var(--primary);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 0.9rem; letter-spacing: -0.5px;
}
.logo-text {
  font-size: 1.05rem; font-weight: 700; letter-spacing: -0.3px;
}
.logo-text span { color: var(--primary); }

.nav-links {
  display: flex; list-style: none; gap: 8px;
}
.nav-links a {
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.88rem; font-weight: 500; padding: 8px 16px;
  border-radius: var(--radius-xs); transition: all 0.2s; cursor: pointer;
}
.nav-links a:hover { color: var(--primary); background: var(--primary-50); }
.nav-links a.active { color: var(--primary); background: var(--primary-light); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-secondary); padding: 6px 14px; border-radius: 20px;
  cursor: pointer; font-size: 0.78rem; font-weight: 600; transition: all 0.2s;
  font-family: var(--font);
}
.lang-btn:hover { border-color: var(--primary); color: var(--primary); }

.lang-selector { position: relative; }
.lang-dropdown {
  display: none; position: absolute; top: 100%; right: 0; margin-top: 8px;
  background: white; border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); overflow: hidden; min-width: 120px; z-index: 100;
}
.lang-dropdown.open { display: block; }
.lang-option {
  display: block; padding: 10px 16px; font-size: 0.82rem; font-weight: 500;
  color: var(--text-secondary); cursor: pointer; transition: all 0.15s;
  text-decoration: none;
}
.lang-option:hover { background: var(--primary-50); color: var(--primary); }
.lang-option.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }

/* Product Detail Modal */
.product-modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 999; backdrop-filter: blur(4px);
}
.product-modal-overlay.open { display: block; }
.product-modal {
  display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: white; border-radius: 16px; width: 90%; max-width: 640px; max-height: 85vh;
  overflow-y: auto; z-index: 1000; box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}
.product-modal.open { display: block; }
.product-modal-close {
  position: absolute; top: 16px; right: 16px; background: var(--bg-secondary);
  border: none; width: 36px; height: 36px; border-radius: 50%; font-size: 1.1rem;
  cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.product-modal-close:hover { background: var(--primary-light); color: var(--primary); }

.product-detail { padding: 32px; }
.product-detail-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.product-detail-sku { font-size: 0.8rem; color: var(--text-muted); font-family: var(--font-mono); }
.product-detail-name { font-size: 1.6rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.product-detail-spec { font-size: 1rem; color: var(--text-secondary); margin-bottom: 16px; }
.product-detail-price { font-size: 1.8rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.product-detail-stock { font-size: 0.9rem; color: #38a169; font-weight: 600; margin-bottom: 20px; }
.product-detail-actions { margin-bottom: 24px; }
.product-detail-actions .btn-primary {
  background: var(--primary); color: white; border: none; padding: 14px 32px;
  border-radius: var(--radius-sm); font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s;
}
.product-detail-actions .btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.product-detail-description { margin-bottom: 24px; }
.product-detail-description h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 8px; color: var(--text-primary); }
.product-detail-description p { font-size: 0.9rem; line-height: 1.7; color: var(--text-secondary); }
.product-detail-disclaimer {
  background: #fffbeb; border: 1px solid #f59e0b; border-radius: var(--radius-sm);
  padding: 12px 16px; font-size: 0.82rem; color: #92400e; margin-bottom: 24px;
}
.product-detail-variants { margin-bottom: 24px; }
.product-detail-variants h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 10px; }
.variant-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-pill {
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 20px;
  padding: 8px 16px; font-size: 0.82rem; cursor: pointer; transition: all 0.15s; font-weight: 500;
}
.variant-pill:hover { border-color: var(--primary); color: var(--primary); }
.variant-pill.active { background: var(--primary); color: white; border-color: var(--primary); }
.product-detail-related { margin-top: 24px; border-top: 1px solid var(--border); padding-top: 20px; }
.product-detail-related h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 12px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.related-card {
  background: var(--bg-secondary); border-radius: var(--radius-sm); padding: 14px;
  cursor: pointer; transition: all 0.15s; border: 1px solid transparent;
}
.related-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.related-name { font-weight: 600; font-size: 0.85rem; margin-top: 8px; }
.related-spec { font-size: 0.78rem; color: var(--text-muted); }
.related-price { font-weight: 700; color: var(--primary); margin-top: 4px; font-size: 0.9rem; }

@media (max-width: 640px) {
  .product-modal { width: 95%; max-height: 90vh; top: 50%; border-radius: 12px; }
  .product-detail { padding: 20px; }
  .product-detail-name { font-size: 1.3rem; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}

.cart-btn {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); padding: 8px 12px; border-radius: var(--radius-sm);
  cursor: pointer; transition: all 0.2s; display: flex; align-items: center;
}
.cart-btn:hover { border-color: var(--primary); }
.cart-btn svg { width: 20px; height: 20px; }
.cart-badge {
  position: absolute; top: -5px; right: -5px;
  background: var(--primary); color: white;
  font-size: 0.6rem; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid white;
}
.cart-badge:empty { display: none; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  width: 22px; height: 2px; background: var(--text);
  transition: all 0.3s; border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translateY(7px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translateY(-7px); }

/* === Cart Sidebar === */
.cart-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.3); z-index: 2000;
}
.cart-overlay.open { display: block; }
.cart-sidebar {
  position: fixed; top: 0; right: -440px; width: 420px; max-width: 90vw;
  height: 100vh; background: white; border-left: 1px solid var(--border);
  z-index: 2001; display: flex; flex-direction: column;
  transition: right 0.3s ease; box-shadow: var(--shadow-lg);
}
.cart-sidebar.open { right: 0; }
.cart-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.cart-header h3 { font-size: 1.05rem; font-weight: 700; }
.cart-close {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); width: 32px; height: 32px; border-radius: 8px;
  cursor: pointer; font-size: 1rem; display: flex;
  align-items: center; justify-content: center; transition: all 0.2s;
}
.cart-close:hover { border-color: var(--danger); color: var(--danger); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-item {
  display: flex; gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 0.9rem; margin-bottom: 2px; color: var(--text); }
.cart-item-spec { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 10px; }
.cart-item-bottom { display: flex; justify-content: space-between; align-items: center; }
.cart-item-price { font-weight: 700; color: var(--primary); font-size: 0.95rem; }
.qty-controls { display: flex; align-items: center; gap: 6px; }
.qty-btn {
  width: 28px; height: 28px; border-radius: var(--radius-xs);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); cursor: pointer; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.qty-btn:hover { border-color: var(--primary); color: var(--primary); }
.qty-val { font-weight: 600; min-width: 20px; text-align: center; font-size: 0.88rem; }
.cart-item-del {
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; font-size: 0.75rem; padding: 2px 0; transition: color 0.2s;
}
.cart-item-del:hover { color: var(--danger); }
.cart-footer { padding: 20px 24px; border-top: 1px solid var(--border); }
.cart-total-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.cart-total-row span:first-child { font-weight: 600; color: var(--text-secondary); }
.cart-total-row span:last-child { font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.cart-empty-msg {
  display: none; padding: 60px 24px; text-align: center;
  color: var(--text-muted); font-size: 0.9rem;
}

/* === Page Sections === */
.page { padding-top: 64px; }
.page-section { padding: 60px 0; }
.page-section.alt { background: var(--bg-alt); }

/* === Section Headers === */
.section-header { text-align: center; margin-bottom: 48px; }
.section-label {
  display: inline-block; padding: 4px 14px;
  background: var(--primary-light); color: var(--primary);
  border-radius: 20px; font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800;
  letter-spacing: -0.5px; color: var(--text);
}
.section-header p {
  color: var(--text-muted); max-width: 500px; margin: 10px auto 0;
  font-size: 0.95rem;
}

/* === Hero === */
.hero {
  position: relative; overflow: hidden;
  padding: 140px 24px 100px; text-align: center;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg) 100%);
}
.hero::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(15,111,236,0.06) 0%, transparent 70%);
}
.hero::after {
  content: ''; position: absolute; bottom: -100px; left: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,184,148,0.05) 0%, transparent 70%);
}
.hero-content { position: relative; max-width: 700px; margin: 0 auto; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 18px; background: white; border: 1px solid var(--border);
  border-radius: 30px; font-size: 0.82rem; font-weight: 500;
  color: var(--text-secondary); margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.hero-pill .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem); font-weight: 800;
  line-height: 1.1; letter-spacing: -1px; margin-bottom: 18px;
  color: var(--text);
}
.hero h1 em {
  font-style: normal; color: var(--primary);
  background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
  font-size: 1.1rem; color: var(--text-secondary);
  max-width: 520px; margin: 0 auto 36px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600; text-decoration: none;
  transition: all 0.2s; cursor: pointer; border: none; font-family: var(--font);
}
.btn-primary {
  background: var(--primary); color: white;
  box-shadow: 0 2px 8px rgba(15,111,236,0.2);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(15,111,236,0.3);
  transform: translateY(-1px);
}
.btn-secondary {
  background: white; color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-full { width: 100%; }
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }

/* === Metrics Bar === */
.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-top: -40px;
  position: relative; z-index: 1;
}
.metric {
  background: white; padding: 28px 24px; text-align: center;
}
.metric-val {
  display: block; font-size: 1.6rem; font-weight: 800;
  color: var(--primary); margin-bottom: 4px;
}
.metric-label {
  font-size: 0.78rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px; font-weight: 500;
}

/* === Category Cards === */
.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px;
}
.cat-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  cursor: pointer; transition: all 0.2s;
  display: flex; align-items: flex-start; gap: 16px;
}
.cat-card:hover {
  border-color: var(--primary); box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.cat-icon {
  width: 48px; height: 48px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.cat-icon.weight { background: var(--primary-light); }
.cat-icon.recovery { background: var(--accent-light); }
.cat-icon.growth { background: #fff7ed; }
.cat-icon.skin { background: #fdf2f8; }
.cat-icon.cognitive { background: #f5f3ff; }
.cat-icon.blends { background: #f0f9ff; }
.cat-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.cat-card p { font-size: 0.8rem; color: var(--text-muted); }
.cat-count {
  font-size: 0.72rem; color: var(--primary); font-weight: 600;
  margin-top: 6px; display: inline-block;
}

/* === Product Grid === */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px;
}
.product-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  transition: all 0.2s; display: flex; flex-direction: column;
}
.product-card:hover {
  border-color: var(--primary); box-shadow: var(--shadow);
}
.product-card-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.product-sku { font-size: 0.7rem; color: var(--text-muted); font-weight: 500; }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge.weight { background: var(--primary-light); color: var(--primary); }
.badge.recovery { background: var(--accent-light); color: var(--accent); }
.badge.growth { background: #fff7ed; color: #c2410c; }
.badge.skin { background: #fdf2f8; color: #be185d; }
.badge.cognitive { background: #f5f3ff; color: #7c3aed; }
.badge.blends { background: #f0f9ff; color: #0369a1; }
.badge.other { background: var(--surface); color: var(--text-muted); }

.product-name { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.product-spec {
  font-size: 0.82rem; color: var(--text-muted); margin-bottom: 16px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border-light);
}
.product-card-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto;
}
.product-price { font-size: 1.2rem; font-weight: 800; color: var(--primary); }
.product-price .per { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; }
.btn-add {
  padding: 8px 18px; background: var(--primary); color: white;
  border: none; border-radius: var(--radius-xs);
  font-size: 0.8rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s; font-family: var(--font);
}
.btn-add:hover { background: var(--primary-dark); }
.btn-add.in-cart {
  background: var(--accent); color: white;
}

/* === Shop Controls === */
.shop-section { padding-bottom: 80px; }
.shop-controls { margin-bottom: 32px; }
.filter-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; margin-bottom: 16px;
}
.pill {
  padding: 7px 18px; border-radius: 30px;
  border: 1px solid var(--border); background: white;
  color: var(--text-secondary); font-size: 0.82rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s; font-family: var(--font);
}
.pill:hover { border-color: var(--primary); color: var(--primary); }
.pill.active { background: var(--primary); border-color: var(--primary); color: white; }

.search-wrap { max-width: 460px; margin: 0 auto; position: relative; }
.search-wrap input {
  width: 100%; padding: 12px 18px 12px 44px;
  background: white; border: 1px solid var(--border);
  border-radius: 10px; color: var(--text);
  font-size: 0.9rem; font-family: var(--font); outline: none;
  transition: border-color 0.2s;
}
.search-wrap input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }
.search-wrap input::placeholder { color: var(--text-muted); }
.search-wrap .search-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 0.9rem;
}
.results-info { text-align: center; margin-top: 20px; font-size: 0.82rem; color: var(--text-muted); }

/* === Trust Section === */
.trust-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px;
}
.trust-card {
  display: flex; align-items: center; gap: 16px; padding: 24px;
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); transition: all 0.2s;
}
.trust-card:hover { box-shadow: var(--shadow); }
.trust-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--primary-light); display: flex;
  align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.trust-card h4 { font-size: 0.88rem; font-weight: 700; margin-bottom: 2px; }
.trust-card p { font-size: 0.78rem; color: var(--text-muted); }

/* === About === */
.about-prose {
  max-width: 680px; margin: 0 auto 48px; text-align: center;
}
.about-prose p {
  font-size: 1rem; color: var(--text-secondary); line-height: 1.8;
  margin-bottom: 14px;
}
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px;
}
.feature-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 24px;
  text-align: center; transition: all 0.2s;
}
.feature-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.feature-card .icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--primary-light); display: flex;
  align-items: center; justify-content: center;
  font-size: 1.4rem; margin: 0 auto 16px;
}
.feature-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* === Contact Form === */
.contact-form { max-width: 560px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 11px 14px;
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-xs); color: var(--text);
  font-size: 0.9rem; font-family: var(--font); outline: none;
  transition: all 0.2s; resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-50);
}
.form-group select { cursor: pointer; }

/* === Checkout === */
.checkout-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px;
  align-items: start;
}
.order-summary {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  position: sticky; top: 80px;
}
.order-summary h3 {
  font-size: 1rem; font-weight: 700; margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.summary-item {
  display: flex; justify-content: space-between; padding: 10px 0;
  border-bottom: 1px solid var(--border-light); font-size: 0.88rem;
}
.summary-item:last-child { border-bottom: none; }
.summary-item-detail { font-size: 0.75rem; color: var(--text-muted); }
.summary-item-price { font-weight: 600; color: var(--primary); }
.summary-totals { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.summary-row {
  display: flex; justify-content: space-between; padding: 6px 0;
  font-size: 0.88rem; color: var(--text-secondary);
}
.summary-row.total {
  font-weight: 800; font-size: 1.1rem; color: var(--text);
  padding-top: 12px; border-top: 1px solid var(--border); margin-top: 8px;
}
.summary-row.total span:last-child { color: var(--primary); }

.checkout-form h3 {
  font-size: 1rem; font-weight: 700; margin-bottom: 16px; margin-top: 28px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.checkout-form h3:first-child { margin-top: 0; }

.pay-options { display: grid; gap: 10px; }
.pay-option { cursor: pointer; }
.pay-option input { display: none; }
.pay-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; background: white;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.pay-option input:checked + .pay-card {
  border-color: var(--primary); background: var(--primary-50);
}
.pay-card .pay-icon {
  font-size: 1.2rem; width: 36px; text-align: center;
}
.pay-card strong { font-size: 0.88rem; display: block; }
.pay-card small { font-size: 0.75rem; color: var(--text-muted); }

.terms-check {
  margin: 20px 0; padding: 14px 16px; background: var(--bg-alt);
  border-radius: var(--radius-sm); border: 1px solid var(--border);
}
.terms-check label {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.82rem; color: var(--text-secondary); cursor: pointer;
}
.terms-check input { margin-top: 3px; accent-color: var(--primary); }

/* === Confirmed === */
.confirmed-wrap {
  display: flex; align-items: center; justify-content: center; min-height: 70vh;
}
.confirmed-box { text-align: center; max-width: 440px; }
.confirmed-check {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--accent-light); color: var(--accent);
  font-size: 2rem; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; border: 2px solid var(--accent);
}
.confirmed-box h2 { font-size: 1.6rem; margin-bottom: 10px; }
.confirmed-box p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 6px; }
.order-ref {
  font-family: monospace; font-size: 1.05rem; color: var(--primary);
  background: var(--primary-light); padding: 8px 20px; border-radius: var(--radius-xs);
  display: inline-block; margin: 16px 0 28px; font-weight: 600;
}

/* === Footer === */
.footer {
  background: var(--bg-alt); border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; margin-top: 10px; max-width: 280px; }
.footer-links h4 {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text-muted); margin-bottom: 14px;
}
.footer-links a {
  display: block; color: var(--text-secondary); text-decoration: none;
  font-size: 0.85rem; padding: 4px 0; transition: color 0.2s; cursor: pointer;
}
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
  text-align: center; padding-top: 24px;
  border-top: 1px solid var(--border);
}
.footer-bottom p { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 6px; }
.footer-disclaimer {
  color: var(--warning) !important; font-weight: 500;
  background: #fffbeb; padding: 8px 16px; border-radius: var(--radius-xs);
  display: inline-block; margin-bottom: 10px; border: 1px solid #fde68a;
}

/* === Toast === */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--primary); color: white;
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.88rem;
  transform: translateY(100px); opacity: 0;
  transition: all 0.3s ease; z-index: 3000;
  box-shadow: var(--shadow-lg);
}
.toast.show { transform: translateY(0); opacity: 1; }

/* === Responsive === */
@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 70%; height: 100vh;
    background: white; flex-direction: column; padding: 80px 28px;
    gap: 8px; transition: right 0.3s ease;
    border-left: 1px solid var(--border); z-index: 999;
  }
  .nav-links.open { right: 0; }
  .hamburger { display: flex; }
  .hero { padding: 120px 20px 80px; }
  .metrics { grid-template-columns: 1fr 1fr; margin-top: -20px; }
  .cat-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .filter-row { gap: 6px; }
  .pill { padding: 6px 14px; font-size: 0.78rem; }
  .form-row { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .features-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 0.95rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
