/* ============================================================
   BAE THEME — COMPLETE CSS
   Balance, Alignment, Elevation
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Jost:wght@300;400;500;600;700&display=swap');

/* ---- CSS Variables (overridden by inline style from Customizer) ---- */
:root {
  --color-primary:        #a78bba;
  --color-primary-text:   #ffffff;
  --color-background:     #f8f5fb;
  --color-foreground:     #2a2030;
  --color-secondary-bg:   #f3eef8;
  --color-muted:          #8c7d9b;
  --color-card:           #ede8f3;
  --color-border:         #d4c9e0;
  --color-accent:         #7db89a;
  --color-sage:           #7db89a;
  --color-lavender:       #a78bba;
  --color-lavender-light: #cbb8d9;
  --color-blush:          #d4a5bd;
  --color-cream:          #faf7f0;

  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'Jost', sans-serif;

  --shadow-soft:     0 4px 20px -4px rgba(42,32,48,0.06);
  --shadow-elevated: 0 8px 40px -8px rgba(42,32,48,0.12);

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

  --btn-height:         2.75rem;
  --btn-padding:        0.625rem 1.5rem;
  --btn-radius:         0.375rem;
  --btn-font-size:      0.875rem;
  --btn-font-weight:    500;
  --btn-letter-spacing: 0.02em;
  --btn-text-transform: none;
  --btn-icon-padding:   0.5rem;

  --header-height:  7rem;
  --logo-height:    60px;

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

  --checkout-gap: 2rem;
}

/* ---- Reset / Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background-color: var(--color-background);
  color: var(--color-foreground);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); line-height: 1.15; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; height: auto; }
button { cursor: pointer; font-family: var(--font-body); }
input, textarea, select { font-family: var(--font-body); }

/* ---- Utilities ---- */
.container-wide {
  width: 100%; max-width: 80rem; margin: 0 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; }
