/* =========================================================================
   OnesMusings theme stylesheet
   Author: The Free Website Guys
   ========================================================================= */

@import url('../src/design-tokens.css');

/* -------------------------------------------------------------------------
   1. TOKENS (fallbacks — live values are injected inline by functions.php)
   ---------------------------------------------------------------------- */
:root {
  --logo-height: 75px;

  --font-display: 'Shadows Into Light', cursive;
  --font-body: 'Karla', system-ui, sans-serif;

  --radius: 0;
  --card-radius: 0;
  --btn-radius: 0;
  --btn-height: 3.2rem;
  --btn-padding: 0.9rem 2.4rem;
  --btn-font-size: 11px;
  --btn-font-weight: 500;
  --btn-letter-spacing: 0.28em;
  --btn-text-transform: uppercase;
  --btn-icon-padding: 0.6rem;

  /* Overridden at runtime via theme_get_theme_shadow_vars() when Customizer colors load. */
  --shadow-soft: 0 2px 14px -6px hsl(250 37% 8% / 0.25);
  --shadow-elevated: 0 10px 40px -12px hsl(250 37% 8% / 0.35);
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 110px;
  --checkout-gap: 2rem;
  --checkout-max-width: 1280px;
}

/* -------------------------------------------------------------------------
   2. RESET / BASE
   ---------------------------------------------------------------------- */
* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: clip; }
html { scroll-padding-top: 6rem; }
html:has(body.admin-bar) { scroll-padding-top: calc(6rem + 46px); }
@media screen and (min-width: 783px) {
  html:has(body.admin-bar) { scroll-padding-top: calc(6rem + 32px); }
}
body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
img:not(.cover-img):not(.hero-bg-img):not(.product-card-img):not(.theme-product-gallery__img):not(.theme-product-gallery__thumb-img):not(.theme-related-card__img):not(.area-card__bg) {
  max-width: 100%;
  height: auto;
}
.cover-img, .hero-bg-img, .product-card-img, .area-card__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

a[href],
button:not(:disabled),
input[type="submit"],
input[type="button"],
input[type="reset"],
select,
summary,
.btn,
.theme-nav-link,
.header-icon-btn,
.shop-cat-btn,
.areas-nav__btn,
.support-tier-btn,
.area-card,
.blog-card,
.theme-product-card,
.link-underline,
[data-contact-open],
[data-cart-open],
[data-modal-close],
.theme-anchor-link {
  cursor: pointer;
}
button:disabled,
input:disabled {
  cursor: not-allowed;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: inherit;
  font-size: inherit;
  letter-spacing: -0.015em;
  margin: 0;
}
.font-display { font-family: var(--font-display); font-weight: inherit; font-size: inherit; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* Sharp corners by default; pills/dots are exceptions */
.rounded-sm, .rounded, .rounded-md, .rounded-lg, .rounded-xl, .rounded-2xl, .rounded-3xl, .rounded-full { border-radius: 0 !important; }
.pill-frame { border-radius: 1rem !important; }
.dot-frame { border-radius: 9999px !important; }

.container-wide {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding-inline: 1rem;
  padding-block: 0;
}
@media (min-width: 640px) { .container-wide { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container-wide { padding-inline: 2rem; } }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.scrollbar-hide { scrollbar-width: none; -ms-overflow-style: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

.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); }

/* -------------------------------------------------------------------------
   3. ANIMATIONS (Section 2.1)
   ---------------------------------------------------------------------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes starfieldDrift { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes floatY { 0%, 100% { transform: translateY(-8px); } 50% { transform: translateY(8px); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

.animate-fade-in { animation: fadeIn 0.6s var(--transition-smooth) forwards; }
.animate-slide-up { animation: slideUp 0.6s var(--transition-smooth) forwards; }

.reveal-item {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--transition-smooth), transform 0.9s var(--transition-smooth);
}
.reveal-item.is-visible { opacity: 1; transform: translateY(0); }
.reveal-item.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-item.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-item.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-item.reveal-delay-4 { transition-delay: 0.48s; }
.reveal-item.reveal-delay-5 { transition-delay: 0.60s; }

/* Customizer / no-JS fallback: never hide content */
body.is-customizer .reveal-item,
html.no-js .reveal-item {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-item { transition: none !important; opacity: 1 !important; transform: none !important; }
  .starfield::before, .starfield::after { animation: none !important; }
  * { scroll-behavior: auto !important; }
}

/* Cosmic wash overlay for hero */
.cosmic-wash {
  background-image:
    radial-gradient(ellipse at 20% 10%, color-mix(in srgb, var(--color-primary) 12%, transparent), transparent 55%),
    radial-gradient(ellipse at 90% 90%, color-mix(in srgb, var(--color-cosmic-violet) 18%, transparent), transparent 60%);
}

.starfield { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.starfield::before, .starfield::after {
  content: ''; position: absolute; inset: -10%;
  background-image:
    radial-gradient(2px 2px at 20px 30px, color-mix(in srgb, var(--color-foreground) 85%, transparent), transparent),
    radial-gradient(2px 2px at 40px 70px, color-mix(in srgb, var(--color-foreground) 65%, transparent), transparent),
    radial-gradient(1px 1px at 90px 40px, color-mix(in srgb, var(--color-foreground) 75%, transparent), transparent),
    radial-gradient(1px 1px at 130px 80px, color-mix(in srgb, var(--color-foreground) 55%, transparent), transparent),
    radial-gradient(2px 2px at 160px 20px, color-mix(in srgb, var(--color-foreground) 70%, transparent), transparent),
    radial-gradient(1px 1px at 200px 50px, color-mix(in srgb, var(--color-foreground) 50%, transparent), transparent),
    radial-gradient(2px 2px at 250px 90px, color-mix(in srgb, var(--color-foreground) 60%, transparent), transparent),
    radial-gradient(1px 1px at 300px 30px, color-mix(in srgb, var(--color-foreground) 80%, transparent), transparent),
    radial-gradient(2px 2px at 340px 70px, color-mix(in srgb, var(--color-foreground) 45%, transparent), transparent),
    radial-gradient(1px 1px at 380px 110px, color-mix(in srgb, var(--color-foreground) 65%, transparent), transparent);
  background-size: 800px 150px;
  animation: starfieldDrift 120s linear infinite;
  opacity: 0.6;
}
.starfield::after { animation-duration: 180s; animation-direction: reverse; opacity: 0.35; transform: scale(1.2); }

/* -------------------------------------------------------------------------
   4. HEADER
   ---------------------------------------------------------------------- */
.announcement-bar {
  position: relative;
  z-index: 55;
  background: var(--color-primary);
  color: var(--color-button-text);
  isolation: isolate;
}
.announcement-bar .container-wide.announcement-bar__inner {
  padding-block: 0.75rem 0.8125rem;
  padding-inline-end: 2.75rem;
  text-align: center;
}
.announcement-bar__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--font-body);
}
.announcement-bar__close { position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); padding: 0.25rem; opacity: 0.7; background: transparent; border: none; color: inherit; }
.announcement-bar__close:hover { opacity: 1; }

.site-header {
  position: sticky; top: 1rem; z-index: 50;
  margin: 0 auto; width: calc(100% - 1.5rem); max-width: 80rem;
  border-radius: 1rem !important;
  background: color-mix(in srgb, var(--color-background) 25%, transparent);
  backdrop-filter: blur(12px);
  border: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s var(--transition-smooth);
}
.site-header.is-solid,
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--color-background) 70%, transparent);
  border-color: var(--color-border);
}

/* Keep sticky header below the WordPress admin bar (Customizer preview + logged-in front end). */
body.admin-bar .site-header {
  top: calc(46px + 1rem);
}
@media screen and (min-width: 783px) {
  body.admin-bar .site-header {
    top: calc(32px + 1rem);
  }
}

.site-header__inner { padding: 0 1.25rem; }
@media (min-width: 1024px) { .site-header__inner { padding: 0 2rem; } }

.site-header__nav { display: flex; align-items: center; justify-content: space-between; height: 110px; transition: height 0.3s var(--transition-smooth); }
.site-header.is-scrolled .site-header__nav { height: 100px; }

