/* ═══════════════════════════════════════════════
   CURVE SCIENCE COMPOUNDS — Global Stylesheet
   ═══════════════════════════════════════════════ */

/* ── CSS VARIABLES ── */
:root {
  --gold: #C9A84C;
  --gold-light: #E8C96A;
  --gold-dark: #A07828;
  --gold-gradient: linear-gradient(135deg, #B8860B 0%, #E8C96A 40%, #C9A84C 60%, #A07828 100%);
  --black: #050505;
  --black-soft: #0D0D0D;
  --black-card: #111111;
  --black-border: #1E1E1E;
  --white: #FFFFFF;
  --white-muted: #B0B0B0;
  --white-dim: #707070;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Lato', sans-serif;
}

/* ── GLOBAL RESET ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--black) !important;
  color: var(--white) !important;
  font-family: var(--font-body) !important;
  font-weight: 300;
  margin: 0;
  overflow-x: hidden;
}
a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }
img { max-width: 100%; height: auto; }
::selection { background: rgba(201,168,76,0.3); color: var(--white); }

/* ── ANNOUNCEMENT BAR ── */
.cs-announcement {
  background: var(--gold-gradient);
  color: var(--black);
  text-align: center;
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 600;
  text-transform: uppercase;
}

/* ── HEADER / NAV ── */
.site-header,
header.elementor-location-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 999 !important;
  background: rgba(5,5,5,0.97) !important;
  backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid var(--black-border) !important;
}
.cs-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 80px;
  max-width: 1400px;
  margin: 0 auto;
}
.cs-nav-logo img {
  height: 54px;
  width: auto;
  display: block;
}
.cs-nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cs-nav-links a {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--white-muted);
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}
.cs-nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.cs-nav-links a:hover,
.cs-nav-links .current-menu-item > a {
  color: var(--gold-light);
}
.cs-nav-links a:hover::after,
.cs-nav-links .current-menu-item > a::after {
  transform: scaleX(1);
}

/* ── ELEMENTOR OVERRIDES ── */
.elementor-section { background: transparent !important; }
.elementor-widget-heading .elementor-heading-title { color: var(--white) !important; }
.elementor-widget-text-editor { color: var(--white-muted) !important; }

/* ── BUTTONS ── */
.cs-btn-primary,
.elementor-button.cs-btn-primary,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  font-family: var(--font-heading) !important;
  font-size: 12px !important;
  letter-spacing: 0.25em !important;
  padding: 14px 40px !important;
  background: var(--gold-gradient) !important;
  color: var(--black) !important;
  border: none !important;
  cursor: pointer !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
  transition: opacity 0.2s, transform 0.2s !important;
  border-radius: 0 !important;
}
.cs-btn-primary:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  opacity: 0.88 !important;
  transform: translateY(-1px) !important;
  color: var(--black) !important;
}
.cs-btn-secondary {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 0.25em;
  padding: 14px 32px;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}
.cs-btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ══════════════════════════════════════
   WOOCOMMERCE — SHOP PAGE
══════════════════════════════════════ */
.woocommerce-page body,
body.cs-woo-page {
  background: var(--black) !important;
}