.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-muted); }
.scroll-mt { scroll-margin-top: 7rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

/* Animations */
@keyframes fadeIn  { from { opacity: 0; }        to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroIn  { from { opacity: 0; transform: translateY(80px); } to { opacity: 1; transform: translateY(0); } }
@keyframes blurIn  { from { opacity: 0; filter: blur(10px); transform: translateY(30px); } to { opacity: 1; filter: blur(0); transform: translateY(0); } }
@keyframes spin    { to { transform: rotate(360deg); } }

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

/* Sections entering viewport */
.section-animate { opacity: 0; transform: translateY(40px); transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth); }
.section-animate.is-visible { opacity: 1; transform: none; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background-color 0.3s var(--transition-smooth),
              border-color 0.3s var(--transition-smooth),
              backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background-color: rgba(248,245,251,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: var(--color-border);
}
.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 6rem;
}
@media (min-width: 1024px) { .site-nav { height: 7rem; } }

/* Logo */
.site-logo-wrap { display: flex; align-items: center; }
.site-logo-link { display: flex; align-items: center; text-decoration: none; }
.site-logo-img  { height: var(--logo-height) !important; width: auto !important; display: block; object-fit: contain; }
.site-logo-text { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; line-height: var(--logo-height); }

/* Left nav (desktop) */
.nav-desktop {
  position: absolute; left: 0;
  display: none; align-items: center; gap: 2rem;
}
@media (min-width: 768px) { .nav-desktop { display: flex; } }

.theme-nav-list { list-style: none; display: flex; gap: 2rem; padding: 0; margin: 0; }
.theme-nav-link {
  font-size: 0.875rem; font-family: var(--font-body); letter-spacing: 0.03em;
  cursor: pointer; transition: color 0.3s; position: relative;
  background: none; border: none; padding: 0;
}
.theme-nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--transition-smooth);
}
.theme-nav-link:hover::after { transform: scaleX(1); }
.site-header.is-solid .theme-nav-link { color: var(--color-foreground); }
.site-header:not(.is-solid) .theme-nav-link { color: rgba(255,255,255,0.9); }
.site-header:not(.is-solid) .theme-nav-link:hover { color: #fff; }

/* Right: cart */
.nav-right { position: absolute; right: 0; display: flex; align-items: center; }
.cart-btn {
  position: relative; padding: 0.5rem;
  background: none; border: none;
  transition: opacity 0.2s;
  display: flex; align-items: center;
}
.cart-btn:hover { opacity: 0.6; }
.site-header:not(.is-solid) .cart-btn { color: #fff; }
.site-header.is-solid .cart-btn { color: var(--color-foreground); }

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

/* Hamburger */
.nav-hamburger {
  position: absolute; left: 0;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; padding: 0.5rem;
  transition: opacity 0.2s;
}
@media (min-width: 768px) { .nav-hamburger { display: none; } }
.nav-hamburger:hover { opacity: 0.6; }
.site-header:not(.is-solid) .nav-hamburger { color: #fff; }
.site-header.is-solid .nav-hamburger { color: var(--color-foreground); }

/* Mobile menu */
.mobile-menu {
  display: none; border-top: 1px solid var(--color-border);
  padding: 1rem 0;
}
.mobile-menu.is-open { display: block; animation: fadeIn 0.3s ease both; }
.theme-mobile-nav-list { list-style: none; padding: 0; margin: 0; }
.theme-mobile-nav-list li { display: block; }
.theme-mobile-nav-list .theme-nav-link,
.theme-mobile-nav-list a {
  display: block; padding: 0.625rem 0; font-size: 0.875rem;
  text-align: left; color: var(--color-foreground);
  transition: color 0.2s;
}
.theme-mobile-nav-list .theme-nav-link:hover,
.theme-mobile-nav-list a:hover { color: var(--color-muted); }
.theme-mobile-nav-list .theme-nav-link::after { display: none; }

/* ============================================================
   BUTTONS (General)
   ============================================================ */
.theme-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: var(--btn-padding);
  min-height: var(--btn-height);
  font-family: var(--font-body);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  letter-spacing: var(--btn-letter-spacing);
  border-radius: var(--btn-radius);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, background-color 0.2s, transform 0.1s;
  text-decoration: none;
  white-space: nowrap;
}
.theme-btn:hover { opacity: 0.85; }
.theme-btn:active { transform: scale(0.97); }
.theme-btn:disabled { cursor: not-allowed; opacity: 0.5; pointer-events: none; }

.theme-btn-primary {
  background-color: var(--color-primary);
  color: var(--color-primary-text);
}
.theme-btn-secondary {
  background-color: var(--color-secondary-bg);
  color: var(--color-foreground);
}
.theme-btn-outline {
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-foreground);
}
.theme-btn-outline:hover {
  background-color: var(--color-card);
  opacity: 1;
}
.theme-btn-ghost {
  background-color: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}
.theme-btn-ghost:hover {
  background-color: rgba(255,255,255,0.2);
  opacity: 1;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background-color: rgba(42,32,48,0.5); z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding-top: 5rem; padding-bottom: 5rem;
}
.hero-eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.8s 0.3s both;
}
.hero-eyebrow-line {
  display: block; width: 2rem; height: 1px; background-color: rgba(255,255,255,0.6);
}
.hero-eyebrow-text {
  font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(255,255,255,0.9); font-family: var(--font-body); font-weight: 500;
}
.hero-headings { overflow: hidden; }
.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700; letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}
@media (min-width: 768px) {
  .hero-heading { font-size: clamp(3.5rem, 9vw, 6rem); }
}
@media (min-width: 1024px) {
  .hero-heading { font-size: clamp(4rem, 10vw, 7rem); }
}
.hero-heading--1 { animation: heroIn 1s 0.6s both ease; }
.hero-heading--2 { animation: heroIn 1s 0.75s both ease; }
.hero-heading--3 { animation: heroIn 1s 0.9s both ease; margin-bottom: 1.5rem; }

.hero-subheading {
  color: rgba(255,255,255,0.9);
  font-family: var(--font-body); font-size: 1.125rem;
  max-width: 36rem; margin: 0 auto 2.5rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.7);
  animation: blurIn 0.8s 1.1s both;
}
.hero-buttons {
  display: flex; flex-direction: column; gap: 0.75rem; align-items: center;
  animation: fadeIn 0.7s 1.3s both;
}
@media (min-width: 640px) {
  .hero-buttons { flex-direction: row; justify-content: center; }
}
.hero-btn-primary { padding: 0.75rem 2.5rem; font-size: 1rem; }
.hero-btn-secondary { padding: 0.75rem 2.5rem; font-size: 1rem; }

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section-secondary { background-color: var(--color-secondary-bg); }
.section-header { margin-bottom: 3rem; }
.section-eyebrow {
  display: block; font-size: 0.75rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--color-muted);
  font-family: var(--font-body); margin-bottom: 0.5rem;
}
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700; line-height: 1.15;
}
@media (min-width: 768px) {
  .section-heading { font-size: clamp(2rem, 5vw, 3.25rem); }
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section { padding: 4rem 0; }
@media (min-width: 768px) { .about-section { padding: 6rem 0; } }
.about-content {
  max-width: 48rem; margin: 0 auto; text-align: center;
}
.about-heading { margin-top: 0.5rem; margin-bottom: 1.5rem; }
.about-text { color: var(--color-muted); font-family: var(--font-body); }
.about-text p { font-size: 1rem; line-height: 1.7; margin-bottom: 1rem; }
.about-text p:first-child { font-size: 1.125rem; }

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services-section { padding: 4rem 0; }
@media (min-width: 768px) { .services-section { padding: 6rem 0; } }
.services-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
@media (min-width: 768px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: 1fr 1fr 1fr; } }

