/* ==========================================================================
   3Deez Printed Items — theme stylesheet
   ========================================================================== */

:root {
  /* Exact Lovable tokens (src/index.css) */
  --font-display: 'Fraunces', ui-serif, Georgia, serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --radius: 0.75rem;
  --card-radius: 1.25rem;

  --btn-radius: 999px;
  --btn-height: 52px;
  --btn-padding: 0.9rem 2rem;
  --btn-font-size: 11px;
  --btn-font-weight: 600; /* Lovable Button: font-semibold */
  --btn-letter-spacing: 0.22em;
  --btn-text-transform: uppercase;
  --btn-icon-padding: 0.65rem;

  --color-button-text: #ffffff;
  --header-height: 88px;
  --checkout-gap: 2.5rem;

  --shadow-soft: 0 4px 20px -4px color-mix(in srgb, var(--color-primary) 10%, transparent);
  --shadow-elevated: 0 12px 40px -12px color-mix(in srgb, var(--color-primary) 24%, transparent);
  --ease-smooth: cubic-bezier(0.25, 0.4, 0.25, 1);
}

/* -------------------------------------------------------------------------
   BASE — match Lovable @layer base (src/index.css)
   ------------------------------------------------------------------------- */
*, *::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: 600;
  font-size: inherit;
  letter-spacing: -0.01em;
  margin: 0;
}

/* Tailwind-equivalent utilities used across Lovable */
.font-display { font-family: var(--font-display) !important; }
.font-body { font-family: var(--font-body) !important; }
.font-mono { font-family: var(--font-mono) !important; }

/* Beat WooCommerce / block editor font stacks */
body.woocommerce,
body.woocommerce-page,
body.woocommerce-shop,
.woocommerce,
.woocommerce-page,
.woocommerce button,
.woocommerce input,
.woocommerce select,
.woocommerce textarea,
.woocommerce .button,
.woocommerce a.button,
.wc-block-components-button,
.wp-block-button__link {
  font-family: var(--font-body);
}
.woocommerce h1,
.woocommerce h2,
.woocommerce h3,
.woocommerce h4,
.woocommerce h5,
.woocommerce h6,
.woocommerce-page h1,
.woocommerce-page h2,
.woocommerce-page h3 {
  font-family: var(--font-display);
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; background: none; border: none; cursor: pointer; color: inherit; }
input, textarea, select { font-family: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

img:not(.cover-img):not(.hero-bg-img):not(.product-card-img):not(.theme-hero-slide):not(.theme-category-tile-img):not(.theme-owner-img):not(.theme-contact-bg):not(.site-logo-img):not(.footer-logo-img):not(.theme-product-fallback) {
  max-width: 100%;
  height: auto;
  display: block;
}
.cover-img, .hero-bg-img, .product-card-img, .theme-hero-slide, .theme-category-tile-img, .theme-owner-img, .theme-contact-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.container-wide {
  width: 100%;
  max-width: 80rem; /* Lovable max-w-7xl */
  margin: 0 auto;
  padding: 0 1.5rem; /* px-6 */
}
@media (min-width: 1024px) { .container-wide { padding: 0 2rem; } } /* lg:px-8 */

.gallery-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  color: color-mix(in srgb, var(--color-foreground) 70%, transparent);
}

.link-underline { position: relative; display: inline-block; }
.link-underline::after {
  content: '';
  position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform-origin: left; transform: scaleX(0);
  transition: transform 0.3s var(--ease-smooth);
}
.link-underline:hover::after { transform: scaleX(1); }

/* -------------------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------------------- */
.btn-primary, .btn-outline, .btn-outline-primary, .btn-hero-primary, .btn-hero-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--btn-radius);
  padding: var(--btn-padding);
  font-size: var(--btn-font-size);
  font-family: var(--font-body); /* Lovable Button uses font-body, not mono */
  font-weight: var(--btn-font-weight);
  letter-spacing: var(--btn-letter-spacing);
  text-transform: var(--btn-text-transform);
  transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--color-primary); color: var(--color-button-text); }
a.btn-primary { text-decoration: none; }
.btn-primary:hover { opacity: 0.9; }
.btn-outline { background: transparent; border: 1px solid var(--color-border); color: var(--color-foreground); }
.btn-outline:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn-outline-primary { background: transparent; border: 1px solid var(--color-primary); color: var(--color-primary); }
.btn-outline-primary:hover { background: var(--color-primary); color: var(--color-button-text); }
.btn-hero-primary { background: var(--color-accent); color: var(--color-button-text); }
.btn-hero-primary:hover { opacity: 0.9; }
.btn-hero-outline { background: transparent; border: 1px solid rgba(255,255,255,0.8); color: #fff; }
.btn-hero-outline:hover { background: rgba(255,255,255,0.1); }

/* -------------------------------------------------------------------------
   ANIMATIONS
   ------------------------------------------------------------------------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes kenburns {
  0% { transform: scale(1) translate3d(0,0,0); }
  50% { transform: scale(1.08) translate3d(-1%, -0.5%, 0); }
  100% { transform: scale(1) translate3d(0,0,0); }
}
.animate-fade-in { animation: fadeIn 0.4s var(--ease-smooth) forwards; }
.animate-slide-up { animation: slideUp 0.4s var(--ease-smooth) forwards; }
.animate-kenburns { animation: kenburns 24s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .animate-kenburns { animation: none !important; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Scroll-reveal (Section 2.1): initial-hidden state, revealed by JS on
   intersection. Fallback to visible in the Customizer preview and when JS
   never runs. */
.reveal-item, .theme-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}
.reveal-item.is-visible, .theme-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
body.is-customizer .reveal-item,
body.is-customizer .theme-reveal,
.theme-product-card-wrap.reveal-item,
.theme-product-card-wrap .reveal-item {
  opacity: 1;
  transform: none;
}
/* Product cards use a global selector so the observer + fallback apply in
   every render context (shop, home sections, related products). */
.theme-product-card-wrap { opacity: 1; }
noscript ~ .reveal-item { opacity: 1; transform: none; }

/* -------------------------------------------------------------------------
   HEADER
   ------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  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, backdrop-filter 0.3s ease, top 0.2s ease;
}
body.theme-no-hero .site-header,
body:not(.theme-no-hero) .site-header { position: fixed; }
body:not(.home) .site-header { position: sticky; }

/* WordPress admin bar — keep the fixed/sticky header below it */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

.site-header.is-solid {
  background-color: color-mix(in srgb, var(--color-background) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--color-border);
}
.site-header:not(.is-solid) .site-logo-text,
.site-header:not(.is-solid) .theme-nav-link,
.site-header:not(.is-solid) .cart-toggle,
.site-header:not(.is-solid) .mobile-menu-toggle { color: #fff; }
.site-header.is-solid .site-logo-text,
.site-header.is-solid .theme-nav-link,
.site-header.is-solid .cart-toggle,
.site-header.is-solid .mobile-menu-toggle { color: var(--color-foreground); }

.site-nav { display: flex; align-items: center; justify-content: space-between; height: 88px; gap: 1rem; }
@media (min-width: 768px) { .site-nav { height: 96px; } }

.site-logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}
/* Match Lovable: h-12 md:h-14 w-auto — beat WooCommerce img resets on shop pages */
.site-header .site-logo-img,
body.woocommerce .site-header .site-logo-img,
body.woocommerce-page .site-header .site-logo-img,
body.woocommerce-shop .site-header .site-logo-img,
body.single-product .site-header .site-logo-img {
  height: calc(var(--logo-height, 56px) * 48 / 56) !important;
  width: auto !important;
  max-width: none !important;
  max-height: none !important;
  display: block !important;
  object-fit: contain !important;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .site-header .site-logo-img,
  body.woocommerce .site-header .site-logo-img,
  body.woocommerce-page .site-header .site-logo-img,
  body.woocommerce-shop .site-header .site-logo-img,
  body.single-product .site-header .site-logo-img {
    height: var(--logo-height, 56px) !important;
  }
}
.site-logo-text { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }

