/* CasaCove — shared styles across all pages */

:root {
  /* Dark mode (default): warm charcoal with maroon accents */
  --ink: #141110;
  --panel: #1C1817;
  --panel-light: #27201F;
  --foam: #F8EFEC;
  --foam-rgb: 248, 239, 236;
  --teal: #D0657A;        /* accent for text/icons — name kept so every page picks it up */
  --teal-rgb: 208, 101, 122;
  --teal-light: #E5909F;
  --accent-bg: #861F32;   /* buttons, promo bar, badges */
  --on-accent: #FFF4F2;   /* text on accent backgrounds */
  --line: rgba(248, 239, 236, 0.1);
  --header-h: 90px;
}

[data-theme="light"] {
  /* Light mode: soft blush white with maroon buttons and accents */
  --ink: #FFF8F7;
  --panel: #FFFFFF;
  --panel-light: #F7E8EA;
  --foam: #2A1A17;
  --foam-rgb: 42, 26, 23;
  --teal: #7A1428;
  --teal-rgb: 122, 20, 40;
  --teal-light: #922338;
  --accent-bg: #7A1428;
  --on-accent: #FFFFFF;
  --line: rgba(42, 26, 23, 0.1);
}


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

html, body {
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ink);
  color: var(--foam);
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.6;
  transition: background .2s ease, color .2s ease;
  padding-top: var(--header-h);
}

/* ---------- SITE HEADER (promo bar + nav, permanently fixed) ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
}

h1,
h2,
h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mono {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

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

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

/* ---------- NAV ---------- */
nav {
  display: grid;
  grid-template-columns: 44px 1fr 44px 44px;
  align-items: center;
  gap: 12px;
  padding: 16px 6vw;
  background: rgba(var(--foam-rgb), 0.02);
  background-color: var(--ink);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  justify-self: center;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--foam);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.wordmark-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.nav-links {
  display: none;
}

.cart-btn,
.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--foam);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: border-color .2s ease, background .2s ease;
  justify-self: end;
}

.cart-btn:hover,
.theme-toggle-btn:hover {
  border-color: var(--teal);
  background: rgba(var(--teal-rgb), 0.08);
}

.cart-btn i {
  font-size: 19px;
}

.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--accent-bg);
  color: var(--on-accent);
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 2px solid var(--ink);
}

.search-row {
  padding: 12px 6vw;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.search-row input {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  color: var(--foam);
  padding: 11px 16px;
  border-radius: 24px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
}

.search-row input::placeholder {
  color: rgba(var(--foam-rgb), 0.4);
}

.search-row input:focus {
  outline: 1px solid var(--teal);
}

.category-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 18px 6vw 0;
}

.category-tab {
  display: inline-block;
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: rgba(var(--foam-rgb), 0.6);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.category-tab:hover {
  color: var(--teal-light);
  border-color: var(--teal-light);
  background: rgba(var(--teal-rgb), 0.1);
}

.category-filters {
  scroll-margin-top: 80px;
}

.shelf[id] {
  scroll-margin-top: 80px;
}

.trust-bar {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 14px 6vw;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  color: rgba(var(--foam-rgb), 0.6);
  text-align: center;
}

.trust-bar span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.burger-btn {
  display: flex;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--foam);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  justify-self: start;
}