.site-logo-link { display: flex; align-items: center; line-height: 1; }
.site-logo-img { height: var(--logo-height) !important; width: auto !important; display: block; object-fit: contain; transition: height 0.3s var(--transition-smooth); }
.site-header.is-scrolled .site-logo-img { height: calc(var(--logo-height) - 5px) !important; }
.site-logo-text { font-family: var(--font-display); font-size: 1.75rem; line-height: var(--logo-height); display: block; }

.theme-nav-list {
  display: none;
  align-items: center;
  gap: 2rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
@media (min-width: 1024px) { .theme-nav-list { display: flex; } }
.theme-nav-link { font-family: var(--font-display); font-size: 14px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }

.site-header__actions { display: flex; align-items: center; gap: 0.5rem; }
@media (min-width: 768px) { .site-header__actions { gap: 0.75rem; } }
.header-icon-btn { padding: 0.5rem; background: transparent; border: none; color: var(--color-foreground); transition: opacity 0.2s; }
.header-icon-btn:hover { opacity: 0.6; }
.header-search-btn { display: none; }
@media (min-width: 768px) { .header-search-btn { display: inline-flex; } }
.header-mobile-toggle { display: inline-flex; }
@media (min-width: 1024px) { .header-mobile-toggle { display: none; } }

.header-cart-btn { position: relative; }
.theme-cart-count-badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 20px; height: 20px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 500;
  background: var(--color-primary); color: var(--color-button-text);
  border-radius: 9999px !important;
}
.theme-cart-count-badge:empty { display: none; }
.theme-cart-count {
  position: absolute; top: -2px; right: -2px;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 500;
  background: var(--color-primary); color: var(--color-button-text);
  border-radius: 9999px !important;
}
.theme-cart-count:empty { display: none; }

.header-mobile-menu { display: none; border-top: 1px solid var(--color-border); padding: 1rem 0; }
.header-mobile-menu.is-open { display: block; animation: fadeIn 0.3s var(--transition-smooth); }
.header-mobile-menu .theme-nav-list { position: static; transform: none; flex-direction: column; align-items: flex-start; gap: 1rem; display: flex; }
.header-mobile-menu .theme-nav-link { font-size: 14px; letter-spacing: 0.18em; padding: 0.5rem 0; }

/* Transparent header on home hero, no top padding needed */
body.theme-no-hero .site-main { padding-top: calc(var(--header-height) + 2rem); }
body:not(.theme-no-hero) .site-main { padding-top: 0; }

/* -------------------------------------------------------------------------
   5. FOOTER
   ---------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--color-border); background: var(--color-secondary); }
.site-footer__top { padding: 2.5rem 0 1.5rem; display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 768px) { .site-footer__top { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer-nav-list { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; }
.footer-nav-list .theme-nav-link { font-size: 12px; letter-spacing: 0.22em; color: var(--color-muted-foreground); }
.footer-nav-list .theme-nav-link:hover { color: var(--color-foreground); }
.footer-contact { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-contact a { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--color-muted-foreground); }
.footer-contact a:hover { color: var(--color-foreground); }
.site-footer__bottom { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--color-border); display: grid; grid-template-columns: 1fr; gap: 0.75rem; align-items: center; padding-bottom: 1.5rem; }
@media (min-width: 640px) { .site-footer__bottom { grid-template-columns: 1fr 1fr; } }
.footer-copy { font-size: 12px; color: var(--color-muted-foreground); text-align: center; }
.footer-tagline { font-size: 12px; color: var(--color-muted-foreground); font-family: var(--font-display); font-style: italic; text-align: center; }
@media (min-width: 640px) { .footer-copy { text-align: left; } .footer-tagline { text-align: right; } }

/* -------------------------------------------------------------------------
   6. BUTTONS / CTAs (shared classes)
   ---------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: var(--btn-font-weight);
  font-size: var(--btn-font-size); letter-spacing: var(--btn-letter-spacing);
  text-transform: var(--btn-text-transform);
  padding: var(--btn-padding); border-radius: var(--btn-radius);
  border: none; cursor: pointer; transition: all 0.3s var(--transition-smooth);
}
.btn-primary { background: var(--color-primary); color: var(--color-button-text); box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: color-mix(in srgb, var(--color-primary) 90%, transparent); box-shadow: var(--shadow-elevated); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 1px solid var(--color-border); color: var(--color-foreground); }
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-text {
  background: transparent; border: none; font-family: var(--font-body); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-foreground) 80%, transparent);
  transition: color 0.3s var(--transition-smooth);
}
.btn-text:hover { color: var(--color-foreground); }

/* -------------------------------------------------------------------------
   7. HERO
   ---------------------------------------------------------------------- */
.hero-section {
  position: relative; margin-top: -126px; padding-top: 126px;
  min-height: 100vh; display: flex; align-items: center; overflow: hidden;
  background: var(--color-background);
}
/* Hero negative margin overlaps the header only — not the announcement bar above it. */
body.has-announcement-bar .hero-section {
  margin-top: -110px;
  padding-top: 110px;
}
.hero-media { position: absolute; inset: 0; }
.hero-media video, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media__scrim-1 { position: absolute; inset: 0; background: color-mix(in srgb, var(--color-background) 70%, transparent); }
.hero-media__scrim-2 { position: absolute; inset: 0; background: linear-gradient(to top, var(--color-background), transparent 45%, color-mix(in srgb, var(--color-background) 40%, transparent)); }
.hero-content { position: relative; padding-block: 6rem 8rem; }
@media (min-width: 768px) { .hero-content { padding-block: 8rem; } }
.hero-inner { max-width: 48rem; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--color-primary); margin-bottom: 1.25rem; }
.hero-title { font-family: var(--font-display); font-weight: 400; font-size: 2.5rem; line-height: 1.05; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .hero-title { font-size: 3.75rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 4.5rem; } }
.hero-subtitle { color: color-mix(in srgb, var(--color-foreground) 80%, transparent); font-size: 1rem; line-height: 1.6; margin-bottom: 2.5rem; max-width: 36rem; }
@media (min-width: 768px) { .hero-subtitle { font-size: 1.125rem; } }
.hero-cta-row { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; }
@media (min-width: 640px) { .hero-cta-row { flex-direction: row; } }

/* -------------------------------------------------------------------------
   8. SECTION HEADINGS (per-section scale — Section 2.2.5)
   ---------------------------------------------------------------------- */
.theme-section { position: relative; }
.theme-section__inner { padding-block: 4rem; }
@media (min-width: 768px) { .theme-section__inner { padding-block: 5rem; } }
@media (min-width: 1024px) { .theme-section__inner { padding-block: 7rem; } }
.section-eyebrow { display: block; text-align: center; font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--color-primary); margin-bottom: 0.75rem; }
.section-intro { text-align: center; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .section-intro { margin-bottom: 3.5rem; } }

.areas-section .section-heading,
.shop-heading,
.blog-heading,
.newsletter-heading {
  font-family: var(--font-display); font-weight: 400; text-align: center;
  font-size: 1.875rem; line-height: 1.1;
}
@media (min-width: 768px) { .areas-section .section-heading, .shop-heading, .blog-heading, .newsletter-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .areas-section .section-heading, .shop-heading, .blog-heading, .newsletter-heading { font-size: 3.75rem; } }

.about-section .section-heading {
  font-family: var(--font-display); font-weight: 400; font-size: 2.25rem; line-height: 1.05; letter-spacing: -0.02em;
}
@media (min-width: 768px) { .about-section .section-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .about-section .section-heading { font-size: 3.75rem; } }

.support-section .section-heading,
.contact-section .section-heading {
  font-family: var(--font-display); font-weight: 400; text-align: center;
  font-size: 1.875rem; line-height: 1.05;
}
@media (min-width: 768px) { .support-section .section-heading, .contact-section .section-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .support-section .section-heading, .contact-section .section-heading { font-size: 3.75rem; } }

/* -------------------------------------------------------------------------
   9. AREAS CAROUSEL
   ---------------------------------------------------------------------- */
