/* ==========================================================================
   KEYGOLD PAINT - LUXURY LANDING PAGE STYLESHEET
   Design System: Obsidian & Liquid Gold Theme
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ROOT VARIABLES & DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette */
  --bg-dark: #080b11;
  --bg-card: rgba(18, 24, 38, 0.7);
  --bg-card-hover: rgba(28, 36, 56, 0.85);
  --bg-surface: #0f1523;
  --bg-surface-light: #161e31;
  
  --gold-primary: #d4af37;
  --gold-light: #f9e79f;
  --gold-bright: #ffd700;
  --gold-dark: #aa7c11;
  --gold-gradient: linear-gradient(135deg, #f9e79f 0%, #d4af37 50%, #aa7c11 100%);
  --gold-gradient-soft: linear-gradient(135deg, rgba(249, 231, 159, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
  --gold-glow: 0 0 25px rgba(212, 175, 55, 0.35);

  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-gold: #f3e5ab;

  --accent-cyan: #38bdf8;
  --accent-green: #34d399;
  
  --border-subtle: rgba(212, 175, 55, 0.15);
  --border-highlight: rgba(212, 175, 55, 0.4);

  /* Fonts */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --container-max: 1240px;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

body {
  line-height: 1.6;
  background: radial-gradient(circle at 50% 0%, #151d30 0%, #080b11 70%);
  min-height: 100vh;
  position: relative;
}

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

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

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography Utilities */
.gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-title-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

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

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   3. BUTTONS & INTERACTIVE ELEMENTS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.9rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-gold {
  background: var(--gold-gradient);
  color: #080b11;
  box-shadow: var(--gold-glow);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.6);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold-light);
  border: 1.5px solid var(--border-highlight);
}

.btn-outline-gold:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-bright);
  transform: translateY(-2px);
}

/* Glass Card Component */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
}

.glass-card:hover {
  border-color: var(--border-highlight);
  background: var(--bg-card-hover);
}

/* --------------------------------------------------------------------------
   4. NAVIGATION BAR
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(8, 11, 17, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: var(--gold-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #080b11;
  font-size: 1.2rem;
  transform: rotate(5deg);
  box-shadow: var(--gold-glow);
}

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

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.25rem 0;
}

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

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

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

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--gold-light);
  font-size: 1.5rem;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   5. HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  padding-top: 9rem;
  padding-bottom: 5rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-glow-bg {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(0,0,0,0) 70%);
  top: 10%;
  right: -5%;
  pointer-events: none;
  z-index: 0;
}

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

.hero-badge-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.hero-pill {
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-pill svg {
  color: var(--gold-primary);
}

.hero-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.2rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-serif);
  color: var(--gold-light);
}

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

.hero-visual {
  position: relative;
}

.hero-main-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-highlight);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), var(--gold-glow);
}

.hero-main-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-main-img-wrap:hover .hero-main-img {
  transform: scale(1.04);
}

.hero-floating-product {
  position: absolute;
  bottom: -30px;
  left: -40px;
  width: 220px;
  background: rgba(15, 21, 35, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  animation: floatAnim 4s ease-in-out infinite alternate;
}

.hero-floating-product img {
  border-radius: var(--radius-sm);
}

@keyframes floatAnim {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

/* --------------------------------------------------------------------------
   6. FEATURES & TECHNOLOGY SECTION
   -------------------------------------------------------------------------- */
.features-section {
  padding: 6rem 0;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2.2rem 1.8rem;
  position: relative;
  overflow: hidden;
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
  transition: var(--transition-normal);
}

.feature-card:hover .feature-icon-wrapper {
  background: var(--gold-gradient);
  color: #080b11;
  transform: scale(1.1) rotate(-5deg);
  box-shadow: var(--gold-glow);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #fff;
}

.feature-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   7. PRODUCTS SECTION & PAINT CALCULATOR
   -------------------------------------------------------------------------- */
.products-section {
  padding: 6rem 0;
  background: var(--bg-surface);
  position: relative;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 5rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.product-img-box {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

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

.product-card:hover .product-img-box img {
  transform: scale(1.08);
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gold-gradient);
  color: #080b11;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.product-info {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.product-tech {
  font-size: 0.85rem;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.product-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.product-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold-bright);
}

/* Calculator Box */
.calc-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

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

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