.site-nav-right { display: flex; align-items: center; gap: 1.5rem; }
.site-nav-links { display: none; }
@media (min-width: 1024px) { .site-nav-links { display: flex; align-items: center; gap: 2rem; } }

.theme-nav-list { display: flex; align-items: center; gap: 2rem; margin: 0; padding: 0; }
.theme-nav-link {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.3s ease;
  cursor: pointer;
}
.theme-nav-link:hover, .theme-nav-link.is-active { color: var(--color-accent) !important; }

.cart-toggle { position: relative; padding: 0.375rem; display: inline-flex; }
.cart-toggle:hover { color: var(--color-accent) !important; }
.theme-cart-count:not(:empty) {
  position: absolute; top: -2px; right: -2px;
  min-width: 18px; height: 18px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: var(--color-accent); color: #fff;
  font-size: 10px; font-weight: 500; line-height: 1;
}
.theme-cart-count:empty { display: none; }

.mobile-menu-toggle { display: inline-flex; padding: 0.5rem; margin-right: -0.5rem; }
@media (min-width: 1024px) { .mobile-menu-toggle { display: none; } }
.mobile-menu-toggle .icon-close { display: none; }
.mobile-menu-toggle.is-open .icon-menu { display: none; }
.mobile-menu-toggle.is-open .icon-close { display: block; }

.mobile-nav {
  display: block;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  border-top: 1px solid transparent;
  padding: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition:
    max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    padding 0.35s ease;
}
.mobile-nav.is-open {
  max-height: 70vh;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  border-top-color: var(--color-border);
  padding: 0.75rem 0 1.25rem;
}
.theme-nav-list-mobile { display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-nav .theme-nav-list { display: flex; flex-direction: column; gap: 0.25rem; }
.theme-nav-list-mobile li,
.mobile-nav .theme-nav-list li {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-nav.is-open .theme-nav-list-mobile li,
.mobile-nav.is-open .theme-nav-list li {
  opacity: 1;
  transform: translateX(0);
}
.mobile-nav.is-open .theme-nav-list-mobile li:nth-child(1),
.mobile-nav.is-open .theme-nav-list li:nth-child(1) { transition-delay: 0.05s; }
.mobile-nav.is-open .theme-nav-list-mobile li:nth-child(2),
.mobile-nav.is-open .theme-nav-list li:nth-child(2) { transition-delay: 0.09s; }
.mobile-nav.is-open .theme-nav-list-mobile li:nth-child(3),
.mobile-nav.is-open .theme-nav-list li:nth-child(3) { transition-delay: 0.13s; }
.mobile-nav.is-open .theme-nav-list-mobile li:nth-child(4),
.mobile-nav.is-open .theme-nav-list li:nth-child(4) { transition-delay: 0.17s; }
.mobile-nav.is-open .theme-nav-list-mobile li:nth-child(5),
.mobile-nav.is-open .theme-nav-list li:nth-child(5) { transition-delay: 0.21s; }
.mobile-nav.is-open .theme-nav-list-mobile li:nth-child(6),
.mobile-nav.is-open .theme-nav-list li:nth-child(6) { transition-delay: 0.25s; }
.mobile-nav.is-open .theme-nav-list-mobile li:nth-child(7),
.mobile-nav.is-open .theme-nav-list li:nth-child(7) { transition-delay: 0.29s; }
.theme-nav-list-mobile a,
.mobile-nav .theme-nav-list a {
  font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.7rem 0.25rem; display: block;
  transition: color 0.25s ease, padding-left 0.25s ease;
}
.theme-nav-list-mobile a:hover,
.theme-nav-list-mobile a:focus-visible,
.mobile-nav .theme-nav-list a:hover,
.mobile-nav .theme-nav-list a:focus-visible {
  color: var(--color-accent);
  padding-left: 0.5rem;
}
@media (min-width: 1024px) { .mobile-nav { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
  .mobile-nav,
  .theme-nav-list-mobile li,
  .mobile-nav .theme-nav-list li,
  .theme-nav-list-mobile a,
  .mobile-nav .theme-nav-list a {
    transition: none !important;
  }
  .mobile-nav:not(.is-open) { max-height: 0; opacity: 0; }
  .mobile-nav.is-open .theme-nav-list-mobile li,
  .mobile-nav.is-open .theme-nav-list li { opacity: 1; transform: none; }
}

/* -------------------------------------------------------------------------
   HERO
   ------------------------------------------------------------------------- */
.theme-hero { position: relative; width: 100%; height: 100vh; min-height: 640px; overflow: hidden; }
.theme-hero-slideshow { position: absolute; inset: 0; overflow: hidden; }
.theme-hero-slide {
  opacity: 0;
  transition: opacity 1.4s var(--ease-smooth);
}
.theme-hero-slide.is-active { opacity: 1; }
.theme-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--color-primary) 50%, transparent),
    color-mix(in srgb, var(--color-primary) 30%, transparent),
    color-mix(in srgb, var(--color-primary) 80%, transparent)),
    color-mix(in srgb, var(--color-primary) 70%, transparent);
  background-blend-mode: normal;
}
.theme-hero-inner {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff;
}
.theme-hero-eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; display: block;
}
.theme-hero-heading {
  font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em;
  color: #fff; font-size: clamp(2.5rem, 7vw, 5.5rem);
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
  max-width: 60rem;
}
.theme-hero-sub {
  margin-top: 2rem; max-width: 42rem; font-size: 1rem; line-height: 1.7; color: rgba(255,255,255,0.85);
}
@media (min-width: 768px) { .theme-hero-sub { font-size: 1.125rem; } }
.theme-hero-cta { margin-top: 2.5rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
@media (min-width: 640px) { .theme-hero-cta { flex-direction: row; } }
.theme-hero-cta a, .theme-hero-cta button { width: 100%; }
@media (min-width: 640px) { .theme-hero-cta a, .theme-hero-cta button { width: auto; } }

/* -------------------------------------------------------------------------
   SECTIONS — GENERIC
   ------------------------------------------------------------------------- */
.theme-section { scroll-margin-top: 6rem; }
.theme-about-section { background: var(--color-background); }
.theme-services-section, .theme-shop-section { background: var(--color-card); overflow-x: clip; }
.theme-follow-section { background: var(--color-background); border-bottom: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent); }

.theme-about-inner { max-width: 48rem; margin: 0 auto; padding: 6rem 0; text-align: center; }
@media (min-width: 768px) { .theme-about-inner { padding: 8rem 0; } }
.theme-about-section .section-heading { font-size: 1.875rem; margin: 1.5rem 0 2rem; line-height: 1.1; }
@media (min-width: 768px) { .theme-about-section .section-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .theme-about-section .section-heading { font-size: 2.75rem; } }
.theme-about-body { color: color-mix(in srgb, var(--color-foreground) 75%, transparent); line-height: 1.7; font-size: 1rem; margin-bottom: 1.25rem; }
@media (min-width: 768px) { .theme-about-body { font-size: 1.125rem; } }
.theme-about-link { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 500; color: var(--color-accent); margin-top: 1.5rem; }

