/* ============================================================
   PATRIOT LABS — DESIGN SYSTEM
   ============================================================ */

:root {
  /* Brand colors — pulled from the Patriot Labs shield logo */
  --navy-deep: #050d1f;
  --navy: #0b1d3d;
  --navy-soft: #142a52;
  --red: #c8102e;
  --red-bright: #e51a35;
  --red-dark: #8c0a20;
  --white: #ffffff;
  --off-white: #f5f4ef;
  --silver: #c9ced6;
  --gray: #6b7280;
  --gray-2: #9ca3af;
  --gray-dark: #1f2937;

  /* Semantic */
  --bg: var(--navy-deep);
  --bg-elevated: var(--navy);
  --surface: var(--navy-soft);
  --text: var(--white);
  --text-muted: var(--silver);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);
  --accent: var(--red);
  --accent-hover: var(--red-bright);

  /* Layout */
  --max-w: 1280px;
  --pad: clamp(1rem, 2.5vw, 2rem);
  --radius: 4px;
  --radius-lg: 8px;

  /* Type */
  --font-display: 'Anton', 'Oswald', 'Impact', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
}

/* ============================================================
   RESET
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.05;
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--red-bright);
}
.mono { font-family: var(--font-mono); font-size: 0.85em; }

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

section { padding: clamp(3rem, 7vw, 6rem) 0; }

/* ============================================================
   PROMO BANNER
   ============================================================ */

.promo-banner {
  background: linear-gradient(90deg, var(--red-dark) 0%, var(--red) 50%, var(--red-dark) 100%);
  color: var(--white);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 51;
  overflow: hidden;
}
.promo-banner::before,
.promo-banner::after {
  content: '★';
  display: inline-block;
  margin: 0 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
  vertical-align: middle;
}

/* Free-shipping progress hint inside the cart drawer */
.shipping-hint {
  margin: 0.5rem 0 1rem;
  padding: 0.65rem 0.85rem;
  background: rgba(200, 16, 46, 0.12);
  border: 1px solid rgba(200, 16, 46, 0.35);
  border-radius: var(--radius);
  font-size: 0.78rem;
  color: var(--white);
  text-align: center;
  letter-spacing: 0.04em;
}
.shipping-hint.unlocked {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
}
.shipping-hint .bar {
  display: block;
  margin-top: 0.5rem;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}
.shipping-hint .bar > span {
  display: block;
  height: 100%;
  background: var(--red);
  transition: width 0.3s ease;
}
.shipping-hint.unlocked .bar > span { background: #22c55e; }

/* ============================================================
   NAV
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 13, 31, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.5rem 0;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
}
.nav-logo img { height: 100px; width: auto; }
@media (max-width: 880px) { .nav-logo img { height: 60px; } }
.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nav-links a {
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--red-bright); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--red);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.cart-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.2s;
}
.cart-button:hover { background: var(--surface); border-color: var(--red); }
.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.4rem;
  background: var(--red);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
}
.cart-count[data-count="0"] { display: none; }
.mobile-toggle { display: none; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .mobile-toggle {
    display: inline-grid;
    place-items: center;
    width: 44px; height: 44px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
  }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    padding: 1rem var(--pad);
    background: var(--navy-deep);
    border-bottom: 1px solid var(--border);
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--red-bright);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(200, 16, 46, 0.35);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.05); }
.btn-ghost {
  padding: 0.5rem 0.85rem;
  font-size: 0.78rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover { color: var(--white); border-color: var(--red); }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  padding: 6rem 0 4rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at top, rgba(11, 29, 61, 0.4) 0%, var(--navy-deep) 70%),
    url('../assets/headers/hero.png') center/cover no-repeat;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 13, 31, 0.65) 0%, rgba(5, 13, 31, 0.95) 100%);
}
.hero-content {
  max-width: 900px;
  padding: 0 var(--pad);
}
.hero h1 {
  font-size: clamp(2.75rem, 8vw, 6rem);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}
.hero h1 .accent { color: var(--red-bright); }
.hero-sub {
  margin: 1.5rem auto 2.5rem;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--silver);
  max-width: 600px;
}
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-badges {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--silver);
}
.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-badges svg { width: 16px; height: 16px; color: var(--red-bright); }

/* ============================================================
   LINEUP BANNER (between hero and featured products)
   ============================================================ */

.lineup-banner {
  display: block;
  margin: 0;
  padding: 0;
  line-height: 0;
  background: var(--navy-deep);
  overflow: hidden;
}
.lineup-banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* Featured section tightened up when it follows the banner */
.featured-tight {
  padding-top: clamp(2rem, 4vw, 3rem);
}

/* ============================================================
   SECTION INTRO
   ============================================================ */

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}
.section-head .eyebrow { display: block; margin-bottom: 0.75rem; }
.section-head p {
  max-width: 600px;
  margin: 1rem auto 0;
  color: var(--text-muted);
}