.service-card {
  padding: 1.5rem;
  background-color: var(--color-card);
  border-radius: var(--card-radius);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.3s var(--transition-smooth), transform 0.3s var(--transition-smooth);
}
.service-card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-4px);
}
.service-icon { color: var(--color-primary); margin-bottom: 1rem; }
.service-title {
  font-family: var(--font-display); font-size: 1.25rem;
  font-weight: 600; margin-bottom: 0.5rem;
}
.service-desc { font-size: 0.875rem; color: var(--color-muted); font-family: var(--font-body); }

/* ============================================================
   PORTFOLIO SECTION
   ============================================================ */
.portfolio-section { padding: 4rem 0; }
@media (min-width: 768px) { .portfolio-section { padding: 6rem 0; } }

/* Mobile grid */
.portfolio-mobile-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
}
@media (min-width: 768px) { .portfolio-mobile-grid { display: none; } }

.portfolio-tile {
  position: relative; height: 10rem; border-radius: 0.75rem;
  overflow: hidden; cursor: pointer; display: block;
}
.portfolio-tile-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.portfolio-tile-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.2) 50%, transparent);
  transition: background 0.3s;
}
.portfolio-tile:active .portfolio-tile-overlay { background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.3) 50%, transparent); }
.portfolio-tile-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 0.75rem; }
.portfolio-tile-title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; color: #fff; }

/* Desktop accordion */
.portfolio-accordion {
  display: none; height: 420px; gap: 0.5rem;
  border-radius: 1rem; overflow: hidden;
}
@media (min-width: 768px) { .portfolio-accordion { display: flex; } }

.portfolio-strip {
  position: relative; overflow: hidden; border-radius: 0.75rem;
  cursor: pointer; display: block;
  flex: 1; transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-strip:hover { flex: 3; }
.portfolio-accordion:hover .portfolio-strip:not(:hover) { flex: 0.7; }

.portfolio-strip-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.portfolio-strip-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.2) 50%, transparent);
  transition: background 0.5s;
}
.portfolio-strip-content {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem;
  display: flex; align-items: flex-end; justify-content: space-between;
}
.portfolio-strip-title {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: #fff;
  white-space: nowrap;
}
@media (min-width: 1024px) { .portfolio-strip-title { font-size: 1.875rem; } }
.portfolio-strip-desc {
  color: rgba(255,255,255,0.7); font-size: 0.875rem; font-family: var(--font-body);
  margin-top: 0.25rem; white-space: nowrap; overflow: hidden;
  max-width: 0; opacity: 0;
  transition: max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s;
}
.portfolio-strip:hover .portfolio-strip-desc { max-width: 300px; opacity: 1; }
.portfolio-strip-arrow {
  color: #fff; opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.3s, transform 0.3s;
  flex-shrink: 0;
}
.portfolio-strip:hover .portfolio-strip-arrow { opacity: 1; transform: translateX(0); }

/* ============================================================
   SHOP SECTION
   ============================================================ */
.shop-section { padding: 4rem 0 5rem; }
@media (min-width: 768px) { .shop-section { padding: 5rem 0 6rem; } }

/* Search */
.shop-search-wrap { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.shop-search-inner {
  position: relative; width: 100%; max-width: 28rem;
}
.shop-search-icon {
  position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%);
  color: var(--color-muted); pointer-events: none;
}
.shop-search-input {
  width: 100%; padding: 0.625rem 1rem 0.625rem 2.5rem;
  border-radius: 9999px;
  background-color: var(--color-secondary-bg);
  border: 1px solid var(--color-border);
  font-size: 0.875rem; color: var(--color-foreground);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.shop-search-input::placeholder { color: var(--color-muted); }
.shop-search-input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(167,139,186,0.15); }

