/* ============================================================
   DREAMS OF CHOCOLATE — THEME CSS
   Built by The Free Website Guys
   ============================================================ */

/* ---- Design tokens ---- */
:root {
  --color-background:          #f5f2f8;
  --color-foreground:          #1f1a23;
  --color-primary:             #8c5eba;
  --color-primary-foreground:  #ffffff;
  --color-secondary:           #ebe6ef;
  --color-secondary-foreground:#2d2535;
  --color-muted:               #d9d4de;
  --color-muted-foreground:    #736a7c;
  --color-border:              #d1ccd7;
  --color-accent:              #ecd9c6;
  --color-accent-foreground:   #1f1a23;

  --font-display: 'Playfair Display', serif;
  --font-body:    'Poppins', sans-serif;

  --radius:        0.75rem;
  --card-radius:   1rem;
  --btn-radius:    9999px;
  --btn-height:    2.75rem;
  --btn-padding:   0.75rem 2rem;
  --btn-font-size: 0.9375rem;
  --btn-font-weight: 500;
  --btn-letter-spacing: 0.025em;
  --btn-text-transform: none;

  --shadow-soft:     0 4px 20px -4px rgba(31, 26, 35, 0.08);
  --shadow-elevated: 0 8px 40px -8px rgba(31, 26, 35, 0.15);

  --header-height: 64px;
  --logo-height:   40px;

  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --section-padding: 2rem;
  --checkout-gap: 2rem;
  --wc-page-padding-top: 2rem;
  --wc-page-padding-bottom: 4rem;
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
}

/* Global image rule — exclude cover images */
img:not(.cover-img):not(.hero-bg-img):not(.product-card-img):not(.product-main-image):not(.thumb-img):not(.about-owner-img):not(.about-splash):not(.floating-chocolate):not(.cta-bg-img):not(.cart-item-img):not(.site-logo-img):not(.woocommerce-placeholder) {
  max-width: 100%;
  height: auto;
}

a { text-decoration: none; color: inherit; }

button { cursor: pointer; background: none; border: none; font: inherit; }

/* ---- Container ---- */
.container-wide {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 1024px) {
  .container-wide { padding: 0 2rem; }
}

/* ---- Logo ---- */
.site-logo-img  { height: var(--logo-height) !important; width: auto !important; display: block; border-radius: 9999px; object-fit: cover; border: 1px solid color-mix(in srgb, var(--color-primary) 30%, transparent); }
.site-logo-text { line-height: var(--logo-height); display: block; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  letter-spacing: var(--btn-letter-spacing);
  text-transform: var(--btn-text-transform);
  min-height: var(--btn-height);
  padding: var(--btn-padding);
  border-radius: 0.5rem;
  transition: opacity 0.2s ease, transform 0.15s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-rounded { border-radius: var(--btn-radius) !important; }
.btn-full    { width: 100%; }

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  border: none;
}
.btn-primary:hover  { opacity: 0.85; }
.btn-primary:active { transform: scale(0.97); }

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-primary-foreground);
}

.btn-secondary {
  background: var(--color-secondary);
  color: var(--color-secondary-foreground);
  border: none;
}
.btn-secondary:hover { opacity: 0.85; }

/* ---- Eyebrow ---- */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
}

/* ---- Underline link ---- */
.link-underline { position: relative; display: inline-block; }
.link-underline::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.3s var(--transition-smooth);
}
.link-underline:hover::after { transform: scaleX(1); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, border-bottom 0.3s ease;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

/* Offset fixed header below WordPress admin bar when logged in */
body.admin-bar .site-header {
  top: var(--wp-admin--admin-bar--height, 32px);
}

.site-header.is-solid {
  background: color-mix(in srgb, var(--color-background) 95%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  transition: height 0.3s ease;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.header-brand-name {
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.02em;
}
@media (min-width: 1024px) { .header-brand-name { font-size: 1.75rem; } }

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-desktop { display: none; }
@media (min-width: 768px) { .nav-desktop { display: flex; align-items: center; } }

/* WP nav menu overrides */
.theme-nav-list,
.mobile-nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0; padding: 0;
}
.mobile-nav-list {
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.theme-nav-list .menu-item a,
.theme-nav-list .nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  display: inline-block;
  transition: color 0.3s;
}
.theme-nav-list .menu-item a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.3s var(--transition-smooth);
}
.theme-nav-list .menu-item a:hover::after { transform: scaleX(1); }

.mobile-nav-list .menu-item a,
.mobile-nav-list .nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  color: inherit;
  text-decoration: none;
  padding: 0.5rem 0;
  display: block;
  transition: color 0.3s;
}
.mobile-nav-list .menu-item a:hover,
.mobile-nav-list .nav-link:hover {
  color: var(--color-muted-foreground);
}

