/* ============================================================
   KAHL × TESLA — Commercial Interiors Catalog
   Style inspired by InsideSource.com
   ============================================================ */

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

:root {
  --black: #111111;
  --red: #E31937;
  --white: #ffffff;
  --off-white: #F7F7F7;
  --light-gray: #EEEEEE;
  --mid-gray: #CCCCCC;
  --text: #222222;
  --text-muted: #666666;
  --text-light: #999999;
  --border: #E0E0E0;
  --card-shadow: 0 2px 12px rgba(0,0,0,0.07);
  --card-shadow-hover: 0 8px 32px rgba(0,0,0,0.13);
  --radius: 4px;
  --header-h: 64px;
  --sidebar-w: 240px;
  --transition: 0.2s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font); }
img { max-width: 100%; display: block; }

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

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

.header-logo .kahl-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
}

.header-logo .divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.25);
}

.header-logo .tesla-badge {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

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

.header-nav-link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.header-nav-link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.07);
}

.header-cta {
  background: var(--red);
  color: var(--white) !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: var(--radius);
  border: none;
  margin-left: 8px;
  transition: opacity var(--transition);
}

.header-cta:hover { opacity: 0.88; }

/* ============================================================
   SECTION TABS NAV
   ============================================================ */

.section-nav {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 900;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}
.section-nav::-webkit-scrollbar { display: none; }

.section-tab {
  flex-shrink: 0;
  padding: 0 28px;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-muted);
  border: none;
  background: transparent;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.section-tab:hover { color: var(--text); }

.section-tab.active {
  color: var(--black);
  border-bottom-color: var(--red);
}

.section-tab .tab-icon { font-size: 15px; }

/* ============================================================
   HOME — Split Hero
   ============================================================ */

.home-hero {
  display: flex;
  align-items: stretch;
  min-height: calc(100vh - var(--header-h));
  background: var(--white);
}

.home-hero-left {
  flex: 1;
  padding: 48px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.home-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}

.home-headline {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.18;
  color: var(--black);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.home-subtext {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 36px;
}

.home-hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.home-btn-primary {
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: background var(--transition);
}
.home-btn-primary:hover { background: #333; }

.home-btn-ghost {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--black);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: all var(--transition);
}
.home-btn-ghost:hover { background: var(--black); color: var(--white); }

.home-stats {
  display: flex;
  align-items: center;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.home-stat {
  display: flex;
  flex-direction: column;
  padding-right: 32px;
}

.home-stat-num {
  font-size: 30px;
  font-weight: 700;
  color: var(--black);
  line-height: 1;
}

.home-stat-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 5px;
}

.home-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  margin-right: 32px;
}

/* Right: image grid (5 tiles: 3 top + 2 bottom) */
.home-hero-right {
  flex: 0 0 45%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  padding: 20px;
  background: var(--off-white);
  border-left: 1px solid var(--border);
}
.home-hero-right .home-img-tile:nth-child(-n+3) { grid-column: span 2; }
.home-hero-right .home-img-tile:nth-child(n+4) { grid-column: span 3; }

.home-img-grid {
  display: contents;
}

.home-img-tile {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--white);
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.home-img-tile:hover {
  border-color: var(--mid-gray);
  box-shadow: var(--card-shadow-hover);
}

.home-img-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: transform 0.4s ease;
  display: block;
}

.home-img-tile:hover img {
  transform: scale(1.04);
}

.home-tile-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 7px 12px;
  background: rgba(0,0,0,0.32);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ============================================================
   MAIN LAYOUT
   ============================================================ */

.catalog-layout {
  display: flex;
  min-height: calc(100vh - var(--header-h));
  margin-top: var(--header-h);
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.catalog-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  padding: 28px 0;
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  background: var(--white);
}

.sidebar-section { margin-bottom: 28px; }

.sidebar-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 0 20px;
  margin-bottom: 8px;
}

