/**
 * CasteloriaWonders — EU Independent Digital Wall Art Studio
 * Stylesheet Architecture
 * 
 * Scope: All rules are scoped under `.art-store` to avoid conflicting with existing WordPress themes.
 * Design tokens, layout grids, components, accessibility, and reduced-motion states.
 */

/* Google Fonts CDN removed for EU privacy-safe handoff. Self-host licensed WOFF2 fonts in production. */

/* NOTE FOR PRODUCTION WOOCOMMERCE BUILD:
   External Google Fonts CDN should be replaced with self-hosted licensed WOFF2 files
   via wp_enqueue_style or theme.json to ensure GDPR / EU compliance and eliminate 3P requests.
*/

/* Reset & Scope Isolation */
.art-store {
  /* Brand Color Palette */
  --color-alabaster: #FAF8F5;
  --color-linen: #F2EFE9;
  --color-linen-hover: #E9E5DD;
  --color-charcoal: #1E1E1E;
  --color-charcoal-muted: #575757;
  --color-charcoal-subtle: #6E6E6E;
  --color-sage: #4A5240;
  --color-sage-light: #F0F2ED;
  --color-bronze: #8C6D46;
  --color-bronze-dark: #6B4F2B; /* WCAG AA compliant contrast for small text */
  --color-bronze-soft: rgba(140, 109, 70, 0.12);
  --color-border: rgba(30, 30, 30, 0.09);
  --color-border-dark: rgba(30, 30, 30, 0.2);
  --color-white: #FFFFFF;
  --color-amber-bg: #FFFBF2;
  --color-amber-border: #EED7A1;
  --color-amber-text: #7A5310;

  /* Typography */
  --font-serif: 'Cormorant Garamond', Garamond, 'Playfair Display', Georgia, serif;
  --font-sans: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Spacing Scale */
  --space-unit: 8px;
  --container-max-width: 1380px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* Transitions */
  --transition-fast: 160ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 240ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-subtle: 0 2px 8px rgba(30, 30, 30, 0.04);
  --shadow-card: 0 10px 30px -6px rgba(30, 30, 30, 0.07);
  --shadow-elevated: 0 20px 48px -12px rgba(30, 30, 30, 0.12);
  --shadow-frame: 0 24px 60px -10px rgba(10, 10, 10, 0.28);

  /* Host Defaults */
  background-color: var(--color-alabaster);
  color: var(--color-charcoal);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
  position: relative;
  min-height: 100vh;
}

.art-store *,
.art-store *::before,
.art-store *::after {
  box-sizing: inherit;
}

/* Accessibility Focus States */
.art-store a:focus-visible,
.art-store button:focus-visible,
.art-store input:focus-visible,
.art-store select:focus-visible {
  outline: 2px solid var(--color-bronze-dark);
  outline-offset: 3px;
}

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

/* Container */
.art-store-container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 768px) {
  .art-store-container {
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* ==========================================================================
   BLOCK 1: TOP PROMO BAR & SITE HEADER
   ========================================================================== */
.promo-bar {
  background-color: var(--color-charcoal);
  color: #EDE8DF;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  padding: 10px 16px;
  position: relative;
  z-index: 50;
  transition: max-height var(--transition-normal), opacity var(--transition-normal);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.promo-bar.promo-bar--hidden {
  display: none;
}

.promo-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.promo-bar__text {
  margin: 0;
  font-weight: 400;
}

.promo-bar__text strong {
  color: #FFFFFF;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.promo-bar__details-trigger {
  background: none;
  border: none;
  color: #D3BE9C;
  font-size: 11.5px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0 4px;
  font-family: inherit;
  transition: color var(--transition-fast);
}

.promo-bar__details-trigger:hover {
  color: #FFFFFF;
}

.promo-bar__dismiss {
  background: none;
  border: none;
  color: #A3A3A3;
  cursor: pointer;
  padding: 4px;
  margin-left: 8px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}

.promo-bar__dismiss:hover {
  color: #FFFFFF;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background-color: rgba(250, 248, 245, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 40;
  transition: transform var(--transition-normal);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 76px;
}

.site-header__brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--color-charcoal);
  white-space: nowrap;
  flex-shrink: 0;
}

.site-header__brand-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.site-header__brand-tagline {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-bronze-dark);
  font-weight: 500;
}

/* Navigation */
.site-header__nav {
  display: none;
  align-items: center;
  gap: 28px;
}

@media (min-width: 992px) {
  .site-header__nav {
    display: flex;
  }
}

.site-header__link {
  text-decoration: none;
  color: var(--color-charcoal);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.site-header__link:hover {
  color: var(--color-bronze-dark);
}

.site-header__dropdown {
  position: relative;
}

.site-header__dropdown-btn {
  background: none;
  border: none;
  color: var(--color-charcoal);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}

.site-header__dropdown-btn:hover {
  color: var(--color-bronze-dark);
}

.site-header__dropdown-menu {
  position: absolute;
  top: 100%;
  left: -12px;
  margin-top: 10px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-md);
  padding: 10px 0;
  min-width: 230px;
  display: none;
  z-index: 50;
}

.site-header__dropdown.site-header__dropdown--open .site-header__dropdown-menu {
  display: block;
}

.site-header__dropdown-item {
  display: flex;
  flex-direction: column;
  padding: 10px 18px;
  text-decoration: none;
  color: var(--color-charcoal);
  transition: background-color var(--transition-fast);
}

.site-header__dropdown-item:hover {
  background-color: var(--color-linen);
}

.site-header__dropdown-item-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-charcoal);
}

.site-header__dropdown-item-desc {
  font-size: 11px;
  color: var(--color-charcoal-subtle);
  margin-top: 2px;
}

/* Header Actions */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-header__docs-btn {
  background-color: var(--color-linen);
  border: 1px solid var(--color-border);
  color: var(--color-charcoal);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.site-header__docs-btn:hover {
  background-color: var(--color-linen-hover);
  border-color: var(--color-border-dark);
}

.site-header__cart-btn {
  background-color: var(--color-charcoal);
  color: #FFFFFF;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color var(--transition-fast);
}

.site-header__cart-btn:hover {
  background-color: #2F2F2F;
}

.site-header__cart-badge {
  background-color: var(--color-bronze);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  border-radius: 10px;
  padding: 1px 7px;
  min-width: 18px;
  text-align: center;
}

.site-header__mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--color-border);
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--color-charcoal);
}

@media (min-width: 992px) {
  .site-header__mobile-toggle {
    display: none;
  }
}

/* Mobile Nav Drawer */
.site-header__mobile-nav {
  display: none;
  background-color: var(--color-alabaster);
  border-bottom: 1px solid var(--color-border);
  padding: 20px 24px;
}

.site-header__mobile-nav.site-header__mobile-nav--open {
  display: block;
}

.site-header__mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.site-header__mobile-nav-link {
  text-decoration: none;
  color: var(--color-charcoal);
  font-size: 16px;
  font-weight: 500;
  display: block;
}

/* ==========================================================================
   BLOCK 2: EDITORIAL LUXURY HERO
   ========================================================================== */
.hero-gallery {
  padding-top: 56px;
  padding-bottom: 72px;
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

@media (min-width: 992px) {
  .hero-gallery {
    padding-top: 80px;
    padding-bottom: 96px;
  }
}

.hero-gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-gallery__grid {
    grid-template-columns: 1.05fr 1.15fr;
    gap: 64px;
  }
}

.hero-gallery__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-gallery__kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-sage);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-gallery__headline {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
  color: var(--color-charcoal);
}

.hero-gallery__headline em {
  font-style: italic;
  font-weight: 400;
}

.hero-gallery__description {
  font-size: 16.5px;
  line-height: 1.68;
  color: var(--color-charcoal-muted);
  margin: 0;
  max-width: 520px;
}

