/* Purety Clinic Shop — Premium Health/Wellness Theme */
:root {
  --white: #ffffff;
  --cream: #f5f0eb;
  --cream-dark: #ede5db;
  --terracotta: #b85c48;
  --terracotta-light: #c97a6a;
  --terracotta-dark: #9e4a38;
  --green: #4a7c59;
  --green-light: #6b9e7a;
  --green-pale: #e8f0ea;
  --text: #1a1a1a;
  --text-light: #666666;
  --text-muted: #999999;
  --border: #e5e0db;
  --shadow: rgba(0,0,0,0.06);
  --radius: 8px;
  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

/* ─── Announcement Bar ─── */
.announcement {
  background: var(--text);
  color: var(--white);
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  letter-spacing: 0.5px;
  transition: opacity 0.4s ease;
  cursor: default;
}

/* ─── Header ─── */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: padding 0.3s ease;
}

.logo { height: 40px; width: auto; max-width: 180px; object-fit: contain; transition: height 0.3s ease; }

.nav { display: flex; gap: 32px; align-items: center; }
.nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--text);
  transition: color 0.2s;
  position: relative;
}
.nav a:hover, .nav a.active { color: var(--terracotta); }
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 0;
  min-width: 220px;
  box-shadow: 0 8px 24px var(--shadow);
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 400;
}
.nav-dropdown-menu a:hover { background: var(--cream); }

.header-actions { display: flex; gap: 20px; align-items: center; }
.header-actions a { font-size: 14px; font-weight: 500; }
.cart-count {
  background: var(--terracotta);
  color: var(--white);
  font-size: 11px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  vertical-align: middle;
}

.mobile-menu-btn { display: none; font-size: 24px; }

/* ─── Hero ─── */
.hero {
  background: linear-gradient(135deg, var(--cream) 0%, var(--white) 50%, var(--green-pale) 100%);
  padding: 80px 24px;
  text-align: center;
}

.hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text);
}

.hero .tagline {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 8px;
  font-style: italic;
}

.hero .sub-tagline {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  background: var(--terracotta);
  color: var(--white);
  padding: 14px 36px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}
.hero-cta:hover { background: var(--terracotta-dark); }

/* ─── Section ─── */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px;
}

.section-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 32px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 15px;
  margin-bottom: 40px;
}

/* ─── Children's Hero Banner ─── */
.children-hero {
  background: linear-gradient(135deg, #fef7f0 0%, #fdf2e9 50%, var(--cream) 100%);
  border-radius: 12px;
  padding: 48px 40px;
  display: flex;
  align-items: center;
  gap: 48px;
  margin-bottom: 60px;
}

.children-hero-text { flex: 1; }
.children-hero-text h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--terracotta-dark);
}
.children-hero-text p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.children-hero-text .btn-outline {
  display: inline-block;
  border: 2px solid var(--terracotta);
  color: var(--terracotta);
  padding: 10px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}
.children-hero-text .btn-outline:hover {
  background: var(--terracotta);
  color: var(--white);
}

.children-hero-images {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.children-hero-images img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--cream);
}

/* ─── Product Grid ─── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.product-card:hover {
  box-shadow: 0 8px 24px var(--shadow);
  transform: translateY(-2px);
}

.product-card-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 16px;
  background: var(--cream);
}

.product-card-body { padding: 16px; }

.product-card-category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--terracotta);
  margin-bottom: 6px;
  font-weight: 600;
}

.product-card-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-name a { transition: color 0.2s; }
.product-card-name a:hover { color: var(--terracotta); }

.product-card-price {
  font-size: 16px;
  font-weight: 600;
}
.product-card-price .compare {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 400;
  margin-left: 8px;
}
.product-card-price .sale {
  color: var(--terracotta);
}

.sale-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--terracotta);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.product-card-image-wrap {
  position: relative;
}

.btn-add-cart {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  background: var(--text);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: background 0.2s;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-add-cart:hover { background: var(--terracotta); }

/* ─── Categories Grid ─── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.category-card {
  background: var(--cream);
  border-radius: 12px;
  padding: 32px 28px;
  text-align: center;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.category-card:hover {
  border-color: var(--terracotta);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow);
}
.category-card-icon {
  font-size: 36px;
  margin-bottom: 12px;
}
.category-card h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 6px;
}
.category-card p {
  font-size: 13px;
  color: var(--text-light);
}

/* ─── Trust Bar ─── */
.trust-bar {
  background: var(--cream);
  padding: 48px 24px;
}
.trust-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.trust-item h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.trust-item p {
  font-size: 13px;
  color: var(--text-light);
}
.trust-item-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

/* ─── About Banner ─── */
.about-banner {
  background: var(--green-pale);
  border-radius: 12px;
  padding: 48px 40px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.about-banner-text { flex: 1; }
.about-banner-text h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--green);
}
.about-banner-text p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.7;
}

/* ─── Filter Bar (Products page) ─── */
.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  justify-content: center;
}
.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  background: var(--white);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}

