/* ==========================================================================
   Sunflower Comforts — theme.css
   Theme by The Free Website Guys.
   ========================================================================== */

/* ------------------------------------------------------------------------
   0. Design tokens (fallback — the live values are injected inline via
      wp_add_inline_style from the Customizer, Section 22.9 / 6.1)
   ------------------------------------------------------------------------ */
:root {
  --color-background: #f7f2e7;
  --color-foreground: #292019;
  --color-card: #ece4d3;
  --color-primary: #1a6ca3;
  --color-primary-foreground: #f7f3e8;
  --color-secondary: #dfe6d5;
  --color-secondary-foreground: #2c2620;
  --color-muted-foreground: #564b3d;
  --color-accent: #f2c233;
  --color-accent-foreground: #251c11;
  --color-border: #e3dac6;
  --color-butter: #ece0bd;
  --color-sage: #5f7052;
  --color-sage-foreground: #f7f3e8;
  --color-button-text: var(--color-primary-foreground);

  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Nunito', sans-serif;

  --radius: 0.75rem;
  --card-radius: 0.9rem;

  --btn-radius: 999px;
  --btn-height: 3rem;
  --btn-padding: 0 2.5rem;
  --btn-font-size: 0.8125rem;
  --btn-font-weight: 500;
  --btn-letter-spacing: 0.16em;
  --btn-text-transform: uppercase;
  --btn-icon-padding: 0.5rem;

  --header-height: 80px;
  --logo-height: 64px;
  /* Match Lovable container-wide: px-6 / lg:px-8 */
  --page-gutter: 1.5rem;

  --shadow-soft: 0 4px 20px -4px rgba(41, 32, 25, 0.12);
  --shadow-elevated: 0 8px 40px -8px rgba(41, 32, 25, 0.22);

  --ease-smooth: cubic-bezier(0.25, 0.4, 0.25, 1);
}

/* ------------------------------------------------------------------------
   1. Reset / base
   ------------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html, body { max-width: 100%; overflow-x: clip; }

body {
  margin: 0;
  background-color: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: inherit;
  font-size: inherit;
  letter-spacing: -0.015em;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; cursor: pointer; }
button,
[role="button"],
summary,
label[for],
.theme-link-underline,
.theme-card-link,
.theme-btn-primary,
.theme-btn-outline,
.theme-btn-pill,
.theme-nav-link,
.theme-cart-toggle,
.theme-mobile-toggle,
.theme-product-thumb,
.theme-blog-card,
.theme-blog-related__card,
.theme-blog-post__back,
.site-footer__contact-link,
.site-footer__logo-link,
.site-header__logo-link,
input[type="submit"],
input[type="button"],
input[type="reset"] {
  cursor: pointer;
}
button { font-family: inherit; background: none; border: none; color: inherit; }
input, textarea, select { font-family: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

img:not(.cover-img):not(.hero-bg-img):not(.theme-product-card-img):not(.theme-product-main-img):not(.theme-product-thumb img) {
  max-width: 100%;
  height: auto;
}
.cover-img,
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Product images: show the full photo (no crop/zoom), matching Lovable framing */
.theme-product-card-img,
.theme-product-main-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }

@media (min-width: 1024px) {
  :root { --page-gutter: 2rem; }
}

.container-wide {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
  box-sizing: border-box;
}

.theme-eyebrow {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  margin-bottom: 1rem;
}

.theme-heading-italic {
  font-style: italic;
  font-weight: 300;
  color: color-mix(in srgb, var(--color-muted-foreground) 80%, transparent);
  margin-right: 0.5rem;
}

.theme-link-underline {
  position: relative;
  display: inline-block;
}
.theme-link-underline::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-smooth);
}
.theme-link-underline:hover::after { transform: scaleX(1); }

.theme-nowrap { white-space: nowrap; }

.theme-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  border-radius: 0.5rem;
  padding: 0 1.5rem;
  height: 2.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: opacity 0.2s ease;
}
.theme-btn-primary:hover { opacity: 0.9; }
.theme-btn-primary.theme-btn-pill { border-radius: 999px; padding: 0 2.5rem; height: 3rem; font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase; box-shadow: var(--shadow-soft); }

.theme-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--color-foreground);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  padding: 0 1.25rem;
  height: 2.5rem;
  font-size: 0.875rem;
  transition: background-color 0.2s ease;
}
.theme-btn-outline:hover { background-color: var(--color-secondary); }

/* ------------------------------------------------------------------------
   2. Section scaffolding (per-section heading scales — Section 2.2.5)
   ------------------------------------------------------------------------ */
.theme-section { border-top: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent); background-color: var(--color-background); scroll-margin-top: 6rem; }
.admin-bar .theme-section { scroll-margin-top: calc(6rem + 32px); }
@media screen and (max-width: 782px) {
  .admin-bar .theme-section { scroll-margin-top: calc(6rem + 46px); }
}
/* Use padding-block only so .container-wide horizontal gutters are preserved */
.theme-section__inner { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 768px) { .theme-section__inner { padding-top: 6rem; padding-bottom: 6rem; } }

.about-section, .faq-section { background-color: var(--color-secondary); }
.shop-section, .markets-section { background-color: var(--color-card); }

.theme-section__head { text-align: center; margin-bottom: 3.5rem; }
.theme-section__subtitle { margin-top: 1.25rem; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); line-height: 1.65; max-width: 36rem; margin-left: auto; margin-right: auto; }

.section-heading { font-weight: 400; font-size: 2.25rem; line-height: 1.05; }
@media (min-width: 768px) { .section-heading { font-size: 3.75rem; } }

.shop-heading { font-weight: 400; font-size: 2.25rem; line-height: 1.05; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .shop-heading { font-size: 3.75rem; } }

.contact-title { font-weight: 400; font-size: 2.25rem; line-height: 1.05; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .contact-title { font-size: 3rem; } }
@media (min-width: 1024px) { .contact-title { font-size: 3.75rem; } }

/* ------------------------------------------------------------------------
   3. Announcement bar
   ------------------------------------------------------------------------ */
.theme-announcement-bar { position: relative; background-color: var(--color-foreground); color: var(--color-background); }
.theme-announcement-bar__inner { padding-top: 0.5rem; padding-bottom: 0.5rem; text-align: center; }
.theme-announcement-bar__text { font-size: 0.8125rem; letter-spacing: 0.18em; text-transform: uppercase; }
.theme-announcement-bar__dismiss {
  position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%);
  padding: 0.25rem; opacity: 0.7; transition: opacity 0.2s ease;
}
.theme-announcement-bar__dismiss:hover { opacity: 1; }
.theme-announcement-bar.is-dismissed { display: none; }

