/* =============================================================
   RETRO TEES CO – theme.css
   All visual styling. No hardcoded brand colors (use CSS vars).
   ============================================================= */

/* ───────────────────────────────────────────────────
   1. CSS VARIABLES / DESIGN TOKENS
   ─────────────────────────────────────────────────── */
:root {
  --color-primary:     #2d6ab4;
  --color-accent:      #11a4b8;
  --color-background:  #faf9f7;
  --color-foreground:  #1a1714;
  --color-secondary:   #e8ecf1;
  --color-muted-fg:    #6b7280;
  --color-border:      #d4d9e0;
  --color-button-text: #ffffff;

  --font-display: 'am-udine', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius:      1.25rem;
  --radius-sm:   0.5rem;
  --radius-lg:   1.5rem;
  --radius-full: 9999px;

  --logo-height: 60px;

  --btn-radius:         var(--radius-full);
  --btn-height:         2.75rem;
  --btn-padding:        0.75rem 2rem;
  --btn-font-size:      0.875rem;
  --btn-font-weight:    500;
  --btn-letter-spacing: 0.1em;
  --btn-text-transform: uppercase;

  --shadow-soft:     0 4px 24px -6px rgb(26 23 20 / 0.06);
  --shadow-elevated: 0 12px 48px -12px rgb(26 23 20 / 0.1);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --card-radius:    0.5rem;
  --section-padding: 2rem;

  --theme-checkout-max-width: 1280px;

  /* Header bar fijo — mismos canales HSL que Lovable (src/index.css :root) para bg-background/90, border-border/50 */
  --header-bar-bg-hsl: 40 20% 98%;
  --header-bar-border-hsl: 210 10% 85%;
  --header-bar-fg-hsl: 30 10% 10%;
  /* Header al hacer scroll: texto negro y capa blanca sobre el blur */
  --header-scrolled-fg: #000000;
  --header-scrolled-frost: rgb(255 255 255 / 0.88);
}

/* ───────────────────────────────────────────────────
   2. RESET / BASE
   ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  background-color: var(--color-background);
  color: var(--color-foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ───────────────────────────────────────────────────
   3. LAYOUT UTILITIES
   ─────────────────────────────────────────────────── */
.container-wide {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (min-width: 1024px) {
  .container-wide { padding-inline: 2rem; }
}

.text-center { text-align: center; }
.font-display { font-family: var(--font-display); }
.scroll-mt { scroll-margin-top: 6rem; }

.py-section { padding-block: 5rem; }

/* ───────────────────────────────────────────────────
   4. TYPOGRAPHY UTILITIES
   ─────────────────────────────────────────────────── */
.section-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-fg);
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 2rem;
  line-height: 1;
}
.section-header { margin-bottom: 3rem; }

/* ───────────────────────────────────────────────────
   5. BUTTONS
   ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  letter-spacing: var(--btn-letter-spacing);
  text-transform: var(--btn-text-transform);
  border-radius: var(--btn-radius);
  padding: var(--btn-padding);
  min-height: var(--btn-height);
  cursor: pointer;
  transition: opacity var(--transition);
  border: none;
  text-decoration: none;
}
.btn:hover { opacity: 0.85; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-button-text);
}
.btn-outline {
  background-color: transparent;
  color: var(--color-foreground);
  border: 1.5px solid var(--color-border);
}
.btn-outline:hover { border-color: var(--color-foreground); opacity: 1; }
.btn-full { width: 100%; }

/* ───────────────────────────────────────────────────
   6. LINK UNDERLINE EFFECT
   ─────────────────────────────────────────────────── */
.link-underline {
  position: relative;
  display: inline-block;
}
.link-underline::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.link-underline:hover::after { transform: scaleX(1); }

/* ───────────────────────────────────────────────────
   7. HEADER
   ─────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: all var(--transition-slow);
}

/* Barra de administración (front, iframe del Customizer, etc.): el header es fixed al viewport, no respeta el margin-top de html */
body.admin-bar .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

.header-inner {
  transition: all var(--transition-slow);
}
/* Transparent state (homepage + hero, arriba del todo) — data-scrolled vive en <html>, no en body */
html:not([data-scrolled]) body:not(.theme-no-hero) .header-inner {
  background: transparent;
}
html:not([data-scrolled]) body:not(.theme-no-hero) .header-inner .nav-link,
html:not([data-scrolled]) body:not(.theme-no-hero) .header-inner .header-cart-btn,
html:not([data-scrolled]) body:not(.theme-no-hero) .header-inner .mobile-menu-toggle {
  color: #ffffff;
}
/* Scrolled / inner-page — blur + tono blanco (frost) y texto negro */
[data-scrolled] .header-inner,
.theme-no-hero .header-inner,
body.scrolled .header-inner {
  background:
    linear-gradient(
      to bottom,
      var(--header-scrolled-frost),
      rgb(255 255 255 / 0.82)
    ),
    hsl(var(--header-bar-bg-hsl) / 0.45);
  backdrop-filter: blur(24px) saturate(1.05);
  -webkit-backdrop-filter: blur(24px) saturate(1.05);
  border-bottom: 1px solid rgb(255 255 255 / 0.65);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.06);
}
[data-scrolled] .header-inner .nav-link,
[data-scrolled] .header-inner .header-cart-btn,
[data-scrolled] .header-inner .mobile-menu-toggle,
[data-scrolled] .header-inner .site-logo-text,
.theme-no-hero .header-inner .nav-link,
.theme-no-hero .header-inner .header-cart-btn,
.theme-no-hero .header-inner .mobile-menu-toggle,
.theme-no-hero .header-inner .site-logo-text,
body.scrolled .header-inner .nav-link,
body.scrolled .header-inner .header-cart-btn,
body.scrolled .header-inner .mobile-menu-toggle,
body.scrolled .header-inner .site-logo-text {
  color: var(--header-scrolled-fg);
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 7rem;
  transition: height var(--transition-slow);
}
[data-scrolled] .header-nav,
.theme-no-hero .header-nav,
body.scrolled .header-nav { height: 5rem; }