.hero-gallery__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}

.hero-gallery__btn-primary {
  background-color: var(--color-charcoal);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.hero-gallery__btn-primary:hover {
  background-color: #2F2F2F;
  transform: translateY(-1px);
}

.hero-gallery__btn-secondary {
  background-color: transparent;
  color: var(--color-charcoal);
  border: 1px solid var(--color-border-dark);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.hero-gallery__btn-secondary:hover {
  background-color: var(--color-linen);
  border-color: var(--color-charcoal);
}

/* Micro badges - Zero pill discipline: quiet text with typographic separators */
.hero-gallery__trust-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--color-charcoal-muted);
  margin-top: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.hero-gallery__trust-sep {
  color: var(--color-charcoal-subtle);
  user-select: none;
}

.hero-gallery__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 3D Interactive Framed Artwork Preview */
.hero-gallery__visual-wrap {
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-gallery__frame-stage {
  position: relative;
  width: 100%;
  max-width: 580px;
  transform-style: preserve-3d;
  transition: transform var(--transition-normal);
  will-change: transform;
}

.hero-gallery__frame-outer {
  background: #181512;
  border-radius: 6px;
  padding: 14px;
  box-shadow: var(--shadow-frame);
  border: 2px solid #5A432A;
  position: relative;
}

.hero-gallery__frame-matte {
  background-color: #F8F6F0;
  padding: 22px;
  border-radius: 2px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-gallery__frame-art {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 1px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.hero-gallery__frame-caption {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--color-charcoal-muted);
}

.hero-gallery__frame-caption strong {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-charcoal);
}

/* ==========================================================================
   BLOCK 3: SWAPPABLE SEASONAL PROMO CARD STRIP
   ========================================================================== */
.bundle-strip {
  padding-top: 64px;
  padding-bottom: 64px;
  background-color: var(--color-linen);
  border-bottom: 1px solid var(--color-border);
}

.bundle-strip__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px auto;
}

.bundle-strip__kicker {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-bronze-dark);
  font-weight: 600;
  margin-bottom: 8px;
}

.bundle-strip__title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 500;
  margin: 0 0 12px 0;
  color: var(--color-charcoal);
}

.bundle-strip__subtitle {
  font-size: 14.5px;
  color: var(--color-charcoal-muted);
  margin: 0;
}

.bundle-strip__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .bundle-strip__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bundle-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  box-shadow: var(--shadow-subtle);
}

.bundle-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(140, 109, 70, 0.4);
}

.bundle-card--featured {
  border: 1.5px solid var(--color-bronze);
  box-shadow: var(--shadow-card);
}

.bundle-card__tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--color-bronze-dark);
  margin-bottom: 12px;
}

.bundle-card__title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 10px 0;
  color: var(--color-charcoal);
}

.bundle-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.bundle-card__price {
  font-size: 26px;
  font-weight: 600;
  color: var(--color-charcoal);
  font-variant-numeric: tabular-nums;
}

.bundle-card__vat-note {
  font-size: 12px;
  color: var(--color-charcoal-muted);
}

.bundle-card__savings {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-sage);
  margin-bottom: 20px;
}

.bundle-card__desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--color-charcoal-muted);
  margin: 0 0 24px 0;
  flex-grow: 1;
}

.bundle-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--color-charcoal);
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
}

.bundle-card__feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.bundle-card__feature-icon {
  color: var(--color-bronze-dark);
  flex-shrink: 0;
  margin-top: 3px;
}

.bundle-card__cta {
  background-color: var(--color-charcoal);
  color: #FFFFFF;
  border: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: background-color var(--transition-fast);
}

.bundle-card__cta:hover {
  background-color: #2F2F2F;
}

.bundle-card--featured .bundle-card__cta {
  background-color: var(--color-bronze-dark);
}

.bundle-card--featured .bundle-card__cta:hover {
  background-color: #553D21;
}

/* ==========================================================================
   BLOCK 4: DYNAMIC-READY COLLECTION FILTER & PRODUCT GRID
   ========================================================================== */
.product-grid-section {
  padding-top: 72px;
  padding-bottom: 88px;
  border-bottom: 1px solid var(--color-border);
}

.product-grid-section__header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .product-grid-section__header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.product-grid-section__title-wrap {
  max-width: 500px;
}

.product-grid-section__kicker {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-sage);
  font-weight: 600;
  margin-bottom: 6px;
}

.product-grid-section__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 500;
  margin: 0;
  color: var(--color-charcoal);
}

/* Segmented Filter Control (Buttons) */
.product-grid-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background-color: var(--color-linen);
  padding: 5px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.product-grid-filter-btn {
  background: none;
  border: none;
  color: var(--color-charcoal-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.product-grid-filter-btn:hover {
  color: var(--color-charcoal);
}

.product-grid-filter-btn.active {
  background-color: var(--color-white);
  color: var(--color-charcoal);
  box-shadow: var(--shadow-subtle);
  font-weight: 600;
}

/* Product Cards Grid */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 24px;
}

@media (min-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Product Card */
.product-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

/* Image Mockup & Detail Swap */
.product-card__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--color-linen);
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity var(--transition-normal), transform var(--transition-smooth);
}

.product-card__img--detail {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
}

/* Desktop hover swap */
@media (hover: hover) {
  .product-card:hover .product-card__img--room {
    opacity: 0;
  }
  .product-card:hover .product-card__img--detail {
    opacity: 1;
    transform: scale(1.04);
  }
}

/* Mobile active toggle class */
.product-card.product-card--showing-detail .product-card__img--room {
  opacity: 0;
}
.product-card.product-card--showing-detail .product-card__img--detail {
  opacity: 1;
}

.product-card__badge-mode {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(30, 30, 30, 0.75);
  color: #FFFFFF;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  pointer-events: none;
  backdrop-filter: blur(4px);
}

.product-card__detail-toggle {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--color-border);
  color: var(--color-charcoal);
  font-size: 11px;
  font-weight: 500;
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card__category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-sage);
  font-weight: 600;
  margin-bottom: 6px;
}

.product-card__title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-charcoal);
  margin: 0 0 8px 0;
}

.product-card__ratios {
  font-size: 11.5px;
  color: var(--color-charcoal-muted);
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.product-card__price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.product-card__price {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-charcoal);
  font-variant-numeric: tabular-nums;
}

.product-card__vat-tag {
  font-size: 11px;
  color: var(--color-charcoal-subtle);
}

.product-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.product-card__btn-quick {
  background-color: var(--color-linen);
  border: 1px solid var(--color-border);
  color: var(--color-charcoal);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  padding: 9px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
}

.product-card__btn-quick:hover {
  background-color: var(--color-linen-hover);
  border-color: var(--color-border-dark);
}

.product-card__btn-cart {
  background-color: var(--color-charcoal);
  border: none;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  padding: 9px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  transition: background-color var(--transition-fast);
}

.product-card__btn-cart:hover {
  background-color: #2F2F2F;
}

/* ==========================================================================
   BLOCK 5: INTERACTIVE PRINT SIZE, ASPECT RATIO & FRAME CALCULATOR
   ========================================================================== */
.tool-ratio-section {
  padding-top: 72px;
  padding-bottom: 88px;
  background-color: var(--color-alabaster);
  border-bottom: 1px solid var(--color-border);
}

.tool-ratio-section__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px auto;
}

.tool-ratio-section__kicker {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-sage);
  font-weight: 600;
  margin-bottom: 8px;
}

.tool-ratio-section__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 500;
  margin: 0 0 12px 0;
  color: var(--color-charcoal);
}

.tool-ratio-section__subtitle {
  font-size: 15px;
  color: var(--color-charcoal-muted);
  margin: 0;
}