/* Shop grid */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.woocommerce ul.products li.product {
  background: var(--black-card) !important;
  border: 1px solid var(--black-border) !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: border-color 0.3s, transform 0.3s !important;
  position: relative !important;
  overflow: hidden !important;
  float: none !important;
  width: 100% !important;
}
.woocommerce ul.products li.product:hover {
  border-color: rgba(201,168,76,0.45) !important;
  transform: translateY(-4px) !important;
}
/* Product image */
.woocommerce ul.products li.product a img {
  width: 100% !important;
  aspect-ratio: 1/1 !important;
  object-fit: cover !important;
  display: block !important;
  background: linear-gradient(135deg,#0e0e0e,#1a1a1a) !important;
}
/* Product info */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-display) !important;
  font-size: 19px !important;
  font-weight: 400 !important;
  color: var(--white) !important;
  padding: 20px 18px 6px !important;
  margin: 0 !important;
}
.woocommerce ul.products li.product .price {
  font-family: var(--font-heading) !important;
  font-size: 14px !important;
  background: var(--gold-gradient) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  padding: 0 18px 8px !important;
  display: block !important;
  font-weight: 600 !important;
}
.woocommerce ul.products li.product .price ins { text-decoration: none !important; }
.woocommerce ul.products li.product .price del { opacity: 0.4 !important; }
/* Add to cart on product cards */
.woocommerce ul.products li.product .add_to_cart_button,
.woocommerce ul.products li.product a.button {
  margin: 0 18px 20px !important;
  display: block !important;
  text-align: center !important;
  font-family: var(--font-heading) !important;
  font-size: 10px !important;
  letter-spacing: 0.2em !important;
  padding: 10px 18px !important;
  background: transparent !important;
  color: var(--gold) !important;
  border: 1px solid rgba(201,168,76,0.35) !important;
  text-transform: uppercase !important;
  transition: all 0.25s !important;
  -webkit-text-fill-color: var(--gold) !important;
}
.woocommerce ul.products li.product .add_to_cart_button:hover {
  background: var(--gold-gradient) !important;
  -webkit-text-fill-color: var(--black) !important;
  color: var(--black) !important;
  border-color: transparent !important;
}
/* Sale badge */
.woocommerce span.onsale {
  background: var(--gold-gradient) !important;
  color: var(--black) !important;
  font-family: var(--font-heading) !important;
  font-size: 10px !important;
  letter-spacing: 0.15em !important;
  border-radius: 0 !important;
  padding: 4px 10px !important;
  min-height: auto !important;
  min-width: auto !important;
  line-height: 1.5 !important;
}
/* Shop toolbar */
.woocommerce-ordering select,
.woocommerce .woocommerce-ordering select {
  background: var(--black-card) !important;
  border: 1px solid var(--black-border) !important;
  color: var(--white-muted) !important;
  font-family: var(--font-heading) !important;
  font-size: 11px !important;
  letter-spacing: 0.1em !important;
  padding: 8px 28px 8px 12px !important;
  border-radius: 0 !important;
  outline: none !important;
}
.woocommerce-result-count {
  font-family: var(--font-heading) !important;
  font-size: 11px !important;
  letter-spacing: 0.15em !important;
  color: var(--white-dim) !important;
}