.header-logo-link { flex-shrink: 0; display: flex; align-items: center; }

.site-logo-img {
  width: auto !important;
  display: block;
}
/* Footer: Customizer --logo-height. Header: Lovable h-16/h-20 → h-12/h-16 al hacer scroll */
.footer-logo-img {
  height: var(--logo-height) !important;
  width: auto !important;
  display: block;
}
.header-logo-img {
  height: 4rem !important;
  transition: height var(--transition-slow), filter var(--transition-slow);
}
@media (min-width: 1024px) {
  .header-logo-img { height: 5rem !important; }
}
[data-scrolled] .header-logo-img,
.theme-no-hero .header-logo-img,
body.scrolled .header-logo-img {
  height: 3rem !important;
}
@media (min-width: 1024px) {
  [data-scrolled] .header-logo-img,
  .theme-no-hero .header-logo-img,
  body.scrolled .header-logo-img {
    height: 4rem !important;
  }
}
.site-logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Logo invert when transparent */
html:not([data-scrolled]) body:not(.theme-no-hero) .header-logo-img {
  filter: brightness(0) invert(1);
}

.header-nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .header-nav-links { display: flex; }
}
.nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--transition-slow);
}

.header-cart-btn {
  position: relative;
  padding: 0.5rem;
  background: none;
  border: none;
  color: inherit;
  transition: opacity var(--transition-slow);
  display: flex;
  align-items: center;
}
.header-cart-btn:hover { opacity: 0.6; }

.theme-cart-count {
  position: absolute;
  top: -0.125rem; right: -0.125rem;
  width: 1.25rem; height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 500;
  background-color: var(--color-accent);
  color: #fff;
  border-radius: 50%;
}
.theme-cart-count:empty { display: none; }

.header-mobile-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
@media (min-width: 1024px) { .header-mobile-controls { display: none; } }

.mobile-menu-toggle {
  padding: 0.5rem;
  background: none;
  border: none;
  color: inherit;
  transition: opacity var(--transition-slow);
}
.mobile-menu-toggle:hover { opacity: 0.6; }

.mobile-menu {
  margin: 0.5rem 1rem 0;
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--header-bar-border-hsl) / 0.5);
  background: hsl(var(--header-bar-bg-hsl) / 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  animation: fadeIn 0.2s ease forwards;
}
.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.5rem;
  gap: 1rem;
}
.mobile-nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-block: 0.5rem;
  color: var(--color-foreground);
  transition: color var(--transition);
}
.mobile-nav-link:hover { color: var(--color-muted-fg); }

/* ───────────────────────────────────────────────────
   8. HERO
   ─────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / 0.8), rgb(0 0 0 / 0.5) 50%, rgb(0 0 0 / 0.4));
}
.hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 10;
  padding-bottom: 4rem;
}
@media (min-width: 1024px) { .hero-content { padding-bottom: 6rem; } }

.hero-title {
  font-size: clamp(3rem, 10vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
  color: #fff;
  max-width: 52rem;
  margin-bottom: 1.5rem;
}
.hero-subtitle {
  color: rgb(255 255 255 / 0.7);
  font-size: 1.125rem;
  max-width: 28rem;
  margin-bottom: 2rem;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.btn-hero-shop {
  background: var(--color-background);
  color: var(--color-foreground);
  border-radius: var(--radius-full);
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: opacity var(--transition);
}
.btn-hero-shop:hover { opacity: 0.9; }
.btn-hero-story {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgb(255 255 255 / 0.3);
  border-radius: var(--radius-full);
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: background var(--transition);
}
.btn-hero-story:hover { background: rgb(255 255 255 / 0.1); }

/* ───────────────────────────────────────────────────
   9. BRAND STRIP
   ─────────────────────────────────────────────────── */
.brand-strip { padding-block: 4rem; }
.brand-strip-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.brand-strip-line {
  width: 4rem; height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
}
.brand-strip-text {
  font-size: 1.125rem;
  color: var(--color-muted-fg);
  max-width: 36rem;
  text-align: center;
  line-height: 1.7;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
}

/* ───────────────────────────────────────────────────
   10. SHOP SECTION
   ─────────────────────────────────────────────────── */
.shop-section { padding-block: 5rem; }

.shop-search-wrap {
  position: relative;
  max-width: 28rem;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}