.tool-ratio-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 992px) {
  .tool-ratio-layout {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
  }
}

/* Calculator Form Controls */
.tool-ratio-panel {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-subtle);
}

.tool-ratio-group {
  margin-bottom: 22px;
}

.tool-ratio-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-charcoal);
  margin-bottom: 8px;
}

.tool-ratio-select,
.tool-ratio-input {
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--color-charcoal);
  background-color: var(--color-alabaster);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast);
}

.tool-ratio-select:focus,
.tool-ratio-input:focus {
  border-color: var(--color-bronze-dark);
}

.tool-ratio-unit-toggle,
.tool-ratio-orient-toggle {
  display: inline-flex;
  gap: 4px;
  background-color: var(--color-linen);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.tool-ratio-toggle-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--color-charcoal-muted);
  transition: all var(--transition-fast);
}

.tool-ratio-toggle-btn.active {
  background-color: var(--color-white);
  color: var(--color-charcoal);
  font-weight: 600;
  box-shadow: var(--shadow-subtle);
}

.tool-ratio-custom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Calculator Live Results Box */
.tool-ratio-results {
  margin-top: 28px;
  padding: 20px;
  background-color: var(--color-linen);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.tool-ratio-results__title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-sage);
  font-weight: 700;
  margin: 0 0 12px 0;
}

.tool-ratio-results__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13.5px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(30, 30, 30, 0.06);
}

.tool-ratio-results__label {
  color: var(--color-charcoal-muted);
}

.tool-ratio-results__val {
  font-weight: 600;
  color: var(--color-charcoal);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.tool-ratio-warning {
  margin-top: 14px;
  padding: 12px 14px;
  background-color: var(--color-amber-bg);
  border: 1px solid var(--color-amber-border);
  border-radius: var(--radius-sm);
  color: var(--color-amber-text);
  font-size: 12.5px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* Wall Scale Preview */
.tool-ratio-preview {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-subtle);
}

.tool-ratio-wall-stage {
  position: relative;
  width: 100%;
  height: 380px;
  background: linear-gradient(180deg, #EFECE6 0%, #E8E4DC 100%);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
}

.tool-ratio-wall-measure {
  position: absolute;
  top: 14px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--color-charcoal-muted);
  border-bottom: 1px dashed rgba(30, 30, 30, 0.2);
  padding-bottom: 4px;
}

.tool-ratio-wall-furniture {
  position: absolute;
  bottom: 0;
  width: 60%;
  height: 52px;
  background-color: #B09B82;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #FFFFFF;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tool-ratio-frame-mock {
  position: relative;
  background: #181512;
  border: 4px solid #423223;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  border-radius: 2px;
  transition: width var(--transition-normal), height var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.tool-ratio-frame-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tool-ratio-preview-controls {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.5px;
  color: var(--color-charcoal-muted);
}

/* ==========================================================================
   BLOCK 6: HOW DIGITAL ART WORKS & BEFORE/AFTER DETAIL SLIDER
   ========================================================================== */
.how-digital-section {
  padding-top: 72px;
  padding-bottom: 88px;
  background-color: var(--color-linen);
  border-bottom: 1px solid var(--color-border);
}

.how-digital-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 64px;
}

@media (min-width: 768px) {
  .how-digital-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.how-digital-step {
  background-color: var(--color-white);
  padding: 32px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.how-digital-step__num {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--color-bronze-dark);
  margin-bottom: 12px;
  line-height: 1;
}

.how-digital-step__title {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  margin: 0 0 10px 0;
  color: var(--color-charcoal);
}

.how-digital-step__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-charcoal-muted);
  margin: 0;
}

.how-digital-step__note {
  font-size: 11.5px;
  color: var(--color-charcoal-subtle);
  margin-top: 10px;
  font-style: italic;
}

/* Side-by-Side Comparison Slider */
.how-digital-compare {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  box-shadow: var(--shadow-subtle);
}

.how-digital-compare__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 32px auto;
}

.how-digital-compare__title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: var(--color-charcoal);
}

.how-digital-compare__subtitle {
  font-size: 14px;
  color: var(--color-charcoal-muted);
  margin: 0;
}

.how-digital-slider-stage {
  position: relative;
  width: 100%;
  max-width: 840px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.how-digital-slider-pane {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.how-digital-slider-pane--detail {
  width: 50%;
  overflow: hidden;
  border-right: 2px solid #FFFFFF;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.how-digital-slider-pane img {
  width: 840px;
  max-width: none;
  height: 100%;
  object-fit: cover;
  display: block;
}

.how-digital-slider-badge {
  position: absolute;
  top: 14px;
  padding: 5px 10px;
  background-color: rgba(30, 30, 30, 0.8);
  color: #FFFFFF;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
  z-index: 20;
}

.how-digital-slider-badge--left {
  left: 14px;
}

.how-digital-slider-badge--right {
  right: 14px;
}

.how-digital-slider-input {
  width: 100%;
  max-width: 840px;
  display: block;
  margin: 20px auto 0 auto;
  cursor: ew-resize;
  accent-color: var(--color-bronze-dark);
}

.how-digital-slider-hint {
  text-align: center;
  font-size: 12px;
  color: var(--color-charcoal-subtle);
  margin-top: 8px;
}

/* ==========================================================================
   BLOCK 7: QUICK-VIEW PRODUCT MODAL
   ========================================================================== */
.quick-view-dialog {
  border: none;
  border-radius: var(--radius-md);
  padding: 0;
  background: transparent;
  max-width: 920px;
  width: 92vw;
  box-shadow: var(--shadow-elevated);
}

.quick-view-dialog::backdrop {
  background-color: rgba(18, 18, 18, 0.7);
  backdrop-filter: blur(6px);
}

.quick-view-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
}

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

.quick-view-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-border);
  color: var(--color-charcoal);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  transition: all var(--transition-fast);
}

.quick-view-close-btn:hover {
  background-color: var(--color-charcoal);
  color: #FFFFFF;
}

.quick-view-visual {
  position: relative;
  background-color: var(--color-linen);
  display: flex;
  flex-direction: column;
}

.quick-view-img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.quick-view-toggle-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.85);
  border-top: 1px solid var(--color-border);
}

.quick-view-view-btn {
  background: none;
  border: 1px solid var(--color-border-dark);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--color-charcoal);
  transition: all var(--transition-fast);
}

.quick-view-view-btn.active {
  background-color: var(--color-charcoal);
  color: #FFFFFF;
  border-color: var(--color-charcoal);
}

.quick-view-content {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 85vh;
}

.quick-view-category {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-sage);
  font-weight: 600;
  margin-bottom: 6px;
}

.quick-view-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--color-charcoal);
  margin: 0 0 10px 0;
}

.quick-view-price {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-charcoal);
  margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}

.quick-view-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-charcoal-muted);
  margin: 0 0 20px 0;
}

.quick-view-meta-box {
  background-color: var(--color-linen);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 24px;
}

.quick-view-meta-title {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: 6px;
}

.quick-view-meta-list {
  font-size: 12.5px;
  color: var(--color-charcoal-muted);
  line-height: 1.5;
  margin: 0;
}

.quick-view-license {
  font-size: 12px;
  color: var(--color-charcoal-subtle);
  margin-bottom: 24px;
  line-height: 1.5;
  border-left: 2px solid var(--color-bronze);
  padding-left: 10px;
}

.quick-view-add-btn {
  background-color: var(--color-charcoal);
  color: #FFFFFF;
  border: none;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 100%;
  transition: background-color var(--transition-fast);
  margin-bottom: 12px;
}

.quick-view-add-btn:hover {
  background-color: #2F2F2F;
}

.quick-view-pdp-link {
  text-align: center;
  font-size: 13px;
  color: var(--color-bronze-dark);
  text-decoration: underline;
}

