/*
 * EmaParaschivArt — Elite Wabi-Sabi & Japandi Fine Art Gallery Stylesheet
 * Architectural Principles: Organic minimalism, tactile textures, refined typography, responsive frame simulator.
 */

:root {
  /* 1. Palette & Surface Tokens (Wabi-Sabi / Japandi Luxury) */
  --bg-canvas: #FBF9F5;
  --bg-surface: #F2EFE9;
  --bg-card: #F7F5F0;
  --bg-stage: #EFECE6;
  
  --border-micro: #E6E2DD;
  --border-subtle: rgba(28, 27, 25, 0.08);
  --border-medium: rgba(28, 27, 25, 0.16);

  --text-ink: #1C1B19;
  --text-stone: #78736A;
  --text-taupe: #9E9990;
  --text-light: #B4AFA7;

  --accent-terracotta: #C86D51;
  --accent-bronze: #A88348;
  --accent-brass: #BCA05E;

  /* Wood & Finish Grain Tokens */
  --frame-oak: #C8A47E;
  --frame-walnut: #4A3B32;
  --frame-black: #1C1B19;
  --frame-white: #FAF9F6;
  --mat-board: #F7F5EE;

  /* 2. Typography Tokens */
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* 3. Diffused Ambient Lighting (No harsh black drop-shadows) */
  --shadow-ambient: 0 20px 50px rgba(28, 27, 25, 0.08);
  --shadow-card: 0 4px 20px rgba(28, 27, 25, 0.04);
  --shadow-card-hover: 0 20px 50px rgba(28, 27, 25, 0.09);
  --shadow-modal: 0 30px 80px -20px rgba(28, 27, 25, 0.22);
  --shadow-frame: 0 20px 48px -12px rgba(28, 27, 25, 0.2), inset 0 1px 2px rgba(255,255,255,0.4);
  --shadow-tactile: 0 2px 8px rgba(28, 27, 25, 0.04);

  /* Radius & Motion */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-pill: 9999px;
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-morph: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* ==========================================================
   TYPOGRAPHY HIERARCHY
   ========================================================== */
h1, h2, h3, h4, .serif-heading {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--text-ink);
  text-wrap: balance;
}

.text-uppercase-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-stone);
  font-weight: 500;
}

/* ==========================================================
   SITE HEADER & NAVIGATION
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 245, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-micro);
  transition: var(--transition-smooth);
}

.header-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 26px;
  letter-spacing: 0.12em;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--text-ink);
}

.brand-subtitle {
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-stone);
  margin-top: -1px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-stone);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-ink);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--text-ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.etsy-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-micro);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-ink);
  background: rgba(255, 255, 255, 0.75);
  transition: var(--transition-smooth);
}

.etsy-badge-link:hover {
  background: #FFF;
  border-color: var(--text-ink);
  box-shadow: var(--shadow-tactile);
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--text-ink);
  color: #FAF8F5;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
}

.cart-button:hover {
  background: #2E2D2B;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(28, 27, 25, 0.15);
}

.ema-cart-count {
  background: var(--accent-terracotta);
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================
   HERO EDITORIAL SECTION
   ========================================================== */
.hero-section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 70px 40px 40px;
}

.hero-quote-block {
  text-align: center;
  max-width: 880px;
  margin: 0 auto 56px;
}

.hero-tagline {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-terracotta);
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-heading {
  font-size: 52px;
  line-height: 1.15;
  font-weight: 300;
  margin-bottom: 24px;
  color: var(--text-ink);
  letter-spacing: -0.01em;
}

.hero-heading em {
  font-style: italic;
  font-family: var(--font-serif);
}

.hero-description {
  font-size: 16px;
  color: var(--text-stone);
  max-width: 660px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.85;
  text-wrap: pretty;
}

/* Category Filter Bar */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-micro);
}

.filter-chip {
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-micro);
  background: transparent;
  color: var(--text-stone);
  font-size: 12px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: var(--font-sans);
  font-weight: 400;
}

.filter-chip:hover {
  border-color: var(--text-stone);
  color: var(--text-ink);
  background: rgba(255, 255, 255, 0.5);
}

.filter-chip.active {
  background: var(--text-ink);
  color: #FAF8F5;
  border-color: var(--text-ink);
  box-shadow: 0 2px 8px rgba(28, 27, 25, 0.12);
}

.gallery-stats {
  text-align: center;
  font-size: 11px;
  color: var(--text-taupe);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 40px;
}

/* ==========================================================
   IMMERSIVE FULL-BLEED GALLERY GRID & ARTWORK CARDS
   ========================================================== */