/* Cart button */
.cart-btn {
  position: relative;
  padding: 0.5rem;
  color: inherit;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-btn:hover { opacity: 0.6; }

.theme-cart-count {
  position: absolute;
  top: -2px; right: -2px;
  min-width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 500;
  background: var(--color-primary);
  color: var(--color-primary-foreground);
  border-radius: 9999px;
  line-height: 1;
}
.theme-cart-count:empty { display: none; }

/* Mobile toggle */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: inherit;
  transition: opacity 0.2s;
}
.mobile-menu-toggle:hover { opacity: 0.6; }
@media (min-width: 768px) { .mobile-menu-toggle { display: none; } }

/* Mobile menu */
.mobile-menu {
  border-top: 1px solid var(--color-border);
  padding: 1rem 0;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu .theme-nav-list {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

/* Inner pages — add top padding to main */
.theme-no-hero-main { padding-top: var(--header-height); }

/* Single product — match Lovable pt-24 lg:pt-28 */
.theme-single-product-main {
  padding-top: 6rem;
}
@media (min-width: 1024px) {
  .theme-single-product-main { padding-top: 7rem; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.3);
  animation: heroScale 8s ease-out forwards;
}
@keyframes heroScale {
  to { transform: scale(1); }
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--color-background) 70%, transparent),
    color-mix(in srgb, var(--color-background) 50%, transparent),
    color-mix(in srgb, var(--color-background) 80%, transparent)
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 42rem;
  width: 100%;
}

.hero-title-wrap { overflow: hidden; }

.hero-title {
  font-size: 3rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}
.hero-title .hero-title-line1,
.hero-title .hero-title-line2 {
  display: block;
}
@media (min-width: 768px) { .hero-title { font-size: 4.5rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 5rem; } }

.hero-subtitle {
  color: var(--color-foreground);
  max-width: 28rem;
  margin: 0 auto 2.5rem;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0;
  animation: fadeBlurIn 0.8s ease forwards 1s;
}
@keyframes fadeBlurIn {
  from { opacity: 0; transform: translateY(30px); filter: blur(10px); }
  to   { opacity: 1; transform: none; filter: none; }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 1.2s;
}
@media (min-width: 640px) { .hero-buttons { flex-direction: row; } }

.hero-buttons .btn {
  font-size: 1rem;
  min-height: 2.75rem;
  padding: 0 2rem;
}

.hero-buttons .btn-outline {
  background: var(--color-background);
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}
.hero-buttons .btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-primary-foreground);
  opacity: 1;
}

.hero-buttons .btn-primary:hover {
  opacity: 0.9;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}

.reveal-hero {
  opacity: 0;
  animation: slideUpIn 1s ease forwards;
}
.hero-title-line1 { animation-delay: 0.6s; }
.hero-title-line2 { animation-delay: 0.75s; }
.reveal-hero-sub  { /* handled by hero-subtitle above */ }
.reveal-hero-buttons { /* handled by hero-buttons above */ }