/* Category pills */
.shop-category-pills {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.5rem; margin-bottom: 1rem;
}
.category-pill {
  padding: 0.5rem 1.25rem; font-size: 0.875rem;
  border-radius: 9999px; font-family: var(--font-body);
  background-color: var(--color-secondary-bg);
  color: var(--color-foreground);
  border: 1px solid transparent;
  transition: all 0.3s; cursor: pointer;
}
.category-pill:hover { background-color: var(--color-card); }
.category-pill.is-active { background-color: var(--color-primary); color: var(--color-primary-text); }

/* Price filter */
.shop-filter-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.shop-filter-toggle {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; font-size: 0.875rem;
  border-radius: 9999px; font-family: var(--font-body);
  background-color: var(--color-secondary-bg);
  color: var(--color-foreground); border: 1px solid transparent;
  transition: background-color 0.3s; cursor: pointer;
}
.shop-filter-toggle:hover { background-color: var(--color-card); }
.filter-toggle-icon { transition: transform 0.3s; }
.shop-filter-toggle[aria-expanded="true"] .filter-toggle-icon { transform: rotate(180deg); }

.shop-filter-panel {
  width: 100%; max-width: 24rem;
  overflow: hidden; height: 0; opacity: 0;
  transition: height 0.3s var(--transition-smooth), opacity 0.3s;
}
.shop-filter-panel.is-open { height: auto; opacity: 1; }

/* Price range slider — single track, dual LTR ranges stacked (Section 31.4) */
.price-range-wrapper {
  position: relative;
  height: 2.5rem;
  margin: 0.75rem 0 0.25rem;
  padding: 0;
}
.price-range-track-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  pointer-events: none;
  z-index: 0;
}
.range-track-fill {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 4px;
  background: var(--color-primary);
  pointer-events: none;
  border-radius: 2px;
  z-index: 1;
}
.price-range-wrapper .price-range-input {
  position: absolute;
  left: 0;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  height: 1.5rem;
  margin: 0;
  padding: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  cursor: pointer;
  z-index: 3;
}
.price-range-wrapper .price-range-input--max { z-index: 4; }
.price-range-wrapper .price-range-input::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
  border-radius: 2px;
}
.price-range-wrapper .price-range-input::-moz-range-track {
  height: 4px;
  background: transparent;
  border-radius: 2px;
}
.price-range-wrapper .price-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  margin-top: -6px;
  box-sizing: border-box;
}
.price-range-wrapper .price-range-input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  border: none;
}
.price-range-labels {
  display: flex; justify-content: space-between;
  font-size: 0.75rem; color: var(--color-muted); font-family: var(--font-body);
  padding: 0.5rem 0;
}

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

/* Show more */
.shop-show-more { margin-top: 2.5rem; }
.shop-no-products { text-align: center; padding: 5rem 0; color: var(--color-muted); font-family: var(--font-body); }

/* ============================================================
   PRODUCT CARDS (Section 31.9, 31.3)
   ============================================================ */
.theme-product-card-wrap { height: 100%; }

.theme-product-card {
  display: flex; flex-direction: column; height: 100%;
  transition: transform 0.5s var(--transition-smooth);
}
.theme-product-card:hover {
  transform: translateY(-8px);
}

.theme-product-card__image-wrapper {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--card-radius);
  background-color: var(--color-secondary-bg);
  margin-bottom: 1rem;
}
.theme-product-card__image-wrapper img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform 0.6s ease-out;
}
.theme-product-card:hover .theme-product-card__image-wrapper img { transform: scale(1.08); }
.theme-product-card--soldout .theme-product-card__image-wrapper img { opacity: 0.6; }

/* Sold out badge */
.theme-product-badge-soldout {
  position: absolute; top: 0.5rem; left: 0.5rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  background-color: var(--color-foreground); color: var(--color-background);
  border-radius: 0.375rem;
  z-index: 2;
}
@media (min-width: 768px) { .theme-product-badge-soldout { top: 0.75rem; left: 0.75rem; } }

/* Quick-add button (card) */
.theme-product-card__quick-add {
  position: absolute;
  bottom: 0.5rem; right: 0.5rem;
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-primary-text);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  transition: transform 0.2s, opacity 0.3s;
  opacity: 0;
}
@media (max-width: 767px) { .theme-product-card__quick-add { opacity: 1; } }
@media (min-width: 768px) { .theme-product-card__quick-add { bottom: 0.75rem; right: 0.75rem; } }
.theme-product-card:hover .theme-product-card__quick-add { opacity: 1; }
.theme-product-card__quick-add:hover { transform: scale(1.1); }
.theme-product-card__quick-add:active { transform: scale(0.9); }

