/*
 Theme Name:   SynproLabs
 Description:  Custom WooCommerce theme for SynproLabs peptide research products
 Version:      1.0.1
 Author:       SynproLabs
 Text Domain:  synprolabs
 Requires at least: 6.0
 Tested up to: 6.7
 Requires PHP: 7.4
*/

/* ============================================================
   CSS CUSTOM PROPERTIES — SYNPROLABS DESIGN SYSTEM
   ============================================================ */
:root {
  /* Core palette */
  --sl-navy: #1B3A5C;
  --sl-navy-dark: #1B3A5C;
  --sl-accent: #2E75B6;
  --sl-primary: #1A56A0;
  --sl-primary-hover: #16468A;
  --sl-cta: var(--sl-primary);
  --sl-body-text: #1B3A5C;
  --sl-light-bg: #F0F4F8;
  --sl-dark-section: #F0F4F8;
  --sl-coa-bg: #F0F4F8;
  --sl-border: #D8E4EF;
  --sl-light-body: #FFFFFF;
  --sl-muted: #5A6A7A;
  --sl-card-bg: #FFFFFF;
  --sl-white: #FFFFFF;
  --sl-accent-text: #1F5E97;
  --sl-accent-on-navy: #AED2F2; /* accent TEXT on navy surfaces (footer, ticker) - --sl-accent fails AA there (2.40:1) */
  --sl-navy-hover: #14293F;
  --sl-error: #C1121F;
  --sl-error-bg: #FDECEC;
  --sl-success: #1E7A46;
  --sl-warning: #A15A00;

  /* Typography */
  --sl-font-heading: 'Outfit', sans-serif;
  --sl-font-body: 'Inter', sans-serif;

  /* Spacing */
  --sl-radius: 8px;
  --sl-container: 1600px;
  --sl-container-padding: 2rem;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sl-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--sl-body-text);
  background: var(--sl-card-bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sl-font-heading);
  line-height: 1.15;
  font-weight: 700;
}

/* ============================================================
   CONTAINER
   ============================================================ */
.sl-container {
  max-width: var(--sl-container);
  margin: 0 auto;
  padding: 0 var(--sl-container-padding);
}
@media (max-width: 479px) {
  .sl-container {
    padding: 0 1.25rem;
  }
}

@media (min-width: 1024px) {
  .sl-container {
    padding: 0 2rem;
  }
}
@media (min-width: 1280px) {
  .sl-container {
    padding: 0 3rem;
  }
}
@media (min-width: 1600px) {
  .sl-container {
    padding: 0 4rem;
  }
}

/* Ultra-wide cap — prevent sprawl on 2560+ monitors */
@media (min-width: 2000px) {
  .sl-container {
    max-width: 1800px;
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-cta {
  display: inline-block;
  background: var(--sl-cta);
  color: var(--sl-white);
  font-family: var(--sl-font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--sl-radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  text-align: center;
  line-height: 1.4;
}
.btn-cta:hover {
  background: var(--sl-primary-hover);
  box-shadow: 0 4px 16px rgba(26, 86, 160, 0.3);
  color: var(--sl-white);
}

.btn-navy {
  display: inline-block;
  background: var(--sl-primary);
  color: var(--sl-white);
  font-family: var(--sl-font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--sl-radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  text-align: center;
  line-height: 1.4;
}
.btn-navy:hover {
  background: var(--sl-primary-hover);
  box-shadow: 0 4px 16px rgba(26, 86, 160, 0.3);
  color: var(--sl-white);
}

.btn-outline-white {
  display: inline-block;
  background: transparent;
  color: var(--sl-light-body);
  font-family: var(--sl-font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--sl-radius);
  border: 2px solid var(--sl-light-body);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-align: center;
  line-height: 1.4;
}
.btn-outline-white:hover {
  background: var(--sl-white);
  color: var(--sl-navy);
}

.btn-outline-navy {
  display: inline-block;
  background: transparent;
  color: var(--sl-primary);
  font-family: var(--sl-font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--sl-radius);
  border: 1.5px solid var(--sl-primary);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  line-height: 1.4;
}
.btn-outline-navy:hover {
  background: var(--sl-primary);
  color: var(--sl-white);
}

/* ============================================================
   HEADER
   ============================================================ */
.sl-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--sl-white);
  border-bottom: 1px solid var(--sl-border);
  transition: background 0.3s, box-shadow 0.3s;
}
.sl-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(27, 58, 92, 0.08);
}

.sl-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
@media (min-width: 1280px) {
  .sl-header-inner {
    height: 72px;
  }
}

.sl-logo img {
  height: 32px;
}

.sl-nav {
  display: none;
  align-items: center;
  gap: 2.5rem; /* 4 links only since the 2026-07-14 lean nav, so they get room to breathe */
}
@media (min-width: 1280px) {
  .sl-nav { gap: 3rem; }
}
@media (min-width: 768px) {
  .sl-nav {
    display: flex;
  }
}

.sl-nav a {
  font-size: 0.9375rem; /* 15px, matches the button/label scale */
  font-weight: 500;
  color: var(--sl-navy); /* --sl-accent is graphics-only (4.38:1 as text); navy is 11.63:1 and lets the --sl-cta hover read */
  transition: color 0.2s;
}
.sl-nav a:hover,
.sl-nav a.active {
  color: var(--sl-cta);
}

.sl-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sl-header-actions button,
.sl-header-actions a {
  background: none;
  border: none;
  color: var(--sl-navy);
  cursor: pointer;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 44px;
  min-height: 44px;
}
.sl-header-actions button:hover,
.sl-header-actions a:hover {
  color: var(--sl-accent);
}

.sl-cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--sl-cta);
  color: var(--sl-white);
  font-size: 10px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.sl-mobile-toggle {
  display: flex;
}
@media (min-width: 768px) {
  .sl-mobile-toggle {
    display: none;
  }
}