.shop-search-icon {
  position: absolute;
  left: 0.75rem; top: 50%;
  transform: translateY(-50%);
  color: var(--color-muted-fg);
  display: block;
}
.shop-search-input {
  width: 100%;
  height: 2.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: #fff;
  padding: 0 2.5rem 0 2.5rem;
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: var(--color-foreground);
  outline: none;
  transition: box-shadow var(--transition);
}
.shop-search-input:focus {
  box-shadow: 0 0 0 2px var(--color-primary);
}
.shop-search-clear {
  position: absolute;
  right: 0.75rem; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--color-muted-fg);
  cursor: pointer;
  transition: color var(--transition);
}
.shop-search-clear:hover { color: var(--color-foreground); }

.shop-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.filter-btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  border-radius: var(--radius-full);
  border: none;
  background: var(--color-secondary);
  color: var(--color-foreground);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  font-family: var(--font-body);
}
.filter-btn:hover { background: var(--color-border); }
.filter-btn.is-active {
  background: var(--color-primary);
  color: var(--color-button-text);
}

.theme-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem 2.5rem;
  max-width: 75rem;
  margin-inline: auto;
  align-items: stretch;
}

.shop-product-item { display: contents; }
.shop-product-item.hidden { display: none; }

.shop-no-results,
.shop-empty {
  text-align: center;
  padding-block: 5rem;
  grid-column: 1 / -1;
}
.shop-empty-text,
.shop-no-results p {
  color: var(--color-muted-fg);
  margin-bottom: 1rem;
}

/* ───────────────────────────────────────────────────
   11. PRODUCT CARD
   ─────────────────────────────────────────────────── */
.theme-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}
.theme-product-card--coming-soon { opacity: 0.5; cursor: default; }
.theme-product-card__image-wrapper {
  aspect-ratio: 3 / 4;
  background: var(--color-secondary);
  border-radius: var(--card-radius);
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
}
.theme-product-card__image-wrapper img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform 0.5s ease;
}
.theme-product-card:not(.theme-product-card--coming-soon):hover .theme-product-card__image-wrapper img {
  transform: scale(1.05);
}
.theme-product-card__info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.theme-product-card__name {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.05em;
  line-height: 1.2;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}
@media (min-width: 768px) { .theme-product-card__name { font-size: 1.125rem; } }
.theme-product-card__price {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  margin-bottom: 0.25rem;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
}
.theme-product-card__colors {
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
}
.theme-product-card__overlay-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.theme-product-card .add_to_cart_button {
  position: relative;
  z-index: 2;
  margin-top: 0.75rem;
  align-self: flex-start;
}

/* ───────────────────────────────────────────────────
   12. ABOUT SECTION
   ─────────────────────────────────────────────────── */
.about-section {
  position: relative;
  padding-block: 5rem;
  overflow: hidden;
}
.about-video-wrap {
  position: absolute;
  inset: 0;
}
.about-video {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.15;
  pointer-events: none;
}
.about-content {
  position: relative;
  z-index: 2;
}
.about-inner { max-width: 42rem; margin-inline: auto; }
.about-text {
  color: var(--color-muted-fg);
  line-height: 1.8;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
}

/* ───────────────────────────────────────────────────
   13. FAQ SECTION
   ─────────────────────────────────────────────────── */
.faq-section { padding-block: 5rem; }
.faq-list { max-width: 42rem; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-foreground);
  cursor: pointer;
  gap: 1rem;
}
.faq-chevron {
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--color-muted-fg);
}
.faq-trigger[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}
.faq-answer { overflow: hidden; }
.faq-answer-text {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  padding-bottom: 1.25rem;
  line-height: 1.7;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
}

/* ───────────────────────────────────────────────────
   14. CTA SECTION
   ─────────────────────────────────────────────────── */
.cta-section {
  position: relative;
  height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 768px) { .cta-section { height: 480px; } }
.cta-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.6);
}
.cta-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: #fff;
  margin-bottom: 1rem;
}
.cta-text {
  color: rgb(255 255 255 / 0.7);
  max-width: 28rem;
  margin-bottom: 2rem;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
}
.btn-cta {
  background: #fff;
  color: var(--color-foreground);
  border-radius: var(--radius-full);
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: opacity var(--transition);
}
.btn-cta:hover { opacity: 0.9; }

/* ───────────────────────────────────────────────────
   15. CONTACT SECTION
   ─────────────────────────────────────────────────── */
.contact-section { padding-block: 5rem; }
.contact-inner { max-width: 42rem; margin-inline: auto; }
.contact-text {
  color: var(--color-muted-fg);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
}
.contact-info-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-muted-fg);
}
.contact-info-item svg { color: var(--color-primary); flex-shrink: 0; }
.contact-info-link { transition: color var(--transition); }
.contact-info-link:hover { color: var(--color-foreground); }

