/*
 * BacWaterOnly — Home page styles
 * Loaded only on pages containing [backwater_home].
 */

/* ─── Typography & section helpers ──────────────────────────────────────── */
.section-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bw-accent);
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  background: var(--bw-ink);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 10vw, 120px) clamp(16px, 5vw, 64px);
}

.hero-bg-circle {
  position: absolute;
  right: -200px;
  top: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 79, 216, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { justify-content: center !important; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
}

.hero-eyebrow span {
  width: 20px;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
  display: inline-block;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
}

.hero-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
  max-width: 400px;
}

.hero-visual {
  display: flex;
  justify-content: right;
  align-items: center;
}

.hero-vial-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--bw-radius-lg);
  padding: 32px;
  display: flex;
  gap: 24px;
  align-items: flex-end;
}

/* Vials */
.vial { display: flex; flex-direction: column; align-items: center; gap: 10px; }

.vial-body {
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}

.vial-body::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 20%;
  width: 30%;
  height: 55%;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 100px;
}

.vial-body.sm { width: 40px; height: 100px; }
.vial-body.lg { width: 52px; height: 140px; }

.vial-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(100, 180, 255, 0.4), rgba(100, 180, 255, 0.1));
  border-radius: 0 0 100px 100px;
}

.vial-fill.sm { height: 70%; }
.vial-fill.lg { height: 75%; }

.vial-cap    { width: 16px; height: 10px; background: rgba(255, 255, 255, 0.3); border-radius: 3px 3px 0 0; }
.vial-cap.lg { width: 20px; }

.vial-label { font-family: 'DM Mono', monospace; font-size: 0.65rem; color: rgba(255, 255, 255, 0.4); letter-spacing: 0.06em; }
.vial-price { font-size: 0.85rem; font-weight: 600; color: rgba(255, 255, 255, 0.7); }

/* ─── Main section wrapper ───────────────────────────────────────────────── */
.bw-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 96px 0;
}

@media (max-width: 768px) {
  .bw-main { padding: 64px 20px; }
}

/* ─── Products grid ──────────────────────────────────────────────────────── */

/* Product Details — full-width top strip */
.product-info {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--bw-border);
}

.product-info-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bw-ink-muted);
  margin-bottom: 12px;
  display: block;
}

.product-badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--bw-border);
}

.badge-blue  { background: var(--bw-accent-soft); color: var(--bw-accent); border-color: #c7d7f8; }
.badge-green { background: var(--bw-green-soft);  color: var(--bw-green);  border-color: #b6ecd4; }

.product-desc {
  font-size: 0.9rem;
  color: var(--bw-ink-soft);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 680px;
}

.spec-list { list-style: none; display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px 32px; }

.spec-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--bw-ink-soft);
}

.spec-icon {
  width: 20px;
  height: 20px;
  background: var(--bw-accent-soft);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.spec-icon svg { width: 11px; height: 11px; stroke: var(--bw-accent); }

/* ─── Two-column order layout ───────────────────────────────────────────── */
.order-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 840px) {
  .order-layout { grid-template-columns: 1fr; }
}

/* Right column — shipping + total + action; no extra wrapper padding needed */
.order-action-col { display: flex; flex-direction: column; }

