/*
Theme Name: Velora
Theme URI: https://velora.com
Author: Velora Studio
Author URI: https://velora.com
Description: Thème e-commerce premium et minimaliste pour Velora — affiches botaniques et typographie minimaliste. Compatible WooCommerce et Printful.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: velora
Tags: e-commerce, woocommerce, minimalist, botanical, premium
*/

/* =============================================
   VELORA THEME — VARIABLES
   ============================================= */
:root {
  --cream: #F7F4EF;
  --beige: #E8E0D4;
  --sage: #8A9E89;
  --sage-light: #B5C4B4;
  --brown: #7D6552;
  --brown-light: #A8896E;
  --dark: #2C2C2C;
  --text: #3D3730;
  --text-light: #7A7067;
  --white: #FDFCFB;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --transition: 0.4s ease;
  --shadow: 0 8px 40px rgba(0,0,0,0.08);
  --shadow-hover: 0 16px 60px rgba(0,0,0,0.14);
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-sans); border: none; background: none; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.2;
  color: var(--dark);
}
h1 { font-size: clamp(42px, 6vw, 80px); }
h2 { font-size: clamp(32px, 4vw, 52px); }
h3 { font-size: clamp(22px, 3vw, 32px); }
h4 { font-size: 20px; }
p { font-size: 14px; color: var(--text-light); line-height: 1.8; font-weight: 300; }

em { font-style: italic; color: var(--brown); }

/* =============================================
   UTILITIES
   ============================================= */
.container { max-width: 1280px; margin: 0 auto; padding: 0 60px; }
.section-label {
  font-size: 10px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--sage); margin-bottom: 14px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::before { content: ''; display: block; width: 24px; height: 1px; background: var(--sage); }

.btn-primary {
  display: inline-block;
  background: var(--dark); color: white;
  padding: 16px 36px;
  font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
  transition: background var(--transition), transform var(--transition);
  font-family: var(--font-sans); font-weight: 400;
}
.btn-primary:hover { background: var(--brown); color: white; transform: translateY(-2px); }

.btn-secondary {
  display: inline-block;
  background: transparent; color: var(--text);
  padding: 16px 36px;
  font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
  border: 1px solid rgba(61,55,48,0.3);
  transition: all var(--transition);
  font-family: var(--font-sans);
}
.btn-secondary:hover { border-color: var(--brown); color: var(--brown); transform: translateY(-2px); }

/* Scroll animations */
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.d1 { transition-delay: 0.1s; }
.fade-up.d2 { transition-delay: 0.2s; }
.fade-up.d3 { transition-delay: 0.3s; }
.fade-up.d4 { transition-delay: 0.4s; }
.fade-up.d5 { transition-delay: 0.5s; }
.fade-up.d6 { transition-delay: 0.6s; }

/* =============================================
   LANGUAGE BAR
   ============================================= */
.lang-bar {
  background: var(--dark); color: rgba(255,255,255,0.5);
  text-align: center; padding: 8px 20px;
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  position: relative; z-index: 200;
}
.lang-bar span {
  cursor: pointer; margin: 0 10px;
  transition: color 0.3s; font-family: var(--font-sans);
}
.lang-bar span:hover, .lang-bar span.active { color: white; }
.lang-bar span.active { border-bottom: 1px solid rgba(255,255,255,0.4); }

/* =============================================
   HEADER / NAV
   ============================================= */
#site-header {
  position: fixed; top: 36px; left: 0; right: 0; z-index: 100;
  padding: 22px 60px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.5s ease, padding 0.4s ease, top 0.4s ease, box-shadow 0.4s ease;
}
#site-header.scrolled {
  background: rgba(247,244,239,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 60px; top: 0;
  box-shadow: 0 1px 30px rgba(0,0,0,0.06);
}
.site-logo {
  font-family: var(--font-serif);
  font-size: 26px; font-weight: 300;
  letter-spacing: 6px; text-transform: uppercase;
  color: var(--dark);
}
.nav-menu { display: flex; gap: 36px; align-items: center; }
.nav-menu a {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text); position: relative; padding-bottom: 3px;
  transition: color 0.3s;
}
.nav-menu a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--brown);
  transition: width 0.4s ease;
}
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 20px; }
.nav-icon { color: var(--text); transition: color 0.3s; position: relative; }
.nav-icon:hover { color: var(--brown); }
.cart-icon-wrap { position: relative; cursor: pointer; }
.cart-count-badge {
  position: absolute; top: -7px; right: -7px;
  background: var(--brown); color: white;
  width: 17px; height: 17px; border-radius: 50%;
  font-size: 9px; display: flex; align-items: center; justify-content: center;
  font-weight: 500;
}

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--dark); transition: all 0.3s; }