.areas-section { background: var(--color-background); scroll-margin-top: 6rem; }
.areas-carousel-wrap { position: relative; }
.areas-track {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 1rem; margin: 0; padding-left: 0; padding-right: 0;
  scroll-padding-inline: 0;
}
@media (min-width: 640px) {
  .areas-track { margin: 0; padding-left: 0; padding-right: 0; gap: 1.5rem; }
}
.area-card {
  position: relative; flex: 0 0 100%; width: 100%; max-width: 100%; scroll-snap-align: start;
  min-height: 320px; text-align: left; padding: 1.5rem;
  overflow: hidden; background: var(--color-muted);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.3s var(--transition-smooth), border-color 0.3s var(--transition-smooth), transform 0.25s cubic-bezier(0.16,1,0.3,1);
  color: var(--color-foreground);
  box-sizing: border-box;
}
@media (min-width: 640px) {
  .area-card {
    flex: 0 0 46%;
    width: 46%;
    max-width: 46%;
    padding: 2rem;
  }
}
@media (min-width: 1024px) {
  .area-card {
    flex: 0 0 31.5%;
    width: 31.5%;
    max-width: 31.5%;
  }
}
.area-card:hover { border-color: color-mix(in srgb, var(--color-primary) 50%, transparent); box-shadow: var(--shadow-elevated); transform: translateY(-6px); }
.area-card__bg {
  z-index: 0;
  opacity: 0.6;
  transition: opacity 0.7s, transform 0.7s;
}
.area-card__icon,
.area-card__title,
.area-card__desc,
.area-card__link { z-index: 2; }
.area-card:hover .area-card__bg { opacity: 0.75; transform: scale(1.05); }
.area-card__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, color-mix(in srgb, var(--color-secondary) 85%, transparent), color-mix(in srgb, var(--color-secondary) 60%, transparent), color-mix(in srgb, var(--color-secondary) 25%, transparent));
}
.area-card__icon { position: relative; display: flex; height: 3rem; width: 3rem; align-items: center; justify-content: center; border: 1px solid color-mix(in srgb, var(--color-primary) 40%, transparent); color: var(--color-primary); margin-bottom: 1.25rem; background: color-mix(in srgb, var(--color-background) 50%, transparent); }
.area-card__title { position: relative; font-size: 1.5rem; font-weight: 400; margin-bottom: 0.5rem; }
@media (min-width: 768px) { .area-card__title { font-size: 1.875rem; } }
.area-card__desc { position: relative; color: color-mix(in srgb, var(--color-foreground) 90%, transparent); line-height: 1.6; margin-bottom: 1.25rem; }
.area-card__link { position: relative; display: inline-flex; align-items: center; gap: 0.375rem; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-primary); }

.areas-nav { display: flex; justify-content: center; gap: 0.75rem; margin-top: 1.5rem; }
.areas-nav__btn { display: flex; height: 2.75rem; width: 2.75rem; align-items: center; justify-content: center; border: 1px solid var(--color-border); color: var(--color-foreground); background: transparent; transition: color 0.2s, border-color 0.2s; }
.areas-nav__btn:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* -------------------------------------------------------------------------
   10. SHOP SECTION
   ---------------------------------------------------------------------- */
.shop-section { background: color-mix(in srgb, var(--color-secondary) 30%, var(--color-background)); scroll-margin-top: 6rem; }
.shop-header { text-align: center; margin-bottom: 3rem; }
.shop-heading { margin-bottom: 2.5rem; }

.shop-search { position: relative; max-width: 28rem; margin: 0 auto 2rem; }
.shop-search__icon { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1rem; height: 1rem; color: var(--color-muted-foreground); }
.shop-search__input {
  width: 100%; padding: 0.5rem 0 0.5rem 1.75rem; background: transparent;
  border: none; border-bottom: 1px solid var(--color-border);
  color: var(--color-foreground); font-family: var(--font-body); font-size: 1rem;
}
.shop-search__input:focus { outline: none; border-color: var(--color-foreground); }
.shop-search__input::placeholder { color: var(--color-muted-foreground); }

.shop-categories { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 1rem; }
.shop-cat-btn {
  padding: 0.5rem 1.25rem; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  border: 1px solid var(--color-border); background: transparent; color: var(--color-foreground);
  transition: all 0.3s var(--transition-smooth);
}
.shop-cat-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.shop-cat-btn.is-active { background: var(--color-primary); color: var(--color-button-text); border-color: var(--color-primary); }

.shop-price-toggle {
  display: flex; align-items: center; gap: 0.5rem; margin: 0 auto; padding: 0.5rem 1rem;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground);
  background: transparent; border: none; transition: color 0.3s;
}
.shop-price-toggle:hover { color: var(--color-foreground); }
.shop-price-toggle__chevron { width: 0.875rem; height: 0.875rem; transition: transform 0.3s; }
.shop-price-toggle.is-open .shop-price-toggle__chevron { transform: rotate(180deg); }
.shop-price-toggle__hint { opacity: 0.7; text-transform: none; letter-spacing: normal; }

.shop-price-panel { width: 100%; max-width: 24rem; margin: 0 auto; overflow: hidden; max-height: 0; opacity: 0; transition: max-height 0.3s var(--transition-smooth), opacity 0.3s var(--transition-smooth); }
.shop-price-panel.is-open { max-height: 10rem; opacity: 1; }
.shop-price-panel__inner { padding: 0.5rem 0; }
.shop-price-labels { display: flex; justify-content: space-between; font-size: 0.875rem; color: var(--color-muted-foreground); margin-top: 0.75rem; }

.theme-product-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.5rem; align-items: stretch;
}
@media (min-width: 768px) { .theme-product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2rem; } }
@media (min-width: 1024px) { .theme-product-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }

.shop-showmore { text-align: center; margin-top: 3rem; }
.shop-empty { text-align: center; padding: 5rem 0; color: var(--color-muted-foreground); }

/* -------------------------------------------------------------------------
   11. PRODUCT CARD
   ---------------------------------------------------------------------- */
.theme-product-card-wrap { display: flex; flex-direction: column; height: 100%; }
.theme-product-card { position: relative; display: flex; flex-direction: column; height: 100%; }
.theme-product-card__image-wrapper {
  position: relative; aspect-ratio: 3/4; background: var(--color-card); overflow: hidden; margin-bottom: 1.25rem;
  border: 2px solid color-mix(in srgb, var(--color-foreground) 25%, transparent);
  box-shadow: var(--shadow-soft); transition: box-shadow 0.3s, transform 0.25s cubic-bezier(0.16,1,0.3,1);
}
.theme-product-card:hover .theme-product-card__image-wrapper { box-shadow: var(--shadow-elevated); transform: translateY(-6px); }
.theme-product-card__image-link {
  position: absolute; inset: 0; z-index: 1; display: block;
}
.theme-product-card__image-link .product-card-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(1.06) contrast(1.03) saturate(1.04);
  transition: transform 0.7s var(--transition-smooth), filter 0.3s;
}
.theme-product-card:hover .theme-product-card__image-link .product-card-img { transform: scale(1.04); filter: brightness(1.08) contrast(1.03) saturate(1.04); }
.theme-product-card.is-soldout .theme-product-card__image-link .product-card-img { opacity: 0.6; }

.theme-product-card__badge {
  position: absolute; top: 0.75rem; left: 0.75rem; z-index: 3;
  padding: 0.25rem 0.75rem; font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  background: var(--color-foreground); color: var(--color-background); border-radius: 9999px !important;
}
.theme-product-card__quick-add {
  position: absolute; bottom: 0.75rem; right: 0.75rem; z-index: 4;
  width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center;
  background: var(--color-background); color: var(--color-foreground); box-shadow: var(--shadow-soft);
  border-radius: 9999px !important; border: none;
  opacity: 1; cursor: pointer; transition: opacity 0.3s, transform 0.2s;
}
@media (min-width: 768px) {
  .theme-product-card__quick-add { opacity: 0; }
  .theme-product-card:hover .theme-product-card__quick-add { opacity: 1; }
}
.theme-product-card__quick-add:hover { transform: scale(1.08); }
.theme-product-card__quick-add:active { transform: scale(0.92); }

.theme-product-card__info { text-align: center; margin-top: 1rem; flex: 1; display: flex; flex-direction: column; justify-content: flex-start; gap: 0.5rem; min-width: 0; }
.theme-product-card__title {
  font-size: 0.875rem; font-family: var(--font-body); font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.15em; line-height: 1.4; color: var(--color-foreground); transition: color 0.3s;
  overflow: hidden; margin: 0;
}
.theme-product-card__title-link { color: inherit; text-decoration: none; }
.theme-product-card:hover .theme-product-card__title-link { color: var(--color-primary); }
.theme-product-card__price { font-size: 1rem; font-family: var(--font-body); font-weight: 400; color: var(--color-foreground); }
@media (min-width: 768px) { .theme-product-card__title { font-size: 1rem; } .theme-product-card__price { font-size: 1.125rem; } }

