/* Elegant Design System & Stylesheet - JNP Tiles Showroom & Estimator */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Curated HSL Color Scheme (Bright, Premium Showroom Aesthetic) */
  --bg-primary: #FAF8F5;       /* Alabaster Warm Off-White */
  --bg-secondary: #FFFFFF;     /* Pure White */
  --bg-tertiary: #F1ECE3;      /* Sand Beige Accent */
  
  --primary: #8C7B6C;          /* Warm Earthy Bronze */
  --primary-hover: #736456;    /* Dark Bronze */
  --primary-light: #F6F3EE;   /* Very Light Bronze Tint */
  
  --accent-green: #5D6B59;     /* Soft Muted Sage Green */
  --accent-green-hover: #4C5749;
  --accent-green-light: #F0F3EF;
  
  --accent-clay: #C08A70;      /* Terracotta Accent */
  --accent-clay-light: #FDF4F0;
  
  --text-main: #2C2824;        /* Warm Charcoal (Soft Contrast) */
  --text-muted: #726A61;      /* Light Bronze/Grey Muted Text */
  --text-light: #9B948C;      /* Very Muted Text */
  
  --border-color: rgba(220, 215, 205, 0.45);
  --border-color-dark: rgba(140, 123, 108, 0.25);
  
  /* Shadows & Radius */
  --shadow-subtle: 0 4px 20px rgba(140, 123, 108, 0.05);
  --shadow-medium: 0 10px 30px rgba(140, 123, 108, 0.09);
  --shadow-premium: 0 20px 45px rgba(140, 123, 108, 0.12);
  --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.02);
  
  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 8px;
  --radius-sm: 4px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  
  --font-main: 'Inter', -apple-system, sans-serif;
  --font-title: 'Outfit', sans-serif;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 500;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

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

/* Custom Premium Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color-dark);
  border-radius: var(--radius-md);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Navigation Shell */
header {
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition);
}

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

.logo-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(140, 123, 108, 0.2);
}

.logo-icon::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px fill var(--bg-secondary);
  background: var(--bg-secondary);
  transform: rotate(45deg);
}

.logo-text {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.logo-text span {
  color: var(--primary);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
}

nav a {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: var(--transition);
  cursor: pointer;
}

nav a:hover, nav a.active {
  color: var(--primary);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

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

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

.wishlist-btn {
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  transition: var(--transition);
}

.wishlist-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

.wishlist-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-clay);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
}

/* Primary View Shells */
main {
  flex: 1;
}

.view-section {
  display: none;
  opacity: 0;
  animation: fadeIn 0.4s ease-out forwards;
}

.view-section.active {
  display: block;
  opacity: 1;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: var(--bg-secondary);
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 15px rgba(140, 123, 108, 0.25);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

.btn-accent {
  background: var(--accent-green);
  color: #fff;
}
.btn-accent:hover {
  background: var(--accent-green-hover);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.btn-icon:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

/* 1. Landing / Homepage View */
.hero-section {
  padding: 80px 24px 60px;
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  font-size: 56px;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero-content h1 span {
  color: var(--primary);
}

.hero-content p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
}

.hero-showcase {
  position: relative;
  height: 450px;
}

.showcase-bg-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 16px;
  transform: perspective(1000px) rotateY(-12deg) rotateX(10deg);
  opacity: 0.95;
}

.showcase-tile-item {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-medium);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.showcase-tile-item:hover {
  transform: translateZ(20px);
}

/* Featured Categories */
.section-wrapper {
  max-width: 1300px;
  margin: 60px auto 100px;
  padding: 0 24px;
}

.section-header {
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.section-header h2 {
  font-size: 36px;
  font-weight: 600;
}
.section-header p {
  color: var(--text-muted);
  margin-top: 8px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.category-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
}
.category-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-medium);
}

.category-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--primary-light);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

