:root {
  --ink: #0e100d;
  --muted: #6b7068;
  --subtle: #9ba098;
  --line: #e2ddd7;
  --paper: #f7f4f0;
  --card: #ffffff;
  --white: #ffffff;
  --black: #111210;
  --img-bg: #f0ece5;
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.07);
  --shadow-md: 0 10px 40px rgba(0,0,0,0.11);
  --shadow-lg: 0 24px 72px rgba(0,0,0,0.16);
  --radius: 12px;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: Roboto, Arial, sans-serif;
  --accent: #c8a46b;
  --accent-dark: #9e7a3e;
  --accent-pale: #f7edd8;
  --forest: #1b3a28;
  --forest-mid: #2d5a3d;
  --forest-light: #e8f0eb;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

button, input, select { font: inherit; }

img { display: block; }

/* ══ HEADER ══════════════════════════════════════════════════ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(20px, 5vw, 72px);
  height: 72px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 244, 240, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--forest) 0%, var(--accent) 40%, var(--accent) 60%, var(--forest) 100%);
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  padding: 6px;
  border-radius: 6px;
  background: var(--accent);
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav a {
  position: relative;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.18s;
  padding-bottom: 3px;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a:hover { color: var(--ink); }
nav a:hover::after { width: 100%; }

/* ══ BUTTONS ═════════════════════════════════════════════════ */

.header-cta,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 4px;
  border: 1.5px solid transparent;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  white-space: nowrap;
}

.header-cta,
.primary-action {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.header-cta:hover,
.primary-action:hover {
  background: #2a2d27;
  border-color: #2a2d27;
}

.secondary-action {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.secondary-action:hover {
  background: var(--paper);
  border-color: var(--subtle);
}

.full { width: 100%; }

/* ══ HERO ════════════════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #0a0b09;
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(108deg, rgba(10,26,17,0.97) 0%, rgba(0,0,0,0.44) 50%, rgba(0,0,0,0.06) 100%),
    linear-gradient(to top, rgba(10,26,17,0.72) 0%, transparent 48%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(700px, calc(100% - 40px));
  margin: 0 0 80px clamp(20px, 6vw, 96px);
  color: var(--white);
}

/* ══ TYPOGRAPHY ══════════════════════════════════════════════ */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--accent);
  flex-shrink: 0;
}

.hero .eyebrow { color: rgba(255,255,255,0.6); }

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 22px;
  font-family: var(--serif);
  font-size: clamp(44px, 6.5vw, 88px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.01em;
}

h2 {
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: clamp(30px, 3.8vw, 52px);
  font-weight: 600;
  line-height: 1.08;
}

h3 {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.hero-copy p:not(.eyebrow) {
  max-width: 560px;
  color: rgba(255,255,255,0.80);
  font-size: 18px;
  line-height: 1.65;
  margin-bottom: 32px;
}

.hero .primary-action {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--black);
}

.hero .primary-action:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
}

/* ══ SECTIONS ════════════════════════════════════════════════ */

.section {
  padding: 96px clamp(20px, 5vw, 96px);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 64px;
}

/* Centered headings for gallery-style sections */
.styles-section .section-heading,
.pricing-section .section-heading {
  text-align: center;
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}

.styles-section .section-heading .eyebrow,
.pricing-section .section-heading .eyebrow {
  justify-content: center;
  color: var(--accent);
}

.styles-section .section-heading .eyebrow::before,
.pricing-section .section-heading .eyebrow::before {
  display: none;
}

/* Text overrides for forest-green styles section */
.styles-section .section-heading h2 { color: var(--white); }
.styles-section .section-heading p:not(.eyebrow) { color: rgba(255,255,255,0.55); }

/* Pricing section text on warm cream */
.pricing-section .section-heading h2 { color: var(--forest); }
.pricing-section .section-heading .eyebrow { color: var(--accent-dark); }

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 0;
}

.section-heading h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin-top: 18px;
}

.styles-section .section-heading h2::after,
.pricing-section .section-heading h2::after {
  margin-left: auto;
  margin-right: auto;
}

.compact { margin-bottom: 24px; }

/* section backgrounds: forest → deep-dark → warm-paper → cream-gold → dark footer */
.styles-section     { background: var(--forest); }
.visualizer-section { background: linear-gradient(145deg, #0d1f15 0%, #111210 55%, #131b10 100%); }
.sheet-section      { background: var(--paper); }
.pricing-section    { background: var(--accent-pale); }

/* ══ STYLE CARDS ═════════════════════════════════════════════ */

.style-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  min-width: 0;
}

.style-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.38), 0 2px 8px rgba(0,0,0,0.22);
  transition: box-shadow 0.28s, transform 0.28s;
}

.style-card:hover {
  box-shadow: 0 32px 72px rgba(0,0,0,0.55), 0 8px 24px rgba(200,164,107,0.28);
  transform: translateY(-6px);
}

.style-card-media {
  width: 100%;
  height: 260px;
  background: var(--img-bg);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.style-card-media img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  background: #d9d9d9;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.style-card:hover .style-card-media img {
  transform: scale(1.03);
}

.style-card-body {
  padding: 22px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.style-card p { flex: 1; }

.style-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--subtle);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.style-meta .price-tag {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.style-card h3 { margin-bottom: 8px; font-size: 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.new-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: var(--accent);
  color: var(--black);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  border-radius: 3px;
  flex-shrink: 0;
  vertical-align: middle;
}

.style-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 0;
  flex: 1;
  overflow-wrap: anywhere;
}

/* ══ PRICING GRID ════════════════════════════════════════════ */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(158,122,62,0.14), 0 1px 4px rgba(0,0,0,0.07);
  border: none;
  border-top: 3px solid var(--accent);
  transition: box-shadow 0.25s, transform 0.25s;
}

.price-card:hover {
  box-shadow: 0 28px 64px rgba(200, 164, 107, 0.22), 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-5px);
}

.price-card h3 {
  font-size: 16px;
  font-weight: 700;
  font-family: var(--sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 12px;
}

.price {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}

.price-card > p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.price-row:last-child { border-bottom: none; }

.price-row strong {
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

/* ══ CABINET MODAL ═══════════════════════════════════════════ */

.cab-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}

.cab-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: all;
}

.cab-modal {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 48px 120px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0,0,0,0.08);
  padding: 32px;
  width: min(580px, 92vw);
  max-height: 92vh;
  overflow-y: auto;
  transform: scale(0.93);
  transition: transform 0.26s cubic-bezier(0.34, 1.46, 0.64, 1);
}

.cab-modal-backdrop.is-open .cab-modal {
  transform: scale(1);
}

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

.cab-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.cab-modal-close:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--subtle);
}

/* ══ VISUALIZER ══════════════════════════════════════════════ */

.vis-heading {
  max-width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 64px;
}

.vis-heading .eyebrow { color: rgba(200, 164, 107, 0.80); }
.vis-heading .eyebrow::before { background: var(--accent); }
.vis-heading h2 { color: var(--white); margin-bottom: 0; }

.vis-heading p:not(.eyebrow) {
  max-width: 400px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 0;
}

.visualizer-layout {
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: 48px;
  align-items: start;
}

.cab-preview-wrap {
  position: sticky;
  top: 88px;
}

.cabinet-preview {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 24px 64px rgba(0, 0, 0, 0.58),
    0 8px 20px rgba(0, 0, 0, 0.32);
  padding: 20px;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  transition: transform 0.22s, box-shadow 0.22s, opacity 0.14s;
}

.cabinet-preview:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.10),
    0 36px 80px rgba(0, 0, 0, 0.65),
    0 12px 28px rgba(0, 0, 0, 0.38);
}

.cabinet-preview::after {
  content: "Click to enlarge";
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.60);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.18s;
  pointer-events: none;
  white-space: nowrap;
}