/* Mobile menu */
.sl-mobile-menu {
  display: none;
  background: var(--sl-white);
  border-top: 1px solid var(--sl-border);
  padding: 0.5rem 1rem 1rem;
}
.sl-mobile-menu.open {
  display: block;
}
.sl-mobile-menu a {
  display: block;
  padding: 0.875rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sl-accent);
  transition: color 0.2s;
  min-height: 44px;
}
.sl-mobile-menu a:hover {
  color: var(--sl-cta);
}

/* Search overlay */
.sl-search-overlay {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--sl-white);
  border-top: 1px solid var(--sl-border);
  box-shadow: 0 8px 32px rgba(27, 58, 92, 0.1);
  padding: 1rem;
  z-index: 60;
}
@media (min-width: 1280px) {
  .sl-search-overlay {
    top: 72px;
  }
}
.sl-search-overlay.open {
  display: block;
}
.sl-search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border-radius: var(--sl-radius);
  background: var(--sl-light-bg);
  border: 1px solid var(--sl-border);
  color: var(--sl-navy);
  font-size: 0.875rem;
  font-family: var(--sl-font-body);
  outline: none;
}
.sl-search-input::placeholder {
  color: var(--sl-muted);
}
.sl-search-input:focus {
  border-color: var(--sl-accent);
  box-shadow: 0 0 0 2px rgba(46, 117, 182, 0.2);
}

/* ============================================================
   FOOTER
   ============================================================ */
.sl-footer {
  background: var(--sl-navy-dark);
  color: var(--sl-light-body);
}
.sl-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 4rem 0;
}
@media (min-width: 768px) {
  .sl-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .sl-footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  }
}

.sl-footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.sl-footer h4 {
  font-family: var(--sl-font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sl-white);
  margin-bottom: 1rem;
}

.sl-footer ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sl-footer ul a,
.sl-footer ul span {
  font-size: 0.875rem;
  color: var(--sl-light-body);
  transition: color 0.2s;
}
.sl-footer ul a:hover {
  color: var(--sl-accent-on-navy);
}

.sl-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section-dark {
  background: var(--sl-light-bg);
  color: var(--sl-body-text);
}
.section-light {
  background: var(--sl-light-bg);
  color: var(--sl-body-text);
}
.section-white {
  background: var(--sl-card-bg);
  color: var(--sl-body-text);
}
.section-coa {
  background: var(--sl-coa-bg);
  color: var(--sl-body-text);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.sl-hero {
  padding: 5rem 0 5rem;
}
@media (min-width: 1024px) {
  .sl-hero {
    padding: 7rem 0;
  }
}
@media (min-width: 1280px) {
  .sl-hero {
    padding: 8rem 0;
  }
}
.sl-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .sl-hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1280px) {
  .sl-hero-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
  }
}

.sl-hero h1 {
  font-size: 2.125rem; /* spec: 34px mobile */
  line-height: 1.1;
  color: var(--sl-navy);
  margin-bottom: 1rem;
}
@media (min-width: 640px) {
  .sl-hero h1 { font-size: 2.25rem; }
}
@media (min-width: 768px) {
  .sl-hero h1 { font-size: 2.75rem; }
}
@media (min-width: 1024px) {
  .sl-hero h1 { font-size: 3.25rem; }
}
@media (min-width: 1280px) {
  .sl-hero h1 { font-size: 3.5rem; }
}
@media (min-width: 1600px) {
  .sl-hero h1 { font-size: 3.5rem; } /* spec caps the hero at 56px */
}

.sl-hero .sl-hero-subtitle {
  color: var(--sl-accent-text);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1.25rem;
  max-width: 32rem;
}
@media (min-width: 640px) {
  .sl-hero .sl-hero-subtitle { font-size: 1.125rem; }
}
@media (min-width: 1280px) {
  .sl-hero .sl-hero-subtitle {
    max-width: 38rem;
    font-size: 1.1875rem;
  }
}

.sl-hero .sl-hero-text {
  color: var(--sl-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 32rem;
  font-size: 0.875rem;
}
@media (min-width: 640px) {
  .sl-hero .sl-hero-text { font-size: 1rem; }
}
@media (min-width: 1280px) {
  .sl-hero .sl-hero-text {
    max-width: 38rem;
  }
}

.sl-hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .sl-hero-buttons {
    flex-direction: row;
  }
}

.sl-hero-image img {
  border-radius: var(--sl-radius);
  box-shadow: 0 8px 32px rgba(27, 58, 92, 0.15);
  width: 100%;
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.sl-trust-bar {
  padding: 3.5rem 0;
}
.sl-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}
@media (min-width: 768px) {
  .sl-trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.sl-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.sl-trust-item svg {
  width: 28px;
  height: 28px;
  color: var(--sl-navy);
  stroke-width: 1.5;
}
.sl-trust-item .trust-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sl-body-text);
}
.sl-trust-item .trust-desc {
  font-size: 0.75rem;
  color: var(--sl-muted);
}

.sl-trust-tagline {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sl-accent-text);
  letter-spacing: 0.15em;
  font-style: italic;
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.sl-products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .sl-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .sl-products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 1280px) {
  .sl-products-grid {
    gap: 2rem;
  }
}
.sl-products-grid.three-col {
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .sl-products-grid.three-col {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .sl-products-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1280px) {
  .sl-products-grid.three-col {
    gap: 2rem;
  }
}

.sl-product-card {
  display: block;
  border-radius: var(--sl-radius);
  overflow: hidden;
  background: var(--sl-light-bg);
  border: 1px solid var(--sl-border);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
}
.sl-product-card-image {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--sl-light-bg);
  position: relative;
}
.sl-product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.sl-product-card:hover .sl-product-card-image img {
  transform: scale(1.05);
}
.sl-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(27, 58, 92, 0.1);
}