/* ============================================================
   PRODUCT GRID + CARD
   ============================================================ */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--red);
}
.product-card .badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  padding: 0.25rem 0.6rem;
  background: var(--red);
  border-radius: var(--radius);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.product-card .img-wrap {
  aspect-ratio: 3 / 4;
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.04) 0%, transparent 60%),
    var(--navy-deep);
  display: grid;
  place-items: center;
  padding: 1rem;
  overflow: hidden;
}
.product-card .img-wrap img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.product-card:hover .img-wrap img { transform: scale(1.05); }
.product-card .info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
}
.product-card .name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.product-card .dose {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.product-card .blurb {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5rem;
}
.product-card .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.product-card .price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
}
.product-card .price small { font-size: 0.75rem; color: var(--text-muted); }
.product-card .add {
  padding: 0.55rem 0.9rem;
  background: var(--red);
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background 0.2s;
}
.product-card .add:hover { background: var(--red-bright); }
.product-card .add.added { background: #16a34a; }

/* ============================================================
   TRUST STRIP
   ============================================================ */

.trust {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: center;
}
.trust-item .icon {
  display: inline-grid;
  place-items: center;
  width: 56px; height: 56px;
  margin-bottom: 1rem;
  border: 2px solid var(--red);
  border-radius: 50%;
  color: var(--red-bright);
}
.trust-item .icon svg { width: 28px; height: 28px; }
.trust-item h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.trust-item p { color: var(--text-muted); font-size: 0.9rem; }

/* ============================================================
   FAQ
   ============================================================ */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--navy);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--red-bright);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { background: var(--surface); }
.faq-item .body {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--navy-deep);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}
.footer-brand img { height: 160px; margin-bottom: 1rem; }
.footer-brand p { max-width: 320px; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a:hover { color: var(--red-bright); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
}
.research-warning {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(200, 16, 46, 0.08);
  border: 1px solid rgba(200, 16, 46, 0.3);
  border-radius: var(--radius);
  color: var(--silver);
  font-size: 0.8rem;
  text-align: center;
}

/* ============================================================
   SHOP PAGE — toolbar + filters
   ============================================================ */

.shop-header {
  padding: 4rem 0 2rem;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-bottom: 1px solid var(--border);
}
.shop-header h1 { margin-bottom: 0.5rem; }
.shop-header p { color: var(--text-muted); margin: 0; }

.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  padding: 2rem 0 5rem;
}
@media (max-width: 880px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; }
}
.shop-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.filter-group h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}
.filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.filter-list button {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  text-align: left;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all 0.15s;
}
.filter-list button:hover { background: var(--surface); color: var(--white); }
.filter-list button.active { background: var(--red); color: var(--white); }
.filter-list .count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  opacity: 0.7;
}

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.shop-search {
  flex: 1;
  min-width: 240px;
  position: relative;
}
.shop-search input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  background: var(--navy);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--white);
  outline: none;
  transition: border-color 0.2s;
}
.shop-search input::placeholder { color: var(--gray-2); }
.shop-search input:focus { border-color: var(--red); }
.shop-search svg {
  position: absolute;
  left: 0.85rem; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}