.cabinet-preview:hover::after { opacity: 1; }

.cab-label {
  margin: 16px 0 0;
  text-align: center;
}

.cab-label strong {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 3px;
}

.cab-label span {
  color: rgba(255, 255, 255, 0.35);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.style-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.style-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.22s;
}

.style-swatch:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.20);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
  transform: translateY(-3px);
}

.style-swatch.is-active {
  background: var(--white);
  border-color: var(--white);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.4), 0 12px 36px rgba(255, 255, 255, 0.10);
  transform: translateY(-1px);
}

.swatch-img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 240px;
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 10px;
  overflow: hidden;
  transition: background 0.2s;
}

.style-swatch.is-active .swatch-img { background: var(--img-bg); }

.swatch-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.70);
  line-height: 1.2;
  transition: color 0.2s;
}

.style-swatch.is-active .swatch-name { color: var(--ink); }

.swatch-price {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.32);
  font-family: var(--serif);
  transition: color 0.2s;
}

.style-swatch.is-active .swatch-price { color: var(--muted); }

/* ══ ORDER SHEET ═════════════════════════════════════════════ */

.sheet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.sheet-main,
.quote-panel {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.quote-panel {
  background: var(--forest);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 16px 56px rgba(0,0,0,0.30);
}

.quote-panel .eyebrow { color: rgba(200,164,107,0.70); margin-bottom: 4px; }
.quote-panel .eyebrow::before { background: var(--accent); }

.quote-panel dl div { border-bottom-color: rgba(255,255,255,0.10); }
.quote-panel dt { color: rgba(255,255,255,0.48); }
.quote-panel dd { color: var(--white); }

.quote-panel .quote-note {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.55);
  border-left-color: var(--accent);
}

.quote-panel .quote-note strong { color: var(--accent); }

.quote-panel .primary-action.full {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--black);
  font-weight: 700;
}

.quote-panel .primary-action.full:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
}

.sheet-main { padding: 28px; }

.quote-panel {
  position: sticky;
  top: 88px;
  padding: 28px;
}

.quote-panel .eyebrow { margin-bottom: 4px; }

.quote-panel h2 {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 24px;
  line-height: 1;
}

.quote-panel dl {
  display: grid;
  gap: 0;
  margin: 0 0 20px;
}

.quote-panel dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

dt { color: var(--muted); font-size: 14px; }

dd {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
}

.quote-note {
  display: grid;
  gap: 5px;
  margin-bottom: 20px;
  border-left: 3px solid var(--accent);
  padding: 12px 14px;
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  border-radius: 0 6px 6px 0;
}

.quote-note strong { color: var(--ink); }

/* ══ CUSTOMER FIELDS ═════════════════════════════════════════ */

.customer-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

input, select {
  width: 100%;
  min-height: 42px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,164,107,0.18);
}

/* ══ ORDER TABLE ═════════════════════════════════════════════ */

.table-shell {
  overflow-x: auto;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  -webkit-overflow-scrolling: touch;
}

.table-scroll-hint {
  display: none;
  margin: 8px 0 0;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

table {
  width: 100%;
  min-width: 1290px;
  border-collapse: collapse;
}

th, td {
  border-bottom: 1px solid var(--line);
  padding: 10px 10px;
  text-align: left;
  vertical-align: middle;
}

th {
  background: var(--black);
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  border-bottom-color: rgba(255, 255, 255, 0.10);
  padding: 13px 10px;
}

td { font-size: 13px; }

.rowNumber {
  position: sticky;
  left: 0;
  z-index: 3;
  width: 54px;
  background: var(--card);
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  box-shadow: 8px 0 14px rgba(0, 0, 0, 0.04);
}

thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 6;
  background: var(--black);
  box-shadow: 8px 0 14px rgba(0, 0, 0, 0.14);
}

td:nth-child(2) { width: 72px; }
td:nth-child(3), td:nth-child(4) { width: 108px; }
td:nth-child(8) { width: 118px; }

.width,
.height {
  min-width: 92px;
  min-height: 48px;
  padding: 10px 12px;
  font-size: 18px;
  font-weight: 700;
}

.qty {
  min-width: 58px;
  min-height: 48px;
  padding: 10px 8px;
  font-size: 18px;
  font-weight: 700;
}

.swing {
  min-width: 104px;
}

.check-cell {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-transform: none;
}

.check-cell input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--accent);
}

.lineTotal {
  position: sticky;
  right: 42px;
  z-index: 3;
  min-width: 106px;
  background: var(--card);
  font-weight: 700;
  box-shadow: -8px 0 14px rgba(0, 0, 0, 0.06);
}

thead th:nth-last-child(2) {
  position: sticky;
  right: 42px;
  z-index: 5;
  box-shadow: -8px 0 14px rgba(0, 0, 0, 0.16);
}

tbody td:last-child,
thead th:last-child {
  position: sticky;
  right: 0;
  z-index: 4;
  width: 42px;
  background: var(--card);
}

thead th:last-child {
  background: var(--black);
  z-index: 6;
}

.remove-row {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--subtle);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.remove-row:hover {
  background: #fff1ee;
  color: #a33f22;
  border-color: #f5c8bc;
}

.sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* ══ REVIEW PANEL ════════════════════════════════════════════ */

.review-panel {
  display: none;
  margin-top: 20px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 24px;
}

.review-panel.is-visible { display: block; }

.review-heading,
.review-total {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.review-heading h3 { margin-bottom: 0; }

#reviewJob, .portal-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.portal-note:not(:empty) {
  margin-top: 12px;
  padding: 12px 16px;
  background: #f0faf4;
  border: 1px solid #b6dfca;
  border-radius: 6px;
  color: #256b47;
  font-weight: 500;
}

.review-list {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.review-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  padding: 14px;
}

.review-item:has(.review-product-img) {
  grid-template-columns: 82px minmax(0, 1fr) auto;
  align-items: center;
}

.review-product-img {
  width: 82px;
  height: 64px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #eeeeee;
  filter: grayscale(1) saturate(0) contrast(1.08);
}

.review-item strong { color: var(--ink); font-size: 14px; }

.review-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.review-total {
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  padding-top: 16px;
  padding-bottom: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.review-total strong {
  font-family: var(--serif);
  color: var(--accent);
  font-size: 36px;
  letter-spacing: 0;
  text-transform: none;
}

.pay-button {
  width: 100%;
  min-height: 54px;
  margin-top: 16px;
  border: none;
  border-radius: 4px;
  background: var(--forest);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.20s, box-shadow 0.20s;
}

.pay-button:hover {
  background: var(--forest-mid);
  box-shadow: 0 8px 24px rgba(27,58,40,0.40);
}

/* ══ SCROLL ANCHORS ══════════════════════════════════════════ */

#styles, #visualizer, #door-sheet, #pricing { scroll-margin-top: 80px; }

/* ══ STYLE CARD CTA ══════════════════════════════════════════ */

.style-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}

.style-card-link:hover {
  color: var(--accent-dark);
  border-color: var(--accent);
}

.style-card-link span {
  font-size: 14px;
  transition: transform 0.18s;
}

.style-card-link:hover span { transform: translateX(4px); }

/* ══ PRICE CARD CTA ══════════════════════════════════════════ */

.price-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
  padding: 13px;
  background: var(--black);
  color: var(--white);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.18s;
}