.gallery-label.reveal-item { display: block; margin-bottom: 1.25rem; color: var(--color-accent); text-align: center; }

.theme-services-head { max-width: 42rem; margin: 0 auto; text-align: center; padding: 6rem 0 3rem; }
@media (min-width: 768px) { .theme-services-head { padding: 8rem 0 4rem; } }
.theme-services-section .section-heading { font-size: 1.875rem; line-height: 1.05; margin-bottom: 1.25rem; }
@media (min-width: 768px) { .theme-services-section .section-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .theme-services-section .section-heading { font-size: 3.75rem; } }
.theme-services-sub { color: color-mix(in srgb, var(--color-foreground) 70%, transparent); line-height: 1.7; }

.theme-category-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 640px) { .theme-category-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .theme-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.theme-category-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--color-muted);
  text-align: center;
}
/* Lovable: aspect-[4/5] sm:aspect-[3/4] lg:aspect-[4/5] */
@media (min-width: 640px) and (max-width: 1023px) {
  .theme-category-tile { aspect-ratio: 3 / 4; }
}
.theme-category-tile-img { transition: transform 0.7s var(--ease-smooth); }
.theme-category-tile:hover .theme-category-tile-img,
.theme-category-tile:focus-visible .theme-category-tile-img { transform: scale(1.05); }
.theme-category-tile-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    color-mix(in srgb, var(--color-primary) 80%, transparent),
    color-mix(in srgb, var(--color-primary) 50%, transparent),
    transparent);
}
.theme-category-tile-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 1.5rem; color: #fff;
}
.theme-category-tile-title { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.2; margin-bottom: 0.75rem; }
@media (min-width: 768px) { .theme-category-tile-title { font-size: 1.75rem; } }
.theme-category-tile-blurb { font-size: 0.875rem; color: rgba(255,255,255,0.85); line-height: 1.6; max-width: 26ch; margin-bottom: 1.5rem; }
.theme-category-tile-cta {
  position: relative; display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 500;
}
.theme-category-tile-cta::after {
  content: ''; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px; background: #fff;
  transform-origin: left; transform: scaleX(0); transition: transform 0.3s ease;
}
.theme-category-tile:hover .theme-category-tile-cta::after,
.theme-category-tile:focus-visible .theme-category-tile-cta::after { transform: scaleX(1); }

/* -------------------------------------------------------------------------
   SHOP
   ------------------------------------------------------------------------- */
/* Match Lovable: container-wide py-20 md:py-28 — space after View More before next section */
.theme-shop-section > .container-wide {
  padding-bottom: 5rem;
}
@media (min-width: 768px) {
  .theme-shop-section > .container-wide {
    padding-bottom: 7rem;
  }
}
.theme-shop-head { text-align: center; padding: 5rem 0 3.5rem; }
@media (min-width: 768px) { .theme-shop-head { padding: 7rem 0 3.5rem; } }
.theme-shop-section .section-heading { font-size: 1.875rem; margin-bottom: 2.5rem; line-height: 1.15; }
@media (min-width: 768px) { .theme-shop-section .section-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .theme-shop-section .section-heading { font-size: 3.75rem; } }

.theme-shop-search { position: relative; max-width: 28rem; margin: 0 auto 2.5rem; display: flex; align-items: center; }
.theme-shop-search svg { position: absolute; left: 0; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }
.theme-shop-search input {
  width: 100%; padding: 0.5rem 0 0.5rem 1.75rem;
  background: transparent; border: none; 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-accent); }
.theme-shop-search input::placeholder { color: color-mix(in srgb, var(--color-foreground) 45%, transparent); }

.theme-shop-filters { margin-bottom: 1rem; }
.theme-shop-filters-scroll {
  display: flex; flex-wrap: nowrap; gap: 0.5rem; overflow-x: auto; padding: 0 0.25rem;
  scrollbar-width: none; justify-content: flex-start;
}
.theme-shop-filters-scroll::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .theme-shop-filters-scroll { flex-wrap: wrap; overflow-x: visible; justify-content: center; } }
.theme-shop-filters .theme-cat-filter {
  flex-shrink: 0; white-space: nowrap; padding: 0.5rem 1.25rem; font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; border: 1px solid var(--color-border);
  border-radius: 999px; background: transparent; color: color-mix(in srgb, var(--color-foreground) 80%, transparent);
  transition: all 0.3s ease;
}
.theme-shop-filters .theme-cat-filter:hover { border-color: var(--color-accent); color: var(--color-accent); }
.theme-shop-filters .theme-cat-filter.is-active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

.theme-product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* mobile: never force 260px overflow */
  align-items: stretch;
  gap: 2.5rem 2rem;
}
@media (min-width: 640px) { .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-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) { .theme-related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.theme-shop-item-extra { display: none; }
.theme-shop-item-extra.is-shown { display: block; }
.theme-shop-grid-item.is-filtered-out { display: none !important; }

.theme-shop-viewmore-wrap { text-align: center; margin-top: 3.5rem; } /* Lovable mt-14 */
.theme-shop-empty-state { text-align: center; padding: 5rem 0; font-style: italic; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }

/* Product card — image/info → PDP; ATC button → AJAX + sidecart */
.theme-product-card-wrap { display: flex; height: 100%; }
.theme-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.theme-product-card__image-wrapper {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--color-card);
  margin-bottom: 1.25rem;
}
.theme-card-media-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
}
.theme-product-card__image-wrapper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease-smooth);
  pointer-events: none;
}
/* Logo / brand fallback — contain, don't stretch into 4:5 */
.theme-product-card__image-wrapper img.theme-product-fallback {
  object-fit: contain;
  object-position: center;
  padding: 18%;
  background: var(--color-secondary);
}
.theme-product-card:hover .theme-product-card__image-wrapper img { transform: scale(1.03); }
.theme-product-card:hover .theme-product-card__image-wrapper img.theme-product-fallback { transform: none; }

.theme-stock-badge {
  position: absolute; top: 1rem; left: 1rem; z-index: 3;
  padding: 0.25rem 0.75rem; font-size: 10px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  background: color-mix(in srgb, var(--color-background) 90%, transparent); color: var(--color-foreground);
  pointer-events: none;
}
.theme-card-add-btn {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem; z-index: 4;
  padding: 0.75rem; text-align: center;
  background: var(--color-primary) !important; color: #fff !important;
  font-family: var(--font-body) !important;
  font-size: 11px !important; letter-spacing: 0.22em !important; text-transform: uppercase !important; font-weight: 500 !important;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
  pointer-events: auto !important;
  border: none !important; border-radius: 0 !important; min-height: unset !important;
  display: block !important;
  width: auto !important;
  box-shadow: none !important;
  line-height: 1.25 !important;
  cursor: pointer;
}
.theme-product-card:hover .theme-card-add-btn,
.theme-card-add-btn:focus-visible { opacity: 1; transform: translateY(0); }
@media (hover: none) {
  .theme-card-add-btn { opacity: 1; transform: none; }
}
.theme-card-add-btn:hover {
  background: var(--color-accent) !important;
  color: #fff !important;
}

