/* ============================================================
   GILDED RAVEN FINDS — THEME CSS
   Matches Lovable design exactly
   ============================================================ */

/* ── GOOGLE FONTS (fallback if wp_enqueue_style fails) ───── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Jost:wght@300;400;500;600&display=swap');

/* ── CSS CUSTOM PROPERTIES ──────────────────────────────── */
:root {
  --color-primary:      #281f16;
  --color-accent:       #b68635;
  --color-background:   #f5f1eb;
  --color-foreground:   #231a12;
  --color-secondary:    #e6dfd4;
  --color-muted:        #ddd5c9;
  --color-border:       #d4cbbf;
  --color-surface-soft: #ece4d8;
  --color-card:         #ece4d9;
  --color-muted-fg:     #6b5f56;
  --color-button-text:  #f5f1eb;
  --logo-height:        80px;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', system-ui, sans-serif;

  --shadow-soft:     0 4px 20px -4px hsl(25 40% 10% / 0.08);
  --shadow-elevated: 0 8px 40px -8px hsl(25 40% 10% / 0.14);
  --transition:      cubic-bezier(0.4, 0, 0.2, 1);

  --radius:      0.5rem;
  --header-h:    80px;
  --wp-admin-bar-height: 0px;

  --btn-height:         48px;
  --btn-padding:        0 28px;
  --btn-radius:         9999px;
  --btn-font-size:      0.625rem;
  --btn-font-weight:    700;
  --btn-letter-spacing: 0.3em;
  --btn-text-transform: uppercase;
}

/* ── RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  background-color: var(--color-background);
  color: var(--color-foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }
ul { list-style: none; }
input, textarea, select { font-family: var(--font-body); }

/* WordPress admin bar offset (logged-in users) */
body.admin-bar { --wp-admin-bar-height: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar { --wp-admin-bar-height: 46px; }
}
body.admin-bar #wpadminbar { z-index: 100001; }

/* ── UTILITY CLASSES ────────────────────────────────────── */
.container-wide {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
@media (min-width: 1024px) {
  .container-wide { padding-left: 32px; padding-right: 32px; }
}

.surface-soft { background-color: var(--color-surface-soft); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: color-mix(in srgb, var(--color-primary) 80%, transparent);
}
.eyebrow.accent { color: var(--color-accent); }
.micro-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}
.accent-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--color-accent);
}
.flex-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.italic { font-style: italic; }
.italic-time { font-family: var(--font-display); font-style: italic; }

/* ── BUTTONS ────────────────────────────────────────────── */
.theme-btn-pill,
.theme-btn-pill-light {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--btn-padding);
  min-height: var(--btn-height);
  border-radius: var(--btn-radius);
  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);
  transition: opacity 0.2s var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.theme-btn-pill {
  background-color: var(--color-primary);
  color: var(--color-button-text);
}
.theme-btn-pill:hover { opacity: 0.85; }
.theme-btn-pill-light {
  background-color: var(--color-background);
  color: var(--color-foreground);
}
.theme-btn-pill-light:hover { opacity: 0.85; }

/* ── LOGO ───────────────────────────────────────────────── */
.site-logo-img { width: auto !important; display: block; }
.site-header .site-logo-img {
  height: 64px !important;
}
@media (min-width: 1024px) {
  .site-header .site-logo-img {
    height: var(--logo-height, 80px) !important;
  }
}
.site-footer .footer-logo-link .site-logo-img {
  height: 80px !important;
}
@media (min-width: 1024px) {
  .site-footer .footer-logo-link .site-logo-img {
    height: 112px !important;
  }
}
.site-logo-text { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }

/* ── HEADER ─────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: var(--wp-admin-bar-height); left: 0; right: 0;
  z-index: 40;
  transition: background-color 0.3s var(--transition), border-color 0.3s var(--transition);
  background-color: transparent;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid,
.site-header.is-scrolled {
  background-color: color-mix(in srgb, var(--color-background) 95%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--color-border);
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
@media (min-width: 1024px) { .site-nav { height: 80px; } }

.site-logo-link { display: flex; align-items: center; flex-shrink: 0; }
.site-logo-link .site-logo-img { filter: none; transition: filter 0.3s; }
.site-header:not(.is-solid):not(.is-scrolled) .site-logo-link .site-logo-img { filter: brightness(0) invert(1); }
.site-header:not(.is-solid):not(.is-scrolled) .site-logo-link .site-logo-text { color: #fff; }

.site-nav-links { display: none; }
@media (min-width: 1024px) { .site-nav-links { display: flex; align-items: center; margin-left: auto; margin-right: 32px; } }

/* Nav menu from WP */
.site-nav-links .theme-nav-list,
.site-nav-links ul { display: flex; gap: 32px; list-style: none; padding: 0; margin: 0; }
.site-nav-links .theme-nav-list a,
.site-nav-links ul li a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--color-foreground) 80%, transparent);
  transition: color 0.3s;
  text-decoration: none;
}
.site-nav-links .theme-nav-list a:hover,
.site-nav-links ul li a:hover { color: var(--color-foreground); }
.site-header:not(.is-solid):not(.is-scrolled) .site-nav-links a {
  color: rgba(255,255,255,0.9);
}
.site-header:not(.is-solid):not(.is-scrolled) .site-nav-links a:hover { color: #fff; }

.site-nav-actions { display: flex; align-items: center; gap: 4px; }

.site-cart-btn {
  position: relative;
  padding: 8px;
  color: var(--color-foreground);
  transition: opacity 0.2s;
}
.site-cart-btn:hover { opacity: 0.7; }
.site-header:not(.is-solid):not(.is-scrolled) .site-cart-btn { color: #fff; }

.theme-cart-count {
  position: absolute;
  top: -2px; right: -2px;
  background-color: var(--color-accent);
  color: var(--color-foreground);
  font-size: 10px;
  font-weight: 500;
  border-radius: 9999px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.theme-cart-count:empty { display: none; }

.site-mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: var(--color-foreground);
  transition: opacity 0.2s;
}
.site-mobile-menu-btn:hover { opacity: 0.6; }
.site-header:not(.is-solid):not(.is-scrolled) .site-mobile-menu-btn { color: #fff; }
@media (min-width: 1024px) { .site-mobile-menu-btn { display: none; } }

.site-mobile-menu {
  display: none;
  padding: 16px 0;
  border-top: 1px solid var(--color-border);
}
.site-mobile-menu.is-open { display: block; }
.site-mobile-menu .theme-nav-list,
.site-mobile-menu ul { display: flex; flex-direction: column; gap: 0; list-style: none; padding: 0; margin: 0; }
.site-mobile-menu .theme-nav-list li a,
.site-mobile-menu ul li a {
  display: block;
  padding: 10px 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-foreground);
  transition: color 0.2s;
}
.site-mobile-menu .theme-nav-list li a:hover,
.site-mobile-menu ul li a:hover { color: var(--color-muted-fg); }

/* ── HERO ───────────────────────────────────────────────── */
.theme-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.theme-hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.theme-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}
.theme-hero-slide.is-active { opacity: 1; }
.theme-hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  transition: transform 6s ease-out;
}
.theme-hero-slide.is-active .theme-hero-slide-img { transform: scale(1); }
.theme-hero-slide-placeholder { background-color: var(--color-foreground); }
.theme-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.70) 0%, rgba(0,0,0,0.30) 50%, rgba(0,0,0,0.20) 100%);
}
.theme-hero-content {
  position: relative;
  z-index: 10;
  padding-bottom: 40px;
  width: 100%;
}
@media (min-width: 1024px) { .theme-hero-content { padding-bottom: 56px; } }
.theme-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
@media (min-width: 1024px) {
  .theme-hero-inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}