/* ───────────────────────────────────────────────────
   16. FOOTER
   ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-secondary);
  border-top: 1px solid var(--color-border);
  border-radius: 1.5rem 1.5rem 0 0;
}
.footer-inner { padding-block: 4rem 5rem; }
@media (min-width: 1024px) { .footer-inner { padding-block: 5rem; } }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 3rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }

.footer-logo-link { display: inline-block; margin-bottom: 1rem; }
.footer-tagline {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  max-width: 22rem;
  line-height: 1.7;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
}
.footer-heading {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 1rem;
}
.footer-nav-list { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-nav-link {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  transition: color var(--transition);
}
.footer-nav-link:hover { color: var(--color-foreground); }
.footer-contact-list { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-contact-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--color-muted-fg); }
.footer-contact-link { transition: color var(--transition); }
.footer-contact-link:hover { color: var(--color-foreground); }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-copyright,
.footer-currency,
.footer-credit {
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
}
.footer-credit-link { text-decoration: underline; transition: color var(--transition); }
.footer-credit-link:hover { color: var(--color-foreground); }

/* ───────────────────────────────────────────────────
   17. CART DRAWER
   ─────────────────────────────────────────────────── */
#theme-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgb(26 23 20 / 0.2);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
body.cart-open #theme-cart-overlay {
  opacity: 1;
  pointer-events: auto;
}
body.admin-bar #theme-cart-overlay {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar #theme-cart-overlay {
    top: 46px;
  }
}
#theme-cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 100%; max-width: 28rem;
  background: var(--color-background);
  z-index: 201;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-elevated);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
}
body.cart-open #theme-cart-drawer {
  transform: translateX(0);
}
body.admin-bar #theme-cart-drawer {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar #theme-cart-drawer {
    top: 46px;
  }
}
#theme-cart-drawer.is-updating {
  opacity: 0.6;
  pointer-events: none;
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}
.cart-drawer-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.cart-drawer-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
}
.cart-drawer-empty-btn {
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  background: none; border: none; cursor: pointer;
  transition: color var(--transition);
  font-family: var(--font-body);
}
.cart-drawer-empty-btn:hover { color: #dc2626; }
.cart-drawer-close {
  padding: 0.25rem;
  background: none; border: none;
  color: var(--color-foreground);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--transition);
}
.cart-drawer-close:hover { opacity: 1; }

.cart-drawer-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  gap: 1.5rem;
}
.cart-drawer-empty-state svg { color: var(--color-muted-fg); }
.cart-drawer-empty-state p {
  color: var(--color-muted-fg);
  font-family: var(--font-body);
  text-transform: none;
}

.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.cart-drawer-item { display: flex; gap: 1rem; }
.cart-item-img-link {
  width: 5rem; height: 6rem;
  background: var(--color-secondary);
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  display: block;
}
.cart-item-img-link img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: 0.875rem;
  font-weight: 500;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  transition: opacity var(--transition);
}
.cart-item-name:hover { opacity: 0.7; }
.cart-item-price {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  margin-top: 0.125rem;
  font-family: var(--font-body);
  text-transform: none;
}
.cart-item-meta {
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  margin-top: 0.25rem;
  font-family: var(--font-body);
  text-transform: none;
}
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.cart-qty-btn {
  padding: 0.25rem;
  background: none; border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  color: var(--color-foreground);
}
.cart-qty-btn:hover { background: var(--color-secondary); }
.cart-qty-display {
  font-size: 0.875rem;
  min-width: 1.5rem;
  text-align: center;
  font-family: var(--font-body);
  text-transform: none;
}
.cart-item-remove {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  background: none; border: none;
  cursor: pointer;
  transition: color var(--transition);
  font-family: var(--font-body);
}
.cart-item-remove:hover { color: var(--color-foreground); }

.cart-drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}
.cart-subtotal-label { color: var(--color-muted-fg); font-family: var(--font-body); text-transform: none; }
.cart-subtotal-value { font-weight: 500; font-family: var(--font-body); text-transform: none; letter-spacing: 0; }
.cart-shipping-note {
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
  text-transform: none;
}
.btn-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: var(--color-primary);
  color: var(--color-button-text);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: opacity var(--transition);
  font-family: var(--font-body);
}
.btn-checkout:hover { opacity: 0.85; }