/* ------------------------------------------------------------------------
   4. Header
   ------------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; left: 0; right: 0; z-index: 50;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
/* Offset sticky/fixed UI under the WordPress admin bar */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
.admin-bar #theme-cart-drawer,
.admin-bar .theme-mobile-menu {
  top: 32px;
  height: calc(100% - 32px);
}
.admin-bar .theme-contact-modal {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar #theme-cart-drawer,
  .admin-bar .theme-mobile-menu {
    top: 46px;
    height: calc(100% - 46px);
  }
  .admin-bar .theme-contact-modal {
    top: 46px;
  }
}
.site-header.is-solid,
.site-header.is-scrolled,
.theme-mobile-menu.is-open ~ .site-header,
body.is-front-scrolled .site-header {
  background-color: color-mix(in srgb, var(--color-background) 95%, transparent);
  backdrop-filter: blur(6px);
  border-bottom-color: var(--color-border);
}
body.theme-no-hero .site-header { background-color: var(--color-background); border-bottom-color: var(--color-border); }

.site-header__nav { display: flex; align-items: center; justify-content: space-between; height: 5rem; position: relative; }

.site-header__logo-link { display: flex; align-items: center; }
/* Match Lovable: h-16 (64px) mobile, md:h-[72px] desktop */
.site-header .site-logo-img {
  height: 4rem;
  width: auto;
  max-height: 4rem;
  object-fit: contain;
  display: block;
  transition: height 0.3s ease;
}
@media (min-width: 768px) {
  .site-header .site-logo-img {
    height: min(var(--logo-height, 72px), 4.5rem);
    max-height: 4.5rem;
  }
}
.site-logo-text { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--color-foreground); }

.site-header__center-nav { display: none; }
@media (min-width: 1024px) { .site-header__center-nav { display: flex; align-items: center; justify-content: center; gap: 1.75rem; } }

.theme-nav-list { display: flex; align-items: center; gap: 1.75rem; }
.theme-nav-link, .theme-nav-list a {
  font-size: 0.8125rem;
  font-family: var(--font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
}
.theme-nav-link::after, .theme-nav-list a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease-smooth);
}
.theme-nav-link:hover::after, .theme-nav-list a:hover::after { transform: scaleX(1); }

.site-header__right { display: flex; align-items: center; gap: 0.75rem; }

.theme-cart-toggle { position: relative; padding: 0.5rem; opacity: 1; transition: opacity 0.2s ease; }
.theme-cart-toggle:hover { opacity: 0.6; }
.theme-cart-count {
  position: absolute; top: -2px; right: -2px; min-width: 1.25rem; height: 1.25rem; padding: 0 0.25rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6875rem; font-weight: 600; border-radius: 999px;
  background-color: var(--color-primary); color: var(--color-primary-foreground);
}
.theme-cart-count:empty { display: none; }

.theme-mobile-toggle { padding: 0.5rem; }
.theme-mobile-toggle__close { display: none; }
.theme-mobile-toggle.is-open .theme-mobile-toggle__open { display: none; }
.theme-mobile-toggle.is-open .theme-mobile-toggle__close { display: block; }
@media (min-width: 1024px) { .theme-mobile-toggle { display: none; } }

.theme-mobile-menu { display: none; border-top: 1px solid var(--color-border); padding: 1rem 0; }
.theme-mobile-menu.is-open { display: block; }
/* Always stack hamburger nav links vertically (incl. fallback .theme-nav-list) */
.theme-mobile-menu__list,
.theme-mobile-menu .theme-nav-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}
.theme-mobile-menu__list > li,
.theme-mobile-menu .theme-nav-list > li {
  display: block;
  width: 100%;
}
.theme-mobile-menu__list a,
.theme-mobile-menu .theme-nav-list a,
.theme-mobile-menu .theme-nav-link {
  display: block;
  width: 100%;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 0;
  text-align: left;
}
.theme-mobile-menu .theme-nav-link::after,
.theme-mobile-menu .theme-nav-list a::after {
  display: none;
}
@media (min-width: 1024px) { .theme-mobile-menu { display: none !important; } }

/* ------------------------------------------------------------------------
   5. Hero
   ------------------------------------------------------------------------ */
body.theme-no-hero .theme-page,
body.theme-no-hero .site-main { padding-top: var(--header-height); }

.theme-hero { position: relative; background-color: var(--color-background); }
.theme-hero__media-wrap { position: relative; min-height: 100vh; overflow: hidden; }
.theme-hero__video { z-index: 0; }
.theme-hero__scrim { position: absolute; inset: 0; background-color: color-mix(in srgb, var(--color-foreground) 45%, transparent); }
.theme-hero__gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    color-mix(in srgb, var(--color-foreground) 70%, transparent) 0%,
    color-mix(in srgb, var(--color-foreground) 20%, transparent) 55%,
    color-mix(in srgb, var(--color-foreground) 45%, transparent) 100%);
}
.theme-hero__content { position: relative; z-index: 10; display: flex; min-height: 100vh; align-items: center; }
.theme-hero__container { padding-top: 6rem; padding-bottom: 6rem; }
@media (min-width: 768px) { .theme-hero__container { padding-top: 7rem; padding-bottom: 7rem; } }
.theme-hero__text { margin: 0 auto; max-width: 48rem; text-align: center; }

.theme-hero__eyebrow {
  display: block; font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-background) 85%, transparent);
  margin-bottom: 1.5rem;
}
.theme-hero__title {
  font-weight: 400; font-size: 2.75rem; line-height: 1.04;
  color: var(--color-background); margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .theme-hero__title { font-size: 4.5rem; } }
.theme-hero__title-highlight { font-style: italic; font-weight: 300; color: var(--color-accent); }

.theme-hero__subtitle {
  color: color-mix(in srgb, var(--color-background) 85%, transparent);
  font-size: 1.0625rem; line-height: 1.7; margin: 0 auto 2.25rem; max-width: 42rem;
}
@media (min-width: 768px) { .theme-hero__subtitle { font-size: 1.125rem; } }

.theme-hero__actions { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; }
@media (min-width: 640px) { .theme-hero__actions { flex-direction: row; } }
.theme-hero__secondary { font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-background); }

/* Marquee */
.theme-marquee {
  position: relative; width: 100%; overflow: hidden;
  border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border);
  background-color: var(--color-butter); padding: 0.75rem 0;
}
.theme-marquee__track { display: flex; width: max-content; align-items: center; white-space: nowrap; }
.theme-marquee__item { display: flex; align-items: center; }
.theme-marquee__label { padding: 0 1.25rem; font-size: 0.8125rem; letter-spacing: 0.22em; text-transform: uppercase; color: color-mix(in srgb, var(--color-foreground) 75%, transparent); }
.theme-marquee__dot { color: var(--color-accent); }

.animate-marquee { animation: theme-marquee 34s linear infinite; }
.marquee-mask:hover .animate-marquee { animation-play-state: paused; }
@keyframes theme-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .animate-marquee { animation: none; } }