/* =============================================
   HERO
   ============================================= */
.hero-section {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #EDE8E0 0%, #E0D9CE 40%, #D4CBBF 100%);
}
.hero-bg-gradient {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(138,158,137,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(125,101,82,0.1) 0%, transparent 60%);
}
.hero-content-wrap {
  position: relative; z-index: 2;
  padding-left: 80px; max-width: 540px;
  opacity: 0; animation: heroReveal 1.2s ease forwards 0.3s;
}
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow {
  font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--sage); margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}
.hero-eyebrow::before { content: ''; display: block; width: 30px; height: 1px; background: var(--sage); }
.hero-title { margin-bottom: 22px; letter-spacing: -0.5px; }
.hero-sub {
  font-size: 15px; color: var(--text-light);
  line-height: 1.8; margin-bottom: 44px;
  max-width: 380px; font-weight: 300;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
  position: absolute; right: 0; top: 0; bottom: 0; width: 52%;
  overflow: hidden;
}
.hero-room-scene {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, #EDE7DE 0%, #DDD3C8 100%);
  position: relative; display: flex; align-items: center; justify-content: center;
}
.room-floor-strip {
  position: absolute; bottom: 0; left: 0; right: 0; height: 28%;
  background: linear-gradient(180deg, #C4B5A5, #B5A595);
}
.hero-poster-frame {
  position: absolute; top: 18%; left: 50%; transform: translateX(-50%);
  width: 180px; height: 240px; background: white;
  box-shadow: 8px 12px 40px rgba(0,0,0,0.22), inset 0 0 0 8px #F5F0E8;
  display: flex; align-items: center; justify-content: center;
}
.hero-poster-inner {
  width: 160px; height: 220px; background: #F9F6F0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
}
.poster-leaf-icon { font-size: 64px; color: var(--sage); }
.poster-brand-text {
  font-family: var(--font-serif); font-size: 10px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--brown); text-align: center;
}
.hero-shelf {
  position: absolute; bottom: 28%; left: 50%; transform: translateX(-50%);
  width: 240px; height: 8px;
  background: #C4A882; box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.hero-plant { position: absolute; bottom: 29%; right: 24%; font-size: 46px; }

.hero-stats {
  position: absolute; bottom: 50px; left: 80px; z-index: 2;
  display: flex; gap: 40px;
  opacity: 0; animation: heroReveal 1s ease forwards 0.9s;
}
.stat-item { }
.stat-num {
  font-family: var(--font-serif); font-size: 30px; font-weight: 300;
  color: var(--dark); line-height: 1;
}
.stat-label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-light); margin-top: 4px; }

.scroll-indicator {
  position: absolute; bottom: 40px; right: 60px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0.45; animation: heroReveal 1s ease forwards 1.2s;
}
.scroll-indicator span {
  font-size: 9px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--text-light); writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px; height: 50px; background: var(--text-light);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); }
}

/* =============================================
   BEST SELLERS
   ============================================= */
.bestsellers-section { background: var(--white); padding: 100px 60px; }
.section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 56px; flex-wrap: wrap; gap: 20px;
}
.social-proof-tag {
  font-size: 11px; color: var(--text-light); letter-spacing: 1px;
  padding: 8px 16px; border: 1px solid var(--beige);
  display: inline-block;
}
.view-all-link {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--brown); display: flex; align-items: center; gap: 8px;
  transition: gap 0.3s;
}
.view-all-link:hover { gap: 14px; }