/* ─── Search Bar (Products page) ─── */
.search-bar-wrap {
  max-width: 540px;
  margin: 0 auto 20px;
  position: relative;
  display: flex;
  align-items: center;
}
.search-bar-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  pointer-events: none;
  opacity: 0.5;
}
.search-bar-wrap input {
  width: 100%;
  padding: 14px 44px 14px 48px;
  border: 2px solid var(--border);
  border-radius: 28px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--white);
}
.search-bar-wrap input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.12);
}
.search-bar-wrap input::placeholder {
  color: var(--text-muted);
  font-size: 14px;
}
.search-clear-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cream-dark);
  color: var(--text-light);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
}
.search-clear-btn:hover {
  background: var(--terracotta);
  color: var(--white);
}
.search-result-count {
  text-align: center;
  font-size: 14px;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 16px;
}
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}
.no-results-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}
.no-results h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: 22px;
  color: var(--text);
  margin-bottom: 8px;
}
.no-results p {
  font-size: 15px;
  margin-bottom: 20px;
}
.no-results .filter-btn {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

/* ─── Hero Search (Homepage) ─── */
.hero-search-wrap {
  max-width: 460px;
  margin: 28px auto 0;
  position: relative;
  display: flex;
  align-items: center;
}
.hero-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none;
  opacity: 0.45;
}
.hero-search-wrap input {
  width: 100%;
  padding: 13px 120px 13px 46px;
  border: 2px solid var(--border);
  border-radius: 28px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--white);
}
.hero-search-wrap input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.12);
}
.hero-search-wrap input::placeholder {
  color: var(--text-muted);
}
.hero-search-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  padding: 9px 22px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}
.hero-search-btn:hover {
  background: var(--green-light);
}

/* Compact hero search — less prominent */
.hero-search-compact {
  max-width: 340px;
  margin-top: 20px;
  opacity: 0.85;
}
.hero-search-compact input {
  padding: 10px 80px 10px 38px;
  font-size: 13px;
  border-width: 1px;
}
.hero-search-compact .hero-search-icon {
  left: 14px;
  font-size: 14px;
}
.hero-search-compact .hero-search-btn {
  padding: 6px 16px;
  font-size: 12px;
}

.product-count {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 24px;
}

/* ─── Product Detail ─── */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.product-images .main-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 12px;
}

.product-thumbnails {
  display: flex;
  gap: 8px;
}
.product-thumbnails img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: var(--cream);
  border-radius: 6px;
  padding: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}
.product-thumbnails img:hover,
.product-thumbnails img.active { border-color: var(--terracotta); }

.product-info h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 8px;
}

.product-info .product-category-tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 16px;
  display: block;
}

.product-info .price {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 20px;
}
.product-info .price .compare {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 400;
  margin-left: 12px;
}

.product-info .description {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.product-info .description ul {
  list-style: disc;
  padding-left: 20px;
  margin-top: 12px;
}
.product-info .description li {
  margin-bottom: 6px;
}
.product-info .description strong {
  color: var(--text);
}

.qty-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.qty-selector label {
  font-size: 14px;
  font-weight: 500;
}
.qty-selector input {
  width: 64px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  font-size: 16px;
}

.btn-primary {
  width: 100%;
  padding: 16px;
  background: var(--text);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: background 0.2s;
  margin-bottom: 12px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-primary:hover { background: var(--terracotta); }

.product-meta {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.product-meta p {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 4px;
}

/* ─── Cart ─── */
.cart-table {
  width: 100%;
  border-collapse: collapse;
}
.cart-table th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.cart-table td {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.cart-item-info {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cart-item-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: var(--cream);
  border-radius: 6px;
  padding: 4px;
}
.cart-item-name {
  font-size: 14px;
  font-weight: 600;
}
.cart-item-cat {
  font-size: 12px;
  color: var(--text-muted);
}
.cart-qty {
  width: 56px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  text-align: center;
  font-size: 16px;
}
.cart-remove {
  color: var(--text-muted);
  font-size: 13px;
  transition: color 0.2s;
}
.cart-remove:hover { color: var(--terracotta); }

.cart-summary {
  max-width: 400px;
  margin-left: auto;
  margin-top: 32px;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 28px;
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 15px;
}
.cart-summary-row.total {
  font-size: 18px;
  font-weight: 600;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-bottom: 20px;
}
.cart-note {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.5;
}
.cart-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-light);
}
.cart-empty h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--text);
}

/* ─── Footer ─── */
.footer {
  background: var(--cream);
  padding: 48px 24px 24px;
  margin-top: 60px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  margin-top: 12px;
}
.footer h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  font-weight: 600;
}
.footer a {
  display: block;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer a:hover { color: var(--terracotta); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 8px;
}
.footer-copyright {
  font-size: 12px;
  color: var(--text-muted);
}

/* ─── Frequently Bought Together ─── */
.fbt-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px;
}
.fbt-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 28px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 8px;
}
.fbt-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 32px;
}
.fbt-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 12px var(--shadow);
}
.fbt-products {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
}
.fbt-product {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  max-width: 200px;
  position: relative;
}
.fbt-product-checkbox {
  position: absolute;
  top: 0;
  right: 8px;
  width: 20px;
  height: 20px;
  accent-color: var(--green);
  cursor: pointer;
}
.fbt-product-checkbox:disabled {
  cursor: default;
  opacity: 0.6;
}
.fbt-product img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 8px;
  margin-bottom: 10px;
}
.fbt-product-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 34px;
}
.fbt-product-name a {
  color: var(--text);
  transition: color 0.2s;
}
.fbt-product-name a:hover {
  color: var(--terracotta);
}
.fbt-product-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.fbt-plus {
  font-size: 28px;
  font-weight: 300;
  color: var(--text-muted);
  padding: 0 12px;
  flex-shrink: 0;
  line-height: 1;
}
.fbt-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.fbt-total {
  font-size: 18px;
  font-weight: 600;
}
.fbt-total span {
  color: var(--green);
}
.fbt-savings {
  font-size: 13px;
  color: var(--green);
  font-weight: 500;
  margin-top: 4px;
}
.fbt-add-all {
  padding: 14px 36px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 0.2s;
}
.fbt-add-all:hover {
  background: var(--green-light);
}
.fbt-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 8px;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .children-hero { flex-direction: column; padding: 32px 24px; }
  .about-banner { flex-direction: column; padding: 32px 24px; }
  #daily-essentials > div:first-child { flex-direction: column; padding: 32px 24px; }
}