.sidebar-filter-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 20px;
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  text-align: left;
  transition: background var(--transition), color var(--transition);
  border-radius: 0;
}

.sidebar-filter-btn:hover {
  background: var(--off-white);
  color: var(--text);
}

.sidebar-filter-btn.active {
  color: var(--black);
  font-weight: 600;
  background: var(--off-white);
}

.sidebar-filter-btn.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0; bottom: 0;
  width: 3px;
  background: var(--red);
}

.sidebar-filter-btn { position: relative; }

.filter-count {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-light);
  background: var(--light-gray);
  padding: 2px 7px;
  border-radius: 20px;
}

.sidebar-filter-btn.active .filter-count {
  background: var(--red);
  color: var(--white);
}

/* ============================================================
   PRODUCT GRID AREA
   ============================================================ */

.catalog-main {
  flex: 1;
  min-width: 0;
  padding: 28px 32px;
  background: var(--off-white);
}

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

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.3px;
}

.section-count {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.view-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.view-btn {
  background: transparent;
  border: 1px solid var(--border);
  padding: 7px 10px;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 14px;
  transition: all var(--transition);
}

.view-btn.active, .view-btn:hover {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.sort-select {
  border: 1px solid var(--border);
  padding: 7px 12px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 12px;
  color: var(--text);
  background: var(--white);
  cursor: pointer;
}

/* ============================================================
   CATEGORY GROUP
   ============================================================ */

.category-group { margin-bottom: 40px; }

.category-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.category-group-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.category-group-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.category-group-count {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 500;
}

/* ============================================================
   PRODUCT GRID
   ============================================================ */

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

/* ============================================================
   PRODUCT CARD
   ============================================================ */

.product-card {
  background: var(--white);
  border-radius: 6px;
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--mid-gray);
}

/* Image area */
.product-image-wrap {
  position: relative;
  background: var(--white);
  aspect-ratio: 4/3;
  overflow: hidden;
  border-bottom: 1px solid var(--light-gray);
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.35s ease;
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.04);
}

/* Multi-image gallery dots */
.img-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}

.img-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--mid-gray);
  transition: background var(--transition);
  cursor: pointer;
}

.img-dot.active { background: var(--black); }

/* Color option thumbnails */
.color-options {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: flex;
  gap: 4px;
}

.color-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--mid-gray);
  cursor: pointer;
  transition: box-shadow var(--transition);
  overflow: hidden;
}

.color-thumb:hover, .color-thumb.active {
  box-shadow: 0 0 0 2px var(--black);
}

.color-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
}

/* No-image placeholder */
.product-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
  padding: 24px;
  text-align: center;
}

.placeholder-brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 8px;
}

.placeholder-icon {
  font-size: 32px;
  margin-bottom: 8px;
  opacity: 0.35;
}

.placeholder-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Product info */
.product-info {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-brand {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 5px;
}

.product-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.4;
  margin-bottom: 8px;
}

.product-specs {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
}

.product-finishes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
}

.finish-tag {
  font-size: 10px;
  padding: 3px 8px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  font-weight: 500;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--light-gray);
}

.product-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
}

.product-price sup {
  font-size: 11px;
  font-weight: 600;
  vertical-align: super;
}

.product-price-note {
  font-size: 10px;
  color: var(--text-light);
  margin-top: 1px;
}

.lead-time {
  font-size: 11px;
  color: #777777;
  margin-top: 4px;
  font-family: var(--font, 'Inter', sans-serif);
}

.card-btn {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--black);
  background: transparent;
  border: 1.5px solid var(--black);
  padding: 7px 14px;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.card-btn:hover {
  background: var(--black);
  color: var(--white);
}