.theme-product-card__info {
  flex: 1;
  padding: 0 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  text-decoration: none;
  color: inherit;
}
.theme-product-card__category { font-family: var(--font-body); font-size: 11px; text-transform: uppercase; letter-spacing: 0.22em; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin: 0; }
.theme-product-card__title { font-family: var(--font-display); font-weight: 400; font-size: 1.125rem; line-height: 1.4; transition: color 0.3s ease; margin: 0; }
@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-family: var(--font-body); font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 85%, transparent); margin: 0; }
.theme-product-card__price .woocommerce-Price-amount { font-weight: inherit; }

/* -------------------------------------------------------------------------
   OWNER — match Lovable Index #owner
   Section: bg-secondary/40 scroll-mt-24
   Inner: container-wide py-24 md:py-32
   Grid: grid-cols-1 lg:grid-cols-2 gap-10 lg:gap-16 items-center
   ------------------------------------------------------------------------- */
.theme-owner-section {
  background: color-mix(in srgb, var(--color-secondary) 40%, transparent);
  scroll-margin-top: 6rem; /* scroll-mt-24 */
}
.theme-owner-inner {
  padding-top: 6rem;    /* py-24 */
  padding-bottom: 6rem;
}
@media (min-width: 768px) {
  .theme-owner-inner {
    padding-top: 8rem;  /* md:py-32 */
    padding-bottom: 8rem;
  }
}
.theme-owner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem; /* gap-10 */
  align-items: center;
  width: 100%;
  max-width: 100%;
}
@media (min-width: 1024px) {
  .theme-owner-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem; /* lg:gap-16 */
  }
}

/* Visual: aspect-[4/5] max-w-md mx-auto lg:mx-0 rounded-3xl shadow-xl ring-1 */
.theme-owner-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 28rem; /* max-w-md */
  margin-left: auto;
  margin-right: auto;
  justify-self: center;
  overflow: hidden;
  border-radius: 1.5rem; /* rounded-3xl */
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); /* shadow-xl */
  border: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent); /* ring-border/60 */
  background: var(--color-card);
}
@media (min-width: 1024px) {
  .theme-owner-visual {
    margin-left: 0;
    margin-right: 0;
    justify-self: start;
  }
}
.theme-owner-visual .theme-owner-img,
.theme-owner-visual .cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.theme-owner-visual-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, color-mix(in srgb, var(--color-primary) 30%, transparent), transparent);
  z-index: 1;
}

.theme-owner-bio {
  text-align: left;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  overflow-wrap: anywhere;
  box-sizing: border-box;
}
.theme-owner-eyebrow,
.theme-owner-bio .gallery-label {
  display: block !important;
  margin-bottom: 1.25rem !important; /* mb-5 */
  color: var(--color-accent) !important;
  text-align: left !important;
  max-width: 100%;
}
.theme-owner-heading,
.theme-owner-section .section-heading.theme-owner-heading {
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  font-size: 1.875rem !important; /* text-3xl */
  line-height: 1.05 !important;
  letter-spacing: -0.025em !important; /* tracking-tight */
  color: var(--color-foreground) !important;
  margin: 0 0 1.5rem !important; /* mb-6 */
  text-align: left !important;
  max-width: 100%;
  overflow-wrap: break-word;
}
@media (min-width: 768px) {
  .theme-owner-heading,
  .theme-owner-section .section-heading.theme-owner-heading {
    font-size: 3rem !important; /* md:text-5xl */
  }
}
.theme-owner-body {
  font-family: var(--font-body);
  color: color-mix(in srgb, var(--color-foreground) 75%, transparent);
  line-height: 1.625; /* leading-relaxed */
  font-size: 1rem;
  margin: 0 0 1.25rem; /* mb-5 */
  text-align: left;
  max-width: 100%;
}
@media (min-width: 768px) {
  .theme-owner-body { font-size: 1.125rem; } /* md:text-lg */
}
.theme-owner-body--last { margin-bottom: 2rem; } /* mb-8 */

.theme-owner-cta {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 0.75rem; /* gap-3 */
  margin-top: 0;
  max-width: 100%;
}
@media (min-width: 640px) {
  .theme-owner-cta { flex-direction: row; }
}
/* Lovable owner CTAs: font-mono, px-6 py-3, tracking-[0.24em], rounded-full */
.theme-owner-cta > a,
.theme-owner-cta > button,
.theme-owner-btn,
.theme-owner-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem !important;
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 0.24em !important;
  text-transform: uppercase !important;
  border-radius: 999px !important;
  max-width: 100%;
  box-sizing: border-box;
  flex: 0 1 auto;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}
.theme-owner-btn-outline {
  border-color: color-mix(in srgb, var(--color-foreground) 30%, transparent) !important;
  background: transparent !important;
  color: var(--color-foreground) !important;
}
.theme-owner-btn-outline:hover {
  border-color: var(--color-accent) !important;
  color: var(--color-accent) !important;
  background: transparent !important;
}

/* -------------------------------------------------------------------------
   FOLLOW
   ------------------------------------------------------------------------- */