@media (max-width: 768px) {
  /* ── Navigation: hamburger menu drops down, links stack vertically ── */
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px var(--shadow);
    flex-direction: column;
    padding: 16px 24px;
    gap: 0;
    z-index: 150;
  }
  .nav[style*="flex"] {
    flex-direction: column !important;
  }
  .nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
  }
  .nav a:last-child { border-bottom: none; }
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    min-width: unset;
  }
  .nav-dropdown:hover .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu a {
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-light);
    border-bottom: none;
  }
  .header-inner { position: relative; }
  .mobile-menu-btn { display: block; }

  /* ── Hero sections: scale fonts and tighten padding ── */
  .hero { padding: 48px 20px; }
  .hero h1 { font-size: 32px; }
  .hero .tagline { font-size: 16px; }
  .hero .sub-tagline { font-size: 14px; margin-bottom: 24px; }
  .hero-cta { padding: 12px 28px; font-size: 14px; }

  /* ── Section titles ── */
  .section { padding: 40px 16px; }
  .section-title { font-size: 26px; }
  .section-subtitle { font-size: 14px; margin-bottom: 28px; }

  /* ── Product grid: 2 columns ── */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  /* ── Product detail: image + info stack vertically ── */
  .product-detail { grid-template-columns: 1fr; gap: 32px; }
  .product-info h1 { font-size: 24px; }
  .product-info .price { font-size: 24px; }
  .product-info .price .compare { font-size: 16px; }

  /* ── Cart: stack product info vertically instead of wide table ── */
  .cart-table thead { display: none; }
  .cart-table,
  .cart-table tbody,
  .cart-table tr,
  .cart-table td {
    display: block;
    width: 100%;
  }
  .cart-table tr {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
  }
  .cart-table td {
    padding: 4px 0;
    border-bottom: none;
    text-align: left !important;
  }
  .cart-table td:first-child { padding-bottom: 8px; }
  .cart-table td:nth-child(2)::before { content: "Price: "; font-size: 13px; color: var(--text-muted); }
  .cart-table td:nth-child(3)::before { content: "Qty: "; font-size: 13px; color: var(--text-muted); }
  .cart-table td:nth-child(3) { display: block; }
  .cart-table td:nth-child(4)::before { content: "Total: "; font-size: 13px; color: var(--text-muted); }
  .cart-table td:last-child { padding-top: 8px; }
  .cart-item-info { gap: 12px; }
  .cart-item-img { width: 60px; height: 60px; }
  .cart-summary {
    max-width: 100%;
    margin-left: 0;
  }

  /* ── Contact page: 2-col grid stacks ── */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* ── About page: values grid stacks ── */
  .about-values-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* ── Trust bar ── */
  .trust-bar-inner { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  /* ── Children's hero ── */
  .children-hero-images { grid-template-columns: repeat(3, 1fr); gap: 8px; }

  /* ── Category grid ── */
  .category-grid { grid-template-columns: 1fr 1fr; }

  /* ── Footer: stack columns + tap targets ── */
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer { padding: 36px 16px 20px; margin-top: 40px; }
  .footer a { min-height: 44px; display: flex; align-items: center; }

  /* ── Announcement bar: smaller text ── */
  .announcement { font-size: 12px; padding: 8px 12px; }

  /* ── Global: prevent iOS zoom on form inputs (16px minimum) ── */
  input, select, textarea { font-size: 16px !important; }

  /* ── Newsletter form in footer: ensure stacking on mobile ── */
  #newsletter-form {
    flex-wrap: wrap !important;
    max-width: 100% !important;
  }
  #newsletter-form input[type="email"] {
    min-width: 0 !important;
    flex: 1 1 200px !important;
  }
  #newsletter-form button[type="submit"] {
    flex: 0 0 auto !important;
  }

  /* ── Search bar and filter bar on products page ── */
  .filter-bar { gap: 8px; }
  .filter-btn { padding: 8px 14px; font-size: 13px; min-height: 44px; }
  .search-bar-wrap { max-width: 100%; }
  .search-bar-wrap input { font-size: 16px; padding: 12px 40px 12px 44px; }
  .search-bar-wrap input::placeholder { font-size: 13px; }
  /* ── Hero search ── */
  .hero-search-wrap { max-width: 100%; }
  .hero-search-wrap input { font-size: 16px; padding: 12px 110px 12px 42px; }
  .hero-search-btn { padding: 8px 18px; font-size: 12px; }

  /* ── Frequently Bought Together ── */
  .fbt-section { padding: 40px 16px; }
  .fbt-title { font-size: 24px; }
  .fbt-card { padding: 20px; }
  .fbt-products { flex-direction: column; gap: 0; }
  .fbt-product { max-width: 100%; flex-direction: row; gap: 12px; text-align: left; padding: 12px 0; }
  .fbt-product img { width: 72px; height: 72px; margin-bottom: 0; flex-shrink: 0; }
  .fbt-product-checkbox { position: static; order: -1; flex-shrink: 0; }
  .fbt-product-name { min-height: unset; text-align: left; }
  .fbt-plus { font-size: 20px; padding: 4px 0; transform: rotate(90deg); }
  .fbt-footer { flex-direction: column; align-items: stretch; text-align: center; }
  .fbt-add-all { width: 100%; }
}