/* ============================================================
   PRODUCT MODAL
   ============================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  backdrop-filter: blur(3px);
}

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

.modal {
  background: var(--white);
  border-radius: 8px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

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

.modal-body {
  display: flex;
  overflow: hidden;
  flex: 1;
}

.modal-gallery {
  width: 55%;
  background: var(--off-white);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-main-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  min-height: 340px;
}

.modal-main-image img {
  max-height: 340px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.modal-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  overflow-x: auto;
  background: var(--white);
}

.modal-thumb {
  width: 64px;
  height: 64px;
  border: 2px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color var(--transition);
  background: var(--off-white);
}

.modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.modal-thumb.active { border-color: var(--black); }
.modal-thumb:hover { border-color: var(--mid-gray); }

.modal-details {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal-brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

.modal-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.3;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.modal-category {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.modal-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 20px;
}

.modal-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--black);
}

.modal-price-note {
  font-size: 12px;
  color: var(--text-muted);
}

.modal-lead-time {
  font-size: 12px;
  color: #777777;
  padding: 8px 0;
  border-top: 1px solid #eeeeee;
  border-bottom: 1px solid #eeeeee;
  margin: 8px 0;
  font-family: var(--font, 'Inter', sans-serif);
}

.modal-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

.modal-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.spec-item {}

.spec-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 3px;
}

.spec-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.modal-finishes {
  margin-bottom: 24px;
}

.modal-finishes .spec-label { margin-bottom: 10px; }

.finish-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.finish-chip {
  font-size: 11px;
  padding: 5px 12px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.finish-chip:hover, .finish-chip.active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.modal-actions {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
}

.btn-primary {
  flex: 1;
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background var(--transition);
}

.btn-primary:hover { background: #333; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  padding: 13px 20px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all var(--transition);
}

.btn-secondary:hover {
  border-color: var(--black);
  color: var(--black);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0,0,0,0.07);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 1;
}

.modal-close:hover { background: rgba(0,0,0,0.14); }

.modal-wrap { position: relative; }

/* ============================================================
   REQUEST PANEL
   ============================================================ */

.request-panel {
  background: var(--black);
  color: var(--white);
  padding: 48px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.request-text h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.request-text p {
  color: rgba(255,255,255,0.55);
  font-size: 14px;
}

.request-btn {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity var(--transition);
  cursor: pointer;
}

.request-btn:hover { opacity: 0.88; }

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: #0a0a0a;
  color: rgba(255,255,255,0.45);
  padding: 32px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.footer-brand {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}

.footer-links a:hover { color: rgba(255,255,255,0.8); }

/* ============================================================
   SECTION PAGES (show/hide)
   ============================================================ */

.catalog-section { display: none; }
.catalog-section.active { display: flex; }

/* ============================================================
   QUOTE FORM MODAL
   ============================================================ */

.quote-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  backdrop-filter: blur(4px);
}

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

.quote-modal {
  background: var(--white);
  border-radius: 8px;
  width: 100%;
  max-width: 520px;
  padding: 40px;
  position: relative;
  transform: translateY(16px);
  transition: transform 0.25s ease;
}

.quote-modal-overlay.open .quote-modal {
  transform: translateY(0);
}

.quote-modal h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.quote-modal p {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 24px;
}

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--black);
}

.form-group textarea { resize: vertical; min-height: 80px; }

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

.form-submit {
  width: 100%;
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 14px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition);
  margin-top: 8px;
}

.form-submit:hover { background: #333; }

/* ============================================================
   NOTIFICATION
   ============================================================ */

.notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--black);
  color: var(--white);
  padding: 14px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  z-index: 9999;
  transform: translateY(80px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  max-width: 320px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

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

.notification.success { background: #1a7a4a; }

/* ============================================================
   SCROLLBAR
   ============================================================ */

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--mid-gray); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #aaa; }

/* Prevent horizontal scroll on mobile */
html, body {
  overflow-x: hidden;
}

/* Mobile hamburger */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
  .home-hero-left { padding: 56px 48px; }
  .home-headline { font-size: 34px; }
}

@media (max-width: 900px) {
  .catalog-sidebar { display: none; }
  .modal-gallery { width: 45%; }
}