/* ══════════════════════════════════════
   WOOCOMMERCE — SINGLE PRODUCT
══════════════════════════════════════ */
.woocommerce div.product {
  background: var(--black) !important;
  padding: 60px 6vw !important;
}
.woocommerce div.product .product_title {
  font-family: var(--font-display) !important;
  font-size: clamp(34px,5vw,60px) !important;
  font-weight: 300 !important;
  color: var(--white) !important;
  line-height: 1.1 !important;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-family: var(--font-heading) !important;
  font-size: 22px !important;
  background: var(--gold-gradient) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-weight: 600 !important;
}
.woocommerce div.product .woocommerce-product-details__short-description {
  font-size: 15px !important;
  color: var(--white-muted) !important;
  line-height: 1.85 !important;
  border-top: 1px solid var(--black-border) !important;
  padding-top: 20px !important;
  margin-top: 16px !important;
}
/* Variations / size selector */
.woocommerce div.product form.cart .variations select {
  background: var(--black-card) !important;
  border: 1px solid var(--black-border) !important;
  color: var(--white) !important;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  padding: 12px 16px !important;
  border-radius: 0 !important;
  outline: none !important;
  width: 100% !important;
}
.woocommerce div.product form.cart .variations select:focus {
  border-color: var(--gold-dark) !important;
}
.woocommerce div.product form.cart table.variations th.label label {
  font-family: var(--font-heading) !important;
  font-size: 10px !important;
  letter-spacing: 0.25em !important;
  color: var(--gold) !important;
  text-transform: uppercase !important;
}
/* Qty input */
.woocommerce div.product form.cart .qty {
  background: var(--black-card) !important;
  border: 1px solid var(--black-border) !important;
  color: var(--white) !important;
  font-size: 16px !important;
  padding: 12px 16px !important;
  border-radius: 0 !important;
  width: 70px !important;
  text-align: center !important;
}
/* Product tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs {
  border-bottom: 1px solid var(--black-border) !important;
  background: transparent !important;
  padding: 0 !important;
  margin-bottom: 0 !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  border-bottom-color: var(--gold) !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  font-family: var(--font-heading) !important;
  font-size: 11px !important;
  letter-spacing: 0.2em !important;
  color: var(--white-dim) !important;
  text-transform: uppercase !important;
  padding: 16px 24px !important;
  display: block !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
  color: var(--gold) !important;
  background: transparent !important;
}
.woocommerce div.product .woocommerce-tabs .panel {
  background: var(--black-card) !important;
  border: 1px solid var(--black-border) !important;
  border-top: none !important;
  padding: 32px !important;
  color: var(--white-muted) !important;
  font-size: 14px !important;
  line-height: 1.85 !important;
}
/* Product images */
.woocommerce div.product div.images {
  background: linear-gradient(135deg, #0e0e0e, #1a1a1a) !important;
  border: 1px solid var(--black-border) !important;
}

/* ══════════════════════════════════════
   WOOCOMMERCE — CART
══════════════════════════════════════ */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
  padding: 60px 6vw !important;
}
.woocommerce table.shop_table {
  background: var(--black-card) !important;
  border: 1px solid var(--black-border) !important;
  border-collapse: collapse !important;
}
.woocommerce table.shop_table th {
  font-family: var(--font-heading) !important;
  font-size: 10px !important;
  letter-spacing: 0.3em !important;
  color: var(--gold) !important;
  text-transform: uppercase !important;
  padding: 16px 20px !important;
  border-bottom: 1px solid var(--black-border) !important;
  background: transparent !important;
}
.woocommerce table.shop_table td {
  color: var(--white-muted) !important;
  padding: 16px 20px !important;
  border-bottom: 1px solid var(--black-border) !important;
  font-size: 14px !important;
  vertical-align: middle !important;
}
.woocommerce table.shop_table .product-name a {
  font-family: var(--font-display) !important;
  font-size: 18px !important;
  color: var(--white) !important;
}
.woocommerce table.shop_table .amount {
  font-family: var(--font-heading) !important;
  background: var(--gold-gradient) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
.cart_totals, .woocommerce .cart_totals {
  background: var(--black-card) !important;
  border: 1px solid var(--black-border) !important;
  padding: 32px !important;
}
.cart_totals h2 {
  font-family: var(--font-heading) !important;
  font-size: 13px !important;
  letter-spacing: 0.25em !important;
  color: var(--gold) !important;
  text-transform: uppercase !important;
  margin-bottom: 24px !important;
}

/* ══════════════════════════════════════
   WOOCOMMERCE — CHECKOUT
══════════════════════════════════════ */
.woocommerce-checkout .woocommerce h3 {
  font-family: var(--font-heading) !important;
  font-size: 13px !important;
  letter-spacing: 0.25em !important;
  color: var(--gold) !important;
  text-transform: uppercase !important;
  margin-bottom: 24px !important;
}
.woocommerce form .form-row label {
  font-family: var(--font-heading) !important;
  font-size: 10px !important;
  letter-spacing: 0.2em !important;
  color: var(--white-dim) !important;
  text-transform: uppercase !important;
  margin-bottom: 6px !important;
  display: block !important;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  background: var(--black-card) !important;
  border: 1px solid var(--black-border) !important;
  color: var(--white) !important;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  padding: 12px 16px !important;
  border-radius: 0 !important;
  outline: none !important;
  width: 100% !important;
  transition: border-color 0.2s !important;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
  border-color: var(--gold-dark) !important;
}
#order_review { background: var(--black-card) !important; border: 1px solid var(--black-border) !important; padding: 32px !important; }

/* ══════════════════════════════════════
   WOOCOMMERCE — NOTICES
══════════════════════════════════════ */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  background: var(--black-card) !important;
  border-top: 3px solid var(--gold) !important;
  color: var(--white-muted) !important;
  font-size: 14px !important;
}
.woocommerce-message::before { color: var(--gold) !important; }

/* ══════════════════════════════════════
   AGE GATE
══════════════════════════════════════ */
#cs-age-gate {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
}
.cs-gate-box {
  max-width: 620px; width: 90%;
  border: 1px solid #2a2a1a;
  padding: 52px 48px;
  text-align: center;
  background: var(--black-soft);
  position: relative;
}
.cs-gate-box::before {
  content: '';
  position: absolute; inset: -1px;
  background: var(--gold-gradient);
  z-index: -1; opacity: 0.2;
}
.cs-gate-logo {
  font-family: var(--font-heading);
  font-size: clamp(20px,4vw,30px);
  letter-spacing: 0.2em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}