.sl-product-card-top {
  background: var(--sl-light-bg);
  padding: 1.5rem;
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.sl-product-card-top h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--sl-navy);
}
.sl-product-card-top .purity-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sl-accent);
  white-space: nowrap;
  flex-shrink: 0;
}
.sl-product-card-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  background: var(--sl-cta);
  color: var(--sl-white);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
}
.sl-product-card-badge.sale {
  background: #C0392B;
}
.sl-product-card-footer .product-price del {
  color: var(--sl-muted);
  font-weight: 400;
  font-size: 0.82em;
  margin-right: 5px;
  text-decoration: line-through;
}
/* Bulk per-unit price shown in red once the cart qty reaches the tier minimum */
.sl-product-card-footer .product-price .sl-bulk-ea {
  color: #C0392B;
  font-weight: 700;
}

.sl-product-card-bottom {
  background: var(--sl-card-bg);
  padding: 1.25rem;
}
.sl-product-card-bottom .product-desc {
  font-size: 0.875rem;
  color: var(--sl-muted);
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sl-product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sl-product-card-footer .product-price {
  font-family: var(--sl-font-heading);
  font-weight: 700;
  color: var(--sl-body-text);
}
.sl-product-card-footer .view-btn {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sl-navy);
  border: 1px solid var(--sl-navy);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  transition: all 0.2s;
}
.sl-product-card:hover .view-btn {
  background: var(--sl-navy);
  color: var(--sl-white);
}

/* ============================================================
   BENEFITS / WHAT'S IN IT FOR YOU
   ============================================================ */
.sl-benefits {
  padding: 5rem 0;
}
.sl-benefits h2 {
  text-align: center;
  font-size: 1.5rem;
  color: var(--sl-navy);
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .sl-benefits h2 { font-size: 1.875rem; }
}
.sl-benefits .benefits-subtitle {
  text-align: center;
  color: var(--sl-muted);
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
}
.sl-benefits-list {
  width: fit-content;
  max-width: 36rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.sl-benefit-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.sl-benefit-item svg {
  width: 20px;
  height: 20px;
  color: var(--sl-accent);
  flex-shrink: 0;
}
.sl-benefit-item span {
  color: var(--sl-muted);
  font-size: 1rem;
}

/* ============================================================
   COA STRIP
   ============================================================ */
.sl-coa {
  padding: 5rem 0;
  text-align: center;
}
.sl-coa h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .sl-coa h2 { font-size: 1.875rem; }
}
.sl-coa p {
  color: var(--sl-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   EMAIL SIGNUP
   ============================================================ */
.sl-email-signup {
  padding: 5rem 0;
  text-align: center;
}
.sl-email-signup h2 {
  font-size: 1.5rem;
  color: var(--sl-navy);
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .sl-email-signup h2 { font-size: 1.875rem; }
}
.sl-email-signup .signup-subtitle {
  color: var(--sl-muted);
  margin-bottom: 1.5rem;
}
.sl-email-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 28rem;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .sl-email-form {
    flex-direction: row;
  }
}
.sl-email-form input[type="email"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  background: var(--sl-white);
  border: 1px solid var(--sl-border);
  color: var(--sl-navy);
  font-size: 0.875rem;
  font-family: var(--sl-font-body);
  outline: none;
}
.sl-email-form input[type="email"]::placeholder {
  color: var(--sl-muted);
}
.sl-email-form input[type="email"]:focus {
  border-color: var(--sl-accent);
  box-shadow: 0 0 0 2px rgba(46, 117, 182, 0.2);
}
.sl-email-note {
  font-size: 0.75rem;
  color: var(--sl-muted);
  margin-top: 0.75rem;
}

/* ============================================================
   RESEARCH NOTICE
   ============================================================ */
.sl-notice {
  padding: 3.5rem 0;
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
}
.sl-notice h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}
.sl-notice h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.sl-notice p {
  font-size: 0.75rem;
  color: var(--sl-muted);
  line-height: 1.7;
}

/* ============================================================
   AGE GATE
   ============================================================ */
.sl-age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--sl-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.sl-age-gate-inner {
  text-align: center;
  max-width: 28rem;
}
.sl-age-gate-inner img {
  height: 48px;
  margin: 0 auto 1.5rem;
  filter: brightness(0) invert(1);
}
.sl-age-gate-inner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.sl-age-gate-inner p:last-of-type {
  margin-bottom: 2rem;
}
.sl-age-gate-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
}
@media (min-width: 640px) {
  .sl-age-gate-buttons {
    flex-direction: row;
  }
}

/* Hide body overflow when age gate is active */
body.age-gate-active {
  overflow: hidden;
}

/* ============================================================
   PAGE TEMPLATES — ABOUT
   ============================================================ */