.burger-btn span {
  width: 16px;
  height: 2px;
  background: var(--foam);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.burger-btn.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.burger-btn.open span:nth-child(2) {
  opacity: 0;
}

.burger-btn.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  flex-direction: column;
  padding: 12px 6vw 20px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  padding: 14px 0;
  font-size: 1rem;
  color: rgba(var(--foam-rgb), 0.8);
  border-bottom: 1px solid var(--line);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a.active {
  color: var(--teal-light);
}

.stock-badge.stock-low {
  color: #f5b400;
  background: rgba(245, 180, 0, 0.12);
}

.stock-badge.stock-out {
  color: #d95555;
  background: rgba(217, 85, 85, 0.12);
}

.stock-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(var(--foam-rgb), 0.9);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.stock-pill.low {
  background: #f5b400;
}

.stock-pill.out {
  background: #888;
}

.compare-price {
  text-decoration: line-through;
  color: rgba(var(--foam-rgb), 0.4);
  font-size: 0.85em;
  font-weight: 500;
  margin-right: 8px;
}

/* ---------- HERO ---------- */
.hero {
  padding: 14vh 6vw 8vh;
  max-width: 900px;
}

.eyebrow {
  font-size: 0.85rem;
  color: var(--teal-light);
  font-weight: 600;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero h1 span {
  color: var(--teal-light);
}

.hero p {
  max-width: 520px;
  color: rgba(var(--foam-rgb), 0.68);
  font-size: 1.05rem;
  margin-bottom: 34px;
}

.hero-cta {
  display: inline-block;
  background: var(--accent-bg);
  color: var(--on-accent);
  padding: 15px 32px;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 28px;
  transition: background .2s ease;
}

.hero-cta:hover {
  background: var(--teal-light);
}

@media (max-width: 640px) {
  .hero {
    padding: 6vh 6vw 5vh;
  }
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s ease, background .2s ease;
}

.footer-social a:hover {
  border-color: var(--teal);
  background: rgba(var(--teal-rgb), 0.08);
}

@media (max-width: 640px) {
  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }
}


/* ---------- SECTIONS / SHELF ---------- */
.shelf {
  padding: 2vh 6vw 14vh;
}

.shelf-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 44px;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 44px;
}

.shelf-head h2 {
  font-size: 1.7rem;
}

.shelf-head .mono {
  font-size: 0.8rem;
  color: rgba(var(--foam-rgb), 0.5);
  font-weight: 500;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 26px;
}


.p-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}

.p-card:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
}

.p-card .p-image {
  aspect-ratio: 1/1;
  background: repeating-linear-gradient(45deg, rgba(var(--foam-rgb), 0.03) 0 2px, transparent 2px 14px), var(--panel-light);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(var(--foam-rgb), 0.4);
  font-size: 0.82rem;
}

.p-card .p-body {
  padding: 24px;
}

.p-card .p-image img,
.product-detail .p-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stock-pill {
  white-space: nowrap;
}