.cs-gate-sub {
  font-family: var(--font-heading);
  font-size: 10px; letter-spacing: 0.35em;
  color: var(--gold); margin-bottom: 28px;
}
.cs-gate-rule { width: 60px; height: 1px; background: var(--gold-gradient); margin: 20px auto; }
.cs-gate-title {
  font-family: var(--font-heading);
  font-size: 13px; letter-spacing: 0.12em;
  color: var(--white); margin-bottom: 16px; text-transform: uppercase;
}
.cs-gate-text { font-size: 13px; line-height: 1.85; color: var(--white-muted); margin-bottom: 8px; }
.cs-gate-btns { display: flex; gap: 14px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.cs-gate-agree {
  font-family: var(--font-heading);
  font-size: 12px; letter-spacing: 0.25em;
  padding: 14px 40px;
  background: var(--gold-gradient);
  color: var(--black); border: none; cursor: pointer;
  text-transform: uppercase; font-weight: 700;
  transition: opacity 0.2s;
}
.cs-gate-agree:hover { opacity: 0.85; }
.cs-gate-disagree {
  font-family: var(--font-heading);
  font-size: 12px; letter-spacing: 0.2em;
  padding: 14px 28px;
  background: transparent; color: var(--white-muted);
  border: 1px solid #333; cursor: pointer;
  text-transform: uppercase; transition: border-color 0.2s;
}
.cs-gate-disagree:hover { border-color: var(--gold-dark); }

/* Researcher verification gate (markup in functions.php) */
#cs-rv-gate {
  display: none;
  position: fixed; inset: 0; z-index: 99999;
  background: #0a0906;
  align-items: center; justify-content: center;
  padding: 16px;
  overflow-y: auto;
  transition: opacity 0.4s;
}
html.cs-rv-pending #cs-rv-gate { display: flex; }
#cs-rv-gate, #cs-rv-gate *, #cs-rv-gate *::before, #cs-rv-gate *::after { box-sizing: border-box; }
html.cs-rv-pending, html.cs-rv-pending body { overflow: hidden !important; }
#cs-rv-gate .cs-gate-box { width: 100%; margin: auto; }
#cs-rv-gate h2.cs-gate-title { font-family: 'Cinzel', serif; font-weight: 600; }
#cs-rv-gate .cs-gate-text { font-family: 'Lato', sans-serif; }
.cs-rv-form { margin-top: 24px; text-align: left; }
.cs-rv-check {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; margin-bottom: 10px;
  border: 1px solid var(--black-border);
  font-family: 'Lato', sans-serif; font-size: 14px; line-height: 1.5;
  color: var(--white); cursor: pointer;
}
.cs-rv-check input {
  flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0;
  accent-color: #C9A84C; cursor: pointer;
}
.cs-rv-check:has(input:checked) { border-color: #C9A84C; }
#cs-rv-gate .cs-gate-agree:disabled { opacity: 0.35; cursor: not-allowed; }
#cs-rv-gate .cs-gate-btns { margin-top: 22px; }
#cs-rv-gate .cs-gate-agree { width: 100%; }
.cs-rv-fine {
  font-family: 'Lato', sans-serif; font-size: 11px; line-height: 1.7;
  color: var(--white-dim); text-align: center; margin: 18px 0 0;
}
.cs-rv-exit {
  font-family: 'Lato', sans-serif; font-size: 13px;
  color: var(--white-muted); text-align: center; margin: 14px 0 0;
}
.cs-rv-exit a { color: #C9A84C; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) {
  #cs-rv-gate .cs-gate-box { padding: 32px 20px; }
  #cs-rv-gate .cs-gate-agree { padding: 14px 16px; letter-spacing: 0.15em; }
}

/* Research-use notice under single product title */
.cs-ruo-notice {
  font-family: 'Cinzel', serif;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #C9A84C;
  border-left: 2px solid #C9A84C;
  padding: 6px 0 6px 12px;
  margin: 8px 0 18px;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.cs-footer {
  background: var(--black-soft) !important;
  border-top: 1px solid var(--black-border) !important;
  padding: 72px 6vw 40px !important;
}
.cs-footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px; margin-bottom: 60px;
}
.cs-footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 16px; letter-spacing: 0.2em;
  color: var(--white); margin-bottom: 4px;
}
.cs-footer-brand .cs-footer-sub {
  font-family: var(--font-heading);
  font-size: 9px; letter-spacing: 0.35em;
  color: var(--gold); margin-bottom: 18px; display: block;
}
.cs-footer-brand p { font-size: 12px; line-height: 1.85; color: var(--white-dim); max-width: 280px; }
.cs-footer-col h4 {
  font-family: var(--font-heading);
  font-size: 10px; letter-spacing: 0.3em;
  color: var(--gold); text-transform: uppercase; margin-bottom: 18px;
}
.cs-footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.cs-footer-col a { font-size: 13px; color: var(--white-dim); text-decoration: none; transition: color 0.2s; }
.cs-footer-col a:hover { color: var(--white); }
.cs-footer-col p { font-size: 13px; color: var(--white-dim); line-height: 1.8; }
.cs-footer-rule { height: 1px; background: var(--black-border); margin-bottom: 28px; }
.cs-footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.cs-footer-bottom p { font-size: 11px; color: var(--white-dim); font-family: var(--font-heading); letter-spacing: 0.12em; }
.cs-footer-payments { display: flex; gap: 10px; }
.cs-pay-badge { font-size: 10px; font-family: var(--font-heading); letter-spacing: 0.1em; padding: 5px 10px; border: 1px solid #222; color: var(--white-dim); }
.cs-disclaimer { border-top: 1px solid var(--black-border); margin-top: 28px; padding-top: 24px; }
.cs-disclaimer p { font-size: 11px; line-height: 1.85; color: var(--white-dim); max-width: 900px; }

/* ══════════════════════════════════════
   ELEMENTOR WIDGET OVERRIDES
══════════════════════════════════════ */
.elementor-widget-image img { border: none !important; }
.elementor-widget-divider .elementor-divider-separator { border-color: var(--black-border) !important; }

/* Gold divider style */
.elementor-widget-divider.cs-gold-divider .elementor-divider-separator {
  background: var(--gold-gradient) !important;
  border: none !important;
  height: 2px !important;
}
/* Gold text */
.cs-gold-text { background: var(--gold-gradient) !important; -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important; }
.cs-eyebrow { font-family: var(--font-heading) !important; font-size: 10px !important; letter-spacing: 0.4em !important; color: var(--gold) !important; text-transform: uppercase !important; }

/* Cards */
.cs-card { background: var(--black-card); border: 1px solid var(--black-border); transition: border-color 0.3s, transform 0.3s; }
.cs-card:hover { border-color: rgba(201,168,76,0.4); transform: translateY(-4px); }
.cs-card-gold-top::before { content: ''; display: block; height: 2px; background: var(--gold-gradient); }

/* Input fields */
.cs-input {
  width: 100%; padding: 13px 16px;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px; outline: none;
  transition: border-color 0.2s;
}
.cs-input:focus { border-color: var(--gold-dark); }
.cs-input::placeholder { color: var(--white-dim); }

/* ══════════════════════════════════════
   PEPTIDE CALCULATOR STYLES
══════════════════════════════════════ */
.cs-calc-wrapper { max-width: 900px; margin: 0 auto; }
.cs-calc-card {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  padding: 44px;
  position: relative;
  margin-bottom: 24px;
}
.cs-calc-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gold-gradient); }
.cs-result-val {
  font-family: var(--font-display);
  font-size: 40px; font-weight: 300;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .cs-nav { padding: 0 24px; }
  .cs-footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .woocommerce ul.products { grid-template-columns: repeat(2,1fr) !important; }
}
@media (max-width: 768px) {
  .cs-nav-links { display: none; }
  .cs-nav { padding: 0 20px; }
  .cs-footer-top { grid-template-columns: 1fr; }
  .cs-footer-bottom { flex-direction: column; text-align: center; }
  .woocommerce ul.products { grid-template-columns: 1fr !important; }
  .woocommerce div.product { padding: 40px 20px !important; }
  .cs-gate-box { padding: 36px 24px; }
}