@media (max-width: 480px) {
  /* ── Product grid: 2 columns on mobile, NOT 1 ── */
  .product-grid { grid-template-columns: repeat(2, 1fr) !important; max-width: 100% !important; margin: 0 !important; gap: 12px; }

  /* ── Category grid: single column ── */
  .category-grid { grid-template-columns: 1fr; }

  /* ── Trust bar: single column ── */
  .trust-bar-inner { grid-template-columns: 1fr; }

  /* ── Footer: full single column ── */
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }

  /* ── Header: tighter padding ── */
  .header-inner { padding: 12px 16px; }
  .logo { height: 32px; }

  /* ── Hero: further scale down ── */
  .hero h1 { font-size: 26px; }
  .hero { padding: 36px 16px; }
  .hero .tagline { font-size: 14px; }
  .hero .sub-tagline { font-size: 13px; }

  /* ── Section ── */
  .section { padding: 32px 12px; }
  .section-title { font-size: 22px; }

  /* ── Product detail ── */
  .product-info h1 { font-size: 22px; }
  .product-images .main-image { padding: 16px; }

  /* ── Cart item images smaller ── */
  .cart-item-img { width: 48px; height: 48px; }

  /* ── Children's hero images: 2 cols on very small ── */
  .children-hero-images { grid-template-columns: repeat(2, 1fr); }

  /* ── Announcement ── */
  .announcement { font-size: 11px; padding: 6px 10px; white-space: normal; word-wrap: break-word; line-height: 1.5; }

  /* ── Product card compact sizing ── */
  .product-card-image { padding: 10px; }
  .product-card-body { padding: 10px; }
  .product-card-name { font-size: 13px; }
  .product-card-price { font-size: 14px; }
  .btn-add-cart { padding: 8px; font-size: 12px; min-height: 44px; }

  /* ── Sticky cart bottom padding for product page ── */
  .sticky-cart-bar.visible ~ .footer { padding-bottom: 80px; }

  /* ── Filter bar: horizontal scroll on small phones ── */
  .filter-bar { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }

  /* ── FAQ: tighter padding on small screens ── */
  .faq-section { padding: 0 16px 40px; }
  .faq-cta { padding: 32px 20px; }
}

/* ─── Small Phone Breakpoint (360px) ─── */
@media (max-width: 360px) {
  /* ── Hero: compact for very small screens ── */
  .hero h1 { font-size: 22px; }
  .hero { padding: 28px 12px; }
  .hero .tagline { font-size: 13px; }
  .hero .sub-tagline { font-size: 12px; }
  .hero-cta { padding: 11px 20px; font-size: 13px; }

  /* ── Section: tighter padding ── */
  .section { padding: 24px 10px; }
  .section-title { font-size: 20px; }
  .section-subtitle { font-size: 13px; }

  /* ── Header: even tighter ── */
  .header-inner { padding: 10px 12px; }
  .logo { height: 28px; }

  /* ── Product grid: smaller gap, keep 2 cols ── */
  .product-grid { gap: 8px !important; }
  .product-card-body { padding: 8px; }
  .product-card-name { font-size: 12px; }
  .product-card-price { font-size: 13px; }
  .btn-add-cart { padding: 7px 6px; font-size: 11px; }

  /* ── Product detail ── */
  .product-info h1 { font-size: 20px; }
  .product-info .price { font-size: 22px; }

  /* ── Cart: tighter on small phones ── */
  .cart-item-img { width: 44px; height: 44px; }
  .cart-item-name a { font-size: 13px; }
  .cart-summary { padding: 16px; }
  .btn-primary { font-size: 15px; padding: 14px; }

  /* ── Footer: tighter ── */
  .footer { padding: 28px 12px 16px; }
  .footer-brand p { font-size: 13px; }
  .footer h4 { font-size: 13px; }
  .footer a { font-size: 13px; }

  /* ── Announcement ── */
  .announcement { font-size: 10px; padding: 5px 8px; }

  /* ── Trust bar ── */
  .trust-bar-inner { gap: 12px; }

  /* ── Testimonials ── */
  .testimonial-card { padding: 16px 14px; }
  .testimonial-quote { font-size: 13px; }

  /* ── Sticky cart bar ── */
  .sticky-cart-name { font-size: 12px; }
  .sticky-cart-price { font-size: 13px; }
  .sticky-cart-btn { padding: 10px 16px; font-size: 13px; }

  /* ── Newsletter form: full stack on very small phones ── */
  #newsletter-form {
    flex-direction: column !important;
  }
  #newsletter-form input[type="email"] {
    flex: 1 1 100% !important;
    width: 100% !important;
  }
  #newsletter-form button[type="submit"] {
    width: 100% !important;
  }

  /* ── Shipping tiers: stack on very small ── */
  .shipping-tiers { flex-direction: column; gap: 4px; }
  .shipping-tier { padding: 6px 8px; }
}

/* ─── Trust Badges (Product Page, Homepage, Landing Pages) ─── */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  justify-content: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.2px;
}
.trust-badge .tb-icon {
  font-size: 15px;
  flex-shrink: 0;
}

/* Trust strip section (homepage, landing pages) */
.trust-strip {
  background: #f9f7f4;
  padding: 40px 24px;
}
.trust-strip-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}
.trust-strip-heading {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 24px;
}
.trust-strip-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 36px;
  justify-content: center;
}
.trust-strip-badges .trust-badge {
  font-size: 13px;
  color: var(--text-light);
}
.trust-strip-badges .trust-badge .tb-icon {
  font-size: 17px;
}

/* Cart confidence badges */
.cart-confidence {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.cart-confidence p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .trust-badges {
    gap: 10px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .trust-badge {
    font-size: 11px;
    justify-content: center;
  }
  .trust-strip { padding: 32px 16px; }
  .trust-strip-heading { font-size: 18px; margin-bottom: 20px; }
  .trust-strip-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
  }
  .trust-strip-badges .trust-badge { font-size: 12px; justify-content: center; }
}
@media (max-width: 480px) {
  .trust-strip-badges {
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
  }
  .trust-badges {
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
  }
}

/* ─── Product Recommendation Quiz ─── */
.quiz-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

/* Progress bar */
.quiz-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 48px;
}
.quiz-progress-step {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  transition: background 0.4s ease;
  position: relative;
}
.quiz-progress-step.active {
  background: var(--green);
}
.quiz-progress-step.completed {
  background: var(--green);
}
.quiz-progress-label {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 12px;
  font-weight: 500;
}