@keyframes slideUpIn {
  from { opacity: 0; transform: translateY(80px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-subtitle,
  .hero-buttons,
  .reveal-hero {
    opacity: 1;
    animation: none;
    transform: none;
    filter: none;
  }
  .hero-bg-img {
    animation: none;
    transform: scale(1);
  }
}

.hero-curve {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  z-index: 5;
  line-height: 0;
}
.hero-curve svg {
  width: 100%;
  height: 60px;
  display: block;
}
@media (min-width: 768px) { .hero-curve svg { height: 80px; } }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth);
}
.reveal-item.is-visible {
  opacity: 1;
  transform: none;
}
/* Fallback: always visible if IntersectionObserver not available */
@media (prefers-reduced-motion: reduce) {
  .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   INGREDIENTS STRIPE
   ============================================================ */
.stripe-section {
  background: var(--color-primary);
  color: var(--color-primary-foreground);
}
.stripe-inner {
  padding-block: 2rem;
}
@media (min-width: 768px) { .stripe-inner { padding-block: 2.5rem; } }

.stripe-title {
  font-size: 1.25rem;
  text-align: center;
  margin-bottom: 2rem;
}
@media (min-width: 768px) { .stripe-title { font-size: 1.5rem; } }

.stripe-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
@media (min-width: 768px) { .stripe-items { gap: 4rem; } }

.stripe-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.stripe-icon-wrap {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stripe-label {
  font-size: 0.875rem;
  font-weight: 500;
}

/* ============================================================
   ABOUT SECTION (Story, Dark)
   ============================================================ */
.about-story-section {
  background: var(--color-primary);
  color: var(--color-primary-foreground);
  position: relative;
  overflow: hidden;
}

.about-splash {
  position: absolute;
  left: 0;
  top: 15%;
  width: 400px;
  max-width: 55%;
  z-index: 0;
  pointer-events: none;
  margin-left: -2rem;
}
@media (min-width: 768px) {
  .about-splash { width: 650px; margin-left: -1rem; }
}
@media (min-width: 1024px) {
  .about-splash { width: 800px; }
}

.about-story-inner {
  padding-block: 4rem;
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) { .about-story-inner { padding-block: 6rem; } }

@media (max-width: 767px) {
  .about-story-inner.container-wide {
    padding-inline: 2rem;
  }
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.about-image-col {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 10;
}
.about-image-wrap { position: relative; }
.about-owner-img {
  width: 100%;
  max-width: 32rem;
  max-height: 550px;
  height: auto;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: var(--shadow-elevated);
  position: relative;
  z-index: 10;
  display: block;
  transition: transform 0.6s var(--transition-smooth);
}
.about-image-wrap:hover .about-owner-img { transform: scale(1.03); }
.about-image-accent {
  position: absolute;
  top: -1rem; left: -1rem;
  right: 0; bottom: 0;
  border-radius: 1rem;
  border: 2px solid rgba(255,255,255,0.2);
  z-index: 0;
}

.about-text-col { display: flex; flex-direction: column; justify-content: center; }

.about-text-col .eyebrow {
  color: rgba(255,255,255,0.6);
}

.about-heading {
  font-size: 1.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0.5rem 0 1.5rem;
  color: var(--color-primary-foreground);
}
@media (min-width: 768px) { .about-heading { font-size: 2.5rem; } }
@media (min-width: 1024px) { .about-heading { font-size: 3rem; } }

.about-body-text { display: flex; flex-direction: column; gap: 1rem; }
.about-para {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  overflow-wrap: break-word;
  word-break: break-word;
}
@media (min-width: 768px) { .about-para:first-child { font-size: 1.125rem; } }

.about-cta-wrap { margin-top: 2rem; }
.about-cta {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  font-family: var(--font-body);
}

/* ============================================================
   MAKER / EXPERIENCE SECTION
   ============================================================ */
.maker-section {
  position: relative;
  overflow: hidden;
}
.maker-inner {
  padding-block: 4rem;
}
@media (min-width: 768px) { .maker-inner { padding-block: 6rem; } }

@media (max-width: 767px) {
  .maker-inner.container-wide {
    padding-inline: 2rem;
  }
}

.maker-content {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.floating-chocolate {
  display: block;
  margin: 0 auto 1.5rem;
  width: 80px;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.15));
  animation: floatBob 3s ease-in-out infinite;
}
@media (min-width: 768px) { .floating-chocolate { width: 120px; } }
@keyframes floatBob {
  0%, 100% { transform: translateY(0) rotate(5deg); }
  50%       { transform: translateY(-12px) rotate(-5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .floating-chocolate { animation: none; transform: rotate(5deg); }
}

.maker-heading {
  font-size: 1.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0.5rem 0 2rem;
}
@media (min-width: 768px)  { .maker-heading { font-size: 2.5rem; } }
@media (min-width: 1024px) { .maker-heading { font-size: 3rem; } }

.maker-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--color-muted-foreground);
}
.maker-body p {
  line-height: 1.7;
  text-align: center;
}

/* ============================================================
   SHOP SECTION
   ============================================================ */
.shop-section {
  padding: 4rem 0 5rem;
  scroll-margin-top: var(--header-height);
}
@media (min-width: 768px) { .shop-section { padding: 5rem 0 6rem; } }

.shop-header { margin-bottom: 3rem; }

.shop-heading {
  font-size: 1.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0.5rem 0 2rem;
}
@media (min-width: 768px) { .shop-heading { font-size: 3rem; } }

.shop-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.filter-pill {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  border-radius: 9999px;
  background: var(--color-secondary);
  color: var(--color-secondary-foreground);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.15s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.filter-pill:hover { background: var(--color-muted); }
.filter-pill.active {
  background: var(--color-primary);
  color: var(--color-primary-foreground);
}
.filter-pill:active { transform: scale(0.95); }

.price-filter-chevron {
  transition: transform 0.3s;
}
.filter-pill-price.open .price-filter-chevron { transform: rotate(180deg); }

.price-filter-range-preview {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Price range filter */
.price-filter-wrap {
  width: 100%;
  max-width: 24rem;
  margin: 1rem auto 0;
  overflow: hidden;
}
.price-filter-wrap[hidden] { display: none; }

.price-filter-inner {
  padding: 0.5rem 0;
}

.price-range-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  height: 1.25rem;
  margin-bottom: 0.75rem;
}

/* Unfilled track */
.price-range-wrapper::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 0.5rem;
  background: var(--color-secondary);
  border-radius: 9999px;
  z-index: 0;
}

.range-input {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.25rem;
  margin: 0;
  padding: 0;
  background: transparent;
  pointer-events: none;
  z-index: 2;
}

.range-input::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  height: 0.5rem;
  background: transparent;
  border: none;
}

.range-input::-moz-range-track {
  height: 0.5rem;
  background: transparent;
  border: none;
}

.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--color-background);
  cursor: pointer;
  border: 2px solid var(--color-primary);
  box-shadow: 0 0 0 0 transparent;
  pointer-events: all;
  margin-top: -0.375rem;
}

