/* =========================================================================
   SHARED THOUGHTZ — THEME CSS
   ========================================================================= */

/* ---- Google Fonts are loaded via wp_enqueue_style in functions.php ---- */

/* =========================================================================
   CSS CUSTOM PROPERTIES (defaults — overridden by PHP inline style)
   ========================================================================= */
:root {
  --color-primary:      #217B87;
  --color-primary-fg:   #FFFFFF;
  --color-background:   #F7F4EF;
  --color-foreground:   #0F2325;
  --color-secondary:    #D5EAEC;
  --color-secondary-fg: #132B2E;
  --color-muted:        #D5E5E6;
  --color-muted-fg:     #4D6669;
  --color-accent:       #7FD0D9;
  --color-accent-fg:    #132E31;
  --color-border:       #C5DEDE;
  --color-card:         #FFFFFF;
  --color-destructive:  #DC2626;

  --font-display: 'Archivo Black', sans-serif;
  --font-body:    'Space Grotesk', sans-serif;
  --font-size-base: 17px;

  --radius:     0.5rem;
  --radius-sm:  0.25rem;
  --radius-full: 9999px;

  --shadow-soft:     0 4px 20px -4px rgba(15 35 37 / 0.08);
  --shadow-elevated: 0 12px 40px -8px rgba(15 35 37 / 0.18);

  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  --header-height: 80px;
  --logo-height:   60px;

  --btn-radius:        var(--radius);
  --btn-height:        48px;
  --btn-padding:       0 1.5rem;
  --btn-font-size:     0.9375rem;
  --btn-font-weight:   500;
  --btn-letter-spacing: 0;
  --btn-text-transform: none;
  --btn-icon-padding:  0.5rem;

  --card-radius: var(--radius);
  --section-padding: 2rem;
}

/* Dark mode palette (matches src/index.css .dark) */
html.dark {
  --color-background:   hsl(190, 30%, 8%);
  --color-foreground:   hsl(186, 25%, 94%);
  --color-card:         hsl(190, 25%, 13%);
  --color-primary:      hsl(186, 65%, 60%);
  --color-primary-fg:   hsl(190, 40%, 10%);
  --color-secondary:    hsl(190, 20%, 17%);
  --color-secondary-fg: hsl(186, 22%, 90%);
  --color-muted:        hsl(190, 15%, 22%);
  --color-muted-fg:     hsl(186, 12%, 65%);
  --color-accent:       hsl(186, 70%, 55%);
  --color-accent-fg:    hsl(190, 40%, 10%);
  --color-border:       hsl(190, 15%, 22%);
  --shadow-soft:        0 4px 20px -4px hsl(190 30% 4% / 0.4);
  --shadow-elevated:    0 12px 40px -8px hsl(190 30% 4% / 0.5);
}

/* =========================================================================
   RESET & BASE
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: var(--font-size-base); }

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.8; }

img, video { max-width: 100%; display: block; }

button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }

input, textarea, select {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-foreground);
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  outline: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(33, 123, 135, 0.15);
}

ul { list-style: none; }

/* =========================================================================
   UTILITY CLASSES
   ========================================================================= */
.container-wide {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 1024px) {
  .container-wide { padding-left: 2rem; padding-right: 2rem; }
}

.bg-secondary { background-color: var(--color-secondary); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

.animate-fade-in { animation: fadeIn 0.6s var(--transition-smooth) forwards; }
.animate-slide-up { animation: slideUp 0.6s var(--transition-smooth) forwards; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--btn-height);
  padding: var(--btn-padding);
  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);
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
  border-color: var(--color-primary);
}
.btn-primary:hover { opacity: 0.88; color: var(--color-primary-fg); }

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-secondary-fg);
  border-color: var(--color-secondary);
}
.btn-secondary:hover { opacity: 0.88; }

.btn-outline {
  background-color: transparent;
  color: var(--color-foreground);
  border-color: var(--color-border);
}
.btn-outline:hover { background-color: var(--color-muted); }

.btn-ghost {
  background-color: transparent;
  color: var(--color-foreground);
}

.btn-lg { min-height: 52px; padding: 0 2rem; font-size: 1rem; }
.btn-full { width: 100%; }

/* =========================================================================
   BADGES
   ========================================================================= */
.sold-out-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background-color: var(--color-foreground);
  color: var(--color-background);
  border-radius: var(--radius-sm);
  z-index: 3;
}

.new-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background-color: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  z-index: 3;
}

/* =========================================================================
   SECTION HEADER STYLES
   ========================================================================= */
.section-header { text-align: center; margin-bottom: 3rem; }

.section-eyebrow {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-fg);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 5vw, 3rem);
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .section-title { font-size: clamp(2.25rem, 4vw, 3rem); }
}

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

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background-color: color-mix(in srgb, var(--color-background) 95%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-height);
  transition: height 0.3s ease;
}

