/* ==========================================
   LIVE FURNITURE & HOME APPLIANCES - CSS
   Modern, Luxury, Responsive & Interactive Styling
   ========================================== */

/* --- CSS Variables & Design System --- */
:root {
  /* Color Palette - Light Mode (Default Premium Luxury) */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-light: #ffffff;
  
  --accent-gold: #d97706;
  --accent-gold-hover: #b45309;
  --accent-gold-light: #fef3c7;
  --accent-amber: #f59e0b;
  
  --brand-dark: #1e293b;
  --brand-navy: #0f172a;
  
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  
  --success: #10b981;
  --success-bg: #d1fae5;
  --warning: #f59e0b;
  --warning-bg: #fef3c7;
  --danger: #ef4444;
  --danger-bg: #fee2e2;
  --info: #3b82f6;
  --info-bg: #dbeafe;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-gold: 0 10px 25px -5px rgba(217, 119, 6, 0.3);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  
  --font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  --container-max-width: 1280px;
  --header-height: 80px;
}

/* Dark Mode Theme */
[data-theme="dark"] {
  --bg-primary: #0b0f17;
  --bg-secondary: #131b2e;
  --bg-tertiary: #1c273e;
  --bg-card: #182238;
  --bg-glass: rgba(19, 27, 46, 0.85);
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  
  --brand-dark: #0f172a;
  
  --border-color: #26334d;
  --border-hover: #3b4d71;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

/* Base Styles & Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}

button {
  cursor: pointer;
  background: none;
}

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

/* Layout Utilities */
.container {
  width: 90%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.section-padding {
  padding: 5rem 0;
}

.text-center { text-align: center; }
.text-gold { color: var(--accent-gold); }
.text-muted { color: var(--text-muted); }
.bold { font-weight: 700; }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-gold);
  background: var(--accent-gold-light);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

[data-theme="dark"] .section-tag {
  background: rgba(217, 119, 6, 0.2);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-amber));
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-gold-hover), var(--accent-gold));
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: var(--border-color);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

.btn-outline:hover {
  background: var(--accent-gold);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: #ffffff;
}

.btn-whatsapp:hover {
  background: #1eb956;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 1.1rem 2.2rem;
  font-size: 1.1rem;
}

/* --- 1. NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-amber));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.4rem;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.3);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  letter-spacing: 0.5px;
  font-size: 1.15rem;
  font-weight: 900;
  background: linear-gradient(90deg, var(--text-primary), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0.2rem;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-gold);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-gold);
  transition: width var(--transition-fast);
  border-radius: var(--radius-full);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  transition: all var(--transition-fast);
  position: relative;
}

.icon-btn:hover {
  background: var(--border-color);
  color: var(--accent-gold);
  transform: scale(1.05);
}

.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-gold);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-secondary);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 22px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Floating Sticky WhatsApp Button */
.sticky-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 990;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 2rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-fast);
  animation: pulse-green 2s infinite;
}