/* =============================================
   PRODUCT CARDS
   ============================================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
}
.product-card-velora { position: relative; }
.product-img-container {
  position: relative; overflow: hidden;
  aspect-ratio: 3/4; background: var(--beige);
  margin-bottom: 14px;
}
.product-img-container img,
.product-img-placeholder {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.product-img-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; background: linear-gradient(135deg, #EDE8E0, #DDD5C7);
  font-family: var(--font-serif);
}
.placeholder-emoji { font-size: 72px; }
.placeholder-name { font-size: 11px; letter-spacing: 2px; color: var(--brown); text-transform: uppercase; }
.product-card-velora:hover .product-img-placeholder,
.product-card-velora:hover .product-img-container img { transform: scale(1.05); }

.product-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  padding: 5px 10px; color: white;
}
.badge-trending { background: var(--sage); }
.badge-loved { background: var(--brown); }
.badge-new { background: var(--dark); }

.quick-view-overlay {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  background: rgba(44,44,44,0.92); color: white;
  padding: 14px; text-align: center;
  font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase;
  transform: translateY(100%); transition: transform 0.4s ease;
  cursor: pointer;
}
.product-card-velora:hover .quick-view-overlay { transform: translateY(0); }

.product-card-info { }
.product-card-name {
  font-family: var(--font-serif); font-size: 18px; font-weight: 400;
  color: var(--dark); margin-bottom: 4px;
}
.product-card-sub { font-size: 11px; color: var(--text-light); letter-spacing: 1px; margin-bottom: 8px; }
.product-card-price { font-size: 15px; color: var(--brown); }

/* =============================================
   SHOP BY MOOD
   ============================================= */