.sl-about-hero {
  padding: 5rem 0 5rem;
  text-align: center;
}
@media (min-width: 1024px) {
  .sl-about-hero { padding: 7rem 0; }
}
.sl-about-hero h1 {
  font-size: 1.875rem;
  color: var(--sl-navy);
  margin-bottom: 1.25rem;
}
@media (min-width: 768px) {
  .sl-about-hero h1 { font-size: 2.5rem; }
}
@media (min-width: 1024px) {
  .sl-about-hero h1 { font-size: 3rem; }
}
@media (min-width: 1280px) {
  .sl-about-hero h1 { font-size: 3.25rem; }
}
.sl-about-hero h2 {
  font-size: 1.25rem;
  color: var(--sl-accent);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
@media (min-width: 768px) {
  .sl-about-hero h2 { font-size: 1.5rem; }
}
.sl-about-hero p {
  color: var(--sl-muted);
  line-height: 1.7;
  max-width: 52rem;
  margin: 0 auto;
}

.sl-about-body {
  padding: 5rem 0;
}
.sl-about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .sl-about-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.sl-about-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.sl-about-text p {
  font-size: 0.875rem;
  color: var(--sl-muted);
  line-height: 1.7;
}
.sl-about-text p.closing {
  font-weight: 500;
  color: var(--sl-body-text);
}
.sl-about-image img {
  border-radius: var(--sl-radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  width: 100%;
}

/* CTA strip */
.sl-cta-strip {
  padding: 4rem 0;
  text-align: center;
}
.sl-cta-strip h2 {
  font-size: 1.5rem;
  color: var(--sl-navy);
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) {
  .sl-cta-strip h2 { font-size: 1.875rem; }
}
.sl-cta-strip p {
  color: var(--sl-muted);
  margin-bottom: 2rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

/* Commitment section */
.sl-commitment {
  padding: 5rem 0;
}
.sl-commitment h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) {
  .sl-commitment h2 { font-size: 1.875rem; }
}
.sl-commitment .commitment-intro {
  text-align: center;
  color: var(--sl-muted);
  max-width: 40rem;
  margin: 0 auto 3rem;
}
.sl-commitment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .sl-commitment-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.sl-commitment-item {
  text-align: center;
}
.sl-commitment-item svg {
  width: 32px;
  height: 32px;
  color: var(--sl-navy);
  margin: 0 auto 1rem;
  stroke-width: 1.5;
}
.sl-commitment-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.sl-commitment-item p {
  font-size: 0.875rem;
  color: var(--sl-muted);
  line-height: 1.7;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.sl-contact-hero {
  padding: 5rem 0;
  text-align: center;
}
.sl-contact-hero h1 {
  font-size: 1.875rem;
  color: var(--sl-navy);
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .sl-contact-hero h1 { font-size: 2.5rem; }
}
.sl-contact-hero p {
  color: var(--sl-muted);
  max-width: 40rem;
  margin: 0 auto;
}

.sl-contact-body {
  padding: 4rem 0;
}
.sl-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  max-width: 56rem;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .sl-contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.sl-contact-form h2,
.sl-contact-info h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.sl-contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.sl-contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 480px) {
  .sl-contact-form .form-row {
    grid-template-columns: 1fr 1fr;
  }
}
.sl-contact-form input,
.sl-contact-form select,
.sl-contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--sl-border);
  background: var(--sl-card-bg);
  color: var(--sl-body-text);
  font-size: 0.875rem;
  font-family: var(--sl-font-body);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sl-contact-form input:focus,
.sl-contact-form select:focus,
.sl-contact-form textarea:focus {
  border-color: var(--sl-accent);
  box-shadow: 0 0 0 2px rgba(46, 117, 182, 0.2);
}
.sl-contact-form textarea {
  resize: none;
  min-height: 140px;
}

.sl-contact-info-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.sl-contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.sl-contact-info-item svg {
  width: 20px;
  height: 20px;
  color: var(--sl-navy);
  flex-shrink: 0;
  margin-top: 2px;
  stroke-width: 1.5;
}
.sl-contact-info-item .info-label {
  font-size: 0.875rem;
  font-weight: 500;
}
.sl-contact-info-item .info-sub {
  font-size: 0.75rem;
  color: var(--sl-muted);
}
.sl-contact-note {
  font-size: 0.75rem;
  color: var(--sl-muted);
  margin-top: 1rem;
}

/* ============================================================
   FAQ PAGE
   ============================================================ */
.sl-faq-section {
  padding: 4rem 0;
  max-width: 48rem;
  margin: 0 auto;
}
.sl-faq-section > h1 {
  font-size: 1.875rem;
  text-align: center;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .sl-faq-section > h1 { font-size: 2.5rem; }
}
.sl-faq-section > .faq-intro {
  text-align: center;
  color: var(--sl-muted);
  margin-bottom: 3.5rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.sl-faq-group {
  margin-bottom: 2.5rem;
}
.sl-faq-group h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--sl-navy);
  margin-bottom: 1rem;
}

.sl-faq-item {
  border-bottom: 1px solid var(--sl-border);
}
.sl-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 0;
  min-height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--sl-font-body);
}
.sl-faq-question span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sl-body-text);
  padding-right: 1rem;
  transition: color 0.2s;
}
.sl-faq-question:hover span {
  color: var(--sl-navy);
}
.sl-faq-question .faq-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--sl-muted);
  transition: color 0.2s;
}
.sl-faq-item.open .sl-faq-question span {
  color: var(--sl-navy);
}
.sl-faq-item.open .sl-faq-question .faq-icon {
  color: var(--sl-navy);
}

.sl-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.sl-faq-item.open .sl-faq-answer {
  max-height: 600px;
  padding-bottom: 1.25rem;
}
.sl-faq-answer p {
  font-size: 0.875rem;
  color: var(--sl-muted);
  line-height: 1.7;
  padding-right: 2rem;
}

/* ============================================================
   REFUNDS PAGE
   ============================================================ */