.p-card .p-tag {
  font-size: 0.75rem;
  color: var(--teal-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 10px;
}

.p-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.p-card p {
  color: rgba(var(--foam-rgb), 0.6);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.p-card .p-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.p-card .price {
  font-size: 1.1rem;
  font-weight: 700;
}

.view-link {
  font-size: 0.85rem;
  color: var(--teal-light);
  font-weight: 600;
}

@media (max-width: 640px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .p-card .p-body {
    padding: 12px;
  }

  .p-card .p-tag {
    font-size: 0.65rem;
    margin-bottom: 6px;
  }

  .p-card h3 {
    font-size: 0.95rem;
    margin-bottom: 6px;
    line-height: 1.25;
  }

  .p-card p {
    display: none;
  }

  .p-card .price {
    font-size: 0.95rem;
  }
}


/* ---------- TRUST STRIP ---------- */
.trust-strip {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding: 6vh 6vw;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-item .mono {
  font-size: 0.75rem;
  color: var(--teal-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.trust-item p {
  font-size: 0.9rem;
  color: rgba(var(--foam-rgb), 0.65);
  max-width: 220px;
}

footer {
  padding: 50px 6vw;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: rgba(var(--foam-rgb), 0.4);
  border-top: 1px solid var(--line);
}

footer .f-links {
  display: flex;
  gap: 24px;
}

footer a:hover {
  color: var(--teal-light);
}

/* ---------- PRODUCT PAGE ---------- */
.breadcrumb {
  padding: 24px 6vw 0;
  font-size: 0.85rem;
  color: rgba(var(--foam-rgb), 0.5);
}

.breadcrumb a {
  color: var(--teal-light);
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  padding: 5vh 6vw 10vh;
  max-width: 1100px;
}

@media (max-width:760px) {
  .product-detail {
    grid-template-columns: 1fr;
    padding: 4vh 6vw 8vh;
  }
}

.product-detail .p-image {
  aspect-ratio: 1/1;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
}

.product-detail .p-tag {
  font-size: 0.8rem;
  color: var(--teal-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 16px;
}

.product-detail h1 {
  font-size: 2.2rem;
  margin-bottom: 18px;
}

.product-detail .desc {
  color: rgba(var(--foam-rgb), 0.68);
  margin-bottom: 28px;
  max-width: 440px;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.price-row .price {
  font-size: 1.6rem;
  font-weight: 700;
}

.stock-badge {
  font-size: 0.8rem;
  color: var(--teal-light);
  background: rgba(var(--teal-rgb), 0.12);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
}

.trust-row {
  display: flex;
  gap: 24px;
  margin-top: 30px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(var(--foam-rgb), 0.55);
}

.trust-row span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  display: inline-block;
}

/* ---------- ABOUT / CONTACT PAGE ---------- */
.page-content {
  padding: 12vh 6vw 12vh;
  max-width: 720px;
}

.page-content h1 {
  font-size: 2.6rem;
  margin-bottom: 24px;
}

.page-content p {
  color: rgba(var(--foam-rgb), 0.7);
  margin-bottom: 20px;
  font-size: 1.02rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 12vh 6vw 12vh;
  max-width: 1000px;
}

@media (max-width: 640px) {
  .page-content {
    padding: 6vh 6vw 8vh;
  }
}

@media (max-width:760px) {
  .contact-grid {
    grid-template-columns: 1fr;
    padding: 8vh 6vw;
  }
}

.contact-info h1 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.contact-info p {
  color: rgba(var(--foam-rgb), 0.68);
  margin-bottom: 16px;
}

.contact-info .detail {
  margin-top: 28px;
}

.contact-info .detail .mono {
  color: var(--teal-light);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
}

.contact-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
}

.contact-form h3 {
  font-size: 1.2rem;
  margin-bottom: 22px;
}

/* ---------- CART/CHECKOUT MODALS ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 7, 0.75);
  backdrop-filter: blur(4px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  z-index: 100;
  padding: 6vh 20px;
  overflow-y: auto;
}

.overlay.open {
  display: flex;
}

.modal {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  width: 100%;
  max-width: 460px;
  animation: rise .25s ease;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}

.modal-head h3 {
  font-size: 1.15rem;
}

.modal-close {
  background: none;
  border: none;
  color: rgba(var(--foam-rgb), 0.6);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--foam);
}

.modal-body {
  padding: 24px 26px;
}

.cart-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line:last-of-type {
  border-bottom: none;
}

.cart-line-name {
  font-size: 0.92rem;
}

.cart-line-price {
  font-size: 0.88rem;
  color: rgba(var(--foam-rgb), 0.7);
  font-weight: 600;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--foam);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
}

.qty-btn:hover {
  border-color: var(--teal);
}

.cart-empty {
  color: rgba(var(--foam-rgb), 0.5);
  font-size: 0.9rem;
  text-align: center;
  padding: 20px 0;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 26px;
  border-top: 1px solid var(--line);
}

.cart-total .amount {
  font-size: 1.3rem;
  color: var(--teal-light);
  font-weight: 700;
}

.modal-actions {
  padding: 20px 26px 26px;
}

.btn-primary {
  background: var(--accent-bg);
  color: var(--on-accent);
  border: none;
  padding: 14px 30px;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 24px;
  cursor: pointer;
  transition: background .2s ease;
  width: 100%;
}

.btn-primary:hover {
  background: var(--teal-light);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(var(--foam-rgb), 0.55);
  margin-bottom: 7px;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  color: var(--foam);
  padding: 11px 13px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  border-radius: 8px;
}

.field input:focus,
.field textarea:focus {
  outline: 1px solid var(--teal);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkout-summary {
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 0.85rem;
}

.checkout-summary .row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}

.checkout-summary .row.total {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 10px;
  color: var(--teal-light);
  font-weight: 700;
}

.payfast-note {
  font-size: 0.75rem;
  color: rgba(var(--foam-rgb), 0.4);
  margin-top: 14px;
  text-align: center;
  line-height: 1.5;
}

.qv-image {
  aspect-ratio: 1/1;
  border-radius: 12px;
  margin: 0 26px 0;
  background: repeating-linear-gradient(45deg, rgba(var(--foam-rgb), 0.03) 0 2px, transparent 2px 14px), var(--panel-light);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(var(--foam-rgb), 0.4);
  font-size: 0.8rem;
  width: calc(100% - 52px);
}

.qv-tag {
  font-size: 0.75rem;
  color: var(--teal-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin: 20px 0 8px;
}

.qv-name {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.qv-desc {
  color: rgba(var(--foam-rgb), 0.65);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.qv-price {
  font-size: 1.3rem;
  font-weight: 700;
  display: block;
  margin-bottom: 18px;
}

.qv-view-link {
  display: block;
  text-align: center;
  font-size: 0.82rem;
  color: var(--teal-light);
  font-weight: 600;
  margin-top: 12px;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--accent-bg);
  color: var(--on-accent);
  padding: 12px 22px;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0;
  transition: all .3s ease;
  z-index: 200;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.cart-line-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.cart-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 25px;
  color: var(--foam);
  opacity: 0.9;
  line-height: 1;
}

.cart-remove-btn:hover {
  opacity: 1;
}

.related-products {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
}

.related-products h2 {
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 280px));
  gap: 20px;
}

.related-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.related-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.related-name {
  font-weight: 600;
}

.related-price {
  color: var(--teal-light);
}

.related-more {
  text-align: center;
  margin-top: 24px;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--teal-light);
  border: 1px solid var(--teal);
  padding: 13px 28px;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 24px;
  transition: background .2s ease, color .2s ease;
}

.btn-secondary:hover {
  background: var(--accent-bg);
  color: var(--on-accent);
}

/* ===== Reviews ===== */
.reviews-section {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
}

.reviews-section h2 {
  margin-bottom: 20px;
}

.reviews-summary {
  font-size: 0.95rem;
  color: var(--teal-light);
  margin-bottom: 8px;
}

.reviews-summary strong {
  color: #f5b400;
  letter-spacing: 1px;
}

.review-item {
  border-top: 1px solid rgba(128, 128, 128, 0.2);
  padding: 14px 0;
}

.review-item strong {
  font-weight: 700;
}

.review-item p {
  margin: 6px 0 4px;
  color: inherit;
  opacity: 0.85;
}

.review-item small {
  color: #888;
}

.review-stars {
  color: #f5b400;
  letter-spacing: 1px;
}

#write-review-btn {
  margin-top: 16px;
  background: transparent;
  color: var(--teal-light);
  border: 1px solid var(--teal);
  padding: 11px 24px;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 24px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

#write-review-btn:hover {
  background: var(--accent-bg);
  color: var(--on-accent);
}

#review-form {
  margin-top: 16px;
  max-width: 420px;
}

#review-form input,
#review-form select,
#review-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1px solid rgba(128, 128, 128, 0.3);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
}

#review-form textarea {
  min-height: 80px;
  resize: vertical;
}

#review-form button[type="submit"] {
  background: var(--accent-bg);
  color: var(--on-accent);
  border: none;
  padding: 11px 24px;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 24px;
  cursor: pointer;
}

