/* ================================================================
   Rose From Pain — theme.css
   Google Fonts are enqueued via functions.php
================================================================ */

/* ---- CSS Variables / Design Tokens ---- */
:root {
  --background:    #0f0d14;
  --foreground:    #f2f2f2;
  --card:          #17141f;
  --card-fg:       #f2f2f2;
  --primary:       #7c3aed;
  --primary-fg:    #ffffff;
  --secondary:     #201d2b;
  --muted:         #2e2a3b;
  --muted-fg:      #8c8596;
  --accent:        #6d28d9;
  --border:        #252130;
  --input-bg:      #17141f;
  --radius:        0.5rem;
  --font-display:  'Space Grotesk', sans-serif;
  --font-body:     'Inter', sans-serif;
  --shadow-soft:   0 4px 20px -4px hsl(263 70% 58% / 0.1);
  --shadow-elev:   0 8px 40px -8px hsl(263 70% 58% / 0.2);
  --glow:          0 0 60px -12px hsl(263 70% 58% / 0.3);
  --transition:    cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 80px;
  --logo-height:   40px;

  /* button system */
  --btn-radius:         0;
  --btn-height:         52px;
  --btn-padding:        0 2rem;
  --btn-font-size:      0.875rem;
  --btn-font-weight:    600;
  --btn-letter-spacing: 0.02em;
  --btn-text-transform: none;
}

/* ---- Reset / Base ---- */
*, *::before, *::after { box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100vw; }
#page { overflow-x: hidden; }

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button { cursor: pointer; background: none; border: none; padding: 0; font: inherit; color: inherit; }

/* ---- Layout helpers ---- */
.container-wide {
  width: 100%;
  max-width: 1280px;
  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; }
}

.text-center { text-align: center; }

/* ---- Animations ---- */
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInScale { from { opacity: 0; transform: scale(0.9) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }

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

.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}
.fade-in-up.is-visible { opacity: 1; transform: translateY(0); }

/* ---- Glow utilities ---- */
.glow-box { box-shadow: var(--glow); }
.glow-text { text-shadow: 0 0 40px hsl(263 70% 58% / 0.5); }