/* ─── Order panel ────────────────────────────────────────────────────────── */
.order-panel {
  background: var(--bw-surface);
  border: 1px solid var(--bw-border);
  border-radius: var(--bw-radius-lg);
  padding: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.order-panel h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.order-panel .subtitle {
  font-size: 0.82rem;
  color: var(--bw-ink-muted);
  margin-bottom: 24px;
}

/* Product cards */
.product-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

@media (max-width: 500px) {
  .product-cards { grid-template-columns: 1fr; }
}

.product-card {
  border: 2px solid var(--bw-border);
  border-radius: var(--bw-radius);
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
  background: var(--bw-surface);
}

.product-card:hover         { border-color: #bbc9f5; }
.product-card.active        { border-color: var(--bw-accent); background: var(--bw-accent-soft); }
.product-card input         { position: absolute; opacity: 0; pointer-events: none; }

.product-card.out-of-stock {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.card-oos-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #991b1b;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
}

.bw-qty-hint {
  font-size: 0.75rem;
  color: var(--bw-ink-muted);
  margin: 4px 0 0;
  min-height: 1.1em;
}

.card-size {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--bw-ink-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.product-card.active .card-size { color: var(--bw-accent); }

.card-name  { font-size: 0.92rem; font-weight: 600; margin-bottom: 4px; }
.card-price { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; }

.card-save {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--bw-green-soft);
  color: var(--bw-green);
  border-radius: 100px;
  padding: 2px 8px;
  margin-top: 6px;
}

.card-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--bw-border);
  background: var(--bw-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
}

.product-card.active .card-check         { background: var(--bw-accent); border-color: var(--bw-accent); }
.card-check svg                          { width: 10px; height: 10px; stroke: white; opacity: 0; transition: opacity 0.18s; }
.product-card.active .card-check svg     { opacity: 1; }

/* Mini vial illustration in product cards */
.card-vial {
  position: absolute;
  bottom: 8px;
  right: 10px;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 4px;
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.18s;
}

.product-card.active .card-vial { opacity: 0.75; }

/* Each individual vial unit */
.card-vial-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.card-vial-cap {
  background: rgba(0, 0, 0, 0.22);
  border-radius: 2px 2px 0 0;
}
.card-vial-cap.sm  { width: 10px; height: 6px; }
.card-vial-cap.sm2 { width: 10px; height: 5px; }
.card-vial-cap.lg  { width: 13px; height: 7px; }
.card-vial-cap.lg2 { width: 13px; height: 6px; }

.product-card.active .card-vial-cap { background: rgba(26, 79, 216, 0.4); }

.card-vial-body {
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}
.card-vial-body.sm  { width: 14px; height: 38px; }
.card-vial-body.sm2 { width: 14px; height: 26px; }
.card-vial-body.lg  { width: 18px; height: 50px; }
.card-vial-body.lg2 { width: 18px; height: 34px; }

.product-card.active .card-vial-body { border-color: rgba(26, 79, 216, 0.28); }

.card-vial-body::after {
  content: '';
  position: absolute;
  top: 15%;
  left: 25%;
  width: 25%;
  height: 45%;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 50px;
}

.card-vial-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70%;
  background: linear-gradient(to top, rgba(100, 180, 255, 0.55), rgba(100, 180, 255, 0.2));
  border-radius: 0 0 50px 50px;
}

.product-card.active .card-vial-fill {
  background: linear-gradient(to top, rgba(26, 79, 216, 0.4), rgba(26, 79, 216, 0.15));
}

/* Quantity */
.qty-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bw-ink-muted);
  margin-bottom: 10px;
  display: block;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 24px;
}

.qty-row input {
    border-radius: 0;
    height: 40px;
    border: 1px solid #ddd;
    border-left: 0 !important;
    border-right: 0 !important;
}

.qty-btn {
  width: 44px;
  height: 40px;
  border: 1px solid var(--bw-border);
  background: var(--bw-bg);
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bw-ink);
  transition: background 0.15s;
  border-radius: 0;
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  -ms-border-radius: 0;
  -o-border-radius: 0;
}

.qty-btn:hover { background: var(--bw-border); }

.qty-display {
  flex: 0 0 56px;
  width: 56px;
  max-width: 56px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  background: transparent;
  outline: none;
  color: var(--bw-ink);
  font-family: 'DM Mono', monospace;
}

/* Shipping table */
.shipping-box {
  /* background: var(--bw-bg);
  border-radius: var(--bw-radius); */
  padding: 16px 20px;
  margin-bottom: 24px;
}

.shipping-box-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bw-ink-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.shipping-rows { display: flex; flex-direction: column; gap: 6px; }

.shipping-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--bw-ink-soft);
  padding: 5px 8px;
  border-radius: 8px;
  transition: background 0.15s;
}