.sl-refunds-hero {
  padding: 5rem 0;
  text-align: center;
}
@media (min-width: 1024px) {
  .sl-refunds-hero { padding: 7rem 0; }
}
.sl-refunds-hero h1 {
  font-size: 1.875rem;
  color: var(--sl-navy);
  margin-bottom: 1.25rem;
}
@media (min-width: 768px) {
  .sl-refunds-hero h1 { font-size: 2.5rem; }
}
@media (min-width: 1024px) {
  .sl-refunds-hero h1 { font-size: 2.5rem; }
}
.sl-refunds-hero h2 {
  font-size: 1.25rem;
  color: var(--sl-accent);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.sl-refunds-hero p {
  color: var(--sl-muted);
  line-height: 1.7;
  max-width: 48rem;
  margin: 0 auto;
}

.sl-refunds-section {
  padding: 5rem 0;
  max-width: 48rem;
  margin: 0 auto;
}
.sl-refunds-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.sl-refunds-heading svg {
  width: 28px;
  height: 28px;
  color: var(--sl-navy);
  stroke-width: 1.5;
}
.sl-refunds-heading h2 {
  font-size: 1.5rem;
  font-weight: 700;
}
.sl-refunds-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.sl-refunds-content p {
  font-size: 0.875rem;
  color: var(--sl-muted);
  line-height: 1.7;
}
.sl-refunds-content strong {
  color: var(--sl-body-text);
}

.sl-info-box {
  background: var(--sl-light-bg);
  border-radius: var(--sl-radius);
  padding: 1.5rem;
  margin-top: 0.5rem;
}
.sl-info-box h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.sl-info-box p {
  font-size: 0.875rem;
  color: var(--sl-muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.sl-info-box p:last-child {
  margin-bottom: 0;
}
.sl-info-box ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sl-info-box li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--sl-muted);
  line-height: 1.7;
}
.sl-info-box li .bullet {
  color: var(--sl-accent);
  margin-top: 2px;
  flex-shrink: 0;
}

/* ============================================================
   WOOCOMMERCE — SHOP PAGE
   ============================================================ */
.sl-shop-header {
  text-align: center;
  margin-bottom: 3rem;
}
.sl-shop-header h1 {
  font-size: 1.875rem;
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) {
  .sl-shop-header h1 { font-size: 2.5rem; }
}
.sl-shop-header p {
  color: var(--sl-muted);
  max-width: 32rem;
  margin: 0 auto;
}

.sl-shop-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}
@media (min-width: 640px) {
  .sl-shop-controls {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.sl-category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.sl-category-filters a {
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  background: var(--sl-light-bg);
  color: var(--sl-body-text);
}
.sl-category-filters a:hover {
  background: rgba(27, 58, 92, 0.06);
}
.sl-category-filters a.active {
  background: var(--sl-navy);
  color: var(--sl-white);
}

.sl-sort-select {
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--sl-border);
  background: var(--sl-card-bg);
  font-size: 0.875rem;
  color: var(--sl-body-text);
  font-family: var(--sl-font-body);
  outline: none;
}
.sl-sort-select:focus {
  border-color: var(--sl-accent);
  box-shadow: 0 0 0 2px rgba(46, 117, 182, 0.2);
}

/* ============================================================
   WOOCOMMERCE — SINGLE PRODUCT
   ============================================================ */
.sl-single-product {
  padding: 4rem 0;
}
.sl-single-product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: flex-start;
}
@media (min-width: 1024px) {
  .sl-single-product-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1280px) {
  .sl-single-product-grid {
    gap: 4rem;
  }
}

.sl-product-gallery .main-image {
  border-radius: var(--sl-radius);
  overflow: hidden;
  background: var(--sl-light-bg);
  position: relative;
}
.sl-product-gallery .main-image img {
  width: 100%;
}
.sl-zoom-hint {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sl-navy);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: opacity 0.2s;
}
.sl-product-gallery .main-image:hover .sl-zoom-hint {
  opacity: 0.7;
}
.sl-product-thumbnails {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.sl-product-thumbnails .thumb {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  background: var(--sl-light-bg);
  border: 1px solid var(--sl-border);
  overflow: hidden;
  cursor: pointer;
}
.sl-product-thumbnails .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.sl-product-info h1 {
  font-size: 1.875rem;
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) {
  .sl-product-info h1 { font-size: 2.5rem; }
}
.sl-product-purity-tag {
  display: inline-block;
  background: rgba(46, 117, 182, 0.1);
  color: var(--sl-accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}
.sl-product-price {
  font-family: var(--sl-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.sl-size-selector {
  margin-bottom: 1.25rem;
}
.sl-size-selector label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.sl-size-options {
  display: flex;
  gap: 0.5rem;
}
.sl-size-options button {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--sl-border);
  background: var(--sl-card-bg);
  color: var(--sl-body-text);
  cursor: pointer;
  transition: all 0.2s;
}
.sl-size-options button.active,
.sl-size-options button:hover {
  background: var(--sl-navy);
  color: var(--sl-white);
  border-color: var(--sl-navy);
}

.sl-qty-selector {
  margin-bottom: 1.5rem;
}
.sl-qty-selector label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.sl-qty-wrap {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--sl-border);
  border-radius: 6px;
}
.sl-qty-wrap button {
  padding: 0.5rem 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--sl-body-text);
  transition: background 0.2s;
}
.sl-qty-wrap button:hover {
  background: var(--sl-light-bg);
}
.sl-qty-wrap .qty {
  width: 48px;
  text-align: center;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--sl-font-body);
  background: transparent;
  -moz-appearance: textfield;
}
.sl-qty-wrap .qty::-webkit-inner-spin-button,
.sl-qty-wrap .qty::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.sl-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.sl-product-trust {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--sl-muted);
}
.sl-product-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sl-product-trust-item svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.5;
}