.theme-hero-left { max-width: 768px; }
.theme-hero-logo { height: 92px; width: auto; margin-bottom: 20px; filter: brightness(0) invert(1); }
@media (min-width: 640px)  { .theme-hero-logo { height: 110px; } }
@media (min-width: 1024px) { .theme-hero-logo { height: 140px; } }
.theme-hero-eyebrow { display: block; color: rgba(255,255,255,0.8); margin-bottom: 20px; }
.theme-hero-heading {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(48px, 8vw, 144px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: #fff;
}
.theme-hero-right { max-width: 288px; }
@media (min-width: 1024px) { .theme-hero-right { text-align: right; } }
.theme-hero-body {
  font-size: 0.875rem;
  line-height: 1.625;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
}
.theme-hero-btn { margin-top: 0; }

/* ── ABOUT ──────────────────────────────────────────────── */
.theme-about {
  padding: 80px 0;
}
@media (min-width: 1024px) { .theme-about { padding: 128px 0; } }

.theme-about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 1024px) {
  .theme-about-layout {
    grid-template-columns: 5fr 7fr;
    gap: 96px;
    align-items: start;
  }
}
.theme-about-image-col { order: 1; }
.theme-about-image-wrap { position: relative; }
.theme-about-image-bg {
  position: absolute;
  top: -20px; left: -20px;
  width: 100%; height: 100%;
  border-radius: 2px;
  background-color: color-mix(in srgb, var(--color-accent) 20%, transparent);
  z-index: 0;
}
.theme-about-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  box-shadow: var(--shadow-elevated);
  border-radius: 2px;
  z-index: 1;
}
.theme-about-circle {
  position: absolute;
  bottom: -40px; right: -40px;
  width: 128px; height: 128px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--color-accent) 40%, transparent);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: color-mix(in srgb, var(--color-background) 40%, transparent);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 2;
}
@media (min-width: 1024px) { .theme-about-circle { display: flex; } }
.theme-about-circle-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--color-accent) 60%, transparent);
  opacity: 0.6;
  animation: spin 18s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.theme-about-text-col { order: 2; }
@media (min-width: 1024px) { .theme-about-text-col { padding-top: 24px; } }
.theme-about-eyebrow { color: var(--color-accent); }
.theme-about-heading {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 128px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: var(--color-foreground);
}
.theme-about-copy { margin-top: 40px; max-width: 480px; }
.theme-about-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.35;
  color: color-mix(in srgb, var(--color-foreground) 80%, transparent);
  margin-bottom: 24px;
}
.theme-about-body-1,
.theme-about-body-2 {
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--color-muted-fg);
  margin-bottom: 16px;
}
.theme-about-body-2 { margin-bottom: 0; }

/* Feature cards */
.theme-about-feats {
  margin-top: 80px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) { .theme-about-feats { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .theme-about-feats { grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 112px; }
}

.theme-about-feat-card {
  position: relative;
  height: 100%;
  padding: 28px;
  border-radius: 16px;
  background-color: color-mix(in srgb, var(--color-card) 60%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent);
  transition: all 0.5s var(--transition);
  overflow: hidden;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
@media (min-width: 1024px) { .theme-about-feat-card { padding: 32px; } }
.theme-about-feat-card::before {
  content: '';
  position: absolute;
  inset-x: 0; top: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, color-mix(in srgb, var(--color-accent) 60%, transparent), transparent);
  opacity: 0;
  transition: opacity 0.7s;
}
.theme-about-feat-card:hover::before { opacity: 1; }
.theme-about-feat-card:hover {
  border-color: color-mix(in srgb, var(--color-accent) 40%, transparent);
  background-color: var(--color-card);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px color-mix(in srgb, var(--color-accent) 25%, transparent);
}

.theme-feat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.theme-feat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background-color: color-mix(in srgb, var(--color-accent) 10%, transparent);
  color: var(--color-accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-accent) 20%, transparent);
  transition: all 0.5s var(--transition);
}
.theme-about-feat-card:hover .theme-feat-icon {
  background-color: var(--color-accent);
  color: var(--color-foreground);
  box-shadow: 0 0 0 1px var(--color-accent);
}
.theme-feat-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 30px;
  color: color-mix(in srgb, var(--color-foreground) 15%, transparent);
  transition: color 0.5s;
}
.theme-about-feat-card:hover .theme-feat-num {
  color: color-mix(in srgb, var(--color-accent) 40%, transparent);
}
.theme-feat-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.5vw, 20px);
  color: var(--color-foreground);
  line-height: 1.3;
  margin-bottom: 12px;
}
.theme-feat-desc {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  line-height: 1.625;
}

/* ── SHOP ───────────────────────────────────────────────── */
.theme-shop { padding: 96px 0 128px; background-color: var(--color-background); }
.theme-shop-header { max-width: 768px; margin: 0 auto; text-align: center; margin-bottom: 64px; }
@media (min-width: 1024px) { .theme-shop-header { margin-bottom: 80px; } }
.theme-shop-heading {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 112px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--color-foreground);
  margin-top: 16px;
}
.theme-shop-body {
  margin-top: 28px;
  font-size: clamp(16px, 1.2vw, 18px);
  color: var(--color-muted-fg);
  line-height: 1.625;
  font-weight: 300;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Filter bar */
.theme-shop-filters {
  position: relative;
  z-index: 30;
  max-width: 1152px;
  margin: 0 auto 56px;
  overflow: visible;
}
.theme-filter-bar {
  position: relative;
  z-index: 30;
  border-top: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: visible;
}
@media (min-width: 768px) { .theme-filter-bar { flex-direction: row; } }

.theme-filter-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; align-items: center; }
.theme-cat-btn {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: color-mix(in srgb, var(--color-foreground) 60%, transparent);
  transition: color 0.2s;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
}
.theme-cat-btn::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 100%; height: 1px;
  background-color: var(--color-accent);
  display: none;
}
.theme-cat-btn.is-active {
  color: var(--color-accent);
  font-weight: 700;
}
.theme-cat-btn.is-active::after { display: block; }
.theme-cat-btn:hover:not(.is-active) { color: var(--color-foreground); }