.mood-section { background: var(--cream); padding: 100px 60px; }
.mood-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-top: 48px;
}
.mood-card {
  aspect-ratio: 2/3; position: relative; overflow: hidden; cursor: pointer;
  display: flex; align-items: flex-end;
}
.mood-bg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 60px; transition: transform 0.6s ease;
}
.mood-card:hover .mood-bg { transform: scale(1.08); }
.mood-calm .mood-bg { background: linear-gradient(135deg, #D4DDD4, #B8CBB8); }
.mood-cozy .mood-bg { background: linear-gradient(135deg, #DDD4C8, #C8BAA8); }
.mood-minimal .mood-bg { background: linear-gradient(135deg, #E8E4DE, #D8D2CA); }
.mood-soft .mood-bg { background: linear-gradient(135deg, #DDD8D0, #CDC5BA); }
.mood-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(44,44,44,0.7) 100%);
}
.mood-label { position: relative; z-index: 2; padding: 24px; color: white; }
.mood-name {
  font-family: var(--font-serif); font-size: 26px; font-weight: 300;
  font-style: italic; display: block; margin-bottom: 4px;
}
.mood-count { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; opacity: 0.65; }

/* =============================================
   COLLECTIONS
   ============================================= */
.collections-section { background: var(--beige); padding: 100px 60px; }
.collections-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 56px;
}
.collection-card { cursor: pointer; }
.collection-img-wrap {
  aspect-ratio: 4/5; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 72px; transition: transform 0.7s ease;
}
.collection-card:hover .collection-img-wrap { transform: scale(1.04); }
.col-botanical { background: linear-gradient(160deg, #C8D5C8, #A8BBA8); }
.col-quotes { background: linear-gradient(160deg, #D5CCC0, #BFB098); }
.col-custom { background: linear-gradient(160deg, #C8C0B8, #B0A898); }
.collection-info { padding: 18px 0; }
.collection-title {
  font-family: var(--font-serif); font-size: 22px; font-weight: 400;
  color: var(--dark); margin-bottom: 5px;
}
.collection-desc { font-size: 12px; color: var(--text-light); margin-bottom: 12px; }
.collection-link {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--brown); display: inline-flex; align-items: center; gap: 8px;
  transition: gap 0.3s;
}
.collection-link:hover { gap: 14px; }

/* =============================================
   BRAND STORY
   ============================================= */
.story-section {
  background: var(--dark); color: white;
  padding: 120px 60px; text-align: center;
}
.story-quote {
  font-family: var(--font-serif); font-size: clamp(26px, 4vw, 48px);
  font-weight: 300; font-style: italic; line-height: 1.45;
  max-width: 800px; margin: 0 auto 24px;
  color: rgba(255,255,255,0.88);
}
.story-author {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.story-stats {
  display: flex; justify-content: center; gap: 60px;
  margin-top: 64px; flex-wrap: wrap;
}
.story-stat { text-align: center; }
.story-stat-num {
  font-family: var(--font-serif); font-size: 46px; font-weight: 300;
  color: rgba(255,255,255,0.55); display: block; line-height: 1;
}
.story-stat-label {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.3); margin-top: 8px; display: block;
}

/* =============================================
   IMMERSIVE SECTION
   ============================================= */
.immersive-section {
  height: 70vh; position: relative; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 60px;
}
.immersive-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #D9D2C8 0%, #C9BFB2 60%, #B8AFA0 100%);
  display: flex; align-items: center; justify-content: center; gap: 40px;
}
.wall-art-frame {
  background: white;
  box-shadow: 12px 20px 60px rgba(0,0,0,0.2), inset 0 0 0 6px #F5F0E8;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px; padding: 16px;
}
.immersive-caption {
  position: relative; z-index: 2;
  font-family: var(--font-serif); font-size: 20px; font-style: italic;
  color: rgba(255,255,255,0.8); letter-spacing: 3px; font-weight: 300;
  text-align: center;
}

/* =============================================
   VISUALIZER / IA SECTION
   ============================================= */
.visualizer-section { background: var(--cream); padding: 100px 60px; }
.visualizer-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.viz-tag {
  display: inline-block;
  background: var(--sage-light); color: white;
  font-size: 9px; letter-spacing: 3px; text-transform: uppercase;
  padding: 6px 14px; margin-bottom: 24px;
}
.viz-description { font-size: 14px; line-height: 1.8; margin: 20px 0 32px; max-width: 420px; }
.viz-steps { display: flex; flex-direction: column; gap: 20px; margin-bottom: 36px; }
.viz-step { display: flex; gap: 16px; }
.viz-step-num {
  font-family: var(--font-serif); font-size: 24px; color: var(--brown-light);
  font-weight: 300; line-height: 1; min-width: 28px;
}
.viz-step-text { font-size: 13px; color: var(--text-light); line-height: 1.6; padding-top: 4px; }
.viz-step-text strong { color: var(--text); font-weight: 500; display: block; margin-bottom: 2px; }

.viz-app-box {
  background: var(--white); padding: 32px;
  box-shadow: var(--shadow); position: sticky; top: 120px;
}
.viz-preview-area {
  aspect-ratio: 4/3; position: relative; overflow: hidden;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #EAE4DA, #DDD5C8);
}
.viz-room-wall { position: absolute; inset: 0; background: linear-gradient(180deg, #EAE4DA, #DDD5C8); }
.viz-room-floor { position: absolute; bottom: 0; left: 0; right: 0; height: 25%; background: linear-gradient(180deg, #C4B5A5, #B8A898); }
.viz-poster-frame {
  position: relative; z-index: 2; background: white;
  box-shadow: 6px 10px 30px rgba(0,0,0,0.2);
  transition: all 0.4s ease;
  display: flex; align-items: center; justify-content: center;
  width: 120px; height: 160px; overflow: hidden;
}
.viz-poster-inner {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; background: #FAF7F3; padding: 12px;
  font-family: var(--font-serif); text-align: center;
}
.viz-poster-emoji { font-size: 40px; }
.viz-poster-name { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--brown); }

.upload-zone {
  border: 1.5px dashed var(--beige); padding: 20px; text-align: center;
  cursor: pointer; margin-bottom: 20px;
  transition: border-color 0.3s, background 0.3s; position: relative;
}
.upload-zone:hover { border-color: var(--sage); background: rgba(138,158,137,0.04); }
.upload-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-icon { font-size: 28px; margin-bottom: 8px; }
.upload-text strong { color: var(--text); font-size: 13px; display: block; margin-bottom: 2px; font-weight: 500; }
.upload-text span { font-size: 11px; color: var(--text-light); }

.poster-picker { margin-bottom: 18px; }
.picker-label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-light); display: block; margin-bottom: 10px; }
.poster-thumbs-row { display: flex; gap: 8px; flex-wrap: wrap; }
.poster-thumb-item {
  width: 52px; height: 68px; cursor: pointer;
  border: 2px solid transparent; transition: all 0.3s;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 22px; background: var(--beige); gap: 2px;
}
.poster-thumb-item span { font-size: 8px; color: var(--text-light); }
.poster-thumb-item:hover { border-color: var(--sage-light); }
.poster-thumb-item.active { border-color: var(--brown); }

.size-picker { margin-bottom: 18px; }
.size-options-row { display: flex; gap: 8px; flex-wrap: wrap; }
.size-option-btn {
  padding: 6px 14px; border: 1px solid var(--beige);
  font-size: 11px; color: var(--text-light); background: transparent;
  transition: all 0.3s; font-family: var(--font-sans);
}
.size-option-btn:hover, .size-option-btn.active { border-color: var(--brown); color: var(--brown); background: rgba(125,101,82,0.05); }

.generate-viz-btn {
  width: 100%; background: var(--dark); color: white;
  padding: 16px; font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
  transition: background 0.3s; display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-sans);
}
.generate-viz-btn:hover { background: var(--brown); }
.generate-viz-btn:disabled { background: var(--beige); color: var(--text-light); cursor: not-allowed; }

.ai-loading-overlay {
  display: none; position: absolute; inset: 0;
  background: rgba(247,244,239,0.95); z-index: 5;
  flex-direction: column; align-items: center; justify-content: center;
}
.ai-loading-overlay.active { display: flex; }
.ai-spinner {
  width: 40px; height: 40px; border: 2px solid var(--beige);
  border-top-color: var(--brown); border-radius: 50%;
  animation: spin 0.8s linear infinite; margin-bottom: 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ai-loading-overlay p { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-light); }

.ai-result-display { display: none; position: absolute; inset: 0; z-index: 4; }
.ai-result-display.active { display: flex; align-items: center; justify-content: center; }
.ai-result-inner {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #E8E0D4, #D5CCC0);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px;
}
.ai-result-badge {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(44,44,44,0.8));
  padding: 16px; text-align: center;
}
.ai-result-badge p { color: white; font-size: 11px; letter-spacing: 1px; }

/* =============================================
   WOOCOMMERCE — PRODUCT PAGE
   ============================================= */
.woocommerce-page { background: var(--white); }
.wc-product-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start; padding: 100px 60px;
}
.wc-product-gallery { }
.wc-main-image {
  aspect-ratio: 3/4; background: var(--beige); overflow: hidden;
  cursor: zoom-in; position: relative; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center;
}
.wc-main-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.wc-main-image:hover img { transform: scale(1.08); }
.wc-thumb-row { display: flex; gap: 8px; }
.wc-thumb {
  width: 70px; aspect-ratio: 3/4; background: var(--beige); cursor: pointer;
  border: 2px solid transparent; transition: border-color 0.3s;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  overflow: hidden;
}
.wc-thumb:hover, .wc-thumb.active { border-color: var(--brown); }
.wc-thumb img { width: 100%; height: 100%; object-fit: cover; }

.wc-product-info { position: sticky; top: 120px; }
.wc-breadcrumb { font-size: 11px; color: var(--text-light); letter-spacing: 1px; margin-bottom: 16px; }
.wc-breadcrumb a { color: var(--text-light); transition: color 0.3s; }
.wc-breadcrumb a:hover { color: var(--brown); }
.wc-product-title {
  font-family: var(--font-serif); font-size: 38px; font-weight: 300;
  color: var(--dark); margin-bottom: 8px; line-height: 1.2;
}
.wc-product-subtitle { font-size: 11px; color: var(--text-light); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; }
.wc-product-price {
  font-family: var(--font-serif); font-size: 28px; color: var(--brown);
  margin-bottom: 28px; display: flex; align-items: center; gap: 12px;
}
.wc-price-note { font-size: 13px; color: var(--text-light); font-family: var(--font-sans); }

/* Variants */
.wc-variant-group { margin-bottom: 22px; }
.wc-variant-label {
  font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--text-light); display: block; margin-bottom: 10px;
}
.wc-variant-options { display: flex; gap: 8px; flex-wrap: wrap; }
.wc-variant-btn {
  padding: 8px 18px; border: 1px solid var(--beige);
  font-size: 12px; color: var(--text); background: transparent;
  transition: all 0.3s; font-family: var(--font-sans);
}
.wc-variant-btn:hover { border-color: rgba(61,55,48,0.4); }
.wc-variant-btn.active { background: var(--dark); color: white; border-color: var(--dark); }
.wc-format-btn {
  padding: 8px 18px; border: 1px solid var(--beige);
  font-size: 12px; color: var(--text); background: transparent;
  transition: all 0.3s; font-family: var(--font-sans);
}
.wc-format-btn.active { background: var(--sage); color: white; border-color: var(--sage); }

/* Personalization box */
.personalization-box {
  background: var(--cream); padding: 24px;
  border: 1px solid var(--beige); margin-bottom: 24px;
}
.pers-title {
  font-family: var(--font-serif); font-size: 20px; font-weight: 400;
  color: var(--dark); margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.pers-title::after { content: ''; flex: 1; height: 1px; background: var(--beige); }
.pers-field { margin-bottom: 14px; }
.pers-field label {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-light); display: block; margin-bottom: 6px;
}
.pers-input {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--beige); background: white;
  font-family: var(--font-sans); font-size: 13px; color: var(--text);
  outline: none; transition: border-color 0.3s;
}
.pers-input:focus { border-color: var(--sage); }
.font-options { display: flex; gap: 8px; }
.font-opt {
  padding: 6px 14px; border: 1px solid var(--beige);
  cursor: pointer; font-size: 13px; background: white; color: var(--text);
  transition: all 0.3s;
}
.font-opt:hover, .font-opt.active { border-color: var(--brown); background: rgba(125,101,82,0.05); }
.color-swatches { display: flex; gap: 8px; }
.color-swatch {
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  border: 2px solid transparent; transition: all 0.3s;
}
.color-swatch:hover, .color-swatch.active { border-color: var(--dark); transform: scale(1.1); }
.pers-preview {
  background: white; padding: 16px; text-align: center;
  border: 1px dashed var(--beige); margin-top: 12px; min-height: 72px;
  display: flex; align-items: center; justify-content: center;
}
.pers-preview-text {
  font-family: var(--font-serif); font-size: 18px; font-weight: 300;
  font-style: italic; color: var(--brown); transition: all 0.3s;
}

/* Product bullets */
.product-features { margin-bottom: 24px; }
.product-feature {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-light); margin-bottom: 8px;
}
.product-feature::before { content: '✓'; color: var(--sage); font-size: 12px; flex-shrink: 0; }

/* Add to cart */
.add-to-cart-btn {
  width: 100%; background: var(--dark); color: white;
  padding: 18px; font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  transition: all 0.3s; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-sans); position: relative; overflow: hidden;
}
.add-to-cart-btn::before {
  content: ''; position: absolute; inset: 0;
  background: var(--brown); transform: translateX(-100%); transition: transform 0.5s ease;
}
.add-to-cart-btn:hover::before { transform: translateX(0); }
.add-to-cart-btn span { position: relative; z-index: 1; }
.add-to-cart-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.15); }
.add-to-cart-btn.loading { background: var(--sage); }

/* =============================================
   UPSELL / BUNDLE
   ============================================= */
.upsell-section { background: var(--beige); padding: 100px 60px; }
.bundle-bar {
  background: var(--dark); padding: 24px 40px;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 56px; flex-wrap: wrap; gap: 16px;
}
.bundle-title {
  font-family: var(--font-serif); font-size: 22px; font-weight: 300;
  font-style: italic; color: white; margin-bottom: 6px;
}
.bundle-sub { font-size: 12px; color: rgba(255,255,255,0.5); letter-spacing: 1px; }
.bundle-cta {
  background: var(--brown); color: white;
  padding: 12px 28px; font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  transition: background 0.3s; white-space: nowrap; font-family: var(--font-sans);
}
.bundle-cta:hover { background: var(--brown-light); }

/* =============================================
   FINAL CTA
   ============================================= */
.final-cta-section {
  background: var(--cream); padding: 120px 60px; text-align: center;
}
.final-cta-section h2 { margin-bottom: 18px; }
.final-cta-section p { font-size: 15px; margin-bottom: 44px; }

/* =============================================
   WOOCOMMERCE OVERRIDE
   ============================================= */
.woocommerce .products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px; list-style: none; }
.woocommerce ul.products li.product { list-style: none; }
.woocommerce .woocommerce-ordering { display: none; }
.woocommerce .woocommerce-result-count { font-size: 12px; color: var(--text-light); letter-spacing: 1px; margin-bottom: 32px; }
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--dark) !important; color: white !important;
  font-family: var(--font-sans) !important;
  font-size: 11px !important; letter-spacing: 2px !important;
  text-transform: uppercase !important; border-radius: 0 !important;
  padding: 14px 28px !important; transition: background 0.3s !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover { background: var(--brown) !important; }