#review-form button[type="submit"]:hover {
  background: var(--teal-light);
}

#review-error {
  color: #e05555;
  font-size: 0.85rem;
  margin-top: 8px;
}

.p-image {
  overflow: hidden;
  position: relative;
}
.p-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.p-slider::-webkit-scrollbar { display: none; }
.p-slider img {
  flex: 0 0 100%;
  scroll-snap-align: start;
  width: 100%;
  object-fit: cover;
}

.slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
  transition: background 0.2s, transform 0.2s;
}
.slider-dot.active {
  background: var(--teal-light);
  transform: scale(1.2);
}

.color-picker { display: flex; gap: 10px; margin: 14px 0; }
.color-swatch {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--border-color, #ccc);
  cursor: pointer; padding: 0;
}
.color-swatch.selected { border-color: var(--teal-light); box-shadow: 0 0 0 2px var(--teal-light); }

/* ---------- CAMPAIGN: promo bar ---------- */
.promo-bar {
  background: var(--accent-bg);
  color: var(--on-accent);
  text-align: center;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  padding: 9px 6vw;
}

/* ---------- CAMPAIGN: product hero ---------- */
.hero-product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 8vh 6vw 9vh;
  max-width: 1180px;
  margin: 0 auto;
}

@media (max-width: 760px) {
  .hero-product {
    grid-template-columns: 1fr;
    padding: 4vh 6vw 5vh;
    gap: 30px;
  }
}