/* Card compact add-to-cart (icon button) — overrides global button rules */
.theme-product-card .theme-product-card__quick-add.ajax_add_to_cart {
  min-height: unset !important;
  height: 2.5rem !important;
  width: 2.5rem !important;
  padding: 0 !important;
  border-radius: 9999px !important;
  background: var(--color-background) !important;
  color: var(--color-foreground) !important;
  font-size: 0 !important;
  display: flex !important; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft) !important;
}
.theme-product-card .theme-product-card__quick-add.ajax_add_to_cart::before {
  content: '+'; font-size: 1.25rem; font-family: var(--font-body); color: inherit;
}

/* -------------------------------------------------------------------------
   12. PRICE RANGE SLIDER (dual overlapping handles — Section 31.4)
   ---------------------------------------------------------------------- */
.price-range-wrapper { position: relative; height: 1.5rem; margin-bottom: 0.5rem; }
.range-track-bg, .range-track-fill { position: absolute; height: 4px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.range-track-bg { left: 0; right: 0; background: var(--color-border); }
.range-track-fill { background: var(--color-primary); }
.range-input {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; margin: 0;
  -webkit-appearance: none; appearance: none; background: transparent; pointer-events: none;
}
.range-input::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto; width: 18px; height: 18px;
  border-radius: 9999px; border: 2px solid var(--color-primary); background: var(--color-background); cursor: pointer;
}
.range-input::-moz-range-thumb {
  pointer-events: auto; width: 18px; height: 18px; border-radius: 9999px;
  border: 2px solid var(--color-primary); background: var(--color-background); cursor: pointer;
}
.range-input--max { z-index: 3; }
.range-input--min { z-index: 4; }

/* -------------------------------------------------------------------------
   13. ABOUT SECTION
   ---------------------------------------------------------------------- */
.about-section { position: relative; background: var(--color-background); overflow: hidden; scroll-margin-top: 6rem; }
.about-layout {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: center;
}
@media (min-width: 1024px) {
  .about-layout {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 4rem;
  }
  .about-media { grid-column: span 5; }
  .about-copy { grid-column: span 7; }
}
.about-media { position: relative; }
.about-media__frame { position: relative; aspect-ratio: 4/5; overflow: hidden; box-shadow: var(--shadow-elevated); border: 1px solid var(--color-border); }
.about-media__float { position: absolute; inset: -3%; animation: floatY 6s ease-in-out infinite; }
.about-kicker { display: none; position: absolute; top: -1rem; left: -1rem; font-family: var(--font-display); font-style: italic; color: var(--color-primary); font-size: 13px; letter-spacing: 0.32em; text-transform: uppercase; }
@media (min-width: 1024px) { .about-kicker { display: block; } }
.about-copy { min-width: 0; }
@media (min-width: 1024px) { .about-copy { padding-left: 2.5rem; } }
.about-eyebrow { display: block; font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--color-primary); font-weight: 600; margin-bottom: 1rem; }
.about-section .section-heading { margin-bottom: 2rem; }
.about-heading-accent { display: block; font-style: italic; color: var(--color-primary); }
.about-quote {
  margin: 0 0 2rem;
  padding: 0 0 0 1.25rem;
  border: none;
  border-left: 2px solid var(--color-primary);
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.375;
  color: color-mix(in srgb, var(--color-foreground) 85%, transparent);
  text-wrap: balance;
}
@media (min-width: 768px) { .about-quote { font-size: 1.5rem; } }
.about-paragraph { color: color-mix(in srgb, var(--color-foreground) 80%, transparent); line-height: 1.7; margin-bottom: 1.25rem; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding-top: 2rem; margin-top: 1.5rem; border-top: 1px solid var(--color-border); }
.about-stat__number { font-family: var(--font-display); font-size: 1.875rem; color: var(--color-primary); }
@media (min-width: 768px) { .about-stat__number { font-size: 2.25rem; } }
.about-stat__label { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-muted-foreground); margin-top: 0.25rem; }

/* -------------------------------------------------------------------------
   14. SUPPORT SECTION
   ---------------------------------------------------------------------- */
.support-section { position: relative; background: color-mix(in srgb, var(--color-primary) 5%, var(--color-background)); overflow: hidden; scroll-margin-top: 6rem; }
.support-section__bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; }
@media (min-width: 640px) { .support-section__bg { background-attachment: fixed; } }
.support-section__scrim { position: absolute; inset: 0; z-index: 0; background: color-mix(in srgb, var(--color-background) 80%, transparent); pointer-events: none; }
.support-section__bg { z-index: 0; }
.support-section .theme-section__inner { position: relative; z-index: 1; }
.support-inner { position: relative; z-index: 1; max-width: 48rem; margin: 0 auto; text-align: center; }
.support-eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--color-primary); margin-bottom: 1.25rem; }
.support-section .section-heading { margin-bottom: 1.5rem; }
.support-description { color: color-mix(in srgb, var(--color-foreground) 70%, transparent); line-height: 1.7; max-width: 36rem; margin: 0 auto 2.5rem; }
.support-tiers {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem;
  max-width: 32rem; margin: 0 auto; width: 100%;
}
@media (min-width: 768px) { .support-tiers { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.support-tier-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 100%;
  padding: 1rem; border: 1px solid var(--color-primary) !important; color: var(--color-primary) !important;
  background: transparent !important; border-radius: 0 !important;
  font-family: var(--font-body); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  min-height: 44px; cursor: pointer;
  transition: background 0.3s var(--transition-smooth), color 0.3s var(--transition-smooth);
}
.support-tier-btn:hover {
  background: var(--color-primary) !important; color: var(--color-button-text) !important;
}

/* -------------------------------------------------------------------------
   15. BLOG SECTION
   ---------------------------------------------------------------------- */
.blog-section { background: var(--color-background); scroll-margin-top: 6rem; }
.blog-header { text-align: center; margin-bottom: 3.5rem; }
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.blog-card { display: block; }
.blog-card__media { position: relative; aspect-ratio: 3/2; overflow: hidden; border: 1px solid var(--color-border); margin-bottom: 1.25rem; box-shadow: var(--shadow-soft); transition: box-shadow 0.3s; }
.blog-card:hover .blog-card__media { box-shadow: var(--shadow-elevated); }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--transition-smooth); }
.blog-card:hover .blog-card__media img { transform: scale(1.05); }
.blog-card__date { display: block; font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--color-primary); margin-bottom: 0.5rem; }
.blog-card__title { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; line-height: 1.25; margin-bottom: 0.75rem; transition: color 0.3s; }
@media (min-width: 768px) { .blog-card__title { font-size: 1.5rem; } }
.blog-card:hover .blog-card__title { color: var(--color-primary); }
.blog-card__excerpt { color: color-mix(in srgb, var(--color-foreground) 70%, transparent); line-height: 1.7; font-size: 0.875rem; }

/* -------------------------------------------------------------------------
   16. NEWSLETTER SECTION
   ---------------------------------------------------------------------- */
.newsletter-section { background: color-mix(in srgb, var(--color-secondary) 30%, var(--color-background)); scroll-margin-top: 6rem; }
.newsletter-inner { max-width: 42rem; margin: 0 auto; text-align: center; }
.newsletter-icon { width: 3.5rem; height: 3.5rem; background: color-mix(in srgb, var(--color-primary) 10%, transparent); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }
.newsletter-heading { margin-bottom: 1.5rem; }
.newsletter-description { color: color-mix(in srgb, var(--color-foreground) 70%, transparent); line-height: 1.7; margin-bottom: 2rem; }
.newsletter-form { display: flex; flex-direction: column; gap: 0.75rem; max-width: 28rem; margin: 0 auto; }
@media (min-width: 640px) { .newsletter-form { flex-direction: row; } }
.newsletter-input {
  flex: 1; padding: 0.75rem 1rem; background: var(--color-background); border: 1px solid var(--color-border);
  color: var(--color-foreground); font-family: var(--font-body);
}
.newsletter-input:focus { outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 50%, transparent); }
.newsletter-submit { min-height: 44px; padding: 0.75rem 2rem; }
.newsletter-success { display: none; align-items: center; justify-content: center; gap: 0.75rem; color: var(--color-primary); }
.newsletter-success.is-visible { display: flex; }
.newsletter-form.is-hidden { display: none; }
.newsletter-embed { max-width: 28rem; margin: 0 auto; width: 100%; }
.newsletter-embed iframe { display: block; width: 100%; max-width: 100%; min-height: 120px; border: 0; }