/* ==========================================================================
   CART DRAWER & TOAST FEEDBACK
   ========================================================================== */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(18, 18, 18, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.cart-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  background-color: var(--color-white);
  box-shadow: var(--shadow-elevated);
  z-index: 101;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.cart-drawer.active {
  transform: translateX(0);
}

.cart-drawer__header {
  padding: 24px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-drawer__title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  margin: 0;
}

.cart-drawer__close {
  background: none;
  border: none;
  color: var(--color-charcoal);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
}

.cart-drawer__disclaimer {
  background-color: var(--color-linen);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 24px;
  font-size: 11.5px;
  color: var(--color-charcoal-muted);
}

.cart-drawer__items {
  padding: 24px;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-drawer__item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 16px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.cart-drawer__item-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.cart-drawer__item-title {
  font-size: 13.5px;
  font-weight: 600;
  margin: 0 0 4px 0;
}

.cart-drawer__item-price {
  font-size: 13px;
  color: var(--color-charcoal-muted);
  font-variant-numeric: tabular-nums;
}

.cart-drawer__item-remove {
  background: none;
  border: none;
  color: var(--color-charcoal-subtle);
  font-size: 11.5px;
  cursor: pointer;
  text-decoration: underline;
}

.cart-drawer__footer {
  padding: 24px;
  border-top: 1px solid var(--color-border);
  background-color: var(--color-alabaster);
}

.cart-drawer__subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}

.cart-drawer__subtotal-label {
  font-size: 14px;
  font-weight: 600;
}

.cart-drawer__subtotal-val {
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.cart-drawer__checkout-btn {
  background-color: var(--color-charcoal);
  color: #FFFFFF;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 100%;
}

.cart-drawer__empty-msg {
  text-align: center;
  color: var(--color-charcoal-muted);
  font-size: 14px;
  padding: 48px 0;
}

/* Toast feedback */
.art-store-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--color-charcoal);
  color: #FFFFFF;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 120;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  pointer-events: none;
}

.art-store-toast.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   BLOCK 8: EU-AWARE TRUST FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding-top: 64px;
  padding-bottom: 40px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 56px;
}

@media (min-width: 600px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }
}

.site-footer__brand-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.site-footer__logo {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-charcoal);
}

.site-footer__about {
  font-size: 13.5px;
  color: var(--color-charcoal-muted);
  line-height: 1.6;
  max-width: 320px;
}

.site-footer__heading {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--color-charcoal);
  margin: 0 0 16px 0;
}

.site-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__link {
  color: var(--color-charcoal-muted);
  text-decoration: none;
  font-size: 13.5px;
  transition: color var(--transition-fast);
}

.site-footer__link:hover {
  color: var(--color-bronze-dark);
}

.site-footer__business-card {
  background-color: var(--color-linen);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--color-charcoal-muted);
}

.site-footer__business-card strong {
  color: var(--color-charcoal);
}

.site-footer__payment-strip {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 768px) {
  .site-footer__payment-strip {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.site-footer__payment-label {
  font-size: 12px;
  color: var(--color-charcoal-subtle);
}

.site-footer__payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer__payment-pill {
  background-color: var(--color-linen);
  border: 1px solid var(--color-border);
  font-size: 11px;
  font-weight: 500;
  color: var(--color-charcoal);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.site-footer__legal-strip {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  font-size: 12px;
  color: var(--color-charcoal-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 768px) {
  .site-footer__legal-strip {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ==========================================================================
   DEVELOPER SPECIFICATIONS & HANDOFF DRAWER (Built-in interactive guide)
   ========================================================================== */
.dev-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 520px;
  height: 100vh;
  background-color: #1A1A1A;
  color: #E2E2E2;
  box-shadow: var(--shadow-elevated);
  z-index: 102;
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.dev-drawer.active {
  transform: translateX(0);
}

.dev-drawer__header {
  padding: 20px 24px;
  border-bottom: 1px solid #2E2E2E;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #141414;
}

.dev-drawer__title {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: #D3BE9C;
  margin: 0;
}

.dev-drawer__close {
  background: none;
  border: none;
  color: #A3A3A3;
  cursor: pointer;
  padding: 4px;
}

.dev-drawer__body {
  padding: 24px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.6;
}

.dev-drawer__section {
  margin-bottom: 24px;
}

.dev-drawer__subtitle {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #D3BE9C;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 10px 0;
}

.dev-drawer__code {
  background-color: #0E0E0E;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #A8D18D;
  overflow-x: auto;
  margin-bottom: 12px;
  border: 1px solid #282828;
}

/* ==========================================================================
   REDUCED MOTION OVERRIDES
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .art-store *,
  .art-store *::before,
  .art-store *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .hero-gallery__frame-stage {
    transform: none !important;
    transition: none !important;
  }
}


/* ==========================================================================
   POLISH PASS: subtle "alive" micro-interactions
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms cubic-bezier(0.16, 1, 0.3, 1), transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.site-header--scrolled {
  box-shadow: 0 8px 24px rgba(30, 30, 30, 0.06);
}
.product-grid-section__grid {
  transition: opacity 180ms ease, transform 180ms ease;
}
.product-grid-section__grid.product-grid--fading {
  opacity: 0.35;
  transform: translateY(4px);
}
.product-card__btn-cart.is-added,
.quick-view-add-btn.is-added {
  background-color: var(--color-sage);
  color: #FFFFFF;
}
.site-header__cart-badge.badge-pop {
  animation: badgePop 420ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes badgePop {
  0% { transform: scale(1); }
  40% { transform: scale(1.28); }
  100% { transform: scale(1); }
}
.tool-ratio-results.result-flash {
  animation: resultFlash 520ms ease;
}
@keyframes resultFlash {
  0% { background-color: var(--color-sage-light); }
  100% { background-color: var(--color-linen); }
}
.hero-gallery__btn-primary,
.hero-gallery__btn-secondary,
.bundle-card__cta,
.product-card__btn-cart,
.product-card__btn-quick {
  transition: transform var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.hero-gallery__btn-primary:hover,
.bundle-card__cta:hover,
.product-card__btn-cart:hover {
  transform: translateY(-1px);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .site-header__cart-badge.badge-pop,
  .tool-ratio-results.result-flash { animation: none; }
  .product-grid-section__grid { transition: none; }
}

body.drawer-open {
  overflow: hidden;
}


/* ==========================================================================
   CHILD-THEME EMBED OVERRIDES
   The prototype used .art-store as a full-page wrapper. Inside WordPress it
   wraps individual sections, so neutralise page-level sizing here.
   ========================================================================== */
section.art-store,
div.art-store {
  min-height: 0;
}
.art-store .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms cubic-bezier(0.16, 1, 0.3, 1), transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}
.art-store .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.art-store .tool-ratio-results.result-flash {
  animation: cwResultFlash 520ms ease;
}
@keyframes cwResultFlash {
  0% { background-color: var(--color-sage-light); }
  100% { background-color: var(--color-linen); }
}
@media (prefers-reduced-motion: reduce) {
  .art-store .reveal { opacity: 1; transform: none; transition: none; }
  .art-store .tool-ratio-results.result-flash { animation: none; }
}


/* v1.1 — homepage template helpers */
.art-store .cw-empty-shop {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.art-store .cw-page-content {
  padding: 48px 0;
}
.art-store .cw-shop-grid ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--color-charcoal);
}
.art-store a.product-grid-filter-btn {
  text-decoration: none;
  display: inline-block;
}
.art-store a.bundle-card__cta {
  text-decoration: none;
  text-align: center;
  display: inline-block;
}


/* Plugin embed: full-width homepage inside Blocksy */
body.cw-design-home #main { padding: 0; }
body.cw-design-home .ct-container,
body.cw-design-home .ct-container-narrow,
body.cw-design-home .ct-container-full { max-width: none; padding: 0; }
body.cw-design-home .entry-header,
body.cw-design-home .page-title,
body.cw-design-home .hero-section[data-type="type-2"] { display: none; }
.cw-design-homepage { width: 100%; }
.cw-design-homepage .art-store { width: 100%; }


/* ==========================================================================
   v1.0.1 — Header visibility fix
   Blocksy's starter header is transparent with white links. On the light
   CasteloriaWonders homepage that makes the navigation invisible. Force a
   solid, brand-colored, readable header while this plugin is active.
   ========================================================================== */
body #header {
  background-color: #FAF8F5 !important;
  box-shadow: 0 1px 0 rgba(30, 30, 30, 0.08);
  position: relative;
  z-index: 50;
}
body #header [data-device][data-transparent] {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
}
body #header [data-row] {
  background-color: #FAF8F5 !important;
  background-image: none !important;
}
body #header [data-transparent-row="yes"] [data-id="menu"] > ul > li > a,
body #header [data-id="menu"] > ul > li > a {
  --theme-link-initial-color: #1E1E1E;
  --theme-link-hover-color: #4A5240;
  color: #1E1E1E !important;
}
body #header [data-id="menu"] > ul > li > a:hover,
body #header [data-id="menu"] > ul > li.current-menu-item > a {
  color: #4A5240 !important;
}
body #header [data-transparent-row="yes"] [data-id="cart"] .ct-cart-item,
body #header [data-transparent-row="yes"] [data-id="search"],
body #header [data-transparent-row="yes"] [data-id="account"] .ct-account-item,
body #header [data-transparent-row="yes"] [data-id="trigger"],
body #header [data-transparent-row="yes"] [data-id="socials"].ct-header-socials [data-color="custom"] {
  --theme-icon-color: #1E1E1E;
  --theme-icon-hover-color: #4A5240;
  --theme-link-initial-color: #1E1E1E;
  --theme-link-hover-color: #4A5240;
  color: #1E1E1E !important;
}
body #header .ct-cart-item svg,
body #header .ct-header-search svg,
body #header .ct-account-item svg,
body #header .ct-header-trigger svg,
body #header .ct-social-box a svg {
  fill: #1E1E1E;
}
body #header .ct-cart-item:hover svg,
body #header .ct-header-search:hover svg,
body #header .ct-account-item:hover svg,
body #header .ct-header-trigger:hover svg,
body #header .ct-social-box a:hover svg {
  fill: #4A5240;
}
body #header .ct-dynamic-count-cart {
  color: #1E1E1E;
}
/* If no logo image is set, show the brand name instead of an empty space. */
body #header .site-logo-container:empty::after {
  content: "CasteloriaWonders";
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #1E1E1E;
}