/* Product Tabs */
.sl-product-tabs {
  margin-top: 4rem;
}
.sl-tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--sl-border);
}
.sl-tab-btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--sl-font-body);
  color: var(--sl-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.sl-tab-btn:hover {
  color: var(--sl-body-text);
}
.sl-tab-btn.active {
  color: var(--sl-navy);
  border-bottom-color: var(--sl-navy);
}
.sl-tab-content {
  padding: 2rem 0;
  max-width: 48rem;
}
.sl-tab-panel {
  display: none;
}
.sl-tab-panel.active {
  display: block;
}
.sl-tab-panel p {
  font-size: 0.875rem;
  color: var(--sl-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.sl-tab-panel strong {
  color: var(--sl-body-text);
}

/* Product description — restructured hierarchy: description prominent, compliance quiet */
.sl-pd-lead {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--sl-navy);
  margin: 0 0 1.5rem;
}
.sl-pd-facts {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 10px;
}
.sl-pd-facts li {
  position: relative;
  padding-left: 24px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--sl-body-text);
}
.sl-pd-facts li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sl-accent);
}
.sl-pd-compliance {
  background: var(--sl-light-bg);
  border: 1px solid var(--sl-border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 1.5rem;
}
.sl-pd-compliance .sl-pd-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sl-muted);
  margin: 0 0 12px;
}
.sl-pd-compliance p {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--sl-muted);
  margin: 0 0 10px;
}
.sl-pd-compliance p:last-child {
  margin-bottom: 0;
}
.sl-pd-compliance .sl-pd-warn {
  font-weight: 600;
  color: var(--sl-navy);
}
.sl-pd-compliance strong {
  color: #55636f;
  font-weight: 600;
}

/* Related Products */
.sl-related-products {
  margin-top: 4rem;
}
.sl-related-products h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* ============================================================
   WOOCOMMERCE — CART
   ============================================================ */
.sl-cart-page {
  padding: 4rem 0;
  min-height: 60vh;
}
.sl-cart-page h1 {
  font-size: 1.875rem;
  margin-bottom: 2rem;
}

/* Style WooCommerce cart table */
.woocommerce-cart-form {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.woocommerce table.shop_table {
  width: 100%;
  border-collapse: collapse;
  border: none;
  min-width: 600px;
}
.woocommerce table.shop_table th {
  font-family: var(--sl-font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sl-muted);
  border-bottom: 2px solid var(--sl-border);
  padding: 0.75rem 1rem;
  text-align: left;
}
.woocommerce table.shop_table td {
  padding: 1rem;
  border-bottom: 1px solid var(--sl-border);
  vertical-align: middle;
  font-size: 0.875rem;
}
.woocommerce table.shop_table .product-name a {
  color: var(--sl-navy);
  font-weight: 600;
  transition: color 0.2s;
}
.woocommerce table.shop_table .product-name a:hover {
  color: var(--sl-accent);
}
.woocommerce table.shop_table .product-thumbnail img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
}

.woocommerce .cart-collaterals .cart_totals {
  max-width: 480px;
  margin-left: auto;
  margin-top: 2rem;
}
.woocommerce .cart-collaterals .cart_totals h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.woocommerce .checkout-button,
.woocommerce .wc-proceed-to-checkout .checkout-button {
  background: var(--sl-cta) !important;
  color: var(--sl-white) !important;
  border: none !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  padding: 0.75rem 1.75rem !important;
  font-size: 0.9375rem !important;
  width: 100%;
  text-align: center;
  transition: filter 0.2s !important;
}
.woocommerce .checkout-button:hover {
  filter: brightness(1.1) !important;
}

/* ============================================================
   WOOCOMMERCE — CHECKOUT
   ============================================================ */
.sl-checkout-page {
  padding: 4rem 0;
  min-height: 60vh;
}
.sl-checkout-page h1 {
  font-size: 1.875rem;
  margin-bottom: 2rem;
}

.woocommerce form .form-row label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sl-body-text);
  margin-bottom: 0.25rem;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--sl-border);
  font-size: 0.875rem;
  font-family: var(--sl-font-body);
  outline: none;
  transition: border-color 0.2s;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus {
  border-color: var(--sl-accent);
  box-shadow: 0 0 0 2px rgba(46, 117, 182, 0.2);
}

.woocommerce #place_order {
  background: var(--sl-cta) !important;
  color: var(--sl-white) !important;
  border: none !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  padding: 0.875rem 2rem !important;
  font-size: 1rem !important;
  cursor: pointer;
  transition: filter 0.2s !important;
  width: 100%;
}
.woocommerce #place_order:hover {
  filter: brightness(1.1) !important;
}

/* ============================================================
   WOOCOMMERCE — GENERAL OVERRIDES
   ============================================================ */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
  border-top-color: var(--sl-accent);
  background: var(--sl-coa-bg);
  color: var(--sl-body-text);
  border-radius: var(--sl-radius);
  padding: 1rem 1.5rem;
}
.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-info::before {
  color: var(--sl-accent);
}
.woocommerce .woocommerce-error {
  border-top-color: var(--sl-error);
}

.woocommerce .woocommerce-breadcrumb {
  font-size: 0.875rem;
  color: var(--sl-muted);
  margin-bottom: 1.5rem;
}
.woocommerce .woocommerce-breadcrumb a {
  color: var(--sl-accent);
}

.woocommerce .button,
.woocommerce button.button {
  background: var(--sl-navy);
  color: var(--sl-white);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-family: var(--sl-font-body);
  cursor: pointer;
  transition: filter 0.2s;
}
.woocommerce .button:hover,
.woocommerce button.button:hover {
  filter: brightness(1.2);
  color: var(--sl-white);
}

.woocommerce .quantity .qty {
  width: 60px;
  padding: 0.5rem;
  border: 1px solid var(--sl-border);
  border-radius: 6px;
  text-align: center;
  font-family: var(--sl-font-body);
}

.woocommerce-pagination {
  margin-top: 2rem;
  text-align: center;
}
.woocommerce-pagination .page-numbers {
  display: inline-flex;
  gap: 0.25rem;
}
.woocommerce-pagination .page-numbers li a,
.woocommerce-pagination .page-numbers li span {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  color: var(--sl-body-text);
  transition: all 0.2s;
}
.woocommerce-pagination .page-numbers li span.current {
  background: var(--sl-navy);
  color: var(--sl-white);
}
.woocommerce-pagination .page-numbers li a:hover {
  background: var(--sl-light-bg);
}