.site-header.scrolled .site-nav { height: 64px; }
.site-header.scrolled .site-logo-img { height: calc(var(--logo-height) * 0.85) !important; }

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

.site-logo-img {
  height: var(--logo-height) !important;
  width: auto !important;
  display: block;
  transition: height 0.3s ease;
}

.site-logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: var(--logo-height);
  display: block;
}

.site-nav-links { display: none; }

@media (min-width: 1024px) {
  .site-nav-links {
    display: flex;
    align-items: center;
  }
  .site-nav-links .theme-nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
  }
  .site-nav-links .theme-nav-list a {
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    position: relative;
    display: inline-block;
    padding-bottom: 1px;
    color: var(--color-foreground);
  }
  .site-nav-links .theme-nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--transition-smooth);
  }
  .site-nav-links .theme-nav-list a:hover::after { transform: scaleX(1); }
}

.site-nav-actions { display: flex; align-items: center; gap: 0.5rem; }

.theme-toggle-btn {
  padding: 0.5rem;
  color: var(--color-foreground);
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-toggle-btn:hover { opacity: 0.6; }

.theme-toggle-btn .theme-toggle-sun,
.theme-toggle-btn .theme-toggle-moon {
  flex-shrink: 0;
}

.theme-toggle-btn .theme-toggle-sun {
  display: none;
}

.theme-toggle-btn .theme-toggle-moon {
  display: block;
}

html.dark .theme-toggle-btn .theme-toggle-sun {
  display: block;
}

html.dark .theme-toggle-btn .theme-toggle-moon {
  display: none;
}

.cart-btn {
  position: relative;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-foreground);
  transition: opacity 0.2s;
}
.cart-btn:hover { opacity: 0.6; }

@media (max-width: 1023px) {
  .cart-btn.desktop-only { display: none !important; }
}

.theme-cart-count {
  position: absolute;
  top: -2px; right: -2px;
  width: 20px; height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 600;
  background-color: var(--color-primary);
  color: #fff;
  border-radius: 9999px;
  line-height: 1;
}

.theme-cart-count:empty { display: none; }

/* Cart btn in mobile menu — not absolute positioned */
.mobile-cart-row .cart-btn { position: relative; }
.mobile-cart-row .theme-cart-count {
  position: static;
  margin-left: 0.25rem;
}

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0.5rem;
  width: 36px;
  height: 36px;
}
@media (min-width: 1024px) { .mobile-menu-btn { display: none; } }

.hamburger-line {
  display: block;
  width: 18px;
  height: 1.5px;
  background-color: var(--color-foreground);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu-btn.is-open .hamburger-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mobile-menu-btn.is-open .hamburger-line:nth-child(2) { opacity: 0; }
.mobile-menu-btn.is-open .hamburger-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  border-top: 1px solid var(--color-border);
  padding: 1rem 0;
}

.mobile-menu .mobile-nav-list,
.mobile-menu .theme-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
}
.mobile-menu .mobile-nav-list a,
.mobile-menu .theme-nav-list a {
  display: block;
  padding: 0.75rem 0;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  color: var(--color-foreground);
  transition: color 0.2s;
}
.mobile-menu .mobile-nav-list a:hover,
.mobile-menu .theme-nav-list a:hover { color: var(--color-muted-fg); }

.mobile-cart-row { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--color-border); }
.mobile-cart-row .cart-btn { font-size: 0.9375rem; }

/* =========================================================================
   FRONT PAGE: HERO
   ========================================================================= */
.front-page-main { padding-top: 0; }

.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-height);
  background: radial-gradient(ellipse at top left, rgba(33,123,135,0.95), transparent 55%),
              radial-gradient(ellipse at bottom right, rgba(127,208,217,0.85), transparent 55%),
              #0F2325;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, transparent 50%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}