.form-input {
  width: 100%;
  padding: 0.85rem 1.2rem;
  background: rgba(8, 11, 17, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
}

.calc-result-box {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
}

.result-num {
  font-size: 3.5rem;
  font-weight: 800;
  font-family: var(--font-serif);
  color: var(--gold-light);
  line-height: 1;
  margin: 0.5rem 0;
}

/* --------------------------------------------------------------------------
   8. COLOR PALETTE INTERACTIVE SECTION (STUDIO CHỌN MÀU THÔNG MINH)
   -------------------------------------------------------------------------- */
.color-section {
  padding: 6rem 0;
  position: relative;
  background: radial-gradient(ellipse at 50% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
}

.color-stats-ribbon {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.color-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.25rem;
  background: rgba(18, 24, 38, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
}

.color-stat-pill i {
  color: var(--gold-light);
}

.color-stat-pill strong {
  color: #fff;
}

/* Studio Main Grid Layout */
.color-studio-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2.5rem;
  align-items: start;
}


/* Left Column: Visualizer & Active Inspector */
.visualizer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  position: sticky;
  top: 90px;
  z-index: 10;
}

.visualizer-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.room-tabs {
  display: flex;
  gap: 0.4rem;
  background: rgba(8, 11, 17, 0.6);
  padding: 0.3rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.room-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.room-tab-btn:hover {
  color: #fff;
}

.room-tab-btn.active {
  background: var(--gold-gradient);
  color: #080b11;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.lighting-toggle-box {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(8, 11, 17, 0.6);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  font-size: 0.75rem;
}

.lighting-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
}

.lighting-btn.active {
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-light);
  border: 1px solid var(--border-highlight);
}

/* Room Viewport Canvas */
.visualizer-viewport {
  position: relative;
  height: 320px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #d4af37;
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.room-base-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.wall-color-overlay {
  position: absolute;
  inset: 0;
  background-color: #d4af37;
  mix-blend-mode: multiply;
  opacity: 0.82;
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  pointer-events: none;
}

.wall-color-softlight {
  position: absolute;
  inset: 0;
  background-color: #d4af37;
  mix-blend-mode: soft-light;
  opacity: 0.75;
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.visualizer-lighting-filter {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: background 0.4s ease;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(8, 11, 17, 0.45) 100%);
}

.visualizer-lighting-filter.warm {
  background: radial-gradient(circle at 50% 30%, rgba(255, 170, 50, 0.25) 0%, rgba(15, 10, 5, 0.6) 100%),
              linear-gradient(180deg, rgba(255, 190, 80, 0.15) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.visualizer-badge-overlay {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
}

.visualizer-live-pill {
  background: rgba(8, 11, 17, 0.85);
  backdrop-filter: blur(12px);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-highlight);
  font-size: 0.75rem;
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.visualizer-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #d4af37;
  box-shadow: 0 0 8px currentColor;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* Active Color Inspector Box */
.active-color-inspector {
  background: rgba(8, 11, 17, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.active-color-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.active-color-swatch-large {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  background-color: #d4af37;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), inset 0 2px 4px rgba(255,255,255,0.4);
  position: relative;
  flex-shrink: 0;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.active-color-swatch-large::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, transparent 100%);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  pointer-events: none;
}

.active-color-meta {
  flex-grow: 1;
}

.active-color-code-badge {
  display: inline-block;
  background: var(--gold-gradient);
  color: #080b11;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.35rem;
  letter-spacing: 0.5px;
}

.active-color-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.active-color-group-name {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Specs Row */
.active-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  background: rgba(15, 21, 35, 0.7);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 1rem;
}

.spec-item {
  text-align: center;
}

.spec-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
}

.spec-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-light);
  font-family: monospace;
}

/* Color Harmony 3-Tone Palette */
.harmony-box {
  margin-bottom: 1.25rem;
  border-top: 1px dashed var(--border-subtle);
  padding-top: 1rem;
}

.harmony-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.harmony-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.harmony-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.harmony-card {
  background: rgba(15, 21, 35, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
}

.harmony-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  background: rgba(28, 36, 56, 0.8);
}

.harmony-chip {
  width: 100%;
  height: 28px;
  border-radius: 4px;
  margin-bottom: 0.35rem;
  border: 1px solid rgba(255,255,255,0.15);
}

.harmony-role {
  font-size: 0.65rem;
  color: var(--text-muted);
  display: block;
}

.harmony-code {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

/* Action Buttons */
.active-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.btn-spec {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid transparent;
}

.btn-copy-code {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-light);
  border-color: var(--border-highlight);
}

.btn-copy-code:hover {
  background: rgba(212, 175, 55, 0.25);
  color: #fff;
}

.btn-consult-this {
  background: var(--gold-gradient);
  color: #080b11;
  font-weight: 700;
}

.btn-consult-this:hover {
  box-shadow: var(--gold-glow);
  transform: translateY(-1px);
}

.btn-fav-toggle {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border-color: rgba(255, 255, 255, 0.1);
  padding: 0.65rem;
}

.btn-fav-toggle:hover, .btn-fav-toggle.active {
  color: #ef4444;
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* Right Column: Catalog Engine */
.catalog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

/* Search & Filter Toolbar */
.catalog-toolbar {
  margin-bottom: 1.5rem;
}

.search-input-box {
  position: relative;
  margin-bottom: 1rem;
}

.search-input-box i.search-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-light);
  font-size: 1rem;
}