/* ── BLOCKS CHECKOUT FIELDS ──
   body sets color: #fff !important, which the Blocks field labels and
   inputs inherit — white text on white boxes. Give them dark text. */
body .wc-block-components-text-input input,
body .wc-block-components-text-input textarea,
body .wc-block-components-textarea,
body .wc-block-components-combobox .wc-block-components-combobox-control input,
body .wc-blocks-components-select .wc-blocks-components-select__select {
  color: #000000 !important;
  background-color: #ffffff !important;
  font-weight: 400 !important;   /* body is Lato 300, which reads too faint here */
}
body .wc-block-components-text-input label,
body .wc-block-components-combobox .wc-block-components-combobox-control label,
body .wc-blocks-components-select .wc-blocks-components-select__label {
  color: #3d3d3d !important;
  font-weight: 400 !important;
}
/* Safari/Chrome autofill: keep white boxes and black text instead of pale yellow */
body .wc-block-components-text-input input:-webkit-autofill,
body .wc-block-components-text-input input:-webkit-autofill:focus {
  -webkit-text-fill-color: #000000 !important;
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
}
body .wc-block-components-text-input input::placeholder,
body .wc-block-components-textarea::placeholder {
  color: #6b6b6b !important;
}
body .wc-block-components-text-input.is-active input,
body .wc-block-components-text-input input:focus,
body .wc-block-components-combobox-control input:focus,
body .wc-blocks-components-select__select:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 1px var(--gold) !important;
}