.hero-dots {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image: radial-gradient(rgba(255,255,255,0.15) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 10; padding-top: 6rem; padding-bottom: 6rem; }

@media (min-width: 1024px) { .hero-content { padding-top: 8rem; padding-bottom: 8rem; } }

.hero-inner {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
  animation: fadeIn 0.6s var(--transition-smooth) forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: -0.01em;
  color: #fff;
  text-transform: uppercase;
  line-height: 0.9;
  margin-bottom: 1.5rem;
  animation: slideUp 0.6s var(--transition-smooth) forwards;
}

.hero-subtitle {
  color: rgba(255,255,255,0.85);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  animation: slideUp 0.6s 0.1s var(--transition-smooth) both;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  animation: slideUp 0.6s 0.2s var(--transition-smooth) both;
}

@media (min-width: 640px) { .hero-buttons { flex-direction: row; } }

.hero-buttons .btn-outline {
  background-color: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
  border-color: #fff;
  color: #fff;
}
.hero-buttons .btn-outline:hover { background-color: #fff; color: var(--color-foreground); }

/* =========================================================================
   VALUE PROPOSITIONS BAR
   ========================================================================= */
.value-bar { background-color: var(--color-primary); color: var(--color-primary-fg); }

.value-bar-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-size: 0.875rem;
  text-align: center;
}

@media (min-width: 640px) { .value-bar-inner { flex-direction: row; gap: 3rem; } }

.value-item { display: flex; align-items: center; gap: 0.5rem; }
.value-sep { display: none; opacity: 0.4; }
@media (min-width: 640px) { .value-sep { display: block; } }

/* =========================================================================
   PRODUCT GRID & CARDS
   ========================================================================= */
.theme-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .theme-product-grid--4col { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .theme-product-grid--shop { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .theme-product-grid--4col { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
  .theme-product-grid--shop { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
}

.theme-product-card-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.theme-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

/* Hit-area overlay (Pattern A) */
.theme-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: auto;
  display: block;
}

.theme-product-card * { pointer-events: none; }
.theme-product-card .theme-card-link { pointer-events: auto; }
.theme-product-card .theme-card-atc {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.theme-product-card__image-wrapper {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: var(--color-secondary);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.theme-product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s ease-out;
}

.theme-product-card:hover .theme-product-card__img--main { transform: scale(1.05); }

.theme-product-card__img--hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.theme-product-card:hover .theme-product-card__img--hover { opacity: 1; }
.theme-product-card:hover .theme-product-card__img--main.has-hover { opacity: 0; }

.theme-product-card__img.opacity-60 { opacity: 0.6; }

/* Quick-add button on card */
.theme-card-atc {
  display: flex;
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background-color: color-mix(in srgb, var(--color-card) 92%, transparent);
  backdrop-filter: blur(4px);
  color: var(--color-foreground);
  box-shadow: var(--shadow-soft);
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.theme-card-atc:hover {
  background-color: var(--color-primary) !important;
  color: #fff !important;
  opacity: 1 !important;
  transform: scale(1.1);
}
.theme-card-atc.theme-btn-loading { opacity: 0.6 !important; pointer-events: none !important; cursor: wait !important; }

.theme-product-card__info { flex: 1; }

.theme-product-card__cat {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-fg);
  margin-bottom: 0.25rem;
}

.theme-product-card__name {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  transition: opacity 0.2s;
}

.theme-product-card:hover .theme-product-card__name { opacity: 0.7; }

.theme-product-card__price {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
}

.theme-product-card__price .price { color: var(--color-muted-fg); }

/* =========================================================================
   NEW ARRIVALS SECTION
   ========================================================================= */
.new-arrivals-section { padding-top: 5rem; padding-bottom: 5rem; }

/* =========================================================================
   SHOP BY VIBE
   ========================================================================= */
.vibe-section { padding: 5rem 0; }

.vibe-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .vibe-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
}

.vibe-tile {
  display: block;
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--color-card);
}

.vibe-tile__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease-out;
  display: block;
}

.vibe-tile:hover .vibe-tile__img { transform: scale(1.05); }

.vibe-tile__overlay {
  position: absolute;
  inset-x: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
  padding: 4rem 1rem 1rem;
}

.vibe-tile__title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =========================================================================
   ABOUT SECTION
   ========================================================================= */
.about-section { padding: 5rem 0; scroll-margin-top: 6rem; }

.about-inner {
  max-width: 48rem;
  margin: 0 auto;
  text-align: left;
}

.about-inner .btn {
  display: inline-flex;
}

.about-title { font-size: clamp(1.875rem, 5vw, 3rem); text-transform: uppercase; margin: 0.5rem 0 1.5rem; }

.about-copy { display: flex; flex-direction: column; gap: 1rem; color: var(--color-muted-fg); line-height: 1.8; margin-bottom: 2rem; }

/* =========================================================================
   CUSTOM CTA SECTION
   ========================================================================= */
.custom-cta-section { padding: 4rem 0; scroll-margin-top: 6rem; }

.custom-cta-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  background: linear-gradient(135deg, #0F2325 0%, #217B87 100%);
  color: #fff;
}

@media (min-width: 768px) { .custom-cta-card { grid-template-columns: 1fr 1fr; } }

.custom-cta-dots {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: radial-gradient(rgba(255,255,255,0.3) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.custom-cta-content {
  position: relative;
  z-index: 1;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .custom-cta-content { align-items: flex-start; text-align: left; padding: 4rem; }
}

.custom-cta-icon { opacity: 0.9; margin-bottom: 1rem; }

.custom-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.custom-cta-desc {
  max-width: 36rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.custom-cta-image {
  position: relative;
  z-index: 1;
  min-height: 280px;
}

@media (min-width: 768px) { .custom-cta-image { min-height: 420px; } }

.custom-cta-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* =========================================================================
   SHOP SECTION
   ========================================================================= */
.shop-section { padding: 5rem 0; scroll-margin-top: 6rem; }

.shop-search-wrap { max-width: 28rem; margin: 0 auto 1.5rem; }

.shop-search {
  position: relative;
  display: flex;
  align-items: center;
}

.shop-search-icon {
  position: absolute;
  left: 0.75rem;
  color: var(--color-muted-fg);
  pointer-events: none;
}

.shop-search-input {
  width: 100%;
  height: 2.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background-color: var(--color-background);
  padding: 0 2.5rem 0 2.25rem;
  font-size: 0.875rem;
}

.shop-search-input::placeholder { color: var(--color-muted-fg); }

.shop-search-clear {
  position: absolute;
  right: 0.75rem;
  color: var(--color-muted-fg);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shop-search-clear:hover { color: var(--color-foreground); }

.shop-filter-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background-color: var(--color-card);
  color: var(--color-foreground);
  cursor: pointer;
  transition: all 0.3s;
}

.filter-pill.is-active {
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
  border-color: var(--color-primary);
}

.filter-pill:not(.is-active):hover {
  background-color: var(--color-muted);
}

.filter-pill--accent {
  background-color: var(--color-accent);
  color: var(--color-accent-fg);
  border-color: var(--color-accent);
  box-shadow: 0 4px 12px -2px rgba(127,208,217,0.3);
  outline: 2px solid rgba(127,208,217,0.4);
  outline-offset: 2px;
}

.filter-pill--accent:hover { opacity: 0.88; }

.shop-load-more { text-align: center; margin-top: 2rem; }
.shop-no-results { text-align: center; padding: 5rem 0; }
.shop-no-results p { color: var(--color-muted-fg); margin-bottom: 1rem; }

/* =========================================================================
   FAQ SECTION
   ========================================================================= */
.faq-section { padding: 5rem 0; scroll-margin-top: 6rem; }

.faq-inner { max-width: 48rem; margin: 0 auto; }

.faq-header { text-align: center; margin-bottom: 2.5rem; }

.faq-title { margin: 0.5rem 0 0.75rem; }

.faq-subtitle { color: var(--color-muted-fg); font-size: 0.9375rem; }

.faq-search-wrap { max-width: 36rem; margin: 0 auto 1.5rem; }

.faq-search {
  position: relative;
  display: flex;
  align-items: center;
}

.faq-search svg {
  position: absolute;
  left: 1rem;
  color: var(--color-muted-fg);
  pointer-events: none;
}

.faq-search-input {
  width: 100%;
  height: 3rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background-color: var(--color-card);
  padding: 0 1rem 0 2.75rem;
  font-size: 0.9375rem;
}

.faq-cat-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.faq-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-foreground);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background-color: var(--color-card);
  cursor: pointer;
  transition: all 0.2s;
}

.faq-pill.is-active {
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(33,123,135,0.3);
}

.faq-pill:not(.is-active):hover {
  border-color: rgba(127,208,217,0.4);
  background-color: rgba(213,234,236,0.5);
}

.faq-accordion { display: flex; flex-direction: column; gap: 0.75rem; }

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--color-card);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.faq-item:hover { box-shadow: var(--shadow-soft); border-color: rgba(127,208,217,0.4); }

.faq-item.is-open { border-color: rgba(127,208,217,0.5); box-shadow: var(--shadow-soft); }

.faq-trigger {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 1.25rem;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-foreground);
  background: none;
  border: none;
  transition: background-color 0.2s;
}