.theme-filter-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  overflow: visible;
}
@media (min-width: 640px) { .theme-filter-right { flex-direction: row; gap: 32px; width: auto; } }

.theme-price-filter {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-width: 0;
}
@media (min-width: 640px) { .theme-price-filter { width: 224px; flex-shrink: 0; } }
.theme-filter-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: color-mix(in srgb, var(--color-foreground) 40%, transparent);
  white-space: nowrap;
  flex-shrink: 0;
}
.theme-price-display {
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--color-foreground);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* Price range slider — single track, dual thumbs (matches Lovable Radix Slider) */
.price-range-wrapper {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 20px;
  display: flex;
  align-items: center;
}
.price-range-track {
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  border-radius: 9999px;
  background: var(--color-secondary);
  pointer-events: none;
}
.range-track-fill {
  position: absolute;
  height: 6px;
  background: var(--color-primary);
  border-radius: 9999px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}
.price-range-input {
  position: absolute;
  left: 0;
  width: 100%;
  height: 20px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  outline: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  z-index: 2;
}
.price-range-input--max { z-index: 3; }
.price-range-input::-webkit-slider-runnable-track {
  height: 6px;
  background: transparent;
  border: none;
}
.price-range-input::-moz-range-track {
  height: 6px;
  background: transparent;
  border: none;
}
.price-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-background);
  border: 1px solid color-mix(in srgb, var(--color-primary) 50%, transparent);
  box-shadow: var(--shadow-soft);
  cursor: grab;
  pointer-events: auto;
  margin-top: -5px;
}
.price-range-input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-background);
  border: 1px solid color-mix(in srgb, var(--color-primary) 50%, transparent);
  box-shadow: var(--shadow-soft);
  cursor: grab;
  pointer-events: auto;
}
.price-range-input:active::-webkit-slider-thumb { cursor: grabbing; }
.price-range-input:active::-moz-range-thumb { cursor: grabbing; }

.theme-filter-sort-row {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 40;
  overflow: visible;
}

/* Custom sort dropdown (matches Lovable Radix Select) */
.theme-sort-dropdown {
  position: relative;
  z-index: 40;
}
.theme-sort-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
  min-height: auto;
  background: transparent;
  border: none;
  box-shadow: none;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-foreground);
  cursor: pointer;
  line-height: 1;
}
.theme-sort-trigger:hover { opacity: 0.8; }
.theme-sort-trigger:focus { outline: none; }
.theme-sort-trigger-label { white-space: nowrap; }
.theme-sort-chevron {
  display: inline-flex;
  align-items: center;
  opacity: 0.5;
  transition: transform 0.2s var(--transition);
}
.theme-sort-dropdown.is-open .theme-sort-chevron { transform: rotate(180deg); }
.theme-sort-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 200;
  min-width: 10rem;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-elevated);
}
.theme-sort-menu[hidden] { display: none; }
.theme-sort-option {
  position: relative;
  padding: 6px 8px 6px 32px;
  font-size: 0.875rem;
  color: var(--color-foreground);
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.theme-sort-option:hover,
.theme-sort-option:focus {
  background-color: var(--color-accent);
  color: var(--color-button-text);
  outline: none;
}
.theme-sort-option.is-selected::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 5px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}
.theme-clear-filters-btn {
  padding-left: 24px;
  border-left: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: color-mix(in srgb, var(--color-foreground) 40%, transparent);
  transition: color 0.2s;
  background: none;
  border-top: none;
  border-right: none;
  border-bottom: none;
  cursor: pointer;
  white-space: nowrap;
}
.theme-clear-filters-btn:hover { color: var(--color-foreground); }

.theme-shop-count { margin-top: 16px; text-align: center; }
.theme-shop-count-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  color: color-mix(in srgb, var(--color-foreground) 50%, transparent);
}

/* Product grid */
.theme-product-grid {
  position: relative;
  z-index: 1;
  max-width: 1152px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px 48px;
  align-items: stretch;
}
@media (min-width: 768px) { .theme-product-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .theme-product-grid { grid-template-columns: repeat(3, 1fr); gap: 80px 48px; } }

.theme-product-card-wrap { display: flex; flex-direction: column; height: 100%; }
.theme-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
/* Image wrapper (Section 31.3 / 15.1) */
.theme-product-card__image-wrapper {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background-color: var(--color-secondary);
  margin-bottom: 32px;
}
.theme-product-card__image-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
}
.theme-product-card__image-wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1200ms ease-out;
}
.theme-product-card:hover .theme-product-card__image-wrapper img { transform: scale(1.05); }
/* hit-area pointer suppression for elements below overlay */
.theme-product-card * { pointer-events: none; }
.theme-product-card__image-link,
.theme-card-title-link { pointer-events: auto; }

.theme-card-cat-badge {
  position: absolute;
  top: 0;
  right: 0;
  padding: 16px;
  z-index: 2;
  pointer-events: none;
}
.theme-card-cat-badge span {
  display: inline-block;
  padding: 4px 10px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  background-color: color-mix(in srgb, var(--color-background) 85%, transparent);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border: 1px solid color-mix(in srgb, var(--color-foreground) 5%, transparent);
  color: var(--color-foreground);
}

.theme-product-card__actions a,
.theme-product-card__actions button { pointer-events: auto; }

.theme-sold-out-badge {
  position: absolute;
  bottom: 12px; left: 12px;
  padding: 4px 10px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background-color: var(--color-foreground);
  color: var(--color-background);
  z-index: 2;
}

.theme-product-card__info { flex: 1; }
.theme-card-name-price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  min-height: 3.5rem;
  margin-bottom: 12px;
}
.theme-card-title-link { display: block; }
.theme-product-card__name {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 400;
  color: var(--color-foreground);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s;
}
.theme-product-card:hover .theme-product-card__name { color: var(--color-accent); }
.theme-product-card__price {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--color-accent);
  white-space: nowrap;
  flex-shrink: 0;
}
.theme-product-card__price .woocommerce-Price-currencySymbol { font-style: normal; }

.theme-card-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.theme-card-cat-label,
.theme-card-unique-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-weight: 700;
}
.theme-card-cat-label { color: color-mix(in srgb, var(--color-foreground) 40%, transparent); }
.theme-card-unique-label { color: var(--color-accent); }
.theme-card-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background-color: color-mix(in srgb, var(--color-accent) 40%, transparent);
}

.theme-card-description {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  line-height: 1.625;
  font-weight: 300;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.75rem;
}

