/* ===== Renuvia Laboratory — brand tokens ===== */
:root {
  --navy: #1D2A3C;
  --navy-soft: #2A3B52;
  --mint: #46B992;
  --mint-bright: #63EEBF;
  --bg: #F6FFFD;
  --white: #FFFFFF;
  --ink: #1D2A3C;
  --ink-soft: #55606F;
  --border: #E1EAE6;
  --danger: #C24545;
  --danger-bg: #FCEDED;
  --success-bg: #EAF9F2;
  --success-ink: #1E6B4C;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(29, 42, 60, 0.07);
  --shadow-lg: 0 12px 32px rgba(29, 42, 60, 0.12);
  --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.01em; margin: 0 0 0.5em; color: var(--navy); }
p { margin: 0 0 1em; color: var(--ink-soft); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: #101927; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.82rem; }
.btn-block { width: 100%; }

/* ===== Top bar ===== */
.topbar {
  background: var(--navy);
  color: var(--mint-bright);
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding: 0.5rem 1rem;
  font-weight: 600;
}

/* ===== Header ===== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { flex-shrink: 0; }
.brand-logo { height: 38px; width: auto; }
.main-nav { display: flex; gap: 1.75rem; flex: 1; }
.nav-link { font-weight: 600; font-size: 0.92rem; color: var(--ink-soft); padding: 0.25rem 0; border-bottom: 2px solid transparent; }
.nav-link:hover, .nav-link.active { color: var(--navy); border-bottom-color: var(--mint); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-link { font-weight: 600; font-size: 0.88rem; color: var(--ink-soft); }
.header-link:hover { color: var(--navy); }
.cart-link {
  position: relative;
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 999px;
}
.cart-badge {
  position: absolute;
  top: -8px; right: -8px;
  background: var(--mint);
  color: var(--white);
  font-size: 0.7rem;
  min-width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.mobile-nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; }
.mobile-nav { display: none; flex-direction: column; padding: 0.5rem 24px 1rem; border-top: 1px solid var(--border); }
.mobile-nav a { padding: 0.6rem 0; font-weight: 600; border-bottom: 1px solid var(--border); }
.mobile-nav.open { display: flex; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-actions .header-link { display: none; }
  .mobile-nav-toggle { display: block; }
}

/* ===== Flash ===== */
.flash { padding: 0.85rem 0; font-weight: 600; text-align: center; }
.flash-success { background: var(--success-bg); color: var(--success-ink); }
.flash-error { background: var(--danger-bg); color: var(--danger); }

/* ===== Hero ===== */
.hero { padding: 4.5rem 0 3rem; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.eyebrow { display: inline-block; color: var(--mint); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 0.75rem; }
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); line-height: 1.1; margin-bottom: 0.6em; }
.hero-copy p { font-size: 1.08rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.5rem 0 1rem; }
.hero-disclaimer { font-size: 0.8rem; color: var(--ink-soft); opacity: 0.8; }
.hero-art { display: flex; justify-content: center; align-items: center; }
.hero-mark { width: 100%; max-width: 320px; filter: drop-shadow(0 20px 40px rgba(70,185,146,0.25)); }

@media (max-width: 800px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 200px; margin: 0 auto; }
}

/* ===== Value props ===== */
.value-props { background: var(--navy); padding: 3.5rem 0; }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.value-item h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 0.4em; }
.value-item p { color: #B9C3D0; font-size: 0.92rem; margin: 0; }
@media (max-width: 900px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .value-grid { grid-template-columns: 1fr; } }

/* ===== Sections ===== */
.section-heading { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.75rem; }
.section-link { font-weight: 700; color: var(--mint); font-size: 0.9rem; }
.featured, .shop-section, .related-section, .coa-section { padding: 4rem 0; }

/* ===== Product grid / cards ===== */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 1000px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.product-card-media {
  position: relative;
  aspect-ratio: 1.3 / 1;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  display: flex; align-items: center; justify-content: center;
}
.product-card-monogram { font-size: 2.5rem; font-weight: 800; color: rgba(255,255,255,0.85); letter-spacing: 0.02em; }
.badge { position: absolute; top: 10px; left: 10px; font-size: 0.68rem; font-weight: 800; padding: 0.3rem 0.6rem; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.03em; }
.badge-coa { background: var(--mint-bright); color: var(--navy); }
.product-card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.product-card-category { font-size: 0.72rem; font-weight: 700; color: var(--mint); text-transform: uppercase; letter-spacing: 0.04em; }
.product-card-body h3 { font-size: 1.1rem; margin: 0.1em 0 0.15em; }
.product-card-tagline { font-size: 0.85rem; margin: 0 0 0.9em; flex: 1; }
.product-card-footer { display: flex; justify-content: space-between; align-items: center; }
.product-card-price { font-weight: 800; color: var(--navy); }

/* ===== Chips ===== */
.chip-row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 2rem; }
.chip { padding: 0.5rem 1.1rem; border-radius: 999px; border: 1px solid var(--border); font-weight: 600; font-size: 0.85rem; background: var(--white); }
.chip-active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ===== Page header ===== */
.page-header { padding: 3rem 0 2rem; text-align: center; }
.page-header h1 { font-size: 2.1rem; }
.page-header p { max-width: 56ch; margin: 0 auto; }

