/*
 Theme Name:   SpeechSupplements Child
 Theme URI:    https://www.speechsupplements.com/
 Description:  Kadence child theme for SpeechSupplements.com
 Author:       SpeechSupplements
 Template:     kadence
 Version:      1.0.0
 Text Domain:  speechsupplements-child
*/

/* ============================================================
   GOOGLE FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --sage: #4a7c59;
  --sage-light: #e8f0eb;
  --sage-mid: #c2d9c9;
  --warm: #f5f1eb;
  --warm-dark: #e8e0d5;
  --amber: #d4830a;
  --amber-light: #fef3e2;
  --text: #1a1a1a;
  --text-muted: #666;
  --text-light: #999;
  --border: #e0dbd3;
  --white: #ffffff;
  --card-bg: #fdfcfa;
  --red: #c0392b;
}

/* ============================================================
   BASE / BODY
   ============================================================ */
body {
  font-family: 'DM Sans', sans-serif !important;
  background: var(--warm) !important;
  color: var(--text) !important;
  line-height: 1.6;
}

/* ============================================================
   HIDE DEFAULT KADENCE HEADER — WE USE OUR OWN
   ============================================================ */
.site-header,
.kadence-sticky-header,
#masthead {
  display: none !important;
}

/* ============================================================
   HIDE DEFAULT KADENCE FOOTER — WE USE OUR OWN
   ============================================================ */
.site-footer,
#colophon {
  display: none !important;
}

/* ============================================================
   REMOVE DEFAULT PAGE TITLE / BREADCRUMBS
   ============================================================ */
.entry-header,
.page-title,
.kadence-breadcrumbs,
.wp-block-kadence-header {
  display: none !important;
}

/* ============================================================
   CONTENT AREA — FULL WIDTH
   ============================================================ */