.price-card-cta:hover { background: #2a2d27; }

/* ══ FORM POLISH ══════════════════════════════════════════════ */

.form-label {
  margin: 0 0 10px;
  color: var(--subtle);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.customer-row {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

/* ══ TABLE POLISH ════════════════════════════════════════════ */

tbody tr:nth-child(even) td { background: rgba(0, 0, 0, 0.016); }
tbody tr:hover td { background: rgba(14, 16, 13, 0.035); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) .lineTotal,
tbody tr:nth-child(even) .rowNumber,
tbody tr:nth-child(even) td:last-child {
  background: #f9f9f9;
}
tbody tr:hover .lineTotal,
tbody tr:hover .rowNumber,
tbody tr:hover td:last-child {
  background: #f2f2f2;
}

/* ══ FOOTER ══════════════════════════════════════════════════ */

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: start;
  padding: 64px clamp(20px, 5vw, 96px) 48px;
  background: var(--black);
  border-top: 2px solid var(--accent);
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
}

.footer-brand strong {
  display: block;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
}

.footer-brand p {
  max-width: 340px;
  color: rgba(255, 255, 255, 0.40);
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 16px;
}

.footer-brand address {
  font-style: normal;
  color: rgba(255, 255, 255, 0.28);
  font-size: 13px;
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  gap: 56px;
  align-items: flex-start;
  flex-shrink: 0;
}

.footer-nav div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav strong {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.38);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s;
}

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

/* ══ RESPONSIVE: TABLET (≤1080px) ═══════════════════════════ */

@media (max-width: 1080px) {
  footer {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sheet-layout { grid-template-columns: 1fr; }

  .vis-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 40px;
  }

  .vis-heading p:not(.eyebrow) { max-width: 100%; }

  .visualizer-layout {
    grid-template-columns: 1fr;
  }

  .cab-preview-wrap {
    position: static;
    max-width: 420px;
    margin: 0 auto;
  }

  .quote-panel {
    position: static;
    order: -1;
  }

  .site-header { flex-wrap: wrap; height: auto; padding: 12px 24px; }
}

/* ══ RESPONSIVE: MOBILE (≤720px) ════════════════════════════ */

@media (max-width: 720px) {
  .site-header {
    padding: 12px 16px;
    gap: 12px;
  }

  .brand { font-size: 14px; }

  nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    gap: 24px;
  }

  .header-cta { display: none; }

  .hero { min-height: 520px; }

  .hero-copy { margin: 0 20px 52px; }

  .section { padding: 56px 16px; }

  .section-heading { margin-bottom: 36px; }

  .pricing-grid { grid-template-columns: 1fr; }

  .customer-row { grid-template-columns: repeat(2, 1fr); }

  .sheet-main { padding: 16px; }

  .table-scroll-hint { display: block; }

  table { min-width: 700px; }

  thead tr th:nth-child(5), tbody tr td:nth-child(5),
  thead tr th:nth-child(6), tbody tr td:nth-child(6),
  thead tr th:nth-child(11), tbody tr td:nth-child(11) {
    display: none;
  }

  .style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .style-picker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  footer { padding: 48px 16px 40px; }

  .footer-nav { gap: 32px; }
}

/* ══ RESPONSIVE: SMALL (≤420px) ═════════════════════════════ */

@media (max-width: 420px) {
  .customer-row { grid-template-columns: 1fr; }
  .style-grid { grid-template-columns: 1fr; }
  h1 { font-size: 38px; }
}

/* ══ PRINT ═══════════════════════════════════════════════════ */

@media print {
  .site-header, .hero, .styles-section, .visualizer-section,
  .pricing-section, .sheet-actions, footer { display: none; }

  .section, .sheet-section { padding: 0; background: white; }

  .sheet-layout { display: block; }

  .sheet-main, .quote-panel { box-shadow: none; border: 0; }
}

/* Overland grayscale production pass */
:root {
  --ink: #111111;
  --muted: #666666;
  --subtle: #8a8a8a;
  --line: #d9d9d9;
  --paper: #f5f5f5;
  --card: #ffffff;
  --white: #ffffff;
  --black: #000000;
  --img-bg: #f1f1f1;
  --accent: #111111;
  --accent-dark: #333333;
  --accent-pale: #eeeeee;
  --forest: #111111;
  --forest-mid: #333333;
  --forest-light: #eeeeee;
}

.print-header {
  display: none;
}

.site-header {
  background: rgba(0, 0, 0, 0.96);
  border-bottom-color: #2c2c2c;
}

.site-header::before {
  background: #ffffff;
  opacity: 0.18;
}

.brand {
  min-width: 70px;
}

.brand img {
  width: 58px;
  height: 58px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

nav a {
  color: rgba(255, 255, 255, 0.72);
}

nav a::after {
  background: #ffffff;
}

nav a:hover {
  color: #ffffff;
}

.site-header .header-cta {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.hero > img {
  filter: grayscale(1) saturate(0) contrast(1.12) brightness(0.96);
}

.style-card-media {
  background: #d9d9d9;
}

.style-card-media img {
  mix-blend-mode: normal;
}

.style-card-media:has(img[src*="glass-door"]) img {
  mix-blend-mode: normal;
  filter: grayscale(1) saturate(0) contrast(1.05) brightness(1);
}

.hero::after {
  background:
    linear-gradient(108deg, rgba(0,0,0,0.94) 0%, rgba(0,0,0,0.54) 50%, rgba(0,0,0,0.14) 100%),
    linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 48%);
}

.hero .primary-action,
.quote-panel .primary-action.full {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
}

.hero .primary-action:hover,
.quote-panel .primary-action.full:hover {
  background: #dcdcdc;
  border-color: #dcdcdc;
  color: #000000;
}

.styles-section,
.visualizer-section,
.quote-panel,
footer {
  background: #111111;
}

.styles-section {
  background: #111111;
}

.visualizer-section {
  background: #111111;
}

.vis-heading h2 {
  color: #ffffff;
}

.vis-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.62);
}

.vis-heading .eyebrow,
.cab-label strong {
  color: #ffffff;
}

.cab-label span {
  color: rgba(255, 255, 255, 0.55);
}

.vis-heading .eyebrow {
  color: #ffffff;
}

.style-swatch {
  background: #ffffff;
  border-color: #d0d0d0;
}

.style-swatch:hover,
.style-swatch.is-active {
  background: #ffffff;
  border-color: #111111;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.swatch-img,
.style-swatch.is-active .swatch-img {
  background: #f5f5f5;
}

.cabinet-preview {
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18), 0 0 0 1px #d7d7d7;
}

.cabinet-preview:hover {
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.22), 0 0 0 1px #cfcfcf;
}

.style-card-media {
  height: 300px;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.94), rgba(235, 235, 235, 0.66) 58%, rgba(210, 210, 210, 0.62) 100%);
}

.style-card-media img {
  object-fit: contain;
  padding: 14px;
  background: transparent;
  filter: none;
}

.swatch-img {
  height: 230px;
  padding: 12px;
}

.swatch-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 16px rgba(0, 0, 0, 0.20));
}

.cabinet-preview {
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 22px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.98), rgba(246, 246, 246, 0.92) 42%, transparent 68%),
    linear-gradient(180deg, #f7f7f7 0 40%, #e5e2dd 40% 100%);
}

.cabinet-preview .real-cabinet,
.cab-modal-content .real-cabinet {
  width: min(100%, 410px);
  aspect-ratio: 0.64;
  position: relative;
  filter: drop-shadow(0 34px 28px rgba(0, 0, 0, 0.24));
}

.cab-modal-content .real-cabinet {
  width: min(470px, 100%);
  margin: 0 auto;
}

.real-cabinet::before {
  content: "";
  position: absolute;
  left: 7%;
  right: 2%;
  top: 7%;
  bottom: 2%;
  background: rgba(0, 0, 0, 0.11);
  filter: blur(18px);
  transform: translate(18px, 18px);
  z-index: -1;
}