.theme-product-card__actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.theme-card-explore-btn {
  display: block;
  flex: 1;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent);
  color: var(--color-foreground);
  transition: all 0.3s var(--transition);
  text-decoration: none;
}
.theme-card-explore-btn:hover,
.theme-product-card:hover .theme-card-explore-btn {
  border-color: var(--color-accent);
  background-color: var(--color-accent);
  color: var(--color-button-text);
}
.theme-card-add-btn {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  padding: 12px 20px;
  border: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent);
  color: var(--color-foreground);
  transition: all 0.3s var(--transition);
  text-decoration: none;
}
.theme-card-add-btn:hover {
  border-color: var(--color-foreground);
  background-color: var(--color-foreground);
  color: var(--color-background);
}

/* Add-to-cart button overrides (Section 11.4.1) */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
  background-color: var(--color-primary) !important;
  color: var(--color-button-text) !important;
  border: none !important;
  border-radius: var(--btn-radius) !important;
  min-height: var(--btn-height) !important;
  padding: var(--btn-padding) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--font-body) !important;
  font-size: var(--btn-font-size) !important;
  font-weight: var(--btn-font-weight) !important;
  letter-spacing: var(--btn-letter-spacing) !important;
  text-transform: var(--btn-text-transform) !important;
  cursor: pointer !important;
  transition: opacity 0.2s ease !important;
  text-decoration: none !important;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
  opacity: 0.85 !important;
  background-color: var(--color-primary) !important;
  color: var(--color-button-text) !important;
}
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
  cursor: not-allowed !important;
  opacity: 0.4 !important;
  pointer-events: none !important;
}

/* Card add button override (compact +) */
.theme-product-card .theme-card-add-btn.add_to_cart_button {
  min-height: unset !important;
  padding: 12px 20px !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  color: var(--color-foreground) !important;
  border: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent) !important;
  font-size: 10px !important;
  letter-spacing: 0.3em !important;
}
.theme-product-card .theme-card-add-btn.add_to_cart_button:hover {
  background-color: var(--color-foreground) !important;
  color: var(--color-background) !important;
  border-color: var(--color-foreground) !important;
  opacity: 1 !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; }

/* Shop empty + loading */
.theme-shop-empty-state { text-align: center; padding: 80px 0; }
.theme-shop-no-products { color: var(--color-muted-fg); }
.theme-reset-btn {
  margin-left: 8px;
  color: var(--color-foreground);
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
}

/* Loading animation for add-to-cart (Section 31.8) */
.ajax_add_to_cart.theme-btn-loading {
  opacity: 0.6 !important;
  pointer-events: none !important;
  cursor: wait !important;
}

/* ── PHILOSOPHY ─────────────────────────────────────────── */
.theme-philosophy {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}
@media (min-width: 1024px) { .theme-philosophy { padding: 112px 0; } }
.theme-philosophy-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
}
.theme-philosophy-overlay {
  position: absolute;
  inset: 0;
  background-color: color-mix(in srgb, var(--color-foreground) 70%, transparent);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.theme-philosophy-inner { position: relative; z-index: 10; }
.theme-philosophy-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 64px;
}
@media (min-width: 768px) {
  .theme-philosophy-header { flex-direction: row; align-items: flex-start; gap: 48px; margin-bottom: 80px; }
}
.theme-philosophy-intro { max-width: 448px; }
.theme-philosophy-eyebrow { color: var(--color-accent); }
.theme-philosophy-heading {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: #fff;
  margin-top: 20px;
}
.theme-philosophy-body {
  max-width: 384px;
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.625;
  color: rgba(255,255,255,0.75);
  align-self: flex-end;
}

.theme-philosophy-cols {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  background-color: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 8px 40px -12px rgba(0,0,0,0.5);
}
@media (min-width: 768px) { .theme-philosophy-cols { grid-template-columns: repeat(3, 1fr); } }

.theme-philosophy-col {
  padding: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  transition: background-color 0.5s;
}
@media (min-width: 768px) { .theme-philosophy-col { border-bottom: none; padding: 48px; } }
.theme-philosophy-col.has-border-right { border-right: 1px solid rgba(255,255,255,0.15); }
.theme-philosophy-col:hover { background-color: rgba(255,255,255,0.08); }

.theme-philosophy-col-num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 48px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 40px;
  transition: color 0.5s;
}
@media (min-width: 1024px) { .theme-philosophy-col-num { margin-bottom: 48px; } }
.theme-philosophy-col:hover .theme-philosophy-col-num {
  color: color-mix(in srgb, var(--color-accent) 80%, transparent);
}
.theme-philosophy-col h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  color: #fff;
  margin-bottom: 12px;
}
.theme-philosophy-col p {
  font-size: 0.875rem;
  line-height: 1.625;
  color: rgba(255,255,255,0.8);
}

/* Marquee */
.theme-marquee-wrap { margin-top: 80px; overflow: hidden; padding-top: 40px; }
.theme-marquee { display: flex; white-space: nowrap; animation: marquee 30s linear infinite; }
.theme-marquee-item {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: rgba(255,255,255,0.4);
  margin: 0 32px;
}
.theme-marquee-dot { margin: 0 16px; }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── FAQ ────────────────────────────────────────────────── */
.theme-faq { padding: 80px 0 112px; background-color: var(--color-secondary); }
.theme-faq-inner { max-width: 768px; }
.theme-faq-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 48px);
  color: var(--color-foreground);
  text-align: center;
  margin-bottom: 48px;
}

.theme-accordion { width: 100%; }
.theme-accordion-item {
  border-bottom: 1px solid var(--color-border);
}
.theme-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-foreground);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}
.theme-accordion-trigger:hover { color: var(--color-accent); }
.theme-accordion-icon-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background-color: color-mix(in srgb, var(--color-accent) 15%, transparent);
  color: var(--color-accent);
}
.theme-accordion-question { flex: 1; }
.theme-accordion-chevron {
  flex-shrink: 0;
  color: var(--color-muted-fg);
  transition: transform 0.3s var(--transition);
}
.theme-accordion-item.is-open .theme-accordion-chevron { transform: rotate(180deg); }

.theme-accordion-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s var(--transition);
}
.theme-accordion-item.is-open .theme-accordion-content { max-height: 500px; }
.theme-accordion-body {
  padding: 0 0 20px 48px;
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  line-height: 1.625;
}

/* ── CTA BANNER ─────────────────────────────────────────── */
.theme-cta {
  position: relative;
  padding: 96px 0 128px;
  color: #fff;
  overflow: hidden;
}
.theme-cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.theme-cta-overlay {
  position: absolute;
  inset: 0;
  background-color: color-mix(in srgb, var(--color-foreground) 65%, transparent);
}
.theme-cta-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.theme-cta-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1.2;
  color: #fff;
}
.theme-cta-body {
  margin-top: 16px;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.625;
  color: rgba(255,255,255,0.85);
}
.theme-cta-btn { margin-top: 40px; }