/* -------------------------------------------------------------------------
   17. FINAL CTA / CONTACT SECTION
   ---------------------------------------------------------------------- */
.contact-section { position: relative; background: var(--color-secondary); overflow: hidden; scroll-margin-top: 6rem; }
.contact-section .theme-section__inner { padding-top: 6rem; padding-bottom: 6rem; }
@media (min-width: 768px) { .contact-section .theme-section__inner { padding-top: 8rem; padding-bottom: 8rem; } }
.contact-section__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
@media (min-width: 640px) { .contact-section__bg { background-attachment: fixed; } }
.contact-section__scrim { position: absolute; inset: 0; background: color-mix(in srgb, var(--color-background) 70%, transparent); }
.contact-panel {
  position: relative; max-width: 56rem; margin: 0 auto; text-align: center;
  background: color-mix(in srgb, var(--color-card) 80%, transparent); backdrop-filter: blur(10px);
  border: 1px solid var(--color-border); box-shadow: var(--shadow-soft);
  padding: 2.5rem 2rem;
}
@media (min-width: 768px) { .contact-panel { padding: 3rem 3.5rem; } }
.contact-eyebrow { display: block; font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--color-primary); font-weight: 600; margin-bottom: 1rem; }
.contact-section .section-heading { margin-bottom: 1.5rem; }
.contact-description { color: color-mix(in srgb, var(--color-foreground) 80%, transparent); line-height: 1.7; max-width: 28rem; margin: 0 auto 2.5rem; }
.contact-cta-row { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem; }
@media (min-width: 640px) { .contact-cta-row { flex-direction: row; } }

/* -------------------------------------------------------------------------
   18. CONTACT MODAL
   ---------------------------------------------------------------------- */
.contact-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 90; opacity: 0; visibility: hidden; transition: opacity 0.3s; }
.contact-modal-overlay.is-open { opacity: 1; visibility: visible; }
.contact-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -48%) scale(0.96); width: 92%; max-width: 32rem; max-height: 90vh; overflow-y: auto; background: var(--color-card); border: 1px solid var(--color-border); box-shadow: var(--shadow-elevated); z-index: 91; padding: 2rem; opacity: 0; visibility: hidden; transition: opacity 0.25s var(--transition-smooth), transform 0.25s var(--transition-smooth); }
.contact-modal.is-open { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.contact-modal__close { position: absolute; top: 1rem; right: 1rem; background: transparent; border: none; color: var(--color-foreground); opacity: 0.6; padding: 0.5rem; }
.contact-modal__close:hover { opacity: 1; }
.contact-modal__title { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.5rem; }
.contact-modal__desc { color: var(--color-muted-foreground); margin-bottom: 1.25rem; line-height: 1.6; }
.contact-modal__meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.875rem; color: var(--color-muted-foreground); margin-bottom: 1.25rem; }
.contact-modal__meta a { display: flex; align-items: center; gap: 0.5rem; }
.contact-modal__meta a:hover { color: var(--color-foreground); }

.theme-form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 480px) { .theme-form-row--2col { grid-template-columns: 1fr 1fr; } }
.theme-form-label { font-size: 0.875rem; font-weight: 500; margin-bottom: 0.375rem; display: block; }
.theme-form-input, .theme-form-textarea {
  width: 100%; padding: 0.625rem 1rem; background: var(--color-background); border: 1px solid var(--color-border);
  color: var(--color-foreground); font-family: var(--font-body); font-size: 1rem; transition: box-shadow 0.3s;
}
.theme-form-input::placeholder, .theme-form-textarea::placeholder { color: var(--color-muted-foreground); }
.theme-form-input:focus, .theme-form-textarea:focus { outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 50%, transparent); }
.theme-form-textarea { resize: none; }
.theme-form-actions { display: flex; justify-content: flex-end; }

.contact-modal__success { text-align: center; padding: 2rem 0; display: none; }
.contact-modal__success.is-visible { display: block; }
.contact-modal__success-icon { width: 3.5rem; height: 3.5rem; background: var(--color-primary); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; border-radius: 9999px !important; animation: scaleIn 0.4s var(--transition-smooth); }
.contact-modal__success-title { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 0.5rem; }
.contact-modal__success-text { color: var(--color-muted-foreground); font-size: 0.9rem; }
.contact-modal__form.is-hidden { display: none; }

/* -------------------------------------------------------------------------
   19. GENERIC 404
   ---------------------------------------------------------------------- */
.notfound-section { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 4rem 1rem; }
.notfound-title { font-family: var(--font-display); font-size: 3rem; margin-bottom: 1rem; }
.notfound-text { color: var(--color-muted-foreground); margin-bottom: 1.5rem; font-size: 1.1rem; }

/* =========================================================================
   20. WOOCOMMERCE — GLOBAL RESETS
   ========================================================================= */
.woocommerce-message, .woocommerce-error, .woocommerce-info {
  list-style: none; padding: 1rem 1.5rem; margin: 0 auto 1.5rem; max-width: 60rem;
  background: var(--color-card); border: 1px solid var(--color-border); color: var(--color-foreground);
  font-family: var(--font-body); font-size: 0.9rem;
}
.woocommerce-error { border-color: var(--color-destructive); }
.single-product .woocommerce-message, .single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }

/* Add-to-cart button overrides (Section 11.4.1) */
.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-button-text) !important;
  border: none !important;
  border-radius: var(--btn-radius) !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: var(--btn-text-transform) !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-button-text) !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;
}
.ajax_add_to_cart.theme-btn-loading { opacity: 0.6 !important; pointer-events: none !important; cursor: wait !important; }
.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after { display: none !important; }

.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; }

.theme-attr-select-hidden { display: none !important; }

/* -------------------------------------------------------------------------
   21. SINGLE PRODUCT (mirrors src/pages/ProductDetail.tsx)
   ---------------------------------------------------------------------- */
body.theme-no-hero .site-main.single-product-main,
body.woocommerce-single-product-page .site-main.single-product-main {
  padding-top: 2rem !important;
  padding-bottom: 0;
}
.theme-product-page { padding-bottom: 0; }
.single-product-breadcrumb { padding: 0.25rem 0 0.75rem; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); font-family: var(--font-body); }
.single-product-breadcrumb a { transition: color 0.2s; }
.single-product-breadcrumb a:hover { color: var(--color-foreground); }
.single-product-breadcrumb .sep { margin: 0 0.5rem; opacity: 0.5; }
.single-product-breadcrumb .current { color: var(--color-foreground); }

.theme-product-layout {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem;
  padding: 0.5rem 0 6rem; align-items: start; min-width: 0;
}
@media (min-width: 1024px) {
  .theme-product-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; }
}
.theme-product-gallery, .theme-product-info { min-width: 0; max-width: 100%; }
@media (min-width: 1024px) {
  .theme-product-info { padding-left: 1rem; position: sticky; top: 7rem; align-self: start; }
}

.theme-product-gallery--mobile { display: block; }
.theme-product-gallery--desktop { display: none; flex-direction: column; gap: 1rem; }
@media (min-width: 1024px) {
  .theme-product-gallery--mobile { display: none; }
  .theme-product-gallery--desktop { display: flex; }
}