/* ================================================================
   ANNOUNCEMENT BAR
================================================================ */
.announcement-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  background: var(--primary);
  color: var(--primary-fg);
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.announcement-bar__inner {
  position: relative;
  width: 100%;
  max-width: 1280px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.announcement-bar__text {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  text-align: center;
}
.announcement-bar__text .announcement-cta-link,
.announcement-bar__text button {
  text-decoration: underline;
  text-underline-offset: 2px;
  color: inherit;
  font: inherit;
  display: inline;
  cursor: pointer;
}
.announcement-bar__text .announcement-cta-link:hover,
.announcement-bar__text button:hover { opacity: 0.8; }
.announcement-bar__close {
  position: absolute;
  right: 0;
  padding: 0.25rem;
  opacity: 0.8;
}
.announcement-bar__close:hover { opacity: 0.5; }
.announcement-bar__close svg { width: 14px; height: 14px; display: block; }

/* ================================================================
   HEADER
================================================================ */
.site-header {
  position: fixed;
  left: 0; right: 0;
  z-index: 50;
  transition: background 0.3s var(--transition), border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.announcement-visible { top: 36px; }
.site-header:not(.announcement-visible) { top: 0; }
.site-header.is-solid {
  background: rgba(15, 13, 20, 0.95);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.header-top-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
}
@media (min-width: 1024px) {
  .header-top-row { height: 64px; }
}

.header-left  { position: absolute; left: 0; display: flex; align-items: center; }
.header-right { position: absolute; right: 0; display: flex; align-items: center; gap: 0.5rem; }

.site-logo-link { z-index: 10; display: block; }
.site-logo-img  { height: var(--logo-height) !important; width: auto !important; display: block; }
.site-logo-text { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; display: block; line-height: var(--logo-height); }

/* Cart button */
.cart-btn {
  position: relative;
  padding: 0.5rem;
  transition: opacity 0.2s;
}
.cart-btn:hover { opacity: 0.6; }
.cart-btn svg   { width: 20px; height: 20px; display: block; stroke-width: 1.5; }

.theme-cart-count {
  position: absolute;
  top: -2px; right: -2px;
  width: 20px; height: 20px;
  background: var(--primary);
  color: var(--primary-fg);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-cart-count:empty { display: none; }

/* Mobile menu toggle */
.menu-toggle {
  padding: 0.5rem;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
}
.menu-toggle:hover { opacity: 0.6; }
.menu-toggle svg { width: 20px; height: 20px; stroke-width: 1.5; }

@media (min-width: 1024px) { .menu-toggle { display: none; } }

/* Desktop nav */
.header-nav-row {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  height: 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
@media (min-width: 1024px) { .header-nav-row { display: flex; } }

.theme-nav-list   { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2rem; }
.theme-nav-link,
.theme-nav-btn    {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-fg);
  transition: color 0.3s;
  background: none;
  border: none;
  cursor: pointer;
}
.theme-nav-link:hover,
.theme-nav-btn:hover { color: var(--foreground); }

/* Mobile menu */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  background: rgba(15, 13, 20, 0.97);
  backdrop-filter: blur(12px);
}
.mobile-menu.is-open { display: block; }
.mobile-menu-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mobile-nav-btn {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-fg);
  padding: 0.5rem 0;
  text-align: left;
  transition: color 0.3s;
}
.mobile-nav-btn:hover         { color: var(--foreground); }
.mobile-nav-btn.is-highlight  { color: var(--primary); font-weight: 600; }
.mobile-menu-socials          { padding-top: 1rem; border-top: 1px solid var(--border); }

/* ================================================================
   SOCIAL HUB
================================================================ */
.social-hub { display: flex; align-items: center; gap: 1rem; }
.social-hub a {
  color: var(--muted-fg);
  transition: color 0.3s;
  display: flex;
  align-items: center;
}
.social-hub a:hover { color: var(--primary); }
.social-hub.sm a svg { width: 16px; height: 16px; }
.social-hub.md a svg { width: 20px; height: 20px; }
.social-hub.lg a svg { width: 24px; height: 24px; }

/* ================================================================
   HERO
================================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: var(--background);
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.3;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,13,20,0.4) 0%, rgba(15,13,20,0.6) 50%, rgba(15,13,20,1) 100%);
}
.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 0 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) { .hero-content { padding-bottom: 6rem; padding-left: 3rem; padding-right: 3rem; } }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  opacity: 0;
  transform: translateY(40px);
  animation: slideUp 1s 0.5s var(--transition) forwards;
}
.hero-subtitle {
  font-family: var(--font-body);
  color: var(--muted-fg);
  max-width: 32rem;
  margin-bottom: 2.5rem;
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0;
  animation: fadeIn 0.8s 0.8s var(--transition) forwards;
}
.hero-cta-strip {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 40rem;
  border: 1px solid rgba(255,255,255,0.12);
  opacity: 0;
  animation: fadeIn 0.7s 1s var(--transition) forwards;
}
@media (min-width: 640px) { .hero-cta-strip { flex-direction: row; } }

a.hero-cta-btn { text-decoration: none; }
.hero-cta-btn {
  flex: 1;
  padding: 1rem 0;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  transition: background 0.3s, color 0.3s;
}
@media (min-width: 640px) {
  .hero-cta-btn {
    border-bottom: none;
    border-right: 1px solid rgba(255,255,255,0.12);
  }
  .hero-cta-btn:last-child { border-right: none; }
}
.hero-cta-btn:last-child { border-bottom: none; }
.hero-cta-btn:hover { background: var(--primary); color: var(--primary-fg); }
.hero-cta-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ================================================================
   PROMO BANNER
================================================================ */
.promo-banner {
  background: var(--primary);
  color: var(--primary-fg);
}
.promo-banner__inner {
  padding: 1.5rem 1.5rem;
  text-align: center;
  max-width: 1280px;
  margin: 0 auto;
}
@media (min-width: 768px) { .promo-banner__inner { padding: 2rem 2rem; } }

.promo-banner__eyebrow {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.promo-banner__headline {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) { .promo-banner__headline { font-size: 1.5rem; } }
a.promo-banner__btn { text-decoration: none; color: inherit; }
.promo-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border: 1px solid var(--primary-fg);
  padding: 0.5rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
}
.promo-banner__btn:hover {
  background: var(--primary-fg);
  color: var(--primary);
}
.promo-banner__btn svg { width: 14px; height: 14px; }

/* ================================================================
   SECTION COMMON
================================================================ */
.theme-section { padding: 5rem 0; }
.theme-section--alt { background: rgba(23, 20, 31, 0.5); }

.section-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.section-intro {
  font-family: var(--font-body);
  color: var(--muted-fg);
  max-width: 32rem;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

/* ================================================================
   LATEST RELEASE
================================================================ */
.latest-release { padding: 5rem 0; }
@media (min-width: 768px) { .latest-release { padding: 7rem 0; } }

.latest-release__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) { .latest-release__grid { grid-template-columns: 1fr 1fr; } }

.latest-release__cover {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--card);
}
.latest-release__cover img { width: 100%; height: 100%; object-fit: cover; }