.theme-follow-inner { max-width: 48rem; margin: 0 auto; text-align: center; padding: 5rem 1.5rem; }
@media (min-width: 768px) { .theme-follow-inner { padding: 6rem 2.5rem; } }
.theme-follow-section .section-heading { font-size: 1.875rem; line-height: 1.05; margin-bottom: 1.5rem; color: var(--color-primary); }
@media (min-width: 768px) { .theme-follow-section .section-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .theme-follow-section .section-heading { font-size: 3.75rem; } }
.theme-follow-body { color: color-mix(in srgb, var(--color-foreground) 70%, transparent); line-height: 1.7; max-width: 42rem; margin: 0 auto 2.5rem; }
.theme-follow-links { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 640px) { .theme-follow-links { display: flex; flex-wrap: wrap; justify-content: center; } }
.theme-follow-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500;
  color: var(--color-primary); border: 1px solid color-mix(in srgb, var(--color-accent) 40%, transparent);
  border-radius: 999px; transition: all 0.2s ease;
}
.theme-follow-link:hover { border-color: var(--color-accent); background: var(--color-accent); color: #fff; }

/* -------------------------------------------------------------------------
   CONTACT CTA
   ------------------------------------------------------------------------- */
.theme-contact-cta {
  position: relative; overflow: hidden; min-height: 640px; display: flex; align-items: center; justify-content: center;
}
@media (min-width: 768px) { .theme-contact-cta { min-height: 680px; } }
@media (min-width: 1024px) { .theme-contact-cta { min-height: 88vh; } }
.theme-contact-overlay {
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--color-primary) 75%, transparent);
  background-image: linear-gradient(to bottom,
    color-mix(in srgb, var(--color-primary) 60%, transparent),
    color-mix(in srgb, var(--color-primary) 40%, transparent),
    color-mix(in srgb, var(--color-primary) 80%, transparent));
}
.theme-contact-inner { position: relative; z-index: 2; width: 100%; max-width: 42rem; margin: 0 auto; text-align: center; padding: 6rem 1.5rem; color: #fff; }
.theme-contact-eyebrow { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; font-weight: 500; color: rgba(255,255,255,0.85); margin-bottom: 1.75rem; }
.contact-title { font-family: var(--font-display); font-weight: 600; line-height: 1.05; margin-bottom: 2rem; color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,0.35); font-size: 2.25rem; }
@media (min-width: 768px) { .contact-title { font-size: 3.75rem; } }
@media (min-width: 1024px) { .contact-title { font-size: 4.5rem; } }
.theme-contact-body { color: rgba(255,255,255,0.85); line-height: 1.7; max-width: 36rem; margin: 0 auto 2.25rem; }
.theme-contact-details { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; margin-bottom: 2.5rem; font-size: 0.875rem; color: rgba(255,255,255,0.9); }
@media (min-width: 640px) { .theme-contact-details { flex-direction: row; justify-content: center; gap: 1rem; } }
.theme-contact-details a { text-decoration: underline; text-decoration-color: rgba(255,255,255,0.4); text-underline-offset: 4px; word-break: break-all; }
.theme-contact-details a:hover { text-decoration-color: #fff; }
.theme-contact-cta-buttons { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; }
@media (min-width: 640px) { .theme-contact-cta-buttons { flex-direction: row; } }

/* -------------------------------------------------------------------------
   FOOTER — match Lovable Footer.tsx
   ------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-card);
}
/* Lovable: container-wide py-14 lg:py-16 */
.footer-inner {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}
@media (min-width: 1024px) {
  .footer-inner {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}
/* Lovable: grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-10 md:gap-12 */
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem; /* gap-10 */
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .footer-grid { gap: 3rem; } /* md:gap-12 */
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Lovable: text-center sm:text-left */
.footer-brand {
  text-align: center;
  min-width: 0;
}
@media (min-width: 640px) {
  .footer-brand { text-align: left; }
}

/* Lovable: h-14 w-auto mx-auto sm:mx-0 */
.footer-logo-img,
.site-footer .footer-logo-img,
body.woocommerce .site-footer .footer-logo-img,
body.woocommerce-page .site-footer .footer-logo-img,
body.woocommerce-shop .site-footer .footer-logo-img {
  height: 3.5rem !important;
  width: auto !important;
  max-width: none !important;
  max-height: none !important;
  display: block !important;
  object-fit: contain !important;
  object-position: center !important;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
  margin-bottom: 0;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
@media (min-width: 640px) {
  .footer-logo-img,
  .site-footer .footer-logo-img {
    margin-left: 0;
    margin-right: 0;
  }
}

/* Lovable: mt-4 text-sm text-foreground/70 font-body leading-relaxed max-w-sm mx-auto sm:mx-0 */
.footer-tagline {
  margin-top: 1rem;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.625;
  color: color-mix(in srgb, var(--color-foreground) 70%, transparent);
  max-width: 24rem; /* max-w-sm */
}
@media (min-width: 640px) {
  .footer-tagline {
    margin-left: 0;
    margin-right: 0;
  }
}
.footer-col-title { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.24em; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); margin-bottom: 1.25rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.75rem; list-style: none; margin: 0; padding: 0; }
.footer-links .theme-nav-list,
.footer-links .theme-nav-list-mobile { display: none !important; }
.footer-links a,
.footer-links button.footer-cat-link,
.footer-links .footer-explore-link {
  font-size: 0.875rem;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: color-mix(in srgb, var(--color-foreground) 80%, transparent);
  transition: color 0.2s ease;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.4;
}
.footer-links a:hover,
.footer-links button.footer-cat-link:hover,
.footer-links .footer-explore-link:hover { color: var(--color-accent); }
.footer-connect-link { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.footer-connect-icon { flex-shrink: 0; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 0.75rem; align-items: center; text-align: center; }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-copyright, .footer-credit { font-size: 12px; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); margin: 0; }
.footer-credit a { font-weight: 600; color: color-mix(in srgb, var(--color-foreground) 85%, transparent); }
.footer-credit a:hover { color: var(--color-accent); }

/* -------------------------------------------------------------------------
   CART DRAWER + OVERLAY
   ------------------------------------------------------------------------- */
#theme-cart-overlay {
  position: fixed; inset: 0; z-index: 60; background: color-mix(in srgb, var(--color-foreground) 20%, transparent);
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
body.cart-open #theme-cart-overlay { opacity: 1; pointer-events: auto; }

#theme-cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 100%; max-width: 28rem;
  background: var(--color-background); z-index: 61; 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-family: var(--font-display); font-size: 1.125rem; font-weight: 700; }
.theme-cart-drawer-close { padding: 0.25rem; }
.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; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }

.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 { width: 5rem; height: 6rem; flex-shrink: 0; overflow: hidden; background: var(--color-secondary); display: block; }
.theme-cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.theme-cart-item-info { flex: 1; min-width: 0; }
.theme-cart-item-name { font-size: 0.875rem; font-weight: 500; display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.theme-cart-item-name:hover { opacity: 0.7; }
.theme-cart-item-price { font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); margin-top: 0.125rem; }
.theme-cart-item-variation { font-size: 0.75rem; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }
.theme-cart-item-controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.theme-cart-qty-btn { padding: 0.25rem; border-radius: 0.25rem; transition: background 0.2s ease; }
.theme-cart-qty-btn:hover { background: var(--color-secondary); }
.theme-cart-qty-value { font-size: 0.875rem; width: 1.5rem; text-align: center; }
.theme-cart-remove { margin-left: auto; font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }
.theme-cart-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-subtotal-row { display: flex; justify-content: space-between; font-size: 0.875rem; }
.theme-cart-subtotal-label { color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }
.theme-cart-subtotal-value { font-weight: 500; }
.theme-cart-shipping-note { font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }
.theme-cart-checkout-btn { display: flex; width: 100%; border-radius: 0; text-decoration: none; }
.theme-cart-empty-btn { width: 100%; border-radius: 0; }

/* -------------------------------------------------------------------------
   CONTACT MODAL
   ------------------------------------------------------------------------- */
#theme-contact-modal-overlay {
  position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,0.5);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
body.contact-modal-open #theme-contact-modal-overlay { opacity: 1; pointer-events: auto; }

#theme-contact-modal {
  position: fixed; top: 50%; left: 50%; z-index: 71;
  width: 92vw; max-width: 32rem; max-height: 90vh; overflow-y: auto;
  background: var(--color-background); border-radius: var(--card-radius);
  box-shadow: var(--shadow-elevated);
  padding: 1.75rem;
  transform: translate(-50%, -48%) scale(0.96);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
body.contact-modal-open #theme-contact-modal { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }

.theme-modal-close { position: absolute; top: 1rem; right: 1rem; padding: 0.25rem; }
.theme-modal-close:hover { opacity: 0.6; }
.theme-modal-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; padding-right: 1.5rem; }
.theme-modal-description { font-size: 0.9rem; color: color-mix(in srgb, var(--color-foreground) 65%, transparent); line-height: 1.6; margin-bottom: 1.25rem; }
.theme-modal-contacts { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 65%, transparent); margin-bottom: 1.25rem; }
.theme-modal-contacts a:hover { color: var(--color-foreground); }
.theme-form-row-2 { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 480px) { .theme-form-row-2 { grid-template-columns: 1fr 1fr; } }
.theme-form-field { margin-bottom: 1rem; }
.theme-form-row-2 .theme-form-field { margin-bottom: 0; }
.theme-form-field label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.375rem; }
.theme-form-field input, .theme-form-field textarea {
  width: 100%; padding: 0.6rem 0.75rem; background: var(--color-background);
  border: 1px solid var(--color-border); border-radius: 0.5rem; font-size: 1rem;
  color: var(--color-foreground); transition: box-shadow 0.2s ease; resize: none;
}
.theme-form-field input:focus, .theme-form-field textarea:focus { outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-accent) 40%, transparent); }
.theme-form-field input::placeholder, .theme-form-field textarea::placeholder { color: color-mix(in srgb, var(--color-foreground) 45%, transparent); }
.theme-modal-note { font-size: 0.75rem; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); margin-bottom: 1rem; }
.theme-form-actions { display: flex; justify-content: flex-end; }
.theme-form-actions .btn-primary { border-radius: 0; }
.theme-form-error { color: #b3261e; font-size: 0.8rem; margin-top: 0.75rem; }
.theme-modal-success { text-align: center; padding: 2rem 0; }
.theme-modal-success-icon { width: 3.5rem; height: 3.5rem; border-radius: 999px; background: var(--color-primary); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.theme-modal-success h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 0.5rem; }
.theme-modal-success p { font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }

/* -------------------------------------------------------------------------
   GENERIC PAGES / 404 / SHOP ARCHIVE
   ------------------------------------------------------------------------- */
.site-main { display: block; }
body.theme-no-hero .site-main { padding-top: var(--header-height); }
.theme-page-container { padding: 4rem 0 6rem; }
.page-title { font-family: var(--font-display); font-weight: 600; font-size: 2rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .page-title { font-size: 2.75rem; } }

.theme-404 { min-height: 70vh; display: flex; align-items: center; padding-top: var(--header-height); }
.theme-404-inner { text-align: center; width: 100%; }
.theme-404-title { font-family: var(--font-display); font-size: 4rem; margin-bottom: 1rem; }
.theme-404-text { font-size: 1.25rem; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); margin-bottom: 1.5rem; }

.theme-shop-archive-inner { padding: 4rem 0 6rem; }
.theme-shop-empty { text-align: center; padding: 4rem 0; }

/* -------------------------------------------------------------------------
   SINGLE PRODUCT PAGE — match Lovable ProductDetail
   grid-cols-12: gallery 7 / info 5, sticky info, stacked desktop images
   ------------------------------------------------------------------------- */
body.single-product,
body.single-product .site-main,
.theme-product-page {
  background: var(--color-background);
}
.theme-product-page {
  padding-top: var(--header-height);
  padding-bottom: 0;
}
.theme-back-to-shop { padding-top: 1.5rem; }
.theme-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: color-mix(in srgb, var(--color-foreground) 60%, transparent);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--font-body);
}
.theme-back-link:hover { color: var(--color-foreground); }
.theme-breadcrumb {
  padding: 1.5rem 0;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-foreground) 55%, transparent);
  font-family: var(--font-body);
}
.theme-breadcrumb-sep { margin: 0 0.5rem; opacity: 0.5; }
.theme-breadcrumb a:hover { color: var(--color-foreground); }
.theme-breadcrumb-current { color: var(--color-foreground); }

/* Lovable: grid-cols-1 lg:grid-cols-12 gap-10 lg:gap-16 pb-24 pt-4 */
.theme-product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  padding: 1rem 0 6rem;
  min-width: 0;
  max-width: 100%;
}
@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%;
}

/* Mobile gallery */
.theme-product-gallery-desktop { display: none; }
.theme-product-gallery-mobile { display: block; }
@media (min-width: 1024px) {
  .theme-product-gallery-mobile { display: none; }
  .theme-product-gallery-desktop {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
}

.theme-product-main-image,
.theme-product-stack-image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--color-secondary);
  overflow: hidden;
}
.theme-product-main-image img,
.theme-product-stack-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: none;
}
.theme-product-main-image img.theme-product-fallback,
.theme-product-stack-image img.theme-product-fallback {
  object-fit: contain;
  padding: 18%;
}

.theme-product-thumbnails {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  max-width: 100%;
}
.theme-product-thumb {
  position: relative;
  width: 5rem;
  height: 5rem;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--color-secondary);
  padding: 0;
}
.theme-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  display: block;
}
.theme-product-thumb:hover img,
.theme-product-thumb.is-active 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.2s ease;
}
.theme-product-thumb.is-active .theme-product-thumb-bar { opacity: 1; }

/* Sticky info column (lg:sticky lg:top-28) */
@media (min-width: 1024px) {
  .theme-product-info {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
    align-self: start;
    padding-left: 1rem;
  }
}

.theme-product-category {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-foreground) 60%, transparent);
  display: block;
  font-family: var(--font-body);
}
.product-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.25rem; /* text-4xl */
  line-height: 1.05;
  margin: 0.75rem 0 1.25rem;
  color: var(--color-foreground);
}
@media (min-width: 768px) {
  .product-title { font-size: 3rem; } /* md:text-5xl */
}
@media (min-width: 1024px) {
  .product-title { font-size: 3rem; } /* lg:text-[3rem] */
}
.theme-product-price {
  font-size: 1.5rem; /* text-2xl */
  margin: 0 0 1.5rem;
  font-family: var(--font-body);
  color: var(--color-foreground);
}
.theme-product-intro {
  color: color-mix(in srgb, var(--color-foreground) 60%, transparent);
  line-height: 1.7;
  margin: 0 0 2rem;
  font-size: 1rem;
  font-family: var(--font-body);
}
.theme-stock-indicator {
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  padding: 0.4rem 0.9rem;
  display: inline-block;
  border-radius: 999px;
}
.theme-stock-out {
  background: color-mix(in srgb, #b3261e 12%, transparent);
  color: #b3261e;
}

/* Full-width ATC like Lovable */
.theme-add-to-cart-area { margin-bottom: 0; }
.theme-product-page .theme-product-atc,
.theme-product-page .single_add_to_cart_button,
.theme-product-page form.cart .single_add_to_cart_button {
  width: 100% !important;
  flex: none !important;
  min-width: 0 !important;
  border-radius: 0 !important;
  min-height: 3.25rem !important;
  padding: 1rem 1.5rem !important;
  font-family: var(--font-body) !important;
  font-size: 12px !important;
  letter-spacing: 0.25em !important;
}
.theme-product-page form.cart {
  margin: 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.theme-product-page form.cart .quantity { display: none; }
.theme-product-page .variations {
  width: 100%;
  margin: 0;
  border: 0;
}
.theme-product-page .variations td,
.theme-product-page .variations th {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}
.theme-product-page .variations .label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  font-weight: 500;
}
.theme-product-page .variations select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-background);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.theme-product-page .single_variation_wrap { width: 100%; }

/* Accordions */
.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;
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--color-foreground);
}
.theme-accordion-chevron { transition: transform 0.25s ease; flex-shrink: 0; }
.theme-accordion.is-open .theme-accordion-chevron { transform: rotate(180deg); }
.theme-accordion-panel {
  display: none;
  padding-bottom: 1.5rem;
  font-size: 15px;
  color: color-mix(in srgb, var(--color-foreground) 60%, transparent);
  line-height: 1.7;
  font-family: var(--font-body);
}
.theme-accordion.is-open .theme-accordion-panel { display: block; }
.theme-product-description p { margin: 0 0 1rem; }
.theme-product-description p:last-child { margin-bottom: 0; }

/* Related */
.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-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: color-mix(in srgb, var(--color-foreground) 55%, transparent);
  margin: 0 0 0.5rem;
}
.theme-related-heading h2 {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 400;
  margin: 0;
}
@media (min-width: 768px) {
  .theme-related-heading h2 { font-size: 3rem; }
}

.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: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !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-accent) !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;
}
.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after { display: none !important; }