/* ==========================================================================
   v1.0.2 — UX helpers: back-to-top, focus visibility, anchor offset, hero tilt
   ========================================================================== */
.cw-back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9990;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(250, 248, 245, 0.25);
  background-color: #4A5240;
  color: #FAF8F5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(30, 30, 30, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease, background-color 180ms ease;
}
.cw-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.cw-back-to-top:hover {
  background-color: #6B4F2B;
}
.cw-back-to-top:focus-visible {
  outline: 2px solid #6B4F2B;
  outline-offset: 3px;
}
.cw-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
body #header a:focus-visible,
body #header button:focus-visible {
  outline: 2px solid #4A5240;
  outline-offset: 3px;
}
section.art-store[id],
#bundle-strip,
#tool-ratio-section,
#how-digital-section,
#cw-shop-title {
  scroll-margin-top: 96px;
}
.hero-gallery__frame-stage.is-tilting {
  transition: transform 90ms linear;
}
@media (max-width: 600px) {
  .cw-back-to-top {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 46px;
    height: 46px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cw-back-to-top {
    transition: none;
    transform: none;
  }
  .hero-gallery__frame-stage,
  .hero-gallery__frame-stage.is-tilting {
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   v1.0.3 — Customer experience: search, curated tray, wall/frame visualizer,
   ZIP explorer, paper advisor. No fake prices/discounts/VAT logic.
   ========================================================================== */

/* Product search */
.cw-product-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
}
.cw-search-wrap {
  position: relative;
  flex: 1 1 320px;
  max-width: 520px;
}
.cw-product-search {
  width: 100%;
  padding: 12px 42px 12px 14px;
  border: 1px solid var(--color-border, #E2DCD2);
  border-radius: 10px;
  background: #FFFFFF;
  color: var(--color-charcoal, #1E1E1E);
  font-size: 14px;
}
.cw-product-search:focus-visible {
  outline: 2px solid #4A5240;
  outline-offset: 2px;
}
.cw-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: #F2EFE9;
  color: #1E1E1E;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.cw-search-status {
  margin: 0;
  font-size: 12.5px;
  color: var(--color-charcoal-muted, #575757);
}
.cw-search-empty {
  text-align: center;
  padding: 32px 16px;
  border: 1px dashed var(--color-border, #E2DCD2);
  border-radius: 12px;
  background: #FFFFFF;
  margin-bottom: 20px;
}
.cw-search-empty__title {
  font-family: var(--font-serif, Georgia, serif);
  margin: 0 0 8px;
}
.cw-search-empty__text {
  margin: 0 0 16px;
  color: var(--color-charcoal-muted, #575757);
}
.cw-search-reset {
  display: inline-block;
}

/* Bookmark buttons on WooCommerce product cards */
.cw-has-bookmark {
  position: relative;
}
.cw-bookmark-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(30, 30, 30, 0.12);
  background: rgba(250, 248, 245, 0.92);
  color: #1E1E1E;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(30, 30, 30, 0.12);
}
.cw-bookmark-btn:hover {
  background: #FFFFFF;
}
.cw-bookmark-btn.is-saved {
  background: #4A5240;
  border-color: #4A5240;
  color: #FAF8F5;
}
.cw-bookmark-btn.is-saved svg {
  fill: currentColor;
}
.cw-bookmark-btn:focus-visible {
  outline: 2px solid #6B4F2B;
  outline-offset: 2px;
}

/* Curated tray toggle + drawer */
.cw-curated-toggle {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 9985;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(30, 30, 30, 0.12);
  background: #1E1E1E;
  color: #FAF8F5;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(30, 30, 30, 0.18);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.cw-curated-toggle:hover {
  background: #4A5240;
}
.cw-curated-toggle:focus-visible {
  outline: 2px solid #6B4F2B;
  outline-offset: 3px;
}
.cw-curated-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #FAF8F5;
  color: #1E1E1E;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.cw-curated-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 30, 30, 0.45);
  z-index: 9995;
}
.cw-curated-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 92vw);
  background: #FAF8F5;
  z-index: 9999;
  box-shadow: -18px 0 40px rgba(30, 30, 30, 0.18);
  transform: translateX(105%);
  transition: transform 220ms ease;
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
}
.cw-curated-drawer.is-open {
  transform: translateX(0);
}
body.cw-drawer-open {
  overflow: hidden;
}
.cw-curated-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cw-curated-title {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 22px;
  margin: 0;
  color: #1E1E1E;
}
.cw-curated-close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(30, 30, 30, 0.12);
  background: #FFFFFF;
  font-size: 22px;
  cursor: pointer;
}
.cw-curated-note {
  font-size: 12.5px;
  color: #575757;
  margin: 10px 0 16px;
}
.cw-curated-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.cw-curated-empty {
  font-size: 13px;
  color: #575757;
  border: 1px dashed #E2DCD2;
  border-radius: 10px;
  padding: 16px;
  background: #FFFFFF;
}
.cw-curated-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid #E2DCD2;
  border-radius: 10px;
  padding: 10px;
}
.cw-curated-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
}
.cw-curated-item-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1E1E1E;
  text-decoration: none;
}
.cw-curated-item-title:hover {
  color: #4A5240;
}
.cw-curated-item-price {
  display: block;
  font-size: 12px;
  color: #575757;
  margin-top: 4px;
}
.cw-curated-remove {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(30, 30, 30, 0.12);
  background: #F2EFE9;
  cursor: pointer;
  font-size: 18px;
}
.cw-curated-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.cw-curated-add-all {
  padding: 12px 16px;
  border-radius: 10px;
  border: 0;
  background: #4A5240;
  color: #FAF8F5;
  cursor: pointer;
  font-weight: 600;
}
.cw-curated-add-all:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.cw-curated-clear {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid #E2DCD2;
  background: #FFFFFF;
  cursor: pointer;
}
.cw-curated-status {
  min-height: 18px;
  font-size: 12px;
  color: #4A5240;
  margin: 10px 0 0;
}