.range-input::-moz-range-thumb {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--color-background);
  cursor: pointer;
  border: 2px solid var(--color-primary);
  box-shadow: none;
  pointer-events: all;
}

.range-input--max {
  z-index: 3;
}

.range-track-fill {
  position: absolute;
  height: 0.5rem;
  background: var(--color-primary);
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
  border-radius: 9999px;
}

.price-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
}

/* ---- Product Grid ---- */
.theme-product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
@media (min-width: 640px)  { .theme-product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .theme-product-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }

/* ---- Product Card ---- */
.theme-product-card-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.theme-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.theme-product-card__image-wrapper {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--color-secondary);
  overflow: hidden;
  margin-bottom: 1rem;
  border-radius: 1rem;
  width: 100%;
  min-height: 0;
}

/* Cover images — fill their aspect-ratio containers */
.product-card-img,
.product-main-image,
.thumb-img,
.cart-item-img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 1;
}

.theme-product-card:hover .product-card-img {
  transform: scale(1.08);
  transition: transform 0.6s var(--transition-smooth);
}

.card-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(31,26,35,0);
  transition: background 0.5s;
  z-index: 2;
}
.theme-product-card:hover .card-hover-overlay {
  background: rgba(31,26,35,0.05);
}

.card-badge {
  position: absolute;
  top: 0.5rem; left: 0.5rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 9999px;
  z-index: 5;
}
@media (min-width: 768px) { .card-badge { top: 0.75rem; left: 0.75rem; } }

.card-badge--soldout {
  background: var(--color-foreground);
  color: var(--color-background);
}
.card-badge--pickup {
  background: var(--color-primary);
  color: var(--color-primary-foreground);
}

.theme-product-card__info { flex: 1; }
.card-title {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  transition: color 0.3s;
}
.theme-product-card:hover .card-title { color: var(--color-primary); }

.card-price {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  font-weight: 600;
}

/* Card hover lift */
.theme-product-card-wrap {
  transition: transform 0.5s var(--transition-smooth), box-shadow 0.5s var(--transition-smooth);
}
.theme-product-card-wrap:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -12px rgba(31,26,35,0.15);
  border-radius: 1rem;
}

/* Show More button */
.shop-show-more { margin-top: 2.5rem; }
.shop-no-products { padding: 5rem 0; color: var(--color-muted-foreground); }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  position: relative;
  overflow: hidden;
  color: var(--color-primary-foreground);
  text-align: center;
}

.cta-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    color-mix(in srgb, var(--color-primary) 80%, transparent),
    color-mix(in srgb, var(--color-primary) 60%, transparent),
    color-mix(in srgb, var(--color-primary) 80%, transparent)
  );
}

.cta-content {
  position: relative;
  z-index: 10;
  padding: 4rem 1.5rem;
  max-width: 40rem;
  margin: 0 auto;
}
@media (min-width: 768px) { .cta-content { padding: 6rem 1.5rem; } }