/* ------------------------------------------------------------------------
   6. Scroll reveal (Section 2.1)
   ------------------------------------------------------------------------ */
.reveal-item { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth); }
.reveal-item.is-visible { opacity: 1; transform: translateY(0); }
.theme-hero__text.reveal-item { transition-duration: 0.9s; }

/* Customizer preview / no-JS fallback — reveal content must never stay hidden */
body.is-customizer .reveal-item,
.no-js .reveal-item {
  opacity: 1 !important;
  transform: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .reveal-item { transition: none; opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------------
   7. Services
   ------------------------------------------------------------------------ */
.theme-services-grid {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background-color: var(--color-border); border-radius: var(--radius); overflow: hidden;
}
@media (min-width: 640px) { .theme-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .theme-services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.theme-service-card { background-color: var(--color-background); padding: 2rem 2.5rem; transition: background-color 0.3s ease, transform 0.25s ease; }
.theme-service-card:hover { background-color: color-mix(in srgb, var(--color-sage) 10%, var(--color-background)); transform: translateY(-6px); }

.theme-service-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; margin-bottom: 1.5rem;
  border-radius: 999px; border: 2px solid color-mix(in srgb, var(--color-sage) 40%, transparent);
  color: var(--color-sage);
  transition: all 0.3s ease;
}
.theme-service-card:hover .theme-service-card__icon {
  transform: scale(1.1);
  border-color: var(--color-accent);
  background-color: var(--color-accent);
  color: var(--color-foreground);
  box-shadow: var(--shadow-soft);
}
.theme-service-card__title { font-size: 1.25rem; margin-bottom: 0.75rem; transition: color 0.3s ease; }
.theme-service-card:hover .theme-service-card__title { color: var(--color-primary); }
.theme-service-card__description { font-size: 0.875rem; color: color-mix(in srgb, var(--color-muted-foreground) 100%, transparent); line-height: 1.65; }

/* ------------------------------------------------------------------------
   8. About
   ------------------------------------------------------------------------ */
.theme-about-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .theme-about-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.theme-about-grid__photo { position: relative; }
.theme-about-photo-frame { position: relative; height: 21.25rem; overflow: hidden; border-radius: 0.25rem; border: 1px solid var(--color-border); box-shadow: var(--shadow-soft); }
@media (min-width: 640px) { .theme-about-photo-frame { height: 27.5rem; } }
@media (min-width: 1024px) { .theme-about-photo-frame { height: 35rem; } }

.theme-about-badge { position: absolute; bottom: -1.5rem; right: -1rem; width: 6rem; height: 6rem; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,.2)); display: none; }
@media (min-width: 640px) { .theme-about-badge { display: block; } }
@media (min-width: 1024px) { .theme-about-badge { right: -2rem; width: 7rem; height: 7rem; } }

.theme-about-quote { border-left: 2px solid color-mix(in srgb, var(--color-primary) 60%, transparent); padding-left: 1.25rem; margin: 1.75rem 0; }
.theme-about-quote p { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: color-mix(in srgb, var(--color-foreground) 85%, transparent); line-height: 1.3; }
@media (min-width: 768px) { .theme-about-quote p { font-size: 1.5rem; } }

.theme-about-paragraph { color: color-mix(in srgb, var(--color-foreground) 70%, transparent); line-height: 1.7; margin-bottom: 1rem; }

/* ------------------------------------------------------------------------
   9. Shop section
   ------------------------------------------------------------------------ */
.theme-shop-search { position: relative; max-width: 28rem; margin: 0 auto 2rem; }
.theme-shop-search svg { position: absolute; left: 0; top: 50%; transform: translateY(-50%); color: var(--color-muted-foreground); }
.theme-shop-search input {
  width: 100%; padding: 0.5rem 0 0.5rem 1.75rem; background: transparent; border: 0; border-bottom: 1px solid var(--color-border);
  font-size: 1rem; color: var(--color-foreground); outline: none; transition: border-color 0.2s ease;
}
.theme-shop-search input:focus { border-color: var(--color-foreground); }
.theme-shop-search input::placeholder { color: var(--color-muted-foreground); }

.theme-shop-categories { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 1rem; }
.theme-cat-filter {
  padding: 0.5rem 1.25rem; font-size: 0.8125rem; letter-spacing: 0.18em; text-transform: uppercase;
  border-radius: 999px; border: 1px solid var(--color-border); background: transparent; color: var(--color-foreground);
  transition: all 0.3s ease;
}
.theme-cat-filter:hover { border-color: var(--color-foreground); }
.theme-cat-filter.is-active { background-color: var(--color-foreground); color: var(--color-background); border-color: var(--color-foreground); }

.theme-price-filter-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.theme-price-filter-toggle {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem;
  font-size: 0.8125rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-muted-foreground);
  transition: color 0.3s ease;
}
.theme-price-filter-toggle:hover { color: var(--color-foreground); }
.theme-price-filter-toggle svg { transition: transform 0.3s ease; }
.theme-price-filter-toggle.is-open svg { transform: rotate(180deg); }
.theme-price-filter-toggle__range { text-transform: none; letter-spacing: normal; opacity: 0.7; }

.theme-price-filter-panel { width: 100%; max-width: 24rem; overflow: hidden; max-height: 0; opacity: 0; transition: max-height 0.3s var(--ease-smooth), opacity 0.3s var(--ease-smooth); }
.theme-price-filter-panel.is-open { max-height: 8rem; opacity: 1; padding: 0.5rem 0; }
.theme-price-filter-values { display: flex; justify-content: space-between; font-size: 0.875rem; color: var(--color-muted-foreground); margin-top: 0.5rem; }

/* Dual-handle range slider (Section 31.4) */
.price-range-wrapper { position: relative; height: 1.5rem; }
.range-track-bg, .range-track-fill { position: absolute; height: 4px; top: 50%; transform: translateY(-50%); pointer-events: none; border-radius: 999px; }
.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: 999px;
  background: var(--color-background); border: 2px solid var(--color-primary); cursor: pointer; margin-top: 0;
}
.range-input::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 999px; background: var(--color-background); border: 2px solid var(--color-primary); cursor: pointer; }
.range-input::-webkit-slider-runnable-track { background: transparent; }
.range-input::-moz-range-track { background: transparent; }
.range-input--max { z-index: 3; }
.range-input--min { z-index: 4; }

.theme-shop-empty { text-align: center; padding: 4rem 0; color: var(--color-muted-foreground); }
.theme-shop-showmore-wrap { text-align: center; margin-top: 3rem; }

/* Product grid (Section 31.9 — equal height cards) */
.theme-product-grid {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
  align-items: stretch;
}
@media (min-width: 768px) { .theme-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .theme-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; } }
.theme-product-grid--related {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .theme-product-grid--related {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
  }
}