.faq-trigger:hover { background-color: rgba(213,234,236,0.3); }

.faq-icon-wrap {
  flex-shrink: 0;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background-color: rgba(127,208,217,0.15);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-question { flex: 1; font-size: 0.875rem; }

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--color-muted-fg);
}

.faq-item.is-open .faq-chevron { transform: rotate(180deg); }

.faq-content-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.2s ease-out;
}

.faq-item.is-open .faq-content-wrapper { grid-template-rows: 1fr; }

.faq-content {
  overflow: hidden;
  min-height: 0;
  padding: 0 1.25rem 0 4rem;
}

.faq-item.is-open .faq-content { padding-bottom: 1.25rem; }

.faq-content p {
  color: var(--color-muted-fg);
  font-size: 0.875rem;
  line-height: 1.8;
}

.faq-empty {
  text-align: center;
  padding: 3rem;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-card);
}

.faq-empty svg { color: var(--color-muted-fg); margin: 0 auto 0.75rem; }
.faq-empty p { font-size: 0.875rem; color: var(--color-muted-fg); }
.faq-empty a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 4px; font-weight: 500; }

.faq-cta {
  margin-top: 2.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background-color: rgba(33,123,135,0.08);
}

@media (min-width: 768px) { .faq-cta { flex-direction: row; align-items: center; } }

