@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;0,800;1,500;1,600&display=swap');

:root {
  --card: #faf7f1;
  --ink: #1c1a17;
  --offwhite: #f3efe6;
  --muted-on-light: #756b5c;
  --muted-on-dark: rgba(243,239,230,0.7);
  --border-on-light: #e7e0d2;
  --border-on-dark: rgba(243,239,230,0.2);
  --accent: #c1793a;
  --accent-ink: #7a4a1f;
  --danger: #c94f3f;
  --success: #3f8f5f;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }

/* ---------- Blurred mountain backdrop ---------- */
.mountain-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
}
.mountain-bg svg { width: 100%; height: 100%; display: block; }
.mountain-scrim {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10,12,14,0.58) 0%, rgba(10,12,14,0.32) 30%, rgba(10,12,14,0.5) 65%, rgba(10,12,14,0.82) 100%);
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #12161a;
  color: var(--offwhite);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Sticky pill nav ---------- */
.nav-wrap {
  position: sticky;
  top: 14px;
  z-index: 500;
  display: flex;
  justify-content: center;
  padding: 0 16px;
}
.topbar {
  width: 100%;
  max-width: 1100px;
  background: rgba(24, 26, 30, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--offwhite);
  border-radius: 999px;
  padding: 14px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.brand {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--offwhite);
  display: flex;
  align-items: center;
  gap: 12px;
}
/* The source PNG has two marks stacked in one file (a large seal + a small
   badge below it); this crops the display down to just the top seal since
   we have no image tool available to physically crop the file. */
.brand-seal-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.brand-seal-wrap img {
  position: absolute;
  top: 0;
  left: 50%;
  width: 60px;
  height: 60px;
  transform: translateX(-50%);
}
.site-nav { display: flex; gap: 24px; }
.site-nav a { color: var(--muted-on-dark); text-decoration: none; font-size: 13px; font-weight: 600; }
.site-nav a:hover, .site-nav a.active { color: var(--offwhite); }
#authArea { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted-on-dark); }
#authArea a { color: inherit; }
#authArea button {
  background: var(--offwhite);
  color: var(--ink);
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px 40px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  font-weight: 600;
  margin-bottom: 22px;
}
.hero-title {
  font-size: clamp(34px, 5.5vw, 58px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  max-width: 720px;
  color: var(--offwhite);
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.hero-title em { font-style: italic; font-weight: 600; color: var(--accent); }
.hero-sub {
  color: var(--muted-on-dark);
  font-size: 16px;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 0 28px;
}
.hero-cta {
  background: var(--offwhite);
  color: var(--ink);
  border: none;
  border-radius: 999px;
  padding: 14px 26px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
  max-width: 640px;
}
.stat-num { font-size: 30px; font-weight: 800; letter-spacing: -0.01em; color: var(--offwhite); }
.stat-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-on-dark); margin-top: 4px; }

/* ---------- Trust bar ---------- */
.trust-bar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 24px;
  border-top: 1px solid var(--border-on-dark);
  border-bottom: 1px solid var(--border-on-dark);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.trust-item {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  text-align: center;
  font-weight: 600;
}

/* ---------- RUO banner ---------- */
.ruo-banner {
  background: rgba(10,12,14,0.55);
  color: var(--muted-on-dark);
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 12px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border-on-dark);
}

/* ---------- Main layout ---------- */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.panel {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--border-on-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.panel h2 { margin-top: 0; letter-spacing: -0.01em; }
.hint { color: var(--muted-on-light); font-size: 13px; }

#catalogSection h2 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  font-weight: 700;
  margin-bottom: 6px;
}
#catalogSection .hint { color: var(--muted-on-dark); margin-bottom: 24px; }

/* ---------- Filter chips ---------- */
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filter-chip {
  background: transparent;
  border: 1px solid var(--border-on-dark);
  color: var(--muted-on-dark);
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}
.filter-chip.active { background: var(--offwhite); color: var(--ink); border-color: var(--offwhite); }

/* ---------- Catalog grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.card {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--border-on-light);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,0.35); }
.card-link { display: block; color: inherit; text-decoration: none; cursor: pointer; }
.card-media {
  height: 110px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #efe9dc, #e2d9c6);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
  position: relative;
}
.card-media svg { width: 100%; height: 100%; }

/* Plain vial photo, no name/spec text baked on -- the real name and spec are
   already shown as text next to the image, so the overlay was redundant and
   overflowed badly on long compound names. One shared photo template. */
.card-media.photo, .product-media.photo {
  background-image: url('/images/product-mockups/prismatic-vial-template.png');
  background-size: cover;
  background-position: center 20%;
}
.product-media.photo { background-position: center; }
.cart-line-media.photo,
.cart-popup-media.photo,
.cart-popup-suggestion-media.photo {
  background-image: url('/images/product-mockups/prismatic-vial-template.png');
}
.card .group { font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted-on-light); font-weight: 700; margin-bottom: 6px; }
.card h4 { margin: 0 0 4px; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.card .spec { color: var(--muted-on-light); font-size: 12px; margin-bottom: 10px; }
.card .price { font-weight: 800; color: var(--ink); margin-bottom: 12px; font-size: 15px; }
.card button, .cart button, form button {
  background: var(--ink);
  color: var(--offwhite);
  border: none;
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  width: 100%;
}
.card button:disabled { background: #e9e2d3; color: var(--muted-on-light); cursor: not-allowed; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 6px; margin-bottom: 20px; background: #efe9dc; border-radius: 999px; padding: 4px; width: fit-content; }
.tab-btn {
  background: transparent;
  border: none;
  color: var(--muted-on-light);
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}
.tab-btn.active { background: var(--ink); color: var(--offwhite); }

/* ---------- Forms ---------- */
form label { display: block; margin-bottom: 12px; font-size: 13px; color: var(--muted-on-light); font-weight: 600; }
form input {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-on-light);
  background: #f4efe4;
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
}
form select {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-on-light);
  background: #f4efe4;
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
}
form input:focus, form select:focus { outline: none; border-color: var(--accent); background: var(--card); }
.calc-result {
  margin-top: 8px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: #f4efe4;
  border: 1px solid var(--border-on-light);
}
.calc-result-label { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-on-light); font-weight: 700; margin-bottom: 6px; }
.calc-result-value { font-size: 16px; font-weight: 700; color: var(--ink); }
.form-msg { font-size: 13px; color: var(--danger); min-height: 18px; margin-top: 8px; }
.terms-box {
  background: #f4efe4;
  border: 1px solid var(--border-on-light);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 14px;
  max-height: 160px;
  overflow-y: auto;
  font-size: 12px;
  color: var(--muted-on-light);
}
.terms-box strong { color: var(--ink); display: block; margin-bottom: 6px; }
.terms-box ul { margin: 0; padding-left: 18px; }
.terms-box li { margin-bottom: 6px; }
.checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--ink) !important;
  margin-bottom: 16px;
  font-weight: 400 !important;
}
.checkbox-label input[type="checkbox"] { width: auto; margin: 2px 0 0; }