/* Card compact button — overrides global rules, scoped after them. */
.theme-product-card .add_to_cart_button.ajax_add_to_cart.theme-card-add-btn {
  min-height: unset !important;
  padding: 0.75rem !important;
  border-radius: 0 !important;
  width: calc(100% - 2rem) !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; }

.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-message, .woocommerce-error, .woocommerce-info {
  font-family: var(--font-body);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  list-style: none;
  border-left: 3px solid var(--color-primary);
  background: var(--color-secondary);
}
.woocommerce-error { border-left-color: #b3261e; }

.theme-attr-select-hidden { display: none !important; }

/* -------------------------------------------------------------------------
   CHECKOUT / CART / ACCOUNT / THANK YOU (Sections 13 & 22.8)
   ------------------------------------------------------------------------- */
body.woocommerce-checkout .site-main,
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main,
body.theme-thankyou-page .site-main {
  /* Sticky header already occupies flow space on non-home pages —
     don't add a second header-height gap (was stacking with theme-no-hero). */
  padding-top: 0;
  padding-bottom: 4rem;
}
body.woocommerce-checkout.theme-no-hero .site-main,
body.woocommerce-cart.theme-no-hero .site-main,
body.woocommerce-account.theme-no-hero .site-main {
  padding-top: 0;
}

/* Lovable Checkout: container-wide py-10 only */
.theme-checkout-wrap.py-10 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

/* Force Lovable typography over WooCommerce defaults */
.theme-checkout-page,
.theme-checkout-wrap,
.theme-checkout-form,
.theme-checkout-empty {
  font-family: var(--font-body);
  color: var(--color-foreground);
  -webkit-font-smoothing: antialiased;
}
.theme-checkout-page h1,
.theme-checkout-page h2,
.theme-checkout-page h3,
.theme-checkout-title,
.theme-checkout-heading,
.theme-checkout-notes-label,
.theme-checkout-empty-title {
  font-family: var(--font-display) !important;
  letter-spacing: -0.01em;
  color: var(--color-foreground);
}

.theme-checkout-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-family: var(--font-body) !important;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-muted-foreground);
  transition: color 0.2s var(--ease-smooth);
}
.theme-checkout-back:hover { color: var(--color-foreground); }

.theme-checkout-title {
  font-size: 1.875rem !important;
  font-weight: 700 !important;
  margin-bottom: 2.5rem;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .theme-checkout-title { font-size: 2.25rem !important; }
}

.theme-checkout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .theme-checkout-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
  .theme-checkout-summary { order: 1; }
  .theme-checkout-fields { order: 2; }
}
@media (max-width: 1023px) {
  .theme-checkout-summary { order: 2; }
  .theme-checkout-fields { order: 1; }
}

.theme-checkout-heading {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.theme-checkout-summary .theme-checkout-heading { margin-bottom: 1.5rem; }

.theme-checkout-section { margin-bottom: 2rem; }

.theme-checkout-field-grid {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.theme-checkout-field-grid--2 { grid-template-columns: 1fr 1fr; }
.theme-checkout-field-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 767px) {
  .theme-checkout-field-grid--2,
  .theme-checkout-field-grid--3 { grid-template-columns: 1fr; }
}

.theme-checkout-field {
  margin: 0 0 0.75rem !important;
  padding: 0 !important;
  width: 100%;
  float: none !important;
}
.theme-checkout-field-grid .theme-checkout-field { margin-bottom: 0 !important; }
.theme-checkout-field label { display: none !important; }
.theme-checkout-field .optional,
.theme-checkout-field .required { display: none !important; }
.theme-checkout-field .woocommerce-input-wrapper { display: block; width: 100%; }
.theme-checkout-field::before,
.theme-checkout-field::after { display: none !important; content: none !important; }

.theme-checkout-input,
.theme-checkout-fields input.input-text,
.theme-checkout-fields textarea,
.theme-checkout-fields select,
.theme-checkout-fields .input-text {
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  padding: 0.75rem 1rem !important;
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  color: var(--color-foreground) !important;
  background: var(--color-background) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 0.375rem !important;
  line-height: 1.5 !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
}
.theme-checkout-input::placeholder,
.theme-checkout-fields input.input-text::placeholder,
.theme-checkout-fields textarea::placeholder {
  color: var(--color-muted-foreground) !important;
  opacity: 1;
}
.theme-checkout-input:focus,
.theme-checkout-fields input.input-text:focus,
.theme-checkout-fields textarea:focus,
.theme-checkout-fields select:focus {
  outline: none !important;
  box-shadow: 0 0 0 1px var(--color-primary) !important;
  border-color: var(--color-primary) !important;
}
.theme-checkout-textarea { resize: none !important; min-height: 5.5rem; }

.theme-checkout-notes-label {
  display: block;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  margin-bottom: 0.5rem;
  color: var(--color-foreground);
}

.theme-checkout-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.theme-checkout-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.theme-checkout-item-image {
  flex-shrink: 0;
  width: 5rem;
  height: 6rem;
  overflow: hidden;
  border-radius: 0.5rem;
  background: var(--color-secondary);
}
.theme-checkout-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.theme-checkout-item-info { flex: 1; min-width: 0; }
.theme-checkout-item-name {
  display: block;
  font-family: var(--font-body) !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: var(--color-foreground);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.theme-checkout-item-name:hover { opacity: 0.7; }
.theme-checkout-item-price,
.theme-checkout-item-variation {
  margin-top: 0.125rem;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  color: var(--color-muted-foreground) !important;
  font-family: var(--font-body) !important;
}
.theme-checkout-item-price .amount,
.theme-checkout-item-price .woocommerce-Price-amount,
.theme-checkout-item-line .amount,
.theme-checkout-item-line .woocommerce-Price-amount,
.theme-checkout-totals .amount,
.theme-checkout-totals .woocommerce-Price-amount {
  font-family: var(--font-body) !important;
  font-weight: inherit !important;
  color: inherit !important;
}
.theme-checkout-item-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.theme-checkout-qty-btn {
  padding: 0.25rem;
  line-height: 1;
  color: var(--color-foreground);
  transition: background 0.15s;
}
.theme-checkout-qty-btn:hover { background: var(--color-secondary); }
.theme-checkout-qty-value {
  width: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  font-family: var(--font-body) !important;
  color: var(--color-foreground);
}
.theme-checkout-item-remove {
  margin-left: auto;
  padding: 0.25rem;
  color: var(--color-muted-foreground);
  transition: color 0.15s;
}
.theme-checkout-item-remove:hover { color: #b3261e; }
.theme-checkout-item-line {
  flex-shrink: 0;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  font-family: var(--font-body) !important;
  color: var(--color-foreground);
}

.theme-checkout-totals {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.theme-checkout-totals-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem !important;
  font-family: var(--font-body) !important;
  font-weight: 400;
  color: var(--color-muted-foreground);
}
.theme-checkout-totals-row > span:last-child { color: var(--color-foreground); }
.theme-checkout-shipping-free {
  color: var(--color-primary) !important;
  font-weight: 500 !important;
}
.theme-checkout-totals-total {
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: var(--color-foreground) !important;
}
.theme-checkout-empty-cart.btn-outline {
  width: 100%;
  margin-top: 1rem;
  border-radius: 0 !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  font-size: 11px !important;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-color: color-mix(in srgb, var(--color-foreground) 40%, transparent);
  color: var(--color-foreground);
  background: transparent;
}
.theme-checkout-empty-cart.btn-outline:hover {
  border-color: var(--color-foreground);
  background: var(--color-foreground);
  color: var(--color-background);
}

.theme-checkout-payment-methods:has(li:only-child) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.theme-checkout-payment { position: relative; margin-top: 0.5rem; }
.theme-checkout-payment-methods {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.theme-checkout-payment-methods .wc_payment_method {
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  font-family: var(--font-body);
}
.theme-checkout-payment-methods .payment_box {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}
.theme-checkout-place-order { margin: 0; }
.theme-checkout-submit,
.theme-checkout-submit.button.alt,
#place_order.theme-checkout-submit {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-height: 3rem;
  height: auto !important;
  margin: 0 !important;
  padding: 0.875rem 2.5rem !important;
  border: 1px solid var(--color-primary) !important;
  border-radius: 0 !important;
  background: var(--color-primary) !important;
  color: #ffffff !important;
  font-family: var(--font-body) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  line-height: 1.25 !important;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  box-shadow: none !important;
}
.theme-checkout-submit:hover,
.theme-checkout-submit.button.alt:hover,
#place_order.theme-checkout-submit:hover {
  background: var(--color-background) !important;
  color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  opacity: 1 !important;
}

.theme-checkout-footnote {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.875rem !important;
  font-weight: 400;
  color: var(--color-muted-foreground) !important;
  font-family: var(--font-body) !important;
}

.theme-checkout-empty {
  max-width: 42rem;
  margin: 0 auto;
  padding: 5rem 0;
  text-align: center;
}
.theme-checkout-empty-icon {
  margin: 0 auto 1.5rem;
  color: var(--color-muted-foreground);
}
.theme-checkout-empty-title {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .theme-checkout-empty-title { font-size: 1.875rem !important; }
}
.theme-checkout-empty-text {
  color: var(--color-muted-foreground) !important;
  margin-bottom: 2rem;
  font-family: var(--font-body) !important;
  font-size: 1rem;
}
.theme-checkout-empty-cta {
  border-radius: 0 !important;
  display: inline-flex;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
}

.theme-checkout-form .woocommerce-form-coupon-toggle,
.theme-checkout-page .woocommerce-form-login-toggle { display: none; }

body.woocommerce-checkout, body.woocommerce-cart, body.woocommerce-account { overflow-x: hidden; }

body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; }
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-order h2,
body.theme-thankyou-page .woocommerce-order-details__title { font-family: var(--font-display); padding: 0 0 1rem 0; }
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; }