/* ===== CTA banner ===== */
.cta-banner { background: linear-gradient(120deg, var(--mint), var(--mint-bright)); padding: 3rem 0; }
.cta-banner-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.cta-banner h2 { margin-bottom: 0.2em; }
.cta-banner p { color: rgba(29,42,60,0.75); margin: 0; }
.cta-banner .btn-primary { background: var(--navy); }

/* ===== Product detail ===== */
.breadcrumb-row { padding: 1.2rem 0; font-size: 0.85rem; color: var(--ink-soft); }
.breadcrumb-row a { color: var(--ink-soft); font-weight: 600; }
.breadcrumb-row a:hover { color: var(--mint); }
.product-detail { padding-bottom: 3rem; }
.product-detail-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; }
@media (max-width: 860px) { .product-detail-grid { grid-template-columns: 1fr; } }
.product-media-large {
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center;
}
.product-media-monogram { font-size: 5rem; font-weight: 800; color: rgba(255,255,255,0.85); }
.product-tagline { color: var(--mint); font-weight: 700; margin-bottom: 0.6em; }
.product-short { font-size: 1.02rem; }
.spec-row { display: flex; gap: 2rem; margin: 1.2rem 0; padding: 1rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.spec-label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); font-weight: 700; }
.spec-value { display: block; font-weight: 800; color: var(--navy); font-size: 1.05rem; }

.add-to-cart-form { display: flex; flex-direction: column; gap: 0.4rem; margin: 1.2rem 0 1.6rem; }
.field-label { font-weight: 700; font-size: 0.85rem; color: var(--navy); margin-top: 0.6rem; }
select, input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], textarea {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  font-family: var(--font);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
}
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--mint); }
.field-hint { font-size: 0.78rem; color: var(--ink-soft); }
.field-error { font-size: 0.8rem; color: var(--danger); font-weight: 600; }
.field-row { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr; gap: 0.8rem; }

.product-description h3 { font-size: 1rem; }
.ruo-box { background: var(--bg); border: 1px dashed var(--mint); border-radius: 8px; padding: 1rem 1.2rem; font-size: 0.86rem; color: var(--ink-soft); margin: 1.2rem 0; }
.coa-link { font-weight: 700; color: var(--mint); }