.latest-release__copy { display: flex; flex-direction: column; gap: 1.5rem; }
.latest-release__eyebrow {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 500;
}
.latest-release__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
}
.latest-release__body {
  font-family: var(--font-body);
  color: var(--muted-fg);
  line-height: 1.7;
  max-width: 32rem;
}
.latest-release__embed {
  background: var(--card);
  padding: 1rem;
  border: 1px solid var(--border);
}
.latest-release__footnote {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--muted-fg);
}

/* ================================================================
   MUSIC SECTION
================================================================ */
.music-section { padding: 5rem 0; }

.music-embed-wrapper {
  max-width: 48rem;
  margin: 0 auto 4rem;
}
.music-embed-card {
  background: var(--card);
  padding: 1rem;
  border: 1px solid var(--border);
}
.music-subheading {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
}

/* Track cards */
.tracks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto 4rem;
}
@media (min-width: 768px) { .tracks-grid { grid-template-columns: repeat(3, 1fr); } }

.track-card {
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
}
.track-card__image {
  aspect-ratio: 1;
  overflow: hidden;
  margin-bottom: 1rem;
  background: var(--secondary);
}
.track-card__image img { width: 100%; height: 100%; object-fit: cover; }
.track-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.track-card__story {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.6;
}

/* Video grid */
.videos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 56rem;
  margin: 0 auto 4rem;
}
@media (min-width: 768px) { .videos-grid { grid-template-columns: 1fr 1fr; } }
.video-embed-box {
  aspect-ratio: 16/9;
  overflow: hidden;
  border: 1px solid var(--border);
}
.video-embed-box iframe { width: 100%; height: 100%; display: block; }

/* Streaming platforms */
.stream-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
.stream-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color 0.3s;
}
.stream-link:hover { border-color: var(--primary); }
.stream-link img { opacity: 0.8; transition: opacity 0.3s; }
.stream-link:hover img { opacity: 1; }
.stream-link img.invert { filter: invert(1); }

/* ================================================================
   VISUALS SECTION
================================================================ */
.visuals-section { padding: 5rem 0; background: rgba(23, 20, 31, 0.5); }
.visuals-playlist {
  overflow: hidden;
  border: 1px solid var(--border);
  height: 500px;
  margin-bottom: 4rem;
}
.visuals-playlist iframe { width: 100%; height: 100%; display: block; }

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--card);
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--transition);
}
.gallery-item:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox-overlay.is-open { display: flex; }
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
  padding: 0.25rem;
}
.lightbox-close:hover { color: #fff; }
.lightbox-close svg { width: 32px; height: 32px; }
.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  display: block;
}

/* ================================================================
   ABOUT SECTION
================================================================ */
.about-section {}
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; } }

.about-image-col {
  aspect-ratio: 3/4;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .about-image-col {
    aspect-ratio: auto;
    min-height: 80vh;
  }
}
.about-image-col img { width: 100%; height: 100%; object-fit: cover; }

.about-copy-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 2rem;
  gap: 2rem;
}
@media (min-width: 768px) { .about-copy-col { padding: 4rem; } }
@media (min-width: 1024px) { .about-copy-col { padding: 6rem 5rem; } }