/* Wall paint + frame finish visualizer */
.cw-visualizer-group {
  margin-top: 18px;
}
.cw-swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.cw-swatch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid #E2DCD2;
  background: #FFFFFF;
  color: #1E1E1E;
  font-size: 12px;
  cursor: pointer;
}
.cw-swatch-btn.is-active {
  border-color: #4A5240;
  box-shadow: 0 0 0 1px #4A5240 inset;
}
.cw-swatch-btn:focus-visible {
  outline: 2px solid #6B4F2B;
  outline-offset: 2px;
}
.cw-swatch-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(30, 30, 30, 0.2);
  display: inline-block;
}
.tool-ratio-wall-stage.cw-wall-alabaster {
  background: linear-gradient(180deg, #FAF8F5 0%, #F2EFE9 100%);
}
.tool-ratio-wall-stage.cw-wall-linen {
  background: linear-gradient(180deg, #E8E4DC 0%, #DED8CC 100%);
}
.tool-ratio-wall-stage.cw-wall-sage {
  background: linear-gradient(180deg, #4A5240 0%, #3E4536 100%);
}
.tool-ratio-wall-stage.cw-wall-charcoal {
  background: linear-gradient(180deg, #25282A 0%, #1B1D1F 100%);
}
.tool-ratio-wall-stage.cw-wall-terracotta {
  background: linear-gradient(180deg, #9C5840 0%, #824832 100%);
}
.tool-ratio-wall-stage.cw-wall-sage .tool-ratio-wall-measure,
.tool-ratio-wall-stage.cw-wall-charcoal .tool-ratio-wall-measure,
.tool-ratio-wall-stage.cw-wall-terracotta .tool-ratio-wall-measure {
  color: rgba(250, 248, 245, 0.85);
  border-bottom-color: rgba(250, 248, 245, 0.35);
}
.tool-ratio-frame-mock.cw-frame-walnut {
  background: #181512;
  border-color: #423223;
}
.tool-ratio-frame-mock.cw-frame-bronze {
  background: #3A2F1E;
  border-color: #8C6D46;
  box-shadow: 0 16px 36px rgba(140, 109, 70, 0.28);
}
.tool-ratio-frame-mock.cw-frame-oak {
  background: #D9CDBA;
  border-color: #C2AE92;
}
.tool-ratio-frame-mock.cw-frame-black {
  background: #101010;
  border-color: #262626;
}

/* Download confidence: ZIP explorer + paper advisor */
.cw-confidence-section {
  padding: 72px 0;
  background: #FFFFFF;
  border-bottom: 1px solid var(--color-border, #E2DCD2);
}
.cw-confidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.cw-zip-explorer,
.cw-paper-advisor {
  background: #FAF8F5;
  border: 1px solid #E2DCD2;
  border-radius: 14px;
  padding: 24px;
}
.cw-confidence-card__title {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 22px;
  margin: 0 0 10px;
  color: #1E1E1E;
}
.cw-confidence-card__note {
  font-size: 13px;
  color: #575757;
  margin: 0 0 16px;
}
.cw-zip-tree {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.cw-zip-file {
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #E2DCD2;
  background: #FFFFFF;
  font-family: var(--font-mono, monospace);
  font-size: 12.5px;
  cursor: pointer;
  color: #1E1E1E;
}
.cw-zip-file.is-active {
  border-color: #4A5240;
  background: #F2EFE9;
}
.cw-zip-file:focus-visible {
  outline: 2px solid #6B4F2B;
  outline-offset: 2px;
}
.cw-zip-detail {
  font-size: 13px;
  color: #1E1E1E;
  background: #FFFFFF;
  border: 1px dashed #E2DCD2;
  border-radius: 8px;
  padding: 12px;
}
.cw-paper-item {
  padding: 12px 0;
  border-bottom: 1px solid #E2DCD2;
}
.cw-paper-item:last-of-type {
  border-bottom: 0;
}
.cw-paper-item h4 {
  margin: 0 0 6px;
  font-size: 14px;
  color: #1E1E1E;
}
.cw-paper-item p {
  margin: 0;
  font-size: 13px;
  color: #575757;
}
.cw-labs-note {
  margin: 14px 0 0;
  font-size: 12px;
  color: #575757;
}

@media (max-width: 900px) {
  .cw-confidence-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .cw-curated-toggle {
    left: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    padding: 10px 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cw-curated-drawer {
    transition: none;
  }
}

/* ==========================================================================
   v1.0.4 — Scroll-stopping showcase: spotlight, builder, gallery walk,
   macro zoom, curator dock. Real WooCommerce products only.
   ========================================================================== */
.cw-showcase-section {
  padding: 72px 0;
  background: #FAF8F5;
  border-bottom: 1px solid #E2DCD2;
}
.cw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.cw-btn-primary {
  background: #4A5240;
  color: #FAF8F5;
}
.cw-btn-primary:hover { background: #6B4F2B; color: #FAF8F5; }
.cw-btn-secondary {
  background: #FFFFFF;
  color: #1E1E1E;
  border-color: #E2DCD2;
}
.cw-btn-secondary:hover { border-color: #4A5240; color: #4A5240; }
.cw-btn-ghost {
  background: transparent;
  color: #1E1E1E;
  border-color: #E2DCD2;
}
.cw-btn:focus-visible,
.cw-spotlight-card:focus-visible,
.cw-builder-frame:focus-visible,
.cw-dock-toggle:focus-visible {
  outline: 2px solid #6B4F2B;
  outline-offset: 3px;
}

/* Spotlight */
.cw-spotlight-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.cw-spotlight-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cw-spotlight-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  text-align: left;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #E2DCD2;
  background: #FFFFFF;
  cursor: pointer;
}
.cw-spotlight-card.is-active {
  border-color: #4A5240;
  box-shadow: 0 0 0 1px #4A5240 inset;
}
.cw-spotlight-card img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}
.cw-spotlight-card-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #1E1E1E;
  line-height: 1.35;
}
.cw-spotlight-stage {
  background: #FFFFFF;
  border: 1px solid #E2DCD2;
  border-radius: 16px;
  padding: 20px;
}
.cw-spotlight-canvas {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #EFECE6;
  cursor: crosshair;
}
.cw-spotlight-canvas img {
  display: block;
  width: 100%;
  height: auto;
}
.cw-loupe {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  border: 3px solid rgba(250, 248, 245, 0.9);
  box-shadow: 0 18px 40px rgba(30, 30, 30, 0.28), inset 0 0 0 1px rgba(30, 30, 30, 0.15);
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms ease;
  z-index: 3;
}
.cw-loupe.is-visible { opacity: 1; }
.cw-spotlight-lighting {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 30% 20%, rgba(255, 196, 120, 0.28), rgba(20, 16, 12, 0.45));
  opacity: 0;
  transition: opacity 240ms ease;
}
.cw-spotlight-stage.is-evening .cw-spotlight-lighting { opacity: 1; }
.cw-spotlight-meta { margin-top: 16px; }
.cw-spotlight-title {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 22px;
  margin: 0 0 6px;
  color: #1E1E1E;
}
.cw-spotlight-price { margin-bottom: 12px; color: #1E1E1E; }
.cw-spotlight-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cw-spotlight-hint { margin: 12px 0 0; font-size: 12px; color: #575757; }

/* Builder */
.cw-builder-stage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: end;
  padding: 28px;
  border-radius: 16px;
  background: linear-gradient(180deg, #EFECE6 0%, #E8E4DC 100%);
  border: 1px solid #E2DCD2;
}
.cw-builder-frame {
  border: 10px solid #423223;
  background: #181512;
  border-radius: 4px;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(30, 30, 30, 0.22);
  overflow: hidden;
}
.cw-builder-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.cw-builder-frame:nth-child(2) img { aspect-ratio: 4 / 3; }
.cw-builder-caption {
  display: block;
  background: #FAF8F5;
  color: #1E1E1E;
  font-size: 11.5px;
  padding: 8px;
  line-height: 1.35;
}
.cw-builder-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}
.cw-builder-status {
  text-align: center;
  min-height: 20px;
  margin: 12px 0 0;
  font-size: 12.5px;
  color: #4A5240;
}

/* Gallery walk */
.cw-gallery-walk {
  position: relative;
  height: 320vh;
  background: #1E1E1E;
}
.cw-gallery-walk-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.cw-walk-header { margin-bottom: 24px; }
.cw-gallery-walk .bundle-strip__kicker { color: #C9BFAF; }
.cw-gallery-walk .bundle-strip__title { color: #FAF8F5; }
.cw-gallery-walk-viewport { overflow: hidden; width: 100%; }
.cw-gallery-walk-track {
  display: flex;
  gap: 32px;
  padding: 20px 6vw;
  will-change: transform;
}
.cw-walk-frame {
  flex: 0 0 auto;
  width: min(320px, 70vw);
  background: #FAF8F5;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transform-style: preserve-3d;
}
.cw-walk-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 6px;
}
.cw-walk-caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
  font-size: 12.5px;
  color: #1E1E1E;
}
.cw-gallery-walk.is-static { height: auto; }
.cw-gallery-walk.is-static .cw-gallery-walk-sticky {
  position: static;
  height: auto;
  padding: 48px 0;
}
.cw-gallery-walk.is-static .cw-gallery-walk-viewport { overflow-x: auto; }
.cw-gallery-walk.is-static .cw-gallery-walk-track { transform: none !important; }
.cw-gallery-walk.is-static .cw-walk-frame { transform: none !important; opacity: 1 !important; }

/* Macro zoom */
.cw-macro-section {
  position: relative;
  height: 260vh;
  background: #FAF8F5;
}
.cw-macro-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.cw-macro-frame {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #E2DCD2;
  box-shadow: 0 24px 60px rgba(30, 30, 30, 0.18);
  background: #FFFFFF;
}
.cw-macro-frame img {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: center center;
  will-change: transform;
}
.cw-macro-copy p { color: #575757; }
.cw-macro-section.is-static { height: auto; }
.cw-macro-section.is-static .cw-macro-sticky {
  position: static;
  height: auto;
  padding: 64px 24px;
}
.cw-macro-section.is-static .cw-macro-frame img { transform: none !important; }

/* Curator dock */
.cw-curator-dock {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 16px);
  z-index: 9980;
  display: grid;
  grid-template-columns: 52px minmax(140px, 260px) auto;
  gap: 12px;
  align-items: center;
  background: rgba(30, 30, 30, 0.94);
  color: #FAF8F5;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 18px 40px rgba(30, 30, 30, 0.28);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
  max-width: min(720px, calc(100vw - 32px));
}
.cw-curator-dock.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.cw-dock-img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
}
.cw-dock-title {
  display: block;
  font-size: 12.5px;
  line-height: 1.35;
  color: #FAF8F5;
}
.cw-dock-price {
  display: block;
  font-size: 12px;
  color: #C9BFAF;
  margin-top: 2px;
}
.cw-dock-actions { display: flex; align-items: center; gap: 8px; }
.cw-curator-dock .cw-btn-secondary {
  background: transparent;
  color: #FAF8F5;
  border-color: rgba(250, 248, 245, 0.3);
}
.cw-dock-toggle {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(250, 248, 245, 0.3);
  background: transparent;
  color: #FAF8F5;
  cursor: pointer;
  font-size: 18px;
}
.cw-dock-status {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 11.5px;
  color: #C9BFAF;
  min-height: 14px;
}
.cw-curator-dock.is-minimized {
  grid-template-columns: auto;
  padding: 8px;
}
.cw-curator-dock.is-minimized .cw-dock-img,
.cw-curator-dock.is-minimized .cw-dock-info,
.cw-curator-dock.is-minimized .cw-dock-actions .cw-btn,
.cw-curator-dock.is-minimized .cw-dock-status {
  display: none;
}

@media (max-width: 900px) {
  .cw-spotlight-layout { grid-template-columns: 1fr; }
  .cw-spotlight-cards { flex-direction: row; overflow-x: auto; }
  .cw-spotlight-card { min-width: 220px; }
  .cw-builder-stage { grid-template-columns: 1fr; }
  .cw-macro-sticky { grid-template-columns: 1fr; height: auto; min-height: 100vh; }
  .cw-curator-dock {
    grid-template-columns: 44px 1fr auto;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
  .cw-dock-actions .cw-btn-secondary { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cw-loupe,
  .cw-spotlight-lighting,
  .cw-curator-dock,
  .cw-btn {
    transition: none;
  }
  .cw-gallery-walk-track,
  .cw-walk-frame,
  .cw-macro-frame img {
    transform: none !important;
  }
}

/* Quick view dialog */
.cw-quick-view {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(30, 30, 30, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cw-quick-view[hidden] { display: none; }
.cw-quick-view-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  background: #FAF8F5;
  border-radius: 16px;
  padding: 24px;
  max-width: 760px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(30, 30, 30, 0.3);
}
.cw-qv-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #E2DCD2;
  background: #FFFFFF;
  font-size: 22px;
  cursor: pointer;
}
.cw-qv-img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}
.cw-qv-title {
  font-family: var(--font-serif, Georgia, serif);
  margin: 0 0 8px;
  color: #1E1E1E;
}
.cw-qv-price { margin: 0 0 16px; color: #1E1E1E; }
.cw-qv-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cw-qv-status { min-height: 18px; margin: 12px 0 0; font-size: 12px; color: #4A5240; }
body.cw-qv-open { overflow: hidden; }
@media (max-width: 700px) {
  .cw-quick-view-panel { grid-template-columns: 1fr; }
}

/* ==========================================================================
   v1.0.4 — Gallery builder presets/handle + Room Studio
   ========================================================================== */
.cw-builder-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 18px;
}
.cw-builder-preset[aria-pressed="true"] {
  border-color: #4A5240;
  color: #4A5240;
  background: #F0F2ED;
}
.cw-builder-frame { position: relative; }
.cw-builder-handle {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(250, 248, 245, 0.9);
  color: #1E1E1E;
  font-size: 16px;
  cursor: grab;
  touch-action: none;
  box-shadow: 0 4px 12px rgba(30, 30, 30, 0.18);
}
.cw-builder-frame.is-dragging { opacity: 0.75; cursor: grabbing; }
.cw-builder-frame.is-dragging .cw-builder-handle { cursor: grabbing; }

/* Room Studio */
.cw-room-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 28px;
  align-items: start;
}
.cw-room-scene {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #E2DCD2;
  background: #E8E2D6;
  box-shadow: 0 24px 60px rgba(30, 30, 30, 0.16);
  --cw-wall: #E8E2D6;
  --cw-sofa: #B9A98F;
  --cw-room-split: 50%;
  --cw-peel: 0;
}
.cw-room-layer { position: absolute; inset: 0; }
.cw-room-wall {
  position: absolute;
  inset: 0 0 18% 0;
  background: var(--cw-wall);
  transition: background-color 200ms ease;
}
.cw-room-floor {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 18%;
  background: linear-gradient(180deg, #C9BBA6 0%, #B7A88F 100%);
}
.cw-room-sofa {
  position: absolute;
  left: 50%;
  bottom: 9%;
  transform: translateX(-50%);
  width: 48%;
  height: 24%;
  background: var(--cw-sofa);
  border-radius: 18px 18px 10px 10px;
  box-shadow: 0 18px 30px rgba(30, 30, 30, 0.22);
  transition: background-color 200ms ease;
  display: flex;
  gap: 6%;
  align-items: flex-start;
  justify-content: center;
  padding: 6% 8% 0;
}
.cw-room-cushion {
  width: 38%;
  height: 52%;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 -6px 12px rgba(30, 30, 30, 0.12);
}
.cw-room-after { clip-path: inset(0 calc(100% - var(--cw-room-split)) 0 0); }
.cw-room-frame {
  position: absolute;
  top: 10%;
  left: 33%;
  width: 34%;
  aspect-ratio: 3 / 4;
  perspective: 800px;
}
.cw-peel-layer {
  position: absolute;
  inset: 0;
  border-radius: 3px;
  transition: transform 180ms ease;
  will-change: transform;
}
.cw-peel-frame {
  border: 10px solid #423223;
  background: #181512;
  box-shadow: 0 20px 40px rgba(30, 30, 30, 0.28);
  transform: translate3d(calc(var(--cw-peel) * -26px), calc(var(--cw-peel) * -18px), 0) rotateY(calc(var(--cw-peel) * -8deg));
}
.cw-peel-mat {
  inset: 10px;
  background: #FAF8F5;
  transform: translate3d(calc(var(--cw-peel) * -8px), calc(var(--cw-peel) * -6px), 0);
}
.cw-peel-art {
  inset: 18px;
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  object-fit: cover;
  transform: translate3d(calc(var(--cw-peel) * 22px), calc(var(--cw-peel) * 14px), 0) rotateY(calc(var(--cw-peel) * 8deg));
  box-shadow: 0 12px 24px rgba(30, 30, 30, 0.2);
}
.cw-room-empty-label {
  position: absolute;
  top: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(30, 30, 30, 0.72);
  color: #FAF8F5;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cw-room-before .cw-room-empty-label { right: 14px; }
.cw-room-after .cw-room-empty-label { left: 14px; }
.cw-room-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(250, 248, 245, 0.95);
  box-shadow: 0 0 0 1px rgba(30, 30, 30, 0.15);
  pointer-events: none;
}
.cw-room-divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #FAF8F5;
  border: 1px solid #E2DCD2;
  box-shadow: 0 8px 18px rgba(30, 30, 30, 0.22);
}
.cw-room-divider span::before,
.cw-room-divider span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 2px solid #4A5240;
  border-left: 2px solid #4A5240;
}
.cw-room-divider span::before { left: 9px; transform: translateY(-50%) rotate(-45deg); }
.cw-room-divider span::after { right: 9px; transform: translateY(-50%) rotate(135deg); }
.cw-room-lighting {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 30% 20%, rgba(255, 196, 120, 0.28), rgba(20, 16, 12, 0.45));
  opacity: 0;
  transition: opacity 240ms ease;
}
.cw-room-scene.is-evening .cw-room-lighting { opacity: 1; }
.cw-room-controls {
  background: #FFFFFF;
  border: 1px solid #E2DCD2;
  border-radius: 16px;
  padding: 20px;
}
.cw-room-range-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #1E1E1E;
  margin: 0 0 8px;
}
.cw-room-range {
  width: 100%;
  accent-color: #4A5240;
  margin-bottom: 18px;
}
.cw-room-swatches {
  border: 0;
  padding: 0;
  margin: 0 0 16px;
}
.cw-room-swatches legend {
  font-size: 12.5px;
  font-weight: 600;
  color: #1E1E1E;
  margin-bottom: 8px;
  padding: 0;
}
.cw-room-swatch-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cw-room-swatch {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid #FFFFFF;
  background: var(--swatch);
  box-shadow: 0 0 0 1px #E2DCD2;
  cursor: pointer;
}
.cw-room-swatch.is-active { box-shadow: 0 0 0 2px #4A5240; }
.cw-room-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.cw-room-select-label { font-size: 12.5px; font-weight: 600; color: #1E1E1E; }
.cw-room-select {
  flex: 1 1 180px;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid #E2DCD2;
  background: #FFFFFF;
  color: #1E1E1E;
  font-size: 13px;
}
.cw-room-note { margin: 6px 0 0; font-size: 12px; color: #575757; }
@media (max-width: 900px) {
  .cw-room-layout { grid-template-columns: 1fr; }
  .cw-room-scene { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  .cw-room-wall,
  .cw-room-sofa,
  .cw-peel-layer,
  .cw-room-lighting {
    transition: none;
  }
}

/* ==========================================================================
   v1.0.5 — AI Studio v2 atmosphere-spotlight fidelity (real products only)
   ========================================================================== */
.cw-spotlight .cw-spotlight-card {
  display: block;
  text-align: left;
  padding: 20px;
  border-radius: 10px;
  background: #F2EFE9;
  border: 1px solid rgba(30, 30, 30, 0.09);
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.cw-spotlight .cw-spotlight-card:hover {
  background: #FFFFFF;
  border-color: rgba(140, 109, 70, 0.4);
  transform: translateX(4px);
}
.cw-spotlight .cw-spotlight-card.is-active {
  background: #FFFFFF;
  border: 1.5px solid #8C6D46;
  box-shadow: 0 10px 30px -6px rgba(30, 30, 30, 0.07);
  transform: translateX(6px);
}
.cw-atmosphere-num {
  display: block;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 600;
  color: #6B4F2B;
  margin-bottom: 6px;
}
.cw-atmosphere-title {
  display: block;
  font-family: var(--font-serif, Georgia, serif);
  font-size: 19px;
  font-weight: 600;
  color: #1E1E1E;
  margin-bottom: 8px;
  line-height: 1.3;
}
.cw-atmosphere-desc {
  display: block;
  font-size: 13px;
  color: #575757;
  line-height: 1.55;
  margin-bottom: 12px;
}
.cw-atmosphere-specs {
  display: block;
  font-size: 11.5px;
  color: #4A5240;
  font-weight: 600;
}
.cw-spotlight-frame-outer {
  background: #1A140F;
  padding: 12px;
  border: 3px solid #5A432A;
  border-radius: 4px;
  box-shadow: 0 24px 60px -10px rgba(10, 10, 10, 0.28);
}
.cw-spotlight-frame-matte {
  background: #F8F6F0;
  padding: 18px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.2);
}
.cw-spotlight-frame-matte img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.cw-spotlight .cw-spotlight-canvas {
  background: linear-gradient(180deg, #F5F2EB 0%, #EAE5DB 100%);
  padding: 28px;
  border-radius: 10px;
}
.cw-spotlight .cw-spotlight-meta {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(30, 30, 30, 0.1);
}
@media (max-width: 900px) {
  .cw-spotlight .cw-spotlight-cards { flex-direction: column; overflow: visible; }
  .cw-spotlight .cw-spotlight-card { min-width: 0; }
}