.shipping-row.active-tier {
  background: var(--bw-accent);
  color: white;
  font-weight: 600;
}

.shipping-row span:last-child {
  font-weight: 600;
  font-family: 'DM Mono', monospace;
}

/* Order total */
.order-total-box {
  background: var(--bw-ink);
  color: #fff;
  border-radius: var(--bw-radius);
  padding: 18px 20px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.total-label {
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.6;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.total-breakdown { font-size: 0.75rem; opacity: 0.45; margin-top: 2px; }

.total-amount {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-family: 'DM Mono', monospace;
}

/* Checkout button */
.checkout-btn {
  width: 100%;
  padding: 16px;
  border-radius: var(--bw-radius);
  background: var(--bw-accent);
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(26, 79, 216, 0.3);
  font-family: 'DM Sans', sans-serif;
}

.checkout-btn:hover  { background: #1540b8; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26, 79, 216, 0.4); }
.checkout-btn:active { transform: translateY(0); }
.checkout-btn:disabled { opacity: 0.8; cursor: not-allowed; transform: none !important; pointer-events: none; }
.checkout-btn svg    { width: 18px; height: 18px; }

.bw-checkout-icon { display: flex; align-items: center; }

.bw-btn-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: bw-spin 0.65s linear infinite;
  flex-shrink: 0;
}

@keyframes bw-spin {
  to { transform: rotate(360deg); }
}

.secure-note {
  text-align: center;
  font-size: 0.72rem;
  color: var(--bw-ink-muted);
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.secure-note svg { width: 12px; height: 12px; }

/* ─── Info cards ─────────────────────────────────────────────────────────── */
.info-section {
  background: var(--bw-ink);
  color: #fff;
  padding: clamp(48px, 8vw, 96px) clamp(16px, 5vw, 64px);
}

.info-inner { max-width: 1100px; margin: 0 auto; }
.info-section .section-tag   { color: rgba(255, 255, 255, 0.4); }
.info-section .section-title { color: #fff; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.info-card {
  background: rgba(255, 255, 255, 0.04);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.info-card:first-child  { border-radius: var(--bw-radius) 0 0 0; }
.info-card:nth-child(2) { border-radius: 0 var(--bw-radius) 0 0; }
.info-card:nth-child(3) { border-radius: 0 0 0 var(--bw-radius); }
.info-card:last-child   { border-radius: 0 0 var(--bw-radius) 0; }

@media (max-width: 600px) {
  .info-card,
  .info-card:first-child,
  .info-card:nth-child(2),
  .info-card:nth-child(3),
  .info-card:last-child  { border-radius: 0; }
}

.info-card-num {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  display: block;
}

.info-card h4 { font-size: 1rem; font-weight: 600; margin-bottom: 12px; color: #fff; }
.info-card p  { font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); line-height: 1.7; }

/* ─── Warning ────────────────────────────────────────────────────────────── */
.warning-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px clamp(16px, 5vw, 64px);
}

.warning-box {
  background: var(--bw-danger-soft);
  border: 1px solid #f5c6c2;
  border-left: 4px solid var(--bw-danger);
  border-radius: var(--bw-radius);
  padding: 28px 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.warning-icon     { flex-shrink: 0; width: 32px; height: 32px; margin-top: 2px; }
.warning-icon svg { width: 32px; height: 32px; stroke: var(--bw-danger); }

.warning-title {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bw-danger);
  margin-bottom: 8px;
}

.warning-text { font-size: 0.88rem; color: #7b2a22; line-height: 1.65; }

/* ─── Long copy ──────────────────────────────────────────────────────────── */
.copy-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 64px) 80px;
}

.copy-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

@media (max-width: 768px) {
  .copy-cols { grid-template-columns: 1fr; }
}

.copy-block h4 { font-size: 0.95rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }
.copy-block p  { font-size: 0.875rem; color: var(--bw-ink-soft); line-height: 1.75; margin-bottom: 16px; }