.about-name {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.about-bio { display: flex; flex-direction: column; gap: 1rem; }
.about-bio p {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--muted-fg);
  line-height: 1.75;
}
.about-links { padding-top: 1rem; }
.about-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  transition: color 0.3s;
  color: var(--foreground);
}
.about-link:hover { color: var(--primary); }
.about-link__label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.about-link__arrow { color: var(--muted-fg); transition: color 0.3s; flex-shrink: 0; }
.about-link:hover .about-link__arrow { color: var(--primary); }
.about-link__arrow svg { width: 16px; height: 16px; }
.about-links-bottom { border-top: 1px solid var(--border); }

/* ================================================================
   JOIN / MISSION
================================================================ */
.join-section {
  padding: 5rem 0;
  background: rgba(23, 20, 31, 0.5);
}
.join-inner { max-width: 48rem; margin: 0 auto; text-align: center; }
.join-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.join-body {
  font-family: var(--font-body);
  color: var(--muted-fg);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.join-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 28rem;
  margin: 0 auto;
}
@media (min-width: 640px) { .join-form { flex-direction: row; } }
.join-input {
  flex: 1;
  height: 48px;
  padding: 0 1rem;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 0.875rem;
  outline: none;
  transition: box-shadow 0.2s;
}
.join-input::placeholder { color: var(--muted-fg); }
.join-input:focus { box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.5); }
.join-btn {
  height: 48px;
  padding: 0 2rem;
  background: var(--primary);
  color: var(--primary-fg);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.join-btn:hover { opacity: 0.85; }
.join-btn svg { width: 16px; height: 16px; }
.join-success {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--primary);
}

/* ================================================================
   MERCH SECTION
================================================================ */
.merch-section {
  padding: 5rem 0;
  background: rgba(23, 20, 31, 0.5);
}
/* Category filters */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}
.cat-filter-btn {
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted-fg);
  transition: all 0.3s;
}
.cat-filter-btn:hover           { border-color: var(--foreground); color: var(--foreground); }
.cat-filter-btn.is-active       { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }

/* Product grid */
.theme-product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: stretch;
}
@media (min-width: 768px)  { .theme-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .theme-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Product card */
.theme-product-card { display: flex; flex-direction: column; height: 100%; }
.theme-product-card-link { display: flex; flex-direction: column; height: 100%; }

.theme-product-card__image-wrapper {
  position: relative;
  aspect-ratio: 1;
  background: #f0f0f0;
  overflow: hidden;
}
.theme-product-card__image-wrapper img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--transition);
  display: block;
}
.theme-product-card:hover .theme-product-card__image-wrapper img { transform: scale(1.05); }

.sold-out-badge {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  padding: 0.25rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--foreground);
  color: var(--background);
}
.sold-out-img { opacity: 0.6; }

.theme-product-card__info { margin-top: 0.75rem; flex: 1; }
.theme-product-card__name {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  display: block;
}
.theme-product-card__price {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--muted-fg);
  display: block;
}
.theme-product-card__sizes {
  display: flex;
  gap: 0.375rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.theme-product-card__size {
  font-family: var(--font-body);
  font-size: 0.625rem;
  letter-spacing: 0.05em;
  color: var(--muted-fg);
}

/* ================================================================
   BLOG SECTION
================================================================ */
.blog-section { padding: 5rem 0; }
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px)  { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

.blog-post { cursor: pointer; }
.blog-post__image {
  aspect-ratio: 16/9;
  background: var(--card);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}
.blog-post__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: opacity 0.5s, transform 0.7s var(--transition);
}
.blog-post:hover .blog-post__image img { opacity: 0.7; transform: scale(1.05); }

.blog-post__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.blog-post__tag {
  font-family: var(--font-body);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--primary);
}
.blog-post__date,
.blog-post__read-time {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--muted-fg);
}
.blog-post__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}
.blog-post:hover .blog-post__title { color: var(--primary); }
.blog-post__excerpt {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.6;
}

/* ================================================================
   SUPPORT SECTION
================================================================ */
.support-section { padding: 5rem 0; background: rgba(23, 20, 31, 0.5); }
.support-tiers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto 5rem;
}
@media (min-width: 768px) { .support-tiers { grid-template-columns: repeat(3, 1fr); } }

.support-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
}
.support-card.is-featured { border-color: var(--primary); }

.support-card__badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--primary-fg);
  font-family: var(--font-body);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.25rem 1rem;
  white-space: nowrap;
}
.support-card__icon {
  width: 40px; height: 40px;
  color: var(--primary);
  margin: 0 auto 1rem;
}
.support-card__icon svg { width: 40px; height: 40px; }