.theme-product-gallery__frame {
  aspect-ratio: 1 / 1; background: var(--color-secondary); overflow: hidden;
  box-shadow: var(--shadow-soft); border-radius: 0.75rem; border: 1px solid var(--color-border);
}
.theme-product-gallery__img {
  position: static !important; inset: auto !important;
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: brightness(1.06) contrast(1.03) saturate(1.04);
  transition: transform 0.3s ease, filter 0.3s ease;
}
.theme-product-gallery__frame:hover .theme-product-gallery__img {
  filter: brightness(1.08) contrast(1.03) saturate(1.04);
  transform: scale(1.02);
}
.theme-product-thumbnails { display: flex; gap: 0.75rem; margin-top: 1rem; overflow-x: auto; padding-bottom: 0.25rem; }
.theme-product-thumb {
  position: relative; width: 5rem; height: 5rem; flex-shrink: 0; overflow: hidden;
  background: var(--color-secondary); border: none; padding: 0; border-radius: 0.5rem; box-shadow: var(--shadow-soft);
}
.theme-product-gallery__thumb-img {
  position: static !important; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(1.06) contrast(1.03) saturate(1.04); opacity: 0.6; transition: opacity 0.3s;
}
.theme-product-thumb.is-active .theme-product-gallery__thumb-img { opacity: 1; }
.theme-product-thumb__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--color-foreground); opacity: 0; transition: opacity 0.3s; }
.theme-product-thumb.is-active .theme-product-thumb__bar { opacity: 1; }

.theme-product-category { display: block; font-size: 13px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--color-muted-foreground); font-family: var(--font-body); }
.theme-product-title { font-family: var(--font-display); font-weight: 400; font-size: 1.875rem; line-height: 1.1; margin: 0.75rem 0 1.25rem; }
@media (min-width: 768px) { .theme-product-title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .theme-product-title { font-size: 2.75rem; } }
.theme-product-price { font-size: 1.25rem; margin: 0 0 1.5rem; color: var(--color-foreground); font-family: var(--font-body); }
.theme-product-lead { color: var(--color-muted-foreground); line-height: 1.625; margin-bottom: 2rem; font-family: var(--font-body); font-size: 1rem; }
.theme-product-stock { display: inline-block; margin-bottom: 1rem; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-destructive); }

.theme-variation-attribute { margin-bottom: 1.5rem; }
.theme-variation-label { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); margin-bottom: 0.75rem; font-family: var(--font-body); font-weight: 400; }
.theme-attr-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.theme-attr-pills--color { gap: 0.75rem; }
.theme-attr-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase;
  border: 1px solid var(--color-border); border-radius: 9999px; background: transparent; color: var(--color-foreground);
  font-family: var(--font-body); transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.theme-attr-pill--color { padding: 0.35rem 0.85rem 0.35rem 0.35rem; border-radius: 9999px; }
.theme-attr-pill__swatch {
  width: 0.75rem; height: 0.75rem; border-radius: 9999px; border: 1px solid var(--color-border);
  background: var(--swatch-color, var(--color-muted));
  flex-shrink: 0;
}
.theme-attr-pill--color.is-selected {
  border-color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 5%, transparent);
  color: var(--color-foreground);
}
.theme-attr-pill--license.is-selected {
  background: var(--color-foreground); color: var(--color-background); border-color: var(--color-foreground);
}
.theme-attr-select {
  width: 100%; max-width: 20rem; padding: 0.6rem 1rem;
  border: 1px solid var(--color-border); background: var(--color-background); color: var(--color-foreground);
  font-family: var(--font-body); font-size: 0.875rem;
}
.theme-attr-select-hidden { display: none !important; }
.theme-variation-select-wrap .theme-attr-select-hidden { display: none !important; }
.theme-variation-select-wrap:not(:has(.theme-attr-select-hidden)) { margin-top: 0; }

.theme-qty-block { margin-bottom: 1rem; }
.theme-qty-label { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); margin-bottom: 0.75rem; font-family: var(--font-body); font-weight: 400; }
.theme-quantity-wrapper { display: inline-flex; align-items: center; border: 1px solid var(--color-border); }
.theme-qty-minus, .theme-qty-plus { padding: 0.5rem 0.75rem; background: transparent; border: none; color: var(--color-foreground); transition: background 0.2s; line-height: 1; }
.theme-qty-minus:hover, .theme-qty-plus:hover { background: var(--color-secondary); }
.theme-qty-display { padding: 0.5rem 1rem; min-width: 2.75rem; text-align: center; font-family: var(--font-body); font-size: 0.875rem; }
.theme-qty-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.single-product-main .theme-product-atc,
.single-product-main .theme-product-cart-form .single_add_to_cart_button.theme-product-atc {
  width: 100%; margin-top: 0.25rem;
  background: var(--color-foreground) !important; color: var(--color-background) !important;
  border: none !important; border-radius: 9999px !important;
  padding: 1rem 1.5rem !important; min-height: auto !important;
  font-size: 0.75rem !important; letter-spacing: 0.25em !important; text-transform: uppercase !important;
  font-weight: 500 !important; transition: opacity 0.2s !important;
}
.single-product-main .theme-product-atc:hover:not(:disabled) { opacity: 0.9 !important; background: var(--color-foreground) !important; }
.single-product-main .theme-product-atc:disabled,
.single-product-main .theme-product-atc--disabled { opacity: 0.6; cursor: not-allowed; }

.theme-product-accordions { margin-top: 2.5rem; border-top: 1px solid var(--color-border); }
.theme-accordion { border-bottom: 1px solid var(--color-border); }
.theme-accordion__trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 0; background: transparent; border: none; text-align: left;
  font-size: 13px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--color-foreground); font-family: var(--font-body);
}
.theme-accordion__chevron { transition: transform 0.2s; flex-shrink: 0; }
.theme-accordion.is-open .theme-accordion__chevron { transform: rotate(180deg); }
.theme-accordion__panel { padding-bottom: 1.5rem; }
.theme-accordion__text { font-size: 15px; color: var(--color-muted-foreground); line-height: 1.625; font-family: var(--font-body); margin-bottom: 1rem; }
.theme-accordion__text--pre { white-space: pre-line; }
.theme-accordion__text--blocks p { margin-bottom: 0.75rem; }
.theme-details-list { list-style: none; margin: 0; padding: 0; }
.theme-details-list li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 15px; color: var(--color-muted-foreground); line-height: 1.625; margin-bottom: 0.5rem;
}
.theme-details-list li::before { content: ''; width: 4px; height: 4px; border-radius: 9999px; background: var(--color-foreground); margin-top: 0.55rem; flex-shrink: 0; }

.single-product-main .theme-variable-product-form table.variations { display: none; }
.single-product-main .single_variation_wrap .woocommerce-variation { display: none !important; }
.single-product-main .reset_variations { display: none !important; }

.related-products-section { padding: 5rem 0; border-top: 1px solid var(--color-border); }
.related-products-heading { text-align: center; margin-bottom: 3rem; }
.related-products-kicker { font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--color-muted-foreground); margin-bottom: 0.5rem; }
.related-products-title { font-family: var(--font-display); font-weight: 400; font-size: 1.875rem; text-transform: lowercase; }
@media (min-width: 768px) { .related-products-title { font-size: 2.25rem; } }
.related-products-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.5rem; align-items: stretch; }
@media (min-width: 1024px) { .related-products-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 2rem; } }
.related-products-grid .theme-product-card-wrap { height: 100%; }

.theme-related-card { display: flex; flex-direction: column; gap: 0.5rem; text-align: center; color: inherit; }
.theme-related-card__image {
  aspect-ratio: 1 / 1; overflow: hidden; background: var(--color-secondary);
  border-radius: 0.75rem; border: 1px solid var(--color-border); box-shadow: var(--shadow-soft);
}
.theme-related-card__img { width: 100%; height: 100%; object-fit: cover; position: static !important; filter: brightness(1.06) contrast(1.03) saturate(1.04); }
.theme-related-card__cat { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); font-family: var(--font-body); }
.theme-related-card__name { font-family: var(--font-display); font-size: 1rem; line-height: 1.3; }
.theme-related-card__price { font-family: var(--font-body); font-size: 0.95rem; color: var(--color-foreground); }

/* -------------------------------------------------------------------------
   22. ARCHIVE / SHOP PAGE
   ---------------------------------------------------------------------- */