.real-crown {
  position: absolute;
  left: 1.5%;
  right: 1.5%;
  top: 0;
  height: 6.4%;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55), transparent 30%),
    linear-gradient(180deg, #d9d9d9 0%, #b7b7b7 48%, #969696 100%);
  border: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.50),
    inset 0 -5px 8px rgba(0, 0, 0, 0.14),
    0 8px 10px rgba(0, 0, 0, 0.12);
  z-index: 2;
}

.real-cabinet-box {
  position: absolute;
  inset: 4.2% 3.6% 0;
  padding: 4.2% 3.8% 6.4%;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.16), transparent 10%, transparent 88%, rgba(0, 0, 0, 0.20)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.20), transparent 24%, rgba(0, 0, 0, 0.06)),
    #cbbda8;
  border: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow:
    inset 0 0 0 7px rgba(255, 255, 255, 0.10),
    inset -20px 0 26px rgba(0, 0, 0, 0.11),
    inset 20px 0 18px rgba(255, 255, 255, 0.08);
}

.real-upper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.4%;
  height: 31.5%;
  padding: 2.2%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.05)),
    #b99b6f;
  border: 1px solid rgba(66, 43, 25, 0.18);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.06);
}

.real-divider {
  height: 2.5%;
  margin: 2.4% 0 0;
  background: linear-gradient(180deg, #ded7cf, #aaa193);
  border: 1px solid rgba(0, 0, 0, 0.13);
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.12);
}

.real-open-bay {
  height: 14.5%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(0, 0, 0, 0.16)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 16px),
    #bdbdbd;
  border-left: 1px solid rgba(0, 0, 0, 0.16);
  border-right: 1px solid rgba(0, 0, 0, 0.16);
  position: relative;
}

.real-open-bay span {
  position: absolute;
  left: 7%;
  right: 7%;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, 0.18);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.38);
}

.real-counter {
  height: 3.8%;
  margin: 0 -3.5% 2.6%;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.24), transparent 36%),
    linear-gradient(180deg, #636363, #292929);
  border-radius: 2px;
  box-shadow:
    0 7px 11px rgba(0, 0, 0, 0.28),
    inset 0 -3px 4px rgba(0, 0, 0, 0.24);
}

.real-base {
  display: grid;
  grid-template-columns: 0.46fr 0.54fr;
  gap: 2.4%;
  height: 35.5%;
  padding: 2.2%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(0, 0, 0, 0.05)),
    #b99b6f;
  border: 1px solid rgba(66, 43, 25, 0.18);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.06);
}

.real-drawer-stack {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 3.4%;
}

.real-toe {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 1.2%;
  height: 4.4%;
  background: linear-gradient(180deg, #858585, #545454);
  box-shadow:
    inset 0 7px 12px rgba(0, 0, 0, 0.22),
    0 -2px 0 rgba(255, 255, 255, 0.10);
}

.render-door {
  position: relative;
  overflow: hidden;
  background: #bd9563;
  border: 1px solid rgba(68, 45, 24, 0.20);
  box-shadow:
    inset 0 0 10px rgba(255, 255, 255, 0.16),
    inset -5px -5px 9px rgba(0, 0, 0, 0.10),
    0 6px 10px rgba(0, 0, 0, 0.18);
}

.render-door::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.20), transparent 36%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.10), transparent 8%, transparent 92%, rgba(0, 0, 0, 0.12));
  pointer-events: none;
  z-index: 1;
}

.render-door img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
  filter: none;
  z-index: 0;
}

.render-door--drawer img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  opacity: 1;
}

.render-door--drawer::after,
.render-door--upper::after,
.render-door--base::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #232323;
  box-shadow: 0 1px 2px rgba(255, 255, 255, 0.15);
  z-index: 2;
}

.render-door--upper.render-door--left::after {
  left: 86%;
  top: 90%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.render-door--upper.render-door--right::after {
  left: 14%;
  top: 90%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.render-door--base::after {
  left: 13%;
  top: 16%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.render-door--drawer::after {
  width: 34px;
  height: 4px;
  border-radius: 999px;
}

.render-door.is-glass .glass-sheen {
  position: absolute;
  inset: 19% 18% 18%;
  overflow: hidden;
  border: 1px solid rgba(234, 250, 255, 0.72);
  border-radius: 1px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0 7%, transparent 8% 24%, rgba(255, 255, 255, 0.34) 25% 30%, transparent 31% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.30), rgba(139, 173, 184, 0.22) 46%, rgba(40, 58, 64, 0.28)),
    linear-gradient(90deg, rgba(13, 23, 28, 0.28), rgba(206, 229, 235, 0.20) 20%, rgba(230, 245, 248, 0.32) 52%, rgba(12, 22, 28, 0.24)),
    rgba(134, 172, 184, 0.42);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.36),
    inset 7px 0 10px rgba(255, 255, 255, 0.22),
    inset -8px 0 13px rgba(18, 34, 42, 0.28),
    inset 0 10px 16px rgba(255, 255, 255, 0.18),
    inset 0 -14px 22px rgba(14, 25, 30, 0.28),
    0 1px 4px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(0.8px) saturate(0.75);
  z-index: 3;
}

.render-door.is-glass .glass-sheen::before,
.render-door.is-glass .glass-sheen::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.render-door.is-glass .glass-sheen::before {
  left: -34%;
  top: -18%;
  width: 70%;
  height: 150%;
  transform: rotate(20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.58), transparent);
  opacity: 0.68;
}

.render-door.is-glass .glass-sheen::after {
  inset: 9% 10%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.35), transparent 18%),
    linear-gradient(155deg, transparent 0 54%, rgba(255, 255, 255, 0.26) 55% 58%, transparent 59% 100%);
}

.render-door.style-shaker.is-glass .glass-sheen,
.render-door.style-inside-bead.is-glass .glass-sheen,
.render-door.style-inside-outside-bead.is-glass .glass-sheen,
.render-door.style-step-bead.is-glass .glass-sheen {
  inset: 18% 17% 17%;
}

.render-door.style-slim-shaker.is-glass .glass-sheen {
  inset: 14% 13% 13%;
}

.render-door.style-flat.is-glass .glass-sheen {
  inset: 10%;
}

.pricing-section,
.sheet-section {
  background: #f5f5f5;
}

.styles-section .section-heading .eyebrow,
.pricing-section .section-heading .eyebrow,
.vis-heading .eyebrow,
.quote-panel .eyebrow,
.footer-brand strong,
.quote-panel h2,
.review-total strong {
  color: #111111;
}

.styles-section .section-heading .eyebrow,
.vis-heading .eyebrow,
.quote-panel .eyebrow,
.footer-brand strong,
.quote-panel h2 {
  color: #ffffff;
}

.eyebrow::before,
.section-heading h2::after {
  background: #111111;
}

.styles-section .section-heading h2::after,
.vis-heading .eyebrow::before,
.quote-panel .eyebrow::before,
footer {
  border-color: #444444;
}

.vis-heading .eyebrow::before,
.quote-panel .eyebrow::before,
.styles-section .section-heading h2::after {
  background: #ffffff;
}

.new-badge {
  background: #111111;
  color: #ffffff;
}

.quote-panel .quote-note {
  background: rgba(255, 255, 255, 0.08);
  border-left-color: #ffffff;
}

.quote-panel .quote-note strong {
  color: #ffffff;
}

.swatch-name {
  color: #111111;
}

.vis-heading h2 {
  color: #ffffff;
}

.swatch-price {
  color: #666666;
}

.vis-heading .eyebrow::before {
  background: #ffffff;
}

.styles-section .section-heading h2 {
  color: #ffffff;
}

.styles-section .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.62);
}

.styles-section .section-heading .eyebrow {
  color: #ffffff;
}

.styles-section .section-heading h2::after {
  background: #ffffff;
}

.address-field {
  grid-column: span 3;
}