/* ── MOBILE NAV (Hello Elementor dynamic header) ──
   This file loads before the parent's header-footer.css, so these
   rules need !important to beat its white dropdown defaults. */
.site-header .site-navigation-toggle-holder {
  margin-left: auto !important;
  padding: 8px 0 !important;
}
.site-header .site-navigation-toggle {
  background-color: transparent !important;
  color: var(--gold) !important;
  padding: 0.5rem 0 0.5rem 0.5rem !important;
}
.site-navigation-dropdown ul.menu {
  background: var(--black) !important;
  border-top: 1px solid var(--gold) !important;
  border-bottom: 1px solid var(--gold) !important;
}
.site-navigation-dropdown ul.menu li a {
  background: var(--black) !important;
  color: #ffffff !important;
  box-shadow: inset 0 -1px 0 var(--black-border) !important;
  font-family: 'Cinzel', serif !important;
  letter-spacing: 0.08em !important;
  padding: 18px 20px !important;
}
.site-navigation-dropdown ul.menu li a:hover,
.site-navigation-dropdown ul.menu li a:focus {
  background: var(--black-soft) !important;
  color: var(--gold-light) !important;
}
.site-navigation-dropdown ul.menu li.current-menu-item a {
  background: var(--gold) !important;
  color: var(--black) !important;
}

/* ── VARIABLE PRICE ("From" label, when enabled in functions.php) ── */
.cs-price-from {
  font-family: 'Cinzel', serif;
  font-size: max(10px, 0.5em);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-muted);
  margin-right: 4px;
  vertical-align: middle;
}

/* ── PACK PRICING TABLE (single product, built in functions.php) ── */
.cs-pack-table {
  width: 100%;
  max-width: 420px;
  border-collapse: collapse;
  margin: 6px 0 24px;
  font-family: 'Lato', sans-serif;
}
.cs-pack-table th {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: left;
  padding: 0 0 8px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.45);
}
.cs-pack-table th:last-child,
.cs-pack-table td:last-child { text-align: right; }
.cs-pack-table td {
  font-size: 15px;
  font-weight: 400;
  color: #ffffff;
  padding: 11px 0;
  border-bottom: 1px solid var(--black-border);
}
.cs-pack-table td:last-child { color: var(--gold-light); }
.cs-pack-table tr:last-child td { border-bottom: none; }

/* ── SINGLE PRODUCT ON PHONES: stack image above details ──
   Additional CSS sets gallery 45% / summary 50% floats at every width,
   which squeezes the summary into a ~150px strip on phones. */
@media (max-width: 768px) {
  /* leading html: outranks the identical Additional CSS rules, which load later */
  html .woocommerce div.product .woocommerce-product-gallery,
  html .woocommerce div.product .summary.entry-summary {
    width: 100% !important;
    float: none !important;
  }
  html .woocommerce div.product .woocommerce-product-gallery__wrapper { max-width: 100% !important; }
}