/* Card info */
.theme-product-card__info { flex: 1; }
.theme-product-card__name {
  font-size: 0.875rem; font-weight: 500; font-family: var(--font-body);
  color: var(--color-foreground);
  transition: color 0.3s;
  margin-bottom: 0.25rem;
}
.theme-product-card:hover .theme-product-card__name { color: var(--color-primary); }
.theme-product-card__price {
  font-size: 0.875rem; font-weight: 600; font-family: var(--font-body);
  color: var(--color-muted);
}

/* Card overlay */
.theme-product-card__overlay {
  position: absolute; inset: 0;
  background: transparent;
  transition: background 0.5s;
  pointer-events: none; z-index: 1;
}
.theme-product-card:hover .theme-product-card__overlay { background: rgba(42,32,48,0.05); }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section { padding: 3rem 0 4rem; }
@media (min-width: 768px) { .cta-section { padding: 4rem 0; } }
.cta-container { }
.cta-inner {
  position: relative; overflow: hidden;
  color: #fff;
  padding: 2.5rem 1.5rem;
  text-align: center;
  max-width: 64rem; margin: 0 auto;
  border-radius: 1rem;
  transition: transform 0.4s var(--transition-smooth);
}
@media (min-width: 768px) { .cta-inner { padding: 4rem; } }
.cta-inner:hover { transform: scale(1.01); }
.cta-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.cta-overlay {
  position: absolute; inset: 0;
  background-color: rgba(0,0,0,0.65); z-index: 1;
}
.cta-content { position: relative; z-index: 2; }
.cta-heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}
.cta-subheading {
  color: rgba(255,255,255,0.9); max-width: 28rem; margin: 0 auto 2rem;
  font-family: var(--font-body);
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}
.cta-buttons {
  display: flex; flex-direction: column; gap: 0.75rem; align-items: center;
}
@media (min-width: 640px) { .cta-buttons { flex-direction: row; justify-content: center; } }
.cta-btn-primary { padding: 0.75rem 2.5rem; font-size: 1rem; }
.cta-btn-secondary { padding: 0.75rem 2.5rem; font-size: 1rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { border-top: 1px solid var(--color-border); }
.footer-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 2rem; padding: 3rem 0;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 4rem; padding: 4rem 0; }
}
.footer-brand { }
.footer-logo-link {
  display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem;
  flex-shrink: 0;
}
.site-footer .footer-logo-img {
  height: 4rem !important;
  width: auto !important;
  max-width: none;
  object-fit: contain;
  flex-shrink: 0;
}
.footer-logo-text { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.footer-site-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.footer-tagline { font-size: 0.75rem; color: var(--color-muted); font-style: italic; margin-bottom: 0.75rem; }
.footer-description { font-size: 0.875rem; color: var(--color-muted); max-width: 22rem; line-height: 1.6; }

.footer-col-heading { font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; font-family: var(--font-body); }
.theme-footer-nav-list { list-style: none; padding: 0; margin: 0; }
.theme-footer-nav-list li { margin-bottom: 0.75rem; }
.theme-footer-nav-link {
  font-size: 0.875rem; color: var(--color-muted);
  transition: color 0.2s; text-transform: capitalize;
}
.theme-footer-nav-link:hover { color: var(--color-foreground); }

.footer-contact-list { list-style: none; padding: 0; }
.footer-contact-item { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.footer-contact-link { font-size: 0.875rem; color: var(--color-muted); transition: color 0.2s; }
.footer-contact-link:hover { color: var(--color-foreground); }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0;
  display: flex; flex-direction: column; gap: 1rem; align-items: center;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-copyright { font-size: 0.75rem; color: var(--color-muted); }
.footer-credit { font-size: 0.75rem; color: var(--color-muted); }
.footer-credit-link { text-decoration: underline; transition: color 0.2s; }
.footer-credit-link:hover { color: var(--color-foreground); }

/* ============================================================
   CONTACT MODAL
   ============================================================ */
.contact-modal {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 1rem;
}
.contact-modal.is-open { display: flex; }
.contact-modal-overlay {
  position: absolute; inset: 0;
  background-color: rgba(42,32,48,0.4);
  animation: fadeIn 0.2s ease;
}
.contact-modal-panel {
  position: relative; z-index: 1;
  background-color: var(--color-background);
  border-radius: 0.75rem;
  padding: 1.5rem;
  width: 100%; max-width: 32rem;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-elevated);
  animation: slideUp 0.3s var(--transition-smooth);
}
.contact-modal-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 0.5rem;
}
.contact-modal-title { font-family: var(--font-display); font-size: 1.5rem; }
.contact-modal-close {
  background: none; border: none; padding: 0.25rem; cursor: pointer;
  color: var(--color-muted); transition: color 0.2s; flex-shrink: 0; margin-left: 1rem;
}
.contact-modal-close:hover { color: var(--color-foreground); }
.contact-modal-desc { font-size: 0.875rem; color: var(--color-muted); margin-bottom: 1rem; }
.contact-modal-info { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.contact-info-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--color-muted); }
.contact-modal-link { transition: color 0.2s; }
.contact-modal-link:hover { color: var(--color-foreground); }