.faq-cta-icon {
  flex-shrink: 0;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background-color: rgba(33,123,135,0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-cta-text { flex: 1; }

.faq-cta-text h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.faq-cta-text p { font-size: 0.875rem; color: var(--color-muted-fg); }

/* =========================================================================
   CONTACT SECTION
   ========================================================================= */
.contact-section { scroll-margin-top: 6rem; }

.contact-bg {
  position: relative;
  overflow: hidden;
  background-color: #0A0A0A;
  color: #fff;
}

.contact-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  pointer-events: none;
}

.contact-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(0,0,0,0.7), rgba(0,0,0,0.55), rgba(0,0,0,0.8));
  pointer-events: none;
}

.contact-dots {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: radial-gradient(rgba(255,255,255,0.35) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.contact-content {
  position: relative;
  z-index: 10;
  padding-top: 5rem;
  padding-bottom: 5rem;
  text-align: center;
}

@media (min-width: 768px) { .contact-content { padding-top: 6rem; padding-bottom: 6rem; } }

.contact-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1rem;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.contact-subtitle {
  color: rgba(255,255,255,0.85);
  font-size: clamp(0.9375rem, 2vw, 1.125rem);
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}

.contact-info-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  font-size: 0.875rem;
}

@media (min-width: 768px) { .contact-info-row { flex-direction: row; justify-content: center; gap: 2.5rem; } }

.contact-info-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.9);
  transition: color 0.2s;
}

.contact-info-item:hover { color: #fff; opacity: 1; }

/* =========================================================================
   MODALS
   ========================================================================= */
.theme-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,35,37,0.2);
  z-index: 100;
  display: none;
}

.theme-modal-overlay.is-open { display: block; }

.theme-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 101;
  width: min(90vw, 32rem);
  max-height: 90vh;
  overflow-y: auto;
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-elevated);
  padding: 0;
  display: none;
}

.theme-modal.is-open { display: block; }

.theme-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.theme-modal-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-transform: uppercase;
}

.theme-modal-title svg { color: var(--color-primary); }

.theme-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  color: var(--color-foreground);
  transition: opacity 0.2s;
}

.theme-modal-close:hover { opacity: 0.6; }

.theme-modal-body { padding: 1.5rem; }

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 1rem; padding-top: 0.5rem; }

.form-row-2 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 0.5rem; }

.form-group label { font-size: 0.875rem; font-weight: 500; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--color-foreground);
  transition: border-color 0.2s;
}

.form-group input::placeholder, .form-group textarea::placeholder { color: var(--color-muted-fg); }

.form-group textarea { resize: none; }

/* Contact Success */
.contact-success[hidden] { display: none !important; }

.contact-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 0;
  gap: 1rem;
}

.contact-success-icon {
  width: 3.5rem; height: 3.5rem;
  background-color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.contact-success h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-transform: uppercase;
}

.contact-success p { color: var(--color-muted-fg); font-size: 0.875rem; max-width: 24rem; }

/* Custom modal */
.custom-modal-desc { color: var(--color-muted-fg); font-size: 1rem; margin-bottom: 1rem; line-height: 1.7; }

.custom-modal-list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }

.custom-modal-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.9375rem; }

.custom-modal-list svg { color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }

.custom-modal-actions { display: flex; flex-direction: column; gap: 0.75rem; padding-top: 0.5rem; }

@media (min-width: 480px) { .custom-modal-actions { flex-direction: row; } }

/* =========================================================================
   SITE FOOTER
   ========================================================================= */
.site-footer {
  border-top: 1px solid var(--color-border);
  background-color: var(--color-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; } }

.footer-logo { height: 6rem !important; }

.footer-tagline {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  max-width: 20rem;
  line-height: 1.7;
}

.footer-col-title { font-size: 0.875rem; font-weight: 500; margin-bottom: 1rem; }

.theme-footer-nav-list, .footer-contact-list { display: flex; flex-direction: column; gap: 0.75rem; list-style: none; }

.theme-footer-nav-list a {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  transition: color 0.2s;
}
.theme-footer-nav-list a:hover { color: var(--color-foreground); opacity: 1; }

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted-fg);
}

.footer-contact-list svg { flex-shrink: 0; margin-top: 2px; }

.footer-contact-list a { transition: color 0.2s; }
.footer-contact-list a:hover { color: var(--color-foreground); opacity: 1; }

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--color-border);
}

@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }

.footer-copy, .footer-currency, .footer-credit { font-size: 0.75rem; color: var(--color-muted-fg); }

.footer-bottom-right { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
@media (min-width: 640px) { .footer-bottom-right { flex-direction: row; gap: 1rem; } }

.footer-credit a { text-decoration: underline; transition: color 0.2s; }
.footer-credit a:hover { color: var(--color-foreground); opacity: 1; }

/* =========================================================================
   SINGLE PRODUCT PAGE
   ========================================================================= */
.single-product-main { padding-top: var(--header-height); }

.product-breadcrumb { padding: 1.5rem 0; }

.back-to-shop {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  transition: color 0.2s;
}
.back-to-shop:hover { color: var(--color-foreground); opacity: 1; }

.theme-product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 5rem;
  min-width: 0;
}