@media (max-width: 768px) {
  :root { --header-h: 56px; }
  .site-header { padding: 0 20px; }

  /* Hamburger menu */
  .mobile-menu-btn { display: block; }
  .header-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
    padding: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 999;
  }
  .header-nav.mobile-open {
    display: flex;
  }
  .header-nav-link {
    padding: 16px 24px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    width: 100%;
    text-align: left;
  }
  .header-cta {
    margin: 12px 24px;
    width: calc(100% - 48px);
    text-align: center;
  }
  .header-cart {
    padding: 12px 24px;
    justify-content: flex-start;
  }

  /* Hero section */
  .home-hero { flex-direction: column; min-height: auto; }
  .home-hero-left {
    max-width: 100%;
    padding: 32px 24px 24px;
    text-align: center;
    align-items: center;
  }
  .home-headline { font-size: 28px; }
  .home-subtext { font-size: 14px; }
  .home-eyebrow { font-size: 10px; }
  .home-hero-right {
    border-left: none;
    border-top: 1px solid var(--border);
    min-height: auto;
    padding: 16px;
  }
  .home-img-grid {
    gap: 8px;
  }
  .home-stats {
    justify-content: center;
  }
  .home-btn-primary {
    width: 100%;
    text-align: center;
  }
  .home-hero-actions {
    width: 100%;
  }

  /* Catalog layout */
  .catalog-layout {
    flex-direction: column;
  }
  .catalog-sidebar {
    position: static;
    width: 100%;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .catalog-sidebar .sidebar-section-title { display: none; }
  .catalog-sidebar .sidebar-filter-item {
    display: inline-block;
    white-space: nowrap;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 12px;
  }
  .catalog-main {
    padding: 16px;
  }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

  /* Product modal */
  .modal {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
  }
  .modal-wrap {
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  .modal-body {
    flex-direction: column;
    overflow-y: auto;
    flex: 1;
  }
  .modal-gallery {
    width: 100%;
    max-height: 40vh;
    min-height: 200px;
    flex-shrink: 0;
  }
  .modal-main-image {
    max-height: 35vh;
  }
  .modal-main-image img {
    max-height: 35vh;
    object-fit: contain;
  }
  .modal-thumbs {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 8px 0;
  }
  .modal-details {
    padding: 20px 16px;
    overflow-y: auto;
  }
  .modal-close {
    position: fixed;
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    font-size: 20px;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .modal-actions {
    padding: 12px 0 0;
  }
  .modal-actions .btn-primary,
  .modal-actions .btn-secondary {
    width: 100%;
    padding: 14px;
    font-size: 14px;
  }
  .finish-chip, .dim-chip {
    padding: 8px 14px;
    font-size: 12px;
    min-height: 36px;
  }
  .modal-specs-grid { grid-template-columns: 1fr; }

  /* Quote modal */
  .quote-modal {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    padding: 24px 16px;
    overflow-y: auto;
  }
  .quote-modal input,
  .quote-modal select,
  .quote-modal textarea {
    font-size: 16px;
    min-height: 48px;
  }
  .form-submit {
    width: 100%;
    padding: 16px;
    font-size: 15px;
    min-height: 52px;
  }

  /* Cart drawer */
  .cart-drawer {
    width: 100vw;
    max-width: 100vw;
  }
  .cart-submit-btn,
  .cart-clear-btn {
    width: 100%;
    min-height: 48px;
  }

  /* Request panel + footer */
  .request-panel { flex-direction: column; text-align: center; padding: 40px 24px; }
  .site-footer { flex-direction: column; gap: 16px; text-align: center; padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; gap: 12px; }
  .modal-main-image { min-height: 220px; }
}

/* ============================================================
   HEADER — Cart Button
   ============================================================ */

.header-cart {
  position: relative;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  transition: background var(--transition);
  flex-shrink: 0;
}
.header-cart:hover { background: rgba(255,255,255,0.16); }
.header-cart svg { width: 18px; height: 18px; }

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  border: 2px solid var(--black);
}

/* ============================================================
   CART — Drawer + Overlay
   ============================================================ */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 4000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(2px);
}
.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: var(--white);
  z-index: 4001;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 48px rgba(0,0,0,0.14);
}
.cart-drawer.open { transform: translateX(0); }

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