.shop-sort select {
  padding: 0.75rem 1rem;
  background: var(--navy);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--white);
  outline: none;
  cursor: pointer;
}
.results-meta {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.empty {
  padding: 3rem;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}

/* ============================================================
   CART DRAWER
   ============================================================ */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 100vw);
  background: var(--navy-deep);
  border-left: 1px solid var(--border);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
}
body.cart-open .cart-overlay { opacity: 1; pointer-events: auto; }
body.cart-open .cart-drawer { transform: translateX(0); }
.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.cart-head h3 { font-size: 1.1rem; margin: 0; }
.cart-close {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: var(--radius);
}
.cart-close:hover { background: var(--surface); }
.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}
.cart-empty {
  display: grid;
  place-items: center;
  height: 100%;
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
}
.cart-empty .icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }
.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.cart-item img {
  width: 64px; height: 64px;
  object-fit: contain;
  background: var(--navy);
  border-radius: var(--radius);
  padding: 0.4rem;
}
.cart-item .meta .name { font-weight: 600; font-size: 0.95rem; }
.cart-item .meta .dose { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); }
.cart-item .qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 0.4rem;
}
.cart-item .qty button {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  font-size: 0.85rem;
}
.cart-item .qty button:hover { background: var(--surface); }
.cart-item .qty span {
  width: 30px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.cart-item .right { text-align: right; display: flex; flex-direction: column; gap: 0.35rem; align-items: flex-end; }
.cart-item .line-total { font-family: var(--font-display); font-size: 1.05rem; }
.cart-item .remove {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.cart-item .remove:hover { color: var(--red-bright); }
.cart-foot {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--navy);
}
.cart-totals {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.cart-totals .row { display: flex; justify-content: space-between; }
.cart-totals .row.total {
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--white);
}

/* ============================================================
   CART SUGGESTIONS (upsell supplies)
   ============================================================ */

.cart-suggestions {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(200, 16, 46, 0.06);
  border: 1px solid rgba(200, 16, 46, 0.25);
  border-radius: var(--radius-lg);
}
.cart-suggestions-head {
  margin-bottom: 0.85rem;
}
.cart-suggestions-head .eyebrow {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.7rem;
}
.cart-suggestions-head p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.cart-suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cart-suggestion {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 0.75rem;
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s;
}
.cart-suggestion:hover { border-color: var(--border-strong); }
.cart-suggestion img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: var(--navy-deep);
  border-radius: var(--radius);
  padding: 0.25rem;
}
.cart-suggestion .img-placeholder.mini {
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
}
.cart-suggestion .meta .name {
  font-weight: 600;
  font-size: 0.85rem;
}
.cart-suggestion .meta .dose {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}
.add-mini {
  padding: 0.45rem 0.75rem;
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background 0.15s;
}
.add-mini:hover { background: var(--red-bright); }
.add-mini .orig-mini {
  font-weight: 400;
  font-size: 0.7rem;
  margin-right: 0.35rem;
  opacity: 0.7;
  text-decoration: line-through;
}
.cart-suggestion .sale-tag {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.4rem;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 3px;
  color: #4ade80;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  vertical-align: middle;
}
.cart-suggestions-head p strong {
  color: #4ade80;
  font-weight: 600;
}