.order-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.option-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #f8f8f8;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
}

.option-card input {
  width: 20px;
  min-height: 20px;
  accent-color: #111111;
}

.option-card strong,
.option-card small {
  display: block;
}

.option-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.review-customer {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: right;
}

.review-customer span {
  display: block;
}

.review-addons {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.preview-mode {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.switch {
  display: inline-flex;
  position: relative;
  cursor: pointer;
}

.switch input {
  position: absolute;
  inset: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.switch span {
  position: relative;
  width: 48px;
  height: 26px;
  border-radius: 999px;
  background: #cfcfcf;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.22);
  transition: background 0.18s;
}

.switch span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s;
}

.switch input:checked + span {
  background: #ffffff;
}

.switch input:checked + span::after {
  transform: translateX(22px);
  background: #111111;
}

.empty-review {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.finishedWidth,
.finishedHeight {
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .cabinet-preview {
    min-height: 540px;
    padding: 16px;
  }

  .hero-copy {
    width: min(520px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    margin-left: 16px;
    margin-right: 16px;
  }

  h1 {
    font-size: 36px;
    line-height: 1.06;
  }

  .style-grid {
    grid-template-columns: 1fr;
  }

  .style-card-media {
    height: 280px;
  }

  .style-card h3 {
    font-size: 17px;
    overflow-wrap: anywhere;
  }

  .style-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .style-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .swatch-img {
    height: 170px;
    padding: 8px;
  }

  .address-field,
  .order-options {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  table {
    min-width: 860px;
  }

  thead tr th:nth-child(5), tbody tr td:nth-child(5),
  thead tr th:nth-child(6), tbody tr td:nth-child(6),
  thead tr th:nth-child(11), tbody tr td:nth-child(11) {
    display: table-cell;
  }
}

@media (max-width: 420px) {
  .hero-copy p:not(.eyebrow) {
    font-size: 16px;
  }

  .style-card-media {
    height: 260px;
  }

  .cabinet-preview {
    min-height: 500px;
  }
}

/* Visual polish pass */
.style-card-media {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 78%, rgba(0, 0, 0, 0.16), transparent 33%),
    radial-gradient(circle at 50% 38%, #ffffff 0%, #f4f3ef 50%, #dedbd4 100%);
}

.style-card-media::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 15%;
  height: 9%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  filter: blur(12px);
  z-index: 0;
}

.style-card-media img {
  position: relative;
  z-index: 1;
  width: auto;
  height: 86%;
  max-width: 76%;
  max-height: 86%;
  padding: 0;
  object-fit: contain;
  background: transparent;
  box-shadow:
    12px 18px 18px rgba(0, 0, 0, 0.18),
    2px 4px 5px rgba(0, 0, 0, 0.12);
}

.style-card:hover .style-card-media img {
  transform: translateY(-3px) scale(1.018);
}

.swatch-img {
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.swatch-img img {
  filter:
    drop-shadow(0 18px 14px rgba(0, 0, 0, 0.18))
    drop-shadow(0 2px 2px rgba(0, 0, 0, 0.10));
}

.real-cabinet-box {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 9%, transparent 89%, rgba(0, 0, 0, 0.22)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), transparent 20%, rgba(0, 0, 0, 0.08)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 9px),
    #cbbda8;
}

.real-crown {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), transparent 26%),
    linear-gradient(180deg, #eeeeee 0%, #cfcfcf 30%, #a8a8a6 62%, #7d7d7a 100%);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.62),
    inset 0 -5px 8px rgba(0, 0, 0, 0.18),
    0 9px 12px rgba(0, 0, 0, 0.16);
}

.real-divider {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 35%),
    linear-gradient(180deg, #ece8df, #b7ad9c);
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.14),
    inset 0 -1px 2px rgba(0, 0, 0, 0.16);
}

.real-open-bay {
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.16), transparent 12%, transparent 88%, rgba(0, 0, 0, 0.20)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.16)),
    #c7c7c2;
  box-shadow:
    inset 0 9px 12px rgba(0, 0, 0, 0.13),
    inset 0 -8px 12px rgba(255, 255, 255, 0.18);
}

.real-open-bay::before,
.real-open-bay::after {
  display: none;
}

.real-open-bay span {
  left: 8%;
  right: 8%;
  height: 2px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.20),
    0 -9px 16px rgba(0, 0, 0, 0.08);
}

.real-counter {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), transparent 32%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.18)),
    linear-gradient(180deg, #777773 0%, #4d4d4b 40%, #242423 100%);
  border-radius: 3px;
  box-shadow:
    0 8px 13px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -4px 5px rgba(0, 0, 0, 0.28);
}

.real-toe {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.30), transparent 25%),
    linear-gradient(180deg, #8c8c88, #4b4b49);
  box-shadow:
    inset 0 8px 12px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 -2px 0 rgba(255, 255, 255, 0.12);
}

.render-door {
  box-shadow:
    inset 0 0 10px rgba(255, 255, 255, 0.17),
    inset -5px -5px 9px rgba(0, 0, 0, 0.11),
    0 5px 9px rgba(0, 0, 0, 0.20);
}

.render-door::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.10), transparent 9%, transparent 91%, rgba(0, 0, 0, 0.14)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 42%, rgba(0, 0, 0, 0.08));
}

@media (max-width: 1080px) {
  .cab-preview-wrap {
    width: min(100%, 420px);
  }
}

@media (max-width: 720px) {
  nav {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  .cabinet-preview {
    min-height: 500px;
    padding: 18px;
  }

  .cabinet-preview .real-cabinet {
    width: min(100%, 300px);
  }
}

@media (max-width: 420px) {
  nav {
    justify-content: space-between;
    gap: 12px;
    overflow-x: visible;
  }

  nav a {
    min-width: 0;
    font-size: 12px;
    line-height: 1.14;
    letter-spacing: 0.055em;
    text-align: center;
  }

  .cab-preview-wrap {
    width: 100%;
  }

  .cabinet-preview {
    min-height: 470px;
  }

  .style-card-media {
    height: 290px;
  }
}

/* Second polish pass */
.section,
#styles,
#visualizer,
#door-sheet,
#pricing {
  scroll-margin-top: 96px;
}

.cabinet-preview {
  background:
    radial-gradient(ellipse at 50% 76%, rgba(0, 0, 0, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0 58%, rgba(239, 237, 231, 0.96) 58% 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04), transparent 20%, transparent 80%, rgba(0, 0, 0, 0.05));
}

.real-cabinet-box {
  overflow: hidden;
}

.real-cabinet-box::before {
  content: "";
  position: absolute;
  inset: 5.2% 3.2% 5.6%;
  border: 1px solid rgba(93, 73, 50, 0.20);
  box-shadow:
    inset 10px 0 14px rgba(255, 255, 255, 0.10),
    inset -12px 0 18px rgba(0, 0, 0, 0.10),
    inset 0 11px 16px rgba(255, 255, 255, 0.10);
  pointer-events: none;
  z-index: 0;
}

.real-cabinet-box > * {
  position: relative;
  z-index: 1;
}

.real-cabinet-box .real-toe {
  position: absolute;
}

.real-upper,
.real-base {
  box-shadow:
    inset 0 0 0 4px rgba(255, 255, 255, 0.07),
    inset 0 9px 11px rgba(255, 255, 255, 0.06),
    inset 0 -8px 12px rgba(0, 0, 0, 0.07);
}

.render-door--upper,
.render-door--base,
.render-door--drawer {
  filter: saturate(1.04) contrast(1.02);
}

.render-door--drawer::after {
  height: 5px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 42%),
    #202020;
  box-shadow:
    0 1px 2px rgba(255, 255, 255, 0.18),
    0 2px 4px rgba(0, 0, 0, 0.25);
}