.woocommerce .price { font-family: var(--font-serif) !important; color: var(--brown) !important; font-size: 20px !important; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea { border: 1px solid var(--beige) !important; border-radius: 0 !important; font-family: var(--font-sans) !important; }
.woocommerce form .form-row input.input-text:focus { border-color: var(--sage) !important; box-shadow: none !important; }
.woocommerce-checkout-review-order-table { border: 1px solid var(--beige) !important; }
.woocommerce-checkout h3 { font-family: var(--font-serif) !important; font-weight: 300 !important; letter-spacing: 1px; }
#add_payment_method #payment, .woocommerce-checkout #payment { background: var(--cream) !important; border: 1px solid var(--beige) !important; border-radius: 0 !important; }

/* Cart page */
.woocommerce-cart .cart-collaterals { background: var(--cream); padding: 32px; }
.woocommerce-cart table.cart td, .woocommerce-cart table.cart th { border-color: var(--beige) !important; }
.cart_totals h2 { font-family: var(--font-serif) !important; font-weight: 300 !important; font-size: 24px !important; }

/* =============================================
   CART SIDEBAR
   ============================================= */
.cart-sidebar {
  position: fixed; right: -430px; top: 0; bottom: 0; width: 420px;
  background: var(--white); z-index: 300;
  box-shadow: -20px 0 60px rgba(0,0,0,0.1);
  transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column;
}
.cart-sidebar.open { right: 0; }
.cart-overlay-bg {
  position: fixed; inset: 0; background: rgba(0,0,0,0.3);
  z-index: 299; opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
.cart-overlay-bg.active { opacity: 1; pointer-events: all; }
.cart-sidebar-header {
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--beige);
  display: flex; justify-content: space-between; align-items: center;
}
.cart-sidebar-title { font-family: var(--font-serif); font-size: 24px; font-weight: 300; }
.cart-close-btn {
  width: 36px; height: 36px; font-size: 18px;
  color: var(--text-light); transition: color 0.3s; display: flex; align-items: center; justify-content: center;
}
.cart-close-btn:hover { color: var(--dark); }
.cart-items-wrap { flex: 1; overflow-y: auto; padding: 20px 28px; }
.cart-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 200px; text-align: center; }
.cart-empty-icon { font-size: 44px; margin-bottom: 12px; opacity: 0.35; }
.cart-empty-text { font-size: 14px; color: var(--text-light); }
.cart-item-row {
  display: flex; gap: 14px; margin-bottom: 18px;
  padding-bottom: 18px; border-bottom: 1px solid var(--beige);
}
.cart-item-img {
  width: 68px; height: 88px; background: var(--beige); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.cart-item-details { flex: 1; }
.cart-item-name { font-family: var(--font-serif); font-size: 16px; margin-bottom: 4px; }
.cart-item-variant { font-size: 11px; color: var(--text-light); letter-spacing: 0.5px; }
.cart-item-price-row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.cart-item-price { font-size: 14px; color: var(--brown); }
.cart-item-remove { font-size: 11px; color: var(--text-light); text-decoration: underline; cursor: pointer; }
.cart-footer-wrap { padding: 20px 28px 28px; border-top: 1px solid var(--beige); }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cart-total-label { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-light); }
.cart-total-amount { font-family: var(--font-serif); font-size: 24px; font-weight: 300; color: var(--dark); }
.cart-shipping-note { font-size: 11px; color: var(--text-light); margin-bottom: 16px; }
.cart-checkout-btn {
  width: 100%; background: var(--dark); color: white;
  padding: 16px; font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
  transition: background 0.3s; font-family: var(--font-sans);
}
.cart-checkout-btn:hover { background: var(--brown); }