.sticky-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- 2. HERO SECTION --- */
.hero {
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 5rem;
  background: radial-gradient(circle at 80% 20%, rgba(217, 119, 6, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--accent-gold-light);
  color: var(--accent-gold);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .hero-badge {
  background: rgba(217, 119, 6, 0.2);
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.hero-title span {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.25rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.75rem;
}

.stat-item h4 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Hero Showcase Visuals */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card-main {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  position: relative;
}

.hero-card-main img, .hero-svg-placeholder {
  width: 100%;
  height: 420px;
  object-fit: cover;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

.hero-floating-badge {
  position: absolute;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
}

.hero-badge-1 {
  bottom: 25px;
  left: -20px;
}

.hero-badge-2 {
  top: 25px;
  right: -20px;
}

.badge-icon-wrap {
  width: 40px;
  height: 40px;
  background: var(--accent-gold-light);
  color: var(--accent-gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* --- 3. CATEGORIES SECTION --- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1.25rem;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.category-card:hover, .category-card.active {
  border-color: var(--accent-gold);
  background: var(--accent-gold-light);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .category-card:hover, [data-theme="dark"] .category-card.active {
  background: rgba(217, 119, 6, 0.15);
}

.category-icon {
  width: 50px;
  height: 50px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-gold);
  transition: all var(--transition-fast);
}

.category-card:hover .category-icon, .category-card.active .category-icon {
  background: var(--accent-gold);
  color: #ffffff;
}

.category-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

/* --- 4. PRODUCT CATALOG SECTION --- */
.catalog-controls {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.search-box {
  flex: 1;
  min-width: 250px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  transition: border var(--transition-fast);
}

.search-box input:focus {
  border-color: var(--accent-gold);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-select {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
}

.filter-select:focus {
  border-color: var(--accent-gold);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--border-hover);
}

.product-thumb {
  position: relative;
  width: 100%;
  height: 220px;
  background: var(--bg-tertiary);
  overflow: hidden;
}

.product-thumb img, .product-thumb svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-thumb img, .product-card:hover .product-thumb svg {
  transform: scale(1.06);
}

.badge-discount {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent-gold);
  color: #ffffff;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-category {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.product-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-id {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.product-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0.3rem 0;
  color: var(--text-primary);
  line-height: 1.3;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--accent-amber);
  margin-bottom: 0.6rem;
}

.rating-count {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.product-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7em;
}

.product-pricing {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-top: auto;
  margin-bottom: 1rem;
}

.price-current {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.price-original {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.product-actions .btn {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
}

.btn-full {
  grid-column: span 2;
}

/* Empty Catalog State */
.no-products {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-color);
}

.no-products-icon {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* --- 5. PRODUCT DETAILS MODAL --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

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

.modal-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-primary);
  cursor: pointer;
  z-index: 10;
  transition: background var(--transition-fast);
}

.modal-close:hover {
  background: var(--danger-bg);
  color: var(--danger);
}

.modal-body {
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.modal-image-wrap {
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image-wrap img, .modal-image-wrap svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-details {
  display: flex;
  flex-direction: column;
}

.modal-specs {
  margin: 1.25rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  font-size: 0.9rem;
  background: var(--bg-tertiary);
  padding: 1rem;
  border-radius: var(--radius-md);
}

.spec-item strong {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* --- 6. CUSTOM SOFA BUILDER --- */
.customizer-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.sofa-visualizer-container {
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  position: relative;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
}

.sofa-canvas-wrapper {
  width: 100%;
  max-width: 450px;
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.customizer-controls {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.control-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.option-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.option-pill {
  padding: 0.5rem 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.option-pill:hover, .option-pill.active {
  border-color: var(--accent-gold);
  background: var(--accent-gold-light);
  color: var(--accent-gold-hover);
}

[data-theme="dark"] .option-pill:hover, [data-theme="dark"] .option-pill.active {
  background: rgba(217, 119, 6, 0.2);
  color: var(--accent-amber);
}

.color-swatches {
  display: flex;
  gap: 0.75rem;
}

.swatch {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.swatch:hover, .swatch.active {
  transform: scale(1.15);
  border-color: var(--text-primary);
}

.price-summary {
  background: var(--bg-tertiary);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}

/* --- 7. SMART BUDGET FINDER --- */
.budget-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.budget-btn {
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.budget-btn:hover, .budget-btn.active {
  background: var(--accent-gold);
  color: #ffffff;
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

/* --- 8. COMPLETE MY ROOM --- */
.room-planner-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.bundle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.bundle-item {
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 1rem;
  border: 1px solid var(--border-color);
  text-align: center;
  position: relative;
}

.bundle-item.selected {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 2px var(--accent-gold);
}

.bundle-total-bar {
  background: var(--bg-tertiary);
  padding: 1.25rem 2rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --- 9. WILL IT FIT? CALCULATOR --- */
.calculator-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.calc-group h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--accent-gold);
}

.calc-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.input-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.input-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.input-field input {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-weight: 600;
}

.calc-result {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  display: none;
  font-weight: 700;
}

.calc-result.active {
  display: block;
}

.result-perfect { background: var(--success-bg); color: #065f46; border: 1px solid var(--success); }
.result-warning { background: var(--warning-bg); color: #92400e; border: 1px solid var(--warning); }
.result-danger { background: var(--danger-bg); color: #991b1b; border: 1px solid var(--danger); }

/* --- 10. AI-STYLE FURNITURE QUIZ --- */
.quiz-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 750px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.quiz-progress {
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  margin-bottom: 2rem;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background: var(--accent-gold);
  width: 20%;
  transition: width 0.3s ease;
}

.quiz-question {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.quiz-option-card {
  padding: 1.25rem;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 700;
  transition: all var(--transition-fast);
  text-align: center;
}

.quiz-option-card:hover, .quiz-option-card.selected {
  border-color: var(--accent-gold);
  background: var(--accent-gold-light);
  color: var(--accent-gold-hover);
}

[data-theme="dark"] .quiz-option-card:hover, [data-theme="dark"] .quiz-option-card.selected {
  background: rgba(217, 119, 6, 0.2);
  color: var(--accent-amber);
}

/* --- 11. ROOM TRANSFORMATION (BEFORE & AFTER SLIDER) --- */
.before-after-wrapper {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  height: 450px;
  user-select: none;
}

.ba-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ba-image svg, .ba-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-after {
  width: 50%;
  overflow: hidden;
  z-index: 2;
  border-right: 3px solid var(--accent-gold);
}

.ba-label {
  position: absolute;
  top: 20px;
  padding: 0.4rem 1rem;
  background: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
  z-index: 5;
}

.ba-label-before { right: 20px; }
.ba-label-after { left: 20px; }

.ba-slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: var(--accent-gold);
  color: #ffffff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  cursor: ew-resize;
  z-index: 10;
  pointer-events: none;
}

/* --- 12. CUSTOMER REVIEWS --- */
.reviews-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto 3rem auto;
  overflow: hidden;
}

.reviews-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.review-card {
  min-width: 100%;
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.review-stars {
  color: var(--accent-amber);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.review-text {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.review-author {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.review-location {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* --- 14. CONTACT SECTION --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.info-item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.info-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-gold-light);
  color: var(--accent-gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

[data-theme="dark"] .info-icon {
  background: rgba(217, 119, 6, 0.2);
}

.contact-form-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

.form-control:focus {
  border-color: var(--accent-gold);
}

/* --- 16. ENQUIRY CART DRAWER --- */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100%;
  background: var(--bg-card);
  box-shadow: var(--shadow-xl);
  z-index: 2500;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border-color);
}

.cart-drawer.active {
  right: 0;
}

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

.cart-body {
  padding: 1.5rem;
  flex-grow: 1;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
}

.cart-item-img {
  width: 65px;
  height: 65px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  overflow: hidden;
}

.cart-item-details {
  flex: 1;
}

.cart-item-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.cart-item-price {
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 0.9rem;
}

.cart-qty-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.cart-qty-btn {
  width: 24px;
  height: 24px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-tertiary);
}

/* --- TOAST NOTIFICATION SYSTEM --- */
.toast-container {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-md);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideInLeft 0.3s ease;
  max-width: 360px;
}

.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-info { background: var(--info); }

@keyframes slideInLeft {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- FOOTER --- */
.footer {
  background: var(--brand-navy);
  color: #cbd5e1;
  padding: 4rem 0 2rem 0;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .customizer-box { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1200px) {
  .nav-menu { gap: 0.85rem; }
  .nav-link { font-size: 0.85rem; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-card);
    flex-direction: column;
    padding: 2rem;
    transition: left 0.3s ease;
    align-items: flex-start;
    gap: 1.25rem;
    overflow-y: auto;
  }
  .nav-menu.active { left: 0; }
  .hamburger { display: flex; }
  .modal-body { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .quiz-options { grid-template-columns: 1fr; }
  .cart-drawer { width: 100%; right: -100%; }
  .hero-title { font-size: 2.25rem; }
  .section-title { font-size: 1.75rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* --- DELIVERY TRACKING FEATURE STYLING --- */
.tracking-summary-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.tracking-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

.tracking-summary-item strong {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.tracking-summary-item span {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.tracking-banner {
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.tracking-banner-active {
  background: var(--accent-gold-light);
  color: var(--accent-gold-hover);
  border: 1px solid var(--accent-gold);
}

[data-theme="dark"] .tracking-banner-active {
  background: rgba(217, 119, 6, 0.2);
  color: var(--accent-amber);
}

.tracking-banner-delivered {
  background: var(--success-bg);
  color: #065f46;
  border: 1px solid var(--success);
}

.tracking-timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  margin: 2.5rem 0 1rem 0;
  padding: 0 0.5rem;
}

.tracking-timeline::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 30px;
  right: 30px;
  height: 4px;
  background: var(--border-color);
  z-index: 1;
}

.timeline-progress-bar {
  position: absolute;
  top: 18px;
  left: 30px;
  height: 4px;
  background: var(--accent-gold);
  z-index: 2;
  transition: width 0.4s ease;
}

.timeline-step {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  text-align: center;
}

.timeline-node {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 3px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  transition: all 0.3s ease;
}

.timeline-step.completed .timeline-node {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #ffffff;
}

.timeline-step.active .timeline-node {
  background: var(--accent-gold);
  border-color: var(--accent-amber);
  color: #ffffff;
  box-shadow: 0 0 0 4px var(--accent-gold-light);
  transform: scale(1.15);
}

.timeline-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.2;
}

.timeline-step.active .timeline-label,
.timeline-step.completed .timeline-label {
  color: var(--text-primary);
}

@media (max-width: 650px) {
  .tracking-timeline {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding-left: 0.5rem;
  }
  .tracking-timeline::before {
    top: 20px;
    bottom: 20px;
    left: 23px;
    width: 4px;
    height: auto;
    right: auto;
  }
  .timeline-progress-bar {
    left: 23px;
    width: 4px !important;
    top: 20px;
    transition: height 0.4s ease;
  }
  .timeline-step {
    flex-direction: row;
    gap: 1rem;
    text-align: left;
  }
  .timeline-node {
    margin-bottom: 0;
  }
}