/* ───────────────────────────────────────────────────
   18. MODAL
   ─────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
body.admin-bar .modal {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .modal {
    top: 46px;
  }
}
.modal[hidden] { display: none; }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgb(26 23 20 / 0.5);
  backdrop-filter: blur(4px);
}
.modal-content {
  position: relative;
  z-index: 1;
  background: var(--color-background);
  border-radius: var(--radius);
  padding: 1.5rem;
  width: 100%;
  max-width: 28rem;
  box-shadow: var(--shadow-elevated);
  animation: slideUp 0.3s ease forwards;
}
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.modal-title { font-size: 1.5rem; }
.modal-close {
  padding: 0.25rem;
  background: none; border: none;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--transition);
}
.modal-close:hover { opacity: 1; }

/* ───────────────────────────────────────────────────
   19. CONTACT FORM
   ─────────────────────────────────────────────────── */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
}
.form-input,
.form-textarea {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-foreground);
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  width: 100%;
  outline: none;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgb(45 106 180 / 0.15);
}
.form-textarea { resize: vertical; }
.form-message {
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  text-transform: none;
}
.form-message.success { background: #dcfce7; color: #166534; }
.form-message.error   { background: #fee2e2; color: #991b1b; }

/* ───────────────────────────────────────────────────
   20. SINGLE PRODUCT PAGE
   ─────────────────────────────────────────────────── */
.single-product-main {
  padding-top: 7rem;
}
@media (min-width: 1024px) { .single-product-main { padding-top: 8rem; } }

.single-product-breadcrumb {
  padding-block: 1rem;
}
.back-to-shop-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  transition: color var(--transition);
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
}
.back-to-shop-link:hover { color: var(--color-foreground); }

.theme-product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 5rem;
}
@media (min-width: 1024px) {
  .theme-product-layout {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}
.theme-product-layout { min-width: 0; }
.theme-product-gallery,
.theme-product-info { min-width: 0; max-width: 100%; }

/* Gallery */
.theme-product-gallery { display: flex; flex-direction: column; gap: 1rem; }
.product-main-image-wrap {
  aspect-ratio: 3 / 4;
  background: var(--color-secondary);
  border-radius: var(--card-radius);
  overflow: hidden;
  cursor: pointer;
}
#product-main-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}
.theme-product-thumbnails {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  max-width: 100%;
}
.thumb-btn {
  width: 5rem; height: 5rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color var(--transition), opacity var(--transition);
  background: none;
  padding: 0;
  cursor: pointer;
  opacity: 0.6;
}
.thumb-btn.is-active { border-color: var(--color-foreground); opacity: 1; }
.thumb-btn:hover { opacity: 1; }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Product info */
.theme-product-info { padding-top: 1rem; }
@media (min-width: 1024px) { .theme-product-info { padding-top: 0.5rem; } }

.product-categories {
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
}
.product-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.product-price-display {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
}
.product-stock-sold-out {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted-fg);
  margin-bottom: 1rem;
  font-family: var(--font-body);
}
.product-color-note {
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
  text-transform: none;
}

/* Quantity */
.theme-quantity-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  width: fit-content;
  margin-bottom: 1.5rem;
}
.theme-qty-minus,
.theme-qty-plus {
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--color-foreground);
  transition: background var(--transition);
}
.theme-qty-minus:hover,
.theme-qty-plus:hover { background: var(--color-secondary); }
.theme-qty-input {
  border: none;
  width: 2.5rem;
  text-align: center;
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: var(--color-foreground);
  background: transparent;
  -moz-appearance: textfield;
}
.theme-qty-input::-webkit-outer-spin-button,
.theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Screen reader only (swatch labels) */
.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Variable product – stacked attributes */
.single-product .theme-variations-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.single-product .theme-variation-group { margin: 0; }
.single-product .theme-variation-color-heading { margin-bottom: 0.75rem; }
.single-product .theme-variation-size-label { margin: 0; }

/* Colors swatch */
.product-colors-group { margin-bottom: 0; }
.product-option-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0.75rem;
}
.theme-variation-color-heading strong.theme-variation-selected-name {
  font-weight: 600;
  margin-left: 0.15em;
}
.color-swatches { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.color-swatch.theme-attr-btn {
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  min-width: 2.25rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background-color: var(--swatch-color, #cccccc);
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  flex-shrink: 0;
}
.color-swatch.theme-attr-btn:hover:not(:disabled) { transform: scale(1.06); }
.color-swatch.theme-attr-btn.is-active {
  box-shadow:
    0 0 0 2px var(--color-background, #fff),
    0 0 0 4px var(--color-foreground, #0a0a0a);
}
.color-swatch.theme-attr-btn:disabled,
.color-swatch.theme-attr-btn.is-unavailable {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

/* Sizes */
.product-sizes-group { margin-bottom: 0; }
.sizes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  gap: 1rem;
}
.size-guide-btn {
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--transition);
  font-family: var(--font-body);
  flex-shrink: 0;
}
.size-guide-btn:hover { color: var(--color-foreground); }
.size-btns { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.size-btn.theme-attr-btn {
  min-width: 2.75rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-background);
  color: var(--color-foreground);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition), opacity 0.2s ease;
  font-family: var(--font-body);
}
.size-btn.theme-attr-btn:hover:not(:disabled) { border-color: var(--color-foreground); }
.size-btn.theme-attr-btn.is-active {
  border-color: var(--color-foreground);
  background: var(--color-foreground);
  color: var(--color-background);
}
.size-btn.theme-attr-btn:disabled,
.size-btn.theme-attr-btn.is-unavailable {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Add to cart area */
.theme-add-to-cart-area { margin-bottom: 0.75rem; }
.single-product-ships-note {
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  text-align: center;
  margin-bottom: 2rem;
  font-family: var(--font-body);
  text-transform: none;
}

/* Details */
.product-details-section {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.product-details-list { display: flex; flex-direction: column; gap: 0.5rem; }
.product-detail-item {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
}
.product-detail-item::before { content: '•'; flex-shrink: 0; margin-top: 0.125rem; }

/* Description accordion */
.product-desc-accordion { border-top: 1px solid var(--color-border); }
.product-desc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
  background: none; border: none;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--color-foreground);
}
.desc-chevron {
  transition: transform var(--transition);
  color: var(--color-muted-fg);
}
.product-desc-trigger[aria-expanded="true"] .desc-chevron { transform: rotate(180deg); }
.product-desc-content {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  line-height: 1.7;
  padding-bottom: 1.5rem;
  white-space: pre-line;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
}
.product-desc-content.overflow-wrap { overflow-wrap: break-word; word-break: break-word; }

/* Responsive */
.single-product .theme-product-thumbnails { flex-wrap: wrap; max-width: 100%; }
.single-product .theme-add-to-cart-area { flex-wrap: wrap; gap: 0.75rem; }
.single-product .single_add_to_cart_button { flex: 1 1 auto; min-width: 160px; }
.single-product .woocommerce-product-details__short-description,
.single-product .woocommerce-variation-description,
.single-product .posted_in { overflow-wrap: break-word; word-break: break-word; }

/* Variations: native selects hidden when swatches / buttons are shown */
.single-product .variations .theme-attr-select-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
}
.single-product .theme-variation-group--fallback .theme-variation-select {
  width: 100%;
  max-width: 20rem;
  margin-top: 0.25rem;
}

/* ───────────────────────────────────────────────────
   21. RELATED PRODUCTS
   ─────────────────────────────────────────────────── */
.related-products-section {
  padding-block: 4rem;
  border-top: 1px solid var(--color-border);
}
.related-title {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}
.related-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem 2rem;
}