.cta-heading {
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
@media (min-width: 768px) { .cta-heading { font-size: 2.25rem; } }

.cta-body {
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   REVIEWS SECTION
   ============================================================ */
.reviews-section {
  padding: 4rem 0 6rem;
  background: color-mix(in srgb, var(--color-secondary) 30%, transparent);
}
@media (min-width: 768px) { .reviews-section { padding: 6rem 0; } }

.reviews-header { margin-bottom: 3.5rem; }

.reviews-heading {
  font-size: 1.875rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  margin: 0.5rem 0 0;
}
@media (min-width: 768px) { .reviews-heading { font-size: 3rem; } }

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: 7fr 5fr;
  }
  .reviews-stack { display: flex; flex-direction: column; gap: 1.5rem; }
  /* Bottom row */
  .reviews-grid > .review-card:nth-child(3) { grid-column: 1 / 2; }
  .reviews-grid > .review-card:nth-child(4) { grid-column: 2 / 3; }
}

/* Fix bottom row ordering on md+ */
@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: 7fr 5fr;
  }
  /* Row 1: featured (col1) + stack (col2) */
  .review-card--featured { grid-column: 1; grid-row: 1; }
  .reviews-stack         { grid-column: 2; grid-row: 1; }
  /* Row 2: smaller (5fr) + wider tint (7fr) */
  .review-card:not(.review-card--featured):not(.review-card--tint) {
    grid-column: 1; grid-row: 2;
  }
  .review-card--tint {
    grid-column: 2; grid-row: 2;
  }
}

.review-card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-soft);
}
@media (min-width: 768px) { .review-card { padding: 2rem; } }

.review-card--featured {
  background: var(--color-primary);
  color: var(--color-primary-foreground);
  border-color: transparent;
  padding: 2.5rem;
  justify-content: space-between;
}
.review-card--featured .review-text { font-size: 1.125rem; }
@media (min-width: 768px) { .review-card--featured { padding: 2.5rem; } }

.review-card--tint {
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  border-color: transparent;
}

.review-stars { display: flex; gap: 0.25rem; font-size: 1.125rem; color: #facc15; }
.review-card--featured .review-stars { font-size: 1.25rem; }

.review-text {
  line-height: 1.7;
  color: var(--color-muted-foreground);
}
.review-card--featured .review-text {
  color: rgba(255,255,255,0.9);
}

.review-name { font-weight: 600; font-size: 0.875rem; }
.review-source { font-size: 0.75rem; color: var(--color-muted-foreground); }
.review-card--featured .review-source { color: rgba(255,255,255,0.6); }

.review-author { margin-top: auto; }

.reviews-extra-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.reviews-extra-grid:empty {
  display: none;
  margin: 0;
}
@media (min-width: 768px) {
  .reviews-extra-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.review-card--extra {
  background: var(--color-secondary);
  border-color: transparent;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section { padding: 0; }
.contact-inner { padding-block: 5rem 7rem; }
@media (min-width: 768px) { .contact-inner { padding-block: 7rem; } }

@media (max-width: 1023px) {
  .contact-inner.container-wide {
    padding-inline: 2rem;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
}

.contact-info-col { display: flex; flex-direction: column; justify-content: center; }

.contact-heading {
  font-size: 1.875rem;
  margin: 0.5rem 0 1rem;
}
@media (min-width: 768px) { .contact-heading { font-size: 3rem; } }

.contact-body {
  color: var(--color-muted-foreground);
  margin-bottom: 2.5rem;
  max-width: 28rem;
}

.contact-info-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .contact-info-items { grid-template-columns: 1fr 1fr; } }

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-info-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
  transition: background 0.3s;
}
.contact-info-item:hover .contact-info-icon {
  background: color-mix(in srgb, var(--color-primary) 20%, transparent);
}
.contact-info-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-muted-foreground);
  margin-bottom: 0.25rem;
}
.contact-info-value {
  font-size: 0.875rem;
  font-weight: 500;
  word-break: break-all;
  transition: color 0.3s;
}
a.contact-info-value:hover { color: var(--color-primary); }

/* Contact form */
.contact-form-col { }

.contact-success {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-primary);
  border-radius: 1rem;
  padding: 2.5rem;
  color: var(--color-primary-foreground);
  animation: scaleIn 0.5s var(--transition-smooth) forwards;
}
.contact-success[hidden] { display: none; }
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

.contact-success-icon {
  width: 4rem;
  height: 4rem;
  background: rgba(255,255,255,0.2);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--color-primary-foreground);
}
.contact-success-heading { font-size: 1.5rem; margin-bottom: 0.5rem; }
.contact-success-body { color: rgba(255,255,255,0.8); }

.contact-form {
  background: var(--color-secondary);
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
@media (min-width: 768px) { .contact-form { padding: 2.5rem; } }

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }

.form-field { display: flex; flex-direction: column; }
.form-label { font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; }

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: var(--color-foreground);
  transition: box-shadow 0.3s;
  outline: none;
}
.form-input::placeholder { color: var(--color-muted-foreground); }
.form-input:focus {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 50%, transparent);
  border-color: var(--color-primary);
}
.form-textarea { resize: none; }

.contact-submit { font-size: 1rem; }
.submit-icon { flex-shrink: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--color-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}

.footer-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  margin-bottom: 1rem;
}
.footer-brand-name {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.footer-tagline {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  line-height: 1.6;
  max-width: 22rem;
  margin-bottom: 1rem;
}
.footer-social { display: flex; gap: 1rem; }
.footer-social-link {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  transition: color 0.3s;
}
.footer-social-link:hover { color: var(--color-foreground); }

.footer-col-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.footer-nav-list,
.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0; margin: 0;
}
.footer-nav-link,
.footer-nav-list .menu-item a {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  text-decoration: none;
  transition: color 0.3s;
  cursor: pointer;
  background: none; border: none; padding: 0;
  font-family: var(--font-body);
}
.footer-nav-link:hover,
.footer-nav-list .menu-item a:hover { color: var(--color-foreground); }

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}
.footer-contact-link {
  transition: color 0.3s;
}
.footer-contact-link:hover { color: var(--color-foreground); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

.footer-copyright, .footer-credit {
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
}
.footer-credit:hover { color: var(--color-foreground); }

/* ============================================================
   CART DRAWER
   ============================================================ */
#theme-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31,26,35,0.2);
  z-index: 49;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
body.cart-open #theme-cart-overlay {
  opacity: 1;
  pointer-events: auto;
}

#theme-cart-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: 100%;
  max-width: 28rem;
  background: var(--color-background);
  z-index: 51;
  box-shadow: var(--shadow-elevated);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s var(--transition-smooth);
}
body.cart-open #theme-cart-drawer {
  transform: translateX(0);
}
#theme-cart-drawer.is-updating {
  opacity: 0.6;
  pointer-events: none;
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.cart-drawer-title { font-size: 1.125rem; font-weight: 700; }
.cart-drawer-close {
  padding: 0.25rem;
  transition: opacity 0.2s;
}
.cart-drawer-close:hover { opacity: 0.6; }

.cart-drawer-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  gap: 1.5rem;
}
.cart-empty-icon { color: var(--color-muted-foreground); }
.cart-empty-msg { color: var(--color-muted-foreground); }

.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
}
.cart-item-img-link {
  width: 5rem;
  height: 6rem;
  background: var(--color-secondary);
  overflow: hidden;
  flex-shrink: 0;
  display: block;
  border-radius: 0.5rem;
  position: relative;
}
.cart-item-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
}
.cart-item-name {
  font-size: 0.875rem;
  font-weight: 500;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 0.25rem;
  transition: opacity 0.2s;
}
.cart-item-name:hover { opacity: 0.7; }
.cart-item-price { font-size: 0.875rem; color: var(--color-muted-foreground); }
.cart-item-variation {
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
  margin-top: 0.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.cart-qty-btn {
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: background 0.2s;
}
.cart-qty-btn:hover { background: var(--color-secondary); }
.cart-item-qty {
  font-size: 0.875rem;
  min-width: 1.5rem;
  text-align: center;
}
.cart-remove-btn {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
  transition: color 0.2s;
}
.cart-remove-btn:hover { color: var(--color-foreground); }

.cart-drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}
.cart-free-shipping {
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
}
.cart-checkout-btn {
  font-size: 1rem;
  min-height: 3rem;
}

/* ============================================================
   SINGLE PRODUCT PAGE
   ============================================================ */
.back-to-shop-row {
  padding: 1.5rem 0;
}
.back-to-shop-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  transition: color 0.2s;
}
.back-to-shop-link:hover { color: var(--color-foreground); }

/* Single product layout */
.theme-product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 5rem;
}
@media (min-width: 1024px) {
  .theme-product-layout {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.theme-product-gallery,
.theme-product-info {
  min-width: 0;
  max-width: 100%;
}

/* Main product image */
.theme-product-main-image-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--color-secondary);
  overflow: hidden;
  margin-bottom: 1rem;
  width: 100%;
  min-height: 0;
}

/* Thumbnails */
.theme-product-thumbnails {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: 100%;
}
.thumb-btn {
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s;
  cursor: pointer;
  position: relative;
  background: none;
  padding: 0;
}
.thumb-btn:hover { opacity: 1; }
.thumb-btn.is-active {
  border-color: var(--color-primary);
  opacity: 1;
}