/* Step panels */
.quiz-step {
  display: none !important;
}
.quiz-step.active {
  display: block !important;
  animation: quizFadeIn 0.4s ease;
}
@keyframes quizFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-step h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 28px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 8px;
  color: var(--text);
}
.quiz-step .quiz-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 15px;
  margin-bottom: 36px;
}

/* Option cards */
.quiz-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.quiz-options.two-col {
  grid-template-columns: repeat(2, 1fr);
}
.quiz-options.three-col {
  grid-template-columns: repeat(3, 1fr);
}

.quiz-option {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}
.quiz-option:hover {
  border-color: var(--green-light);
  box-shadow: 0 4px 16px rgba(74,124,89,0.1);
  transform: translateY(-2px);
}
.quiz-option.selected {
  border-color: var(--green);
  background: var(--green-pale);
  box-shadow: 0 4px 16px rgba(74,124,89,0.15);
}
.quiz-option-icon {
  font-size: 36px;
  margin-bottom: 12px;
  display: block;
}
.quiz-option-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.quiz-option-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}

/* Back button */
.quiz-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-light);
  cursor: pointer;
  margin-bottom: 24px;
  transition: color 0.2s;
  background: none;
  border: none;
  font-family: inherit;
}
.quiz-back:hover {
  color: var(--green);
}

/* Results */
.quiz-results-header {
  text-align: center;
  margin-bottom: 40px;
}
.quiz-results-header h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 8px;
}
.quiz-results-header p {
  color: var(--text-light);
  font-size: 15px;
}
.quiz-results-summary {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 16px;
}
.quiz-results-tag {
  background: var(--green-pale);
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
}

.quiz-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.quiz-result-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.quiz-result-card:hover {
  box-shadow: 0 8px 24px var(--shadow);
  transform: translateY(-2px);
}
.quiz-result-card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 16px;
  background: var(--cream);
}
.quiz-result-card-body {
  padding: 16px;
}
.quiz-result-card-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
  color: var(--text);
}
.quiz-result-card-name a {
  transition: color 0.2s;
}
.quiz-result-card-name a:hover {
  color: var(--terracotta);
}
.quiz-result-card-price {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}
.quiz-result-card-price .compare {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 400;
  margin-left: 8px;
}
.quiz-result-card .btn-add-cart {
  width: 100%;
  margin-top: 0;
}

.quiz-retake {
  text-align: center;
  margin-top: 16px;
}
.quiz-retake button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--white);
  border: 2px solid var(--green);
  color: var(--green);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.quiz-retake button:hover {
  background: var(--green);
  color: var(--white);
}

/* Responsive quiz */
@media (max-width: 768px) {
  .quiz-container { padding: 28px 16px 48px; }
  .quiz-step h2 { font-size: 24px; }
  .quiz-options { grid-template-columns: 1fr; }
  .quiz-options.two-col { grid-template-columns: 1fr; }
  .quiz-options.three-col { grid-template-columns: 1fr; }
  .quiz-option { padding: 20px 16px; }
  .quiz-option-icon { font-size: 28px; }
  .quiz-results-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .quiz-results-header h2 { font-size: 24px; }
}
@media (max-width: 480px) {
  .quiz-results-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto 40px; }
  .quiz-step h2 { font-size: 22px; }
}

/* ─── Breadcrumb Navigation ─── */
.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.breadcrumb a {
  color: var(--terracotta);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: var(--terracotta-dark);
}
.bc-sep {
  margin: 0 6px;
  color: var(--text-muted);
}
@media (max-width: 768px) {
  .breadcrumb { font-size: 12px; margin-bottom: 12px; }
}

/* ─── Custom 404 Page ─── */
.error-page {
  text-align: center;
  padding: 80px 24px;
  max-width: 600px;
  margin: 0 auto;
}
.error-page-icon {
  font-size: 64px;
  margin-bottom: 24px;
  opacity: 0.4;
}
.error-page h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 36px;
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--text);
}
.error-page p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 32px;
}
.error-search {
  max-width: 420px;
  margin: 0 auto 36px;
  display: flex;
  gap: 8px;
}
.error-search input {
  flex: 1;
  padding: 12px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.error-search input:focus {
  border-color: var(--green);
}
.error-search button {
  padding: 12px 24px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.error-search button:hover {
  background: var(--green-light);
}
.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.error-links a {
  padding: 10px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s;
}
.error-links a:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-pale);
}
@media (max-width: 768px) {
  .error-page { padding: 48px 16px; }
  .error-page h1 { font-size: 28px; }
  .error-page p { font-size: 15px; }
  .error-search { flex-direction: column; }
  .error-links { flex-direction: column; align-items: center; }
  .error-links a { width: 100%; max-width: 280px; text-align: center; }
}

/* ════════════════════════════════════════════════
   MOBILE UX ENHANCEMENTS
   ════════════════════════════════════════════════ */

/* ─── Header Scrolled State ─── */
.header-scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.header-scrolled .header-inner {
  padding-top: 8px;
  padding-bottom: 8px;
}
.header-scrolled .logo {
  height: 30px;
  transition: height 0.3s ease;
}

/* ─── Mobile Drawer Menu ─── */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.drawer-overlay.open {
  display: block;
  opacity: 1;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: var(--white);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 32px;
  line-height: 1;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
  z-index: 1;
}
.drawer-close:hover {
  background: var(--cream);
}

.drawer-links {
  padding: 64px 0 24px;
  flex: 1;
}
.drawer-links > a {
  display: block;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  min-height: 48px;
  display: flex;
  align-items: center;
  transition: background 0.2s, color 0.2s;
}
.drawer-links > a:hover,
.drawer-links > a.active {
  background: var(--cream);
  color: var(--terracotta);
}