@media (min-width: 1024px) {
  .theme-product-layout { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.theme-product-gallery, .theme-product-info { min-width: 0; max-width: 100%; }

.theme-product-main-image-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--color-secondary);
  margin-bottom: 1rem;
}

.theme-product-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.3s;
}

.theme-product-thumbnails {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  max-width: 100%;
}

.theme-product-thumb-btn {
  width: 5rem;
  height: 6.25rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s;
  flex-shrink: 0;
}

.theme-product-thumb-btn.is-active { border-color: var(--color-foreground); }
.theme-product-thumb-btn:hover { border-color: var(--color-muted-fg); }
.theme-product-thumb-btn img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 1024px) { .theme-product-info { padding-top: 2.5rem; } }

.product-cats { margin-bottom: 0.5rem; }
.product-cats a { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-fg); }

.product-title { font-size: clamp(1.25rem, 3vw, 1.875rem); font-weight: 400; margin: 0.5rem 0 1rem; }

.product-price { font-size: 1.25rem; margin-bottom: 1.5rem; }
.product-price .price, .product-price del { color: var(--color-muted-fg); }
.product-price ins { text-decoration: none; color: var(--color-foreground); }

.sold-out-status {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--color-muted);
  color: var(--color-muted-fg);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.product-description {
  color: var(--color-muted-fg);
  line-height: 1.8;
  margin-bottom: 2rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.product-description p { margin-bottom: 1rem; }

/* ---- Variation table ---- */
.single-product .variations.shop_attributes tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td {
  display: block;
  width: 100%;
}

.single-product .variations tbody td.label { padding-bottom: 0.25rem; }
.single-product .variations tbody td.value { padding-top: 0; }

.variation-row-color .label--sr-only,
.variation-row-size .label--sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.variation-row-color td.value,
.variation-row-size td.value {
  display: block;
  padding-bottom: 0;
}

.single-product .variations tbody tr.variation-row-color,
.single-product .variations tbody tr.variation-row-color td,
.single-product .variations .variation-color {
  background: transparent !important;
  background-color: transparent !important;
}

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

.theme-attr-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }

.theme-attr-btn {
  min-width: 3rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-background);
  color: var(--color-foreground);
  cursor: pointer;
  transition: all 0.2s;
}

.theme-attr-btn:hover { border-color: var(--color-foreground); }
.theme-attr-btn.is-selected { border-color: var(--color-foreground); background-color: var(--color-foreground); color: var(--color-background); }

/* Color swatches */
.variation-color { margin-bottom: 1.5rem; }

.variation-color-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.variation-color-swatches { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.color-swatch {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
  padding: 0;
  flex-shrink: 0;
}

.color-swatch:hover { transform: scale(1.05); }

.color-swatch.is-selected {
  border-color: var(--color-foreground);
  transform: scale(1.1);
}

/* Size pills */
.variation-size { margin-bottom: 1.5rem; }

.variation-size-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.variation-size-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.size-pill {
  min-width: 3rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-background);
  color: var(--color-foreground);
  cursor: pointer;
  transition: all 0.2s;
}

.size-pill:hover { border-color: var(--color-foreground); }

.size-pill.is-selected {
  border-color: var(--color-foreground);
  background-color: var(--color-foreground);
  color: var(--color-background);
}

/* Mobile section horizontal padding (match footer container-wide) */
@media (max-width: 767px) {
  .about-section.container-wide,
  .faq-section.container-wide,
  .shop-section.container-wide {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Quantity + Add to cart */
.theme-product-form,
.theme-add-to-cart-area {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 2rem;
}

.theme-quantity-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}

.theme-qty-minus, .theme-qty-plus {
  padding: 0.75rem;
  font-size: 1rem;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-foreground);
  transition: background-color 0.2s;
  min-width: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-qty-minus:hover, .theme-qty-plus:hover { background-color: var(--color-secondary); }

.theme-qty-input {
  width: 3rem;
  text-align: center;
  border: none;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  border-radius: 0;
  padding: 0.75rem 0;
  font-size: 0.9375rem;
  -moz-appearance: textfield;
  appearance: textfield;
  background: none;
}

.theme-qty-input::-webkit-inner-spin-button,
.theme-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.product-shipping-note {
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  text-align: center;
  margin-bottom: 1rem;
}

.product-details-section { border-top: 1px solid var(--color-border); padding-top: 2rem; margin-top: 1rem; }
.product-details-title { font-size: 0.875rem; font-weight: 500; margin-bottom: 1rem; }
.product-details-content { color: var(--color-muted-fg); font-size: 0.875rem; line-height: 1.8; }
.product-details-content ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.product-details-content li { display: flex; align-items: flex-start; gap: 0.75rem; }
.product-details-content li::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background-color: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.4rem;
}