.theme-shop-grid-item { display: flex; }
.theme-shop-grid-item.is-hidden-overflow,
.theme-shop-grid-item.is-hidden-filter { display: none; }

.theme-product-card-wrap { width: 100%; display: flex; }
.theme-product-card { position: relative; display: flex; flex-direction: column; height: 100%; width: 100%; min-width: 0; }

.theme-product-card > .theme-card-link { position: absolute; inset: 0; z-index: 2; pointer-events: auto; }
.theme-product-card *:not(.theme-card-link) { pointer-events: none; }
.theme-product-card__add { pointer-events: auto; }

.theme-product-card__image-wrapper {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--card-radius);
  background-color: var(--color-secondary); margin-bottom: 1.25rem;
}
.theme-product-card:hover .theme-product-card-img { transform: scale(1.04); }
.theme-product-card-img { transition: transform 0.7s var(--ease-smooth); }
.theme-product-card-img.is-sold-out { 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: 0.75rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  background-color: var(--color-foreground); color: var(--color-background); border-radius: 999px;
}

.theme-product-card__add {
  position: absolute; bottom: 0.75rem; right: 0.75rem; z-index: 3;
  width: 2.5rem; height: 2.5rem; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background-color: var(--color-background); color: var(--color-foreground);
  box-shadow: var(--shadow-soft); opacity: 0; transition: opacity 0.3s ease, transform 0.2s ease;
}
.theme-product-card:hover .theme-product-card__add { opacity: 1; }
.theme-product-card__add:hover { transform: scale(1.08); }
@media (max-width: 767px) { .theme-product-card__add { opacity: 1; } }

.theme-product-card__info { flex: 1; text-align: center; }
.theme-product-card__title { font-size: 1.125rem; font-weight: 500; line-height: 1.3; color: var(--color-foreground); margin-bottom: 0.25rem; transition: color 0.3s ease; }
@media (min-width: 768px) { .theme-product-card__title { font-size: 1.25rem; } }
.theme-product-card:hover .theme-product-card__title { color: var(--color-primary); }
.theme-product-card__price { font-size: 1rem; color: var(--color-muted-foreground); }
@media (min-width: 768px) { .theme-product-card__price { font-size: 1.125rem; } }
.theme-product-card__price del { opacity: 0.6; margin-right: 0.4em; }
.theme-product-card__price ins { text-decoration: none; }

/* ------------------------------------------------------------------------
   10. Blog / Journal
   ------------------------------------------------------------------------ */
.theme-blog-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .theme-blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; } }

.theme-blog-card {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--color-border);
  background-color: color-mix(in srgb, var(--color-card) 40%, transparent);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.theme-blog-card:hover { border-color: color-mix(in srgb, var(--color-primary) 40%, transparent); background-color: color-mix(in srgb, var(--color-card) 70%, transparent); }
.theme-blog-card__cover { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background-color: var(--color-secondary); }
.theme-blog-card__cover img { transition: transform 0.7s ease; }
.theme-blog-card:hover .theme-blog-card__cover img { transform: scale(1.04); }
.theme-blog-card__body { display: flex; flex-direction: column; justify-content: space-between; flex: 1; padding: 1.5rem 1.75rem; }
.theme-blog-card__meta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-muted-foreground); margin-bottom: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.theme-blog-card__category { color: var(--color-primary); flex-shrink: 0; }
.theme-blog-card__sep { height: 1px; width: 1.25rem; background: var(--color-border); flex-shrink: 0; }
.theme-blog-card__title { font-size: 1.25rem; margin-bottom: 0.75rem; transition: color 0.3s ease; }
@media (min-width: 768px) { .theme-blog-card__title { font-size: 1.5rem; } }
.theme-blog-card:hover .theme-blog-card__title { color: var(--color-primary); }
.theme-blog-card__excerpt { color: color-mix(in srgb, var(--color-foreground) 70%, transparent); line-height: 1.6; margin-bottom: 1rem; }
.theme-blog-card__readmore { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; margin-top: 0.5rem; }

/* Single blog post */
.theme-blog-post__article { padding-top: 3rem; padding-bottom: 5rem; }
@media (min-width: 768px) { .theme-blog-post__article { padding-top: 5rem; padding-bottom: 5rem; } }
.theme-blog-post__back { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-muted-foreground); }
.theme-blog-post__back:hover { color: var(--color-foreground); }
.theme-blog-post__meta { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-primary); }
.theme-blog-post__meta-item { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--color-muted-foreground); }
.theme-blog-post__sep { height: 1px; width: 1.5rem; background: var(--color-border); }
.theme-blog-post__title { margin-top: 1.25rem; font-weight: 400; font-size: 2.25rem; line-height: 1.08; }
@media (min-width: 640px) { .theme-blog-post__title { font-size: 3rem; } }
@media (min-width: 1024px) { .theme-blog-post__title { font-size: 3.75rem; } }
.theme-blog-post__excerpt { margin-top: 1.5rem; font-size: 1.125rem; color: var(--color-muted-foreground); line-height: 1.7; }
.theme-blog-post__author { margin-top: 2rem; display: flex; align-items: center; gap: 1rem; border-top: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent); padding-top: 1.5rem; }
.theme-blog-post__author-avatar { width: 2.75rem; height: 2.75rem; display: flex; align-items: center; justify-content: center; border-radius: 999px; background-color: color-mix(in srgb, var(--color-primary) 10%, transparent); color: var(--color-primary); font-family: var(--font-display); font-size: 1rem; }
.theme-blog-post__author-name { font-size: 0.875rem; font-weight: 600; }
.theme-blog-post__author-role { font-size: 0.8125rem; color: var(--color-muted-foreground); }
.theme-blog-post__cover { position: relative; margin-top: 2.5rem; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent); }
@media (min-width: 768px) { .theme-blog-post__cover { margin-top: 3rem; } }

.theme-blog-post__content { margin-top: 2.5rem; width: 100%; max-width: none; }
@media (min-width: 768px) { .theme-blog-post__content { margin-top: 3.5rem; } }
.theme-blog-post__content p { margin-top: 1.5rem; font-size: 1.0625rem; line-height: 1.85; color: color-mix(in srgb, var(--color-foreground) 80%, transparent); }
.theme-blog-post__content h2 { margin-top: 3rem; font-weight: 400; font-size: 1.5rem; line-height: 1.3; }
@media (min-width: 768px) { .theme-blog-post__content h2 { font-size: 1.875rem; } }
.theme-blog-post__content ul { margin-top: 1.5rem; }
.theme-blog-post__content ul li { display: flex; gap: 1rem; margin-top: 0.75rem; font-size: 1.0625rem; line-height: 1.75; color: color-mix(in srgb, var(--color-foreground) 80%, transparent); }
.theme-blog-post__content ul li::before { content: ''; margin-top: 0.75rem; display: inline-block; height: 0.375rem; width: 0.375rem; flex: none; border-radius: 999px; background-color: var(--color-accent); }
.theme-blog-post__content blockquote { margin: 2.5rem 0; border-left: 2px solid color-mix(in srgb, var(--color-primary) 60%, transparent); padding-left: 1.5rem; }
.theme-blog-post__content blockquote p { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; line-height: 1.3; color: color-mix(in srgb, var(--color-foreground) 90%, transparent); margin-top: 0; }
@media (min-width: 768px) { .theme-blog-post__content blockquote p { font-size: 1.5rem; } }