.support-card__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.support-card__price {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.support-card__perks {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}
.support-card__perk {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--muted-fg);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.support-card__perk-check { color: var(--primary); margin-top: 2px; flex-shrink: 0; }

a.support-btn { text-decoration: none; box-sizing: border-box; line-height: 48px; }
.support-btn {
  display: block;
  width: 100%;
  height: 48px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  transition: opacity 0.2s, background 0.2s, color 0.2s;
}
.support-btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
  border: 1px solid var(--primary);
}
.support-btn-primary:hover { opacity: 0.85; }
.support-btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}
.support-btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.support-onetime {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}
.support-onetime__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.support-onetime__body {
  font-family: var(--font-body);
  color: var(--muted-fg);
  margin-bottom: 2rem;
}
a.support-tip-btn { text-decoration: none; }
.support-tip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 48px;
  padding: 0 1.75rem;
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  transition: border-color 0.3s, color 0.3s;
}
.support-tip-btn:hover { border-color: var(--primary); color: var(--primary); }
.support-tip-btn svg { width: 16px; height: 16px; }

/* ================================================================
   CONTACT SECTION
================================================================ */
.contact-section { padding: 5rem 0; }
.contact-inner { max-width: 40rem; margin: 0 auto; }
.contact-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--muted-fg);
}
.contact-email-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
}
.contact-email-link:hover { color: var(--foreground); }
.contact-email-link svg { width: 16px; height: 16px; }

/* Contact form */
.contact-form {
  background: var(--card);
  padding: 2rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-row-2 { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }
.form-field label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--background);
  border: 1px solid var(--border);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 0.875rem;
  outline: none;
  transition: box-shadow 0.2s;
  appearance: none;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--muted-fg); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus { box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.5); }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238c8596'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  padding-right: 2.5rem;
  color: var(--foreground);
}
.form-select option { background: var(--card); color: var(--foreground); }
.form-textarea { resize: none; }
.form-submit-row { text-align: center; padding-top: 0.5rem; }
.form-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 52px;
  padding: 0 2rem;
  background: var(--primary);
  color: var(--primary-fg);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.form-submit-btn:hover { opacity: 0.85; }
.form-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.form-submit-btn svg { width: 16px; height: 16px; }

/* Contact success */
.contact-success {
  text-align: center;
  padding: 4rem 0;
}
.contact-success__icon {
  width: 56px; height: 56px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.contact-success__icon svg { width: 28px; height: 28px; color: var(--primary-fg); }
.contact-success__title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.contact-success__body  { font-family: var(--font-body); font-size: 0.875rem; color: var(--muted-fg); }

/* ================================================================
   FOOTER
================================================================ */
.site-footer { border-top: 1px solid var(--border); }
.footer-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 640px)  { .footer-main { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-main { grid-template-columns: repeat(4, 1fr); padding: 4rem 2rem; } }

.footer-col__heading {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.footer-nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav-list a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--muted-fg);
  transition: color 0.3s;
}
.footer-nav-list a:hover { color: var(--foreground); }

/* Footer email form */
.footer-email-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--foreground);
  padding-bottom: 0.25rem;
  margin-bottom: 1.5rem;
}
.footer-email-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--foreground);
}
.footer-email-input::placeholder { color: var(--muted-fg); }
.footer-email-submit { display: flex; align-items: center; }
.footer-email-submit svg { width: 16px; height: 16px; }
.footer-sub-success { font-family: var(--font-body); font-size: 0.875rem; color: var(--muted-fg); }

.footer-bottom {
  border-top: 1px solid var(--border);
}
.footer-bottom__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}
@media (min-width: 640px) {
  .footer-bottom__inner {
    flex-direction: row;
    justify-content: space-between;
  }
}
.footer-bottom__copy,
.footer-bottom__credit {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--muted-fg);
}
.footer-bottom__credit:hover { color: var(--foreground); }