/* ───────────────────────────────────────────────────
   22. WOOCOMMERCE – ADD TO CART BUTTON OVERRIDES
   ─────────────────────────────────────────────────── */
.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;
}

/* Single product: outline pill ATC (Lovable / shadcn outline) */
.single-product .theme-atc-pill,
.single-product a.theme-atc-pill.single_add_to_cart_button {
  width: 100% !important;
  flex: 1 1 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  background-color: var(--color-background) !important;
  color: var(--color-foreground) !important;
  border: 1px solid var(--color-border) !important;
  box-shadow: none !important;
  border-radius: var(--btn-radius) !important;
  min-height: 2.75rem !important;
  padding: 0 2rem !important;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), opacity 0.2s ease !important;
}
.single-product .theme-atc-pill .theme-atc-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.125rem 0.35rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.single-product .theme-atc-pill .theme-atc-total {
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: none;
}
.single-product .theme-atc-pill .theme-atc-total--placeholder {
  color: var(--color-muted-fg);
  letter-spacing: 0;
}
/* Hover = Lovable outline: hover:bg-accent hover:text-accent-foreground (index.css --accent / --accent-foreground) */
.single-product .theme-atc-pill:hover:not(:disabled):not(.disabled),
.single-product a.theme-atc-pill.single_add_to_cart_button:hover {
  background-color: var(--color-accent) !important;
  color: var(--color-button-text) !important;
  border-color: var(--color-accent) !important;
  opacity: 1 !important;
}
.single-product .theme-atc-pill:hover:not(:disabled):not(.disabled) .theme-atc-text,
.single-product .theme-atc-pill:hover:not(:disabled):not(.disabled) .theme-atc-label,
.single-product .theme-atc-pill:hover:not(:disabled):not(.disabled) .theme-atc-sep,
.single-product .theme-atc-pill:hover:not(:disabled):not(.disabled) .theme-atc-total,
.single-product a.theme-atc-pill.single_add_to_cart_button:hover .theme-atc-text,
.single-product a.theme-atc-pill.single_add_to_cart_button:hover .theme-atc-label,
.single-product a.theme-atc-pill.single_add_to_cart_button:hover .theme-atc-sep,
.single-product a.theme-atc-pill.single_add_to_cart_button:hover .theme-atc-total {
  color: inherit !important;
}
.single-product .theme-atc-pill:hover:not(:disabled):not(.disabled) .woocommerce-Price-amount,
.single-product .theme-atc-pill:hover:not(:disabled):not(.disabled) .woocommerce-Price-amount *,
.single-product a.theme-atc-pill.single_add_to_cart_button:hover .woocommerce-Price-amount,
.single-product a.theme-atc-pill.single_add_to_cart_button:hover .woocommerce-Price-amount * {
  color: inherit !important;
}
.single-product .theme-atc-pill:disabled:hover,
.single-product .theme-atc-pill.disabled:hover,
.single-product a.theme-atc-pill.single_add_to_cart_button.disabled:hover {
  background-color: var(--color-background) !important;
  border-color: var(--color-border) !important;
  color: var(--color-foreground) !important;
  opacity: 0.4 !important;
}
.single-product .theme-atc-pill--static {
  text-align: center;
}

/* Button loading state */
.ajax_add_to_cart.theme-btn-loading {
  opacity: 0.6 !important;
  pointer-events: none !important;
  cursor: wait !important;
}

/* Hide "View cart" injected after AJAX add */
.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward { display: none !important; }

/* ───────────────────────────────────────────────────
   23. WOOCOMMERCE NOTICES
   ─────────────────────────────────────────────────── */
/* Hide on single product — drawer provides feedback */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }

/* Style visible notices */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  font-family: var(--font-body);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}
.woocommerce-message { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.woocommerce-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.woocommerce-info    { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }

/* ───────────────────────────────────────────────────
   24. CHECKOUT – WOOCOMMERCE BLOCK
   body.woocommerce-checkout: set in theme (checkout page or page with checkout block)
   ─────────────────────────────────────────────────── */

/* No parent “container” should clip the block checkout; width comes from the block root */
body.woocommerce-checkout #page-content,
body.woocommerce-checkout #main-content.site-main,
body.woocommerce-checkout .page-content-wrap,
body.woocommerce-checkout .page-content-wrap.container-wide,
body.woocommerce-checkout .entry-content,
body.woocommerce-checkout article {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}

/* Checkout root: centered column */
body.woocommerce-checkout .entry-content .wp-block-woocommerce-checkout,
body.woocommerce-checkout .entry-content .wc-block-checkout.wp-block-woocommerce-checkout,
.entry-content .wp-block-woocommerce-checkout.wc-block-checkout {
  max-width: var(--theme-checkout-max-width);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}

/* Store notices – same width / alignment as checkout content (class uses “notices”) */
body.woocommerce-checkout .wc-block-components-notices,
body.woocommerce-checkout .entry-content .wc-block-checkout .wc-block-components-notices,
.entry-content .wc-block-checkout .wc-block-components-notices {
  max-width: var(--theme-checkout-max-width);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}

/* Two-column layout lives on sidebar-layout wrappers (not only .wc-block-checkout) */
body.woocommerce-checkout .wc-block-components-sidebar-layout,
body.woocommerce-checkout .wc-block-checkout-sidebar-layout,
.entry-content .wc-block-checkout .wc-block-components-sidebar-layout,
.entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  body.woocommerce-checkout .wc-block-components-sidebar-layout,
  body.woocommerce-checkout .wc-block-checkout-sidebar-layout,
  .entry-content .wc-block-checkout .wc-block-components-sidebar-layout,
  .entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout {
    grid-template-columns: 1fr minmax(360px, 400px);
  }
}

/* First direct child notices span full grid width */
body.woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-components-notices,
body.woocommerce-checkout .wc-block-checkout-sidebar-layout > .wc-block-components-notices,
.entry-content .wc-block-checkout .wc-block-components-sidebar-layout > .wc-block-components-notices,
.entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout > .wc-block-components-notices {
  grid-column: 1 / -1;
  order: 1;
}