/* ── CONTACT ────────────────────────────────────────────── */
.theme-contact {
  position: relative;
  padding: 96px 0 128px;
  overflow: hidden;
  background-color: var(--color-foreground);
  color: var(--color-background);
}
.theme-contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: stretch;
}
@media (min-width: 1024px) {
  .theme-contact-layout { grid-template-columns: 5fr 7fr; gap: 80px; }
}
.theme-contact-info-col { display: flex; flex-direction: column; }
.theme-contact-eyebrow { color: var(--color-accent); }
.theme-contact-heading {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: var(--color-background);
}
.theme-contact-body {
  margin-top: 24px;
  font-size: 1rem;
  line-height: 1.625;
  color: color-mix(in srgb, var(--color-background) 65%, transparent);
  max-width: 384px;
}
.theme-contact-details { margin-top: 48px; }
.theme-contact-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
}
.theme-contact-detail-row.has-border {
  border-bottom: 1px solid color-mix(in srgb, var(--color-background) 10%, transparent);
}
.theme-contact-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background-color: color-mix(in srgb, var(--color-accent) 15%, transparent);
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.theme-contact-detail-label {
  display: block;
  font-size: 11px;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: color-mix(in srgb, var(--color-background) 40%, transparent);
  margin-bottom: 2px;
}
.theme-contact-detail-value {
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--color-background) 80%, transparent);
  transition: color 0.3s;
}
a.theme-contact-detail-value:hover { color: var(--color-accent); }

.theme-contact-hours { margin-top: auto; padding-top: 40px; }
.theme-hours-card {
  position: relative;
  border: 1px solid color-mix(in srgb, var(--color-background) 10%, transparent);
  background-color: color-mix(in srgb, var(--color-background) 3%, transparent);
  padding: 24px;
  border-radius: 2px;
  overflow: hidden;
}
@media (min-width: 640px) { .theme-hours-card { padding: 28px; } }
.theme-hours-card::before {
  content: '';
  position: absolute;
  inset-x: 0; top: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, color-mix(in srgb, var(--color-accent) 40%, transparent), transparent);
}
.theme-hours-label {
  display: block;
  font-size: 10px;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 12px;
}
.theme-hours-rows { display: flex; flex-direction: column; gap: 6px; }
.theme-hours-row { display: flex; justify-content: space-between; gap: 16px; }
.theme-hours-day { font-size: 0.875rem; color: color-mix(in srgb, var(--color-background) 55%, transparent); }
.theme-hours-time { font-size: 0.875rem; color: color-mix(in srgb, var(--color-background) 75%, transparent); }
.theme-hours-note {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--color-background) 10%, transparent);
  font-size: 12px;
  color: color-mix(in srgb, var(--color-background) 50%, transparent);
  line-height: 1.625;
  font-weight: 300;
  font-style: italic;
}

/* Contact form */
.theme-contact-form-wrap {
  position: relative;
  height: 100%;
  border: 1px solid color-mix(in srgb, var(--color-background) 10%, transparent);
  background-color: color-mix(in srgb, var(--color-background) 3%, transparent);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  padding: 32px;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
}
@media (min-width: 640px) { .theme-contact-form-wrap { padding: 40px; } }
@media (min-width: 1024px) { .theme-contact-form-wrap { padding: 48px; } }
.theme-form-top-line {
  position: absolute;
  inset-x: 0; top: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, color-mix(in srgb, var(--color-accent) 40%, transparent), transparent);
}
.theme-contact-form { display: flex; flex-direction: column; gap: 28px; }
.theme-form-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) { .theme-form-row-2 { grid-template-columns: 1fr 1fr; } }
.theme-form-field { display: flex; flex-direction: column; }
.theme-form-label {
  display: block;
  font-size: 11px;
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: color-mix(in srgb, var(--color-background) 50%, transparent);
  margin-bottom: 8px;
}
.theme-form-input,
.theme-form-textarea {
  width: 100%;
  background-color: color-mix(in srgb, var(--color-background) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-background) 15%, transparent);
  color: var(--color-background);
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.theme-form-input::placeholder,
.theme-form-textarea::placeholder { color: color-mix(in srgb, var(--color-background) 30%, transparent); }
.theme-form-input:focus,
.theme-form-textarea:focus {
  border-color: color-mix(in srgb, var(--color-accent) 50%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-accent) 20%, transparent);
}
.theme-form-textarea { resize: none; min-height: 120px; }
.theme-form-submit { padding-top: 8px; }
.theme-form-message {
  font-size: 0.875rem;
  padding-top: 8px;
}
.theme-form-message.is-success { color: #6bdb6b; }
.theme-form-message.is-error   { color: #ef4444; }

.theme-contact-map { margin-top: 32px; border-radius: 2px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--color-background) 10%, transparent); flex: 1; min-height: 200px; }
.theme-map-iframe {
  width: 100%; height: 100%;
  min-height: 200px;
  border: 0;
  filter: grayscale(0.4) contrast(1.05);
  display: block;
}

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--color-border);
  background-color: var(--color-secondary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 48px 0;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 48px; padding: 64px 0; } }

.footer-logo-text {
  font-size: 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-foreground);
}
.footer-tagline {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  max-width: 384px;
  line-height: 1.625;
}
.footer-social-link {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  color: var(--color-muted-fg);
  transition: color 0.2s, border-color 0.2s;
}
.footer-social-link:hover { color: var(--color-accent); border-color: var(--color-accent); }

.footer-col-title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-foreground);
  margin-bottom: 16px;
}

/* Footer nav */
.footer-nav-list,
.theme-footer-nav-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-nav-list li a,
.theme-footer-nav-list li a {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  transition: color 0.2s;
  text-decoration: none;
}
.footer-nav-list li a:hover,
.theme-footer-nav-list li a:hover { color: var(--color-foreground); }

/* Footer contact */
.footer-contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--color-muted-fg);
}
.footer-contact-list li a {
  color: inherit;
  transition: color 0.2s;
  word-break: break-all;
}
.footer-contact-list li a:hover { color: var(--color-foreground); }
.footer-contact-list li svg { flex-shrink: 0; }

.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }
.footer-copyright,
.footer-credit { font-size: 12px; color: var(--color-muted-fg); }
.footer-credit a { text-decoration: underline; transition: color 0.2s; }
.footer-credit a:hover { color: var(--color-foreground); }

/* ── CART DRAWER ────────────────────────────────────────── */
#theme-cart-drawer {
  position: fixed;
  top: var(--wp-admin-bar-height); right: 0;
  width: 100%;
  max-width: 448px;
  height: calc(100% - var(--wp-admin-bar-height));
  background-color: var(--color-background);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s var(--transition);
  box-shadow: -8px 0 40px rgba(0,0,0,0.12);
  overflow: hidden;
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }

.theme-cart-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.theme-cart-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-foreground);
  margin: 0;
}
.theme-cart-close-btn {
  padding: 8px;
  color: var(--color-muted-fg);
  transition: color 0.2s;
}
.theme-cart-close-btn:hover { color: var(--color-foreground); }

.theme-cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 16px;
}
.theme-cart-empty-icon { color: var(--color-muted-fg); }
.theme-cart-empty-msg { color: var(--color-muted-fg); }

.theme-cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 0;
}
.theme-cart-item { display: flex; gap: 16px; }
.theme-cart-item-thumb-link { flex-shrink: 0; display: block; }
.theme-cart-item-thumb,
.theme-cart-item-thumb-link img {
  width: 80px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.theme-cart-item-body { flex: 1; min-width: 0; }
.theme-cart-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.theme-cart-item-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--color-foreground);
  transition: color 0.2s;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.theme-cart-item-name:hover { color: var(--color-accent); }
.theme-cart-item-remove {
  color: var(--color-muted-fg);
  transition: color 0.2s;
  flex-shrink: 0;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}
.theme-cart-item-remove:hover { color: var(--color-foreground); }
.theme-cart-item-variation { font-size: 12px; color: var(--color-muted-fg); margin-top: 2px; }
.theme-cart-item-size {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--color-muted-fg);
  line-height: 1.4;
}
.theme-cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.theme-cart-qty-ctrl {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 9999px;
}
.theme-cart-qty-btn {
  padding: 6px;
  transition: color 0.2s;
  color: var(--color-foreground);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.theme-cart-qty-btn:hover { color: var(--color-accent); }
.theme-cart-qty-val {
  padding: 0 12px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.theme-cart-item-price {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  color: var(--color-foreground);
}
.theme-cart-item-price .woocommerce-Price-currencySymbol { font-style: normal; }

.theme-cart-footer {
  border-top: 1px solid var(--color-border);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}
.theme-cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.875rem;
}
.theme-cart-subtotal-label { color: var(--color-muted-fg); }
.theme-cart-subtotal-val {
  font-weight: 600;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  color: var(--color-foreground);
}
.theme-cart-subtotal-val .woocommerce-Price-currencySymbol { font-style: normal; }
.theme-cart-shipping-note {
  margin: 0;
  font-size: 12px;
  color: var(--color-muted-fg);
  line-height: 1.4;
}
.theme-cart-checkout-btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}
.theme-cart-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.theme-cart-continue-btn,
.theme-cart-empty-btn {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-muted-fg);
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.theme-cart-continue-btn:hover { color: var(--color-foreground); }
.theme-cart-empty-btn:hover { color: #dc2626; }

#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }

/* Cart overlay */
#theme-cart-overlay {
  position: fixed;
  top: var(--wp-admin-bar-height);
  left: 0; right: 0; bottom: 0;
  background-color: rgba(0,0,0,0.5);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--transition);
}
body.cart-open #theme-cart-overlay { opacity: 1; pointer-events: auto; }

/* ── INNER PAGES ────────────────────────────────────────── */
.theme-inner-page-main {
  padding-top: calc(var(--header-h) + 48px + var(--wp-admin-bar-height));
  padding-bottom: 80px;
  min-height: 80vh;
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 48px);
  color: var(--color-foreground);
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}
.entry-content { max-width: 800px; line-height: 1.7; color: var(--color-foreground); }

/* 404 */
.theme-404-page { display: flex; align-items: center; justify-content: center; min-height: 60vh; }
.theme-404-content { text-align: center; }
.theme-404-number {
  font-family: var(--font-display);
  font-size: clamp(80px, 15vw, 160px);
  color: var(--color-muted);
  line-height: 1;
}
.theme-404-message { font-size: 1.25rem; color: var(--color-muted-fg); margin-bottom: 32px; }

/* ── WOOCOMMERCE PAGES ──────────────────────────────────── */

/* Single product (matches Lovable Product.tsx) */
.single-product .theme-product-page {
  padding-top: calc(96px + var(--wp-admin-bar-height));
  padding-bottom: 80px;
}
@media (min-width: 1024px) {
  .single-product .theme-product-page {
    padding-top: calc(128px + var(--wp-admin-bar-height));
  }
}

.single-product .theme-product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 1024px) {
  .single-product .theme-product-layout {
    grid-template-columns: 7fr 5fr;
    gap: 64px;
    align-items: start;
  }
}
.single-product .theme-product-gallery,
.single-product .theme-product-info { min-width: 0; max-width: 100%; }

.theme-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-muted-fg);
  margin-bottom: 32px;
  transition: color 0.2s;
  text-decoration: none;
}
.theme-back-link:hover { color: var(--color-foreground); }
.theme-back-link svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Product image grid */
.theme-product-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .theme-product-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
.theme-product-gallery-item {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  border-radius: 16px;
  overflow: hidden;
  background-color: var(--color-secondary);
}
.theme-product-gallery-item.is-featured { aspect-ratio: 4 / 5; min-height: 0; }
@media (min-width: 640px) {
  .theme-product-gallery-item.is-featured { grid-column: span 2; }
}
.theme-product-gallery-item:not(.is-featured) { aspect-ratio: 1 / 1; }
.theme-product-gallery-img {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Product info */
@media (min-width: 1024px) {
  .single-product .theme-product-info {
    position: sticky;
    top: calc(112px + var(--wp-admin-bar-height));
    align-self: start;
  }
}
.theme-product-cats { display: block; margin-bottom: 0; }
.theme-product-title {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 600;
  line-height: 1.05;
  color: var(--color-foreground);
}
.theme-product-tagline {
  margin-top: 16px;
  font-style: italic;
  color: var(--color-muted-fg);
  line-height: 1.5;
}
.theme-product-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 24px 0;
}
.theme-product-description {
  margin: 0;
  color: color-mix(in srgb, var(--color-foreground) 90%, transparent);
  line-height: 1.625;
}

.theme-product-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
}
.theme-product-size-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-muted-fg);
}
.theme-product-price {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 600;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.theme-product-price .woocommerce-Price-currencySymbol { font-style: normal; }

/* Quantity & Add to cart */
.theme-add-to-cart-area {
  margin-top: 24px;
}
.theme-quantity-wrapper .theme-qty-minus,
.theme-quantity-wrapper .theme-qty-plus,
.theme-quantity-wrapper .theme-qty-input {
  pointer-events: auto;
}
.single-product .theme-add-to-cart-area .variations_form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.single-product .single_variation_wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.single-product form.theme-product-cart {
  width: 100%;
}
.single-product .theme-product-atc-btn,
.single-product .single_add_to_cart_button.theme-btn-pill {
  width: 100%;
  justify-content: center;
  text-align: center;
}
.single-product .single_add_to_cart_button.theme-btn-pill {
  display: inline-flex !important;
  min-width: 0 !important;
}

.theme-quantity-wrapper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 9999px;
}
.theme-qty-minus,
.theme-qty-plus {
  padding: 8px;
  color: var(--color-foreground);
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
}
.theme-qty-minus:hover,
.theme-qty-plus:hover { color: var(--color-accent); }
.theme-qty-input {
  width: 40px;
  text-align: center;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-foreground);
  -moz-appearance: textfield;
}
.theme-qty-input::-webkit-outer-spin-button,
.theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.theme-qty-input:focus { outline: none; }