/* Why Choose Us & Process Steps */
.why-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-item h3 {
  font-size: 20px;
  margin: 16px 0 8px;
}
.feature-item p {
  color: var(--text-muted);
  font-size: 14px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.step-card {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
}

.step-number {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 32px;
  font-weight: 700;
  color: var(--border-color-dark);
  font-family: var(--font-title);
}

.step-card h3 {
  margin: 16px 0 8px;
  font-size: 18px;
}
.step-card p {
  font-size: 13px;
  color: var(--text-muted);
}

/* 2. Catalogue View */
.catalogue-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  max-width: 1300px;
  margin: 40px auto 80px;
  padding: 0 24px;
}

/* Sidebar Filters */
.filters-sidebar {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 90px;
}

.filter-group {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
}
.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-group h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
}

.checkbox-label input {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color-dark);
}

/* Catalogue Main Content */
.catalogue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  max-width: 320px;
}

.search-input-wrapper input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-family: var(--font-main);
  outline: none;
  font-size: 14px;
  background: var(--bg-secondary);
  transition: var(--transition);
}
.search-input-wrapper input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(140, 123, 108, 0.1);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}

.sort-select {
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  outline: none;
  background: var(--bg-secondary);
  font-family: var(--font-main);
  font-size: 14px;
  cursor: pointer;
}

.product-count {
  font-size: 14px;
  color: var(--text-muted);
}

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

/* Tile Card */
.tile-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.tile-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-hover);
  box-shadow: var(--shadow-medium);
}

.tile-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  z-index: 2;
}

.tile-wishlist-action {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.tile-img-container {
  height: 220px;
  background: var(--primary-light);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.tile-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.tile-card:hover .tile-img-container img {
  transform: scale(1.05);
}

.tile-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tile-cat-finish {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 4px;
  display: flex;
  gap: 6px;
}

.tile-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  cursor: pointer;
}
.tile-title:hover {
  color: var(--primary);
}

.tile-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.tile-pricing {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.tile-price-sqft {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-title);
}
.tile-price-sqft span {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}

.tile-price-box {
  font-size: 12px;
  color: var(--text-light);
  text-align: right;
}

.tile-card-actions {
  padding: 0 20px 20px;
  display: flex;
  gap: 10px;
}

.tile-card-actions .btn {
  flex: 1;
  padding: 10px;
  font-size: 13px;
}

/* 3. Product Detail View */
.detail-layout {
  max-width: 1200px;
  margin: 40px auto 80px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
}

.detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-main-img {
  height: 480px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.detail-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.thumb-item {
  height: 80px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--bg-secondary);
  transition: var(--transition);
}
.thumb-item.active {
  border-color: var(--primary);
}
.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-content h1 {
  font-size: 38px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.detail-tagline {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.detail-price-panel {
  background: var(--primary-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.feature-pill {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  color: var(--text-muted);
}

.detail-tabs-container {
  margin-top: 32px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
}

.detail-tab {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-light);
  padding: 10px 0;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}
.detail-tab.active {
  color: var(--primary);
  border-color: var(--primary);
}

.detail-tab-pane {
  display: none;
}
.detail-tab-pane.active {
  display: block;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}
.spec-table td {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}
.spec-table td:first-child {
  color: var(--text-muted);
  font-weight: 500;
  width: 40%;
}

/* Quick Estimate on Details Page */
.detail-quick-calc {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 32px;
  box-shadow: var(--shadow-subtle);
}

.form-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input, .form-group select {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-family: var(--font-main);
  outline: none;
  font-size: 14px;
  background: var(--bg-secondary);
  transition: var(--transition);
}
.form-group input:focus, .form-group select:focus {
  border-color: var(--primary);
}

.calc-output-box {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.calc-output-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calc-output-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
}

.calc-output-val {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
}

/* 4 & 5. Calculator & Multi-Room view */
.calculator-container {
  max-width: 1200px;
  margin: 40px auto 80px;
  padding: 0 24px;
}

.calculator-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}

.estimator-pane {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-subtle);
}

.room-planner-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.room-panel-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--bg-secondary);
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-subtle);
}