.cab-label {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.sheet-layout,
.sheet-main,
.quote-panel,
.table-shell,
.customer-row,
.order-options {
  min-width: 0;
}

.table-shell {
  max-width: 100%;
}

.option-card,
.option-card span {
  min-width: 0;
}

.option-card small {
  overflow-wrap: anywhere;
}

.style-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 0;
}

.style-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid #d6d6d6;
  border-radius: 999px;
  color: #444444;
  background: #f7f7f7;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Odoo-ready polish pass */
.styles-section,
.visualizer-section {
  position: relative;
  isolation: isolate;
}

.styles-section::before,
.visualizer-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent, #000000 16%, #000000 84%, transparent);
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}

.styles-section > *,
.visualizer-section > * {
  position: relative;
  z-index: 1;
}

.visualizer-layout {
  grid-template-columns: minmax(320px, 460px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
}

.cab-preview-wrap {
  top: 104px;
}

.cabinet-preview {
  min-height: 590px;
  border-radius: 8px;
  background:
    radial-gradient(ellipse at 50% 79%, rgba(0, 0, 0, 0.14), transparent 31%),
    linear-gradient(180deg, #fbfbfb 0 58%, #e8e5dd 58% 100%);
}

.cabinet-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.055), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.07)),
    linear-gradient(180deg, transparent 0 58%, rgba(255, 255, 255, 0.38) 58%, transparent 68%);
  pointer-events: none;
}

.cabinet-preview .real-cabinet {
  width: min(100%, 360px);
  z-index: 1;
}

.cab-modal-content .real-cabinet {
  width: min(470px, 100%);
}

.real-cabinet::after {
  content: "";
  position: absolute;
  top: 5.2%;
  right: -3.8%;
  bottom: 1.3%;
  width: 5.2%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.19)),
    #b8aa95;
  border: 1px solid rgba(70, 52, 31, 0.14);
  transform: skewY(4deg);
  transform-origin: left top;
  filter: blur(0.1px);
  z-index: -1;
}

.real-cabinet-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 8px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 20%, transparent 78%, rgba(0, 0, 0, 0.08));
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.style-swatch {
  border-radius: 8px;
}

.style-swatch.is-active {
  box-shadow:
    0 0 0 2px #ffffff,
    0 0 0 4px rgba(255, 255, 255, 0.22),
    0 16px 38px rgba(0, 0, 0, 0.26);
}

.style-card {
  border-radius: 8px;
}

.style-card-media {
  height: 292px;
}

.style-card-link {
  min-height: 38px;
}

@media (max-width: 720px) {
  .cabinet-preview {
    min-height: 540px;
  }
}

@media (max-width: 420px) {
  .cabinet-preview {
    min-height: 520px;
  }
}

@media (min-width: 861px) and (max-width: 1080px) {
  .visualizer-layout {
    grid-template-columns: minmax(360px, 420px) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
  }

  .cab-preview-wrap {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .style-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .swatch-img {
    height: 190px;
  }
}

@media (max-width: 860px) {
  .visualizer-layout {
    grid-template-columns: 1fr;
  }

  .cab-preview-wrap {
    position: static;
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 1080px) {
  .quote-panel {
    order: 0;
  }
}

@media (max-width: 720px) {
  .section,
  #styles,
  #visualizer,
  #door-sheet,
  #pricing {
    scroll-margin-top: 124px;
  }
}

/* Luxury finish pass */
.styles-section,
.visualizer-section {
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.075), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(200, 200, 200, 0.045), transparent 28%),
    linear-gradient(180deg, #111111, #0c0c0c);
}

.style-card {
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 24px 68px rgba(0, 0, 0, 0.44),
    0 1px 0 rgba(255, 255, 255, 0.08);
}

.style-card:hover {
  box-shadow:
    0 34px 86px rgba(0, 0, 0, 0.56),
    0 0 0 1px rgba(255, 255, 255, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.10);
}

.style-card-media {
  background:
    radial-gradient(ellipse at 50% 76%, rgba(0, 0, 0, 0.18), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f3f2ee 56%, #ddd9d0 100%);
}

.style-card-media::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(0, 0, 0, 0.055);
  border-radius: 7px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  pointer-events: none;
  z-index: 2;
}

.style-door-frame {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 85%;
  max-width: 78%;
  transform: perspective(760px) rotateY(-3deg) rotateX(0.6deg);
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s;
  filter: drop-shadow(18px 26px 20px rgba(0, 0, 0, 0.18));
}

.style-door-frame::after {
  content: "";
  position: absolute;
  top: 3.5%;
  right: -7px;
  width: 8px;
  height: 93%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(92, 60, 31, 0.24)),
    #b68952;
  transform: skewY(5deg);
  transform-origin: left top;
  opacity: 0.74;
  z-index: -1;
}

.style-card-media .style-door-frame img {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  box-shadow:
    0 20px 22px rgba(0, 0, 0, 0.18),
    0 2px 4px rgba(0, 0, 0, 0.12);
}

.style-card:hover .style-door-frame {
  transform: perspective(760px) rotateY(-1deg) rotateX(0.3deg) translateY(-4px) scale(1.018);
  filter: drop-shadow(24px 32px 24px rgba(0, 0, 0, 0.22));
}

.style-card:hover .style-card-media img {
  transform: none;
}

.style-meta {
  border-bottom-color: #d0d0d0;
}

.style-tags span {
  background:
    linear-gradient(180deg, #ffffff, #f2f2f2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.style-card-link {
  border-top-color: #d0d0d0;
}

.preview-mode {
  width: max-content;
  margin-left: auto;
  margin-right: auto;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 32px rgba(0, 0, 0, 0.22);
}

.switch span {
  background:
    linear-gradient(180deg, #efefef, #bababa);
}

.switch input:checked + span {
  background:
    linear-gradient(180deg, #ffffff, #e1e1e1);
}

.cabinet-preview {
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -22px 46px rgba(0, 0, 0, 0.08),
    0 34px 90px rgba(0, 0, 0, 0.48),
    0 4px 18px rgba(0, 0, 0, 0.20);
  background:
    radial-gradient(circle at 50% 21%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.52) 24%, transparent 48%),
    radial-gradient(ellipse at 50% 82%, rgba(0, 0, 0, 0.18), transparent 32%),
    linear-gradient(180deg, #fbfbfb 0 57%, #e8e3d8 57% 100%);
}

.cabinet-preview::before {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.06), transparent 16%, transparent 84%, rgba(0, 0, 0, 0.075)),
    linear-gradient(180deg, transparent 0 55.8%, rgba(94, 80, 60, 0.18) 55.9%, rgba(255, 255, 255, 0.55) 56.3%, transparent 58.8%),
    radial-gradient(ellipse at 50% 82%, rgba(0, 0, 0, 0.10), transparent 35%);
}

.cabinet-preview .real-cabinet {
  transform: perspective(920px) rotateY(-1.4deg) rotateX(0.3deg);
  filter:
    drop-shadow(28px 34px 30px rgba(0, 0, 0, 0.28))
    drop-shadow(0 3px 3px rgba(0, 0, 0, 0.14));
}

.real-cabinet::before {
  background:
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0.24), transparent 72%);
  filter: blur(20px);
  transform: translate(22px, 22px) scale(1.03);
}

.real-cabinet::after {
  right: -4.5%;
  width: 6%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0.20)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 10px),
    #b9aa93;
}

.real-cabinet-box {
  box-shadow:
    inset 0 0 0 8px rgba(255, 255, 255, 0.11),
    inset -24px 0 32px rgba(0, 0, 0, 0.13),
    inset 18px 0 22px rgba(255, 255, 255, 0.11),
    0 3px 0 rgba(255, 255, 255, 0.16);
}