.hero-product-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.hero-product-image img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.sale-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent-bg);
  color: var(--on-accent);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 20px;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(var(--teal-rgb), 0.35);
}

.hero-product-copy .eyebrow {
  margin-bottom: 16px;
}

.hero-product-copy h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.12;
  margin-bottom: 18px;
}

.hero-product-copy > p {
  color: rgba(var(--foam-rgb), 0.68);
  font-size: 1.02rem;
  max-width: 480px;
  margin-bottom: 28px;
}

.hero-product-copy .price-row {
  flex-wrap: wrap;
}

.hero-product-copy .price-row .price {
  font-size: 2rem;
}

.save-pill {
  background: rgba(var(--teal-rgb), 0.14);
  color: var(--teal-light);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 16px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hero-product-copy .hero-cta {
  border: none;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 8px;
}

/* ---------- CAMPAIGN: payment trust badges ---------- */
.payment-badges {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.payment-badges img {
  height: 20px;
  width: auto;
  opacity: 0.9;
}

.payment-badges img.payfast-badge {
  height: 16px;
}

/* Product detail page reuses .shelf for its "Why You'll Love It" section, but
   that class's 14vh bottom padding is sized for the homepage's full-height
   stacked sections — too much space next to the tighter reviews/related
   blocks here, so it's scaled back down to match their 60px rhythm. */
#productRoot .shelf {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 20px;
}
#productRoot .shelf-head {
  border-top: none;
  padding-top: 0;
  margin-bottom: 24px;
}

/* ---------- CAMPAIGN: feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
}

.feature-card .feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(var(--teal-rgb), 0.12);
  color: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.88rem;
  color: rgba(var(--foam-rgb), 0.62);
}

/* ---------- CAMPAIGN: FAQ ---------- */
.faq-list {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--teal-light);
  flex-shrink: 0;
  transition: transform .2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin-top: 14px;
  color: rgba(var(--foam-rgb), 0.65);
  font-size: 0.92rem;
  max-width: 640px;
}

/* ---------- CAMPAIGN: final CTA ---------- */
.final-cta {
  text-align: center;
  padding: 10vh 6vw;
  border-top: 1px solid var(--line);
}

.final-cta h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  margin-bottom: 14px;
}

.final-cta p {
  color: rgba(var(--foam-rgb), 0.65);
  margin-bottom: 30px;
}

.final-cta .hero-cta {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  padding: 17px 38px;
}

/* ---------- CAMPAIGN: sticky buy bar ---------- */
.sticky-buy-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--panel);
  border-top: 1px solid var(--line);
  padding: 14px 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transform: translateY(100%);
  transition: transform .25s ease;
}

.sticky-buy-bar.visible {
  transform: translateY(0);
}

.sticky-buy-info {
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
  font-size: 1.1rem;
  font-weight: 700;
}

.sticky-buy-info .compare-price {
  font-size: 0.75rem;
}

.sticky-buy-bar .btn-primary {
  padding: 12px 26px;
  white-space: nowrap;
}

@media (min-width: 761px) {
  .sticky-buy-bar { display: none; }
}