.gallery-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

.artworks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 52px 38px;
  margin-bottom: 100px;
}

.artwork-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-micro);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.artwork-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(200, 109, 81, 0.28);
}

.artwork-media-wrap {
  position: relative;
  background: var(--bg-stage);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  cursor: pointer;
}

.artwork-thumbnail-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.artwork-card:hover .artwork-thumbnail-container {
  transform: scale(1.025);
}

.artwork-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 8px 24px rgba(28, 27, 25, 0.1);
  outline: 1px solid rgba(0, 0, 0, 0.05);
  outline-offset: -1px;
}

.artwork-card-actions {
  position: absolute;
  bottom: 18px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  pointer-events: none;
}

.artwork-card:hover .artwork-card-actions {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.btn-quick-config {
  width: 100%;
  max-width: 240px;
  padding: 10px 18px;
  background: rgba(251, 249, 245, 0.94);
  backdrop-filter: blur(10px);
  color: var(--text-ink);
  border: 1px solid var(--border-micro);
  border-radius: var(--radius-pill);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
  box-shadow: 0 4px 16px rgba(28, 27, 25, 0.08);
}

.btn-quick-config:hover {
  background: var(--text-ink);
  color: #FAF8F5;
  border-color: var(--text-ink);
  box-shadow: 0 6px 20px rgba(28, 27, 25, 0.2);
}

.artwork-meta {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-card);
}

.artwork-categories {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-terracotta);
  font-weight: 500;
}

.artwork-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text-ink);
}

.artwork-pricing-tiers {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-stone);
}

.price-tag {
  color: var(--text-ink);
  font-weight: 600;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.format-pill-micro {
  font-size: 10px;
  padding: 3px 8px;
  background: rgba(242, 239, 233, 0.7);
  border: 1px solid var(--border-micro);
  border-radius: var(--radius-pill);
  color: var(--text-stone);
}

/* ==========================================================
   INTERACTIVE FRAME CONFIGURATOR ISLAND & MODAL
   ========================================================== */
.configurator-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.configurator-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 27, 25, 0.45);
  backdrop-filter: blur(12px);
}

.configurator-modal-content {
  position: relative;
  z-index: 2;
  background: var(--bg-canvas);
  border: 1px solid var(--border-micro);
  border-radius: var(--radius-lg);
  max-width: 1220px;
  width: 95%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-modal);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}

.btn-close-modal {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border-micro);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  color: var(--text-stone);
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-smooth);
}

.btn-close-modal:hover {
  background: #FFF;
  color: var(--text-ink);
  border-color: var(--text-ink);
}

/* Configurator Preview Stage */
.configurator-stage {
  background: var(--bg-surface);
  padding: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border-micro);
  position: relative;
  min-height: 540px;
}

/* Floating View Toggle Capsule */
.stage-view-toggles {
  position: absolute;
  top: 22px;
  left: 22px;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-micro);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(28, 27, 25, 0.05);
  z-index: 5;
}

.view-toggle-btn {
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--text-stone);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.view-toggle-btn.active {
  background: var(--text-ink);
  color: #FAF8F5;
  box-shadow: 0 2px 8px rgba(28, 27, 25, 0.15);
}