.catalog-search-input {
  width: 100%;
  padding: 0.95rem 3rem 0.95rem 3rem;
  background: rgba(8, 11, 17, 0.8);
  border: 1.5px solid var(--border-highlight);
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.catalog-search-input:focus {
  border-color: var(--gold-bright);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.35);
}

.search-clear-btn {
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  display: none;
}

.search-clear-btn:hover {
  color: #fff;
}

/* Quick Filter Tags & Sort */
.filter-subbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-quick-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.quick-tag-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.quick-tag-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  color: #fff;
  border-color: var(--border-highlight);
}

.quick-tag-btn.active {
  background: var(--gold-primary);
  color: #080b11;
  font-weight: 700;
  border-color: var(--gold-primary);
}

.sort-select-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sort-select-box label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sort-select {
  background: rgba(8, 11, 17, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Horizontal Color Groups Pills Selector */
.groups-scroll-container {
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  overflow-x: auto;
  white-space: nowrap;
  display: flex;
  gap: 0.6rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-highlight) transparent;
}

.groups-scroll-container::-webkit-scrollbar {
  height: 5px;
}

.groups-scroll-container::-webkit-scrollbar-thumb {
  background: var(--border-highlight);
  border-radius: 10px;
}

.group-tile-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1rem;
  background: rgba(8, 11, 17, 0.6);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-normal);
  user-select: none;
}

.group-tile-pill:hover {
  border-color: var(--gold-primary);
  background: rgba(28, 36, 56, 0.6);
  transform: translateY(-2px);
}

.group-tile-pill.active {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-bright);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.group-pill-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.group-pill-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}

.group-pill-count {
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1rem 0.45rem;
  border-radius: 10px;
}

/* Swatches Grid */
.swatches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
  min-height: 380px;
}

.swatch-card {
  background: rgba(8, 11, 17, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.swatch-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-light);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(212, 175, 55, 0.25);
  background: rgba(28, 36, 56, 0.7);
  z-index: 2;
}

.swatch-card.active {
  border-color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.1);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.45);
}

.swatch-card.active::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 20px;
  height: 20px;
  background: var(--gold-gradient);
  color: #080b11;
  font-size: 0.65rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swatch-disc {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  margin-bottom: 0.6rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 10px rgba(0,0,0,0.35), inset 0 2px 4px rgba(255,255,255,0.4);
  position: relative;
  transition: transform 0.3s ease;
}

.swatch-card:hover .swatch-disc {
  transform: scale(1.1);
}

.swatch-disc::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, transparent 100%);
  border-radius: 58px 58px 0 0;
  pointer-events: none;
}

.swatch-card-code {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.2rem;
  word-break: break-all;
}

.swatch-card-name {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.2;
  margin-bottom: 0.35rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 110px;
}

.swatch-card-hex {
  font-family: monospace;
  font-size: 0.7rem;
  color: var(--gold-light);
  opacity: 0.8;
}