.drawer-dropdown {
  border-bottom: 1px solid var(--border);
}
.drawer-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
}
.drawer-dropdown-toggle a {
  display: block;
  padding: 14px 0 14px 24px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  flex: 1;
  min-height: 48px;
  display: flex;
  align-items: center;
}
.drawer-arrow {
  padding: 14px 24px 14px 16px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  transition: transform 0.3s;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.drawer-dropdown.open .drawer-arrow {
  transform: rotate(180deg);
}

.drawer-submenu {
  display: none;
  padding: 0 0 8px 24px;
  background: var(--cream);
}
.drawer-dropdown.open .drawer-submenu {
  display: block;
}
.drawer-submenu a {
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-light);
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.drawer-submenu a:hover {
  color: var(--terracotta);
}

.drawer-cart-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: auto 20px 20px;
  padding: 14px 24px;
  background: var(--text);
  color: var(--white) !important;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  min-height: 48px;
  transition: background 0.2s;
}
.drawer-cart-link:hover {
  background: var(--terracotta);
  color: var(--white) !important;
}

/* ─── Sticky Add to Cart Bar (Product Pages) ─── */
.sticky-cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
  z-index: 999;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: none;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.sticky-cart-bar.visible {
  transform: translateY(0);
}
.sticky-cart-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sticky-cart-info {
  flex: 1;
  min-width: 0;
}
.sticky-cart-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-cart-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--terracotta);
}
.sticky-cart-btn {
  padding: 12px 24px;
  background: var(--text);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  min-height: 44px;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.sticky-cart-btn:hover {
  background: var(--terracotta);
}

/* ─── Mobile-specific: show sticky cart bar ─── */
@media (max-width: 768px) {
  .sticky-cart-bar {
    display: block;
  }
}

/* Ensure readable body text */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  .product-card-name {
    font-size: 14px;
  }
  .product-card-category {
    font-size: 12px;
  }
  .product-card-price {
    font-size: 15px;
  }
  .product-card-body {
    padding: 14px;
  }
}

/* Prevent horizontal overflow globally */
html, body {
  overflow-x: hidden;
}
.section, .hero, .trust-bar, .footer {
  overflow-x: hidden;
}

/* ─── Recently Viewed ─── */
.rv-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 56px;
}
.rv-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 28px;
  color: var(--text);
}
.rv-scroll-wrap {
  position: relative;
}
.rv-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0;
}
.rv-track::-webkit-scrollbar { display: none; }
.rv-card {
  flex: 0 0 160px;
  scroll-snap-align: start;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s;
}
.rv-card:hover { transform: translateY(-3px); }
.rv-card-img-wrap {
  width: 160px;
  height: 160px;
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.rv-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}
.rv-card-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.rv-card-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.rv-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-70%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px var(--shadow);
  font-size: 22px;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s, box-shadow 0.2s;
}
.rv-arrow:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.rv-arrow-left { left: -8px; }
.rv-arrow-right { right: -8px; }
@media (max-width: 768px) {
  .rv-section { padding: 36px 16px 44px; }
  .rv-title { font-size: 22px; margin-bottom: 20px; }
  .rv-card { flex: 0 0 140px; }
  .rv-card-img-wrap { width: 140px; height: 140px; }
  .rv-arrow { display: none; }
}
@media (max-width: 480px) {
  .rv-section { padding: 28px 12px 36px; }
  .rv-card { flex: 0 0 130px; }
  .rv-card-img-wrap { width: 130px; height: 130px; }
  .rv-card-name { font-size: 12px; }
  .rv-card-price { font-size: 13px; }
}

/* ─── Product Reviews & Ratings ─── */
.review-stars {
  display: inline-flex;
  gap: 2px;
  vertical-align: middle;
}
.review-stars .star {
  color: #d4d0c8;
  font-size: 16px;
  line-height: 1;
}
.review-stars .star.filled {
  color: #d4a533;
}
.review-stars .star.half {
  position: relative;
  color: #d4d0c8;
}
.review-stars .star.half::before {
  content: '\2605';
  position: absolute;
  left: 0;
  top: 0;
  color: #d4a533;
  overflow: hidden;
  width: 50%;
}

/* Inline rating next to product title */
.product-rating-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.product-rating-summary .review-stars .star {
  font-size: 18px;
}
.product-rating-avg {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.product-rating-count {
  font-size: 14px;
  color: var(--text-light);
}
.product-rating-count a {
  color: var(--terracotta);
  text-decoration: none;
  transition: color 0.2s;
}
.product-rating-count a:hover {
  color: var(--terracotta-dark);
  text-decoration: underline;
}

/* Reviews section */
.reviews-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px;
}
.reviews-section-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 28px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 8px;
}
.reviews-section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 15px;
  margin-bottom: 36px;
}
.reviews-overview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
  padding: 20px;
  background: var(--cream);
  border-radius: var(--radius);
}
.reviews-overview-avg {
  font-size: 40px;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}
.reviews-overview-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.reviews-overview-detail .review-stars .star {
  font-size: 20px;
}
.reviews-overview-count {
  font-size: 14px;
  color: var(--text-light);
}

/* Individual review cards */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.review-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--white);
  transition: box-shadow 0.2s;
}
.review-card:hover {
  box-shadow: 0 4px 16px var(--shadow);
}
.review-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.review-card-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.review-card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-pale);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.review-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.review-card-date {
  font-size: 12px;
  color: var(--text-muted);
}
.review-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-pale);
  padding: 3px 10px;
  border-radius: 12px;
}
.review-verified-icon {
  font-size: 13px;
}
.review-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.review-card-body {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}
.review-card-stars {
  margin-bottom: 8px;
}

/* No reviews state */
.reviews-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-light);
}
.reviews-empty-icon {
  font-size: 36px;
  opacity: 0.3;
  margin-bottom: 12px;
}
.reviews-empty p {
  font-size: 15px;
}

