/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', system-ui, sans-serif; background: #f9f9f9; color: #18181b; line-height: 1.6; min-width: 320px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }
/* Global form element reset — kills browser native shadows/glows on all platforms */
input, textarea, select, button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-shadow: none;
  outline: none;
}
input:focus, textarea:focus, select:focus { box-shadow: none; outline: none; }
/* Kill iOS Safari inner shadow on inputs */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="number"], input[type="search"], textarea {
  -webkit-box-shadow: none;
  box-shadow: none;
}
/* Kill autofill yellow/blue tint globally */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color: #18181b !important;
  transition: background-color 5000s ease-in-out 0s;
}
/* Prevent horizontal overflow on mobile */
body, main, section, footer, header { overflow-x: hidden; }

/* ===== VARIABLES ===== */
:root {
  --primary: #EA6C00;
  --primary-dark: #c45a00;
  --zinc-50: #fafafa;
  --zinc-100: #f4f4f5;
  --zinc-200: #e4e4e7;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-600: #52525b;
  --zinc-700: #3f3f46;
  --zinc-800: #27272a;
  --zinc-900: #18181b;
  --red-50: #fef2f2;
  --red-100: #fee2e2;
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --green-50: #f0fdf4;
  --green-600: #16a34a;
  --radius: 1rem;
}

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.page-content { min-height: calc(100vh - 200px); padding: 2rem 0; }
@media (max-width: 640px) { .container { padding: 0 1rem; } .page-content { padding: 1.5rem 0; } }