.real-upper,
.real-base {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.055)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 24%, transparent 76%, rgba(0, 0, 0, 0.08)),
    #b99b6f;
}

.real-crown {
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.66),
    inset 0 -7px 10px rgba(0, 0, 0, 0.20),
    0 10px 14px rgba(0, 0, 0, 0.18);
}

.real-counter {
  box-shadow:
    0 9px 16px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    inset 0 -5px 6px rgba(0, 0, 0, 0.30);
}

.render-door {
  border-color: rgba(60, 38, 18, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset -6px -6px 11px rgba(0, 0, 0, 0.12),
    inset 5px 5px 9px rgba(255, 255, 255, 0.10),
    0 7px 12px rgba(0, 0, 0, 0.22);
}

.render-door img {
  filter: saturate(1.05) contrast(1.03);
}

.render-door.is-glass img {
  filter: saturate(1.08) contrast(1.06) brightness(0.98);
}

.render-door.is-glass .glass-sheen {
  inset: 18.5% 17.5% 18.5%;
  border: 0;
  background:
    linear-gradient(116deg, transparent 0 25%, rgba(255, 255, 255, 0.13) 26% 30%, transparent 31% 100%),
    linear-gradient(122deg, transparent 0 62%, rgba(255, 255, 255, 0.08) 63% 66%, transparent 67% 100%),
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.10), transparent 20%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 7px 0 12px rgba(255, 255, 255, 0.08),
    inset -8px 0 14px rgba(0, 0, 0, 0.10);
  opacity: 0.46;
  backdrop-filter: none;
  mix-blend-mode: screen;
  z-index: 1;
}

.render-door.is-glass .glass-sheen::before {
  left: -36%;
  top: -20%;
  width: 68%;
  height: 148%;
  transform: rotate(19deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  opacity: 0.50;
}

.render-door.is-glass .glass-sheen::after {
  inset: 8% 9%;
  border: 0;
  background:
    linear-gradient(154deg, transparent 0 52%, rgba(255, 255, 255, 0.08) 53% 56%, transparent 57% 100%);
}

.render-door.style-slim-shaker.is-glass .glass-sheen {
  inset: 14% 13% 14%;
}

.render-door.style-flat.is-glass .glass-sheen {
  inset: 9.5%;
}

.render-door--drawer::after,
.render-door--upper::after,
.render-door--base::after {
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.28), transparent 28%),
    #181818;
  box-shadow:
    0 1px 2px rgba(255, 255, 255, 0.18),
    0 3px 5px rgba(0, 0, 0, 0.28);
}

.swatch-img {
  background:
    radial-gradient(ellipse at 50% 78%, rgba(0, 0, 0, 0.13), transparent 34%),
    linear-gradient(180deg, #ffffff, #eeeeee);
}

.swatch-door {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-width: 82%;
  transform: perspective(620px) rotateY(-3deg);
  filter: drop-shadow(13px 18px 13px rgba(0, 0, 0, 0.18));
}

.swatch-door::after {
  content: "";
  position: absolute;
  top: 4%;
  right: -5px;
  width: 6px;
  height: 92%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(92, 60, 31, 0.22)), #b68952;
  transform: skewY(5deg);
  opacity: 0.70;
  z-index: -1;
}

.swatch-door img {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  filter: none;
}

.cab-modal-backdrop {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.cab-modal {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.52), transparent 34%),
    #f3f1ec;
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.cab-modal-content {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(223, 219, 210, 0.72));
  border-radius: 8px;
}

@media (max-width: 900px) {
  .site-header .header-cta {
    display: none;
  }

  .style-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .style-card-media {
    height: 310px;
  }
}

@media (max-width: 720px) {
  .style-grid {
    grid-template-columns: 1fr;
  }

  .preview-mode {
    padding: 7px 9px;
  }

  .cabinet-preview .real-cabinet {
    transform: perspective(900px) rotateY(-0.8deg);
  }

  .style-door-frame {
    max-width: 72%;
  }
}

@media print {
  .print-header {
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 2px solid #000000;
    padding-bottom: 14px;
    margin-bottom: 18px;
    color: #000000;
  }

  .print-header img {
    width: 76px;
    height: 76px;
    object-fit: contain;
    background: transparent;
  }

  .print-header strong,
  .print-header span {
    display: block;
  }

  .form-label,
  .customer-row,
  .review-panel {
    display: grid !important;
  }

  .table-shell,
  .table-scroll-hint,
  .quote-panel,
  .order-options,
  .compact,
  .pay-button,
  .portal-note {
    display: none !important;
  }

  .customer-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 1px solid #000000;
    padding-bottom: 14px;
    margin-bottom: 16px;
  }

  .customer-row input,
  .customer-row select {
    border: 0;
    border-bottom: 1px solid #999999;
    border-radius: 0;
    min-height: 28px;
    padding: 2px 0;
  }

  .address-field {
    grid-column: span 2;
  }

  .review-panel {
    margin-top: 0;
    border: 0;
    padding: 0;
    background: #ffffff;
  }

  .review-heading {
    align-items: flex-start;
    border-bottom: 1px solid #000000;
  }

  .review-list,
  .review-addons {
    gap: 6px;
  }

  .review-item {
    break-inside: avoid;
    border-color: #bbbbbb;
    padding: 10px;
  }

  .review-item:has(.review-product-img) {
    grid-template-columns: 72px minmax(0, 1fr) auto;
  }

  .review-product-img {
    width: 72px;
    height: 54px;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .review-total {
    border-top: 2px solid #000000;
  }

  .review-total strong {
    color: #000000;
  }
}

/* ============================================================
   3D door viewer (door3d.js) — added 2026-06-05
   ============================================================ */

/* generated transparent-PNG thumbnails: kill faux edge + rect shadow */
.style-door-frame.has-3d-thumb::after,
.swatch-door.has-3d-thumb::after {
  display: none;
}

.style-card-media .style-door-frame.has-3d-thumb img {
  box-shadow: none;
  filter: drop-shadow(14px 22px 18px rgba(0, 0, 0, 0.22));
}

.swatch-door.has-3d-thumb img {
  box-shadow: none;
  filter: drop-shadow(8px 12px 10px rgba(0, 0, 0, 0.2));
}

/* live spin canvas inside a style card */
.style-door-frame.is-3d-live {
  transform: none;
  filter: none;
}

.style-door-frame.is-3d-live canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grabbing;
}

.spin-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 2;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(33, 37, 41, 0.78);
  border-radius: 999px;
  padding: 4px 10px;
  pointer-events: none;
}

/* segmented Cabinet / 3D Door control */
.view-seg {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 10px;
  border: 1px solid #212529;
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff;
}

.view-seg button {
  appearance: none;
  border: 0;
  background: transparent;
  font: 500 13px/1 "Roboto", sans-serif;
  letter-spacing: 0.02em;
  color: #212529;
  padding: 9px 16px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.view-seg button.is-active {
  background: #212529;
  color: #ffffff;
}

/* 3D stage shares the look of .cabinet-preview */
.door3d-stage {
  display: none;
  position: relative;
  width: 100%;
  min-height: 560px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 21%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.52) 24%, transparent 48%),
    radial-gradient(ellipse at 50% 82%, rgba(0, 0, 0, 0.18), transparent 32%),
    linear-gradient(180deg, #fbfbfb 0 57%, #e8e3d8 57% 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 34px 90px rgba(0, 0, 0, 0.48),
    0 4px 18px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.door3d-stage.is-active {
  display: flex;
}

.cabinet-preview.is-hidden {
  display: none;
}

.door3d-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

.door3d-stage canvas:active {
  cursor: grabbing;
}

.door3d-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 12px;
  color: #6c757d;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  padding: 5px 14px;
  pointer-events: none;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .door3d-stage {
    min-height: 420px;
  }

  .spin-badge {
    font-size: 10px;
    padding: 3px 8px;
  }
}