.room-panel-card.expanded {
  border-left: 4px solid var(--primary);
  border-color: var(--border-color-dark);
  box-shadow: var(--shadow-medium);
}

.room-panel-card.collapsed {
  padding: 14px 20px;
  background: var(--bg-primary);
  cursor: pointer;
}

.room-panel-card.collapsed:hover {
  border-color: var(--primary);
  background: #FAF6F0;
}

.room-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.room-panel-card.expanded .room-card-header {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.room-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-family: var(--font-title);
  font-size: 16px;
}

.room-accordion-toggle-indicator {
  font-size: 11px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.room-delete-btn {
  background: none;
  border: none;
  color: var(--accent-clay);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.room-delete-btn:hover {
  background: var(--accent-clay-light);
}

.room-panel-body {
  display: block;
}

.room-panel-card.collapsed .room-panel-body {
  display: none;
}

.room-form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.full-width-form-group {
  grid-column: span 3;
}

.room-sub-details {
  border-top: 1px dashed var(--border-color);
  padding-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.slider-group input[type="range"] {
  accent-color: var(--primary);
  cursor: pointer;
}

.toggle-switch-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.toggle-switch-input {
  accent-color: var(--accent-green);
  width: 18px;
  height: 18px;
}

/* Optional Cost hiding toggle styling */
.summary-row.optional-cost-row.hidden {
  display: none;
}

/* Calculator Summary Panel */
.estimator-summary-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
  height: fit-content;
  position: sticky;
  top: 90px;
  box-shadow: var(--shadow-medium);
}

.summary-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--text-muted);
}
.summary-row.total {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  margin-top: 16px;
}

.room-wise-estimates {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.room-estimate-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 8px;
  gap: 16px;
}

.room-estimate-line strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.room-estimate-line span {
  white-space: nowrap;
  flex-shrink: 0;
}

/* 6. Dynamic Tile Preview & Room Mockup */
.preview-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  max-width: 1300px;
  margin: 40px auto 80px;
  padding: 0 24px;
}

.room-viewport-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-subtle);
  position: relative;
}

.room-mockup-svg-wrapper {
  width: 100%;
  max-width: 600px;
  height: 400px;
  position: relative;
}

.room-mockup-svg-wrapper svg {
  width: 100%;
  height: 100%;
}

.preview-controls {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-medium);
}

.room-mockup-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.room-mockup-tab {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  background: var(--bg-secondary);
  transition: var(--transition);
}
.room-mockup-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Split Compare Preview Overlay */
.comparison-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

/* 7. Quotation Sheet / Invoice Design */
.quotation-sheet-wrapper {
  max-width: 800px;
  margin: 40px auto 80px;
  padding: 0 24px;
}

.invoice-sheet {
  background: #ffffff;
  border: 1px solid var(--border-color-dark);
  border-radius: var(--radius-md);
  padding: 50px 40px;
  box-shadow: var(--shadow-medium);
  font-family: var(--font-main);
  color: #333333;
}

.invoice-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 24px;
  margin-bottom: 30px;
}

.invoice-company-details {
  text-align: right;
  font-size: 13px;
}
.invoice-company-name {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.invoice-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 30px;
  font-size: 13px;
}

.invoice-meta-col h3 {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 6px;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  font-size: 13px;
}

.invoice-table th {
  background: #F9F7F4;
  font-weight: 600;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color-dark);
  color: var(--text-main);
}

.invoice-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #ECECEC;
  vertical-align: top;
}

.invoice-summary-table {
  width: 280px;
  margin-left: auto;
  font-size: 13px;
}
.invoice-summary-table td {
  padding: 6px 12px;
}
.invoice-summary-table td:last-child {
  text-align: right;
}
.invoice-summary-table tr.total-row {
  font-size: 16px;
  font-weight: 700;
  border-top: 1.5px solid var(--primary);
}