.woocommerce-shop-page .site-main { padding-top: calc(var(--header-height) + 2rem); }
.woocommerce-shop-header { text-align: center; padding: 2rem 0 3rem; }
.woocommerce-shop-empty { text-align: center; padding: 5rem 0; color: var(--color-muted-foreground); }
ul.products {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.5rem; align-items: stretch;
  margin: 0; padding: 2rem 0 4rem; list-style: none;
}
@media (min-width: 768px) { ul.products { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2rem; } }
@media (min-width: 1024px) { ul.products { grid-template-columns: repeat(4, minmax(0,1fr)); } }
ul.products li.product { margin: 0; list-style: none; }

/* -------------------------------------------------------------------------
   23. SIDE CART DRAWER
   ---------------------------------------------------------------------- */
#theme-cart-overlay {
  position: fixed; inset: 0; background: rgba(15,13,28,0.5); z-index: 95;
  opacity: 0; visibility: hidden; transition: opacity 0.3s var(--transition-smooth);
}
body.cart-open #theme-cart-overlay { opacity: 1; visibility: visible; }

#theme-cart-drawer {
  position: fixed; right: 0; top: 0; height: 100%; width: 100%; max-width: 28rem;
  background: var(--color-background); z-index: 96; box-shadow: var(--shadow-elevated);
  display: flex; flex-direction: column; transform: translateX(100%);
  transition: transform 0.35s var(--transition-smooth); visibility: hidden;
}
body.cart-open #theme-cart-drawer { transform: translateX(0); visibility: visible; }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }

.theme-cart-drawer__header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid var(--color-border); }
.theme-cart-drawer__title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; }
.theme-cart-drawer__close { padding: 0.25rem; background: transparent; border: none; color: var(--color-foreground); opacity: 0.7; }
.theme-cart-drawer__close:hover { opacity: 1; }

.theme-cart-drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; }
.theme-cart-drawer__empty-icon { width: 3rem; height: 3rem; color: var(--color-muted-foreground); margin-bottom: 1rem; }
.theme-cart-drawer__empty-text { color: var(--color-muted-foreground); margin-bottom: 1.5rem; }

.theme-cart-drawer__items { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.theme-cart-item { display: flex; gap: 1rem; }
.theme-cart-item__image {
  display: grid;
  width: 6rem;
  height: 8rem;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-secondary);
}
.theme-cart-item__image img,
#theme-cart-drawer .theme-cart-item__image img,
#theme-cart-drawer .theme-cart-item__image .attachment-thumbnail {
  grid-area: 1 / 1;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center;
}
.theme-cart-drawer__pair-image {
  display: grid;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-secondary);
}
.theme-cart-drawer__pair-image img {
  grid-area: 1 / 1;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center;
}
.theme-cart-item__info { flex: 1; min-width: 0; }
.theme-cart-item__name { font-size: 0.875rem; font-weight: 500; display: block; }
.theme-cart-item__name:hover { opacity: 0.7; }
.theme-cart-item__price { font-size: 0.875rem; color: var(--color-muted-foreground); margin-top: 0.125rem; }
.theme-cart-item-meta { list-style: none; margin: 0.25rem 0 0; padding: 0; font-size: 0.75rem; color: var(--color-muted-foreground); }
.theme-cart-item-meta__row { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.25rem; }
.theme-cart-item-meta-swatch {
  width: 0.65rem; height: 0.65rem; border-radius: 9999px; border: 1px solid var(--color-border);
  background: var(--swatch-color, var(--color-muted)); flex-shrink: 0;
}
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.theme-cart-item__controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.theme-cart-item__qty-btn { padding: 0.25rem; background: transparent; border: none; color: var(--color-foreground); }
.theme-cart-item__qty-btn:hover { background: var(--color-muted); }
.theme-cart-item__qty { font-size: 0.875rem; width: 1.5rem; text-align: center; }
.theme-cart-item__remove { margin-left: auto; font-size: 0.875rem; color: var(--color-muted-foreground); background: transparent; border: none; }
.theme-cart-item__remove:hover { color: var(--color-foreground); }

.theme-cart-drawer__footer { padding: 1.5rem; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 1rem; }
.theme-cart-drawer__subtotal { display: flex; justify-content: space-between; font-size: 0.875rem; }
.theme-cart-drawer__shipnote { font-size: 0.875rem; color: var(--color-muted-foreground); }
.theme-cart-drawer__checkout { width: 100%; text-align: center; }
.theme-cart-drawer__empty-btn { width: 100%; }

/* -------------------------------------------------------------------------
   24. CHECKOUT BLOCK OVERRIDES (Lovable parity — C.1–G)
   ---------------------------------------------------------------------- */
body.woocommerce-checkout .theme-checkout-main,
.entry-content:has(.wc-block-checkout) .theme-checkout-main {
  padding-top: 0 !important;
  padding-bottom: 4rem;
}
.theme-checkout-shell {
  padding-block: 0.5rem 4rem;
  padding-inline: 1rem;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}
@media (min-width: 640px) {
  .theme-checkout-shell { padding-inline: 1.5rem; }
}
@media (min-width: 1024px) {
  .theme-checkout-shell { padding-inline: 2rem; }
}
body.woocommerce-checkout .theme-checkout-main > .container-wide,
body.woocommerce-checkout .theme-checkout-shell,
body.woocommerce-checkout .theme-checkout-main .entry-content {
  max-width: none; width: 100%;
}
.theme-checkout-header {
  max-width: var(--checkout-max-width); width: 100%; margin-inline: auto; box-sizing: border-box;
  margin-bottom: 0;
}
.checkout-continue-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1rem; font-size: 0.875rem; color: var(--color-muted-foreground); font-family: var(--font-body);
}
.checkout-continue-link:hover { color: var(--color-foreground); }
.theme-checkout-title { font-family: var(--font-display); font-weight: 400; font-size: 2.25rem; margin: 0; }
@media (min-width: 768px) { .theme-checkout-title { font-size: 2.5rem; } }
.theme-checkout-intro { margin: 0.75rem 0 0; color: var(--color-muted-foreground); font-family: var(--font-body); }

body.woocommerce-checkout .theme-checkout-main .entry-content,
.entry-content:has(.wc-block-checkout) {
  margin-top: 0; padding-top: 0; max-width: none; width: 100%;
}
body.woocommerce-checkout .theme-checkout-main .entry-content > .wc-block-checkout,
body.woocommerce-checkout .theme-checkout-main .entry-content > .wp-block-woocommerce-checkout,
.entry-content > .wc-block-checkout:first-child,
.entry-content > .wp-block-woocommerce-checkout:first-child {
  margin-top: 0;
}

body.woocommerce-checkout .wc-block-checkout,
.entry-content .wc-block-checkout,
body.woocommerce-checkout .wp-block-woocommerce-checkout,
.entry-content .wp-block-woocommerce-checkout {
  max-width: var(--checkout-max-width); width: 100%; margin-inline: auto; box-sizing: border-box;
  min-width: 0; margin-top: 0; padding-top: 0;
}
body.woocommerce-checkout .wc-block-checkout.alignwide,
.entry-content .wc-block-checkout.alignwide { margin-top: 0; }

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-components-main,
.entry-content .wc-block-checkout__main,
.entry-content .wc-block-components-main {
  margin-top: 0; padding-top: 0;
}
body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout,
body.woocommerce-checkout .wc-block-checkout .wc-block-checkout-sidebar-layout,
.entry-content .wc-block-checkout .wc-block-components-sidebar-layout,
.entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout {
  margin-top: 0; padding-top: 0;
}

body.woocommerce-checkout .wc-block-checkout > .wc-block-components-notices:empty,
.entry-content .wc-block-checkout > .wc-block-components-notices:empty {
  display: none; margin: 0; padding: 0;
}
body.woocommerce-checkout .wc-block-components-notices,
.entry-content .wc-block-components-notices {
  max-width: var(--checkout-max-width); width: 100%; margin-inline: auto; box-sizing: border-box;
  margin-top: 0; padding-top: 0; margin-bottom: var(--checkout-gap);
}