/* ================================================================
   EMAIL POPUP
================================================================ */
.popup-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15,13,20,0.6);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.popup-backdrop.is-open { display: flex; }
.popup-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--glow);
  padding: 2rem;
  width: 100%;
  max-width: 28rem;
  position: relative;
  animation: fadeInScale 0.3s var(--transition) forwards;
}
.popup-close {
  position: absolute;
  top: 1rem; right: 1rem;
  color: var(--muted-fg);
  transition: color 0.2s;
  padding: 0.25rem;
}
.popup-close:hover { color: var(--foreground); }
.popup-close svg { width: 20px; height: 20px; }
.popup-heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}
@media (min-width: 768px) { .popup-heading { font-size: 1.875rem; } }
.popup-body {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--muted-fg);
  text-align: center;
  margin-bottom: 1.5rem;
}
.popup-form { display: flex; flex-direction: column; gap: 0.75rem; }
.popup-input {
  width: 100%;
  height: 48px;
  padding: 0 1rem;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 0.875rem;
  border-radius: 0.5rem;
  outline: none;
}
.popup-input::placeholder { color: var(--muted-fg); }
.popup-input:focus { box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.5); }
.popup-submit-btn {
  width: 100%;
  height: 48px;
  background: var(--primary);
  color: var(--primary-fg);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: opacity 0.2s;
}
.popup-submit-btn:hover { opacity: 0.85; }
.popup-fine-print {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--muted-fg);
  text-align: center;
  margin-top: 1rem;
}
.popup-success { text-align: center; padding: 1rem 0; }
.popup-success__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.popup-success__body { font-family: var(--font-body); font-size: 0.875rem; color: var(--muted-fg); }

/* ================================================================
   CART DRAWER
================================================================ */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(255,255,255,0.08);
  animation: fadeIn 0.3s forwards;
}
body.cart-open .cart-overlay { display: block; }

#theme-cart-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: 100%;
  max-width: 28rem;
  background: var(--background);
  z-index: 151;
  transform: translateX(100%);
  transition: transform 0.3s var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-elev);
}
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(--border);
}
.cart-drawer__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
}
.cart-drawer__close {
  padding: 0.25rem;
  transition: opacity 0.2s;
}
.cart-drawer__close:hover { opacity: 0.6; }
.cart-drawer__close svg { width: 20px; height: 20px; stroke-width: 1.5; }

.cart-drawer__empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}
.cart-drawer__empty svg { width: 48px; height: 48px; color: var(--muted-fg); margin-bottom: 1rem; stroke-width: 1; }
.cart-drawer__empty p { font-family: var(--font-body); color: var(--muted-fg); margin-bottom: 1.5rem; }
a.cart-drawer__empty-btn { text-decoration: none; color: inherit; }
.cart-drawer__empty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 1.5rem;
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.875rem;
  transition: border-color 0.3s;
}
.cart-drawer__empty-btn:hover { border-color: var(--foreground); }

.cart-drawer__items {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.cart-item { display: flex; gap: 1rem; }
.cart-item__thumb {
  width: 80px;
  height: 96px;
  background: var(--secondary);
  overflow: hidden;
  flex-shrink: 0;
  display: block;
}
.cart-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: opacity 0.2s;
  margin-bottom: 0.25rem;
}
.cart-item__name:hover { opacity: 0.7; }
.cart-item__price { font-family: var(--font-body); font-size: 0.875rem; color: var(--muted-fg); }
.cart-item__variation { font-family: var(--font-body); font-size: 0.75rem; color: var(--muted-fg); margin-top: 0.25rem; }
.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.cart-item__qty-btn {
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: background 0.2s;
}
.cart-item__qty-btn:hover { background: var(--secondary); }
.cart-item__qty-btn svg { width: 12px; height: 12px; display: block; }
.cart-item__qty { font-family: var(--font-body); font-size: 0.875rem; min-width: 24px; text-align: center; }
.cart-item__remove {
  margin-left: auto;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--muted-fg);
  transition: color 0.2s;
}
.cart-item__remove:hover { color: var(--foreground); }

.cart-drawer__footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 0.875rem;
}
.cart-subtotal__label { color: var(--muted-fg); }
.cart-subtotal__value { font-weight: 500; }
.cart-shipping { font-family: var(--font-body); font-size: 0.875rem; color: var(--muted-fg); }
.cart-checkout-btn {
  display: block;
  width: 100%;
  height: 52px;
  background: var(--primary);
  color: var(--primary-fg);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  line-height: 52px;
  transition: opacity 0.2s;
}
.cart-checkout-btn:hover { opacity: 0.85; }
.cart-empty-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 40px;
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.875rem;
  transition: border-color 0.3s;
}
.cart-empty-cart-btn:hover { border-color: var(--foreground); }
.cart-empty-cart-btn svg { width: 16px; height: 16px; }