.site-content,
.content-area,
.entry-content,
.wp-site-blocks,
.is-root-container {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.entry-content > *:first-child {
  margin-top: 0 !important;
}

/* ============================================================
   CUSTOM NAV
   ============================================================ */
.ss-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.ss-nav-logo {
  font-family: 'Lora', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--sage);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ss-nav-logo span { color: var(--text); }

.ss-nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.ss-nav-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.ss-nav-links a:hover { color: var(--sage); }

.ss-nav-cta {
  background: var(--sage) !important;
  color: var(--white) !important;
  padding: 8px 16px !important;
  border-radius: 6px !important;
  font-size: 0.8rem !important;
  transition: background 0.2s !important;
}

.ss-nav-cta:hover { background: #3d6b4a !important; }

.ss-nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.ss-nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.2s;
}

@media (max-width: 768px) {
  .ss-nav-links { display: none; }
  .ss-nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    gap: 1rem;
    z-index: 999;
  }
  .ss-nav-hamburger { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.ss-hero {
  background: linear-gradient(135deg, #2d5a3d 0%, #4a7c59 60%, #6a9e7a 100%);
  color: white;
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ss-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
  pointer-events: none;
}

.ss-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ss-hero h1 {
  font-family: 'Lora', serif !important;
  font-size: clamp(1.8rem, 4vw, 2.8rem) !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  max-width: 680px;
  margin: 0 auto 1rem !important;
  color: white !important;
}

.ss-hero p {
  font-size: 1rem;
  opacity: 0.85;
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.ss-slp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 0.82rem;
  margin-bottom: 1.5rem;
}

.ss-hero-disclaimer {
  display: inline-block;
  font-size: 0.75rem;
  opacity: 0.65;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  padding: 8px 16px;
  max-width: 520px;
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* ============================================================
   EMAIL BAR
   ============================================================ */
.ss-email-bar {
  background: var(--amber-light);
  border-top: 1px solid #f0d9a0;
  border-bottom: 1px solid #f0d9a0;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.ss-email-bar p {
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 500;
  margin: 0;
}

.ss-email-bar p span { color: var(--amber); }

.ss-email-form {
  display: flex;
  gap: 8px;
}

.ss-email-form input {
  border: 1px solid #e0c97a;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-family: 'DM Sans', sans-serif;
  background: white;
  width: 220px;
  outline: none;
}

.ss-email-form input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(212,131,10,0.1);
}

.ss-email-form button {
  background: var(--amber);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.ss-email-form button:hover { background: #b86e07; }

/* ============================================================
   SAFETY PROTOCOL BAR
   ============================================================ */
.ss-protocol-wrap {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.ss-protocol {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.ss-protocol-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.ss-protocol-items {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.ss-protocol-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.ss-protocol-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
  flex-shrink: 0;
}

/* ============================================================
   FILTER BAR
   ============================================================ */
.ss-filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 2rem;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  position: sticky;
  top: 64px;
  z-index: 900;
}

.ss-filter-btn {
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  background: transparent;
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.15s;
}

.ss-filter-btn:hover {
  border-color: var(--sage);
  color: var(--sage);
  background: var(--sage-light);
}

.ss-filter-btn.active {
  background: var(--sage);
  color: white;
  border-color: var(--sage);
}

/* ============================================================
   MAIN CONTAINER
   ============================================================ */
.ss-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

/* ============================================================
   SECTION INTRO
   ============================================================ */
.ss-section-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.ss-section-intro h2 {
  font-family: 'Lora', serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.ss-section-intro p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================================
   GUIDE BOX / START HERE
   ============================================================ */
.ss-guide-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.ss-guide-box h3 {
  font-family: 'Lora', serif;
  font-size: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.ss-guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.ss-guide-step {
  text-align: center;
  padding: 1rem;
  background: var(--warm);
  border-radius: 8px;
}

.ss-guide-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sage);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
}

.ss-guide-step h4 {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

.ss-guide-step p {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.ss-trust-strip {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.ss-trust-item h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.ss-trust-item p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.ss-trust-icon {
  font-size: 1.4rem;
  margin-bottom: 6px;
  display: block;
}

/* ============================================================
   PRODUCTS GRID
   ============================================================ */
.ss-products-grid {
  display: grid;
  gap: 1rem;
}

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.ss-product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 1.25rem;
  align-items: start;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ss-product-card:hover {
  border-color: var(--sage-mid);
  box-shadow: 0 2px 12px rgba(74,124,89,0.08);
}

.ss-product-card.featured {
  border-color: var(--sage);
  background: white;
  grid-template-columns: 140px 1fr auto;
}

.ss-product-card.hidden {
  display: none !important;
}

.ss-product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  background: var(--sage-light);
  display: block;
}

.ss-product-card.featured .ss-product-img {
  width: 140px;
  height: 140px;
}

/* ============================================================
   PRODUCT META
   ============================================================ */
.ss-product-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ss-product-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ============================================================
   TAGS / BADGES
   ============================================================ */
.ss-tag {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 100px;
  padding: 3px 10px;
  display: inline-block;
}

.ss-tag-brain      { background: #e8f0fb; color: #2563a8; }
.ss-tag-calm       { background: #edf5e8; color: #2d6a2d; }
.ss-tag-gut        { background: #fef3e8; color: #b45309; }
.ss-tag-regulation { background: #f0ebfe; color: #6d28d9; }
.ss-tag-communication { background: #fce7f3; color: #9d174d; }
.ss-tag-oral-motor { background: #e8f8f5; color: #0f766e; }
.ss-tag-focus      { background: #fff7ed; color: #9a3412; }
.ss-tag-language   { background: #f0fdf4; color: #166534; }
.ss-tag-sounds     { background: #eff6ff; color: #1d4ed8; }
.ss-tag-top        { background: var(--sage); color: white; }

/* ============================================================
   PRODUCT TEXT
   ============================================================ */
.ss-product-name {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin: 0;
}

.ss-product-card.featured .ss-product-name {
  font-size: 1.2rem;
}

.ss-product-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.ss-parent-note {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--sage);
  background: var(--sage-light);
  border-radius: 6px;
  padding: 6px 10px;
  border-left: 2px solid var(--sage);
  line-height: 1.5;
  margin: 0;
}

.ss-product-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
  padding: 0;
}

.ss-product-bullets li {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.ss-product-bullets li::before {
  content: '•';
  color: var(--sage);
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* ============================================================
   PRODUCT ACTIONS (BUTTONS)
   ============================================================ */
.ss-product-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  min-width: 110px;
}

.ss-btn-buy {
  background: var(--sage) !important;
  color: white !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 9px 16px !important;
  font-size: 0.8rem !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 600 !important;
  cursor: pointer;
  text-decoration: none !important;
  display: block !important;
  text-align: center;
  white-space: nowrap;
  width: 100%;
  transition: background 0.15s !important;
  box-shadow: none !important;
}

.ss-btn-buy:hover {
  background: #3d6b4a !important;
  color: white !important;
  text-decoration: none !important;
}

.ss-btn-more {
  background: transparent !important;
  color: var(--sage) !important;
  border: 1px solid var(--sage-mid) !important;
  border-radius: 6px !important;
  padding: 8px 16px !important;
  font-size: 0.78rem !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 500 !important;
  cursor: pointer;
  text-decoration: none !important;
  display: block !important;
  text-align: center;
  width: 100%;
  transition: all 0.15s !important;
  box-shadow: none !important;
}

.ss-btn-more:hover {
  background: var(--sage-light) !important;
  color: var(--sage) !important;
  text-decoration: none !important;
}

.ss-affiliate-note {
  font-size: 0.65rem;
  color: var(--text-light);
  text-align: center;
  width: 100%;
}

/* ============================================================
   CUSTOM FOOTER
   ============================================================ */
.ss-footer {
  background: #1a2e22;
  color: rgba(255,255,255,0.7);
  padding: 3rem 2rem 2rem;
  margin-top: 2rem;
}

.ss-footer-inner {
  max-width: 960px;
  margin: 0 auto;
}

.ss-footer-logo {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  color: white;
  margin-bottom: 0.5rem;
  display: block;
}

.ss-footer-desc {
  font-size: 0.8rem;
  max-width: 440px;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.65);
}

.ss-disclaimer-box {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 0.73rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
  margin-top: 1.5rem;
}

.ss-disclaimer-box strong {
  color: rgba(255,255,255,0.75);
}

.ss-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
}

.ss-footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ss-footer-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.72rem;
  transition: color 0.2s;
}

.ss-footer-links a:hover {
  color: rgba(255,255,255,0.85);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 700px) {
  .ss-product-card,
  .ss-product-card.featured {
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto;
  }

  .ss-product-card.featured .ss-product-img {
    width: 80px;
    height: 80px;
  }

  .ss-product-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    min-width: unset;
    align-items: stretch;
  }

  .ss-trust-strip {
    grid-template-columns: 1fr;
  }

  .ss-guide-steps {
    grid-template-columns: 1fr 1fr;
  }

  .ss-protocol-items {
    flex-direction: column;
    gap: 0.5rem;
  }

  .ss-email-form {
    flex-direction: column;
    width: 100%;
  }

  .ss-email-form input {
    width: 100%;
  }

  .ss-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .ss-guide-steps {
    grid-template-columns: 1fr;
  }

  .ss-hero {
    padding: 3rem 1.5rem 2.5rem;
  }

  .ss-container {
    padding: 1.5rem 1rem;
  }
}

/* ============================================================
   HERO BACKGROUND PATTERN (SVG leaves/botanicals)
   ============================================================ */
.ss-hero {
  position: relative;
}

.ss-hero > * {
  position: relative;
  z-index: 2;
}

.ss-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cg fill='%23ffffff'%3E%3C!-- Leaf 1 --%3E%3Cellipse cx='60' cy='80' rx='8' ry='22' transform='rotate(-30 60 80)'/%3E%3Cellipse cx='60' cy='80' rx='8' ry='22' transform='rotate(30 60 80)'/%3E%3Cellipse cx='60' cy='80' rx='8' ry='22' transform='rotate(90 60 80)'/%3E%3C!-- Leaf 2 --%3E%3Cellipse cx='200' cy='40' rx='6' ry='18' transform='rotate(-15 200 40)'/%3E%3Cellipse cx='200' cy='40' rx='6' ry='18' transform='rotate(45 200 40)'/%3E%3C!-- Leaf 3 --%3E%3Cellipse cx='340' cy='100' rx='9' ry='24' transform='rotate(-40 340 100)'/%3E%3Cellipse cx='340' cy='100' rx='9' ry='24' transform='rotate(20 340 100)'/%3E%3C!-- Leaf 4 --%3E%3Cellipse cx='30' cy='220' rx='7' ry='20' transform='rotate(20 30 220)'/%3E%3Cellipse cx='30' cy='220' rx='7' ry='20' transform='rotate(-40 30 220)'/%3E%3C!-- Leaf 5 --%3E%3Cellipse cx='370' cy='250' rx='8' ry='22' transform='rotate(10 370 250)'/%3E%3Cellipse cx='370' cy='250' rx='8' ry='22' transform='rotate(-50 370 250)'/%3E%3C!-- Leaf 6 --%3E%3Cellipse cx='120' cy='360' rx='6' ry='17' transform='rotate(35 120 360)'/%3E%3Cellipse cx='120' cy='360' rx='6' ry='17' transform='rotate(-25 120 360)'/%3E%3C!-- Leaf 7 --%3E%3Cellipse cx='280' cy='340' rx='8' ry='21' transform='rotate(-20 280 340)'/%3E%3Cellipse cx='280' cy='340' rx='8' ry='21' transform='rotate(40 280 340)'/%3E%3C!-- Scattered dots --%3E%3Ccircle cx='100' cy='150' r='3'/%3E%3Ccircle cx='300' cy='180' r='2'/%3E%3Ccircle cx='180' cy='300' r='3'/%3E%3Ccircle cx='250' cy='120' r='2'/%3E%3Ccircle cx='80' cy='310' r='2'/%3E%3Ccircle cx='350' cy='360' r='3'/%3E%3C!-- Stems --%3E%3Cline x1='60' y1='95' x2='60' y2='130' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'/%3E%3Cline x1='200' y1='55' x2='200' y2='80' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round'/%3E%3Cline x1='340' y1='118' x2='340' y2='150' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'/%3E%3Cline x1='280' y1='358' x2='280' y2='385' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 400px 400px;
  background-repeat: repeat;
  pointer-events: none;
}

/* ============================================================
   PRODUCT DETAIL HERO
   ============================================================ */
.ss-detail-hero {
  background: linear-gradient(135deg, #2d5a3d 0%, #4a7c59 60%, #6a9e7a 100%);
  color: white;
  padding: 3rem 2rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.ss-detail-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cg fill='%23ffffff'%3E%3Cellipse cx='60' cy='80' rx='8' ry='22' transform='rotate(-30 60 80)'/%3E%3Cellipse cx='60' cy='80' rx='8' ry='22' transform='rotate(30 60 80)'/%3E%3Cellipse cx='340' cy='100' rx='9' ry='24' transform='rotate(-40 340 100)'/%3E%3Cellipse cx='340' cy='100' rx='9' ry='24' transform='rotate(20 340 100)'/%3E%3Ccircle cx='100' cy='150' r='3'/%3E%3Ccircle cx='300' cy='180' r='2'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 400px 400px;
  pointer-events: none;
}

.ss-detail-hero-inner {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.ss-detail-hero-pattern {
  display: none; /* handled via ::after */
}

.ss-back-link {
  display: inline-block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  margin-bottom: 1rem;
  transition: color 0.15s;
}

.ss-back-link:hover { color: white; text-decoration: none; }

.ss-detail-tag {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
}

.ss-detail-title {
  font-family: 'Lora', serif !important;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem) !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  color: white !important;
  margin: 0 0 0.5rem !important;
  max-width: 700px;
}

.ss-detail-subtitle {
  font-size: 0.95rem;
  opacity: 0.8;
  margin: 0;
  max-width: 600px;
}

/* ============================================================
   DETAIL LAYOUT — 2-column grid
   ============================================================ */
.ss-detail-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* ============================================================
   DETAIL SIDEBAR
   ============================================================ */
.ss-detail-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ss-detail-img-wrap {
  background: var(--sage-light);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.ss-detail-img {
  width: 100%;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Buy box */
.ss-buy-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.ss-buy-box-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-light);
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.ss-btn-buy-large {
  font-size: 0.9rem !important;
  padding: 12px 20px !important;
}

/* Quick take */
.ss-quick-take {
  background: var(--sage-light);
  border: 1px solid var(--sage-mid);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
}

.ss-quick-take-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sage);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.ss-quick-take-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ss-quick-take-list li {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding-left: 14px;
  position: relative;
}

.ss-quick-take-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--sage);
  font-size: 0.7rem;
  font-weight: 700;
}

/* Related box */
.ss-related-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
}

.ss-related-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.ss-related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ss-related-list a {
  font-size: 0.8rem;
  color: var(--sage);
  text-decoration: none;
  transition: color 0.15s;
}

.ss-related-list a:hover {
  color: #3d6b4a;
  text-decoration: underline;
}

.ss-related-all {
  color: var(--text-muted) !important;
  font-size: 0.75rem !important;
  margin-top: 0.25rem;
}

/* ============================================================
   DETAIL CONTENT (right column)
   ============================================================ */
.ss-detail-safety {
  background: #fff8e6;
  border: 1px solid #f0d9a0;
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 2rem;
}

.ss-detail-safety-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.ss-detail-safety p {
  font-size: 0.8rem;
  color: #7a5a00;
  margin: 0;
  line-height: 1.5;
}

/* WordPress post content styling — keep it clean and on-brand */
.ss-detail-body {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text);
}

.ss-detail-body h1,
.ss-detail-body h2,
.ss-detail-body h3 {
  font-family: 'Lora', serif;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.ss-detail-body h1 { font-size: 1.5rem; }
.ss-detail-body h2 { font-size: 1.2rem; border-bottom: 1px solid var(--border); padding-bottom: 0.4rem; }
.ss-detail-body h3 { font-size: 1rem; }

.ss-detail-body p { margin: 0 0 1rem; }

.ss-detail-body ul,
.ss-detail-body ol {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

.ss-detail-body li {
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  line-height: 1.6;
}

.ss-detail-body a {
  color: var(--sage);
  text-decoration: underline;
  text-decoration-color: var(--sage-mid);
}

.ss-detail-body a:hover {
  color: #3d6b4a;
}

.ss-detail-body strong {
  font-weight: 600;
  color: var(--text);
}

.ss-detail-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* Suppress the "Buy Now" / "Back to Home" links that are in the WP content
   since we render our own styled buy box */
.ss-detail-body .wp-block-buttons,
.ss-detail-body .wp-block-button {
  display: none !important;
}

/* Style blockquotes as parent notes */
.ss-detail-body blockquote {
  font-style: italic;
  color: var(--sage);
  background: var(--sage-light);
  border-left: 3px solid var(--sage);
  border-radius: 0 6px 6px 0;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  font-size: 0.85rem;
}

/* Images inside content */
.ss-detail-body img {
  max-width: 100%;
  border-radius: 8px;
  display: block;
  margin: 1rem 0;
}

/* ============================================================
   BOTTOM CTA BOX
   ============================================================ */
.ss-detail-cta-box {
  background: var(--sage-light);
  border: 1px solid var(--sage-mid);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.ss-detail-cta-box p {
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  flex: 1;
}

.ss-detail-cta-box .ss-btn-buy {
  display: inline-block !important;
  width: auto !important;
}

.ss-detail-cta-box .ss-btn-more {
  display: inline-block !important;
  width: auto !important;
}

/* ============================================================
   POST NAV
   ============================================================ */
.ss-post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.ss-post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  max-width: 45%;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: border-color 0.15s, background 0.15s;
}

.ss-post-nav-link:hover {
  border-color: var(--sage-mid);
  background: var(--sage-light);
  text-decoration: none;
}

.ss-post-nav-dir {
  font-size: 0.72rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.ss-post-nav-name {
  font-size: 0.85rem;
  color: var(--sage);
  font-weight: 500;
  line-height: 1.3;
}

.ss-post-nav-next {
  text-align: right;
  margin-left: auto;
}

/* ============================================================
   DETAIL PAGE RESPONSIVE
   ============================================================ */
@media (max-width: 760px) {
  .ss-detail-layout {
    grid-template-columns: 1fr;
  }

  .ss-detail-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 1rem;
    align-items: start;
  }

  .ss-detail-img-wrap {
    grid-row: 1 / 3;
  }

  .ss-detail-cta-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .ss-post-nav {
    flex-direction: column;
  }

  .ss-post-nav-link {
    max-width: 100%;
  }

  .ss-post-nav-next {
    text-align: left;
    margin-left: 0;
  }
}

@media (max-width: 500px) {
  .ss-detail-sidebar {
    grid-template-columns: 1fr;
  }

  .ss-detail-img-wrap {
    grid-row: auto;
  }

  .ss-detail-hero {
    padding: 2rem 1.25rem 1.75rem;
  }
}