@media (min-width: 768px) {
  body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout,
  body.woocommerce-checkout .wc-block-checkout .wc-block-checkout-sidebar-layout,
  .entry-content .wc-block-checkout .wc-block-components-sidebar-layout,
  .entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout {
    display: grid !important;
    grid-template-columns: 1fr minmax(360px, 400px);
    gap: var(--checkout-gap);
    align-items: start;
    flex-direction: unset; flex-wrap: nowrap; margin: 0;
  }
  body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-checkout__main,
  body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-components-main,
  body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-checkout__sidebar,
  body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar,
  .entry-content .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-checkout__main,
  .entry-content .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-checkout__sidebar {
    width: auto !important; max-width: 100%; min-width: 0; margin: 0 !important; padding: 0 !important; box-sizing: border-box;
  }
  body.woocommerce-checkout .wc-block-checkout:has(> .wc-block-checkout__main):has(> .wc-block-checkout__sidebar),
  .entry-content .wc-block-checkout:has(> .wc-block-checkout__main):has(> .wc-block-checkout__sidebar) {
    display: grid;
    grid-template-columns: 1fr minmax(360px, 400px);
    gap: var(--checkout-gap);
    align-items: start;
  }
  body.woocommerce-checkout .wc-block-checkout > .wc-block-components-notices,
  .entry-content .wc-block-checkout > .wc-block-components-notices { grid-column: 1 / -1; }
  body.woocommerce-checkout .wc-block-components-notice-banner,
  .entry-content .wc-block-components-notice-banner { grid-column: 1 / -1; }
}

body.woocommerce-checkout .wc-block-checkout__sidebar,
body.woocommerce-checkout .wc-block-components-sidebar,
body.woocommerce-checkout .wp-block-woocommerce-checkout-totals-block,
.entry-content .wc-block-checkout__sidebar,
.entry-content .wc-block-components-sidebar {
  background: transparent; padding: 0; border-radius: 0;
}
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block,
.entry-content .wp-block-woocommerce-checkout-order-summary-block {
  width: 100%; background: var(--color-card); border-radius: var(--card-radius); padding: var(--section-padding, 2rem);
  border: 1px solid var(--color-border); box-sizing: border-box;
  color: var(--color-foreground);
}
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-product-name,
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary-item__individual-prices,
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary-item__total-price,
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-item__label,
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-item__value,
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-formatted-money-amount,
.entry-content .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-product-name,
.entry-content .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary-item__individual-prices,
.entry-content .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary-item__total-price,
.entry-content .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-item__label,
.entry-content .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-item__value,
.entry-content .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-formatted-money-amount {
  color: var(--color-foreground) !important;
}
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary-item__quantity,
.entry-content .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary-item__quantity {
  color: var(--color-button-text) !important;
  background: var(--color-primary) !important;
  border: 1px solid color-mix(in srgb, var(--color-primary) 80%, var(--color-foreground)) !important;
  font-size: 0.6875rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  min-width: 1.25rem !important;
  min-height: 1.25rem !important;
}
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary-item__quantity .screen-reader-text,
.entry-content .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary-item__quantity .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.woocommerce-checkout .wc-block-checkout-empty,
.entry-content .wc-block-checkout-empty {
  margin-inline: auto; max-width: 36rem; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  color: var(--color-foreground);
}
body.woocommerce-checkout .wc-block-checkout-empty__image,
.entry-content .wc-block-checkout-empty__image,
body.woocommerce-checkout .wc-block-checkout-empty svg,
.entry-content .wc-block-checkout-empty svg {
  color: var(--color-foreground);
  fill: currentColor;
}
body.woocommerce-checkout .wc-block-checkout-empty svg path,
.entry-content .wc-block-checkout-empty svg path {
  fill: currentColor !important;
}
body.woocommerce-checkout .wc-block-checkout-empty svg,
.entry-content .wc-block-checkout-empty svg {
  stroke: currentColor;
}

/* Text fields — dark surface, light value text */
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-textarea textarea,
.entry-content .wc-block-components-text-input input,
.entry-content .wc-block-components-textarea textarea {
  width: 100% !important; max-width: none !important;
  font-family: var(--font-body); font-size: 1rem;
  color: var(--color-foreground) !important;
  -webkit-text-fill-color: var(--color-foreground) !important;
  caret-color: var(--color-foreground);
  border: 1px solid var(--color-border) !important;
  background: var(--color-background) !important;
  border-radius: 0 !important;
}
body.woocommerce-checkout .wc-block-components-text-input input:-webkit-autofill,
body.woocommerce-checkout .wc-block-components-text-input input:-webkit-autofill:focus,
.entry-content .wc-block-components-text-input input:-webkit-autofill,
.entry-content .wc-block-components-text-input input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--color-foreground) !important;
  box-shadow: 0 0 0 1000px var(--color-background) inset !important;
  transition: background-color 99999s ease-out 0s;
}

/* Text labels — light text on dark inputs; never a white label chip */
body.woocommerce-checkout .wc-block-components-text-input label,
body.woocommerce-checkout .wc-block-components-text-input .wc-block-components-text-input__label,
.entry-content .wc-block-components-text-input label,
.entry-content .wc-block-components-text-input .wc-block-components-text-input__label {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}
body.woocommerce-checkout .wc-block-components-text-input:not(.is-active):not(:focus-within) > label,
body.woocommerce-checkout .wc-block-components-text-input:not(.is-active):not(:focus-within) .wc-block-components-text-input__label,
.entry-content .wc-block-components-text-input:not(.is-active):not(:focus-within) > label,
.entry-content .wc-block-components-text-input:not(.is-active):not(:focus-within) .wc-block-components-text-input__label {
  color: var(--color-muted-foreground) !important;
}
body.woocommerce-checkout .wc-block-components-text-input.is-active > label,
body.woocommerce-checkout .wc-block-components-text-input.is-active .wc-block-components-text-input__label,
body.woocommerce-checkout .wc-block-components-text-input:focus-within > label,
body.woocommerce-checkout .wc-block-components-text-input:focus-within .wc-block-components-text-input__label,
.entry-content .wc-block-components-text-input.is-active > label,
.entry-content .wc-block-components-text-input.is-active .wc-block-components-text-input__label,
.entry-content .wc-block-components-text-input:focus-within > label,
.entry-content .wc-block-components-text-input:focus-within .wc-block-components-text-input__label {
  color: var(--color-foreground) !important;
}

/* Country / select — white control surface, dark label + value */
body.woocommerce-checkout .wc-blocks-components-select__select,
.entry-content .wc-blocks-components-select__select {
  width: 100% !important; max-width: none !important;
  font-family: var(--font-body); font-size: 1rem;
  color: var(--color-button-text) !important;
  -webkit-text-fill-color: var(--color-button-text) !important;
  border: 1px solid var(--color-border) !important;
  background: #fff !important;
  border-radius: 0 !important;
}
body.woocommerce-checkout .wc-block-components-country-input .wc-blocks-components-select__label,
body.woocommerce-checkout .wc-blocks-components-select__label,
.entry-content .wc-block-components-country-input .wc-blocks-components-select__label,
.entry-content .wc-blocks-components-select__label {
  color: var(--color-button-text) !important;
  background: transparent !important;
  background-color: transparent !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
.entry-content .wc-block-components-checkout-place-order-button {
  background: var(--color-primary) !important; color: var(--color-button-text) !important;
  border-radius: 0 !important; font-family: var(--font-body) !important;
  text-transform: uppercase !important; letter-spacing: 0.15em !important; font-size: 0.85rem !important;
}
body.woocommerce-checkout .page-title { display: none; }

body.woocommerce-cart .page-title,
body.woocommerce-account .page-title {
  font-family: var(--font-display); font-weight: 400; font-size: 2.25rem; margin-bottom: 2rem;
}
body.woocommerce-cart .entry-content,
body.woocommerce-account .entry-content { max-width: 100%; }

/* -------------------------------------------------------------------------
   25. THANK YOU PAGE
   ---------------------------------------------------------------------- */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
  font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; padding: 0 0 1rem 0;
}
body.theme-thankyou-page .woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; padding: 1.5rem; margin: 1.5rem 0; background: var(--color-card); border: 1px solid var(--color-border); }
body.theme-thankyou-page .woocommerce-order-overview li { font-size: 0.9rem; }
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }
@media (min-width: 768px) {
  body.theme-thankyou-page .woocommerce-customer-details { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
}
body.theme-thankyou-page .woocommerce-customer-details address { min-width: 0; border: 1px solid var(--color-border); padding: 1rem; }

/* -------------------------------------------------------------------------
   26. GLOBAL UTILITIES
   ---------------------------------------------------------------------- */
.text-balance { text-wrap: balance; }