/* ============================================================
   PRODUCT DETAIL
   ============================================================ */

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 4rem 0;
  align-items: start;
}
@media (max-width: 880px) {
  .product-detail { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 0; }
}
.product-detail .gallery {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 3rem;
}
.product-detail .gallery img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}
.product-detail .breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}
.product-detail .breadcrumb a:hover { color: var(--red-bright); }
.product-detail h1 { font-size: clamp(2.25rem, 4vw, 3.5rem); }
.product-detail .dose-line {
  font-family: var(--font-mono);
  color: var(--silver);
  margin-top: 0.5rem;
}
.product-detail .price-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: 1.5rem 0;
}
.product-detail .price-row .price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--white);
}
.product-detail .stock {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #4ade80;
}
.product-detail .stock::before {
  content: '●';
  margin-right: 0.4rem;
}
.product-detail .description {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.product-detail .actions {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
  margin-bottom: 2rem;
}
.product-detail .qty-stepper {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
}
.product-detail .qty-stepper button {
  width: 44px; height: 100%;
  display: grid; place-items: center;
  font-size: 1.1rem;
}
.product-detail .qty-stepper button:hover { background: var(--surface); }
.product-detail .qty-stepper input {
  width: 50px;
  background: transparent;
  border: none;
  text-align: center;
  font-family: var(--font-mono);
  color: var(--white);
  outline: none;
}
.product-detail .specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.product-detail .specs dt { color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; }
.product-detail .specs dd { margin: 0 0 0.5rem; font-family: var(--font-mono); font-size: 0.9rem; }

/* ============================================================
   BULK DISCOUNT UI
   ============================================================ */

/* Cart item: bulk hint/applied row spanning full width */
.cart-item-bulk {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
}
.bulk-hint {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: rgba(200, 16, 46, 0.1);
  border: 1px dashed rgba(200, 16, 46, 0.4);
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red-bright);
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
}
.bulk-hint:hover {
  background: rgba(200, 16, 46, 0.18);
  border-color: var(--red);
  border-style: solid;
}
.bulk-applied {
  padding: 0.45rem 0.75rem;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
  color: #4ade80;
  text-align: center;
  letter-spacing: 0.04em;
}

/* Original-price strikethrough next to discounted line total */
.cart-item .line-total .orig {
  display: inline-block;
  margin-right: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--gray-2);
  text-decoration: line-through;
}

/* Bulk savings row in totals */
.cart-totals .row.savings {
  color: #4ade80;
  font-weight: 600;
}

/* Product detail page: bulk promo line above variants */
.bulk-promo {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(90deg, rgba(200, 16, 46, 0.15) 0%, rgba(200, 16, 46, 0.05) 100%);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
}
/* ============================================================
   VARIANT SELECTOR (multi-size products)
   ============================================================ */

.variant-selector {
  margin-bottom: 1.75rem;
}
.variant-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.variant-chips {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.variant-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.7rem 1.1rem;
  background: var(--navy);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  min-width: 110px;
  transition: all 0.15s ease;
  text-decoration: none;
}
.variant-chip:hover { border-color: var(--red); transform: translateY(-1px); }
.variant-chip.selected {
  border-color: var(--red);
  background: rgba(200, 16, 46, 0.12);
}
.variant-chip.out {
  opacity: 0.5;
}
.variant-chip.out:hover { transform: none; }
.variant-chip .v-dose {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--white);
}
.variant-chip .v-price {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.variant-chip.selected .v-price { color: var(--white); }
.variant-chip.out .v-price { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; }

/* Make .add work for both <button> and <a> tags */
.product-card .add {
  display: inline-block;
  text-decoration: none;
}

/* ============================================================
   CHECKOUT PAGE
   ============================================================ */

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 880px) {
  .checkout-grid { grid-template-columns: 1fr; gap: 2rem; }
  .checkout-summary { order: 2; }
}

.checkout-form h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.75rem;
}
.checkout-intro {
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 540px;
}

/* Summary side */
.checkout-summary {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: 90px;
}
.checkout-section-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.summary-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.summary-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.summary-item:last-child { border-bottom: none; }
.summary-item img {
  width: 48px; height: 48px;
  object-fit: contain;
  background: var(--navy-deep);
  border-radius: var(--radius);
  padding: 0.25rem;
}
.summary-item .meta .name { font-weight: 600; font-size: 0.9rem; }
.summary-item .meta .dose { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); }
.summary-item .line-total {
  font-family: var(--font-display);
  font-size: 1rem;
  text-align: right;
}
.summary-item .line-total .orig {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--gray-2);
  text-decoration: line-through;
  font-weight: 400;
}
.bulk-applied.small {
  margin-top: 0.3rem;
  padding: 0.2rem 0.45rem;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
}
.checkout-totals {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.back-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.back-link:hover { color: var(--red-bright); }

/* Form side */
.form-section {
  border: none;
  padding: 0;
  margin: 0 0 1.75rem;
}
.form-section legend {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--white);
  padding: 0;
  margin-bottom: 0.85rem;
  display: block;
  width: 100%;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}