@media print {
  .view-seg,
  .door3d-stage,
  .spin-badge {
    display: none !important;
  }
}

/* ============================================================
   3D v2 (2026-07-09): frameless cabinet stage + photo backdrop
   ============================================================ */
.door3d-stage.cab3d-stage,
.door3d-stage {
  background:
    linear-gradient(180deg, rgba(251,251,251,0) 0 62%, rgba(212,208,200,0.35) 100%),
    url("./assets/stage-backdrop.webp") center 38% / cover no-repeat,
    linear-gradient(180deg, #fbfbfb 0 57%, #e8e3d8 57% 100%);
}
.cab3d-stage { min-height: 620px; }
.cab3d-stage .door3d-hint { bottom: 14px; }
@media (max-width: 760px) {
  .cab3d-stage { min-height: 460px; }
}
/* 3D thumbs sit directly on the card media backdrop - no extra box */
.style-door-frame.has-3d-thumb {
  background: transparent;
  box-shadow: none;
  border: 0;
}

/* ============================================================
   Odoo-parity upgrades (2026-07-09): sticky estimate, profile
   zoom chips, cabinet construction + drawer controls
   ============================================================ */
.sticky-estimate {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; align-items: center; gap: 18px;
  padding: 10px clamp(16px, 4vw, 40px);
  background: rgba(18, 18, 18, 0.97);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #f2f2f0; backdrop-filter: blur(8px);
}
.sticky-estimate .se-label {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #a8a8a5;
}
.sticky-estimate .se-total {
  font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: clamp(20px, 2.4vw, 26px);
}
.sticky-estimate .se-meta { font-size: 13px; color: #a8a8a5; }
.sticky-estimate .se-btn {
  margin-left: auto; background: #fff; color: #141414; text-decoration: none;
  font-weight: 600; font-size: 13px; letter-spacing: 0.04em;
  padding: 10px 22px; border-radius: 4px; white-space: nowrap;
}
.sticky-estimate .se-btn:hover { background: #e6e4e0; }
body { padding-bottom: 64px; }  /* keep footer clear of the bar */
@media (max-width: 620px) {
  .sticky-estimate { gap: 10px; padding: 9px 14px; }
  .sticky-estimate .se-label { display: none; }
  .sticky-estimate .se-meta { font-size: 11px; }
}

/* machined profile chip on style cards */
.profile-chip {
  display: flex; align-items: center; gap: 12px; width: 100%;
  margin-top: 12px; padding: 8px 12px; cursor: zoom-in;
  background: #faf9f7; border: 1px solid #e5e2dd; border-radius: 8px;
  font: inherit; text-align: left; transition: border-color .2s ease, box-shadow .2s ease;
}
.profile-chip:hover { border-color: #b9b4ac; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.profile-chip img { width: 64px; height: 44px; object-fit: cover; border-radius: 4px; }
.profile-chip .pc-title { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.profile-chip .pc-sub { display: block; font-size: 11px; color: #6c757d; letter-spacing: .04em; }

/* full-screen profile zoom */
.profile-zoom {
  position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center;
  background: rgba(12, 12, 12, 0.94); opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.profile-zoom.is-open { opacity: 1; pointer-events: auto; }
.profile-zoom figure { margin: 0; text-align: center; }
.profile-zoom img { max-width: min(90vw, 1100px); max-height: 80vh; object-fit: contain;
  background: #fff; border-radius: 8px; box-shadow: 0 30px 90px rgba(0,0,0,.5); }
.profile-zoom figcaption { margin-top: 12px; color: #f2f2f0; font-size: 14px; letter-spacing: .04em; }
.profile-zoom .pz-close {
  position: absolute; top: 16px; right: 18px; width: 48px; height: 48px;
  background: none; border: 1px solid rgba(255,255,255,.4); color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer; border-radius: 6px;
}
.profile-zoom .pz-close:hover { background: #fff; color: #141414; }

/* cabinet construction + drawer controls inside the stage */
.cab3d-controls {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; z-index: 3;
}
.cab3d-controls .view-seg { margin: 0; }
.cab3d-seg button { font-size: 11.5px; padding: 7px 12px; }
@media (max-width: 620px) {
  .cab3d-controls { position: static; transform: none; margin: 8px auto 0; }
}

/* click-to-enlarge door modal */
.door-zoom {
  position: fixed; inset: 0; z-index: 420; display: flex; align-items: center; justify-content: center;
  background: rgba(12, 12, 12, 0.94); opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.door-zoom.is-open { opacity: 1; pointer-events: auto; }
.door-zoom .dz-stage {
  width: min(92vw, 1100px); height: min(84vh, 900px);
  background:
    radial-gradient(circle at 50% 24%, rgba(255,255,255,0.98), rgba(255,255,255,0.6) 30%, transparent 55%),
    linear-gradient(180deg, #f5f4f2 0 60%, #dedbd4 60% 100%);
  border-radius: 10px; overflow: hidden; box-shadow: 0 40px 110px rgba(0,0,0,.6);
}
.door-zoom .dz-stage canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.door-zoom .dz-stage canvas:active { cursor: grabbing; }
.door-zoom .dz-hint { z-index: 2; }
.door-zoom .dz-name {
  position: absolute; top: 18px; left: 22px; color: #fff;
  font-family: "Fraunces", Georgia, serif; font-size: 20px; letter-spacing: .02em;
}
.dz-btn {
  background: none; border: 1px solid rgba(255,255,255,.45); color: #fff;
  width: 46px; height: 46px; font-size: 22px; line-height: 1; cursor: pointer; border-radius: 8px;
}
.dz-btn:hover { background: #fff; color: #141414; }
.dz-close { position: absolute; top: 14px; right: 16px; }
.door-zoom .dz-tools { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 8px; }
@media (max-width: 640px) {
  .door-zoom .dz-stage { width: 96vw; height: 74vh; }
}

/* cabinet stage: clean 3D showroom - the room is IN the scene now */
.door3d-stage.cab3d-stage {
  background: linear-gradient(180deg, #f4f2ef 0%, #e9e6e1 55%, #d8d3cb 100%);
}

/* photographic vignette over the cabinet stage */
.door3d-stage.cab3d-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse at 50% 42%, transparent 55%, rgba(30, 26, 20, 0.16) 100%);
}
.cab3d-controls { z-index: 3; }

/* cabinet expand button + cabinet pop-out stage */
.cab-expand {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 42px; height: 42px; font-size: 19px;
  border-color: rgba(60, 55, 45, 0.45); color: #3c372d; background: rgba(255,255,255,0.55);
}
.cab-expand:hover { background: #3c372d; color: #fff; }
.door-zoom .cabz-stage {
  background:
    radial-gradient(ellipse at 50% 40%, transparent 55%, rgba(30,26,20,0.18) 100%),
    linear-gradient(180deg, #efece7 0%, #e2ded7 58%, #cfc9bf 100%);
}

/* open-all buttons */
.dz-openall { width: auto; padding: 0 16px; font-size: 13px; letter-spacing: 0.04em; }

/* add-to-order button under the visualizer */
.add-style-btn {
  display: block; width: 100%; margin-top: 10px; padding: 13px 18px;
  background: #141414; color: #fff; border: 0; border-radius: 8px;
  font: 600 14px/1 "Inter", sans-serif; letter-spacing: 0.04em; cursor: pointer;
  transition: background .2s ease;
}
.add-style-btn:hover { background: #000; }

/* flash the freshly added order row */
@keyframes rowFlash {
  0%, 60% { background: #fff7dd; }
  100% { background: transparent; }
}
.row-flash td { animation: rowFlash 2.2s ease-out; }