/* ---------- Cart (checkout-modal order summary uses .cart-row) ---------- */
.cart-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cart-remove-btn {
  background: transparent;
  border: none;
  color: var(--muted-on-light);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.cart-remove-btn:hover { color: var(--danger); }

/* ---------- Cart page ---------- */
#cartItemsPage { margin-bottom: 12px; }
#cartTotalPage { font-weight: 700; margin: 4px 0 16px; font-size: 14px; }
.cart-line {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-on-light);
}
.cart-line-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cart-line-info strong { font-size: 14px; }
.cart-line-info span { font-size: 12px; color: var(--muted-on-light); }
.cart-line-qty {
  display: flex;
  align-items: center;
  background: #f4efe4;
  border: 1px solid var(--border-on-light);
  border-radius: 10px;
  overflow: hidden;
}
.cart-line-qty .qty-btn {
  width: 30px;
  height: 34px;
  background: transparent;
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
}
.cart-line-qty .qty-btn:hover { background: #ece4d4; }
.cart-line-qty-num { min-width: 26px; text-align: center; font-size: 13px; font-weight: 700; }
.cart-line-price { font-weight: 700; font-size: 14px; min-width: 58px; text-align: right; }
.cart-line .cart-remove-btn { font-size: 20px; }

.cart-empty-state { text-align: center; padding: 48px 20px; color: var(--muted-on-light); }
.cart-empty-face { width: 64px; height: 64px; color: var(--muted-on-light); margin-bottom: 16px; }
.cart-empty-state p { font-size: 15px; margin-bottom: 22px; }
.cart-empty-cta {
  display: inline-block;
  background: var(--ink);
  color: var(--offwhite);
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

@media (max-width: 520px) {
  .cart-line { grid-template-columns: 1fr auto; row-gap: 10px; }
  .cart-line-price { text-align: left; }
}

.status-pill { font-size: 11px; padding: 3px 10px; border-radius: 999px; background: #f4e9d2; color: #8a6216; font-weight: 700; }
.status-approved { background: #dff2e6; color: var(--success); }

/* ---------- Entry gate modal ---------- */
.entry-gate {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.entry-gate-box {
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 460px;
  text-align: left;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.entry-gate-box .brand { color: var(--muted-on-light); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.entry-gate-box h2 { margin: 6px 0 14px; font-size: 22px; letter-spacing: -0.01em; }
.entry-gate-box p { color: var(--muted-on-light); font-size: 14px; line-height: 1.5; }
.entry-gate-box ul { color: var(--muted-on-light); font-size: 14px; padding-left: 18px; }
.entry-gate-box li { margin-bottom: 8px; }
.entry-gate-actions { display: flex; gap: 10px; margin-top: 24px; }
.entry-gate-actions button {
  flex: 1;
  padding: 13px;
  font-size: 14px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  cursor: pointer;
}
.entry-gate-actions button:first-child { background: var(--ink); color: var(--offwhite); }
.entry-gate-actions .secondary {
  background: transparent;
  border: 1px solid var(--border-on-light) !important;
  color: var(--muted-on-light);
}

/* ---------- Product detail page ---------- */
.product-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
}
.product-media {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #efe9dc, #e2d9c6);
  overflow: hidden;
  position: relative;
}
.product-media svg { width: 100%; height: 100%; }

.size-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted-on-light);
  margin-bottom: 10px;
}
.variant-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.variant-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  background: var(--card);
  border: 1.5px solid var(--border-on-light);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.variant-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.variant-btn .variant-size { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.variant-btn .variant-price { font-size: 11px; font-weight: 600; color: var(--muted-on-light); }
.variant-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 8px 20px rgba(28,26,23,0.28);
}
.variant-btn.active .variant-size { color: var(--offwhite); }
.variant-btn.active .variant-price { color: rgba(243,239,230,0.7); }

.price-block {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 22px;
}
.price-block .price-amount { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.price-block .price-unit { font-size: 13px; font-weight: 600; color: var(--muted-on-light); }

.purchase-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
  background: #f4efe4;
  border: 1px solid var(--border-on-light);
  border-radius: 16px;
  padding: 8px;
  margin-bottom: 6px;
}
.add-to-cart-btn {
  flex: 1;
  border: none;
  border-radius: 12px;
  background: var(--ink);
  color: var(--offwhite);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.add-to-cart-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(28,26,23,0.3); }

.qty-stepper {
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border-on-light);
  border-radius: 12px;
  overflow: hidden;
}
.qty-stepper .qty-btn {
  background: transparent;
  border: none;
  color: var(--ink);
  width: 38px;
  height: 46px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}
.qty-stepper .qty-btn:hover { background: #ece4d4; }
.qty-stepper input {
  width: 42px;
  height: 46px;
  border: none;
  border-left: 1px solid var(--border-on-light);
  border-right: 1px solid var(--border-on-light);
  text-align: center;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  padding: 0;
  -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

@media (max-width: 600px) {
  .product-layout { grid-template-columns: 1fr; }
  .product-media { max-width: 260px; }
}

/* ---------- Checkout modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-box {
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 480px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-header h3 { margin: 0; font-size: 20px; letter-spacing: -0.01em; }
.modal-close {
  background: transparent;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--muted-on-light);
  cursor: pointer;
  padding: 4px 8px;
}
.modal-close:hover { color: var(--ink); }
.modal-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.order-summary {
  background: #f4efe4;
  border: 1px solid var(--border-on-light);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 18px;
  font-size: 13px;
}
.order-summary .cart-row { margin-bottom: 4px; }
.order-summary .order-summary-total { font-weight: 700; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border-on-light); }

.promo-row { display: flex; gap: 8px; margin-bottom: 4px; }
.promo-row input {
  flex: 1;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-on-light);
  background: #faf9f7;
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
}
.promo-row input:focus { outline: none; border-color: var(--accent); background: var(--card); }
.promo-row button {
  background: var(--ink);
  color: var(--offwhite);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0 18px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

@media (max-width: 480px) {
  .modal-row { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 60px;
  border-top: 1px solid var(--border-on-dark);
  color: var(--muted-on-dark);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .trust-bar { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 640px) {
  .site-nav { display: none; }
}

.calc-grid {
  margin: 0 auto;
  padding: 48px 24px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 700px) {
  .calc-grid { grid-template-columns: 1fr; }
}
/* ---------- Catalog search ---------- */
.catalog-search {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}
.catalog-search input {
  width: 100%;
  min-height: 48px;
  padding: 12px 88px 12px 46px;
  border: 1px solid var(--border-on-dark);
  border-radius: 999px;
  background: rgba(18,22,26,0.58);
  color: var(--offwhite);
  font: inherit;
  font-size: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.catalog-search input::placeholder { color: var(--muted-on-dark); }
.catalog-search input:focus {
  outline: none;
  border-color: rgba(243,239,230,0.55);
  background: rgba(18,22,26,0.78);
  box-shadow: 0 0 0 3px rgba(193,121,58,0.2);
}
.search-icon {
  position: absolute;
  left: 18px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--muted-on-dark);
  border-radius: 50%;
  pointer-events: none;
}
.search-icon::after {
  content: '';
  position: absolute;
  width: 7px;
  border-top: 2px solid var(--muted-on-dark);
  right: -5px;
  bottom: -3px;
  transform: rotate(45deg);
}
.search-result-count {
  position: absolute;
  right: 18px;
  color: var(--muted-on-dark);
  font-size: 11px;
  font-weight: 700;
  pointer-events: none;
}
.catalog-empty {
  padding: 42px 20px;
  border: 1px dashed var(--border-on-dark);
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--muted-on-dark);
}
.catalog-empty h3 { margin: 0 0 8px; color: var(--offwhite); font-size: 17px; }
.catalog-empty p { margin: 0; font-size: 13px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .topbar { padding: 10px 14px; }
}
.catalog-search-btn {
  flex: 0 0 auto;
  min-height: 48px;
  margin-left: 10px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.catalog-search-btn:hover { background: #d18a48; transform: translateY(-1px); }
.catalog-search-btn:focus-visible {
  outline: 3px solid rgba(243,239,230,0.55);
  outline-offset: 2px;
}
@media (max-width: 520px) {
  .catalog-search { flex-wrap: wrap; }
  .catalog-search input { flex: 1 1 calc(100% - 58px); }
  .catalog-search-btn { width: 100%; margin: 10px 0 0; }
  .search-result-count { right: 18px; }
}
/* ---------- Product search overlay ---------- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  background: transparent;
  color: var(--offwhite);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.nav-search-button:hover, .nav-search-button:focus-visible {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.25);
  outline: none;
}
.nav-search-icon {
  position: relative;
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 50%;
  flex: 0 0 auto;
}
.nav-search-icon::after {
  content: '';
  position: absolute;
  width: 7px;
  border-top: 2px solid currentColor;
  right: -6px;
  bottom: -3px;
  transform: rotate(45deg);
  transform-origin: left center;
}
body.search-open { overflow: hidden; }
.product-search-overlay[hidden] { display: none; }
.product-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 84px 20px 20px;
  background: rgba(8,10,12,0.74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.product-search-dialog {
  width: min(760px, 100%);
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  padding: 26px;
  border: 1px solid var(--border-on-light);
  border-radius: var(--radius-lg);
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(0,0,0,0.5);
}
.product-search-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.product-search-eyebrow {
  margin-bottom: 5px;
  color: var(--accent-ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.product-search-header h2 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.02em;
}
.product-search-close {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border-on-light);
  border-radius: 50%;
  background: transparent;
  color: var(--muted-on-light);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.product-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.product-search-input-wrap .nav-search-icon {
  position: absolute;
  left: 18px;
  z-index: 1;
  color: var(--muted-on-light);
}
.product-search-input-wrap input {
  width: 100%;
  min-height: 52px;
  padding: 13px 18px 13px 50px;
  border: 1px solid var(--border-on-light);
  border-radius: 999px;
  background: #f4efe4;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
.product-search-input-wrap input:focus {
  outline: none;
  border-color: var(--accent);
  background: #fffdf8;
  box-shadow: 0 0 0 3px rgba(193,121,58,0.14);
}
.product-search-status {
  min-height: 18px;
  margin: 14px 2px 10px;
  color: var(--muted-on-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.product-search-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.product-search-result {
  display: grid;
  grid-template-columns: 76px 1fr 20px;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border-on-light);
  border-radius: var(--radius-md);
  color: var(--ink);
  text-decoration: none;
  background: #fffdf8;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.product-search-result:hover, .product-search-result:focus-visible {
  transform: translateY(-2px);
  border-color: #d1c5b1;
  box-shadow: 0 8px 22px rgba(28,26,23,0.1);
  outline: none;
}
.product-search-result-media {
  position: relative;
  width: 76px;
  height: 76px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background-image: url('/images/product-mockups/prismatic-vial-template.png');
  background-size: cover;
  background-position: center;
}
.product-search-result-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}
.product-search-result-copy strong {
  overflow: hidden;
  font-size: 14px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-search-result-copy > span:last-child {
  color: var(--muted-on-light);
  font-size: 12px;
}
.product-search-result-group {
  color: var(--accent-ink);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.product-search-result-arrow {
  color: var(--muted-on-light);
  font-size: 26px;
}
.product-search-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 34px;
  border: 1px dashed var(--border-on-light);
  border-radius: var(--radius-md);
  text-align: center;
}
.product-search-empty span {
  color: var(--muted-on-light);
  font-size: 13px;
}
.manual-payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 10px;
}
.payment-choice-card {
  appearance: none;
  border: 1.5px solid var(--border-on-light);
  border-radius: 18px;
  background: rgba(250,247,241,0.72);
  color: var(--ink);
  padding: 14px;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.payment-choice-card:hover {
  transform: translateY(-1px);
  border-color: rgba(58, 126, 75, 0.55);
  background: rgba(232, 239, 224, 0.9);
}
.payment-choice-card strong {
  display: block;
  font-size: 15px;
  margin-bottom: 5px;
}
.payment-choice-card em {
  font-style: normal;
  font-size: 11px;
  color: var(--success);
}
.payment-choice-card span,
.manual-payment-note {
  display: block;
  color: var(--muted-on-light);
  font-size: 12px;
  line-height: 1.45;
}
.manual-payment-note {
  text-align: center;
  margin: 0 0 12px;
}
.manual-payment-details {
  margin-top: 12px;
  padding: 14px;
  border: 1.5px solid rgba(58, 126, 75, 0.22);
  border-radius: 18px;
  background: rgba(232, 239, 224, 0.75);
}
.manual-payment-details h4 {
  margin: 0 0 8px;
}
.manual-payment-details p {
  margin: 0 0 10px;
}
@media (max-width: 560px) {
  .manual-payment-grid { grid-template-columns: 1fr; }
}
.payment-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 12px;
  color: var(--muted-on-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.payment-divider::before,
.payment-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-on-light);
}
.manual-checkout-btn {
  width: 100%;
  background: var(--card);
  color: var(--ink);
  border: 1.5px solid var(--border-on-light);
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.manual-checkout-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.manual-checkout-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.crypto-section { margin: 0 0 4px; }
.crypto-section label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted-on-light);
  margin-bottom: 8px;
}
.crypto-section select,
.crypto-section input {
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1.5px solid var(--border-on-light);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--card);
  color: var(--ink);
}
.crypto-price-preview {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--success);
}
.crypto-payment-details {
  margin-top: 12px;
  padding: 14px;
  border: 1.5px solid var(--border-on-light);
  border-radius: var(--radius-sm);
  background: #f4efe4;
}
.crypto-address-label {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted-on-light);
}
.crypto-address {
  margin: 0 0 8px;
  font-family: monospace;
  font-size: 13px;
  word-break: break-all;
  color: var(--ink);
}
.crypto-network-note {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--danger);
  font-weight: 700;
}
@media (max-width: 680px) {
  .product-search-overlay { padding: 68px 10px 10px; }
  .product-search-dialog {
    max-height: calc(100vh - 78px);
    padding: 18px;
  }
  .product-search-results { grid-template-columns: 1fr; }
  .product-search-result { grid-template-columns: 68px 1fr 18px; }
  .product-search-result-media { width: 68px; height: 68px; }
}

/* ---------- Storefront polish ---------- */
.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 14px;
}
.product-card .card-link {
  flex: 1;
}
.product-card .card-media {
  height: 168px;
  background-color: #f6f1e8;
  background-size: cover;
  background-position: center 48%;
  border: 1px solid rgba(28,26,23,0.06);
  box-shadow: inset 0 -20px 34px rgba(28,26,23,0.06);
}
.product-card-badge,
.ruo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.product-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  background: rgba(28,26,23,0.78);
  color: var(--offwhite);
}
.product-card-meta,
.product-card-foot,
.product-kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.product-card-meta { margin-bottom: 7px; }
.product-card-spec {
  color: var(--muted-on-light);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.product-card h4 {
  min-height: 38px;
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.18;
}
.product-card-description {
  min-height: 48px;
  margin: -2px 0 12px;
  color: var(--muted-on-light);
  font-size: 12px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-note {
  margin-bottom: 2px;
  color: var(--success);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.product-card .price { margin: 0; }
.product-card-arrow {
  color: var(--muted-on-light);
  font-size: 26px;
  line-height: 1;
}
.product-card .addBtn {
  margin-top: 14px;
}
.product-title {
  margin: 5px 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.product-description {
  max-width: 620px;
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.65;
}
.product-search-result-proof {
  color: var(--success) !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ruo-pill {
  padding: 6px 10px;
  border: 1px solid #d7ccb9;
  color: var(--accent-ink);
  background: #f4efe4;
}
.product-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 24px;
}
.product-trust-grid div {
  padding: 12px;
  border: 1px solid var(--border-on-light);
  border-radius: var(--radius-sm);
  background: #f4efe4;
}
.product-trust-grid strong,
.product-trust-grid span {
  display: block;
}
.product-trust-grid strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 12px;
}
.product-trust-grid span {
  color: var(--muted-on-light);
  font-size: 11px;
  line-height: 1.35;
}
.product-use-note {
  margin: 8px 0 0;
  color: var(--muted-on-light);
  font-size: 12px;
  line-height: 1.45;
}
.product-info-panel {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--border-on-light);
}
.product-info-panel h4 {
  margin: 0 0 10px;
}
.product-info-panel .hint {
  margin: 0 0 18px;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.7;
}
.product-info-panel a {
  color: var(--accent-ink);
  font-weight: 700;
}
@media (min-width: 760px) {
  .product-layout { grid-template-columns: 330px 1fr; }
  .product-media { aspect-ratio: 4 / 5; }
}

@media (max-width: 680px) {
  .product-card .card-media { height: 150px; }
  .product-trust-grid { grid-template-columns: 1fr; }
  .product-kicker-row { align-items: flex-start; flex-direction: column; }
}

/* ---------- Prismatic storefront foundation ---------- */
.storefront-hero {
  max-width: 1180px;
  min-height: calc(100vh - 120px);
  margin: 0 auto;
  padding: 72px 24px 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.78fr);
  align-items: center;
  gap: 48px;
}
.storefront-hero .hero-title {
  max-width: 780px;
  font-size: clamp(42px, 6.2vw, 78px);
  line-height: 0.94;
  letter-spacing: -0.045em;
}
.storefront-hero .hero-sub {
  max-width: 620px;
  font-size: 17px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}
.hero-ghost {
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(243,239,230,0.24);
  border-radius: 999px;
  background: rgba(18,22,26,0.36);
  color: var(--offwhite);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-ghost:hover,
.hero-ghost:focus-visible {
  border-color: rgba(243,239,230,0.48);
  background: rgba(243,239,230,0.08);
  outline: none;
}
.hero-ghost.compact {
  align-self: start;
  white-space: nowrap;
}
.hero-proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 650px;
}
.hero-proof-row div {
  padding: 16px;
  border: 1px solid rgba(243,239,230,0.16);
  border-radius: 16px;
  background: rgba(18,22,26,0.42);
}
.hero-proof-row strong,
.hero-proof-row span {
  display: block;
}
.hero-commerce-panel {
  padding: 22px;
  border: 1px solid rgba(243,239,230,0.16);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(250,247,241,0.98), rgba(232,222,204,0.94));
  color: var(--ink);
  box-shadow: 0 34px 90px rgba(0,0,0,0.42);
}
.hero-panel-kicker {
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-commerce-panel h2 {
  margin: 10px 0 18px;
  max-width: 420px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.hero-mini-products {
  display: grid;
  gap: 10px;
}
.hero-mini-product {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 86px;
  padding: 10px;
  border: 1px solid rgba(28,26,23,0.08);
  border-radius: 18px;
  background: rgba(255,255,255,0.42);
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.hero-mini-product:hover {
  transform: translateY(-2px);
  border-color: rgba(67,91,69,0.24);
  background: rgba(255,255,255,0.66);
}
.mini-vial {
  width: 74px;
  height: 66px;
  border-radius: 14px;
  border: 1px solid var(--border-on-light);
  background-color: #efe7d8;
  background-image: url('/images/product-mockups/prismatic-vial-template.png');
  background-size: 170%;
  background-position: center 26%;
}
.hero-mini-product strong,
.hero-mini-product em {
  display: block;
}
.hero-mini-product strong {
  font-size: 17px;
  letter-spacing: -0.02em;
}
.hero-mini-product em {
  margin-top: 4px;
  color: var(--muted-on-light);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}
.hero-panel-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.hero-panel-proof span {
  padding: 10px 8px;
  border-radius: 14px;
  background: rgba(67,91,69,0.1);
  color: #435b45;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}
.hero-panel-proof strong {
  display: block;
  margin-bottom: 2px;
  color: #223626;
  font-size: 16px;
}
.lab-confidence-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid rgba(243,239,230,0.16);
  border-radius: 22px;
  background: rgba(243,239,230,0.16);
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}
.lab-confidence-strip div {
  padding: 18px;
  background: rgba(18,22,26,0.72);
}
.lab-confidence-strip strong,
.lab-confidence-strip span {
  display: block;
}
.lab-confidence-strip strong {
  color: var(--offwhite);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.lab-confidence-strip span {
  margin-top: 7px;
  color: var(--muted-on-dark);
  font-size: 12px;
  line-height: 1.45;
}
.hero-proof-row strong {
  color: var(--offwhite);
  font-size: 24px;
  line-height: 1;
}
.hero-proof-row span {
  margin-top: 6px;
  color: var(--muted-on-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.hero-product-showcase {
  position: relative;
}
.hero-product-showcase::before {
  content: none;
}
.showcase-card {
  position: relative;
  padding: 20px;
  border: 1px solid rgba(243,239,230,0.18);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(250,247,241,0.98), rgba(232,222,204,0.94));
  color: var(--ink);
  box-shadow: 0 34px 90px rgba(0,0,0,0.45);
}
.showcase-topline {
  display: flex;
  justify-content: space-between;
  color: var(--accent-ink);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.showcase-vial {
  height: 440px;
  margin: 12px 0 10px;
  border-radius: 20px;
  background-image: url('/images/product-mockups/prismatic-vial-template.png');
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 -28px 36px rgba(28,26,23,0.05);
}
.showcase-copy {
  display: grid;
  gap: 2px;
}
.showcase-copy span {
  color: var(--muted-on-light);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.showcase-copy strong {
  font-size: 34px;
  letter-spacing: -0.04em;
  line-height: 1;
}
.showcase-copy em {
  color: var(--muted-on-light);
  font-size: 13px;
  font-style: normal;
}
.showcase-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.showcase-proof span {
  padding: 9px 8px;
  border-radius: 999px;
  background: #e9e1d2;
  color: #435b45;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}.trust-dock {
  max-width: 1180px;
  margin: -8px auto 18px;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  border: 1px solid rgba(243,239,230,0.16);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(250,247,241,0.98), rgba(232,222,204,0.94));
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(0,0,0,0.28);
}
.trust-dock-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px;
}
.trust-dock-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.15;
  text-transform: uppercase;
}
.trust-dock-item p {
  margin: 0;
  color: var(--muted-on-light);
  font-size: 12px;
  line-height: 1.35;
}
.trust-icon {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #eee7d8;
  color: #435b45;
  box-shadow: inset 0 0 0 1px rgba(67,91,69,0.12);
}
.trust-icon::before,
.trust-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.trust-icon-flask::before {
  width: 14px;
  height: 18px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 8px 8px;
}
.trust-icon-flask::after {
  width: 8px;
  height: 10px;
  border-inline: 2px solid currentColor;
  top: 34%;
}
.trust-icon-shield::before {
  width: 18px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 10px 10px 12px 12px;
  clip-path: polygon(50% 0, 100% 18%, 88% 78%, 50% 100%, 12% 78%, 0 18%);
}
.trust-icon-shield::after {
  width: 9px;
  height: 5px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translate(-50%, -55%) rotate(-45deg);
}
.trust-icon-vial::before {
  width: 13px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 5px;
}
.trust-icon-vial::after {
  width: 17px;
  height: 4px;
  border-radius: 4px;
  background: currentColor;
  top: 25%;
}
.trust-icon-box::before {
  width: 22px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 4px;
}
.trust-icon-box::after {
  width: 2px;
  height: 16px;
  background: currentColor;
}
.trust-icon-seal::before {
  width: 22px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.trust-icon-seal::after {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.storefront-main {
  max-width: 1180px;
  padding-top: 54px;
}
.storefront-section,
.standard-section,
.catalog-shell {
  margin-bottom: 70px;
}
.section-heading {
  margin-bottom: 24px;
}
.section-heading span {
  display: block;
  margin-bottom: 9px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.section-heading h2 {
  margin: 0;
  color: var(--offwhite);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.04em;
}
.section-heading p {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--muted-on-dark);
  font-size: 14px;
  line-height: 1.65;
}
.split-heading,
.catalog-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.section-link {
  color: var(--offwhite);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  border-bottom: 1px solid rgba(243,239,230,0.45);
}
.category-grid,
.standard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.category-tile,
.standard-card {
  border: 1px solid rgba(243,239,230,0.14);
  border-radius: 18px;
  background: rgba(18,22,26,0.58);
  color: var(--offwhite);
  text-align: left;
  box-shadow: 0 22px 55px rgba(0,0,0,0.22);
}
.category-tile {
  min-height: 185px;
  padding: 20px;
  cursor: pointer;
}
.category-tile:hover,
.category-tile:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(193,121,58,0.6);
  outline: none;
}
.category-tile span,
.standard-card span {
  display: block;
  margin-bottom: 34px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
}
.category-tile strong,
.standard-card h3 {
  display: block;
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: -0.03em;
}
.category-tile em,
.standard-card p {
  color: var(--muted-on-dark);
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
}
.featured-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.standard-card {
  padding: 24px;
}
.standard-card span { margin-bottom: 52px; }
.catalog-shell {
  padding: 28px;
  border: 1px solid rgba(243,239,230,0.14);
  border-radius: 24px;
  background: rgba(10,12,14,0.42);
}
.storefront-faq {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 70px;
}
.faq-panel details {
  padding: 17px 0;
  border-bottom: 1px solid var(--border-on-light);
}
.faq-panel details:last-child { border-bottom: 0; }
.faq-panel summary {
  cursor: pointer;
  font-weight: 900;
}
.faq-panel p {
  margin: 10px 0 0;
  line-height: 1.6;
}
@media (max-width: 980px) {
  .storefront-hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-product-showcase { max-width: 520px; }
  .trust-dock { grid-template-columns: repeat(2, 1fr); }
  .lab-confidence-strip,   .category-grid,
  .standard-grid,
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .trust-dock {
    grid-template-columns: 1fr;
    margin: 0 18px 18px;
    padding: 14px;
  }
  .trust-dock-item {
    grid-template-columns: 38px 1fr;
    padding: 8px;
  }
  .trust-icon {
    width: 38px;
    height: 38px;
  }
}
@media (max-width: 640px) {
  .storefront-hero { padding-top: 46px; gap: 28px; }
  .storefront-hero .hero-title { font-size: clamp(38px, 13vw, 56px); }
  .hero-proof-row,
  .category-grid,
  .standard-grid,
  .featured-grid { grid-template-columns: 1fr; }
  .showcase-vial { height: 330px; }
  .showcase-proof { grid-template-columns: 1fr; }
  .hero-panel-proof, .lab-confidence-strip,   .split-heading,
  .catalog-heading-row { align-items: flex-start; flex-direction: column; }
  .catalog-shell { padding: 18px; }
}

/* ---------- Dynamic vial label text ---------- */
.product-media.photo,
.showcase-vial.photo {
  position: relative;
}
.vial-label-overlay {
  position: absolute;
  left: 50%;
  top: 62%;
  width: 52%;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #1c1a17;
  text-align: center;
  pointer-events: none;
  text-transform: uppercase;
}
.vial-label-overlay strong {
  max-width: 100%;
  overflow: hidden;
  color: #1c1a17;
  font-size: clamp(15px, 1.65vw, 23px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.95;
  overflow-wrap: anywhere;
  white-space: normal;
}
.vial-label-overlay em {
  min-width: 54px;
  padding: 5px 12px;
  border: 1.6px solid #3f5741;
  border-radius: 999px;
  color: #3f5741;
  background: rgba(250,247,241,0.72);
  font-size: clamp(10px, 1vw, 15px);
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}
.detail-vial-label {
  top: 62%;
  width: 52%;
  gap: 10px;
}
.showcase-vial-label {
  top: 62%;
  width: 52%;
  gap: 12px;
}
.showcase-vial-label strong {
  font-size: 24px;
}
.showcase-vial-label em {
  padding: 5px 14px;
  font-size: 15px;
}

@media (max-width: 680px) {
  .detail-vial-label strong { font-size: 18px; }
  .showcase-vial-label strong { font-size: 18px; }
}





/* ---------- Premium cart refresh ---------- */
.cart-main {
  max-width: 1180px;
  padding-top: 50px;
}
.cart-page {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: linear-gradient(145deg, #fffaf1 0%, #f6efe2 55%, #eee2cf 100%);
}
.cart-page::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 0%, rgba(193,121,58,0.16), transparent 34%),
    radial-gradient(circle at 86% 8%, rgba(57,78,63,0.12), transparent 30%);
}
.cart-page-header,
.cart-layout {
  position: relative;
  z-index: 1;
}
.cart-page-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  padding: 32px 32px 22px;
  border-bottom: 1px solid rgba(28,26,23,0.08);
}
.cart-eyebrow {
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.cart-page h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.cart-page-header p {
  max-width: 560px;
  margin: 10px 0 0;
  color: var(--muted-on-light);
  line-height: 1.5;
}
.cart-header-link,
.checkout-secondary-link {
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  border: 1px solid var(--border-on-light);
  border-radius: 999px;
  background: rgba(255,255,255,0.46);
}
.cart-header-link { padding: 11px 16px; white-space: nowrap; }
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  padding: 24px 32px 32px;
}
.cart-items-card,
.cart-summary-card {
  border: 1px solid rgba(28,26,23,0.08);
  border-radius: 18px;
  background: rgba(250,247,241,0.74);
  box-shadow: 0 18px 34px rgba(28,26,23,0.08);
}
.cart-items-card { overflow: hidden; }
.cart-summary-card {
  padding: 18px;
  height: fit-content;
  position: sticky;
  top: 112px;
}
.cart-card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(28,26,23,0.08);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cart-card-title em {
  color: var(--muted-on-light);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.04em;
}
#cartItemsPage { margin: 0; }
.cart-line {
  grid-template-columns: 76px minmax(0, 1fr) auto auto auto;
  padding: 18px;
  gap: 16px;
  background: rgba(255,255,255,0.38);
}
.cart-line:last-child { border-bottom: 0; }
.cart-line-media {
  width: 76px;
  height: 76px;
  border-radius: 14px;
  border: 1px solid var(--border-on-light);
  background-color: #efe7d8;
  background-size: 165%;
  background-position: center 28%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5);
}
.cart-line-kicker {
  color: var(--accent-ink);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.cart-line-info strong { font-size: 17px; letter-spacing: -0.02em; }
.cart-line-info em {
  color: var(--success);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.cart-line-price { font-size: 16px; font-weight: 900; }
.cart-line-qty { border-radius: 999px; background: #f7f1e7; }
.cart-line-qty .qty-btn { border-radius: 999px; }
.cart-line .cart-remove-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: transparent;
}
.cart-summary-lines { display: grid; gap: 11px; padding-top: 4px; }
.cart-summary-lines div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted-on-light);
  font-size: 13px;
}
.cart-summary-lines strong { color: var(--ink); }
.cart-summary-total {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border-on-light);
  align-items: baseline;
}
.cart-summary-total span { color: var(--ink); font-weight: 900; }
.cart-summary-total strong { font-size: 24px; letter-spacing: -0.04em; }
.checkout-primary-btn {
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--offwhite);
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(28,26,23,0.18);
}
.checkout-primary-btn:hover { transform: translateY(-1px); }
.checkout-secondary-link {
  display: block;
  margin-top: 10px;
  padding: 12px;
  text-align: center;
  background: transparent;
}
.cart-summary-note {
  margin: 14px 0 0;
  color: var(--muted-on-light);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}
.cart-summary-empty {
  display: grid;
  gap: 4px;
  padding: 8px 0 14px;
  color: var(--muted-on-light);
  font-size: 13px;
}
.cart-summary-empty strong { color: var(--ink); font-size: 16px; }

/* ---------- Add-to-cart popup ---------- */
.cart-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 82px 24px 24px;
  background: rgba(10,12,14,0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.cart-popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cart-popup-card {
  width: min(470px, calc(100vw - 28px));
  background: #fffdf8;
  color: var(--ink);
  border: 1px solid rgba(28,26,23,0.12);
  border-radius: 20px;
  box-shadow: 0 28px 70px rgba(0,0,0,0.32);
  transform: translateY(-8px) scale(0.98);
  transition: transform 0.18s ease;
  overflow: hidden;
  position: relative;
}
.cart-popup-overlay.active .cart-popup-card { transform: translateY(0) scale(1); }
.cart-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #f4efe4;
  color: var(--muted-on-light);
  font-size: 22px;
  cursor: pointer;
}
.cart-popup-success {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 18px 54px 16px 18px;
  border-bottom: 1px solid var(--border-on-light);
  font-size: 14px;
}
.cart-popup-success span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #e7f3e9;
  color: var(--success);
  font-weight: 900;
}
.cart-popup-product {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
}
.cart-popup-media {
  width: 90px;
  height: 92px;
  border-radius: 14px;
  border: 1px solid var(--border-on-light);
  background-size: 162%;
  background-position: center 24%;
}
.cart-popup-copy { display: grid; gap: 5px; min-width: 0; }
.cart-popup-copy strong { font-size: 16px; letter-spacing: -0.02em; }
.cart-popup-copy span { color: var(--muted-on-light); font-size: 12px; }
.cart-popup-copy em {
  color: var(--success);
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.cart-popup-price { font-weight: 900; }
.cart-popup-totals {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px 18px;
  color: var(--muted-on-light);
  font-size: 13px;
}
.cart-popup-totals strong { color: var(--ink); }
.cart-popup-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 18px 18px;
}
.cart-popup-actions button {
  border-radius: 999px;
  padding: 13px 16px;
  font-weight: 900;
  cursor: pointer;
}
.cart-popup-checkout {
  border: 0;
  background: var(--ink);
  color: var(--offwhite);
}
.cart-popup-continue {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
}
.cart-popup-suggestions {
  padding: 16px 18px 18px;
  border-top: 1px solid var(--border-on-light);
  background: #faf7f1;
}
.cart-popup-suggestions-title {
  margin-bottom: 10px;
  color: var(--muted-on-light);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cart-popup-suggestion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cart-popup-suggestion {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 9px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.cart-popup-suggestion-media {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  border: 1px solid var(--border-on-light);
  background-size: 175%;
  background-position: center 25%;
}
.cart-popup-suggestion strong,
.cart-popup-suggestion em { display: block; }
.cart-popup-suggestion strong { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-popup-suggestion em { color: var(--muted-on-light); font-size: 11px; font-style: normal; }

@media (max-width: 760px) {
  .cart-page-header { flex-direction: column; padding: 26px 20px 18px; }
  .cart-layout { grid-template-columns: 1fr; padding: 18px 20px 24px; }
  .cart-summary-card { position: static; }
  .cart-line { grid-template-columns: 66px 1fr auto; gap: 12px; }
  .cart-line-media { width: 66px; height: 66px; }
  .cart-line-qty { grid-column: 2 / 3; width: fit-content; }
  .cart-line-price { grid-column: 3 / 4; grid-row: 1 / 2; }
  .cart-line .cart-remove-btn { grid-column: 3 / 4; grid-row: 2 / 3; justify-self: end; }
  .cart-popup-overlay { justify-content: center; align-items: flex-start; padding: 76px 14px 14px; }
  .cart-popup-product { grid-template-columns: 72px 1fr; }
  .cart-popup-media { width: 72px; height: 76px; }
  .cart-popup-price { grid-column: 2 / 3; }
  .cart-popup-actions,
  .cart-popup-suggestion-grid { grid-template-columns: 1fr; }
}

/* ---------- Trust/polish pass ---------- */
.variant-meta {
  color: var(--muted-on-light);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.variant-btn.active .variant-meta { color: rgba(243,239,230,0.62); }
.product-selected-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 14px;
  align-items: center;
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid rgba(67,91,69,0.16);
  border-radius: 16px;
  background: #f4f7ee;
}
.product-selected-card span {
  color: var(--muted-on-light);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.product-selected-card strong {
  color: #314a35;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.product-selected-card em {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: #314a35;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}
.product-search-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}
.product-search-quick-chips button {
  border: 1px solid var(--border-on-light);
  border-radius: 999px;
  background: #fffdf8;
  color: var(--ink);
  padding: 8px 11px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}
.product-search-quick-chips button:hover { border-color: #435b45; color: #314a35; }
.checkout-success-card {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid rgba(58,126,75,0.22);
  border-radius: 14px;
  background: #edf7ef;
  color: #254a2d;
  line-height: 1.4;
}
.checkout-success-card span { font-size: 12px; }
.cart-summary-trust {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 14px;
  background: #eef5ea;
  color: #314a35;
  font-size: 11px;
  font-weight: 900;
}
.cart-summary-trust span::before {
  content: '?';
  margin-right: 7px;
}
.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 20px;
}
.admin-summary-grid div {
  padding: 14px;
  border: 1px solid rgba(243,239,230,0.14);
  border-radius: 14px;
  background: rgba(250,247,241,0.06);
}
.admin-summary-grid span,
.admin-summary-grid strong { display: block; }
.admin-summary-grid span {
  color: var(--muted-on-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.admin-summary-grid strong {
  margin-top: 6px;
  color: var(--offwhite);
  font-size: 24px;
}
.admin-th,
.admin-td {
  padding: 9px;
  border-bottom: 1px solid rgba(243,239,230,0.14);
  font-size: 12px;
  text-align: left;
  vertical-align: top;
}
.admin-th {
  color: var(--muted-on-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.admin-item-line { display: grid; gap: 2px; margin-bottom: 8px; }
.admin-item-line span,
.admin-muted { color: var(--muted-on-dark); }
.admin-status {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(243,239,230,0.12);
  color: var(--offwhite);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.admin-status-paid,
.admin-status-fulfilled { background: rgba(58,126,75,0.24); color: #a8e3b2; }
.admin-status-cancelled { background: rgba(160,50,50,0.24); color: #f0b0a8; }
.admin-payment {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.admin-payment-legacy { background: rgba(58,126,75,0.24); color: #a8e3b2; }
.admin-payment-manual { background: rgba(212,160,64,0.24); color: #f0cf8a; }
.admin-payment-crypto { background: rgba(120,100,220,0.28); color: #c9bdf5; }
.admin-copy-btn {
  margin-bottom: 5px;
  border: 1px solid rgba(243,239,230,0.2);
  border-radius: 999px;
  background: transparent;
  color: var(--offwhite);
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
@media (max-width: 900px) {
  .admin-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #ordersTable { display: block; overflow-x: auto; }
}
@media (max-width: 560px) {
  .product-selected-card { grid-template-columns: 1fr; }
  .product-selected-card em { grid-column: auto; grid-row: auto; }
}

/* ---------- Admin tabs + profit ---------- */
.admin-tabs {
  display: flex;
  gap: 10px;
  max-width: 1400px;
  margin: 0 0 14px;
}
.admin-tab {
  border: 1px solid rgba(243,239,230,0.18);
  border-radius: 999px;
  background: rgba(250,247,241,0.06);
  color: var(--muted-on-dark);
  padding: 10px 16px;
  font-weight: 900;
  cursor: pointer;
}
.admin-tab.active {
  background: var(--offwhite);
  color: var(--ink);
}
.admin-tab-panel[hidden] { display: none; }
.profit-summary-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
#profitTable .admin-td:nth-child(6) {
  color: #a8e3b2;
  font-weight: 900;
}
@media (max-width: 900px) {
  .profit-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Admin order total breakdown ---------- */
.admin-total-breakdown {
  display: grid;
  gap: 5px;
  min-width: 130px;
}
.admin-total-breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.admin-total-breakdown span {
  color: var(--muted-on-dark);
}
.admin-total-breakdown strong {
  color: var(--offwhite);
}
.admin-savings,
.admin-savings strong {
  color: #a8e3b2 !important;
  font-weight: 900;
}
.admin-final-total {
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid rgba(243,239,230,0.16);
}
.admin-final-total span,
.admin-final-total strong {
  color: var(--offwhite) !important;
  font-weight: 900;
}

/* ---------- Admin storage durability warning ---------- */
.admin-storage-info {
  margin: 0 0 14px;
}
.admin-storage-ok,
.admin-storage-warn {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.4;
}
.admin-storage-ok {
  border: 1px solid rgba(58,126,75,0.26);
  background: rgba(58,126,75,0.16);
  color: #a8e3b2;
}
.admin-storage-warn {
  border: 1px solid rgba(193,121,58,0.34);
  background: rgba(193,121,58,0.16);
  color: #f0c589;
}

/* ---------- Admin spend + profit display ---------- */
.admin-money-breakdown {
  min-width: 170px;
}
.admin-profit-line {
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid rgba(168,227,178,0.22);
}
.admin-profit-line span,
.admin-profit-line strong {
  color: #a8e3b2 !important;
  font-weight: 900;
}

/* ---------- Admin launch checks ---------- */
.launch-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.launch-check-card,
.admin-launch-note {
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(243,239,230,0.16);
  background: rgba(250,247,241,0.06);
}
.launch-check-card span,
.admin-launch-note span {
  display: block;
  color: var(--muted-on-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.launch-check-card strong,
.admin-launch-note strong {
  display: block;
  color: var(--offwhite);
  font-size: 16px;
  margin-bottom: 8px;
}
.launch-check-card p {
  margin: 0;
  color: var(--muted-on-dark);
  font-size: 12px;
  line-height: 1.45;
}
.launch-check-card.ok,
.admin-launch-ok {
  border-color: rgba(58,126,75,0.28);
  background: rgba(58,126,75,0.13);
}
.launch-check-card.ok span,
.admin-launch-ok span { color: #a8e3b2; }
.launch-check-card.warn,
.admin-launch-warn {
  border-color: rgba(193,121,58,0.34);
  background: rgba(193,121,58,0.14);
}
.launch-check-card.warn span,
.admin-launch-warn span { color: #f0c589; }
@media (max-width: 900px) {
  .launch-check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .launch-check-grid { grid-template-columns: 1fr; }
}

/* Keep wide admin order data from stretching the whole page */
#ordersPanel {
  overflow: hidden;
}
#ordersTable {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
#ordersTable .admin-th,
#ordersTable .admin-td {
  overflow-wrap: anywhere;
  word-break: break-word;
}
#ordersTable .admin-td:nth-child(7) {
  max-width: 260px;
}
.admin-payment-ref {
  display: inline-block;
  max-width: 235px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}
/* ---------- Admin order tools ---------- */
.admin-order-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 190px 180px auto;
  gap: 10px;
  align-items: center;
  margin: 14px 0 18px;
}
.admin-order-toolbar input,
.admin-order-toolbar select {
  border: 1px solid rgba(243,239,230,0.18);
  border-radius: 999px;
  background: rgba(250,247,241,0.08);
  color: var(--offwhite);
  padding: 11px 13px;
  font: inherit;
  font-size: 13px;
}
.admin-order-toolbar input::placeholder { color: var(--muted-on-dark); }
.admin-order-toolbar select option { color: #1c1a17; }
.admin-export-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--offwhite);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}
.admin-note-box {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  min-width: 180px;
}
.admin-note-box label {
  color: var(--muted-on-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.admin-notes-input {
  width: 100%;
  min-height: 62px;
  resize: vertical;
  border: 1px solid rgba(243,239,230,0.18);
  border-radius: 10px;
  background: rgba(250,247,241,0.08);
  color: var(--offwhite);
  padding: 8px;
  font: inherit;
  font-size: 12px;
}
.admin-save-note {
  width: fit-content;
  border: 1px solid rgba(243,239,230,0.2);
  border-radius: 999px;
  background: transparent;
  color: var(--offwhite);
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}
@media (max-width: 760px) {
  .admin-order-toolbar { grid-template-columns: 1fr; }
}

/* ---------- Mobile checkout tightening ---------- */
@media (max-width: 520px) {
  .modal-overlay {
    align-items: stretch;
    padding: 10px;
  }
  .modal-box {
    max-height: calc(100vh - 20px);
    padding: 22px 18px;
    border-radius: 18px;
  }
  .promo-row { grid-template-columns: 1fr; display: grid; }
  .purchase-row { flex-direction: column; }
  .add-to-cart-btn { min-height: 48px; }
  .qty-stepper { justify-content: center; }
}

/* ---------- Checkout modal focus fix ---------- */
.modal-overlay {
  background: rgba(8, 10, 10, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.checkout-modal-open .cart-page,
.checkout-modal-open .topbar,
.checkout-modal-open .ruo-banner,
.checkout-modal-open .site-footer {
  filter: blur(3px);
}

/* ---------- Payment success page ---------- */
.success-main {
  max-width: 860px;
  min-height: calc(100vh - 260px);
  display: grid;
  place-items: center;
  padding-top: 74px;
}
.success-card {
  width: 100%;
  text-align: center;
  padding: clamp(30px, 6vw, 58px);
  background: linear-gradient(145deg, #fffaf1 0%, #f5eddf 58%, #e9ddca 100%);
  position: relative;
  overflow: hidden;
}
.success-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(58,126,75,0.16), transparent 30%),
    radial-gradient(circle at 84% 8%, rgba(193,121,58,0.14), transparent 32%);
}
.success-card > * { position: relative; z-index: 1; }
.success-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: #e6f3e7;
  color: #314a35;
  font-size: 34px;
  font-weight: 900;
  box-shadow: 0 18px 36px rgba(49,74,53,0.16);
}
.success-eyebrow {
  color: #314a35;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.success-card h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(36px, 7vw, 68px);
  line-height: 0.94;
  letter-spacing: -0.06em;
}
.success-lede {
  max-width: 520px;
  margin: 18px auto 0;
  color: var(--muted-on-light);
  font-size: 16px;
  line-height: 1.6;
}
.success-order-number {
  display: inline-flex;
  margin: 22px auto 0;
  padding: 10px 16px;
  border: 1px solid rgba(49,74,53,0.2);
  border-radius: 999px;
  background: rgba(255,255,255,0.56);
  color: #314a35;
  font-weight: 900;
}
.success-next-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
  text-align: left;
}
.success-next-steps div {
  padding: 18px;
  border: 1px solid rgba(28,26,23,0.09);
  border-radius: 18px;
  background: rgba(255,255,255,0.42);
}
.success-next-steps strong,
.success-next-steps span {
  display: block;
}
.success-next-steps strong {
  color: var(--ink);
  margin-bottom: 8px;
  font-size: 14px;
}
.success-next-steps span {
  color: var(--muted-on-light);
  font-size: 13px;
  line-height: 1.55;
}
.success-next-steps a { color: #314a35; font-weight: 900; }
.success-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.success-primary,
.success-secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
}
.success-primary { background: var(--ink); color: var(--offwhite); }
.success-secondary { border: 1px solid var(--border-on-light); color: var(--ink); background: rgba(255,255,255,0.38); }
.success-ruo-note {
  max-width: 650px;
  margin: 26px auto 0;
  color: var(--muted-on-light);
  font-size: 12px;
  line-height: 1.55;
}
@media (max-width: 640px) {
  .success-main { padding-top: 42px; }
  .success-next-steps { grid-template-columns: 1fr; }
  .success-actions { display: grid; }
}



.cart-cleanup-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin: 0 0 10px;
  border: 1px solid rgba(193, 121, 58, 0.35);
  border-radius: 16px;
  background: rgba(193, 121, 58, 0.1);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}
.cart-cleanup-notice button {
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  background: var(--ink);
  color: var(--cream);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.cart-line-unavailable {
  opacity: 0.86;
  background: rgba(193, 121, 58, 0.06);
}
.cart-line-unavailable .cart-line-media {
  filter: grayscale(1);
  opacity: 0.45;
}
.checkout-primary-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
@media (max-width: 640px) {
  .cart-cleanup-notice {
    align-items: stretch;
    flex-direction: column;
  }
}

.cart-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cart-clear-link {
  font-family: inherit;
  cursor: pointer;
}
@media (max-width: 640px) {
  .cart-header-actions {
    justify-content: stretch;
    width: 100%;
  }
  .cart-header-actions .cart-header-link {
    flex: 1;
    text-align: center;
  }
}

.cart-header-actions {
  position: relative;
  z-index: 5;
  pointer-events: auto;
}
.cart-clear-link {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  color: var(--ink);
}

.admin-delete-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0 10px;
  border: 1px solid rgba(201, 79, 63, 0.55);
  border-radius: 999px;
  background: rgba(201, 79, 63, 0.12);
  color: #ffb8ad;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  pointer-events: auto;
}
.admin-delete-order:hover {
  background: rgba(201, 79, 63, 0.2);
  color: #ffd3cd;
}
.admin-delete-order.is-deleting,
.admin-delete-order:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Product image crop fix: show the full vial on product/detail and hero cards instead of zoom-cropping the cap. */
.product-media.photo,
.showcase-vial.photo,
.showcase-vial {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #f4eee2;
}

/* Hard reset vial mockups: use a contained pseudo-image so older cover/zoom rules cannot crop into the cap. */
.card-media.photo,
.product-media.photo,
.showcase-vial.photo,
.cart-line-media.photo,
.cart-popup-media.photo,
.cart-popup-suggestion-media.photo,
.product-search-result-media,
.mini-vial {
  background-image: none !important;
  background-color: #f4eee2;
  position: relative;
  overflow: hidden;
}
.card-media.photo::before,
.product-media.photo::before,
.showcase-vial.photo::before,
.cart-line-media.photo::before,
.cart-popup-media.photo::before,
.cart-popup-suggestion-media.photo::before,
.product-search-result-media::before,
.mini-vial::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/images/product-mockups/prismatic-vial-template.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
}
.product-media.photo::before,
.showcase-vial.photo::before,
.card-media.photo::before {
  inset: 8px;
}
.cart-line-media.photo::before,
.cart-popup-media.photo::before,
.cart-popup-suggestion-media.photo::before,
.product-search-result-media::before,
.mini-vial::before {
  inset: 4px;
}
.product-search-result-media {
  background-color: #050b13 !important;
  background-image:
    radial-gradient(circle at 50% 45%, rgba(56, 148, 255, .16), transparent 44%),
    linear-gradient(145deg, rgba(7, 18, 31, .96), rgba(1, 5, 10, .98)) !important;
  border: 1px solid rgba(103, 171, 238, .14);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, .34);
}
.vial-label-overlay {
  z-index: 2;
}

/* Keep dynamic label text inside the printable vial label area. Long names are scaled like a curved vial label instead of spilling off the glass. */
.vial-label-overlay {
  width: 40%;
  top: 59%;
  gap: 6px;
}
.detail-vial-label,
.showcase-vial-label {
  width: 38%;
  top: 59%;
}
.vial-label-overlay strong {
  font-size: clamp(10px, 1.25vw, 18px);
  letter-spacing: -0.055em;
  line-height: 0.92;
  transform-origin: center;
}
.vial-label-medium strong {
  font-size: clamp(9px, 1.05vw, 16px);
  letter-spacing: -0.07em;
  transform: scaleX(0.92);
}
.vial-label-long strong {
  font-size: clamp(8px, 0.92vw, 14px);
  letter-spacing: -0.08em;
  transform: scaleX(0.82);
}
.vial-label-xlong strong {
  font-size: clamp(7px, 0.82vw, 12px);
  letter-spacing: -0.085em;
  line-height: 0.9;
  transform: scaleX(0.76);
}
.detail-vial-label em,
.showcase-vial-label em,
.vial-label-overlay em {
  padding: 4px 10px;
  font-size: clamp(9px, 0.82vw, 13px);
}
@media (max-width: 680px) {
  .detail-vial-label,
  .showcase-vial-label,
  .vial-label-overlay {
    width: 42%;
    top: 59%;
  }
  .vial-label-overlay strong { font-size: 12px; }
  .vial-label-medium strong { font-size: 11px; }
  .vial-label-long strong { font-size: 10px; }
  .vial-label-xlong strong { font-size: 9px; }
}

/* Vial label readability: use printed dark ink on the cream label instead of white overlay text. */
.vial-label-overlay strong {
  color: #23382b !important;
  text-shadow:
    0 1px 0 rgba(250,247,241,0.7),
    0 0 8px rgba(250,247,241,0.72);
}
.vial-label-overlay em {
  color: #f3efe6 !important;
  background: linear-gradient(180deg, rgba(68,72,70,0.96), rgba(42,45,43,0.96)) !important;
  border-color: rgba(243,239,230,0.45) !important;
  box-shadow: 0 2px 8px rgba(28,26,23,0.24);
}

/* SKU mockups use generated vial images with Prismatic label overlays. */
.product-media .vial-label-overlay,
.card-media .vial-label-overlay,
.showcase-vial .vial-label-overlay {
  display: none !important;
}
.product-media.photo::before,
.showcase-vial.photo::before,
.card-media.photo::before {
  inset: 0;
}

/* Product detail printed vial label: restore readable product text without the giant floating overlay look. */
.product-media.photo .printed-vial-label {
  display: grid !important;
  top: 58.5%;
  left: 50%;
  width: 34%;
  gap: 5px;
  transform: translate(-50%, -50%);
  z-index: 3;
}
.product-media.photo .printed-vial-label strong {
  color: #243a2d !important;
  max-width: 100%;
  font-size: clamp(8px, 1vw, 13px) !important;
  line-height: 0.9;
  letter-spacing: -0.075em;
  text-shadow: 0 1px 0 rgba(250,247,241,0.6);
  transform-origin: center;
}
.product-media.photo .printed-vial-label.vial-label-medium strong { transform: scaleX(0.88); }
.product-media.photo .printed-vial-label.vial-label-long strong { transform: scaleX(0.76); }
.product-media.photo .printed-vial-label.vial-label-xlong strong { transform: scaleX(0.68); }
.product-media.photo .printed-vial-label em {
  min-width: 38px;
  padding: 3px 8px;
  color: #f3efe6 !important;
  background: rgba(52, 57, 54, 0.96) !important;
  border: 1px solid rgba(243,239,230,0.4) !important;
  border-radius: 999px;
  font-size: clamp(8px, 0.78vw, 11px) !important;
  box-shadow: 0 2px 5px rgba(28,26,23,0.2);
}
@media (max-width: 680px) {
  .product-media.photo .printed-vial-label {
    width: 36%;
  }
  .product-media.photo .printed-vial-label strong { font-size: 10px !important; }
  .product-media.photo .printed-vial-label em { font-size: 9px !important; }
}

/* Generated per-SKU mockups. These are baked images, not live text overlays. */
.sku-mockup::before {
  display: none !important;
  content: none !important;
  background-image: none !important;
}
.sku-mockup-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  z-index: 1;
  pointer-events: none;
}
.product-card-badge {
  position: relative;
  z-index: 2;
}
.product-media.sku-mockup .vial-label-overlay,
.card-media.sku-mockup .vial-label-overlay,
.showcase-vial.sku-mockup .vial-label-overlay {
  display: none !important;
}


/* ---------- Admin page isolation ---------- */
body.admin-page {
  background:
    radial-gradient(circle at 18% 8%, rgba(67, 91, 69, 0.20), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(193, 121, 58, 0.10), transparent 30%),
    #12161a !important;
  color: var(--offwhite) !important;
}
body.admin-page main {
  display: block;
  width: min(1400px, calc(100% - 40px));
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 0 48px;
}
body.admin-page .topbar {
  margin: 14px auto 10px;
}
body.admin-page .panel,
body.admin-page .admin-tab-panel {
  background: rgba(250, 247, 241, 0.055) !important;
  color: var(--offwhite) !important;
  border: 1px solid rgba(243, 239, 230, 0.16) !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24) !important;
}
body.admin-page h1,
body.admin-page h2,
body.admin-page h3,
body.admin-page strong,
body.admin-page .brand {
  color: var(--offwhite) !important;
}
body.admin-page .hint,
body.admin-page .admin-muted,
body.admin-page .admin-th,
body.admin-page .admin-total-breakdown span {
  color: rgba(243, 239, 230, 0.72) !important;
}
body.admin-page .admin-td,
body.admin-page .admin-td a,
body.admin-page .admin-item-line strong,
body.admin-page .admin-total-breakdown strong {
  color: var(--offwhite) !important;
}
body.admin-page .admin-td a {
  color: #9ec3ff !important;
}
body.admin-page .admin-summary-grid div,
body.admin-page .launch-check-card,
body.admin-page .admin-launch-note {
  background: rgba(250, 247, 241, 0.075) !important;
  border-color: rgba(243, 239, 230, 0.17) !important;
}
body.admin-page .admin-order-toolbar input,
body.admin-page .admin-order-toolbar select,
body.admin-page .admin-notes-input,
body.admin-page #adminPassword {
  background: rgba(18, 22, 26, 0.72) !important;
  color: var(--offwhite) !important;
  border-color: rgba(243, 239, 230, 0.22) !important;
}
body.admin-page .admin-order-toolbar input::placeholder {
  color: rgba(243, 239, 230, 0.52) !important;
}
body.admin-page .admin-order-toolbar select option {
  color: #1c1a17 !important;
  background: #faf7f1 !important;
}
body.admin-page #ordersPanel {
  overflow-x: auto;
  overflow-y: visible;
}
body.admin-page #ordersTable {
  display: table;
  width: 100%;
  min-width: 1280px;
  table-layout: auto;
}
body.admin-page .admin-th,
body.admin-page .admin-td {
  border-bottom-color: rgba(243, 239, 230, 0.14) !important;
}
body.admin-page .admin-status select,
body.admin-page select {
  max-width: 100%;
}


.shipping-method-fieldset {
  border: 1px solid var(--border-on-light);
  border-radius: 16px;
  padding: 12px;
  margin: 10px 0 14px;
  display: grid;
  gap: 8px;
}
.shipping-method-fieldset legend {
  padding: 0 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--muted-on-light);
}
.shipping-method-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border-on-light);
  border-radius: 14px;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
}
.shipping-method-option input { width: auto; margin: 0; }
.shipping-method-option span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.shipping-method-option strong { color: var(--ink-on-light); }
.shipping-method-option em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted-on-light);
  text-align: right;
}


.checkout-country-note {
  margin: -4px 0 10px;
  font-size: 12px;
  color: var(--muted-on-light);
}
.payment-policy-confirm {
  border: 1px solid rgba(193, 121, 58, 0.28);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(193, 121, 58, 0.08);
}


.checkout-modal select#buyerCountry {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border-on-light);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(250,247,241,0.92);
  color: var(--ink-on-light);
  font: inherit;
}
.checkout-modal select#buyerCountry:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--card);
}


.admin-duplicate-txid {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 99, 99, 0.55);
  border-radius: 999px;
  background: rgba(255, 99, 99, 0.14);
  color: #ffb4b4;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.admin-summary-alert {
  border-color: rgba(255, 99, 99, 0.55) !important;
  background: rgba(255, 99, 99, 0.08) !important;
}
.prismatic-vial-label {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 61%;
  width: 58%;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #e8f5ff;
  font-family: Inter, sans-serif;
  text-align: center;
  text-transform: uppercase;
  pointer-events: none;
}
.vial-prism-mark {
  width: clamp(16px, 1.75vw, 30px);
  height: clamp(18px, 1.95vw, 34px);
  display: block;
  clip-path: polygon(0 0,100% 50%,0 100%,23% 50%);
  background: linear-gradient(135deg,#fff 0%,#9dabbd 43%,#152640 44%,#42a8ff 100%);
  filter: drop-shadow(0 0 5px rgba(64,166,255,.65));
}
.prismatic-vial-label i { color: #69baff; font-size: clamp(8px, .85vw, 15px); font-style: normal; font-weight: 900; letter-spacing: .12em; white-space: nowrap; }
.prismatic-vial-label strong { max-width: 116%; overflow: hidden; color: #f5f9ff; font-size: clamp(13px, 1.45vw, 25px); font-weight: 900; letter-spacing: 0; line-height: 1; overflow-wrap: anywhere; text-shadow: 0 0 10px rgba(64,166,255,.2); }
.brand-seal-wrap:not(:has(img)) { display:grid; place-items:center; overflow:visible; background:transparent; }
.brand-seal-wrap:not(:has(img))::before { content:''; width:26px; height:26px; clip-path:polygon(0 0,100% 50%,0 100%,23% 50%); background:linear-gradient(135deg,#fff 0%,#899cb8 46%,#182940 47%,#42a8ff 100%); filter:drop-shadow(0 0 8px rgba(64,166,255,.55)); }
@media (max-width:680px) { .prismatic-vial-label { width:60%; gap:6px; }.vial-prism-mark { width:16px; height:18px; }.prismatic-vial-label i { font-size:7px; }.prismatic-vial-label strong { font-size:13px; } }

/* ---------- Prismatic precision theme ---------- */
:root { --card:#0c1018; --ink:#f5f8ff; --offwhite:#f5f8ff; --muted-on-light:#8d9ab0; --muted-on-dark:#9ca9be; --border-on-light:rgba(150,177,218,.19); --border-on-dark:rgba(150,177,218,.19); --accent:#48a9ff; --accent-ink:#6dbaff; --radius-lg:8px; --radius-md:6px; --radius-sm:4px; }
body { background:#020407; color:var(--offwhite); }
.mountain-bg { background:radial-gradient(circle at 72% 26%,rgba(32,104,205,.13),transparent 22%),radial-gradient(circle at 15% 90%,rgba(53,103,164,.08),transparent 25%),#020407; }
.mountain-bg svg { opacity:0; }
.mountain-bg::after { content:''; position:absolute; inset:0; background-image:linear-gradient(rgba(112,150,200,.032) 1px,transparent 1px),linear-gradient(90deg,rgba(112,150,200,.024) 1px,transparent 1px); background-size:64px 64px; mask-image:linear-gradient(to bottom,#000,transparent 74%); }
.mountain-scrim { background:linear-gradient(180deg,rgba(2,4,7,.15),rgba(2,4,7,.57) 76%,#020407); }
.nav-wrap { top:0; padding:0; border-bottom:1px solid rgba(144,179,224,.15); background:rgba(2,4,7,.72); backdrop-filter:blur(20px); }
.topbar { max-width:1240px; min-height:76px; padding:12px 24px; border:0; border-radius:0; background:transparent; box-shadow:none; }
.prismatic-brand { gap:11px; font-size:14px; line-height:.82; letter-spacing:.2em; }
.prismatic-brand small { color:var(--accent); font-size:8px; font-weight:700; letter-spacing:.48em; }
.prism-mark { position:relative; display:inline-block; width:28px; height:31px; filter:drop-shadow(0 0 9px rgba(64,166,255,.55)); }
.prism-mark::before,.prism-mark i,.prism-mark b { content:''; position:absolute; display:block; clip-path:polygon(0 0,100% 50%,0 100%,23% 50%); }
.prism-mark::before { inset:0; background:linear-gradient(135deg,#fff 0%,#899cb8 46%,#182940 47%,#42a8ff 100%); }
.prism-mark i { inset:6px 5px; background:#05080d; }.prism-mark b { left:15px; top:8px; width:12px; height:15px; background:linear-gradient(135deg,rgba(245,250,255,.9),#1a6ab7); }
.site-nav { gap:30px; }.site-nav a { font-size:10px; letter-spacing:.16em; text-transform:uppercase; }.nav-search-button { border-color:rgba(130,173,225,.24); }
.nav-wrap,
.topbar,
.prismatic-brand,
.prism-mark,
.site-nav,
.nav-search-button {
  transition: background .22s ease, min-height .22s ease, padding .22s ease, opacity .22s ease, transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.nav-wrap.is-scrolled {
  top: 0;
  border-bottom-color: rgba(121,185,248,.06);
  background: rgba(2,5,9,.12);
  backdrop-filter: blur(12px) saturate(1.04);
  -webkit-backdrop-filter: blur(12px) saturate(1.04);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}
.nav-wrap.is-scrolled .topbar {
  min-height: 48px;
  padding-top: 5px;
  padding-bottom: 5px;
}
.nav-wrap.is-scrolled .prismatic-brand {
  opacity: .72;
  transform: scale(.82);
  transform-origin: left center;
}
.nav-wrap.is-scrolled .site-nav {
  opacity: .58;
}
.nav-wrap.is-scrolled .nav-search-button {
  background: rgba(3,9,16,.16);
  opacity: .62;
}
.storefront-hero { max-width:1240px; min-height:670px; padding:88px 24px 68px; grid-template-columns:1.12fr .88fr; gap:56px; }
.eyebrow { color:#8fbcf3; font-size:10px; letter-spacing:.22em; }.eyebrow-dot { width:6px; height:6px; margin-right:9px; border-radius:50%; background:var(--accent); box-shadow:0 0 12px var(--accent); }
.storefront-hero .hero-title { font-size:clamp(48px,6.6vw,88px); font-weight:600; line-height:.91; letter-spacing:-.06em; text-transform:uppercase; text-shadow:0 0 46px rgba(81,164,255,.09); }.storefront-hero .hero-title em { display:inline-block; color:#dce9fb; font-style:normal; font-weight:300; }.storefront-hero .hero-sub { max-width:535px; color:#a8b6ca; font-size:15px; line-height:1.8; }
.hero-cta { min-height:50px; padding:0 24px; border:1px solid #77beff; border-radius:3px; background:linear-gradient(135deg,#eaf5ff,#75bcff); color:#07111e; font-size:11px; letter-spacing:.13em; text-transform:uppercase; box-shadow:0 0 25px rgba(72,169,255,.21); }.hero-ghost { border-radius:3px; border-color:rgba(131,177,230,.35); background:rgba(8,15,25,.62); font-size:11px; letter-spacing:.13em; text-transform:uppercase; }
.hero-proof-row { max-width:590px; gap:0; border:1px solid rgba(126,169,219,.18); }.hero-proof-row div { padding:14px 17px; border:0; border-right:1px solid rgba(126,169,219,.18); border-radius:0; background:rgba(11,18,30,.45); }.hero-proof-row div:last-child { border-right:0; }.hero-proof-row strong { color:#e8f4ff; font-size:19px; letter-spacing:.03em; }.hero-proof-row span { color:#8497b2; font-size:9px; }
.hero-commerce-panel { position:relative; overflow:hidden; min-height:500px; padding:50px 28px 26px; border:1px solid rgba(121,178,241,.3); border-radius:4px; background:linear-gradient(145deg,rgba(21,31,47,.9),rgba(5,9,16,.95)); color:var(--offwhite); box-shadow:inset 0 1px 0 rgba(231,245,255,.12),0 28px 90px rgba(0,0,0,.45),0 0 48px rgba(44,135,238,.08); }.hero-commerce-panel::before { content:''; position:absolute; inset:-38% 15% auto -24%; height:250px; background:linear-gradient(135deg,transparent 28%,rgba(198,223,255,.13) 45%,rgba(66,151,255,.15) 49%,transparent 65%); transform:rotate(-12deg); pointer-events:none; }
.prismatic-orbit { position:absolute; right:28px; top:22px; width:104px; height:104px; opacity:.85; }.prismatic-orbit::before,.prismatic-orbit::after,.prismatic-orbit span { content:''; position:absolute; inset:8px; border:1px solid rgba(118,190,255,.42); transform:rotate(30deg) skewX(-12deg); }.prismatic-orbit::after { inset:23px; border-color:rgba(224,242,255,.44); transform:rotate(-34deg) skewX(12deg); }.prismatic-orbit span { inset:42px; border:0; background:#65b9ff; box-shadow:0 0 20px #168eff; transform:rotate(45deg); }
.hero-panel-kicker { position:relative; color:#74bcff; font-size:10px; }.hero-commerce-panel h2 { position:relative; max-width:345px; color:#f2f7ff; font-weight:500; font-size:clamp(27px,3vw,39px); }.hero-mini-product { position:relative; grid-template-columns:47px 1fr; min-height:72px; padding:9px; border-color:rgba(127,175,230,.16); border-radius:3px; background:rgba(5,11,19,.48); }.hero-mini-product:hover { border-color:rgba(93,177,255,.6); background:rgba(26,49,77,.45); }.mini-vial { width:43px; height:49px; border-radius:2px; border-color:rgba(159,205,250,.35); background-color:#0e1a2a; background-size:135%; filter:saturate(.55) contrast(1.15); }.hero-mini-product strong { color:#e6f2ff; font-size:14px; letter-spacing:.01em; }.hero-mini-product em { color:#91a5bf; font-size:11px; }.hero-panel-proof span { border-radius:2px; background:rgba(45,115,187,.13); color:#90bce9; font-size:9px; letter-spacing:.04em; }.hero-panel-proof strong { color:#e8f5ff; font-size:15px; }
.ruo-banner { border-top:1px solid rgba(126,169,219,.14); border-bottom-color:rgba(126,169,219,.14); background:rgba(4,8,14,.86); color:#7d91ad; font-size:9px; letter-spacing:.13em; }.lab-confidence-strip { border-radius:3px; border-color:rgba(111,159,212,.25); background:rgba(111,159,212,.18); box-shadow:none; }.lab-confidence-strip div { background:rgba(6,11,19,.79); }.lab-confidence-strip strong { color:#dceeff; font-size:10px; }.lab-confidence-strip span { color:#8395ac; }.section-heading span { color:#59adfb; }.section-heading h2 { font-weight:500; letter-spacing:-.045em; }.section-heading p { color:#96a7bb; }
.category-tile,.standard-card { border-radius:3px; border-color:rgba(122,164,213,.22); background:linear-gradient(145deg,rgba(14,23,37,.74),rgba(5,9,15,.72)); box-shadow:none; }.category-tile:hover,.category-tile:focus-visible { border-color:#51adff; box-shadow:0 0 24px rgba(57,155,255,.12); }.category-tile span,.standard-card span { color:#5caeff; }.category-tile strong,.standard-card h3 { font-weight:500; }.category-tile em,.standard-card p { color:#91a1b7; }.catalog-shell { border-radius:3px; border-color:rgba(122,164,213,.22); background:rgba(4,8,14,.76); }.filter-chip { border-radius:3px; border-color:rgba(123,170,224,.3); color:#9fb2c8; }.filter-chip.active { background:#4baaff; color:#04101d; border-color:#7ac2ff; }
.card,.panel { border-radius:3px; border-color:rgba(124,169,217,.22); background:linear-gradient(155deg,#101a29,#080d16); color:#edf5ff; box-shadow:none; }.product-card .card-media { border-radius:2px; background-color:#0b1420; filter:saturate(.7) contrast(1.12); }.product-card .group,.product-card-spec,.product-card-description,.product-card-note { color:#8fa2b9 !important; }.product-card h4,.card .price { color:#eff7ff; }.product-card .addBtn { border-radius:2px; background:linear-gradient(135deg,#1b77c2,#58afff); color:#04101d; font-size:10px; letter-spacing:.11em; text-transform:uppercase; }.product-card:hover { border-color:rgba(100,181,255,.65); box-shadow:0 0 26px rgba(58,151,248,.12); }.storefront-faq .panel { background:rgba(8,13,22,.78); color:#eaf3ff; }.faq-panel details { border-bottom-color:rgba(125,167,217,.2); }.site-footer { border-top-color:rgba(125,167,217,.2); color:#7588a0; letter-spacing:.04em; }
.entry-gate { background:rgba(0,3,7,.88); backdrop-filter:blur(14px); }.entry-gate-box { border-radius:3px; border:1px solid rgba(120,182,246,.38); background:#0a111d; color:#edf5ff; box-shadow:0 0 70px rgba(44,140,244,.13); }.entry-gate-box h2 { color:#edf5ff; }.entry-gate-box p,.entry-gate-box ul { color:#9db0c7; }.entry-gate-actions button:first-child { border-radius:2px; background:#55afff; color:#06101b; }
@media (max-width:760px) { .topbar { min-height:66px; padding-inline:16px; }.storefront-hero { min-height:auto; padding-top:66px; }.hero-commerce-panel { min-height:auto; } }
@media (max-width:500px) { .prismatic-brand { font-size:11px; }.prism-mark { transform:scale(.82); transform-origin:left center; margin-right:-4px; }.storefront-hero .hero-title { font-size:44px; }.hero-proof-row { grid-template-columns:1fr; }.hero-proof-row div { border-right:0; border-bottom:1px solid rgba(126,169,219,.18); }.hero-proof-row div:last-child { border-bottom:0; } }

/* ---------- Prismatic site-wide page system ---------- */
.hero:not(.storefront-hero) { position:relative; max-width:1240px; min-height:310px; margin:0 auto; padding:94px 24px 55px !important; overflow:hidden; }
.hero:not(.storefront-hero)::before { content:'PRISMATIC / RESEARCH SYSTEMS'; position:absolute; right:-12px; bottom:12px; color:rgba(105,181,255,.055); font-size:clamp(38px,8vw,122px); font-weight:800; letter-spacing:.12em; white-space:nowrap; pointer-events:none; }
.hero:not(.storefront-hero)::after { content:''; position:absolute; width:240px; height:240px; right:8%; top:60px; border:1px solid rgba(84,169,255,.2); transform:rotate(45deg); box-shadow:inset 0 0 50px rgba(52,143,248,.07),0 0 70px rgba(52,143,248,.06); pointer-events:none; }
.hero:not(.storefront-hero) > * { position:relative; z-index:1; }.hero:not(.storefront-hero) .hero-title { max-width:760px; font-weight:500; text-transform:uppercase; }.hero:not(.storefront-hero) .hero-sub { max-width:620px; }
main:not(.storefront-main), .calc-grid { position:relative; max-width:1240px !important; padding:22px 24px 84px !important; }
main:not(.storefront-main) .panel, .calc-grid .panel, .success-card { border:1px solid rgba(113,173,237,.24); border-radius:3px; background:linear-gradient(135deg,rgba(15,25,40,.92),rgba(5,9,16,.94)); box-shadow:inset 0 1px 0 rgba(230,245,255,.05); }
main:not(.storefront-main) .panel { position:relative; overflow:hidden; }.panel::before { content:''; position:absolute; width:4px; height:42px; left:0; top:0; background:linear-gradient(#c5e9ff,#369eff); box-shadow:0 0 20px #2999ff; }.panel h2, .panel h3, .panel h4 { color:#edf6ff; font-weight:600; letter-spacing:-.035em; }.panel .hint { color:#9dafc6 !important; }
.product-info-panel { margin-top:28px; padding:22px; border-top:1px solid rgba(112,170,230,.2); background:rgba(2,6,12,.4); }.product-info-panel h4 { color:#6fb9ff; font-size:11px; letter-spacing:.15em; text-transform:uppercase; }.product-info-panel li { color:#9cb0c6; line-height:1.7; }
#breadcrumb { max-width:1240px !important; margin-top:34px !important; color:#70baff !important; font-size:10px !important; letter-spacing:.12em; text-transform:uppercase; }
.calc-grid { gap:16px !important; }.calc-grid .panel { min-height:330px; }.calc-grid .panel h2 { margin-bottom:28px; font-size:22px; }.calc-result { border-radius:2px; border-color:rgba(91,166,241,.22); background:linear-gradient(135deg,rgba(31,80,129,.24),rgba(10,19,31,.8)); }.calc-result-label { color:#76bcff; }.calc-result-value { color:#f0f8ff; }
form label { color:#aabbd1; font-size:11px; letter-spacing:.08em; text-transform:uppercase; } form input,form select,form textarea,.promo-row input { border:1px solid rgba(108,166,227,.28); border-radius:2px; background:rgba(2,7,13,.7); color:#eff7ff; } form input:focus,form select:focus,form textarea:focus { border-color:#5db4ff; background:#08121e; box-shadow:0 0 0 3px rgba(69,164,255,.13); }
.calc-grid label { display:grid; gap:7px; margin-bottom:18px; color:#aabbd1; font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }.calc-grid input,.calc-grid select { width:100%; min-height:43px; margin:0; padding:10px 12px; border:1px solid rgba(108,166,227,.28); border-radius:2px; background:rgba(2,7,13,.7); color:#eff7ff; font:inherit; }.calc-grid input:focus,.calc-grid select:focus { outline:none; border-color:#5db4ff; background:#08121e; box-shadow:0 0 0 3px rgba(69,164,255,.13); }.calc-grid select option { background:#0b1725; color:#eff7ff; }
.cart-main { max-width:1240px !important; }.cart-page { padding:34px !important; }.cart-page-header h1 { color:#eff7ff; font-weight:500; text-transform:uppercase; }.cart-eyebrow,.cart-card-title span { color:#68b8ff !important; letter-spacing:.14em; text-transform:uppercase; }.cart-items-card,.cart-summary-card { border-radius:2px; border-color:rgba(105,168,235,.22); background:rgba(4,9,16,.56); }.cart-line { border-bottom-color:rgba(109,165,222,.18); }.cart-line-info strong,.cart-line-price,#cartTotalPage { color:#edf7ff; }.cart-line-info span { color:#91a6be; }.cart-line-qty { border-radius:2px; border-color:rgba(105,168,235,.24); background:#09121e; }.cart-line-qty .qty-btn { color:#b9d6f6; }.checkout-primary-btn { border-radius:2px; background:linear-gradient(135deg,#e6f5ff,#51adff); color:#06101b; letter-spacing:.12em; text-transform:uppercase; }.cart-header-link,.checkout-secondary-link { color:#a8d3ff; }
.modal-overlay { background:rgba(0,3,7,.87); backdrop-filter:blur(14px); }.modal-box,.product-search-dialog { border-radius:3px; border-color:rgba(102,175,248,.35); background:linear-gradient(145deg,#101c2d,#050a12); color:#edf7ff; box-shadow:0 0 80px rgba(30,128,230,.16); }.modal-header h3,.product-search-header h2 { color:#eff7ff; }.product-search-eyebrow { color:#68b8ff; }.product-search-input-wrap input { border-color:rgba(103,171,238,.3); background:#07111d; color:#eff7ff; }.product-search-input-wrap input:focus { border-color:#5db4ff; background:#091723; box-shadow:0 0 0 3px rgba(69,164,255,.13); }.product-search-close { border-color:rgba(103,171,238,.3); color:#abd3fb; }.product-search-result { border-color:rgba(103,171,238,.2); background:rgba(6,13,22,.75); }.product-search-result strong { color:#edf7ff; }
.success-main { max-width:1000px !important; min-height:65vh; display:grid !important; place-items:center; }.success-card { max-width:760px; padding:54px !important; text-align:left; }.success-icon { background:linear-gradient(135deg,#cdeeff,#4daaff) !important; color:#07111e !important; border-radius:2px !important; }.success-eyebrow { color:#64b5ff !important; letter-spacing:.16em; text-transform:uppercase; }.success-card h1 { color:#f2f8ff; font-size:clamp(36px,5vw,62px); font-weight:500; text-transform:uppercase; }.success-lede,.success-next-steps span,.success-ruo-note { color:#9cb0c7 !important; }.success-next-steps { border-color:rgba(104,170,236,.22) !important; }.success-next-steps strong { color:#eff7ff !important; }.success-primary { border-radius:2px !important; background:linear-gradient(135deg,#e6f5ff,#51adff) !important; color:#06101b !important; }.success-secondary { border-radius:2px !important; border-color:rgba(103,171,238,.35) !important; color:#d8edff !important; }
@media (max-width:700px) { .hero:not(.storefront-hero) { min-height:260px; padding-top:74px !important; }.hero:not(.storefront-hero)::after { opacity:.5; right:-70px; }.cart-page { padding:24px !important; }.success-card { padding:30px !important; } }

/* ---------- Onyx-inspired Prismatic commerce layout ---------- */
.flash-ribbon {
  position: relative;
  z-index: 24;
  display: flex;
  justify-content: center;
  gap: 34px;
  min-height: 34px;
  padding: 8px 18px;
  overflow: hidden;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.flash-ribbon {
  min-height: 40px;
  color: #04101b;
  background: linear-gradient(90deg,#dcefff,#58b3ff 48%,#dcefff);
  box-shadow: 0 0 32px rgba(60,163,255,.22);
}
.flash-ribbon span:first-child {
  color: rgba(4,16,27,.66);
}
.flash-ribbon strong {
  color: #02070c;
}
.home-page .nav-wrap {
  top: 40px;
  background: rgba(4,8,13,.9);
  border-bottom: 1px solid rgba(113,181,248,.18);
}
.topbar {
  min-height: 82px;
}
.site-nav {
  gap: 24px;
}
.site-nav a {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.onyx-inspired-hero {
  min-height: 620px !important;
  align-items: center;
  padding-top: 118px !important;
  padding-bottom: 58px !important;
}
.onyx-inspired-hero::before {
  content: '';
  position: absolute;
  inset: 74px 24px 40px;
  z-index: -1;
  border: 1px solid rgba(92,167,244,.12);
  background:
    linear-gradient(90deg,rgba(91,177,255,.07) 1px,transparent 1px),
    linear-gradient(rgba(91,177,255,.05) 1px,transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(90deg,#000 0%,rgba(0,0,0,.72) 58%,transparent 100%);
}
.onyx-inspired-hero .hero-title {
  max-width: 760px;
  font-size: clamp(44px,6.1vw,82px) !important;
  line-height: .96 !important;
}
.onyx-inspired-hero .hero-sub {
  max-width: 690px !important;
  font-size: 16px !important;
}
.hero-vial-stage {
  display: grid;
  place-items: center;
  min-height: 470px;
}
.hero-vial-card {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  border: 1px solid rgba(100,178,255,.24);
  background:
    radial-gradient(circle at 65% 24%,rgba(86,180,255,.22),transparent 32%),
    linear-gradient(150deg,rgba(17,31,51,.94),rgba(3,7,13,.96));
  box-shadow: inset 0 1px 0 rgba(235,247,255,.08), 0 28px 90px rgba(18,95,185,.23);
}
.hero-vial-card::before,
.hero-vial-card::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(112,190,255,.3);
  transform: rotate(45deg);
}
.hero-vial-card::before {
  width: 128px;
  height: 128px;
  right: -42px;
  top: 42px;
}
.hero-vial-card::after {
  width: 82px;
  height: 82px;
  left: -28px;
  bottom: 96px;
}
.hero-vial-media {
  position: relative;
  z-index: 2;
  width: 76%;
  height: 76%;
  transform: scale(1.08);
}
.hero-vial-glow {
  position: absolute;
  inset: 20%;
  background: #46adff;
  filter: blur(82px);
  opacity: .25;
}
.hero-vial-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(111,183,247,.22);
  color: #dcefff;
  font-size: 11px;
}
.hero-vial-caption span {
  color: #87a6c3;
  text-align: right;
}
.storefront-main {
  max-width: 1280px !important;
}
.section-kicker {
  color: #62b8ff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.quality-split p {
  color: #95a9bf;
  line-height: 1.7;
}
.quality-split h2 {
  margin: 12px 0 16px;
  color: #f0f8ff;
  font-size: clamp(34px,4vw,58px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}
.quality-split {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
  padding: 70px 0 92px;
}
.quality-vials {
  min-height: 360px;
  border: 1px solid rgba(111,181,247,.22);
  background:
    radial-gradient(circle at 50% 35%,rgba(91,180,255,.22),transparent 40%),
    linear-gradient(145deg,rgba(17,30,48,.78),rgba(4,8,14,.92));
}
.quality-vials .sku-mockup-img {
  transform: scale(.86);
}
.site-footer {
  display: grid;
  grid-template-columns: minmax(220px,.7fr) minmax(280px,1.4fr) minmax(220px,.7fr);
  gap: 34px;
  align-items: start;
  max-width: none;
  padding: 54px max(24px,calc((100vw - 1280px) / 2)) !important;
  background: #03070c;
  text-align: left;
}
.footer-brand {
  color: #eef8ff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .18em;
}
.site-footer p {
  margin: 0;
  max-width: 720px;
  color: #8ea2b9;
  line-height: 1.8;
}
.footer-links {
  display: grid;
  gap: 10px;
  justify-items: start;
}
.footer-links a {
  color: #bcdfff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
@media (max-width: 980px) {
  .home-page .nav-wrap { top: 40px; }
  .onyx-inspired-hero,
  .quality-split {
    grid-template-columns: 1fr !important;
  }
  .onyx-inspired-hero { padding-top: 96px !important; }
  .hero-vial-stage { min-height: 380px; }
  .protocol-grid,
  .best-sellers-priority .featured-grid,
    .site-footer {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .flash-ribbon {
    justify-content: flex-start;
    overflow-x: auto;
  }
  .home-page .nav-wrap { top: 40px; }
  .topbar { min-height: 74px; }
  .onyx-inspired-hero { padding-top: 88px !important; }
  .protocol-grid,
  .best-sellers-priority .featured-grid,
    .hero-vial-card {
    width: min(100%, 330px);
  }
  .quality-split {
    padding-bottom: 54px;
  }
  .quality-vials {
    min-height: 300px;
  }
}

/* ---------- Dark readable add-to-cart popup ---------- */
.cart-popup-overlay {
  background: rgba(0, 4, 9, .66) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}
.cart-popup-card {
  border: 1px solid rgba(102,175,248,.34) !important;
  background: linear-gradient(145deg,#101c2d,#050a12) !important;
  color: #edf7ff !important;
  box-shadow: 0 28px 95px rgba(0,0,0,.62), 0 0 50px rgba(30,128,230,.16) !important;
}
.cart-popup-close {
  border: 1px solid rgba(113,180,247,.22) !important;
  background: rgba(9,18,31,.88) !important;
  color: #d8edff !important;
}
.cart-popup-success {
  border-bottom: 1px solid rgba(113,180,247,.17) !important;
  color: #eef8ff !important;
}
.cart-popup-success span {
  background: rgba(72,169,255,.16) !important;
  color: #7cc5ff !important;
}
.cart-popup-success strong,
.cart-popup-copy strong,
.cart-popup-price,
.cart-popup-totals strong,
.cart-popup-suggestion strong {
  color: #f2f8ff !important;
}
.cart-popup-product {
  border-bottom: 1px solid rgba(113,180,247,.13) !important;
}
.cart-popup-media,
.cart-popup-suggestion-media {
  border: 1px solid rgba(105,172,239,.2) !important;
  background: #07111d !important;
}
.cart-popup-copy span,
.cart-popup-totals span,
.cart-popup-suggestion em {
  color: #9fb5cd !important;
}
.cart-popup-copy em {
  color: #69c28f !important;
}
.cart-popup-actions button {
  border-radius: 999px !important;
  font-weight: 900 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
}
.cart-popup-checkout {
  border: 1px solid #7bc3ff !important;
  background: linear-gradient(135deg,#eaf5ff,#58afff) !important;
  color: #06101b !important;
}
.cart-popup-continue {
  border: 1px solid rgba(113,180,247,.3) !important;
  background: rgba(8,17,30,.82) !important;
  color: #d8edff !important;
}
.cart-popup-suggestions {
  border-top: 1px solid rgba(113,180,247,.15) !important;
  background: rgba(1,5,10,.2) !important;
}
.cart-popup-suggestions-title {
  color: #79c4ff !important;
}
.cart-popup-suggestion {
  border-color: rgba(113,180,247,.18) !important;
  background: rgba(9,18,31,.62) !important;
}

/* ---------- Dark readable checkout order summary ---------- */
.order-summary {
  border: 1px solid rgba(105,172,239,.24) !important;
  background: linear-gradient(145deg,rgba(10,20,34,.95),rgba(4,9,16,.96)) !important;
  color: #edf7ff !important;
  box-shadow: inset 0 1px 0 rgba(235,247,255,.06) !important;
}
.order-summary .cart-row {
  gap: 18px;
  color: #d8eaff !important;
}
.order-summary .cart-row span:first-child {
  color: #a9bed5 !important;
}
.order-summary .cart-row span:last-child {
  color: #f4f9ff !important;
  font-weight: 900 !important;
}
.order-summary-divider {
  height: 1px;
  margin: 12px 0;
  background: rgba(105,172,239,.22);
}
.order-summary .order-summary-total {
  margin-top: 8px !important;
  padding-top: 10px !important;
  border-top: 1px solid rgba(105,172,239,.22) !important;
}
.order-summary .order-summary-total span {
  color: #f4f9ff !important;
  font-size: 15px;
  font-weight: 900 !important;
}

/* ---------- Dark readable cart page rows and summary ---------- */
.cart-items-card,
.cart-summary-card {
  border-color: rgba(105,172,239,.24) !important;
  background: rgba(4,9,16,.72) !important;
  box-shadow: inset 0 1px 0 rgba(235,247,255,.05), 0 22px 70px rgba(0,0,0,.22) !important;
}
.cart-card-title {
  border-bottom-color: rgba(105,172,239,.18) !important;
  background: rgba(5,12,21,.66) !important;
}
.cart-card-title em {
  color: #9fb5cd !important;
}
#cartItemsPage {
  background: #050a12 !important;
}
.cart-line {
  background: linear-gradient(145deg,rgba(10,20,34,.9),rgba(5,11,20,.96)) !important;
  border-bottom: 1px solid rgba(105,172,239,.16) !important;
}
.cart-line:nth-child(even) {
  background: linear-gradient(145deg,rgba(12,23,38,.92),rgba(5,11,20,.98)) !important;
}
.cart-line-media {
  border-color: rgba(105,172,239,.24) !important;
  background-color: #07111d !important;
  box-shadow: inset 0 0 0 1px rgba(235,247,255,.04), 0 10px 24px rgba(0,0,0,.18) !important;
}
.cart-line-kicker {
  color: #69baff !important;
}
.cart-line-info strong,
.cart-line-price {
  color: #f2f8ff !important;
}
.cart-line-info span {
  color: #9fb5cd !important;
}
.cart-line-info em {
  color: #69c28f !important;
}
.cart-line-qty {
  border: 1px solid rgba(105,172,239,.26) !important;
  background: #07111d !important;
  color: #f2f8ff !important;
}
.cart-line-qty .qty-btn,
.cart-line-qty-num {
  color: #f2f8ff !important;
}
.cart-line-qty .qty-btn:hover {
  background: rgba(72,169,255,.15) !important;
}
.cart-line .cart-remove-btn {
  color: #8da6bf !important;
}
.cart-line .cart-remove-btn:hover {
  color: #ffb4b4 !important;
  background: rgba(255,99,99,.12) !important;
}
.cart-summary-trust {
  border: 1px solid rgba(105,172,239,.22) !important;
  background: linear-gradient(145deg,rgba(10,20,34,.88),rgba(5,11,20,.96)) !important;
  color: #d8eaff !important;
}
.cart-summary-trust span {
  color: #d8eaff !important;
}
.cart-summary-trust span::before {
  color: #69baff !important;
}
.cart-summary-lines div {
  color: #a9bed5 !important;
}
.cart-summary-lines strong,
.cart-summary-total span,
.cart-summary-total strong {
  color: #f4f9ff !important;
}
.cart-summary-total {
  border-top-color: rgba(105,172,239,.22) !important;
}

/* ---------- Text containment for long peptide names ---------- */
.product-card h4,
.product-search-result strong,
.cart-popup-copy strong,
.cart-popup-suggestion strong,
.cart-line-info strong,
.product-title {
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  hyphens: auto;
}
.product-card h4 {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 2.45em;
  overflow: hidden !important;
  line-height: 1.18 !important;
  font-size: clamp(15px, 1.18vw, 18px) !important;
  letter-spacing: 0 !important;
}
.product-search-result strong,
.cart-popup-suggestion strong {
  white-space: normal !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  line-height: 1.15 !important;
}
.cart-line-info {
  min-width: 0 !important;
}
.cart-line-info strong {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
  line-height: 1.12 !important;
  font-size: clamp(14px, 1.3vw, 17px) !important;
}
.product-title {
  line-height: 1.05 !important;
  font-size: clamp(28px, 3.4vw, 42px) !important;
}
.prismatic-vial-label {
  width: 54% !important;
}
.prismatic-vial-label i {
  font-size: clamp(6px, .62vw, 11px) !important;
  letter-spacing: .1em !important;
}
.prismatic-vial-label strong {
  max-width: 100% !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
  font-size: clamp(9px, 1.02vw, 18px) !important;
  line-height: .98 !important;
  overflow-wrap: anywhere !important;
}
@media (max-width: 680px) {
  .prismatic-vial-label { width: 56% !important; }
  .prismatic-vial-label i { font-size: 5px !important; }
  .prismatic-vial-label strong { font-size: 10px !important; }
}

.card-media .prismatic-vial-label,
.product-search-result-media .prismatic-vial-label,
.cart-popup-media .prismatic-vial-label,
.cart-popup-suggestion-media .prismatic-vial-label,
.cart-line-media .prismatic-vial-label {
  width: 38% !important;
  gap: 2px !important;
  top: 61% !important;
}
.card-media .vial-prism-mark,
.product-search-result-media .vial-prism-mark,
.cart-popup-media .vial-prism-mark,
.cart-popup-suggestion-media .vial-prism-mark,
.cart-line-media .vial-prism-mark {
  width: 9px !important;
  height: 10px !important;
  filter: drop-shadow(0 0 3px rgba(64,166,255,.55)) !important;
}
.card-media .prismatic-vial-label i,
.product-search-result-media .prismatic-vial-label i,
.cart-popup-media .prismatic-vial-label i,
.cart-popup-suggestion-media .prismatic-vial-label i,
.cart-line-media .prismatic-vial-label i {
  font-size: 4px !important;
  letter-spacing: .05em !important;
}
.card-media .prismatic-vial-label strong,
.product-search-result-media .prismatic-vial-label strong,
.cart-popup-media .prismatic-vial-label strong,
.cart-popup-suggestion-media .prismatic-vial-label strong,
.cart-line-media .prismatic-vial-label strong {
  font-size: 7px !important;
  line-height: .92 !important;
  -webkit-line-clamp: 2 !important;
}
.cart-line-media .prismatic-vial-label {
  width: 30% !important;
  gap: 1px !important;
  top: 62% !important;
}
.cart-line-media .prismatic-vial-label i {
  display: none !important;
}
.cart-line-media .vial-prism-mark {
  width: 7px !important;
  height: 8px !important;
}
.cart-line-media .prismatic-vial-label strong {
  font-size: 5px !important;
  line-height: .9 !important;
  max-width: 100% !important;
}

/* ---------- Exceed-inspired homepage refresh, Prismatic-original ---------- */
.exceed-inspired-hero {
  position: relative;
  min-height: 650px !important;
  padding-top: 128px !important;
}
.exceed-inspired-hero::before {
  content: '';
  position: absolute;
  inset: 84px 24px 36px;
  z-index: -1;
  border: 1px solid rgba(96, 178, 255, .14);
  background:
    radial-gradient(circle at 78% 20%, rgba(70, 170, 255, .18), transparent 28%),
    linear-gradient(90deg, rgba(80, 160, 240, .07) 1px, transparent 1px),
    linear-gradient(rgba(80, 160, 240, .055) 1px, transparent 1px);
  background-size: auto, 62px 62px, 62px 62px;
  opacity: .95;
  pointer-events: none;
}
.exceed-inspired-hero .hero-title {
  max-width: 800px;
  text-transform: none !important;
}
.hero-token-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.hero-token-row span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(105, 180, 250, .2);
  padding: 0 14px;
  color: #b9dfff;
  background: rgba(6, 14, 24, .5);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.centered-heading {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}
.centered-heading p {
  margin-inline: auto;
}
.home-category-section {
  padding-top: 10px;
}
.home-category-grid .category-tile {
  min-height: 210px;
  background:
    linear-gradient(145deg, rgba(14, 28, 46, .9), rgba(4, 9, 16, .82));
}
.trusted-research-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 76px;
}
.trusted-copy-card {
  min-height: 340px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(108, 176, 239, .22);
  background:
    radial-gradient(circle at 80% 18%, rgba(81, 174, 255, .12), transparent 32%),
    linear-gradient(145deg, rgba(12, 23, 38, .92), rgba(4, 8, 14, .88));
}
.trusted-copy-card h2 {
  max-width: 620px;
  margin: 14px 0 18px;
  color: #f1f8ff;
  font-size: clamp(30px, 4vw, 56px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.045em;
}
.trusted-copy-card p {
  max-width: 560px;
  color: #9cafc7;
  line-height: 1.75;
}
.trusted-copy-card.accent-card {
  background:
    radial-gradient(circle at 20% 20%, rgba(233, 247, 255, .17), transparent 31%),
    linear-gradient(145deg, rgba(42, 116, 188, .58), rgba(8, 18, 31, .94));
}
.best-sellers-priority {
  padding: 8px 0 4px;
}
.best-sellers-priority .featured-grid {
  display: grid;
}
.homepage-final-split {
  border-top: 1px solid rgba(110, 176, 239, .16);
}
@media (max-width: 980px) {
  .trusted-research-section {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .exceed-inspired-hero {
    padding-top: 96px !important;
  }
  .exceed-inspired-hero::before {
    inset: 70px 14px 28px;
  }
  .trusted-copy-card {
    min-height: auto;
  }
}

/* ---------- Dark readable product detail page ---------- */
.product-layout {
  color: #edf7ff !important;
}
.product-media.photo {
  border: 1px solid rgba(105,172,239,.24) !important;
  border-radius: 3px !important;
  background:
    radial-gradient(circle at 50% 35%,rgba(91,180,255,.18),transparent 38%),
    linear-gradient(145deg,rgba(10,20,34,.95),rgba(4,9,16,.98)) !important;
  box-shadow: inset 0 1px 0 rgba(235,247,255,.05), 0 22px 70px rgba(0,0,0,.22) !important;
}
.product-info {
  min-width: 0 !important;
}
.product-info .group,
.product-title,
.price-block .price-amount {
  color: #f2f8ff !important;
}
.product-description,
.price-block .price-unit,
.product-use-note,
.size-label {
  color: #9fb5cd !important;
}
.ruo-pill {
  border: 1px solid rgba(105,172,239,.28) !important;
  background: rgba(8,17,30,.78) !important;
  color: #8fd0ff !important;
  box-shadow: none !important;
}
.product-selected-card {
  border: 1px solid rgba(105,172,239,.24) !important;
  background: linear-gradient(145deg,rgba(10,20,34,.9),rgba(5,11,20,.96)) !important;
  color: #edf7ff !important;
}
.product-selected-card span {
  color: #8fd0ff !important;
}
.product-selected-card strong {
  color: #f2f8ff !important;
}
.product-trust-grid div {
  border: 1px solid rgba(105,172,239,.22) !important;
  background: rgba(7,15,26,.82) !important;
}
.product-trust-grid strong {
  color: #f2f8ff !important;
}
.product-trust-grid span {
  color: #9fb5cd !important;
}
.variant-btn {
  border: 1px solid rgba(105,172,239,.24) !important;
  background: rgba(7,15,26,.82) !important;
  color: #edf7ff !important;
}
.variant-btn.active {
  border-color: #6dbaff !important;
  background: linear-gradient(145deg,rgba(20,63,105,.72),rgba(7,15,26,.95)) !important;
  box-shadow: 0 0 22px rgba(72,169,255,.14) !important;
}
.variant-btn .variant-price,
.variant-btn .variant-size {
  color: #f2f8ff !important;
}
.purchase-row {
  border: 1px solid rgba(105,172,239,.22) !important;
  border-radius: 3px !important;
  background: rgba(5,11,20,.72) !important;
  padding: 8px !important;
}
.qty-stepper {
  border: 1px solid rgba(105,172,239,.26) !important;
  border-radius: 3px !important;
  background: #07111d !important;
}
.qty-stepper .qty-btn,
.qty-stepper input {
  color: #f2f8ff !important;
  background: transparent !important;
}
.qty-stepper .qty-btn:hover {
  background: rgba(72,169,255,.15) !important;
}
.add-to-cart-btn {
  border-radius: 3px !important;
  background: linear-gradient(135deg,#e6f5ff,#51adff) !important;
  color: #06101b !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
}