.form-section legend small {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
  margin-left: 0.5rem;
}
.form-section label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--silver);
  margin-bottom: 0.85rem;
}
.form-section label small {
  font-weight: 400;
  color: var(--gray-2);
  margin-left: 0.3rem;
}
.req { color: var(--red-bright); }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.form-row:has(input[name="zip"]) { grid-template-columns: 2fr 0.8fr 1fr; }
@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr !important; }
}
.form-section input[type="text"],
.form-section input[type="email"],
.form-section input[type="tel"],
.form-section select,
.form-section textarea {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.7rem 0.9rem;
  background: var(--navy);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--white);
  font: inherit;
  font-weight: 400;
  outline: none;
  transition: border-color 0.15s;
}
.form-section input:focus,
.form-section select:focus,
.form-section textarea:focus { border-color: var(--red); }
.form-section input:invalid:not(:placeholder-shown) { border-color: var(--red-dark); }
.form-section textarea { resize: vertical; min-height: 80px; }
.form-section select { cursor: pointer; }
.form-hint {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.checkbox-line {
  display: flex !important;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background: var(--navy);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 400 !important;
  color: var(--silver) !important;
}
.checkbox-line input { margin-top: 0.2rem; cursor: pointer; }
.form-error {
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  background: rgba(200, 16, 46, 0.12);
  border: 1px solid var(--red);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--white);
}

/* Success screen */
.checkout-success {
  max-width: 600px;
  margin: 2rem auto;
  text-align: center;
  padding: 3rem 2rem;
}
.checkout-success .check-icon {
  display: inline-grid;
  place-items: center;
  width: 80px; height: 80px;
  margin-bottom: 1.5rem;
  color: #4ade80;
}
.checkout-success .check-icon svg { width: 80px; height: 80px; }
.checkout-success h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}
.checkout-success .order-id {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin-bottom: 1.5rem;
  background: var(--navy);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text-muted);
}
.checkout-success .order-id .mono {
  color: var(--white);
  font-family: var(--font-mono);
  font-weight: 600;
  margin-left: 0.5rem;
}
.checkout-success p { color: var(--text-muted); line-height: 1.7; margin-bottom: 1rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.checkout-success .checkout-aside { font-size: 0.85rem; }
.checkout-success .checkout-aside a { color: var(--red-bright); }
.success-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ============================================================
   TOAST
   ============================================================ */

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  z-index: 200;
  padding: 0.85rem 1.5rem;
  background: var(--navy);
  border: 1px solid var(--red);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.9rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ============================================================
   IMAGE PLACEHOLDER (for products without vial photos)
   ============================================================ */

.img-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.02),
      rgba(255, 255, 255, 0.02) 8px,
      transparent 8px,
      transparent 16px
    ),
    radial-gradient(ellipse at center, rgba(200, 16, 46, 0.08) 0%, transparent 60%);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}
.img-placeholder span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--silver);
  line-height: 1.1;
}
.img-placeholder.large span { font-size: 2.5rem; }
.img-placeholder.mini {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  padding: 0;
}
.img-placeholder.mini {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--red-bright);
}

/* ============================================================
   SOLD OUT STATES
   ============================================================ */

.product-card.sold-out .img-wrap { opacity: 0.55; }
.product-card .badge.badge-out {
  background: var(--gray-dark);
  color: var(--silver);
  border: 1px solid var(--border-strong);
}
.product-card .add.disabled,
.product-card .add:disabled {
  background: var(--gray-dark);
  color: var(--gray-2);
  cursor: not-allowed;
  pointer-events: none;
}
.product-card .add.disabled:hover { background: var(--gray-dark); }

.product-detail .stock.out {
  color: var(--gray-2);
}
.product-detail .stock.out::before { color: var(--gray); }

/* ============================================================
   UTILITIES
   ============================================================ */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