.swatch-card-actions {
  display: flex;
  gap: 0.3rem;
  margin-top: 0.5rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.swatch-card:hover .swatch-card-actions {
  opacity: 1;
}

.swatch-mini-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.swatch-mini-btn:hover {
  background: var(--gold-primary);
  color: #080b11;
  transform: scale(1.15);
}

/* Empty State */
.swatches-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.swatches-empty-state i {
  font-size: 3rem;
  color: var(--border-highlight);
  margin-bottom: 1rem;
}

/* Pagination & Load More */
.catalog-pagination-box {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
}

.pagination-info {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.pagination-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-load-more {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--border-highlight);
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-load-more:hover {
  background: var(--gold-gradient);
  color: #080b11;
  box-shadow: var(--gold-glow);
}

/* Toast Copy Notification */
.copy-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(18, 24, 38, 0.95);
  border: 1px solid var(--gold-primary);
  box-shadow: var(--gold-glow);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.copy-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.copy-toast i {
  color: var(--gold-light);
}

/* --------------------------------------------------------------------------
   9. SHOWCASE & GALLERY SECTION
   -------------------------------------------------------------------------- */
.gallery-section {
  padding: 6rem 0;
  background: var(--bg-surface);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 11, 17, 0.9) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-tag {
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.gallery-title {
  font-size: 1.2rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   10. TESTIMONIALS & CONSULTATION FORM
   -------------------------------------------------------------------------- */
.contact-section {
  padding: 6rem 0;
  position: relative;
}

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

.contact-card {
  padding: 3rem 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--gold-gradient);
  color: #080b11;
  padding: 1rem 1.8rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  box-shadow: var(--gold-glow);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 2000;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   11. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: #04060a;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

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

.footer-brand-desc {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.footer-heading {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

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

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

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   12. COMPREHENSIVE RESPONSIVE BREAKPOINTS & MOBILE OPTIMIZATIONS
   -------------------------------------------------------------------------- */

/* Floating Mini Color Dock (Active on Mobile/Tablet when scrolled past visualizer) */
.mobile-color-dock {
  display: none;
  position: fixed;
  bottom: 1.25rem;
  left: 1rem;
  right: 1rem;
  background: rgba(10, 14, 24, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid var(--border-highlight);
  border-radius: var(--radius-full);
  padding: 0.5rem 0.85rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65), 0 0 20px rgba(212, 175, 55, 0.25);
  z-index: 1000;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(140%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.mobile-color-dock.visible {
  transform: translateY(0);
  pointer-events: auto;
}

.dock-color-disc {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  flex-shrink: 0;
  transition: background-color 0.3s ease;
}

.dock-info {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.dock-info strong {
  font-size: 0.85rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.dock-info span {
  font-size: 0.7rem;
  font-family: monospace;
  color: var(--gold-light);
}

.dock-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-shrink: 0;
}

.dock-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition-fast);
}

.dock-btn.btn-view-room {
  background: var(--gold-gradient);
  color: #080b11;
  border: none;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.35);
}

.dock-btn.btn-copy-dock {
  width: 34px;
  height: 34px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}

/* Tablet Screens (max-width: 1024px) */
@media (max-width: 1024px) {
  .hero-grid, .calc-grid, .color-preview-container, .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  /* Navigation Drawer */
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(8, 11, 17, 0.98);
    backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    transition: left 0.35s ease;
  }

  .nav-links.active {
    left: 0;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-floating-product {
    left: 0;
  }

  /* Color Studio Tablet Layout */
  .color-section {
    padding: 4.5rem 0;
  }

  .color-studio-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .visualizer-card {
    position: relative;
    top: 0;
    z-index: 5;
    padding: 1.5rem;
  }

  .visualizer-viewport {
    height: 260px;
  }

  .mobile-color-dock {
    display: flex;
  }
}

/* Landscape Phones & Small Tablets (max-width: 768px) */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .container {
    padding: 0 1.25rem;
  }

  .section-title {
    font-size: 2.1rem;
  }

  .section-subtitle {
    font-size: 0.98rem;
    margin-bottom: 2rem;
  }

  .hero-content {
    text-align: center;
  }

  .hero-badge-group {
    justify-content: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding: 1rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .hero-main-img {
    height: 340px;
  }

  /* Features & Products Grids */
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3.5rem;
  }

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

  .calc-wrapper {
    padding: 2rem 1.5rem;
  }

  .contact-card {
    padding: 2rem 1.5rem;
  }

  /* Color Studio Tweaks */
  .visualizer-viewport {
    height: 230px;
  }

  .swatches-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.75rem;
  }

  .swatch-card {
    padding: 0.65rem 0.5rem;
  }

  .swatch-disc {
    width: 48px;
    height: 48px;
  }
}

/* Mobile Screens (max-width: 640px) */
@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }

  .section-title-tag {
    font-size: 0.75rem;
    padding: 0.35rem 0.85rem;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .section-subtitle {
    font-size: 0.92rem;
    margin-bottom: 1.75rem;
  }

  /* Hero Section Mobile */
  .hero {
    padding: 6.5rem 0 3.5rem;
  }

  .hero-heading {
    font-size: 2.2rem;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .stat-item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.75rem;
  }

  .hero-main-img {
    height: 280px;
  }

  .hero-floating-product {
    width: 175px;
    left: 0.5rem;
    bottom: -15px;
    padding: 0.6rem;
  }

  .hero-floating-product img {
    height: 90px;
    object-fit: contain;
  }

  /* Color Studio Section Mobile */
  .color-section {
    padding: 3rem 0;
  }

  /* 2x2 Feature Ribbon */
  .color-stats-ribbon {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .color-stat-pill {
    padding: 0.5rem 0.65rem;
    font-size: 0.75rem;
    gap: 0.45rem;
    border-radius: var(--radius-sm);
    justify-content: flex-start;
  }

  .color-stat-pill i {
    font-size: 0.85rem;
  }

  /* Visualizer Card & Controls */
  .visualizer-card {
    padding: 1rem 0.85rem;
    border-radius: var(--radius-md);
  }

  .visualizer-top-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
  }

  .room-tabs {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 0.25rem;
    display: flex;
    gap: 0.35rem;
  }

  .room-tabs::-webkit-scrollbar {
    display: none;
  }

  .room-tab-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.72rem;
    flex-shrink: 0;
  }

  .lighting-toggle-box {
    align-self: center;
    padding: 0.2rem 0.5rem;
  }

  .lighting-btn {
    padding: 0.25rem 0.6rem;
    font-size: 0.72rem;
  }

  /* Viewport Canvas */
  .visualizer-viewport {
    height: 200px;
    margin-bottom: 1rem;
    border-radius: var(--radius-sm);
  }

  .visualizer-badge-overlay {
    bottom: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
  }

  .visualizer-live-pill {
    padding: 0.3rem 0.6rem;
    font-size: 0.68rem;
    gap: 0.35rem;
  }

  #visualizer-room-name-badge {
    padding: 0.25rem 0.5rem;
    font-size: 0.68rem;
  }

  /* Active Color Inspector Compact */
  .active-color-inspector {
    padding: 0.85rem;
    border-radius: var(--radius-sm);
  }

  .active-color-header {
    gap: 0.75rem;
    margin-bottom: 0.85rem;
  }

  .active-color-swatch-large {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    border-width: 2px;
  }

  .active-color-code-badge {
    font-size: 0.72rem;
    padding: 0.15rem 0.5rem;
    margin-bottom: 0.2rem;
  }

  .active-color-title {
    font-size: 1.15rem;
    margin-bottom: 0.15rem;
  }

  .active-color-group-name {
    font-size: 0.75rem;
  }

  .active-specs-grid {
    padding: 0.5rem 0.6rem;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
  }

  .spec-label {
    font-size: 0.62rem;
    margin-bottom: 0.1rem;
  }

  .spec-value {
    font-size: 0.78rem;
  }

  /* Harmony 3-Tone Box */
  .harmony-box {
    margin-bottom: 0.85rem;
    padding-top: 0.75rem;
  }

  .harmony-header {
    margin-bottom: 0.5rem;
  }

  .harmony-title {
    font-size: 0.72rem;
  }

  .harmony-grid {
    gap: 0.4rem;
  }

  .harmony-card {
    padding: 0.35rem;
  }

  .harmony-chip {
    height: 22px;
    margin-bottom: 0.25rem;
  }

  .harmony-role {
    font-size: 0.6rem;
  }

  .harmony-code {
    font-size: 0.68rem;
  }

  /* Action Buttons */
  .active-actions-grid {
    gap: 0.5rem;
  }

  .btn-spec {
    padding: 0.6rem 0.75rem;
    font-size: 0.78rem;
  }

  /* Catalog Card & Toolbar */
  .catalog-card {
    padding: 1rem 0.75rem;
    border-radius: var(--radius-md);
  }

  .catalog-toolbar {
    margin-bottom: 1rem;
  }

  .catalog-search-input {
    padding: 0.8rem 2.6rem;
    font-size: 0.88rem;
    border-radius: var(--radius-md);
  }

  .search-input-box i.search-icon {
    left: 0.9rem;
    font-size: 0.85rem;
  }

  .search-clear-btn {
    right: 0.9rem;
  }

  .filter-subbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .filter-quick-tags {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
    display: flex;
    gap: 0.35rem;
  }
  .filter-quick-tags::-webkit-scrollbar {
    display: none;
  }

  .quick-tag-btn {
    padding: 0.35rem 0.7rem;
    font-size: 0.72rem;
    flex-shrink: 0;
  }

  .sort-select-box {
    width: 100%;
  }

  .sort-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
  }

  /* Horizontal Group Tiles Ribbon */
  .groups-scroll-container {
    gap: 0.4rem;
    padding-bottom: 0.6rem;
    margin-bottom: 1.25rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .groups-scroll-container::-webkit-scrollbar {
    display: none;
  }

  .group-tile-pill {
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
    gap: 0.45rem;
  }

  .group-pill-dot {
    width: 11px;
    height: 11px;
  }

  .group-pill-name {
    font-size: 0.78rem;
  }

  .group-pill-count {
    font-size: 0.65rem;
    padding: 0.05rem 0.35rem;
  }

  /* 3-Column Swatches Grid on Mobile Phones */
  .swatches-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
    min-height: 280px;
  }

  .swatch-card {
    padding: 0.55rem 0.3rem;
    border-radius: var(--radius-sm);
  }

  .swatch-disc {
    width: 42px;
    height: 42px;
    margin-bottom: 0.35rem;
    border-width: 1.5px;
  }

  .swatch-card-code {
    font-size: 0.74rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
    line-height: 1.1;
  }

  .swatch-card-name {
    font-size: 0.65rem;
    max-width: 82px;
    margin-bottom: 0.2rem;
  }

  .swatch-card-hex {
    font-size: 0.62rem;
  }

  .swatch-card-actions {
    display: flex;
    opacity: 1; /* Always visible on touchscreens */
    gap: 0.25rem;
    margin-top: 0.35rem;
  }

  .swatch-mini-btn {
    width: 24px;
    height: 24px;
    font-size: 0.65rem;
  }

  .swatch-card.active::after {
    width: 18px;
    height: 18px;
    font-size: 0.55rem;
    top: 0.3rem;
    right: 0.3rem;
  }

  /* Pagination Bar on Mobile */
  .catalog-pagination-box {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
  }

  .pagination-info {
    font-size: 0.78rem;
  }

  .pagination-actions {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .btn-load-more {
    width: 100%;
    justify-content: center;
    padding: 0.7rem 1rem;
    font-size: 0.82rem;
  }

  /* Calculator Mobile */
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .calc-result-box {
    padding: 1.5rem 1rem;
  }

  .result-num {
    font-size: 2.8rem;
  }

  /* Gallery Mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    height: 240px;
  }

  /* Footer Mobile */
  .footer {
    padding: 3rem 0 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  /* Toasts on Mobile */
  .copy-toast {
    left: 1rem;
    right: 1rem;
    bottom: 5.5rem;
    justify-content: center;
    font-size: 0.82rem;
    padding: 0.65rem 1rem;
  }
}

/* Small Screens (max-width: 380px) */
@media (max-width: 380px) {
  .swatches-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .swatch-disc {
    width: 48px;
    height: 48px;
  }

  .active-specs-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .spec-label {
    margin-bottom: 0;
  }
}

/* ===== COLOR TEASER BLOCK (index.html) ===== */
.color-teaser-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (min-width: 768px) {
  .color-teaser-block {
    grid-template-columns: 1fr 320px;
    align-items: center;
  }
}
.color-teaser-samples {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
@media (min-width: 480px) {
  .color-teaser-samples { grid-template-columns: repeat(6, 1fr); }
}
@media (min-width: 768px) {
  .color-teaser-samples { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .color-teaser-samples { grid-template-columns: repeat(6, 1fr); }
}
.color-teaser-swatch {
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}
.color-teaser-swatch:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
  border-color: rgba(255,255,255,0.2);
  z-index: 1;
}
.color-teaser-cta {
  background: rgba(18,24,38,0.7);
  border: 1.5px solid rgba(201,149,42,0.25);
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
}