.theme-blog-related { border-top: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent); background-color: var(--color-card); }
.theme-blog-related__inner { padding-top: 3.5rem; padding-bottom: 3.5rem; }
@media (min-width: 768px) { .theme-blog-related__inner { padding-top: 5rem; padding-bottom: 5rem; } }
.theme-blog-related__title { font-weight: 400; font-size: 1.875rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .theme-blog-related__title { font-size: 2.25rem; } }
.theme-blog-related__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .theme-blog-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.theme-blog-related__card { display: block; }
.theme-blog-related__cover { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent); }
.theme-blog-related__cover img { transition: transform 0.7s ease; }
.theme-blog-related__card:hover .theme-blog-related__cover img { transform: scale(1.04); }
.theme-blog-related__meta { margin-top: 1rem; display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-primary); }
.theme-blog-related__reading-time { color: var(--color-muted-foreground); }
.theme-blog-related__card h3 { margin-top: 0.75rem; font-size: 1.25rem; line-height: 1.3; transition: color 0.3s ease; }
@media (min-width: 768px) { .theme-blog-related__card h3 { font-size: 1.5rem; } }
.theme-blog-related__card:hover h3 { color: var(--color-primary); }
.theme-blog-related__read-more { margin-top: 0.75rem; display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; }

/* ------------------------------------------------------------------------
   11. Markets & Events
   ------------------------------------------------------------------------ */
.theme-markets-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
@media (min-width: 1024px) { .theme-markets-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }

.theme-markets-calendar { border-radius: 0.75rem; border: 1px solid var(--color-border); background-color: var(--color-background); padding: 1.25rem; }
@media (min-width: 768px) { .theme-markets-calendar { padding: 1.75rem; } }
@media (min-width: 1024px) {
  .theme-markets-calendar { position: sticky; top: 6rem; }
  .admin-bar .theme-markets-calendar { top: calc(6rem + 32px); }
}
@media screen and (max-width: 782px) {
  .admin-bar .theme-markets-calendar { top: calc(6rem + 46px); }
}

.theme-markets-calendar__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.theme-markets-calendar__header h3 { font-size: 1.25rem; }
@media (min-width: 768px) { .theme-markets-calendar__header h3 { font-size: 1.5rem; } }
.theme-markets-calendar__nav { padding: 0.5rem; border-radius: 999px; border: 1px solid var(--color-border); transition: background-color 0.2s ease; }
.theme-markets-calendar__nav:hover { background-color: var(--color-secondary); }

.theme-markets-calendar__weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.25rem; margin-bottom: 0.5rem; }
.theme-markets-calendar__weekdays span { text-align: center; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-muted-foreground); padding: 0.25rem 0; display: block; }

.theme-markets-calendar__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.25rem; }
.theme-calendar-day {
  aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 0.5rem; font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 70%, transparent);
}
.theme-calendar-day.is-empty { visibility: hidden; }
.theme-calendar-day.has-event { background-color: var(--color-primary); color: var(--color-primary-foreground); font-weight: 600; }
.theme-calendar-day__dot { margin-top: 0.15rem; height: 0.25rem; width: 0.25rem; border-radius: 999px; background-color: var(--color-accent); }

.theme-markets-calendar__legend { margin-top: 1.25rem; display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-muted-foreground); }
.theme-markets-calendar__legend-dot { height: 0.75rem; width: 0.75rem; border-radius: 999px; background-color: var(--color-primary); }

.theme-markets-list { }
.theme-market-event { padding: 1.75rem 0; border-bottom: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent); }
.theme-market-event:first-child { padding-top: 0; }
.theme-market-event:last-child { padding-bottom: 0; border-bottom: none; }
@media (min-width: 768px) { .theme-market-event { padding: 2rem 0; } }
.theme-market-event__date { display: block; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); margin-bottom: 0.5rem; }
.theme-market-event__name { font-size: 1.5rem; margin-bottom: 0.75rem; }
.theme-market-event__meta { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 75%, transparent); }
.theme-market-event__meta span { display: flex; align-items: center; gap: 0.5rem; }
.theme-market-event__meta svg { flex-shrink: 0; color: var(--color-primary); }
.theme-market-event__note { margin-top: 0.75rem; font-size: 0.875rem; color: var(--color-muted-foreground); line-height: 1.6; }

/* ------------------------------------------------------------------------
   12. FAQ
   ------------------------------------------------------------------------ */
.theme-faq-list { max-width: 42rem; margin: 0 auto; }
.theme-faq-item { padding: 1.25rem 0; border-bottom: 1px solid var(--color-border); }
.theme-faq-item:first-child { border-top: 1px solid var(--color-border); }
.theme-faq-item__summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.theme-faq-item__summary span { font-size: 1.125rem; }
@media (min-width: 768px) { .theme-faq-item__summary span { font-size: 1.25rem; } }
.theme-faq-item__chevron { flex-shrink: 0; color: var(--color-muted-foreground); transition: transform 0.3s ease; }
.theme-faq-item[open] .theme-faq-item__chevron { transform: rotate(180deg); }
.theme-faq-item__answer { margin-top: 0.75rem; font-size: 0.9375rem; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); line-height: 1.65; }

.theme-faq-footer { text-align: center; margin-top: 3rem; }
.theme-faq-footer p { font-size: 0.875rem; color: var(--color-muted-foreground); margin-bottom: 1rem; }
.theme-faq-footer a { font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; }

/* ------------------------------------------------------------------------
   13. Contact
   ------------------------------------------------------------------------ */
.contact-section { position: relative; overflow: hidden; }
.theme-contact__video { z-index: 0; }
.theme-contact__scrim { position: absolute; inset: 0; background-color: color-mix(in srgb, var(--color-background) 45%, transparent); }
.theme-contact__gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--color-background) 40%, transparent) 0%,
    color-mix(in srgb, var(--color-background) 45%, transparent) 50%,
    color-mix(in srgb, var(--color-background) 65%, transparent) 100%);
}
.theme-contact__container { position: relative; padding-top: 5rem; padding-bottom: 5rem; }
@media (min-width: 768px) { .theme-contact__container { padding-top: 7rem; padding-bottom: 7rem; } }