.cart-drawer-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-drawer-count {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--off-white);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 20px;
}

.cart-drawer-close {
  background: transparent;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition), color var(--transition);
}
.cart-drawer-close:hover { background: var(--off-white); color: var(--black); }

/* Cart items list */
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 48px 32px;
  text-align: center;
  color: var(--text-muted);
}

.cart-empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.4; }
.cart-empty p { font-size: 14px; line-height: 1.6; margin-bottom: 4px; }
.cart-empty p:first-of-type { font-weight: 600; color: var(--text); }

.cart-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.cart-item:last-child { border-bottom: none; }
.cart-item:hover { background: var(--off-white); }

.cart-item-img {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}
.cart-item-placeholder { font-size: 24px; opacity: 0.4; }

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-brand {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 2px;
}

.cart-item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.35;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.cart-qty-btn {
  background: transparent;
  border: none;
  width: 28px;
  height: 26px;
  font-size: 15px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.cart-qty-btn:hover { background: var(--off-white); }


.cart-remove {
  background: transparent;
  border: none;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-light);
  padding: 0;
  transition: color var(--transition);
}
.cart-remove:hover { color: var(--red); }

.cart-item-subtotal {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  flex-shrink: 0;
  padding-top: 2px;
}

/* Cart footer */
.cart-footer {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  flex-shrink: 0;
  background: var(--white);
}

.cart-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}

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

.cart-total-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
}

.cart-disclaimer {
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 16px;
}

.cart-submit-btn {
  width: 100%;
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 14px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition);
  margin-bottom: 8px;
}
.cart-submit-btn:hover { background: #333; }

.cart-clear-btn {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-light);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px;
  transition: color var(--transition);
}
.cart-clear-btn:hover { color: var(--red); }

/* Card — footer actions with qty */
.card-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.card-qty-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-qty-ctrl {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.card-qty-btn {
  background: transparent;
  border: none;
  width: 24px;
  height: 26px;
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  padding: 0;
}
.card-qty-btn:hover { background: var(--off-white); }

.card-qty-input {
  width: 36px;
  height: 26px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: var(--black);
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: transparent;
  font-family: var(--font);
  padding: 0;
  outline: none;
  -moz-appearance: textfield;
}
.card-qty-input::-webkit-outer-spin-button,
.card-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.cart-qty-input {
  width: 40px;
  height: 26px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  color: var(--black);
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: transparent;
  font-family: var(--font);
  padding: 0;
  outline: none;
  -moz-appearance: textfield;
}
.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.card-btn-add {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--white);
  background: var(--black);
  border: 1.5px solid var(--black);
  padding: 7px 12px;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}
.card-btn-add:hover { background: #333; border-color: #333; }
.card-btn-add.in-cart { background: var(--red); border-color: var(--red); }

/* ============================================================
   FOCUS-VISIBLE — keyboard navigation accessibility
   ============================================================ */

.header-nav-link:focus-visible,
.header-cta:focus-visible,
.header-cart:focus-visible,
.home-btn-primary:focus-visible,
.home-btn-ghost:focus-visible,
.home-img-tile:focus-visible,
.request-btn:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.card-btn:focus-visible,
.card-btn-add:focus-visible,
.card-qty-btn:focus-visible,
.sidebar-filter-btn:focus-visible,
.modal-close:focus-visible,
.modal-thumb:focus-visible,
.finish-chip:focus-visible,
.form-submit:focus-visible,
.cart-submit-btn:focus-visible,
.cart-clear-btn:focus-visible,
.cart-qty-btn:focus-visible,
.cart-remove:focus-visible,
.cart-drawer-close:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* ============================================================
   UTILITY
   ============================================================ */

.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