.contact-form-row {
  display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1rem;
}
@media (min-width: 640px) { .contact-form-row { grid-template-columns: 1fr 1fr; } }
.contact-form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.contact-form-label { font-size: 0.875rem; font-weight: 500; font-family: var(--font-body); }
.contact-form-input, .contact-form-textarea {
  width: 100%; padding: 0.625rem 0.75rem;
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.875rem; color: var(--color-foreground);
  font-family: var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.contact-form-input:focus, .contact-form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(167,139,186,0.2);
}
.contact-form-textarea { resize: none; }
.contact-form-actions { display: flex; justify-content: flex-end; margin-top: 1rem; }
.contact-submit-btn { }

.contact-modal-success { text-align: center; padding: 2rem 0; }
.contact-success-icon {
  width: 3.5rem; height: 3.5rem;
  background-color: var(--color-primary); color: var(--color-primary-text);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  animation: slideUp 0.4s var(--transition-smooth);
}
.contact-success-title { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 0.5rem; }
.contact-success-msg { font-size: 0.875rem; color: var(--color-muted); }

/* ============================================================
   CART DRAWER (Section 12)
   ============================================================ */
body.cart-open { overflow: hidden; }

#theme-cart-overlay {
  position: fixed; inset: 0;
  background-color: rgba(42,32,48,0.2);
  z-index: 98; display: none;
}
body.cart-open #theme-cart-overlay { display: block; animation: fadeIn 0.2s ease; }

#theme-cart-drawer {
  position: fixed; right: 0; top: 0; height: 100%;
  width: 100%; max-width: 28rem;
  background-color: var(--color-background);
  z-index: 99; display: flex; flex-direction: column;
  box-shadow: var(--shadow-elevated);
  transform: translateX(100%);
  transition: transform 0.3s var(--transition-smooth);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }

.cart-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem; border-bottom: 1px solid var(--color-border);
}
.cart-drawer-title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; }
.cart-drawer-close {
  padding: 0.25rem; background: none; border: none;
  color: var(--color-foreground); transition: opacity 0.2s; cursor: pointer;
}
.cart-drawer-close:hover { opacity: 0.6; }

/* Empty state */
.cart-empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 1.5rem; text-align: center;
}
.cart-empty-icon { color: var(--color-muted); margin-bottom: 1rem; }
.cart-empty-msg { color: var(--color-muted); margin-bottom: 1.5rem; font-family: var(--font-body); }

/* Cart items */
.cart-items-list { flex: 1; overflow-y: auto; padding: 1.5rem; }
.cart-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.cart-item:last-child { margin-bottom: 0; }
.cart-item-img-wrap {
  width: 5rem; height: 6rem; flex-shrink: 0;
  background-color: var(--color-secondary-bg); overflow: hidden;
}
.cart-item-img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: 0.875rem; font-weight: 500; font-family: var(--font-body);
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: opacity 0.2s;
}
.cart-item-name:hover { opacity: 0.7; }
.cart-item-price { font-size: 0.875rem; color: var(--color-muted); margin-top: 0.125rem; }
.cart-item-variation { font-size: 0.75rem; color: var(--color-muted); margin-top: 0.25rem; }
.cart-item-controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.cart-qty-btn {
  padding: 0.25rem; background: none; border: none; cursor: pointer;
  border-radius: var(--radius); transition: background-color 0.2s;
}
.cart-qty-btn:hover { background-color: var(--color-secondary-bg); }
.cart-qty-num { font-size: 0.875rem; width: 1.5rem; text-align: center; font-family: var(--font-body); }
.cart-item-remove {
  margin-left: auto; font-size: 0.75rem; color: var(--color-muted);
  background: none; border: none; cursor: pointer; transition: color 0.2s; font-family: var(--font-body);
}
.cart-item-remove:hover { color: var(--color-foreground); }