.invoice-footer {
  border-top: 1px solid #ECECEC;
  padding-top: 20px;
  margin-top: 40px;
  font-size: 11px;
  color: var(--text-light);
  text-align: center;
}

.quote-actions-bar {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

/* 8. Enquiry Consultation Page */
.enquiry-container {
  max-width: 680px;
  margin: 60px auto 100px;
  padding: 0 24px;
}

.enquiry-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-medium);
}

.enquiry-card h2 {
  font-size: 28px;
  margin-bottom: 12px;
  font-weight: 600;
}
.enquiry-card p {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.enquiry-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.span-two-cols {
  grid-column: span 2;
}

.enquiry-form select, .enquiry-form textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-family: var(--font-main);
  outline: none;
  font-size: 14px;
  background: var(--bg-secondary);
  transition: var(--transition);
}

.enquiry-form textarea {
  height: 100px;
  resize: vertical;
}

/* 9. Sales/Admin Dashboard */
.dashboard-container {
  max-width: 1300px;
  margin: 40px auto 80px;
  padding: 0 24px;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-val {
  font-size: 32px;
  font-weight: 700;
  font-family: var(--font-title);
  color: var(--primary);
  line-height: 1.2;
}
.stat-title {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.dashboard-sections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.dashboard-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 24px;
}

.panel-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.dashboard-table-wrapper {
  overflow-x: auto;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.dashboard-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--bg-primary);
  font-weight: 600;
  border-bottom: 1.5px solid var(--border-color);
}
.dashboard-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
}

.status-badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}
.status-badge.pending {
  background: #FEF9E7;
  color: #B7950B;
}
.status-badge.approved {
  background: #E8F8F5;
  color: #117864;
}
.status-badge.dispatched {
  background: #EAF2F8;
  color: #2471A3;
}

/* Modals */
dialog {
  border: none;
  border-radius: var(--radius-xl);
  padding: 32px;
  width: 100%;
  max-width: 580px;
  margin: auto;
  box-shadow: var(--shadow-premium);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

dialog::backdrop {
  background-color: rgba(44, 40, 36, 0.4);
  backdrop-filter: blur(4px);
}

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

.modal-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: var(--text-light);
}

/* Comparison Grid Page */
.comparison-grid {
  display: grid;
  grid-template-columns: 200px repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 24px;
}

.compare-row-header {
  background: var(--bg-primary);
  font-weight: 600;
  padding: 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
}

.compare-col-value {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: var(--radius-md);
  text-align: center;
}

/* Footer Section */
footer {
  background: var(--text-main);
  color: #EADEC9;
  padding: 60px 24px 30px;
  border-top: 1px solid var(--border-color-dark);
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  color: #fff;
  font-family: var(--font-title);
  font-size: 18px;
  margin-bottom: 20px;
}

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

.footer-col a {
  font-size: 14px;
  color: #C2B6A3;
  transition: var(--transition);
}
.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(220, 215, 205, 0.15);
  max-width: 1300px;
  margin: 0 auto;
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #9B948C;
}

/* Print CSS */
@media print {
  body * {
    visibility: hidden;
  }
  .invoice-sheet, .invoice-sheet * {
    visibility: visible;
  }
  .invoice-sheet {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
  }
  .quote-actions-bar {
    display: none;
  }
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
    padding: 50px 24px;
  }
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-ctas {
    justify-content: center;
  }
  .catalogue-layout {
    grid-template-columns: 1fr;
  }
  .filters-sidebar {
    position: relative;
    top: 0;
    margin-bottom: 30px;
  }
  .detail-layout, .calculator-layout, .preview-layout {
    grid-template-columns: 1fr;
  }
  .stats-bar {
    grid-template-columns: 1fr 1fr;
  }
  .features-grid, .process-steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .header-container {
    flex-direction: column;
    gap: 16px;
  }
  nav ul {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .stats-bar, .features-grid, .process-steps {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
  .form-row-grid, .room-form-grid, .room-sub-details {
    grid-template-columns: 1fr;
  }
}