/* Responsive reviews */
@media (max-width: 768px) {
  .reviews-section { padding: 40px 16px; }
  .reviews-section-title { font-size: 24px; }
  .reviews-overview { flex-direction: column; text-align: center; gap: 8px; }
  .reviews-overview-avg { font-size: 36px; }
  .review-card { padding: 18px; }
  .review-card-header { flex-direction: column; align-items: flex-start; }
  .product-rating-summary { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .reviews-section { padding: 28px 12px; }
  .reviews-section-title { font-size: 22px; }
  .review-card { padding: 14px; }
  .review-card-title { font-size: 14px; }
  .review-card-body { font-size: 13px; }
}

/* ─── Shipping Calculator Widget ─── */
.shipping-calc {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.shipping-calc-header {
  margin-bottom: 12px;
  text-align: center;
}
.shipping-calc-msg {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
}
.shipping-calc-msg strong {
  color: var(--terracotta);
  font-weight: 700;
}
.shipping-calc-free {
  color: var(--green);
  font-weight: 600;
  font-size: 15px;
}
.shipping-progress-track {
  width: 100%;
  height: 8px;
  background: var(--cream-dark);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 14px;
}
.shipping-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-light), var(--green));
  border-radius: 4px;
  transition: width 0.4s ease;
}
.shipping-tiers {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
.shipping-tier {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  border-radius: 6px;
  background: var(--cream);
  transition: all 0.2s;
}
.shipping-tier.active {
  background: var(--green-pale);
  border: 1px solid var(--green-light);
}
.shipping-tier.active.free {
  background: var(--green-pale);
  border-color: var(--green);
}
.shipping-tier-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 2px;
  font-weight: 500;
}
.shipping-tier.active .shipping-tier-label {
  color: var(--green);
}
.shipping-tier-price {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.shipping-tier.active .shipping-tier-price {
  color: var(--green);
}
.shipping-tier.active.free .shipping-tier-price {
  color: var(--green);
}
@media (max-width: 480px) {
  .shipping-calc-msg { font-size: 13px; }
  .shipping-tier-label { font-size: 10px; }
  .shipping-tier-price { font-size: 12px; }
  .shipping-tier { padding: 6px 2px; }
}

/* ─── Product Comparison Page ─── */
.compare-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-light);
}
.compare-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}
.compare-empty h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--text);
}
.compare-empty p {
  font-size: 15px;
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.compare-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 40px;
}
.compare-cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 700px; margin-left: auto; margin-right: auto; }
.compare-cols-3 { grid-template-columns: repeat(3, 1fr); }

.compare-col {
  text-align: center;
  padding: 24px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.2s;
}
.compare-col:hover {
  box-shadow: 0 8px 24px var(--shadow);
}

.compare-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.compare-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.compare-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.compare-name a { transition: color 0.2s; }
.compare-name a:hover { color: var(--terracotta); }

.compare-price {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}
.compare-price .sale { color: var(--terracotta); }
.compare-price .compare {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 400;
  margin-left: 8px;
}

/* Comparison table */
.compare-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 16px;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}
.compare-table th,
.compare-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 14px;
}
.compare-label-head {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
  width: 140px;
  min-width: 120px;
  background: var(--cream);
}
.compare-product-head {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--cream);
}
.compare-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  width: 140px;
  min-width: 120px;
  background: var(--cream);
  vertical-align: top;
}
.compare-cell {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

/* Responsive comparison */
@media (max-width: 768px) {
  .compare-grid {
    grid-template-columns: 1fr !important;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    gap: 16px;
  }
  .compare-cols-2,
  .compare-cols-3 {
    grid-template-columns: 1fr !important;
  }
  .compare-col { padding: 20px 16px; }
  .compare-name { min-height: unset; font-size: 14px; }
  .compare-price { font-size: 16px; }
  .compare-table { min-width: 400px; }
  .compare-label-head,
  .compare-label { width: 100px; min-width: 100px; font-size: 12px; }
  .compare-table th,
  .compare-table td { padding: 12px 10px; font-size: 13px; }
}
@media (max-width: 480px) {
  .compare-grid { max-width: 100%; }
  .compare-empty { padding: 48px 16px; }
  .compare-empty h2 { font-size: 22px; }
  .compare-table { min-width: 360px; }
  .compare-label-head,
  .compare-label { width: 80px; min-width: 80px; font-size: 11px; }
  .compare-table th,
  .compare-table td { padding: 10px 8px; font-size: 12px; }
}

/* ─── Wishlist ─── */

/* Heart icon toggle on product cards */
.wishlist-heart {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 2px 6px var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
  padding: 0;
}
.wishlist-heart:hover {
  border-color: var(--terracotta);
  box-shadow: 0 2px 10px rgba(184, 92, 72, 0.2);
  transform: scale(1.1);
}
.wishlist-heart svg {
  width: 18px;
  height: 18px;
  transition: all 0.25s ease;
}
.wishlist-heart .heart-outline {
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 2;
}
.wishlist-heart:hover .heart-outline {
  stroke: var(--terracotta);
}
.wishlist-heart.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
}
.wishlist-heart.active .heart-outline {
  fill: var(--white);
  stroke: var(--white);
}
.wishlist-heart.active:hover {
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
}

/* Wishlist count badge (mirrors cart-count) */
.wishlist-count {
  background: var(--terracotta);
  color: var(--white);
  font-size: 11px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  vertical-align: middle;
}

/* Wishlist page grid */
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.wishlist-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.wishlist-card:hover {
  box-shadow: 0 8px 24px var(--shadow);
  transform: translateY(-2px);
}

.wishlist-card-image-wrap {
  position: relative;
}
.wishlist-card-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 16px;
  background: var(--cream);
}

.wishlist-remove-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 6px var(--shadow);
}
.wishlist-remove-btn:hover {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}

.wishlist-card-body {
  padding: 16px;
}