/* =============================================
   NOTIFICATION TOAST
   ============================================= */
.toast-notification {
  position: fixed; bottom: 30px; left: 50%; z-index: 400;
  background: var(--dark); color: white;
  padding: 14px 28px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  transform: translateX(-50%) translateY(20px);
  opacity: 0; transition: all 0.4s ease; pointer-events: none;
}
.toast-notification.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =============================================
   FOOTER
   ============================================= */
#site-footer { background: var(--dark); color: rgba(255,255,255,0.55); padding: 80px 60px 40px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px; margin-bottom: 60px;
}
.footer-brand-name {
  font-family: var(--font-serif); font-size: 26px; font-weight: 300;
  letter-spacing: 6px; text-transform: uppercase; color: white;
  margin-bottom: 16px; display: block;
}
.footer-brand-desc { font-size: 13px; line-height: 1.8; max-width: 260px; }
.footer-col-title {
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,0.35); margin-bottom: 20px; display: block;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.5); transition: color 0.3s; }
.footer-col ul li a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
}
.footer-copy { font-size: 11px; letter-spacing: 1px; }
.footer-socials { display: flex; gap: 12px; }
.footer-social-link {
  width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.45); font-size: 12px; text-transform: lowercase;
  transition: all 0.3s;
}
.footer-social-link:hover { border-color: rgba(255,255,255,0.5); color: white; }