/* Cart footer */
.cart-footer {
  padding: 1.5rem; border-top: 1px solid var(--color-border);
}
.cart-subtotal-row {
  display: flex; justify-content: space-between;
  font-size: 0.875rem; margin-bottom: 0.5rem; font-family: var(--font-body);
}
.cart-subtotal-label { color: var(--color-muted); }
.cart-subtotal-value { font-weight: 500; }
.cart-shipping-note { font-size: 0.75rem; color: var(--color-muted); margin-bottom: 1rem; }
.cart-checkout-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 0.75rem;
  text-align: center;
}
.cart-empty-cart-btn { width: 100%; }

/* ============================================================
   INNER PAGES
   ============================================================ */
.theme-inner-page {
  padding-top: calc(var(--header-height) + 1rem);
  min-height: 60vh;
}
.page-title {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .page-title { font-size: 2.5rem; } }
.entry-content { max-width: 60rem; }

/* ============================================================
   WOOCOMMERCE — SINGLE PRODUCT PAGE (Section 11)
   ============================================================ */
.single-product.site-main,
.page-template-default.woocommerce .site-main {
  padding-top: var(--header-height);
}

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

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

.theme-product-thumbnails {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem; flex-wrap: wrap; max-width: 100%;
}
.theme-thumb-btn {
  aspect-ratio: 1; overflow: hidden; border-radius: 0.375rem;
  border: 2px solid transparent; opacity: 0.6; cursor: pointer;
  transition: all 0.2s; background: none; padding: 0;
}
.theme-thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
.theme-thumb-btn:hover { opacity: 1; }
.theme-thumb-btn.is-active { border-color: var(--color-primary); opacity: 1; }

/* Product info */
.theme-product-info { padding: 0; }
@media (min-width: 1024px) { .theme-product-info { padding-top: 2.5rem; } }
.product-category-label {
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--color-muted); margin-bottom: 0.5rem; display: block;
}
.product-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin-bottom: 1rem; }
.product-price { font-size: 1.5rem; color: var(--color-primary); font-weight: 600; margin-bottom: 1.5rem; }
.product-description {
  color: var(--color-muted); line-height: 1.7; margin-bottom: 2rem;
  font-family: var(--font-body); white-space: pre-line;
  overflow-wrap: break-word; word-break: break-word;
}
.product-stock-indicator {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; font-weight: 600; margin-bottom: 1.5rem;
}
.product-stock-indicator--in  { color: var(--color-sage); }
.product-stock-indicator--out { color: var(--color-muted); }

/* Size/Color options */
.product-option-group { margin-bottom: 1.5rem; }
.product-option-label { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.75rem; display: block; }
.product-option-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.product-option-btn {
  padding: 0.5rem 1rem; font-size: 0.875rem; border: 1px solid var(--color-border);
  border-radius: var(--radius); font-family: var(--font-body);
  background: none; cursor: pointer; transition: all 0.2s;
}
.product-option-btn:hover { border-color: rgba(167,139,186,0.5); }
.product-option-btn.is-active { background-color: var(--color-primary); color: var(--color-primary-text); border-color: var(--color-primary); }

/* Quantity + Add to cart area */
.theme-add-to-cart-area {
  display: flex; gap: 1rem; margin-bottom: 2rem;
  flex-wrap: wrap; align-items: center;
}
.theme-quantity-wrapper {
  display: flex; align-items: center;
  border: 1px solid var(--color-border); border-radius: var(--radius);
  overflow: hidden;
}
.theme-qty-minus, .theme-qty-plus {
  padding: 0.75rem 1rem; background: none; border: none;
  cursor: pointer; transition: background-color 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.theme-qty-minus:hover, .theme-qty-plus:hover { background-color: var(--color-secondary-bg); }
.theme-qty-input {
  width: 3rem; text-align: center; border: none; padding: 0.75rem 0.25rem;
  font-family: var(--font-body); background: none;
  -moz-appearance: textfield;
  font-size: 1rem;
}
.theme-qty-input::-webkit-inner-spin-button,
.theme-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
  background-color: var(--color-primary) !important;
  color: var(--color-primary-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;
  flex: 1 1 auto;
  min-width: 10rem;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
  opacity: 0.85 !important;
  background-color: var(--color-primary) !important;
  color: var(--color-primary-text) !important;
}
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
  cursor: not-allowed !important;
  opacity: 0.4 !important;
  pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
  opacity: 0.4 !important;
  background-color: var(--color-primary) !important;
}

/* Card compact button override */
.theme-product-card .add_to_cart_button.ajax_add_to_cart {
  min-height: unset !important;
  padding: var(--btn-icon-padding) !important;
  border-radius: 50% !important;
  width: 2.25rem !important;
  height: 2.25rem !important;
  flex: unset !important;
  min-width: unset !important;
}