/* Product accordions */
.theme-product-accordion { margin-top: 32px; border-top: 1px solid var(--color-border); }
.theme-product-acc-item { border-bottom: 1px solid var(--color-border); }
.theme-product-acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-foreground);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}
.theme-product-acc-trigger:hover { text-decoration: underline; }
.theme-product-acc-chevron { color: var(--color-muted-fg); transition: transform 0.3s var(--transition); }
.theme-product-acc-item.is-open .theme-product-acc-chevron { transform: rotate(180deg); }
.theme-product-acc-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s var(--transition);
}
.theme-product-acc-item.is-open .theme-product-acc-content { max-height: 800px; }
.theme-product-acc-body { padding-bottom: 16px; font-size: 0.875rem; color: var(--color-muted-fg); line-height: 1.625; }
.theme-product-acc-body ul { list-style: disc; padding-left: 20px; }
.theme-product-acc-body li { margin-bottom: 4px; }

.theme-product-disclaimer {
  margin-top: 32px;
  font-size: 12px;
  font-style: italic;
  color: var(--color-muted-fg);
  line-height: 1.625;
}

/* Stock status */
.theme-stock-status { font-size: 0.875rem; font-weight: 500; margin-top: 8px; }
.theme-stock-status.in-stock { color: #16a34a; }
.theme-stock-status.sold-out { color: #dc2626; }

/* Variations 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: 4px; }
.single-product .variations tbody td.value { padding-top: 0; }
.theme-attr-select-hidden { display: none !important; }

/* Variation button active */
.theme-attr-btn {
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  background: none;
  color: var(--color-foreground);
}
.theme-attr-btn.is-selected,
.theme-attr-btn:hover { border-color: var(--color-accent); background-color: var(--color-accent); color: var(--color-foreground); }

/* Related products */
.theme-related-products { margin-top: 96px; }
.theme-related-eyebrow { display: inline-block; font-family: var(--font-body); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.22em; color: var(--color-muted-fg); }
.theme-related-heading {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 600;
  color: var(--color-foreground);
}
.theme-related-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px 24px;
  align-items: stretch;
}
@media (min-width: 640px) { .theme-related-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .theme-related-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 24px; } }

/* Shop archive */
.woocommerce-page .theme-archive-main {
  padding-top: calc(var(--header-h) + 48px + var(--wp-admin-bar-height));
  padding-bottom: 80px;
}
.theme-archive-heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 64px);
  color: var(--color-foreground);
  margin-bottom: 48px;
}
.theme-archive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px 24px;
  align-items: stretch;
}
@media (min-width: 768px) { .theme-archive-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .theme-archive-grid { grid-template-columns: repeat(3, 1fr); } }