/* Remove default WooCommerce star ratings styling conflicts */
.woocommerce .star-rating {
  color: var(--sl-accent);
}

/* Empty cart */
.sl-empty-cart {
  text-align: center;
  padding: 4rem 0;
}
.sl-empty-cart p {
  font-size: 1.125rem;
  color: var(--sl-muted);
  margin-bottom: 2rem;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.mt-16 { margin-top: 4rem; }

/* Body padding for fixed header */
body {
  padding-top: 64px;
}
@media (min-width: 1280px) {
  body {
    padding-top: 72px;
  }
}

/* ============================================================
   WOOCOMMERCE REMOVE BUTTON
   ============================================================ */
.woocommerce a.remove {
  color: var(--sl-error) !important;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}
.woocommerce a.remove:hover {
  background: var(--sl-error) !important;
  color: var(--sl-white) !important;
}

/* ============================================================
   WOOCOMMERCE WIDGETS / SIDEBAR
   ============================================================ */
.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content {
  background: var(--sl-border);
}
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle {
  background: var(--sl-accent);
  border-color: var(--sl-accent);
}
.woocommerce .widget_price_filter .ui-slider .ui-slider-range {
  background: var(--sl-accent);
}
/* === Shop grid Add to Cart + Stepper layout === */
/* Higher-specificity selectors and grid layout to guarantee the buttons
   stay side by side at every card width, overriding any theme rules. */

.sl-products-grid.sl-shop-grid .sl-product-card .sl-product-card-footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem;
}
.sl-products-grid.sl-shop-grid .sl-product-card .sl-product-card-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    align-items: stretch;
}

/* The right grid cell holds Add to Cart OR the stepper, not both */
.sl-products-grid.sl-shop-grid .sl-product-card-actions .sl-add-cart-wrap,
.sl-products-grid.sl-shop-grid .sl-product-card-actions .sl-qty-stepper {
    grid-column: 2;
    grid-row: 1;
}
.sl-products-grid.sl-shop-grid .sl-product-card-actions .view-btn {
    grid-column: 1;
    grid-row: 1;
}

.sl-products-grid.sl-shop-grid .sl-product-card-actions .view-btn,
.sl-products-grid.sl-shop-grid .sl-product-card-actions .add_to_cart_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
    border-radius: var(--sl-radius);
    text-decoration: none;
    box-sizing: border-box;
    width: 100%;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

/* View Product / View Cart = outline navy */
.sl-products-grid.sl-shop-grid .sl-product-card-actions .view-btn {
    background: transparent;
    color: #1B3A5C;
    border: 1px solid #1B3A5C;
}
.sl-products-grid.sl-shop-grid .sl-product-card-actions .view-btn:hover {
    background: #1B3A5C;
    color: #fff;
}

/* Add to Cart = solid navy */
.sl-products-grid.sl-shop-grid .sl-product-card-actions .add_to_cart_button {
    background: var(--sl-primary);
    color: #fff;
    border: 1px solid var(--sl-primary);
}
.sl-products-grid.sl-shop-grid .sl-product-card-actions .add_to_cart_button:hover {
    background: var(--sl-primary-hover);
    border-color: var(--sl-primary-hover);
    color: #fff;
}
.sl-products-grid.sl-shop-grid .sl-product-card-actions .add_to_cart_button.loading {
    opacity: 0.7;
}

/* Default visibility: show Add to Cart, hide stepper */
.sl-products-grid.sl-shop-grid .sl-product-card-actions .sl-qty-stepper {
    display: none;
}

/* In-cart state: hide Add to Cart, show stepper in the same slot */
.sl-products-grid.sl-shop-grid .sl-product-card-actions.is-in-cart .sl-add-cart-wrap {
    display: none;
}
.sl-products-grid.sl-shop-grid .sl-product-card-actions.is-in-cart .sl-qty-stepper {
    display: flex;
    align-items: stretch;
    border: 1px solid #1B3A5C;
    border-radius: 6px;
    overflow: hidden;
    width: 100%;
}

/* Once in the cart, promote "View Cart" from outline to a solid, prominent
   button so the path to checkout is the clear next step (stepper stays beside it). */