.theme-contact__card {
  max-width: 42rem; margin: 0 auto; text-align: center; border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--color-border) 50%, transparent);
  background-color: color-mix(in srgb, var(--color-background) 70%, transparent);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-elevated);
  padding: 2.5rem 1.5rem;
}
@media (min-width: 640px) { .theme-contact__card { padding: 2.5rem 2.5rem; } }
@media (min-width: 768px) { .theme-contact__card { padding: 3.5rem; } }

.theme-contact__subtitle { color: color-mix(in srgb, var(--color-foreground) 75%, transparent); line-height: 1.65; margin: 0 auto 2.5rem; max-width: 28rem; }
.theme-contact__meta { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; margin-bottom: 2.5rem; }
.theme-contact__meta a { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 80%, transparent); transition: color 0.2s ease; }
.theme-contact__meta a:hover { color: var(--color-foreground); }
.theme-contact__actions { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem; }
@media (min-width: 640px) { .theme-contact__actions { flex-direction: row; } }
.theme-contact__secondary { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; }

/* ------------------------------------------------------------------------
   14. Footer
   ------------------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--color-border); background-color: var(--color-background); }
.site-footer__inner { padding-top: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 1024px) { .site-footer__inner { padding-top: 3rem; padding-bottom: 3rem; } }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }

.site-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
/* Match Lovable footer logo: h-14 (56px) */
.site-footer__logo-link .site-logo-img {
  height: 3.5rem !important;
  max-height: 3.5rem;
  width: auto;
}
.site-footer__tagline { font-size: 0.875rem; color: var(--color-muted-foreground); line-height: 1.6; max-width: 20rem; }

.site-footer__heading { font-size: 0.8125rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 0.25rem; font-family: var(--font-body); }
.site-footer__nav-col { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
@media (min-width: 768px) { .site-footer__nav-col { align-items: center; } }
.theme-footer-nav-list { display: flex; flex-direction: column; gap: 0.75rem; align-items: inherit; }
.theme-footer-nav-list a, .theme-footer-nav-link { font-size: 0.875rem; color: var(--color-muted-foreground); transition: color 0.2s ease; }
.theme-footer-nav-list a:hover, .theme-footer-nav-link:hover { color: var(--color-foreground); }

.site-footer__contact-col { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
@media (min-width: 768px) { .site-footer__contact-col { align-items: flex-end; } }
.site-footer__contact-link { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--color-muted-foreground); transition: color 0.2s ease; }
.site-footer__contact-link:hover { color: var(--color-foreground); }

.site-footer__bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 0.75rem; }
@media (min-width: 640px) { .site-footer__bottom { flex-direction: row; } }
.site-footer__copyright, .site-footer__credit { font-size: 0.8125rem; color: var(--color-muted-foreground); letter-spacing: 0.02em; text-align: center; }
.site-footer__credit a { text-decoration: underline; transition: color 0.2s ease; }
.site-footer__credit a:hover { color: var(--color-foreground); }

/* ------------------------------------------------------------------------
   15. Cart drawer & overlay
   ------------------------------------------------------------------------ */
#theme-cart-overlay { position: fixed; inset: 0; z-index: 60; background-color: color-mix(in srgb, var(--color-foreground) 20%, transparent); opacity: 0; visibility: hidden; transition: opacity 0.3s ease; }
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; z-index: 61;
  background-color: var(--color-background); box-shadow: var(--shadow-elevated);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.35s var(--ease-smooth);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }
#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-size: 1.125rem; font-weight: 700; }
.theme-cart-drawer__close { padding: 0.25rem; opacity: 1; transition: opacity 0.2s ease; }
.theme-cart-drawer__close:hover { opacity: 0.6; }

.theme-cart-drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; gap: 1rem; }
.theme-cart-drawer__empty svg { color: var(--color-muted-foreground); }
.theme-cart-drawer__empty p { color: var(--color-muted-foreground); }

.theme-cart-drawer__items { flex: 1; overflow: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.theme-cart-item { display: flex; gap: 1rem; }
.theme-cart-item__image {
  position: relative;
  display: block;
  width: 5rem;
  height: 6rem;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 0.5rem;
  background-color: var(--color-secondary);
}
/* Beat global img { height: auto } so the thumb fills the 5×6 rem frame */
#theme-cart-drawer .theme-cart-item__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
}
.theme-cart-item__info { flex: 1; min-width: 0; }
.theme-cart-item__name { font-size: 0.875rem; font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity 0.2s ease; }
.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__variation { font-size: 0.8125rem; color: var(--color-muted-foreground); margin-top: 0.25rem; }
.theme-cart-item__controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.theme-cart-item__qty-btn { padding: 0.25rem; border-radius: 0.25rem; transition: background-color 0.2s ease; }
.theme-cart-item__qty-btn:hover { background-color: var(--color-secondary); }
.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); transition: color 0.2s ease; }
.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-row { display: flex; justify-content: space-between; font-size: 0.875rem; }
.theme-cart-drawer__subtotal-value { font-weight: 500; }
.theme-cart-drawer__shipping-note { font-size: 0.875rem; color: var(--color-muted-foreground); }
.theme-cart-drawer__checkout { width: 100%; }
.theme-cart-drawer__empty-btn { width: 100%; }

/* ------------------------------------------------------------------------
   16. Contact modal (Section 9)
   ------------------------------------------------------------------------ */
.theme-contact-modal-overlay { position: fixed; inset: 0; z-index: 70; background-color: rgba(0,0,0,0.5); opacity: 0; visibility: hidden; transition: opacity 0.25s ease; }
body.contact-modal-open .theme-contact-modal-overlay { opacity: 1; visibility: visible; }

/* Flex-centered shell so the panel stays fully visible (incl. WP admin bar / short viewports) */
.theme-contact-modal {
  position: fixed;
  inset: 0;
  z-index: 71;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  width: auto;
  max-width: none;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: none;
  transition: opacity 0.25s ease, visibility 0.25s;
}
body.contact-modal-open .theme-contact-modal {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.theme-contact-modal__panel {
  position: relative;
  width: 100%;
  max-width: 32rem;
  max-height: min(90vh, calc(100dvh - 2rem));
  margin: auto;
  overflow-y: auto;
  background-color: var(--color-background);
  border-radius: var(--radius);
  box-shadow: var(--shadow-elevated);
  padding: 1.75rem;
  transform: scale(0.96);
  transition: transform 0.25s var(--ease-smooth);
}
body.contact-modal-open .theme-contact-modal__panel { transform: scale(1); }
@media (min-width: 640px) { .theme-contact-modal__panel { padding: 2rem; } }
.admin-bar .theme-contact-modal__panel {
  max-height: min(90vh, calc(100dvh - 2rem - 32px));
}
@media screen and (max-width: 782px) {
  .admin-bar .theme-contact-modal__panel {
    max-height: min(90vh, calc(100dvh - 2rem - 46px));
  }
}
.theme-contact-modal__close { position: absolute; top: 1rem; right: 1rem; padding: 0.375rem; border-radius: 0.375rem; transition: background-color 0.2s ease; }
.theme-contact-modal__close:hover { background-color: var(--color-secondary); }
.theme-contact-modal__title { font-size: 1.5rem; margin-bottom: 0.5rem; padding-right: 1.5rem; }
.theme-contact-modal__description { font-size: 0.9375rem; color: var(--color-muted-foreground); margin-bottom: 1.25rem; }
.theme-contact-modal__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; font-size: 0.875rem; color: var(--color-muted-foreground); margin-bottom: 1.5rem; }
.theme-contact-modal__meta a { display: flex; align-items: center; gap: 0.5rem; transition: color 0.2s ease; }
.theme-contact-modal__meta a:hover { color: var(--color-foreground); }