/* Product info column */
.theme-product-info {
  padding: 0;
  display: flex;
  flex-direction: column;
}
@media (min-width: 1024px) { .theme-product-info { padding-top: 2.5rem; } }

.product-category {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  margin-bottom: 0.5rem;
  overflow-wrap: break-word;
  word-break: break-word;
}
.product-category a { color: inherit; }

.product-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0.5rem 0 1rem;
  overflow-wrap: break-word;
  word-break: break-word;
}
@media (min-width: 768px) { .product-title { font-size: 1.875rem; } }

.product-price {
  font-size: 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}
.product-price .woocommerce-Price-amount {
  color: inherit;
}

.product-pickup-notice {
  padding: 0.75rem 1rem;
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-primary) 20%, transparent);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.product-description {
  font-family: var(--font-body);
  color: var(--color-muted-foreground);
  line-height: 1.625;
  margin-bottom: 2rem;
  overflow-wrap: break-word;
  word-break: break-word;
}
.product-description p {
  margin: 0;
}

/* Add to cart area */
.theme-add-to-cart-area {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.theme-quantity-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  background: var(--color-background);
}
.theme-qty-minus,
.theme-qty-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
  transition: background 0.2s;
}
.theme-qty-minus:hover,
.theme-qty-plus:hover { background: var(--color-secondary); }
.theme-qty-display {
  padding: 0.75rem 1rem;
  min-width: 3rem;
  text-align: center;
}
.theme-qty-input {
  display: none;
}

/* Make add-to-cart button flex 1 */
.single-product .single_add_to_cart_button {
  flex: 1 1 auto;
  min-width: 0;
}

.theme-btn-lg {
  min-height: 2.75rem !important;
  padding: 0 2rem !important;
  font-size: 1rem !important;
  border-radius: 0.375rem !important;
}

/* Product details section */
.product-details-section {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
}
.product-details-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.product-details-body {
  color: var(--color-muted-foreground);
  font-size: 0.875rem;
  line-height: 1.7;
  overflow-wrap: break-word;
  word-break: break-word;
}
.product-details-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0;
}
.product-details-body li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.product-details-body li::before {
  content: '';
  width: 0.375rem;
  height: 0.375rem;
  background: var(--color-primary);
  border-radius: 9999px;
  flex-shrink: 0;
  margin-top: 0.5rem;
}

/* Related products */
.related-products-section {
  border-top: 1px solid var(--color-border);
  padding: 5rem 0;
}
.related-heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) { .related-heading { font-size: 1.5rem; } }

.related-products-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .related-products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

/* ============================================================
   WOOCOMMERCE OVERRIDES
   ============================================================ */

/* Add-to-cart button style override */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
  background-color: var(--color-primary) !important;
  color: var(--color-primary-foreground) !important;
  border: none !important;
  border-radius: 0.375rem !important;
  min-height: var(--btn-height) !important;
  padding: var(--btn-padding) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--font-body) !important;
  font-size: var(--btn-font-size) !important;
  font-weight: var(--btn-font-weight) !important;
  letter-spacing: var(--btn-letter-spacing) !important;
  text-transform: none !important;
  cursor: pointer !important;
  transition: opacity 0.2s ease !important;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
  opacity: 0.85 !important;
  background-color: var(--color-primary) !important;
  color: var(--color-primary-foreground) !important;
}

.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
  cursor: not-allowed !important;
  opacity: 0.4 !important;
  pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
  opacity: 0.4 !important;
  background-color: var(--color-primary) !important;
}

/* Button loading state */
.ajax_add_to_cart.theme-btn-loading {
  opacity: 0.6 !important;
  pointer-events: none !important;
  cursor: wait !important;
}

.single_add_to_cart_button.theme-btn-added {
  opacity: 1 !important;
  pointer-events: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem;
}
.single_add_to_cart_button.theme-btn-added svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* Hide "View cart" after AJAX add */
.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward {
  display: none !important;
}

/* WooCommerce notices — scoped */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }

/* WooCommerce variations table reflow */
.single-product .variations.shop_attributes tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td {
  display: block;
  width: 100%;
}
.single-product .variations tbody td.label { padding-bottom: 0.25rem; }
.single-product .variations tbody td.value { padding-top: 0; }
.theme-attr-select-hidden { display: none !important; }

/* Price */
.woocommerce-Price-amount, .price { color: var(--color-primary); font-weight: 600; }