.sl-products-grid.sl-shop-grid .sl-product-card-actions.is-in-cart .view-btn {
    background: #1B3A5C;
    color: #fff;
    border-color: #1B3A5C;
}
.sl-products-grid.sl-shop-grid .sl-product-card-actions.is-in-cart .view-btn:hover {
    background: var(--sl-navy-hover, #16324f);
    border-color: var(--sl-navy-hover, #16324f);
    color: #fff;
}

/* Stepper internals */
.sl-products-grid.sl-shop-grid .sl-qty-stepper button {
    background: #1B3A5C;
    color: #fff;
    border: none;
    padding: 0 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease;
}
.sl-products-grid.sl-shop-grid .sl-qty-stepper button:hover {
    background: var(--sl-navy-hover);
}
.sl-products-grid.sl-shop-grid .sl-qty-stepper .sl-qty-value {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: 0 0.25rem;
    color: #1B3A5C;
    font-weight: 600;
    background: #fff;
    font-size: 0.9rem;
}
.sl-products-grid.sl-shop-grid .sl-qty-stepper.is-busy {
    opacity: 0.6;
    pointer-events: none;
}

/* Hide WC's "View cart" link; the stepper + relabeled left button replace it */
.sl-products-grid.sl-shop-grid .sl-product-card-footer .added_to_cart {
    display: none;
}
/* Keep the tinted title section consistent across cards. Let the white
   bottom section absorb extra height when descriptions are short. */
.sl-products-grid.sl-shop-grid .sl-product-card {
    display: flex;
    flex-direction: column;
}
.sl-products-grid.sl-shop-grid .sl-product-card-top {
    flex: 0 0 auto;
}
.sl-products-grid.sl-shop-grid .sl-product-card-bottom {
    flex: 1 1 auto;
}

/* === Compact shop tiles: fit more products per screen === */
/* Columns: 2-up phones, 3-up small tablets, 4-up desktop (overrides .three-col). */
.sl-products-grid.three-col.sl-shop-grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
@media (min-width: 700px)  { .sl-products-grid.three-col.sl-shop-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 1024px) { .sl-products-grid.three-col.sl-shop-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }

/* Smaller, fully-visible vial image (contain, not a tall square crop) */
.sl-shop-grid .sl-product-card-image { aspect-ratio: auto; height: 156px; background: #fff; }
.sl-shop-grid .sl-product-card-image img { object-fit: contain; }
@media (min-width: 1024px) { .sl-shop-grid .sl-product-card-image { height: 188px; } }

/* Name over purity, no on-card blurb, tighter padding */
.sl-shop-grid .sl-product-card-top { flex-direction: column; align-items: flex-start; gap: 2px; padding: 0.7rem 0.85rem 0.4rem; }
.sl-shop-grid .sl-product-card-top h3 { font-size: 0.98rem; line-height: 1.25; }
.sl-shop-grid .sl-product-card-top .purity-badge { font-size: 0.7rem; }
.sl-shop-grid .product-desc { display: none; }
.sl-shop-grid .sl-product-card-bottom { padding: 0.5rem 0.85rem 0.85rem; }
.sl-products-grid.sl-shop-grid .sl-product-card .sl-product-card-footer { gap: 0.5rem; }
.sl-shop-grid .sl-product-card-footer .product-price { font-size: 1.02rem; }

/* Action row: one full-width Add to Cart (image + title already open the product);
   flips to View Cart + stepper once the item is in the cart. */
.sl-products-grid.sl-shop-grid .sl-product-card-actions:not(.is-in-cart) .view-btn { display: none; }
.sl-products-grid.sl-shop-grid .sl-product-card-actions:not(.is-in-cart) .sl-add-cart-wrap { grid-column: 1 / -1; }
.sl-products-grid.sl-shop-grid .sl-product-card-actions .view-btn,
.sl-products-grid.sl-shop-grid .sl-product-card-actions .add_to_cart_button { font-size: 0.82rem; padding: 0.5rem 0.6rem; }

/* === Single product page: horizontal buy row === */
/* Lay out qty input, Add to cart, and Request COA in one horizontal row. */

.sl-single-product .sl-buy-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: stretch;
    margin-top: 1rem;
}

/* WooCommerce's form holds the qty input and the Add to cart button.
   Make it lay them out horizontally so they sit next to each other. */
.sl-single-product .sl-buy-row form.cart {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    margin: 0;
    flex: 1 1 auto;
    flex-wrap: wrap;
}
.sl-single-product .sl-buy-row form.cart .quantity {
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
}
.sl-single-product .sl-buy-row form.cart .quantity input.qty {
    height: 100%;
    min-height: 44px;
    box-sizing: border-box;
}
.sl-single-product .sl-buy-row form.cart .single_add_to_cart_button {
    flex: 1 1 auto;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Request COA matches button height, sits on the same row */
.sl-single-product .sl-buy-row .sl-coa-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    min-height: 44px;
    box-sizing: border-box;
}

/* While the product grid is single-column (below the 1024px 2-col breakpoint),
   the info block is full width and the buy row reads better stacked: qty + Add to
   Cart on one line, Request COA on its own full-width line beneath. This also
   prevents Request COA from running off the edge in the 600-1023px band. */
@media (max-width: 1023px) {
    .sl-single-product .sl-buy-row .sl-coa-btn {
        flex: 1 1 100%;
    }
}

/* PDP "View Cart" — hidden until the item is in the cart, then a solid primary
   button so there's a clear path to the cart straight from the product page. */
.sl-single-product .sl-buy-row .sl-pdp-viewcart { display: none; }
.sl-single-product .sl-buy-row.is-in-cart .sl-pdp-viewcart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0 1.5rem;
    min-height: 44px;
    box-sizing: border-box;
    background: #1B3A5C;
    color: #fff;
    border: 1px solid #1B3A5C;
    border-radius: var(--sl-radius);
    font-weight: 600;
    text-decoration: none;
}
.sl-single-product .sl-buy-row.is-in-cart .sl-pdp-viewcart:hover {
    background: var(--sl-navy-hover, #16324f);
    border-color: var(--sl-navy-hover, #16324f);
    color: #fff;
}
@media (max-width: 1023px) {
    .sl-single-product .sl-buy-row.is-in-cart .sl-pdp-viewcart { flex: 1 1 100%; }
}

/* === Single product page: trust badges === */
/* Surface U.S. Shipping, Lab Tested, Discreet Packaging as clear value props
   instead of small inline text. Each item gets its own card-like container. */

.sl-single-product .sl-product-trust {
    display: grid;
    /* minmax(0,1fr) lets the three tracks shrink and the labels wrap instead of
       clipping past the edge in the 600-1023px single-column band. */
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.75rem;
}
.sl-single-product .sl-product-trust-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1rem;
    background: var(--sl-light-bg);
    border: 1px solid var(--sl-border);
    border-radius: 8px;
    color: #1B3A5C;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.25;
}
.sl-single-product .sl-product-trust-item svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    stroke: #1B3A5C;
}
.sl-single-product .sl-product-trust-item span {
    flex: 1;
}

/* Stack vertically on narrow screens so the text never gets squeezed */
@media (max-width: 600px) {
    .sl-single-product .sl-product-trust {
        grid-template-columns: 1fr;
    }
}