/* Real-Time Studio Frame Visualizer */
.artwork-frame-visualizer {
  position: relative;
  transition: var(--transition-morph);
  box-shadow: var(--shadow-frame);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* Hardwood Frame Moldings with Realistic Multi-Layer Grain Gradients */
.artwork-frame-visualizer.frame-oak {
  background-color: var(--frame-oak);
  border: 16px solid var(--frame-oak);
  border-image: linear-gradient(135deg, #e4cbb4 0%, #be9368 35%, #d8b894 70%, #9a734e 100%) 16;
  box-shadow: 0 24px 56px -12px rgba(28, 27, 25, 0.22), inset 0 2px 4px rgba(255,255,255,0.4), inset 0 -2px 4px rgba(0,0,0,0.25);
}

.artwork-frame-visualizer.frame-walnut {
  background-color: var(--frame-walnut);
  border: 16px solid var(--frame-walnut);
  border-image: linear-gradient(135deg, #6b5549 0%, #382921 35%, #5a4437 70%, #2b1f19 100%) 16;
  box-shadow: 0 24px 56px -12px rgba(28, 27, 25, 0.32), inset 0 2px 4px rgba(255,255,255,0.25), inset 0 -2px 4px rgba(0,0,0,0.45);
}

.artwork-frame-visualizer.frame-black {
  background-color: var(--frame-black);
  border: 16px solid var(--frame-black);
  border-image: linear-gradient(135deg, #2e2c2b 0%, #151413 35%, #242322 70%, #111110 100%) 16;
  box-shadow: 0 24px 56px -12px rgba(28, 27, 25, 0.35), inset 0 1px 2px rgba(255,255,255,0.18);
}

.artwork-frame-visualizer.frame-white {
  background-color: var(--frame-white);
  border: 16px solid var(--frame-white);
  border-image: linear-gradient(135deg, #ffffff 0%, #ede9e3 35%, #faf9f6 70%, #dedbd4 100%) 16;
  box-shadow: 0 20px 48px -12px rgba(28, 27, 25, 0.14), inset 0 2px 4px rgba(255,255,255,0.8), inset 0 -1px 3px rgba(0,0,0,0.08);
}

.artwork-frame-visualizer.frame-brass {
  border: 14px solid var(--accent-brass);
  border-image: linear-gradient(135deg, #f7e4a8 0%, #b8933b 35%, #fcebb5 70%, #8f6c1e 100%) 14;
  box-shadow: 0 24px 56px -12px rgba(28, 27, 25, 0.28), inset 0 2px 4px rgba(255,255,255,0.6), inset 0 -2px 4px rgba(0,0,0,0.35);
}

.artwork-frame-visualizer.frame-none {
  border: none;
  box-shadow: 0 16px 40px -10px rgba(28, 27, 25, 0.18);
}

/* Archival Passe-Partout Mat */
.mat-board-layer {
  width: 100%;
  height: 100%;
  padding: 24px;
  background-color: var(--mat-board);
  box-shadow: inset 0 2px 5px rgba(28, 27, 25, 0.1), inset 0 0 1px rgba(28, 27, 25, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: padding 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.mat-board-layer.no-mat {
  padding: 0;
  box-shadow: none;
}

.framed-artwork-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: inset 0 0 2px rgba(0,0,0,0.15);
  transition: aspect-ratio 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================
   IN-ROOM WALL SCALE SIMULATOR (183CM BED DATUM)
   ========================================================== */
.wall-scale-stage {
  display: none;
  width: 100%;
  aspect-ratio: 1200 / 896;
  max-height: 480px;
  position: relative;
  background: #EBE7DE url('../images/japandi-bedroom-wall.jpg') center bottom / cover no-repeat;
  border-radius: var(--radius-sm);
  overflow: hidden;
  align-items: center;
  justify-content: center;
  transition: var(--transition-morph);
  box-shadow: inset 0 0 20px rgba(28, 27, 25, 0.04);
}

.wall-scale-stage.active {
  display: flex;
  animation: stageFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes stageFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.wall-ruler-metric {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-stone);
  background: rgba(251, 249, 245, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-micro);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(28, 27, 25, 0.06);
  z-index: 4;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .wall-ruler-metric {
    font-size: 8.5px;
    padding: 3px 8px;
    top: 8px;
    right: 8px;
    letter-spacing: 0.06em;
  }
}

.wall-sofa-silhouette {
  display: none;
}

.wall-artwork-scaler {
  position: absolute;
  bottom: 26%;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 22px 48px -8px rgba(28, 27, 25, 0.45), 0 6px 16px rgba(28, 27, 25, 0.22);
  overflow: hidden;
  border-radius: 1px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wall-artwork-mat-inner {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FAF8F5;
  padding: 5%;
  box-shadow: inset 0 1px 3px rgba(28, 27, 25, 0.12);
  transition: padding 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.wall-artwork-mat-inner.no-mat {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.wall-artwork-scaler img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================
   CONFIGURATOR CONTROLS SIDEBAR & TACTILE SELECTION CARDS
   ========================================================== */
.configurator-controls {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: var(--bg-canvas);
}

.config-header {
  border-bottom: 1px solid var(--border-micro);
  padding-bottom: 18px;
}

.config-product-title {
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1.2;
  margin-top: 4px;
  margin-bottom: 8px;
  color: var(--text-ink);
}

.config-price-display {
  font-size: 26px;
  font-weight: 500;
  color: var(--text-ink);
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-variant-numeric: tabular-nums;
}

.config-price-note {
  font-size: 12px;
  color: var(--text-stone);
  font-weight: 400;
}

.config-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.group-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.group-selection-value {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-ink);
}

/* Tactile Selection Cards with Ring Highlights */
.pills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}

.pill-btn {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-micro);
  background: var(--bg-card);
  color: var(--text-ink);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pill-btn:hover {
  border-color: var(--text-stone);
  background: #FFF;
  transform: translateY(-1px);
}

.pill-btn.active {
  border-color: var(--text-ink);
  box-shadow: 0 0 0 1px var(--text-ink), 0 4px 12px rgba(28, 27, 25, 0.05);
  background: #FFF;
  color: var(--text-ink);
}

.pill-subtext {
  font-size: 10px;
  color: var(--text-stone);
}

/* Wood Finish Swatches */
.frame-swatches {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.swatch-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
}

.swatch-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 6px rgba(28, 27, 25, 0.15);
}

.swatch-btn:hover .swatch-circle {
  transform: scale(1.06);
}

.swatch-btn.active .swatch-circle {
  box-shadow: 0 0 0 2px var(--bg-canvas), 0 0 0 4px var(--text-ink);
  transform: scale(1.08);
}

.swatch-fill {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.25);
}

.swatch-fill.oak { background: linear-gradient(135deg, #e4cbb4 0%, #be9368 50%, #a87d52 100%); }
.swatch-fill.walnut { background: linear-gradient(135deg, #6b5549 0%, #382921 50%, #2d211a 100%); }
.swatch-fill.black { background: linear-gradient(135deg, #2e2c2b 0%, #151413 50%, #242322 100%); }
.swatch-fill.white { background: linear-gradient(135deg, #ffffff 0%, #ede9e3 50%, #dedbd4 100%); border: 1px solid #D5D1C8; }
.swatch-fill.brass { background: linear-gradient(135deg, #f7e4a8 0%, #b8933b 50%, #8f6c1e 100%); }
.swatch-fill.none { background: repeating-linear-gradient(45deg, #eee, #eee 3px, #fff 3px, #fff 6px); }

.swatch-label {
  font-size: 11px;
  color: var(--text-stone);
}

/* Mat Toggle Switch */
.mat-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-micro);
}

.switch-label {
  font-size: 13px;
  color: var(--text-ink);
}

.switch-input {
  cursor: pointer;
  width: 18px;
  height: 18px;
  accent-color: var(--text-ink);
}

/* Action Area */
.config-action-row {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.btn-add-curation {
  width: 100%;
  padding: 17px;
  background: var(--text-ink);
  color: #FAF8F5;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-variant-numeric: tabular-nums;
}

.btn-add-curation:hover {
  background: #2E2D2B;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(28, 27, 25, 0.18);
}

.btn-add-curation.loading {
  opacity: 0.8;
  animation: buttonPulse 1.2s infinite ease-in-out;
  pointer-events: none;
}

@keyframes buttonPulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.99); }
}

.craftsmanship-callouts {
  font-size: 11px;
  color: var(--text-stone);
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1.5;
}

.callout-item {
  display: flex;
  align-items: center;
  gap: 7px;
}

/* ==========================================================
   ARCHIVAL SHOPPING BAG DRAWER (SLIDE-OUT MANIFEST)
   ========================================================== */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

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

.cart-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 27, 25, 0.32);
  backdrop-filter: blur(8px);
}

.cart-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 440px;
  max-width: 90vw;
  background: var(--bg-canvas);
  box-shadow: -12px 0 40px rgba(28, 27, 25, 0.15);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  z-index: 2;
}

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

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

.cart-drawer-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--text-ink);
  margin-top: 2px;
}

.btn-close-drawer {
  background: none;
  border: 1px solid var(--border-micro);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  color: var(--text-stone);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-close-drawer:hover {
  background: #FFF;
  color: var(--text-ink);
  border-color: var(--text-ink);
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
}

.cart-drawer-empty {
  text-align: center;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.empty-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-stone);
  margin-bottom: 6px;
}

.empty-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
}

.empty-text {
  font-size: 13px;
  color: var(--text-stone);
  max-width: 260px;
  line-height: 1.6;
}

.btn-drawer-explore {
  margin-top: 12px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-micro);
  background: var(--text-ink);
  color: #FAF8F5;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-drawer-explore:hover {
  background: #333;
}

.cart-drawer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cart-drawer-item {
  display: flex;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-micro);
}

.cart-item-thumb {
  width: 72px;
  height: 96px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-stage);
  flex-shrink: 0;
}

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

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-ink);
}

.cart-item-specs {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  color: var(--text-stone);
  margin-top: 4px;
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
}

.cart-item-price {
  font-weight: 600;
  color: var(--text-ink);
  font-variant-numeric: tabular-nums;
}

.btn-remove-item {
  background: none;
  border: none;
  color: var(--accent-terracotta);
  font-size: 11px;
  text-decoration: underline;
  cursor: pointer;
  padding: 2px 4px;
}

.cart-drawer-footer {
  padding: 24px 28px 28px;
  border-top: 1px solid var(--border-micro);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-drawer-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 15px;
}

.subtotal-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-stone);
}

.subtotal-amount {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-ink);
  font-variant-numeric: tabular-nums;
}

.cart-drawer-note {
  font-size: 11px;
  color: var(--text-stone);
  line-height: 1.5;
}

.btn-checkout-drawer {
  width: 100%;
  padding: 16px;
  background: var(--text-ink);
  color: #FAF8F5;
  border-radius: var(--radius-sm);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.btn-checkout-drawer:hover {
  background: var(--accent-terracotta);
  box-shadow: 0 4px 16px rgba(200, 109, 81, 0.25);
  transform: translateY(-1px);
}

.btn-view-cart-link {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-stone);
}

.btn-view-cart-link:hover {
  color: var(--text-ink);
  text-decoration: underline;
}

/* ==========================================================
   CRAFTSMANSHIP & ATELIER PHILOSOPHY SECTION
   ========================================================== */
.craftsmanship-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-micro);
  border-bottom: 1px solid var(--border-micro);
  padding: 90px 40px;
}