.theme-contact-modal__form { display: flex; flex-direction: column; gap: 1rem; }
.theme-contact-modal__row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .theme-contact-modal__row { grid-template-columns: 1fr 1fr; } }
.theme-contact-modal__form label { font-size: 0.875rem; font-weight: 500; display: block; margin-bottom: 0.375rem; }
.theme-contact-modal__form input, .theme-contact-modal__form textarea {
  width: 100%; padding: 0.65rem 0.75rem; background-color: var(--color-background); border: 1px solid var(--color-border);
  border-radius: 0.5rem; font-size: 1rem; transition: box-shadow 0.2s ease;
}
.theme-contact-modal__form input:focus, .theme-contact-modal__form textarea:focus { outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 50%, transparent); }
.theme-contact-modal__form textarea { resize: none; }
.theme-contact-modal__actions { display: flex; justify-content: flex-end; }
.theme-contact-modal__actions .theme-btn-primary { border-radius: 0.5rem; height: 2.5rem; padding: 0 1.25rem; text-transform: none; letter-spacing: normal; font-size: 0.875rem; }
.theme-contact-modal__error { color: #b3261e; font-size: 0.875rem; margin-top: -0.25rem; }

.theme-contact-modal__success { text-align: center; padding: 1.5rem 0; }
.theme-contact-modal__success-icon { width: 3.5rem; height: 3.5rem; background-color: var(--color-primary); color: var(--color-primary-foreground); border-radius: 999px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.theme-contact-modal__success h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.theme-contact-modal__success p { font-size: 0.875rem; color: var(--color-muted-foreground); }

/* ------------------------------------------------------------------------
   17. Single product page (Section 11.13)
   ------------------------------------------------------------------------ */
.theme-product-page { padding: 6rem 0 4rem; }
@media (min-width: 1024px) { .theme-product-page { padding: 7rem 0 4rem; } }

.theme-product-breadcrumb { padding: 1.5rem 0; font-size: 0.8125rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); }
.theme-product-breadcrumb a:hover { color: var(--color-foreground); }
.theme-product-breadcrumb__sep { margin: 0 0.5rem; opacity: 0.5; }
.theme-product-breadcrumb__current { color: var(--color-foreground); }

.theme-product-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding: 1rem 0 6rem; align-items: start; min-width: 0; }
@media (min-width: 1024px) { .theme-product-layout { grid-template-columns: 7fr 5fr; gap: 4rem; } }

.theme-product-gallery, .theme-product-info { min-width: 0; max-width: 100%; }
@media (min-width: 1024px) {
  .theme-product-info {
    position: sticky;
    top: 7rem;
    padding-left: 1rem;
    align-self: start;
  }
  .admin-bar .theme-product-info { top: calc(7rem + 32px); }
}
@media screen and (max-width: 782px) {
  .admin-bar .theme-product-info { top: calc(7rem + 46px); }
}

.theme-product-gallery__main { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background-color: var(--color-secondary); border-radius: var(--radius); }
.theme-product-thumbnails { display: flex; gap: 0.75rem; margin-top: 1rem; flex-wrap: wrap; max-width: 100%; overflow-x: auto; padding-bottom: 0.25rem; }
.theme-product-thumb { position: relative; width: 5rem; height: 5rem; flex-shrink: 0; overflow: hidden; border-radius: 0.5rem; background-color: var(--color-secondary); }
.theme-product-thumb img { width: 100%; height: 100%; object-fit: contain; object-position: center; opacity: 0.6; transition: opacity 0.2s ease; }
.theme-product-thumb.is-active img { opacity: 1; }
.theme-product-thumb.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background-color: var(--color-foreground); }

.theme-product-info__category { display: block; font-size: 0.8125rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--color-muted-foreground); }
.theme-product-info__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.875rem;
  line-height: 1.1;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 768px) { .theme-product-info__title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .theme-product-info__title { font-size: 2.75rem; } }
.theme-product-info__price { font-size: 1.25rem; margin-bottom: 1.5rem; color: var(--color-foreground); }
.theme-product-info__price del { opacity: 0.6; margin-right: 0.5em; }
.theme-product-info__stock { font-size: 0.875rem; font-weight: 600; margin-bottom: 1.5rem; }
.theme-product-info__stock.is-out-of-stock { color: #b3261e; }
.theme-product-info__lede {
  color: var(--color-muted-foreground);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-size: 1rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.theme-product-info__qty { margin-bottom: 1rem; }
.theme-product-info__qty-label {
  display: block;
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  margin-bottom: 0.75rem;
}

.theme-quantity-wrapper { display: inline-flex; align-items: center; border: 1px solid var(--color-border); height: 2.5rem; }
.theme-qty-minus, .theme-qty-plus { padding: 0 0.75rem; height: 100%; display: inline-flex; align-items: center; justify-content: center; transition: background-color 0.2s ease; }
.theme-qty-minus:hover, .theme-qty-plus:hover { background-color: var(--color-secondary); }
.theme-qty-input { width: 2.75rem; text-align: center; border: none; background: transparent; font-size: 0.875rem; -moz-appearance: textfield; }
.theme-qty-input::-webkit-outer-spin-button, .theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Lovable CTA: full-width rounded pill, foreground fill */
.theme-product-info__atc.single_add_to_cart_button,
.theme-product-info__atc {
  display: flex !important;
  width: 100% !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 3.25rem !important;
  padding: 1rem 1.5rem !important;
  margin-top: 0 !important;
  border-radius: 999px !important;
  background-color: var(--color-foreground) !important;
  color: var(--color-background) !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.25em !important;
  text-transform: uppercase !important;
  font-weight: 500 !important;
  border: none !important;
}
.theme-product-info__atc.single_add_to_cart_button:hover,
.theme-product-info__atc:hover {
  background-color: color-mix(in srgb, var(--color-foreground) 90%, transparent) !important;
  color: var(--color-background) !important;
  opacity: 1 !important;
}
.theme-product-info__atc.disabled {
  opacity: 0.6 !important;
  pointer-events: none !important;
}

.theme-product-accordions { margin-top: 2.5rem; border-top: 1px solid var(--color-border); }
.theme-product-accordion { border-bottom: 1px solid var(--color-border); }
.theme-product-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  font-size: 0.8125rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  list-style: none;
}
.theme-product-accordion summary::-webkit-details-marker { display: none; }
.theme-product-accordion summary svg { flex-shrink: 0; transition: transform 0.2s ease; }
.theme-product-accordion[open] summary svg { transform: rotate(180deg); }
.theme-product-accordion__body { padding: 0 0 1.5rem; }
.theme-product-accordion__body p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-muted-foreground);
  margin-bottom: 0.75rem;
}
.theme-product-accordion__body p:last-child { margin-bottom: 0; }
.theme-product-info__details-content { margin-top: 1rem; }
.theme-product-info__details-content ul { display: flex; flex-direction: column; gap: 0.5rem; }
.theme-product-info__details-content li {
  display: flex;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--color-muted-foreground);
  line-height: 1.6;
}
.theme-product-info__details-content li::before {
  content: '';
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 999px;
  background-color: var(--color-foreground);
  margin-top: 0.55rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.related-products-section { padding: 5rem 0; border-top: 1px solid var(--color-border); }
.theme-related-heading { text-align: center; margin-bottom: 3rem; }
.theme-related-heading__pre { font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--color-muted-foreground); margin-bottom: 0.5rem; }
.theme-related-heading__main { font-weight: 400; font-size: 1.875rem; }
@media (min-width: 768px) { .theme-related-heading__main { font-size: 2.25rem; } }