/* -------------------------------------------------------------------------
   MOBILE OPTIMIZATION — max-width only; desktop unchanged
   ------------------------------------------------------------------------- */

/* Hero: fit short viewports; wrap CTAs / soften eyebrows */
@media (max-width: 767px) {
  .theme-hero {
    height: 100svh;
    min-height: 100svh;
    max-height: none;
  }
  .theme-hero-inner {
    padding-left: 0;
    padding-right: 0;
    padding-top: 5.5rem; /* clear fixed header */
    padding-bottom: 2rem;
    box-sizing: border-box;
  }
  .theme-hero-heading {
    font-size: clamp(2rem, 9vw, 2.75rem);
    max-width: 100%;
    padding-inline: 0.25rem;
  }
  .theme-hero-sub {
    margin-top: 1.25rem;
    max-width: 100%;
    font-size: 0.9375rem;
  }
  .theme-section,
  .theme-owner-section {
    scroll-margin-top: 5.5rem; /* match 88px mobile header */
  }
}

@media (max-width: 639px) {
  .theme-hero-eyebrow,
  .theme-contact-eyebrow {
    font-size: 10px;
    letter-spacing: 0.2em;
    max-width: 100%;
    padding-inline: 0.5rem;
    line-height: 1.4;
  }
  .theme-hero-cta a,
  .theme-hero-cta button,
  .theme-contact-cta-buttons a,
  .theme-contact-cta-buttons button {
    width: 100%;
    max-width: 100%;
    white-space: normal !important;
    line-height: 1.3;
    letter-spacing: 0.18em;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    box-sizing: border-box;
  }
  .theme-contact-details span[aria-hidden="true"] {
    display: none;
  }
  .theme-about-link {
    letter-spacing: 0.18em;
    font-size: 11px;
    max-width: 100%;
    white-space: normal;
    justify-content: center;
  }
}

/* Shop filters: edge-to-edge scroll like Lovable -mx-6 */
@media (max-width: 767px) {
  .theme-shop-filters {
    margin-inline: -1.5rem;
    margin-bottom: 1.25rem;
  }
  .theme-shop-filters-scroll {
    padding-inline: 1.5rem;
    gap: 0.5rem;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
  }
  .theme-shop-filters .theme-cat-filter {
    scroll-snap-align: start;
    letter-spacing: 0.16em;
    padding: 0.5rem 1rem;
  }
  .theme-shop-section > .container-wide {
    overflow-x: clip;
  }
  .theme-card-add-btn {
    font-size: 10px !important;
    letter-spacing: 0.14em !important;
    padding: 0.65rem 0.5rem !important;
    white-space: normal !important;
    line-height: 1.25 !important;
  }
}

/* Single product breadcrumb / back link */
@media (max-width: 767px) {
  .theme-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.15rem 0;
    letter-spacing: 0.12em;
    font-size: 11px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .theme-breadcrumb-sep { margin: 0 0.35rem; }
  .theme-breadcrumb-current { min-width: 0; flex: 1 1 auto; }
  .theme-back-link {
    letter-spacing: 0.12em;
    font-size: 11px;
  }
  .theme-product-layout {
    gap: 1.75rem;
    padding-bottom: 4rem;
  }
}

/* Checkout item row on narrow phones */
@media (max-width: 479px) {
  .theme-checkout-item {
    flex-wrap: wrap;
  }
  .theme-checkout-item-line {
    width: 100%;
    text-align: right;
    margin-top: 0.35rem;
  }
  .theme-checkout-item-controls {
    flex-wrap: wrap;
  }
  .theme-checkout-submit,
  .theme-checkout-submit.button.alt,
  #place_order.theme-checkout-submit {
    white-space: normal !important;
    letter-spacing: 0.14em !important;
    font-size: 11px !important;
    padding: 0.875rem 1rem !important;
    line-height: 1.35 !important;
  }
  .theme-checkout-title {
    font-size: 1.625rem !important;
  }
  .theme-checkout-field-grid--2 {
    grid-template-columns: 1fr;
  }
}

/* Footer connect links & brand on small screens */
@media (max-width: 639px) {
  .footer-grid {
    gap: 2rem;
  }
  .footer-connect-link {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .footer-tagline {
    max-width: 100%;
  }
  .theme-follow-inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .theme-follow-link {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    letter-spacing: 0.16em;
    box-sizing: border-box;
  }
}

/* Cart drawer: safe on small screens */
@media (max-width: 479px) {
  #theme-cart-drawer {
    max-width: 100%;
  }
}

/* -------------------------------------------------------------------------
   FLEX / GRID SAFETY (Section 31.9)
   ------------------------------------------------------------------------- */
.theme-card-title-row { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.theme-card-title-row .title { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* -------------------------------------------------------------------------
   CUSTOMIZER MEDIA CONTROL (also loaded standalone as customizer-controls.css)
   ------------------------------------------------------------------------- */
.theme-media-control { display: flex; flex-direction: column; gap: 0.5rem; }
.theme-media-url-input { width: 100%; min-width: 0; box-sizing: border-box; }
.theme-media-preview { max-width: 100%; height: auto; display: block; }