/* Form column vs order summary column */
body.woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-components-main,
body.woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout-sidebar-layout > .wc-block-components-main,
body.woocommerce-checkout .wc-block-checkout-sidebar-layout > .wc-block-checkout__main,
.entry-content .wc-block-checkout .wc-block-components-sidebar-layout > .wc-block-components-main,
.entry-content .wc-block-checkout .wc-block-components-sidebar-layout > .wc-block-checkout__main,
.entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout > .wc-block-components-main,
.entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout > .wc-block-checkout__main {
  order: 2;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

body.woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-components-sidebar,
body.woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-checkout__sidebar,
body.woocommerce-checkout .wc-block-checkout-sidebar-layout > .wc-block-components-sidebar,
body.woocommerce-checkout .wc-block-checkout-sidebar-layout > .wc-block-checkout__sidebar,
.entry-content .wc-block-checkout .wc-block-components-sidebar-layout > .wc-block-components-sidebar,
.entry-content .wc-block-checkout .wc-block-components-sidebar-layout > .wc-block-checkout__sidebar,
.entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout > .wc-block-components-sidebar,
.entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout > .wc-block-checkout__sidebar {
  order: 3;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Other direct children: fill grid cell without overflow (notices use own max-width above) */
body.woocommerce-checkout .wc-block-components-sidebar-layout > *:not(.wc-block-components-notices),
body.woocommerce-checkout .wc-block-checkout-sidebar-layout > *:not(.wc-block-components-notices),
.entry-content .wc-block-checkout .wc-block-components-sidebar-layout > *:not(.wc-block-components-notices),
.entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout > *:not(.wc-block-components-notices) {
  box-sizing: border-box;
  max-width: 100%;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block,
.entry-content .wc-block-checkout .wp-block-woocommerce-checkout-order-summary-block {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Legacy / inner wrappers still used by some WC versions */
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar,
.entry-content .wc-block-checkout .wc-block-checkout__main,
.entry-content .wc-block-checkout .wc-block-checkout__sidebar {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
body.woocommerce-checkout .wc-block-checkout__sidebar,
.entry-content .wc-block-checkout .wc-block-checkout__sidebar {
  background-color: var(--color-secondary);
  border-radius: var(--card-radius);
  padding: var(--section-padding);
}
body.woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-components-sidebar,
body.woocommerce-checkout .wc-block-checkout-sidebar-layout > .wc-block-components-sidebar,
.entry-content .wc-block-checkout .wc-block-components-sidebar-layout > .wc-block-components-sidebar,
.entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout > .wc-block-components-sidebar {
  background-color: var(--color-secondary);
  border-radius: var(--card-radius);
  padding: var(--section-padding);
}
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
.entry-content .wc-block-checkout .wc-block-components-text-input input,
.entry-content .wc-block-checkout .wc-block-components-select select {
  font-family: var(--font-body);
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-sm) !important;
  background: var(--color-background) !important;
  color: var(--color-foreground) !important;
  width: 100% !important;
  max-width: none !important;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
.entry-content .wc-block-checkout .wc-block-components-text-input input:focus,
.entry-content .wc-block-checkout .wc-block-components-select select:focus {
  border-color: var(--color-primary) !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgb(45 106 180 / 0.15) !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
.entry-content .wc-block-checkout .wc-block-components-checkout-place-order-button {
  background-color: var(--color-primary) !important;
  color: var(--color-button-text) !important;
  border-radius: var(--btn-radius) !important;
  font-family: var(--font-body) !important;
  font-size: var(--btn-font-size) !important;
  letter-spacing: var(--btn-letter-spacing) !important;
  text-transform: var(--btn-text-transform) !important;
  border: none !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
.entry-content .wc-block-checkout .wc-block-components-checkout-place-order-button:hover {
  opacity: 0.85 !important;
}
body.woocommerce-checkout .wc-block-checkout h1,
body.woocommerce-checkout .wc-block-checkout h2,
body.woocommerce-checkout .wc-block-checkout h3,
.entry-content .wc-block-checkout h1,
.entry-content .wc-block-checkout h2,
.entry-content .wc-block-checkout h3 {
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Page title */
.page-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 2rem;
  padding-top: 1.5rem;
}

/* ───────────────────────────────────────────────────
   25. THANK YOU PAGE
   ─────────────────────────────────────────────────── */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .woocommerce-order { padding-block: 2rem; }
body.theme-thankyou-page .woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; margin-bottom: 2rem; }
body.theme-thankyou-page .woocommerce-order-overview li { font-size: 0.875rem; color: var(--color-muted-fg); font-family: var(--font-body); text-transform: none; }
body.theme-thankyou-page .woocommerce-order-overview strong { color: var(--color-foreground); }
body.theme-thankyou-page .woocommerce-customer-details { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2rem; }
body.theme-thankyou-page .woocommerce-customer-details address { max-width: 480px; overflow-wrap: break-word; font-style: normal; font-size: 0.875rem; font-family: var(--font-body); line-height: 1.7; text-transform: none; }
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; border-collapse: collapse; }
body.theme-thankyou-page .woocommerce-order-details td,
body.theme-thankyou-page .woocommerce-order-details th { padding: 0.75rem 0.5rem; border-bottom: 1px solid var(--color-border); font-size: 0.875rem; font-family: var(--font-body); text-transform: none; }
body.theme-thankyou-page h2 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 1rem; }
@media (min-width: 768px) {
  body.theme-thankyou-page .woocommerce-customer-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
  }
  body.theme-thankyou-page .woocommerce-customer-details address { min-width: 0; }
}

/* ───────────────────────────────────────────────────
   26. WC ARCHIVE / SHOP PAGE
   ─────────────────────────────────────────────────── */
.shop-archive-main { padding-top: 7rem; }
.shop-archive-wrap { padding-block: 3rem 5rem; }

/* ───────────────────────────────────────────────────
   27. SIZE GUIDE DIALOG
   ─────────────────────────────────────────────────── */
.size-guide-dialog { display: none; }
.size-guide-dialog.is-open { display: flex; }
.size-guide-dialog {
  position: fixed;
  inset: 0;
  z-index: 400;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
body.admin-bar .size-guide-dialog {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .size-guide-dialog {
    top: 46px;
  }
}
.size-guide-overlay {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.5);
}
.size-guide-content {
  position: relative;
  z-index: 1;
  background: var(--color-background);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 32rem;
  width: 100%;
  box-shadow: var(--shadow-elevated);
  animation: slideUp 0.3s ease forwards;
}
.size-guide-title { font-size: 1.125rem; margin-bottom: 1rem; }
.size-guide-note { font-size: 0.875rem; color: var(--color-muted-fg); margin-bottom: 1rem; font-family: var(--font-body); text-transform: none; }
.size-guide-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.size-guide-table th,
.size-guide-table td {
  padding: 0.5rem 0.75rem;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.875rem;
  font-family: var(--font-body);
  text-transform: none;
}
.size-guide-table th { font-weight: 500; }
.size-guide-table td:first-child { font-weight: 500; }
.size-guide-footer-note { font-size: 0.75rem; color: var(--color-muted-fg); margin-top: 1rem; font-family: var(--font-body); text-transform: none; }
.size-guide-close-btn {
  display: block;
  margin: 1rem auto 0;
  padding: 0.5rem 1.5rem;
  background: var(--color-secondary);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.875rem;
}

/* ───────────────────────────────────────────────────
   28. 404 PAGE
   ─────────────────────────────────────────────────── */
.not-found-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 1.5rem;
  text-align: center;
  padding-top: 8rem;
}
.not-found-title { font-size: clamp(4rem, 15vw, 8rem); line-height: 1; color: var(--color-border); }
.not-found-text { color: var(--color-muted-fg); font-family: var(--font-body); text-transform: none; letter-spacing: 0; }

/* ───────────────────────────────────────────────────
   29. ANIMATIONS
   ─────────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeIn 0.6s ease forwards; }
.animate-slide-up { animation: slideUp 0.6s ease forwards; }

/* ───────────────────────────────────────────────────
   30. RESPONSIVE HELPERS
   ─────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .theme-product-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem 1.25rem; }
  .hero-title { font-size: clamp(2.5rem, 12vw, 6rem); }
}
@media (max-width: 480px) {
  .theme-product-grid { grid-template-columns: 1fr; }
}