/* Product image / thumbnail cover exclusions covered in section 1 img rule */

/* ------------------------------------------------------------------------
   18. WooCommerce global style overrides (Section 14)
   ------------------------------------------------------------------------ */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  font-family: var(--font-body); border-radius: 0.5rem; padding: 1rem 1.5rem; margin: 0 0 1.5rem;
  list-style: none; border: 1px solid var(--color-border); background-color: var(--color-card); color: var(--color-foreground);
}
.woocommerce-error { border-color: #f3c8c4; background-color: #fdecea; color: #611a15; }

.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message,
#theme-cart-drawer .woocommerce-info,
#theme-cart-drawer .woocommerce-error { 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; }

/* Card compact circular button — overrides the global rules above */
.theme-product-card .add_to_cart_button.ajax_add_to_cart {
  min-height: unset !important;
  height: 2.5rem !important;
  width: 2.5rem !important;
  padding: var(--btn-icon-padding) !important;
  border-radius: 50% !important;
}

/* Hide "View cart" injected by WooCommerce after AJAX add (Section 11.4.2) */
.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; }

/* Variations table layout (Section 11.5.1) */
.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; font-weight: 600; }
.single-product .variations tbody td.value { padding-top: 0; margin-bottom: 1rem; }
.theme-attr-select-hidden { display: none !important; }

.theme-add-to-cart-area { display: flex; align-items: stretch; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.single-product .single_add_to_cart_button { flex: 1 1 auto; min-width: 160px; }

/* ------------------------------------------------------------------------
   19. Shop archive (Section 19)
   ------------------------------------------------------------------------ */
.theme-shop-archive { padding: 6rem 0 4rem; }
.theme-shop-archive__inner { padding-top: 2rem; }
.shop-heading { }
.theme-shop-empty { text-align: center; padding: 3rem 0; color: var(--color-muted-foreground); }

/* ------------------------------------------------------------------------
   20. Checkout (native WooCommerce Checkout Block) — Section 13
   ------------------------------------------------------------------------ */
body.woocommerce-checkout .site-main,
body.woocommerce-checkout .theme-page { padding-top: var(--header-height); padding-bottom: 4rem; }

.page-title { font-weight: 400; font-size: 2.25rem; margin: 2rem 0 1.5rem; }
@media (min-width: 768px) { .page-title { font-size: 3rem; } }

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
  min-width: 0; width: 100%; max-width: none;
}

@media (min-width: 768px) {
  body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large,
  body.woocommerce-checkout .wc-block-checkout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--checkout-gap, 2rem);
    align-items: start;
  }
}

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);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background-color: var(--color-background);
  color: var(--color-foreground);
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus {
  outline: none;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 50%, transparent);
}
body.woocommerce-checkout .wc-block-components-text-input input {
  padding: revert;
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
  background-color: var(--color-card);
  border-radius: var(--card-radius);
  padding: var(--section-padding, 2rem);
}

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;
  text-transform: none !important;
}

body.woocommerce-checkout .wc-block-components-notice-banner {
  border-radius: 0.5rem;
  grid-column: 1 / -1;
}

/* ------------------------------------------------------------------------
   21. Thank you page (Section 22.8)
   ------------------------------------------------------------------------ */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .woocommerce-order,
body.theme-thankyou-page .woocommerce-order-details,
body.theme-thankyou-page .woocommerce-customer-details { margin-top: 1.5rem; }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title { font-size: 1.5rem; 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; background-color: var(--color-card); border-radius: var(--card-radius); }
body.theme-thankyou-page .woocommerce-order-overview li { font-size: 0.875rem; }
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; border-collapse: collapse; margin-top: 1rem; }
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; }

/* ------------------------------------------------------------------------
   22. Cart / My Account width parity (Section 13.7)
   ------------------------------------------------------------------------ */
body.woocommerce-cart .theme-page,
body.woocommerce-account .theme-page { padding-top: calc(var(--header-height) + 1rem); }

/* ------------------------------------------------------------------------
   23. 404
   ------------------------------------------------------------------------ */
.theme-404 { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding-top: var(--header-height); }
.theme-404__inner { text-align: center; }
.theme-404__inner h1 { font-size: 3rem; margin-bottom: 1rem; }
.theme-404__inner p { font-size: 1.125rem; color: var(--color-muted-foreground); margin-bottom: 1.5rem; }
.theme-404__link { color: var(--color-primary); text-decoration: underline; }

/* ------------------------------------------------------------------------
   24. Generic page template
   ------------------------------------------------------------------------ */
.theme-page__inner { padding-top: 6rem; padding-bottom: 4rem; }
.entry-content { line-height: 1.7; }
.entry-content p { margin-bottom: 1rem; }

/* ------------------------------------------------------------------------
   25. Animation utility layer (tailwindcss-animate parity — Section 2.1)
   ------------------------------------------------------------------------ */
.animate-fade-in { animation: theme-fade-in 0.6s var(--ease-smooth) forwards; }
.animate-slide-up { animation: theme-slide-up 0.4s var(--ease-smooth) forwards; }
@keyframes theme-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes theme-slide-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