/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--zinc-200);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  gap: 1rem;
}
.logo { font-size: 1.4rem; font-weight: 800; color: var(--zinc-900); white-space: nowrap; }
.logo span { color: var(--primary); }
nav { display: flex; align-items: center; gap: 1.5rem; }
nav a { font-size: 0.9rem; font-weight: 500; color: var(--zinc-700); transition: color 0.2s; white-space: nowrap; }
nav a:hover, nav a.active { color: var(--primary); }
.basket-link { display: flex; align-items: center; gap: 0.4rem; }
.basket-badge {
  background: var(--red-600);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  min-width: 1.2rem;
  text-align: center;
}
.mobile-menu-btn { display: none; font-size: 1.5rem; padding: 0.35rem 0.5rem; line-height: 1; color: var(--zinc-700); border-radius: 0.5rem; transition: background 0.15s; }
.mobile-menu-btn:hover { background: var(--zinc-100); }
.mobile-nav { display: none; flex-direction: column; gap: 0; padding: 0; border-top: 1px solid var(--zinc-200); background: #fff; }
.mobile-nav a { font-size: 0.95rem; font-weight: 500; color: var(--zinc-700); padding: 0.9rem 1.5rem; border-bottom: 1px solid var(--zinc-100); display: flex; align-items: center; gap: 0.5rem; transition: background 0.15s, color 0.15s; }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { background: var(--zinc-50); color: var(--primary); }
/* Tablet: collapse nav at 768px */
@media (max-width: 768px) {
  nav { gap: 1rem; }
  nav a { font-size: 0.85rem; }
}
@media (max-width: 640px) {
  nav { display: none; }
  .mobile-menu-btn { display: block; }
  .mobile-nav.open { display: flex; }
  .header-inner { padding: 0.75rem 1rem; }
  .logo { font-size: 1.2rem; }
}

/* ===== FOOTER ===== */
footer { background: var(--zinc-900); color: var(--zinc-400); padding: 2.5rem 1.5rem 1.5rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer-brand p { font-size: 0.8rem; max-width: 280px; margin-top: 0.4rem; line-height: 1.6; }
.footer-brand .logo { font-size: 1.1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { max-width: 1200px; margin: 1.5rem auto 0; padding-top: 1rem; border-top: 1px solid #3f3f46; font-size: 0.75rem; text-align: center; }
@media (max-width: 640px) {
  footer { padding: 2rem 1rem 1.5rem; }
  .footer-inner { gap: 1.25rem; }
  .footer-brand p { max-width: 100%; }
}

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; font-weight: 600; border-radius: var(--radius); padding: 0.75rem 1.5rem; font-size: 0.9rem; transition: background 0.2s, color 0.2s; cursor: pointer; border: none; font-family: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--zinc-100); color: var(--zinc-700); }
.btn-secondary:hover { background: var(--zinc-200); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; }
.btn-full { width: 100%; }
@media (max-width: 480px) { .btn { padding: 0.7rem 1.25rem; font-size: 0.875rem; } .btn-sm { padding: 0.5rem 0.875rem; font-size: 0.78rem; } }

/* ===== HERO ===== */
.hero { background: #fff; border-bottom: 1px solid var(--zinc-100); padding: 5rem 1.5rem; text-align: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.4rem; background: #fff7ed; color: var(--primary); font-size: 0.8rem; font-weight: 700; padding: 0.4rem 1rem; border-radius: 999px; margin-bottom: 1.5rem; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 3.5rem); font-weight: 800; color: var(--zinc-900); margin-bottom: 1rem; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: clamp(0.95rem, 2.5vw, 1.1rem); color: var(--zinc-500); max-width: 500px; margin: 0 auto 2rem; }
@media (max-width: 640px) {
  .hero { padding: 3rem 1rem; }
  .hero-badge { font-size: 0.75rem; }
  .hero p { margin-bottom: 1.5rem; }
}

/* ===== FEATURES ===== */
.features { padding: 4rem 1.5rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; max-width: 1200px; margin: 0 auto; }
.feature-card { background: #fff; border: 1px solid var(--zinc-200); border-radius: 1.5rem; padding: 2rem; text-align: center; }
.feature-icon { width: 3rem; height: 3rem; background: #fff7ed; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 1.4rem; }
.feature-card h3 { font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.85rem; color: var(--zinc-500); }
@media (max-width: 640px) {
  .features { padding: 2.5rem 1rem; }
  .features-grid { grid-template-columns: 1fr; gap: 1rem; }
  .feature-card { padding: 1.5rem; }
}

/* ===== CTA SECTION ===== */
.cta-section { background: var(--zinc-900); color: #fff; text-align: center; padding: 4rem 1.5rem; }
.cta-section h2 { font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 800; margin-bottom: 1rem; }
.cta-section p { color: var(--zinc-400); margin-bottom: 2rem; }
@media (max-width: 640px) { .cta-section { padding: 2.5rem 1rem; } }

/* ===== SHOP ===== */
.search-wrap { max-width: 600px; margin: 0 auto 2.5rem; position: relative; }
.search-wrap input { width: 100%; border: 1px solid var(--zinc-300, #d4d4d8); border-radius: 999px; padding: 1rem 1.5rem 1rem 3rem; font-size: 0.95rem; background: #fff; outline: none; transition: border-color 0.2s; font-family: inherit; }
.search-wrap input:focus { border-color: var(--primary); }
.search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--zinc-400); font-size: 1.1rem; pointer-events: none; }
.shop-header { text-align: center; margin-bottom: 2.5rem; }
.shop-header h1 { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; margin-bottom: 0.5rem; }
.shop-header p { color: var(--zinc-500); font-size: 0.9rem; }
/* 4-col desktop → 3-col tablet → 2-col small tablet → 1-col mobile */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 1100px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
@media (max-width: 420px)  { .products-grid { grid-template-columns: 1fr; } }
.product-card { background: #fff; border: 1px solid var(--zinc-200); border-radius: 1.25rem; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 0.2s, transform 0.15s; }
.product-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }
.product-img { background: var(--zinc-50); display: flex; align-items: center; justify-content: center; height: 150px; overflow: hidden; }
.product-img img { height: 120px; width: 120px; object-fit: contain; border-radius: 8px; }
.product-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.product-name { font-weight: 700; font-size: 0.95rem; line-height: 1.3; }
.product-mg { color: var(--primary); font-size: 0.82rem; font-weight: 600; margin-bottom: 0.4rem; }
.product-desc { font-size: 0.76rem; color: var(--zinc-500); line-height: 1.5; flex: 1; margin-bottom: 0.9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { font-size: 1.15rem; font-weight: 800; margin-bottom: 0.7rem; }
.product-actions { display: flex; gap: 0.4rem; }
.product-actions .btn { flex: 1; padding: 0.55rem 0.4rem; font-size: 0.76rem; border-radius: 0.65rem; }
.no-results { text-align: center; padding: 5rem 1rem; color: var(--zinc-400); }
.no-results p { font-size: 1.1rem; margin-top: 1rem; }
@media (max-width: 640px) {
  .search-wrap { margin-bottom: 1.5rem; }
  .search-wrap input { padding: 0.85rem 1.25rem 0.85rem 2.75rem; font-size: 0.9rem; }
  .shop-header { margin-bottom: 1.5rem; }
  .product-img { height: 130px; }
  .product-img img { height: 100px; width: 100px; }
}

/* ===== PRODUCT DETAIL ===== */
.back-link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--zinc-500); margin-bottom: 2rem; transition: color 0.2s; }
.back-link:hover { color: var(--zinc-900); }

/* Breadcrumb trail */
.breadcrumb { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--zinc-400); margin-bottom: 1.25rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--zinc-500); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: #EA6C00; }
.breadcrumb span { color: var(--zinc-400); }
.breadcrumb .current { color: var(--zinc-700); font-weight: 600; }

/* Back to top button */
#back-to-top { position: fixed; bottom: 1.5rem; right: 1.5rem; background: #EA6C00; color: #fff; border: none; border-radius: 50%; width: 44px; height: 44px; font-size: 1.2rem; cursor: pointer; box-shadow: 0 4px 12px rgba(234,108,0,0.35); display: none; align-items: center; justify-content: center; z-index: 999; transition: opacity 0.2s, transform 0.2s; touch-action: manipulation; }
#back-to-top:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(234,108,0,0.45); }
#back-to-top.visible { display: flex; }
@media (max-width: 640px) { #back-to-top { bottom: 1rem; right: 1rem; width: 40px; height: 40px; font-size: 1rem; } }

.product-detail { background: #fff; border: 1px solid var(--zinc-200); border-radius: 1.5rem; overflow: hidden; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 768px) { .product-detail-grid { grid-template-columns: 1fr; } }
.product-detail-img { background: var(--zinc-50); display: flex; align-items: center; justify-content: center; padding: 3rem; min-height: 320px; border-radius: 1.25rem; }
.product-detail-img img { height: 240px; object-fit: contain; drop-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.product-detail-info { padding: 2.5rem; display: flex; flex-direction: column; justify-content: flex-start; gap: 0; }
.research-badge { display: inline-flex; align-items: center; gap: 0.4rem; background: #fff7ed; color: var(--primary); font-size: 0.75rem; font-weight: 700; padding: 0.3rem 0.75rem; border-radius: 999px; margin-bottom: 0.75rem; }
.purity-badge { display: inline-flex; align-items: center; gap: 0.4rem; background: #007eea; color: #fff; font-size: 0.78rem; font-weight: 700; padding: 0.3rem 0.75rem; border-radius: 999px; margin-bottom: 0.75rem; margin-left: 0.4rem; }
.product-detail-info h1 { font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 800; margin-bottom: 0.15rem; }
.product-detail-mg { color: var(--primary); font-weight: 600; font-size: 1.05rem; margin-bottom: 1rem; }
.product-detail-desc { color: var(--zinc-500); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.5rem; }
.product-detail-price { font-size: clamp(1.8rem, 5vw, 2.5rem); font-weight: 800; margin-bottom: 0.5rem; }
.product-detail-info .pen-toggle-btn { margin-bottom: 1rem; }
.product-detail-info .btn-full { margin-bottom: 0; }
.research-warning { background: var(--red-50); border: 1px solid var(--red-100); border-radius: 0.75rem; padding: 0.75rem 1rem; text-align: center; margin-top: 1rem; }
.research-warning p { color: var(--red-700); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

/* Specs table */
.specs-table { width: 100%; border-collapse: collapse; border: 1px solid var(--zinc-200); border-radius: 0.75rem; overflow: hidden; margin: 1rem 0; font-size: 0.88rem; }
.specs-table tr { border-bottom: 1px solid var(--zinc-100); }
.specs-table tr:last-child { border-bottom: none; }
.specs-table td:first-child { background: var(--zinc-50); font-weight: 600; color: var(--zinc-600); padding: 0.6rem 1rem; width: 38%; }
.specs-table td:last-child { padding: 0.6rem 1rem; color: var(--zinc-800); font-weight: 500; }
.specs-table .price-cell { font-size: 1.5rem; font-weight: 800; color: var(--zinc-900); }

/* Quantity + Add to basket row */
.add-to-basket-row { display: flex; align-items: center; gap: 0.75rem; margin: 1rem 0 0.5rem; }
.qty-control { display: flex; align-items: center; border: 1.5px solid var(--zinc-200); border-radius: 0.75rem; overflow: hidden; }
.qty-control button { width: 2.4rem; height: 2.6rem; background: var(--zinc-50); border: none; font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: background 0.15s; color: var(--zinc-700); }
.qty-control button:hover { background: var(--zinc-100); }
.qty-control input { width: 2.5rem; text-align: center; border: none; border-left: 1.5px solid var(--zinc-200); border-right: 1.5px solid var(--zinc-200); font-size: 0.95rem; font-weight: 700; padding: 0; height: 2.6rem; outline: none; font-family: inherit; }

/* Bulk discounts */
.bulk-discounts { margin: 0.75rem 0; }
.bulk-discounts-title { font-size: 0.78rem; font-weight: 700; color: var(--zinc-500); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.bulk-tiers { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.bulk-tier { background: var(--zinc-50); border: 1px solid var(--zinc-200); border-radius: 0.6rem; padding: 0.4rem 0.75rem; font-size: 0.78rem; text-align: center; }
.bulk-tier .tier-qty { font-weight: 700; color: var(--zinc-800); }
.bulk-tier .tier-save { color: #16a34a; font-weight: 700; font-size: 0.72rem; }

/* COA button */
.coa-btn { display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; padding: 0.75rem 1rem; border: 1.5px solid var(--primary); color: var(--primary); background: #fff; border-radius: 0.75rem; font-size: 0.88rem; font-weight: 700; cursor: pointer; transition: background 0.15s; margin-top: 0.5rem; text-decoration: none; }
.coa-btn:hover { background: #fff7ed; }

@media (max-width: 640px) {
  .product-detail-img { padding: 2rem; min-height: 200px; }
  .product-detail-img img { height: 160px; }
  .product-detail-info { padding: 1.5rem; }
  .back-link { margin-bottom: 1.25rem; }
  .add-to-basket-row { flex-wrap: wrap; }
}

/* ===== BASKET ===== */
.basket-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; flex-wrap: wrap; gap: 0.75rem; }
.basket-header h1 { font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 800; }
.basket-header h1 span { color: var(--zinc-400); font-size: 1.1rem; font-weight: 400; }
.clear-btn { font-size: 0.85rem; color: var(--zinc-400); transition: color 0.2s; cursor: pointer; }
.clear-btn:hover { color: var(--red-600); }
.basket-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .basket-layout { grid-template-columns: 1fr 280px; gap: 1.25rem; } }
@media (max-width: 768px) { .basket-layout { grid-template-columns: 1fr; } }
.basket-items { display: flex; flex-direction: column; gap: 1rem; }
.basket-item { background: #fff; border: 1px solid var(--zinc-200); border-radius: 1.25rem; padding: 1.25rem; display: flex; align-items: center; gap: 1rem; }
.basket-item-img { background: var(--zinc-50); border-radius: 0.75rem; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.basket-item-img img { height: 48px; object-fit: contain; }
.basket-item-info { flex: 1; min-width: 0; }
.basket-item-name { font-weight: 600; font-size: 0.9rem; }
.basket-item-mg { color: var(--primary); font-size: 0.82rem; font-weight: 600; }
.qty-controls { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.4rem; }
.qty-btn { width: 2rem; height: 2rem; border-radius: 999px; background: var(--zinc-100); display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 700; transition: background 0.2s; cursor: pointer; border: none; touch-action: manipulation; }
.qty-btn:hover { background: var(--zinc-200); }
.qty-num { width: 1.5rem; text-align: center; font-weight: 700; }
.basket-item-price { text-align: right; min-width: 70px; flex-shrink: 0; }
.basket-item-price .total { font-weight: 800; }
.basket-item-price .each { font-size: 0.75rem; color: var(--zinc-400); }
.remove-btn { color: var(--zinc-300); font-size: 1.1rem; transition: color 0.2s; cursor: pointer; border: none; background: none; padding: 0.25rem; flex-shrink: 0; touch-action: manipulation; }
.remove-btn:hover { color: var(--red-600); }
.order-summary { background: #fff; border: 1px solid var(--zinc-200); border-radius: 1.25rem; padding: 1.5rem; position: sticky; top: 100px; }
.order-summary h2 { font-weight: 800; margin-bottom: 1.25rem; }
.summary-row { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--zinc-500); margin-bottom: 0.5rem; }
.summary-row.total { font-weight: 800; font-size: 1.1rem; color: var(--zinc-900); padding-top: 0.75rem; border-top: 1px solid var(--zinc-100); margin-top: 0.5rem; }
.summary-row .free { color: var(--green-600); font-weight: 600; }
.empty-basket { text-align: center; padding: 4rem 1rem; }
.empty-basket .icon { font-size: 4rem; margin-bottom: 1rem; opacity: 0.3; }
.empty-basket h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.empty-basket p { color: var(--zinc-500); margin-bottom: 2rem; }
@media (max-width: 480px) {
  .basket-item { padding: 1rem; gap: 0.75rem; }
  .basket-item-img { width: 52px; height: 52px; }
  .basket-item-img img { height: 38px; }
  .basket-item-name { font-size: 0.85rem; }
}

/* ===== CHECKOUT ===== */
.step-indicator { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 0.5rem; }
.step-circle { width: 1.75rem; height: 1.75rem; border-radius: 999px; border: 2px solid var(--zinc-300); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; color: var(--zinc-400); transition: all 0.2s; }
.step-circle.active { border-color: var(--primary); color: var(--primary); }
.step-circle.done { border-color: var(--primary); background: var(--primary); color: #fff; }
.step-label { font-size: 0.85rem; font-weight: 500; color: var(--zinc-400); }
.step-label.active { color: var(--primary); }
.step-divider { color: var(--zinc-300); font-size: 0.8rem; }
.checkout-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .checkout-layout { grid-template-columns: 1fr 280px; gap: 1.25rem; } }
@media (max-width: 768px) { .checkout-layout { grid-template-columns: 1fr; } }
.checkout-form-card { background: #fff; border: 1px solid var(--zinc-200); border-radius: 1.5rem; padding: 2rem; }
.checkout-form-card h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 480px) { .form-grid { grid-template-columns: 1fr; } .checkout-form-card { padding: 1.25rem; } }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--zinc-700); }
.field input { border: 1px solid var(--zinc-200); border-radius: 0.75rem; padding: 0.75rem 1rem; font-size: 0.9rem; font-family: inherit; transition: border-color 0.2s; background: #fff; }
.field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(234,108,0,0.12); }
.field input.error { border-color: #f87171; }
.field .err-msg { font-size: 0.75rem; color: #ef4444; }
.form-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.secure-badge { display: flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; font-weight: 700; color: var(--green-600); background: var(--green-50); padding: 0.35rem 0.75rem; border-radius: 999px; }
.card-brands { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.card-brand { font-size: 0.7rem; font-weight: 700; border: 1px solid var(--zinc-200); border-radius: 0.25rem; padding: 0.2rem 0.5rem; color: var(--zinc-500); background: var(--zinc-50); }
.checkout-summary { background: #fff; border: 1px solid var(--zinc-200); border-radius: 1.25rem; padding: 1.5rem; position: sticky; top: 100px; }
.checkout-summary h3 { font-weight: 800; margin-bottom: 1rem; }
.checkout-summary-items { max-height: 240px; overflow-y: auto; margin-bottom: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.checkout-summary-item { display: flex; justify-content: space-between; align-items: flex-start; font-size: 0.85rem; }
.checkout-summary-item .name { font-weight: 600; color: var(--zinc-800); }
.checkout-summary-item .sub { color: var(--zinc-400); font-size: 0.75rem; }
.checkout-summary-item .price { font-weight: 700; margin-left: 1rem; flex-shrink: 0; }
.hidden { display: none !important; }

/* ===== CONFIRMATION ===== */
.confirmation { max-width: 600px; margin: 0 auto; text-align: center; padding: 4rem 1rem; }
.confirm-icon { width: 5rem; height: 5rem; background: var(--green-50); border-radius: 999px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-size: 2.5rem; }
.confirmation h1 { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; margin-bottom: 0.5rem; }
.confirmation > p { color: var(--zinc-500); margin-bottom: 2rem; }
.confirm-card { background: #fff; border: 1px solid var(--zinc-200); border-radius: 1.5rem; padding: 2rem; text-align: left; margin-bottom: 1.5rem; }
.confirm-card-header { display: flex; justify-content: space-between; padding-bottom: 1rem; border-bottom: 1px solid var(--zinc-100); margin-bottom: 1.5rem; flex-wrap: wrap; gap: 0.75rem; }
.confirm-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--zinc-400); margin-bottom: 0.25rem; }
.confirm-value { font-weight: 800; font-size: 1.1rem; font-family: monospace; }
.confirm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.confirm-grid p { font-size: 0.85rem; color: var(--zinc-700); }
.confirm-grid .sub { color: var(--zinc-500); font-size: 0.8rem; }
.confirm-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
@media (max-width: 480px) {
  .confirm-card { padding: 1.25rem; }
  .confirm-grid { grid-template-columns: 1fr; gap: 1rem; }
  .confirmation { padding: 2.5rem 0; }
}

/* ===== LEGAL ===== */
.legal-layout { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: start; }
@media (max-width: 768px) { .legal-layout { grid-template-columns: 1fr; } }
.legal-nav { position: sticky; top: 100px; }
/* On mobile, legal nav becomes a horizontal scroll row */
@media (max-width: 768px) {
  .legal-nav { position: static; }
  .legal-nav ul { flex-direction: row; overflow-x: auto; gap: 0.5rem; padding-bottom: 0.5rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .legal-nav ul::-webkit-scrollbar { display: none; }
  .legal-nav button { white-space: nowrap; width: auto; }
}
.legal-nav ul { display: flex; flex-direction: column; gap: 0.25rem; }
.legal-nav button { width: 100%; text-align: left; display: flex; align-items: center; gap: 0.6rem; padding: 0.75rem 1rem; border-radius: 0.75rem; font-size: 0.85rem; font-weight: 600; color: var(--zinc-600); transition: all 0.2s; cursor: pointer; border: none; background: none; font-family: inherit; }
.legal-nav button:hover { background: var(--zinc-100); }
.legal-nav button.active { background: var(--primary); color: #fff; }
.legal-content { background: #fff; border: 1px solid var(--zinc-200); border-radius: 1.5rem; padding: 2.5rem; }
@media (max-width: 480px) { .legal-content { padding: 1.5rem; } }
.legal-section { display: none; }
.legal-section.active { display: block; }
.legal-section-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.legal-section-icon { width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.legal-section h2 { font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: 800; }
.legal-section h3 { font-weight: 700; color: var(--zinc-800); margin: 1.5rem 0 0.5rem; font-size: 0.95rem; }
.legal-section p, .legal-section li { font-size: 0.9rem; color: var(--zinc-600); line-height: 1.8; }
.legal-section ul { padding-left: 1.25rem; list-style: disc; }
.legal-section ul li { margin-bottom: 0.35rem; }
.alert-box { border-radius: 0.75rem; padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.alert-red { background: var(--red-50); border: 1px solid var(--red-100); }
.alert-red p { color: var(--red-700) !important; font-weight: 600; }
.alert-yellow { background: #fefce8; border: 1px solid #fef08a; }
.alert-yellow p { color: #854d0e !important; font-weight: 600; }
.info-table { background: var(--zinc-50); border-radius: 0.75rem; padding: 1.25rem; }
.info-row { display: flex; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--zinc-200); font-size: 0.85rem; }
.info-row:last-child { border-bottom: none; }
.info-row .key { color: var(--zinc-400); font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; width: 120px; flex-shrink: 0; padding-top: 0.1rem; }
.info-row .val { color: var(--zinc-800); font-weight: 600; }
.shipping-table { background: var(--zinc-50); border-radius: 0.75rem; padding: 1rem 1.25rem; }
.shipping-row { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--zinc-200); font-size: 0.85rem; }
.shipping-row:last-child { border-bottom: none; }
.shipping-row .method { font-weight: 600; color: var(--zinc-700); }
.shipping-row .price { color: var(--zinc-500); }

/* ===== PEN TOGGLE ===== */
.pen-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--zinc-200);
  background: var(--zinc-50);
  color: var(--zinc-600);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 0.75rem;
  transition: all 0.2s;
  font-family: inherit;
}
.pen-toggle-btn:hover { border-color: var(--primary); color: var(--primary); }
.pen-toggle-btn.pen-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pen-check { margin-left: auto; font-weight: 800; }

/* ===== CATEGORY FILTER ===== */
.cat-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.cat-btn { padding: 0.45rem 1rem; border-radius: 2rem; border: 2px solid #e4e4e7; background: #fff; color: #374151; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: all 0.15s; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.cat-btn:hover { border-color: #EA6C00; color: #EA6C00; }
.cat-btn.active { background: #EA6C00; border-color: #EA6C00; color: #fff; }
@media (max-width: 480px) {
  .cat-filter { gap: 0.4rem; }
  .cat-btn { padding: 0.4rem 0.75rem; font-size: 0.78rem; }
}

/* ===== SINGLE VIAL NOTE ===== */
.single-vial-note { font-size: 0.72rem; color: #374151; font-weight: 600; background: #f3f4f6; border: 1px solid #d1d5db; border-radius: 0.4rem; padding: 0.25rem 0.5rem; margin-bottom: 0.4rem; display: inline-block; }

/* ===== PEN STANDALONE CARD ===== */
.pen-product-card { border: 2px solid #fed7aa !important; background: linear-gradient(160deg, #fff7ed 0%, #fff 100%) !important; }
.pen-product-card .product-img { background: #fff7ed !important; }
.pen-standalone-badge { display: inline-block; background: #EA6C00; color: #fff; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.2rem 0.6rem; border-radius: 999px; margin-bottom: 0.35rem; }

/* ===== PRE-FILLED PEN BUNDLE CARD ===== */
.prefilled-card { border: 2px solid #c7d2fe !important; background: linear-gradient(160deg, #eef2ff 0%, #fff 100%) !important; }
.prefilled-card .product-img { background: #eef2ff !important; }
.prefilled-badge { display: inline-block; background: #4f46e5; color: #fff; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.2rem 0.6rem; border-radius: 999px; margin-bottom: 0.35rem; }
.shelf-life-note { font-size: 0.72rem; color: #7c3aed; font-weight: 600; background: #f5f3ff; border: 1px solid #ddd6fe; border-radius: 0.4rem; padding: 0.25rem 0.5rem; margin-bottom: 0.5rem; display: inline-block; }

/* ===== HIGHER DOSE CARD ===== */
.higher-dose-card { border: 2px solid #fecaca !important; }
.higher-dose-warning { font-size: 0.72rem; color: #b91c1c; font-weight: 600; background: #fef2f2; border: 1px solid #fecaca; border-radius: 0.4rem; padding: 0.25rem 0.5rem; margin-bottom: 0.5rem; }

/* ===== WHOLESALE BANNER ===== */
.wholesale-banner { margin-top: 3rem; background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%); border: 1px solid #fed7aa; border-radius: 1.5rem; padding: 2rem 2.5rem; }
.wholesale-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.wholesale-badge { display: inline-block; background: #EA6C00; color: #fff; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.25rem 0.75rem; border-radius: 999px; margin-bottom: 0.6rem; }
.wholesale-banner h2 { font-size: 1.3rem; font-weight: 800; color: #18181b; margin-bottom: 0.4rem; }
.wholesale-banner p { font-size: 0.88rem; color: #52525b; max-width: 480px; line-height: 1.6; }
.wholesale-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; flex-shrink: 0; }
@media (max-width: 640px) { .wholesale-banner { padding: 1.5rem; } .wholesale-banner-inner { flex-direction: column; } .wholesale-actions { width: 100%; } .wholesale-actions .btn { flex: 1; text-align: center; } }

/* ===== SHIPPING SELECTOR ===== */
.shipping-selector { background: #f9fafb; border: 1px solid #e4e4e7; border-radius: 0.75rem; padding: 0.85rem 1rem; margin: 0.75rem 0; }

/* ===== CONTACT ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 280px; gap: 2rem; align-items: start; }
@media (max-width: 768px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-intro { margin-bottom: 1.75rem; }
.contact-intro h1 { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; margin-bottom: 0.5rem; }
.contact-intro p { color: var(--zinc-500); font-size: 0.95rem; line-height: 1.7; }
.contact-form-card { background: #fff; border: 1px solid var(--zinc-200); border-radius: 1.5rem; padding: 2rem; }
@media (max-width: 480px) { .contact-form-card { padding: 1.25rem; } }
.contact-select { width: 100%; border: 1px solid var(--zinc-200); border-radius: 0.75rem; padding: 0.75rem 1rem; font-size: 0.9rem; font-family: inherit; outline: none; background: #fff; color: var(--zinc-900); transition: border-color 0.2s; appearance: none; cursor: pointer; }
.contact-select:focus { border-color: var(--primary); }
.contact-select.error { border-color: #f87171; }
textarea { width: 100%; border: 1px solid var(--zinc-200); border-radius: 0.75rem; padding: 0.75rem 1rem; font-size: 0.9rem; font-family: inherit; resize: vertical; transition: border-color 0.2s; background: #fff; }
textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(234,108,0,0.12); }
textarea.error { border-color: #f87171; }
.contact-disclaimer { background: #fefce8; border: 1px solid #fef08a; border-radius: 0.75rem; padding: 0.75rem 1rem; margin: 1.25rem 0; }
.contact-disclaimer p { font-size: 0.8rem; color: #854d0e; font-weight: 600; }
.contact-success { text-align: center; padding: 3rem 1rem; background: #fff; border: 1px solid var(--zinc-200); border-radius: 1.5rem; }
.contact-success h2 { font-size: 1.5rem; font-weight: 800; margin: 1rem 0 0.5rem; }
.contact-success p { color: var(--zinc-500); font-size: 0.9rem; max-width: 360px; margin: 0 auto; }
.contact-info-panel { display: flex; flex-direction: column; gap: 1rem; }
.contact-info-card { background: #fff; border: 1px solid var(--zinc-200); border-radius: 1.25rem; padding: 1.25rem; }
.contact-info-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.contact-info-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--zinc-400); margin-bottom: 0.25rem; }
.contact-info-value { font-size: 0.9rem; font-weight: 600; color: var(--zinc-800); line-height: 1.5; }
.research-only-card { border-color: var(--red-100); background: var(--red-50); }

/* ===== STOCK BADGES ===== */
.stock-badge { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 0.18rem 0.55rem; border-radius: 20px; margin: 0.3rem 0 0.1rem; }
.stock-in  { background: #dcfce7; color: #166534; }
.stock-low { background: #fef9c3; color: #854d0e; }
.stock-out { background: #fee2e2; color: #991b1b; }

/* ===== TOAST ===== */
#toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; gap: 0.5rem; max-width: calc(100vw - 2rem); }
.toast { background: var(--zinc-900); color: #fff; padding: 0.75rem 1.25rem; border-radius: 0.75rem; font-size: 0.85rem; font-weight: 500; box-shadow: 0 4px 16px rgba(0,0,0,0.2); animation: slideIn 0.2s ease; max-width: 320px; word-break: break-word; }
.toast.success { border-left: 3px solid #22c55e; }
.toast.info { border-left: 3px solid #60a5fa; }
@keyframes slideIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 480px) { #toast-container { bottom: 1rem; right: 0.75rem; left: 0.75rem; } .toast { max-width: 100%; } }