.craftsmanship-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 52px;
}

.craft-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.craft-number {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--accent-terracotta);
}

.craft-title {
  font-size: 19px;
  font-weight: 500;
}

.craft-body {
  font-size: 14px;
  color: var(--text-stone);
  line-height: 1.8;
  text-wrap: pretty;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
  background: #141312;
  color: #C8C4BC;
  padding: 90px 40px 40px;
  font-size: 13px;
}

.footer-container {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 64px;
  margin-bottom: 70px;
}

.footer-brand-title {
  font-family: var(--font-serif);
  font-size: 30px;
  color: #FAF8F5;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer-desc {
  max-width: 320px;
  color: #8C8880;
  line-height: 1.75;
}

.footer-col-title {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #FAF8F5;
  font-weight: 600;
  margin-bottom: 22px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a:hover {
  color: #FAF8F5;
}

.footer-bottom {
  max-width: 1440px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #6B6760;
  font-size: 12px;
}

/* ==========================================================
   RESPONSIVE LAYOUT
   ========================================================== */
@media (max-width: 900px) {
  .header-container { padding: 14px 16px; }
  .header-nav { display: none; }
  .brand-title { font-size: 18px; letter-spacing: 0.08em; white-space: nowrap; }
  .brand-subtitle { font-size: 8px; letter-spacing: 0.16em; }
  .header-actions { gap: 8px; }
  .etsy-badge-link { padding: 6px 10px; font-size: 10px; }
  .etsy-badge-link svg { width: 12px; height: 12px; }
  .cart-button { padding: 6px 12px; font-size: 10px; }

  .configurator-modal-content { 
    grid-template-columns: 1fr; 
    width: 100%; 
    height: 100vh; 
    max-height: 100vh; 
    border-radius: 0; 
  }
  .configurator-stage { 
    min-height: 300px; 
    padding: 64px 16px 28px; 
    border-bottom: 1px solid var(--border-micro);
    border-right: none;
  }
  .artwork-frame-visualizer {
    max-height: 250px !important;
    max-width: 210px !important;
  }
  .framed-artwork-image {
    max-height: 240px;
  }
  .btn-close-modal { 
    top: 14px; 
    right: 14px; 
    background: rgba(255,255,255,0.92); 
    width: 34px; 
    height: 34px; 
    font-size: 20px;
  }
  .stage-view-toggles { 
    top: 14px; 
    left: 14px; 
    max-width: calc(100% - 60px); 
  }
  .view-toggle-btn { 
    font-size: 10px; 
    padding: 5px 12px; 
  }
  .configurator-controls { 
    padding: 28px 20px 52px; 
  }
  .craftsmanship-container { grid-template-columns: 1fr; gap: 36px; }
  .footer-container { grid-template-columns: 1fr; gap: 40px; }
  .hero-heading { font-size: 34px; }
  .hero-section { padding: 44px 16px 24px; }
  .gallery-container { padding: 0 16px; }
  .artworks-grid { grid-template-columns: 1fr; gap: 36px; }
  .artwork-card-actions {
    opacity: 1;
    transform: translateY(0);
    position: static;
    padding: 12px 20px 0;
    pointer-events: auto;
  }
  .btn-quick-config {
    max-width: 100%;
    background: var(--text-ink);
    color: #FAF8F5;
  }
  .cart-drawer-panel { width: 100%; max-width: 100vw; }
}