/* Hide "View cart" link (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; }

/* Add to cart button lock (Section 31.8) */
.ajax_add_to_cart.theme-btn-loading {
  opacity: 0.6 !important; pointer-events: none !important; cursor: wait !important;
}

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

/* Back to shop */
.back-to-shop-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; color: var(--color-muted); font-family: var(--font-body);
  transition: color 0.2s; margin-bottom: 1.5rem;
}
.back-to-shop-link:hover { color: var(--color-foreground); }

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

/* Variable product 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: 0.25rem; }
.single-product .variations tbody td.value { padding-top: 0; }
.theme-attr-select-hidden { display: none !important; }

/* WooCommerce responsive (Section 11.13) */
.single-product .theme-product-layout { min-width: 0; }
.single-product .theme-product-gallery,
.single-product .theme-product-info { min-width: 0; max-width: 100%; }
.single-product .theme-product-thumbnails { flex-wrap: wrap; max-width: 100%; }
.single-product .theme-add-to-cart-area { flex-wrap: wrap; gap: 0.75rem; }
.single-product .single_add_to_cart_button { flex: 1 1 auto; min-width: 10rem; }
.single-product .woocommerce-product-details__short-description,
.single-product .woocommerce-variation-description,
.single-product .posted_in { overflow-wrap: break-word; word-break: break-word; }

/* ============================================================
   WOOCOMMERCE — ARCHIVE / SHOP
   ============================================================ */
.woocommerce-archive-header { margin-bottom: 2rem; }
.archive-page-title { font-family: var(--font-display); font-size: 2rem; font-weight: 700; }

/* Notice styling */
.woocommerce-message, .woocommerce-info {
  padding: 1rem; border-radius: var(--radius);
  margin-bottom: 1.5rem; font-family: var(--font-body);
  border-left: 4px solid var(--color-primary);
  background: var(--color-secondary-bg);
}
.woocommerce-error {
  padding: 1rem; border-radius: var(--radius);
  margin-bottom: 1.5rem; font-family: var(--font-body);
  border-left: 4px solid #e53e3e;
  background: rgba(229,62,62,0.08);
  color: #c53030;
}
/* Scoped hiding of notices where drawer provides feedback */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }

/* ============================================================
   WOOCOMMERCE — CHECKOUT (Section 13)
   ============================================================ */
body.woocommerce-checkout .site-main {
  padding-top: var(--header-height);
  padding-bottom: 4rem;
}
body.woocommerce-checkout .entry-content { max-width: 100%; }

/* Two-column layout */
@media (min-width: 768px) {
  body.woocommerce-checkout .wc-block-checkout {
    display: block;
  }
  body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--checkout-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;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius) !important;
  font-family: var(--font-body) !important;
  background-color: var(--color-background) !important;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(167,139,186,0.2) !important;
  outline: none !important;
}
body.woocommerce-checkout .wc-block-checkout__sidebar {
  background-color: var(--color-secondary-bg);
  border-radius: var(--card-radius);
  padding: var(--section-padding, 2rem);
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  background-color: var(--color-primary) !important;
  color: var(--color-primary-text) !important;
  border-radius: var(--btn-radius) !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  width: 100%;
}
body.woocommerce-checkout .page-title {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700;
  margin-bottom: 2rem;
}

/* ============================================================
   WOOCOMMERCE — THANK YOU (Section 22.8)
   ============================================================ */
body.theme-thankyou-page .theme-thankyou-content .woocommerce-thankyou-order-received {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
body.theme-thankyou-page .woocommerce-order { font-family: var(--font-body); }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
  font-family: var(--font-display); padding: 0 0 1rem;
}
body.theme-thankyou-page .woocommerce-order-overview {
  list-style: none; padding: 0;
  display: flex; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 2rem;
}
body.theme-thankyou-page .woocommerce-order-overview li {
  font-size: 0.875rem; color: var(--color-muted);
}
body.theme-thankyou-page .woocommerce-order-details table {
  width: 100%; table-layout: fixed; border-collapse: collapse;
}
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;
}
body.theme-thankyou-page .woocommerce-customer-details address { max-width: 30rem; overflow-wrap: break-word; }
body.theme-thankyou-page { overflow-x: hidden; }

/* ============================================================
   PAGE.PHP — GENERAL INNER PAGES
   ============================================================ */
.theme-inner-page { padding-top: var(--header-height); min-height: 60vh; }

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