/* Related products */
.related-products { border-top: 1px solid var(--color-border); padding-top: 5rem; padding-bottom: 5rem; }

.related-title { font-family: var(--font-display); font-size: clamp(1.25rem, 3vw, 1.5rem); margin-bottom: 2.5rem; }

/* =========================================================================
   WOOCOMMERCE ADD TO CART BUTTON OVERRIDES (Sections 11.4.1 & 11.4.2)
   ========================================================================= */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
  background-color: var(--color-primary) !important;
  color: var(--color-primary-fg) !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;
  flex: 1 1 auto;
  min-width: 160px;
}

.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
  opacity: 0.85 !important;
  background-color: var(--color-primary) !important;
  color: var(--color-primary-fg) !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;
}

/* Card compact add-to-cart — scoped override */
.theme-product-card .theme-card-atc.add_to_cart_button {
  min-height: unset !important;
  padding: var(--btn-icon-padding) !important;
  border-radius: 50% !important;
  width: 2rem !important;
  height: 2rem !important;
  background-color: rgba(247,244,239,0.9) !important;
  color: var(--color-foreground) !important;
  border: none !important;
  flex: none !important;
  min-width: unset !important;
}

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

/* =========================================================================
   WOOCOMMERCE NOTICES
   ========================================================================= */
.woocommerce-message, .woocommerce-error, .woocommerce-info {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.woocommerce-message { background-color: rgba(33,123,135,0.1); border-left: 4px solid var(--color-primary); color: var(--color-foreground); }
.woocommerce-error { background-color: rgba(220,38,38,0.1); border-left: 4px solid var(--color-destructive); color: var(--color-foreground); }
.woocommerce-info { background-color: rgba(127,208,217,0.15); border-left: 4px solid var(--color-accent); color: var(--color-foreground); }

/* Suppress duplicate notices on single product (drawer provides feedback) */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }

/* =========================================================================
   CART DRAWER
   ========================================================================= */
#theme-cart-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15,35,37,0.2);
  z-index: 60;
  display: none;
}

body.cart-open #theme-cart-overlay { display: block; }

#theme-cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(100vw, 28rem);
  height: 100%;
  background-color: var(--color-background);
  z-index: 70;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-elevated);
  transform: translateX(100%);
  transition: transform 0.35s var(--transition-smooth);
}

body.cart-open #theme-cart-drawer { transform: translateX(0); }

#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.cart-drawer-header-left { display: flex; align-items: center; gap: 0.75rem; }

.cart-drawer-title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 400; }

.cart-drawer-close {
  padding: 0.25rem;
  color: var(--color-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.cart-drawer-close:hover { opacity: 0.6; }

.cart-drawer-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
}

.cart-drawer-empty svg { color: var(--color-muted-fg); }
.cart-drawer-empty p { color: var(--color-muted-fg); }

.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-image-link {
  display: block;
  width: 5rem; height: 6rem;
  background-color: var(--color-secondary);
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-image { width: 100%; height: 100%; object-fit: cover; }

.cart-item-details { flex: 1; min-width: 0; }

.cart-item-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
  transition: opacity 0.2s;
}
.cart-item-name:hover { opacity: 0.7; opacity: 1; }

.cart-item-price { font-size: 0.875rem; color: var(--color-muted-fg); }
.cart-item-price .price, .cart-item-price .amount { color: var(--color-muted-fg); }

.cart-item-variation { font-size: 0.75rem; color: var(--color-muted-fg); margin-top: 0.25rem; }

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.cart-qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-foreground);
  transition: background-color 0.2s;
}
.cart-qty-btn:hover { background-color: var(--color-secondary); }

.cart-item-qty { font-size: 0.875rem; width: 1.5rem; text-align: center; }

.cart-remove-btn {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.cart-remove-btn:hover { color: var(--color-foreground); }

.cart-drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-subtotal-row { display: flex; justify-content: space-between; font-size: 0.875rem; }
.cart-subtotal-label { color: var(--color-muted-fg); }
.cart-subtotal-value { font-weight: 500; }

.cart-shipping-note { font-size: 0.75rem; color: var(--color-muted-fg); }

.cart-checkout-btn { width: 100%; }

/* =========================================================================
   CHECKOUT PAGE
   ========================================================================= */
body.woocommerce-checkout .site-main {
  padding-top: var(--header-height);
  padding-bottom: 4rem;
}

body.woocommerce-checkout .entry-content { max-width: 100%; }

body.woocommerce-checkout .page-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  text-transform: uppercase;
  margin-bottom: 2rem;
}

/* Two-column layout */
@media (min-width: 768px) {
  body.woocommerce-checkout .wc-block-checkout {
    display: block;
  }
  body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
  }
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
  min-width: 0;
  width: 100%;
  max-width: none;
}

body.woocommerce-checkout .wc-block-checkout__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 {
  width: 100% !important;
  max-width: none !important;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-foreground);
  background-color: var(--color-background);
  font-family: var(--font-body);
  font-size: 0.9375rem;
}