/* =============================================
   QUICK VIEW MODAL
   ============================================= */
.quickview-modal {
  display: none; position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.5); align-items: center; justify-content: center;
}
.quickview-modal.open { display: flex; }
.quickview-inner {
  background: var(--white); max-width: 700px; width: 92%; max-height: 90vh;
  overflow-y: auto; position: relative; display: grid; grid-template-columns: 1fr 1fr;
}
.quickview-img {
  background: var(--beige); display: flex; align-items: center; justify-content: center;
  min-height: 300px; font-size: 96px;
}
.quickview-content { padding: 36px; }
.quickview-close {
  position: absolute; top: 14px; right: 14px;
  font-size: 20px; color: var(--text-light); transition: color 0.3s;
}
.quickview-close:hover { color: var(--dark); }
.quickview-sub { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-light); margin-bottom: 10px; }
.quickview-name { font-family: var(--font-serif); font-size: 28px; font-weight: 300; margin-bottom: 14px; }
.quickview-price { font-family: var(--font-serif); font-size: 24px; color: var(--brown); margin-bottom: 24px; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .mood-grid { grid-template-columns: repeat(2, 1fr); }
  .collections-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .visualizer-grid { grid-template-columns: 1fr; gap: 48px; }
  .wc-product-layout { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 768px) {
  #site-header { padding: 16px 24px; }
  #site-header.scrolled { padding: 12px 24px; }
  .nav-menu { display: none; }
  .hamburger { display: flex; }
  .hero-visual { display: none; }
  .hero-content-wrap { padding: 0 24px; max-width: 100%; }
  .hero-stats { left: 24px; bottom: 28px; gap: 24px; }
  .stat-num { font-size: 24px; }
  .bestsellers-section, .mood-section, .collections-section, .story-section,
  .visualizer-section, .upsell-section, .final-cta-section { padding: 64px 24px; }
  .wc-product-layout { padding: 64px 24px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .collections-grid { grid-template-columns: 1fr; }
  .mood-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .story-stats { gap: 32px; }
  .cart-sidebar { width: 100%; right: -100%; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .bundle-bar { flex-direction: column; }
  .quickview-inner { grid-template-columns: 1fr; }
}