.wishlist-card-actions {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wishlist-card-actions .btn-add-cart {
  margin-top: 0;
}

.wishlist-remove-text {
  width: 100%;
  padding: 8px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.wishlist-remove-text:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}

/* Wishlist header bar */
.wishlist-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.wishlist-header-bar span {
  font-size: 15px;
  color: var(--text-light);
  font-weight: 500;
}
.wishlist-clear-all {
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
  font-family: inherit;
}
.wishlist-clear-all:hover {
  color: var(--terracotta);
}

/* Responsive wishlist */
@media (max-width: 1024px) {
  .wishlist-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .wishlist-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .wishlist-card-image { padding: 12px; }
  .wishlist-card-body { padding: 12px; }
}
@media (max-width: 480px) {
  .wishlist-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
  .wishlist-card-image { padding: 10px; }
  .wishlist-card-body { padding: 10px; }
  .wishlist-remove-btn { width: 36px; height: 36px; font-size: 14px; }
}

/* ─── Testimonials & Social Proof Section ─── */
.testimonials-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px 48px;
}
.testimonials-heading {
  text-align: center;
  margin-bottom: 8px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--text);
}
.testimonials-subheading {
  text-align: center;
  color: var(--text-light);
  font-size: 15px;
  margin-bottom: 36px;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.testimonial-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 24px var(--shadow);
  transform: translateY(-2px);
}
.testimonial-stars {
  color: #d4a533;
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.testimonial-quote {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
  margin-bottom: 18px;
  flex: 1;
}
.testimonial-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.testimonial-author {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.testimonial-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-pale);
  padding: 3px 10px;
  border-radius: 12px;
  white-space: nowrap;
}

/* Dr. Birch Credentials Callout */
.credentials-callout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--green-pale);
  border: 1px solid rgba(74, 124, 89, 0.15);
  border-radius: 12px;
  padding: 24px 32px;
  margin-top: 8px;
}
.credentials-icon {
  font-size: 32px;
  flex-shrink: 0;
  color: var(--green);
}
.credentials-text {
  text-align: left;
}
.credentials-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.credentials-detail {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
}

/* Testimonials responsive */
@media (max-width: 1100px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .testimonials-section { padding: 40px 16px 36px; }
  .testimonials-heading { font-size: 24px; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .testimonial-card { padding: 22px 18px; }
  .credentials-callout { flex-direction: column; text-align: center; padding: 20px; }
  .credentials-text { text-align: center; }
}
@media (max-width: 480px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-quote { font-size: 14px; }
  .credentials-name { font-size: 15px; }
  .credentials-detail { font-size: 13px; }
}

/* ─── Skip-to-Content Link ─── */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--green);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  z-index: 10000;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-to-content:focus {
  top: 12px;
}

/* ─── Mobile Polish: Global Tap Targets & Spacing ─── */
@media (max-width: 768px) {
  /* Ensure all links/buttons have 44px minimum tap targets */
  .nav a,
  .header-actions a,
  .footer a,
  .error-links a,
  .breadcrumb a,
  .blog-nav a,
  .cart-remove,
  .wishlist-clear-all,
  .quiz-back,
  .quiz-retake button,
  .drawer-submenu a,
  .drawer-links > a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Ensure spacing between interactive elements */
  .filter-bar {
    gap: 8px;
  }
  .error-links {
    gap: 10px;
  }
  .trust-strip-badges,
  .trust-badges {
    gap: 10px;
  }
  .quiz-options {
    gap: 12px;
  }

  /* Wishlist heart button: expand to 44px for mobile */
  .wishlist-heart {
    width: 44px;
    height: 44px;
  }

  /* Wishlist remove button: expand to 44px */
  .wishlist-remove-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  /* Cart remove link: ensure it's easily tappable */
  .cart-remove {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* rv-arrow: already hidden on mobile, good */

  /* Ensure all CTA buttons have minimum tap size */
  .hero-cta,
  .btn-primary,
  .btn-add-cart,
  .fbt-add-all,
  .btn-bundle-cart,
  .lp-cta,
  .btn-submit {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Product card: ensure image-wrap doesn't cause overflow */
  .product-card-image-wrap {
    overflow: hidden;
  }

  /* Children's hero: prevent overflow on wrap */
  .children-hero {
    overflow: hidden;
  }

  /* About banner: prevent text overflow */
  .about-banner-text h2 {
    font-size: 24px;
    word-wrap: break-word;
  }

  /* Compare table: horizontal scroll container */
  .compare-table-wrap {
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 480px) {
  /* Tighter spacing on very small screens */
  .hero-cta {
    width: 100%;
    max-width: 320px;
    text-align: center;
    justify-content: center;
  }

  /* Product card buttons need full width with 44px height */
  .btn-add-cart {
    min-height: 44px;
    font-size: 12px;
    padding: 10px 8px;
  }

  /* Search clear button: ensure tappable */
  .search-clear-btn {
    width: 36px;
    height: 36px;
  }

  /* Quiz option cards: ensure tappable area */
  .quiz-option {
    padding: 20px 16px;
    min-height: 80px;
  }

  /* Bundle footer button: full width */
  .btn-bundle-cart {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Prevent long words from causing overflow */
  .product-card-name,
  .product-info h1,
  .section-title,
  .blog-card h2,
  .fbt-product-name {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Cart summary: full width on small screens */
  .cart-summary {
    padding: 20px;
  }
}

/* ─── Focus Styles for Keyboard Navigation ─── */
*:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 2px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}
.mobile-menu-btn:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}
.filter-btn:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(74, 124, 89, 0.15);
}

/* ─── Footer Newsletter Button Override ─── */
/* Ensures newsletter subscribe button uses design system color */
#newsletter-form button[type="submit"] {
  background: var(--green) !important;
}
#newsletter-form button[type="submit"]:hover {
  background: var(--green-light) !important;
}