/* ================================================================
   WOOCOMMERCE ADD TO CART BUTTON OVERRIDES (Section 11.4.1)
================================================================ */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
  background-color: var(--primary) !important;
  color: var(--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;
  text-decoration: none !important;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
  opacity: 0.85 !important;
  background-color: var(--primary) !important;
  color: var(--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(--primary) !important;
}

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

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

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

.product-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--muted-fg);
  padding: 1.5rem 0;
  transition: color 0.3s;
}
.product-back-link:hover { color: var(--foreground); }
.product-back-link svg { width: 16px; height: 16px; }

.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 { min-width: 0; max-width: 100%; }
.theme-product-info    { min-width: 0; max-width: 100%; }

.product-main-img-wrap {
  aspect-ratio: 3/4;
  background: var(--secondary);
  overflow: hidden;
  margin-bottom: 1rem;
  border-radius: var(--radius);
}
.product-main-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

.theme-product-thumbnails {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: 100%;
}
.thumb-btn {
  aspect-ratio: 1;
  width: calc(20% - 0.5rem);
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 0.375rem;
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s;
}
.thumb-btn.is-active { border-color: var(--primary); opacity: 1; }
.thumb-btn:hover { opacity: 1; }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }

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

.product-category {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-fg);
  display: block;
}
.product-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0.5rem 0 1rem;
}
.product-price {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.product-price .amount { color: var(--primary); }
.product-stock-status {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  background: var(--foreground);
  color: var(--background);
  margin-bottom: 1rem;
}
.product-description {
  font-family: var(--font-body);
  color: var(--muted-fg);
  line-height: 1.7;
  margin-bottom: 2rem;
  overflow-wrap: break-word;
  word-break: break-word;
}
.woocommerce-product-details__short-description,
.woocommerce-variation-description,
.posted_in { overflow-wrap: break-word; word-break: break-word; }

/* Attribute/variation selector */
.product-attr-group { margin-bottom: 1.5rem; }
.product-attr-label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: block;
}
.attr-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.attr-btn {
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  transition: all 0.2s;
}
.attr-btn.is-selected { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.attr-btn:hover:not(.is-selected) { border-color: rgba(124,58,237,0.5); }

/* Variations table override */
.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; }
.theme-attr-select-hidden { display: none !important; }

/* Add to cart area */
.theme-add-to-cart-area {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.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; }

.theme-quantity-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
}
.theme-qty-minus,
.theme-qty-plus {
  padding: 0.75rem 1rem;
  transition: background 0.2s;
}
.theme-qty-minus:hover,
.theme-qty-plus:hover { background: var(--secondary); }
.theme-qty-input {
  width: 48px;
  text-align: center;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--foreground);
  padding: 0.75rem 0.5rem;
}
/* Hide number input arrows */
.theme-qty-input::-webkit-outer-spin-button,
.theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.theme-qty-input[type=number] { -moz-appearance: textfield; }

.theme-btn-primary {
  flex: 1;
  min-height: var(--btn-height);
  padding: var(--btn-padding);
  background: var(--primary);
  color: var(--primary-fg);
  font-family: var(--font-body);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: opacity 0.2s;
}
.theme-btn-primary:hover { opacity: 0.85; }
.theme-btn-primary.disabled,
.theme-btn-primary:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* Product details section */
.product-details-section { border-top: 1px solid var(--border); padding-top: 2rem; }
.product-details-heading {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.product-details-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.product-details-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--muted-fg);
}
.product-details-dot {
  width: 6px; height: 6px;
  background: var(--primary);
  border-radius: 50%;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

/* Related products */
.related-section { padding: 5rem 0; border-top: 1px solid var(--border); }
.related-section__title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin-bottom: 2.5rem; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (min-width: 1024px) { .related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; } }