/* WooCommerce notices (Section 14.1) */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 0.875rem;
}
.woocommerce-message { background-color: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.woocommerce-info { background-color: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.woocommerce-error { background-color: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

/* WooCommerce block pages — cart, checkout, my account, order received (Section 13.x) */
body.theme-woo-blocks-page #page-content,
body.theme-woo-blocks-page .site-main,
body.theme-woo-blocks-page article,
body.theme-woo-blocks-page .container-wide,
body.theme-woo-blocks-page .entry-content {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

body.theme-woo-blocks-page .entry-content {
  line-height: 1.7;
  color: var(--color-foreground);
}

/* Page title aligned with 1280px block content */
body.theme-woo-blocks-page .container-wide > .page-title {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 32px;
  box-sizing: border-box;
}

/* Root WooCommerce block containers */
body.theme-woo-blocks-page .entry-content .wp-block-woocommerce-checkout,
body.theme-woo-blocks-page .entry-content .wc-block-checkout,
body.theme-woo-blocks-page .entry-content .wp-block-woocommerce-cart,
body.theme-woo-blocks-page .entry-content .wc-block-cart,
body.theme-woo-blocks-page .entry-content .wp-block-woocommerce-customer-account,
body.theme-woo-blocks-page .entry-content .woocommerce,
body.theme-woo-blocks-page .theme-thankyou-wrap,
.entry-content .wp-block-woocommerce-checkout,
.entry-content .wc-block-checkout,
.entry-content .wp-block-woocommerce-cart,
.entry-content .wc-block-cart {
  display: block;
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

body.theme-woo-blocks-page .entry-content .alignwide.wp-block-woocommerce-checkout,
body.theme-woo-blocks-page .entry-content .alignwide.wc-block-checkout,
body.theme-woo-blocks-page .entry-content .alignwide.wp-block-woocommerce-cart,
body.theme-woo-blocks-page .entry-content .alignwide.wc-block-cart {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

/* Order confirmation blocks (post-checkout summary) */
body.theme-woo-blocks-page .entry-content [class*="wp-block-woocommerce-order-confirmation"],
body.theme-thankyou-page .theme-thankyou-wrap,
body.theme-thankyou-page .woocommerce-order {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Notices — same width / alignment as main block content */
body.theme-woo-blocks-page .wc-block-components-notices,
.entry-content .wc-block-checkout .wc-block-components-notices,
.entry-content .wc-block-cart .wc-block-components-notices,
.entry-content .wp-block-woocommerce-checkout .wc-block-components-notices,
.entry-content .wp-block-woocommerce-cart .wc-block-components-notices {
  max-width: 1280px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Two-column layout — cart & checkout sidebar-layout wrappers */
@media (min-width: 768px) {
  body.theme-woo-blocks-page .wc-block-components-sidebar-layout,
  body.theme-woo-blocks-page .wc-block-checkout-sidebar-layout,
  body.theme-woo-blocks-page .wc-block-cart-sidebar-layout,
  .entry-content .wc-block-checkout .wc-block-components-sidebar-layout,
  .entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout,
  .entry-content .wp-block-woocommerce-checkout .wc-block-components-sidebar-layout,
  .entry-content .wc-block-cart .wc-block-components-sidebar-layout,
  .entry-content .wp-block-woocommerce-cart .wc-block-components-sidebar-layout {
    display: grid !important;
    grid-template-columns: 1fr minmax(360px, 400px);
    gap: 1.5rem;
    align-items: start;
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    flex-wrap: nowrap !important;
  }

  body.theme-woo-blocks-page .wc-block-components-sidebar-layout > .wc-block-components-notices,
  body.theme-woo-blocks-page .wc-block-components-sidebar-layout > :first-child,
  .entry-content .wc-block-checkout .wc-block-components-sidebar-layout > .wc-block-components-notices,
  .entry-content .wc-block-checkout .wc-block-components-sidebar-layout > :first-child,
  .entry-content .wc-block-cart .wc-block-components-sidebar-layout > .wc-block-components-notices,
  .entry-content .wc-block-cart .wc-block-components-sidebar-layout > :first-child {
    grid-column: 1 / -1;
    order: 1;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  body.theme-woo-blocks-page .wc-block-components-sidebar-layout .wc-block-components-main,
  body.theme-woo-blocks-page .wc-block-checkout__main,
  body.theme-woo-blocks-page .wc-block-cart__main,
  .entry-content .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-components-main,
  .entry-content .wc-block-cart .wc-block-components-sidebar-layout .wc-block-components-main {
    order: 2;
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0;
    box-sizing: border-box;
  }

  body.theme-woo-blocks-page .wc-block-components-sidebar-layout .wc-block-components-sidebar,
  body.theme-woo-blocks-page .wc-block-checkout__sidebar,
  body.theme-woo-blocks-page .wc-block-cart__sidebar,
  .entry-content .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar,
  .entry-content .wc-block-cart .wc-block-components-sidebar-layout .wc-block-components-sidebar {
    order: 3;
    width: 100% !important;
    min-width: 360px;
    max-width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0;
    box-sizing: border-box;
  }

  body.theme-woo-blocks-page .wp-block-woocommerce-checkout-order-summary-block,
  body.theme-woo-blocks-page .wp-block-woocommerce-cart-order-summary-block,
  .entry-content .wp-block-woocommerce-checkout-order-summary-block,
  .entry-content .wp-block-woocommerce-cart-order-summary-block {
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 767px) {
  body.theme-woo-blocks-page .wc-block-components-sidebar-layout,
  body.theme-woo-blocks-page .wc-block-checkout-sidebar-layout,
  body.theme-woo-blocks-page .wc-block-cart-sidebar-layout,
  .entry-content .wc-block-checkout .wc-block-components-sidebar-layout,
  .entry-content .wc-block-cart .wc-block-components-sidebar-layout {
    display: flex !important;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  body.theme-woo-blocks-page .wc-block-components-sidebar-layout .wc-block-components-main,
  body.theme-woo-blocks-page .wc-block-components-sidebar-layout .wc-block-components-sidebar,
  .entry-content .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-components-main,
  .entry-content .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar,
  .entry-content .wc-block-cart .wc-block-components-sidebar-layout .wc-block-components-main,
  .entry-content .wc-block-cart .wc-block-components-sidebar-layout .wc-block-components-sidebar {
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
  }
}

body.theme-woo-blocks-page .wc-block-checkout__sidebar,
body.theme-woo-blocks-page .wc-block-cart__sidebar,
body.theme-woo-blocks-page .wc-block-components-sidebar.wc-block-checkout__sidebar,
body.theme-woo-blocks-page .wc-block-components-sidebar.wc-block-cart__sidebar {
  background-color: var(--color-surface-soft);
  border-radius: var(--radius);
  padding: 2rem;
  box-sizing: border-box;
}

/* My Account — navigation + content within content width */
body.theme-woo-blocks-page.woocommerce-account .woocommerce-MyAccount-navigation,
body.theme-woo-blocks-page.woocommerce-account .woocommerce-MyAccount-content {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  body.theme-woo-blocks-page.woocommerce-account .woocommerce {
    display: grid;
    grid-template-columns: minmax(200px, 260px) 1fr;
    gap: 1.5rem;
    align-items: start;
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  body.theme-woo-blocks-page.woocommerce-account .woocommerce-MyAccount-navigation,
  body.theme-woo-blocks-page.woocommerce-account .woocommerce-MyAccount-content {
    max-width: none;
    margin: 0;
  }
}

body.theme-woo-blocks-page .wc-block-components-text-input input,
body.theme-woo-blocks-page .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select {
  width: 100% !important;
  max-width: none !important;
  font-family: var(--font-body);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-foreground);
  background-color: var(--color-background);
}
body.theme-woo-blocks-page .wc-block-components-text-input input:focus,
body.theme-woo-blocks-page .wc-block-components-select select:focus,
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-accent) 20%, transparent);
}
body.theme-woo-blocks-page .wc-block-components-checkout-place-order-button,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  background-color: var(--color-primary) !important;
  color: var(--color-button-text) !important;
  border-radius: var(--btn-radius) !important;
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  padding: 16px 32px !important;
  border: none !important;
  width: 100% !important;
  cursor: pointer !important;
}
/* Thank you / order received (Section 22.8) */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 32px);
  color: var(--color-foreground);
  padding: 0 0 16px;
}
body.theme-thankyou-page .woocommerce-order-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  padding: 24px;
  background-color: var(--color-surface-soft);
  border-radius: var(--radius);
  margin-bottom: 32px;
}
body.theme-thankyou-page .woocommerce-order-overview li { font-size: 0.875rem; color: var(--color-foreground); }
body.theme-thankyou-page .woocommerce-order-overview strong { font-weight: 600; }
body.theme-thankyou-page .woocommerce-order-details table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
body.theme-thankyou-page .woocommerce-order-details table th,
body.theme-thankyou-page .woocommerce-order-details table td {
  padding: 12px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.875rem;
}
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }

/* ── ANIMATIONS ─────────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--transition), transform 0.6s var(--transition); }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }
.fade-in-right { opacity: 0; transform: translateX(-30px); transition: opacity 0.6s var(--transition), transform 0.6s var(--transition); }
.fade-in-right.is-visible { opacity: 1; transform: translateX(0); }
.fade-in-left { opacity: 0; transform: translateX(30px); transition: opacity 0.6s var(--transition), transform 0.6s var(--transition); }
.fade-in-left.is-visible { opacity: 1; transform: translateX(0); }
.stagger-children .stagger-item { opacity: 0; transform: translateY(20px); transition: opacity 0.5s var(--transition), transform 0.5s var(--transition); }
.stagger-children.is-visible .stagger-item { opacity: 1; transform: translateY(0); }
.stagger-children.is-visible .stagger-item:nth-child(1) { transition-delay: 0ms; }
.stagger-children.is-visible .stagger-item:nth-child(2) { transition-delay: 100ms; }
.stagger-children.is-visible .stagger-item:nth-child(3) { transition-delay: 200ms; }
.stagger-children.is-visible .stagger-item:nth-child(4) { transition-delay: 300ms; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 767px) {
  .theme-about-feats { gap: 16px; }
  .theme-philosophy-col { padding: 24px; }
  .theme-contact-layout { gap: 40px; }
}