/* ===== Gate screen ===== */
.gate-body { margin: 0; background: var(--navy); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; font-family: var(--font); }
.gate-screen { max-width: 480px; width: 100%; background: var(--navy-soft); border-radius: 16px; padding: 2.5rem 2rem; box-shadow: var(--shadow-lg); text-align: center; }
.gate-logo { height: 70px; margin: 0 auto 1.5rem; }
.gate-screen h1 { color: var(--white); font-size: 1.5rem; }
.gate-intro { color: #C4CEDA; font-size: 0.92rem; text-align: left; }
.gate-check { display: flex; align-items: flex-start; gap: 0.7rem; text-align: left; margin: 1rem 0; cursor: pointer; }
.gate-check input { margin-top: 0.25rem; width: 16px; height: 16px; accent-color: var(--mint-bright); flex-shrink: 0; }
.gate-check span { color: #DCE4EC; font-size: 0.86rem; }
.gate-check a { color: var(--mint-bright); font-weight: 700; }
.gate-error { background: rgba(194,69,69,0.15); color: #FF8A8A; padding: 0.7rem 1rem; border-radius: 8px; font-size: 0.85rem; margin-bottom: 1rem; text-align: left; }
.gate-exit { color: #8593A6; font-size: 0.78rem; margin-top: 1.2rem; }
.gate-exit a { color: #8593A6; text-decoration: underline; }

/* ===== Cart ===== */
.cart-section, .checkout-section, .account-section { padding: 1rem 0 4rem; }
.cart-grid { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }
@media (max-width: 860px) { .cart-grid, .checkout-grid, .account-grid { grid-template-columns: 1fr; } }
.cart-header-row { display: grid; grid-template-columns: 1fr 90px 90px 40px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink-soft); padding: 0 0 0.6rem; border-bottom: 1px solid var(--border); }
.cart-row { display: grid; grid-template-columns: 1fr 90px 90px 40px; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--border); gap: 0.5rem; }
.cart-row-info { display: flex; flex-direction: column; }
.cart-row-name { font-weight: 700; color: var(--navy); }
.cart-row-size { font-size: 0.8rem; color: var(--ink-soft); }
.cart-row-qty input { width: 60px; padding: 0.4rem; }
.cart-row-price { font-weight: 700; }
.cart-row-remove { background: none; border: none; font-size: 1.3rem; color: var(--ink-soft); cursor: pointer; line-height: 1; }
.cart-row-remove:hover { color: var(--danger); }

.cart-summary { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; position: sticky; top: 100px; }
.summary-row { display: flex; justify-content: space-between; padding: 0.5rem 0; font-weight: 600; }
.summary-total { font-size: 1.1rem; font-weight: 800; border-top: 1px solid var(--border); margin-top: 0.5rem; padding-top: 0.8rem; }
.summary-note { font-size: 0.8rem; color: var(--ink-soft); margin: 0.8rem 0 1.2rem; }
.empty-state { padding: 2rem 0; color: var(--ink-soft); }

/* ===== Checkout ===== */
.checkout-grid { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }
.checkout-form { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.checkout-note { font-size: 0.8rem; color: var(--ink-soft); text-align: center; margin-top: 0.8rem; }
.checkout-line { display: flex; justify-content: space-between; font-size: 0.88rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.checkout-line small { color: var(--ink-soft); }

/* ===== Auth ===== */
.auth-section { padding: 3.5rem 0 5rem; }
.auth-container { display: flex; justify-content: center; }
.auth-card { width: 100%; max-width: 440px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.2rem; }
.auth-card h1 { font-size: 1.5rem; }
.auth-sub { font-size: 0.88rem; }
.auth-card form { display: flex; flex-direction: column; }
.auth-switch { text-align: center; font-size: 0.88rem; margin-top: 1.2rem; }
.auth-switch a { color: var(--mint); font-weight: 700; }

/* ===== Account ===== */
.account-grid { display: grid; grid-template-columns: 320px 1fr; gap: 2rem; align-items: start; }
.account-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; }
.account-card h3 { font-size: 1rem; }
.order-row { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center; padding: 0.9rem 0; border-bottom: 1px solid var(--border); }
.order-id { font-weight: 700; color: var(--navy); display: block; }
.order-date { font-size: 0.78rem; color: var(--ink-soft); }
.order-status { font-size: 0.75rem; font-weight: 800; padding: 0.3rem 0.7rem; border-radius: 999px; background: var(--bg); color: var(--navy); text-transform: uppercase; letter-spacing: 0.02em; }
.order-total { font-weight: 700; }

/* ===== COA list ===== */
.coa-list { display: flex; flex-direction: column; gap: 0.8rem; }
.coa-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 1rem 1.3rem; flex-wrap: wrap; }
.coa-name { font-weight: 700; color: var(--navy); display: block; }
.coa-purity { font-size: 0.8rem; color: var(--ink-soft); }
.coa-status { font-size: 0.8rem; color: var(--mint); font-weight: 700; }

/* ===== Prose / FAQ ===== */
.prose-section { padding: 1rem 0 4rem; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 1rem 1.3rem; margin-bottom: 0.8rem; }
.faq-item summary { font-weight: 700; cursor: pointer; color: var(--navy); }
.faq-item p { margin-top: 0.7rem; margin-bottom: 0; }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: #B9C3D0; padding: 3.5rem 0 1.5rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-logo { height: 50px; margin-bottom: 0.8rem; }
.footer-tagline { color: var(--mint-bright); font-weight: 600; font-size: 0.85rem; }
.footer-col h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.9rem; }
.footer-col a { display: block; color: #B9C3D0; font-size: 0.88rem; margin-bottom: 0.6rem; }
.footer-col a:hover { color: var(--mint-bright); }
.footer-legal { padding-top: 1.5rem; font-size: 0.76rem; color: #7C8AA0; }
.footer-copyright { margin-top: 1rem; margin-bottom: 0; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