/* ================================================================
   SHOP / ARCHIVE PRODUCT
================================================================ */
.archive-main { padding-top: 6rem; }
@media (min-width: 1024px) { .archive-main { padding-top: 7rem; } }
.archive-inner { padding: 3rem 0 5rem; }
.archive-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 2rem;
}

/* ================================================================
   CHECKOUT / PAGE STYLES
================================================================ */
.page-main { padding-top: 6rem; }
@media (min-width: 1024px) { .page-main { padding-top: 7rem; } }

.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 2rem;
}
.entry-content { width: 100%; }

/* Checkout scoped styles (Section 13) */
body.woocommerce-checkout .site-main { padding-top: var(--header-height, 80px); padding-bottom: 4rem; }
body.woocommerce-checkout .entry-content { max-width: 100%; }
body.woocommerce-checkout .wc-block-checkout { display: block; }

@media (min-width: 768px) {
  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-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select { width: 100% !important; max-width: none !important; }

body.woocommerce-checkout .wc-block-checkout__sidebar {
  background-color: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
}

/* Typography on checkout */
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-textarea textarea {
  font-family: var(--font-body) !important;
  font-size: 0.875rem !important;
  color: var(--foreground) !important;
  background-color: var(--background) !important;
  border-color: var(--border) !important;
  border-radius: 0 !important;
}
body.woocommerce-checkout .wc-block-components-text-input input { padding: revert; }
body.woocommerce-checkout .wc-block-components-text-input input::placeholder,
body.woocommerce-checkout .wc-block-components-textarea textarea::placeholder { color: var(--muted-fg) !important; }
body.woocommerce-checkout .wc-block-components-text-input input:focus { box-shadow: 0 0 0 2px rgba(124,58,237,0.5) !important; }

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

/* Thank you page (Section 22.8) */
body.theme-thankyou-page .woocommerce-order { padding: 2rem 0; }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  padding-bottom: 1rem;
}
body.theme-thankyou-page .woocommerce-order-overview {
  list-style: none; margin: 0 0 2rem; padding: 0;
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
}
body.theme-thankyou-page .woocommerce-order-overview li { font-family: var(--font-body); font-size: 0.875rem; }
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; }
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }
body.theme-thankyou-page .woocommerce-customer-details { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
body.theme-thankyou-page .woocommerce-customer-details address { max-width: 480px; overflow-wrap: break-word; font-style: normal; }
body.theme-thankyou-page { overflow-x: hidden; }

/* ================================================================
   WOOCOMMERCE GLOBAL STYLE OVERRIDES (Section 14)
================================================================ */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error {
  font-family: var(--font-body);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  background: var(--card);
  color: var(--foreground);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }

/* 404 */
.page-404 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: var(--muted);
}
.page-404__code { font-family: var(--font-display); font-size: 8rem; font-weight: 700; line-height: 1; margin-bottom: 0.5rem; }
.page-404__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin-bottom: 1rem; }
.page-404__body { font-family: var(--font-body); color: var(--muted-fg); margin-bottom: 2rem; }
.page-404__link {
  display: inline-flex;
  height: 48px;
  padding: 0 2rem;
  background: var(--primary);
  color: var(--primary-fg);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  align-items: center;
  transition: opacity 0.2s;
}
.page-404__link:hover { opacity: 0.85; }

/* ================================================================
   RESPONSIVE UTILITY
================================================================ */
@media (max-width: 1023px) {
  .header-left { display: none; }
  .desktop-only { display: none !important; }
}
@media (min-width: 1024px) {
  .mobile-only { display: none !important; }
}

/* ================================================================
   WORDPRESS ADMIN BAR (logged-in users / Customizer preview)
   Fixed header + announcement must sit below #wpadminbar, not under it.
================================================================ */
body.admin-bar .announcement-bar {
  top: 32px;
}
body.admin-bar .site-header.announcement-visible {
  top: 68px; /* 32px bar + 36px announcement */
}
body.admin-bar .site-header.announcement-gone,
body.admin-bar .site-header:not(.announcement-visible) {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .announcement-bar {
    top: 46px;
  }
  body.admin-bar .site-header.announcement-visible {
    top: 82px; /* 46px + 36px */
  }
  body.admin-bar .site-header.announcement-gone,
  body.admin-bar .site-header:not(.announcement-visible) {
    top: 46px;
  }
}