/* ── PACK SIZE: tiles layout (single product) ── */
/* shared by all layout options: add-to-cart row + select styling */
.single-product form.variations_form { max-width: 420px; }
.single-product form.variations_form select {
  appearance: none; -webkit-appearance: none;
  height: 48px; padding: 0 44px 0 16px !important;
  background-color: #0f0f0f !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23C9A84C' stroke-width='1.6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 16px center !important; background-size: 12px 8px !important;
  border: 1px solid rgba(201,168,76,.45) !important; border-radius: 0;
  color: #fff !important; font: 400 15px 'Lato', sans-serif !important;
}
.single-product form.variations_form .reset_variations { display: none !important; }
.single-product .single_variation_wrap { margin-top: 16px; }
.single-product .woocommerce-variation-price .price { font-size: 22px; margin: 0 0 12px; }
.single-product .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.single-product .woocommerce-variation-add-to-cart .quantity { display: flex; align-items: stretch; margin: 0 !important; }
.single-product .woocommerce-variation-add-to-cart .single_add_to_cart_button { flex: 1 1 180px; min-height: 48px; margin: 0 !important; }
/* quantity −/+ (theme sets 36px inline) match the 48px row */
.single-product .woocommerce-variation-add-to-cart .cs-qty-minus,
.single-product .woocommerce-variation-add-to-cart .cs-qty-plus { height: 48px !important; width: 40px !important; }
.single-product .woocommerce-variation-add-to-cart input.qty { height: 48px !important; width: 56px; text-align: center; }

/* C — Pack tiles: the dropdown becomes tap-able tiles (dropdown kept, visually hidden, for WooCommerce) */
.single-product table.variations { width: 100%; margin: 0; }
.single-product table.variations tr, .single-product table.variations th, .single-product table.variations td { display: block; padding: 0 !important; border: 0; background: none; }
.single-product table.variations th.label { margin-bottom: 10px; text-align: left; }
.single-product table.variations th.label label { font: 600 10px 'Cinzel', serif; letter-spacing: .22em; text-transform: uppercase; color: #C9A84C; }
.single-product table.variations select { position: absolute !important; opacity: 0; pointer-events: none; width: 1px !important; height: 1px; }
.cs-pack-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cs-pack-tile { background: #0f0f0f; border: 1px solid #2a2a2a; color: #fff; padding: 12px 6px; cursor: pointer; text-align: center; font-family: 'Lato', sans-serif; }
.cs-pack-tile b { display: block; font-weight: 400; font-size: 13px; }
.cs-pack-tile span { display: block; color: #E8C96A; font-size: 14px; margin-top: 4px; }
.cs-pack-tile[aria-pressed="true"] { border-color: #C9A84C; background: rgba(201,168,76,.10); }
@media (max-width: 480px) { .cs-pack-tiles { grid-template-columns: repeat(2, 1fr); } }

/* ── PRODUCT GALLERY: hug the image ──
   Additional CSS makes the gallery 45% wide while the image tops out at 420px,
   leaving an empty band beside it. Cap the column at the image width instead.
   Leading html outranks those Additional CSS rules. */
html .woocommerce div.product .woocommerce-product-gallery {
  max-width: 400px !important;
  height: auto !important; min-height: 0 !important; aspect-ratio: auto !important;
  margin-right: 40px; position: relative;
}
html .woocommerce div.product .woocommerce-product-gallery__wrapper,
html .woocommerce div.product .woocommerce-product-gallery__image {
  max-width: 100% !important; width: 100%;
  height: auto !important; min-height: 0 !important; aspect-ratio: auto !important;
  margin: 0 !important; padding: 0 !important;
}
html .woocommerce div.product .woocommerce-product-gallery__image img:not(.zoomImg) {
  display: block; width: 100% !important; height: auto !important; object-fit: contain;
}
/* zoom icon floats over the image instead of taking its own row */
html .woocommerce div.product .woocommerce-product-gallery__trigger {
  position: absolute; top: 10px; right: 10px; z-index: 5; line-height: 1;
}
@media (max-width: 768px) {
  html .woocommerce div.product .woocommerce-product-gallery { margin: 0 0 28px !important; }
}