/* Shop archive */
.shop-archive-header { padding: 0 0 1.5rem; }

/* ============================================================
   WOOCOMMERCE PAGES (except checkout)
   ============================================================ */
body.woocommerce:not(.woocommerce-checkout) .site-main.theme-no-hero-main {
  padding-top: calc(var(--header-height) + var(--wc-page-padding-top));
  padding-bottom: var(--wc-page-padding-bottom);
}

body.single-product .site-main.theme-single-product-main {
  padding-bottom: var(--wc-page-padding-bottom);
}

/* My Account — extra breathing room */
body.theme-account-page .site-main.theme-no-hero-main,
body.woocommerce-account .site-main.theme-no-hero-main {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 6rem;
}

body.theme-account-page .container-wide,
body.woocommerce-account .container-wide {
  padding-top: 1rem;
  padding-bottom: 2rem;
}

body.theme-account-page .page-title,
body.woocommerce-account .page-title {
  margin-bottom: 2rem;
}

body.theme-account-page:not(.logged-in) .woocommerce,
body.woocommerce-account:not(.logged-in) .woocommerce {
  max-width: 36rem;
}

/* ============================================================
   THANK YOU PAGE
   ============================================================ */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .woocommerce-order { padding: 2rem 0; }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  padding: 0 0 1rem;
  color: var(--color-foreground);
}
body.theme-thankyou-page .woocommerce-order-overview {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 0;
  margin-bottom: 2rem;
}
body.theme-thankyou-page .woocommerce-order-overview li {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}
body.theme-thankyou-page .woocommerce-order-details table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.875rem;
}
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }
body.theme-thankyou-page .woocommerce-customer-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}
body.theme-thankyou-page .woocommerce-customer-details address {
  max-width: 480px;
  overflow-wrap: break-word;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  line-height: 1.6;
}

/* ============================================================
   CHECKOUT
   ============================================================ */
body.woocommerce-checkout .site-main {
  padding-top: var(--header-height);
  padding-bottom: 4rem;
}
body.woocommerce-checkout .page-title {
  font-family: var(--font-display);
  font-size: 2rem;
  padding: 2rem 0 1rem;
}
body.woocommerce-checkout .entry-content { max-width: 100%; }

@media (min-width: 768px) {
  body.woocommerce-checkout .wc-block-checkout {
    display: block;
  }
  body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--checkout-gap);
    align-items: start;
  }
}
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
  min-width: 0;
  width: 100%;
  max-width: none;
}
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select {
  width: 100% !important;
  max-width: none !important;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-foreground);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  background: var(--color-background);
  outline: none;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 30%, transparent);
}
body.woocommerce-checkout .wc-block-checkout__sidebar {
  background: var(--color-secondary);
  border-radius: var(--card-radius);
  padding: var(--section-padding);
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  background-color: var(--color-primary) !important;
  color: var(--color-primary-foreground) !important;
  border-radius: var(--btn-radius) !important;
  font-family: var(--font-body) !important;
  font-size: var(--btn-font-size) !important;
  font-weight: var(--btn-font-weight) !important;
  border: none !important;
  padding: var(--btn-padding) !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
  opacity: 0.85 !important;
}

/* Thank you — more breathing room than standard checkout */
body.woocommerce-checkout.theme-thankyou-page .site-main {
  padding-top: calc(var(--header-height) + var(--wc-page-padding-top));
  padding-bottom: var(--wc-page-padding-bottom);
}

/* ============================================================
   PAGE TITLE (generic pages)
   ============================================================ */
.page-title {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  padding-top: 2rem;
}

/* ============================================================
   CUSTOMIZER LIVE-PREVIEW TRANSITIONS
   ============================================================ */
.hero-title,
.stripe-title,
.about-heading,
.maker-heading,
.shop-heading,
.cta-heading,
.reviews-heading,
.contact-heading,
.hero-subtitle,
.about-para,
.maker-body p,
.cta-body {
  transition: color 0.2s, opacity 0.2s;
}

/* ============================================================
   CUSTOMIZER LIVE-PREVIEW (skip scroll-reveal hide on dynamic slots)
   ============================================================ */
body.doc-customize-preview .reveal-item,
body.doc-customize-preview .reveal-item.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-muted-foreground { color: var(--color-muted-foreground); }
.font-body    { font-family: var(--font-body); }
.font-display { font-family: var(--font-display); }
.font-semibold { font-weight: 600; }

/* Padding helpers */
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.mb-2  { margin-bottom: 0.5rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