body.woocommerce-checkout .wc-block-components-text-input input {
  padding: revert;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  background-color: var(--color-primary) !important;
  color: var(--color-primary-fg) !important;
  border-radius: var(--btn-radius) !important;
  font-family: var(--font-body) !important;
  font-size: var(--btn-font-size) !important;
}

/* =========================================================================
   THANK YOU PAGE
   ========================================================================= */
body.theme-thankyou-page { overflow-x: hidden; }

body.theme-thankyou-page .woocommerce-order { margin-top: 2rem; }

body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-transform: uppercase;
  padding: 0 0 1rem 0;
  margin-top: 2rem;
}

body.theme-thankyou-page .woocommerce-order-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: var(--color-secondary);
  border-radius: var(--radius);
}

body.theme-thankyou-page .woocommerce-order-overview li {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
}

body.theme-thankyou-page .woocommerce-order-details table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

body.theme-thankyou-page .woocommerce-order-details table th,
body.theme-thankyou-page .woocommerce-order-details table td {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }

body.theme-thankyou-page .woocommerce-customer-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

body.theme-thankyou-page .woocommerce-customer-details address {
  max-width: 480px;
  overflow-wrap: break-word;
  font-style: normal;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-muted-fg);
}

/* =========================================================================
   WOOCOMMERCE ARCHIVE
   ========================================================================= */
.woocommerce-archive { padding-top: var(--header-height); }
.woocommerce-archive .shop-section { padding-top: 3rem; }
.woocommerce-archive .section-title { margin-bottom: 2.5rem; text-align: left; }

.shop-empty { text-align: center; padding: 5rem 0; color: var(--color-muted-fg); }

/* =========================================================================
   404 PAGE
   ========================================================================= */
.not-found-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(80vh - var(--header-height));
  padding: 4rem 1.5rem;
}

.not-found-title {
  font-family: var(--font-display);
  font-size: clamp(6rem, 15vw, 12rem);
  letter-spacing: -0.05em;
  color: var(--color-muted);
  line-height: 1;
  margin-bottom: 1rem;
}

.not-found-desc { color: var(--color-muted-fg); font-size: 1.125rem; margin-bottom: 2rem; }

/* =========================================================================
   PAGE (generic)
   ========================================================================= */
.page-main { padding-top: calc(var(--header-height) + 2rem); padding-bottom: 4rem; }

.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 3rem);
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.entry-content { max-width: 52rem; }
.entry-content p { margin-bottom: 1rem; line-height: 1.8; color: var(--color-muted-fg); }
.entry-content h2 { margin: 2rem 0 1rem; }
.entry-content a { color: var(--color-primary); text-decoration: underline; }

/* =========================================================================
   SINGLE PRODUCT: RESPONSIVE LAYOUT
   ========================================================================= */
.single-product .theme-product-layout { min-width: 0; }

.single-product .theme-product-gallery,
.single-product .theme-product-info { min-width: 0; max-width: 100%; }

.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 .posted_in { overflow-wrap: break-word; word-break: break-word; }

/* =========================================================================
   WOOCOMMERCE: LOADING BUTTON STATE
   ========================================================================= */
.ajax_add_to_cart.theme-btn-loading {
  opacity: 0.6 !important;
  pointer-events: none !important;
  cursor: wait !important;
}

/* =========================================================================
   DARK MODE — readability fixes
   ========================================================================= */
html.dark .theme-modal-overlay {
  background: rgba(0, 0, 0, 0.55);
}

html.dark .theme-modal,
html.dark .theme-modal-title,
html.dark .form-group label {
  color: var(--color-foreground);
}

html.dark .site-logo-text {
  color: var(--color-foreground);
}

html.dark .theme-product-card__name,
html.dark .theme-product-card__price,
html.dark .section-title,
html.dark .about-title,
html.dark .faq-title {
  color: var(--color-foreground);
}

html.dark .filter-pill:not(.is-active),
html.dark .faq-pill:not(.is-active) {
  background-color: var(--color-card);
  color: hsl(186, 25%, 94%);
  border-color: var(--color-border);
}

html.dark .faq-pill.is-active {
  color: var(--color-primary-fg);
}

html.dark .faq-pill:not(.is-active):hover {
  background-color: hsl(190, 20%, 17%);
  color: hsl(186, 25%, 94%);
}

html.dark .faq-item {
  background-color: var(--color-card);
}

html.dark .shop-search-input,
html.dark .faq-search-input,
html.dark .form-group input,
html.dark .form-group textarea,
html.dark .form-group select {
  background-color: var(--color-card);
  color: var(--color-foreground);
  border-color: var(--color-border);
}

html.dark #theme-cart-drawer,
html.dark .cart-drawer-title,
html.dark .cart-item-name {
  color: var(--color-foreground);
}
