/* ==========================================================================
   ArchitecturalNumbers.com — SignBuilder 2.0 & Consolidated Storefront CSS
   Scoped isolated styles for the next-generation single-page experience
   ========================================================================== */

:root {
  --primary-blue: #0d47a1;
  --primary-blue-dark: #082d66;
  --accent-gold: #ffcc00;
  --accent-red: #d32f2f;
  --accent-cyan: #00bcd4;
  --accent-cyan-dark: #0097a7;
  --bg-light: #f7f9fa;
  --bg-card: #ffffff;
  --border-color: #d1d9e0;
  --text-primary: #1c2128;
  --text-secondary: #57606a;
  --font-stack:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  --header-height: 52px;
}

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

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

body {
  font-family: var(--font-stack);
  background-color: var(--bg-light);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Top Masthead & Sticky Auto-Hiding Navigation
   ========================================================================== */

.site-masthead {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 12px 20px;
}

.masthead-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.masthead-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-iso-logo {
  width: 36px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-blue);
  letter-spacing: -0.5px;
}

.brand-contact {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-contact a {
  color: var(--text-secondary);
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.brand-contact-sep {
  display: inline;
}

.masthead-tagline {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.brand-tagline-img {
  height: 52px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Sticky Navigation Bar */
.sticky-nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff8e1;
  border-bottom: 2px solid #ffe082;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.28s ease-in-out;
}

.sticky-nav-wrapper.nav-hidden {
  transform: translateY(-100%);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  overflow-x: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-item a {
  display: block;
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  white-space: nowrap;
  transition:
    background 0.15s,
    color 0.15s;
}

.nav-item a:hover {
  text-decoration: none;
  background: rgba(13, 71, 161, 0.08);
}

.nav-item.active a {
  color: var(--primary-blue-dark);
  background: rgba(13, 71, 161, 0.12);
}

.nav-item.active a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-red);
}

.nav-cart-btn {
  background: var(--primary-blue);
  color: #ffffff !important;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.nav-cart-btn:hover {
  background: var(--primary-blue-dark);
  text-decoration: none;
}
.cart-badge {
  background: var(--accent-red);
  color: #fff;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 0.75rem;
}

/* ==========================================================================
   Section Containers
   ========================================================================== */

.storefront-section {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 16px;
}

.section-header-banner {
  background: #e3f2fd;
  border: 1px solid #bbdefb;
  color: var(--primary-blue);
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 16px;
  margin-bottom: 18px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Welcome / Hero */
.welcome-hero-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.welcome-copy h1 {
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 12px;
  line-height: 1.2;
}
.welcome-copy p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.welcome-cta-btn {
  display: inline-block;
  background: var(--accent-gold);
  color: #212121;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: 6px;
  text-transform: uppercase;
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.welcome-cta-btn:hover {
  background: #ffb300;
  text-decoration: none;
}

.welcome-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.highlight-pill {
  background: #f1f8e9;
  border: 1px solid #c5e1a5;
  border-radius: 6px;
  padding: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #33691e;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */

.gallery-container {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  max-height: 620px;
  overflow-y: auto;
  padding-right: 6px;
}

.gallery-card {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.gallery-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.gallery-card-img-wrap {
  width: 100%;
  height: 220px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-sizing: border-box;
  overflow: hidden;
}
.gallery-card img,
.gallery-card-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.gallery-card-caption {
  padding: 10px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  background: #fafbfc;
  border-top: 1px solid #eaeef2;
  margin-top: auto;
}

/* ==========================================================================
   SignBuilder 2.0 ("PERSONALIZE")
   ========================================================================== */

.personalize-section {
  position: relative;
}

/* Mobile Portrait Rotation Prompt */
.orientation-rotate-notice {
  display: none;
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  border: 1px solid #ffb74d;
  color: #e65100;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(230, 81, 0, 0.1);
}
.orientation-rotate-notice svg {
  flex-shrink: 0;
  animation: rotatePhone 2.5s infinite ease-in-out;
}
@keyframes rotatePhone {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(90deg);
  }
}

/* Three-Column Modular Builder Grid with Widened Finishes Shelf */
.builder-grid {
  display: grid;
  grid-template-columns: 270px 540px 180px;
  grid-template-rows: auto auto;
  gap: 16px 6px;
  justify-content: center;
  max-width: 1002px;
  margin: 0 auto;
  align-items: stretch;
  box-sizing: border-box;
}

/* Column 1: Select Style (270px) - Stops at bottom of Enter your numbers card */
.builder-col-style {
  width: 270px;
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.builder-col-style .builder-box:first-child {
  height: var(--tier1-height, 530px);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
}

.builder-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.box-title-bar {
  background: var(--accent-gold);
  color: #212121;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 6px 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

.style-scroll-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 2px;
}

.style-item {
  min-height: 64px;
  height: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7px 12px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background 0.12s;
  border-radius: 4px;
  --style-font-scale: 1;
}
.style-item:hover {
  background: #f8f9fa;
}
.style-item.selected {
  background: #fff9c4;
  border: 2px solid var(--accent-red);
}

.style-scroll-list.styles-busy {
  cursor: wait !important;
}

.style-scroll-list.styles-busy .style-item {
  pointer-events: none !important;
  cursor: wait !important;
}

.style-scroll-list.styles-busy .style-item:not(.selected) {
  opacity: 0.72;
}

.style-item.selected.loading {
  position: relative;
  background: #fffde7;
}

.style-item.selected.loading::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  margin-top: -8px;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(229, 57, 53, 0.25);
  border-top-color: var(--accent-red);
  border-radius: 50%;
  animation: style-spin 0.65s linear infinite;
}

@keyframes style-spin {
  to {
    transform: rotate(360deg);
  }
}
.style-item-name {
  font-size: calc(0.92rem * var(--style-font-scale, 1));
  font-weight: 700;
  color: var(--primary-blue);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  line-height: 1.25;
}
.style-name-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.2px;
  font-size: inherit;
}
.style-badge-best {
  background: #4caf50;
  color: white;
  font-size: 0.62rem;
  padding: 1.5px 5px;
  border-radius: 4px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0.5px;
}
.style-item-preview {
  font-size: calc(1.15rem * var(--style-font-scale, 1));
  margin-top: 3px;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

/* Worldwide Proof Map */
.worldwide-map-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
}
.map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.map-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary-blue);
  text-transform: uppercase;
}
.map-stat-badge {
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
}
.map-svg-wrapper {
  background: #f0f4f8;
  border-radius: 6px;
  padding: 6px;
  position: relative;
}
.map-svg {
  width: 100%;
  height: auto;
  display: block;
}
.map-landmass-layer .state {
  fill: #d0d7de;
}
.map-landmass-layer .borders {
  stroke: #ffffff;
  stroke-width: 0.8;
  fill: none;
}
.map-footer-caption {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 6px;
  text-align: center;
  line-height: 1.2;
}

/* Spacer Wall Mounting Profile Preview Card (Column 1 - Side View) */
.spacer-profile-card {
  height: var(--tier2-height, 274px);
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.spacer-profile-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 8px;
}
.spacer-profile-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-blue);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
}
.spacer-profile-stage {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px 8px;
  position: relative;
  overflow: hidden;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.spacer-profile-svg {
  width: 100%;
  height: auto;
  display: block;
}
.installation-map-wrapper {
  max-width: 600px;
  margin: 24px auto 0;
  box-sizing: border-box;
}

/* Column 2: 3D Canvas, Controls & Numbers Card (540px wide) */
.builder-col-center {
  width: 540px;
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.builder-center-tier-top {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.canvas-viewport-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.canvas-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  background: #fafbfc;
  border-bottom: 1px solid #eaeef2;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.canvas-container {
  width: 100%;
  height: 300px;
  background: radial-gradient(circle at center, #ffffff 40%, #eef2f5 100%);
  position: relative;
  cursor: grab;
}
.canvas-container:active {
  cursor: grabbing;
}

/* 3D Viewport Controls & Device Adaptation */
.canvas-viewport-card.orbit-active {
  border-color: #00acc1;
  box-shadow: 0 0 0 2px rgba(0, 172, 193, 0.35);
}

/* Desktop HUD Control Toolbar */
.canvas-hud-toolbar {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hud-control-group {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  padding: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.hud-btn {
  background: transparent;
  border: none;
  border-radius: 4px;
  padding: 5px 9px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #4b5563;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
  line-height: 1;
}
.hud-btn:hover {
  background: #f3f4f6;
  color: var(--primary-blue);
}
.hud-btn:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 1px;
}
.hud-btn.active {
  background: var(--primary-blue);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(13, 71, 161, 0.3);
}
.hud-icon-btn {
  padding: 5px 6px;
}
.hud-spin-btn.active {
  background: #e65100;
  color: #ffffff;
}

/* Touch / Mobile Ergonomic Control Bar */
.canvas-touch-controls {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  z-index: 10;
  pointer-events: none;
}
.touch-chips-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  pointer-events: auto;
}
.touch-chip {
  min-height: 38px;
  min-width: 42px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid #d1d5db;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #374151;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
  touch-action: manipulation;
}
.touch-chip:active {
  transform: scale(0.96);
}
.touch-chip.active {
  background: var(--primary-blue);
  color: #ffffff;
  border-color: var(--primary-blue);
  box-shadow: 0 2px 6px rgba(13, 71, 161, 0.35);
}
.touch-zoom-chip {
  font-size: 1rem;
  padding: 4px 10px;
}
.touch-orbit-toggle {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}
.touch-orbit-toggle.active {
  background: #00838f;
  color: #ffffff;
  border-color: #00838f;
  box-shadow: 0 2px 6px rgba(0, 131, 143, 0.35);
}

/* Device Scoping: Desktop Mouse vs Mobile Touch */
.canvas-viewport-card.device-mouse .canvas-touch-controls {
  display: none;
}
.canvas-viewport-card.device-mouse .canvas-hud-toolbar {
  display: flex;
}
.canvas-viewport-card.device-touch .canvas-hud-toolbar {
  display: none;
}
.canvas-viewport-card.device-touch .canvas-touch-controls {
  display: block;
}

/* Fallback media query if JS has not run yet */
@media (pointer: coarse), (max-width: 768px) {
  .canvas-hud-toolbar {
    display: none;
  }
  .canvas-touch-controls {
    display: block;
  }
}
@media (pointer: fine) and (min-width: 769px) {
  .canvas-touch-controls {
    display: none;
  }
  .canvas-hud-toolbar {
    display: flex;
  }
}

.canvas-dimensions-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.94);
  padding: 6px 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  pointer-events: none;
  z-index: 5;
}
.statusbar-details {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-blue);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.statusbar-price {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0b2545;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
@media (max-width: 480px) {
  .canvas-dimensions-overlay {
    padding: 4px 8px;
  }
  .statusbar-details {
    font-size: 0.72rem;
  }
  .statusbar-price {
    font-size: 1rem;
  }
}

/* Dedicated PDF Mounting Template Card (Below 3D Preview) */
.pdf-mount-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
}
.pdf-mount-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.pdf-mount-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}
.pdf-mount-icon {
  flex-shrink: 0;
}
.pdf-mount-badge {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pdf-mount-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.35;
}
.pdf-mount-card-desc .pdf-help-link {
  display: inline;
  font-size: 0.78rem;
  color: var(--primary-blue);
  text-decoration: underline;
  cursor: pointer;
  margin-left: 4px;
}
.pdf-mount-card-desc .pdf-help-link:hover {
  color: #0b3d91;
}
.pdf-mount-card-action {
  flex-shrink: 0;
  margin: auto;
}
.btn-email-pdf {
  background: #2e7d32;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #1b5e20;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition:
    background 0.15s,
    opacity 0.15s,
    border-color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.btn-email-pdf:hover {
  background: #1b5e20;
}
.btn-email-pdf.active {
  background: #2e7d32;
  color: #ffffff;
}
.btn-email-pdf.inactive {
  background: #eceff1;
  color: #546e7a;
  border: 1px solid #cfd8dc;
}
.btn-email-pdf.inactive:hover {
  background: #cfd8dc;
  color: #263238;
}
.pdf-icon-indicator {
  font-size: 0.95rem;
  font-weight: 900;
}

/* Config & Order Summary Section (70/30 Split with Side View) */
.builder-summary-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px 16px;
}

.summary-card-split {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

.summary-left-pane {
  flex: 0 0 calc(70% - 10px);
  max-width: calc(70% - 10px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.summary-right-pane {
  flex: 0 0 calc(30% - 6px);
  max-width: calc(30% - 6px);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.summary-right-pane .spacer-profile-card {
  height: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

.summary-right-pane .spacer-profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.summary-right-pane .spacer-profile-title {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--primary-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.summary-right-pane .spacer-profile-stage {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 4px;
  position: relative;
  overflow: hidden;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.summary-right-pane .spacer-profile-svg {
  width: 100%;
  height: auto;
  max-height: 145px;
  display: block;
}

.input-numbers-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.input-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}
.input-numbers-field {
  background: #fffde7;
  border: 2px solid #fbc02d;
  font-size: 1.3rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 6px;
  letter-spacing: 2px;
  max-width: 200px;
}

.config-readout-row {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.config-readout-row strong {
  color: var(--text-primary);
}

.accessory-options-box {
  background: #fdfbe8;
  border: 1px solid #fae69e;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.76rem;
  line-height: 1.35;
}
.accessory-item {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.action-checkout-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eaeef2;
  padding-top: 10px;
  gap: 8px;
}
.live-price-display {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-blue);
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.action-buttons-group {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
}
.btn-add-to-cart {
  background: var(--accent-cyan);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.15s,
    transform 0.1s;
  box-shadow: 0 2px 6px rgba(0, 188, 212, 0.3);
}
.btn-add-to-cart:hover {
  background: var(--accent-cyan-dark);
  transform: translateY(-1px);
}
.btn-proceed-checkout {
  display: none;
  background: #2e7d32;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.1s;
  box-shadow: 0 2px 6px rgba(46, 125, 50, 0.35);
}
.btn-proceed-checkout:hover {
  background: #1b5e20;
  transform: translateY(-1px);
}

/* Finish Swatches (Widened Row 2 Spanning Columns 2 & 3) */
/* Finish Swatches (Row 2 Spanning All 3 Columns) */
.finish-swatches-box {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.finishes-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  gap: 8px;
}
.finishes-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.finishes-header-title {
  font-weight: 800;
  white-space: nowrap;
}
.material-filter-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  padding: 2px 4px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}
.filter-tab {
  background: transparent;
  border: none;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
  white-space: nowrap;
}
.filter-tab:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.7);
}
.filter-tab.active {
  background: #ffffff;
  color: #0284c7;
  font-weight: 800;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.btn-back-to-finishes {
  background: #ffffff;
  color: var(--primary-blue);
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
}
.btn-back-to-finishes:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0b2545;
  transform: translateX(-1px);
}

.finishes-slider-viewport {
  position: relative;
  overflow: hidden;
  height: 236px;
}
.finishes-view {
  width: 100%;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
}
.finishes-view-standard {
  position: relative;
  transform: translateX(0%);
  opacity: 1;
}
.finishes-view-enamel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
}
.finishes-slider-viewport.show-enamel .finishes-view-standard {
  transform: translateX(-35%);
  opacity: 0;
  pointer-events: none;
  position: absolute;
}
.finishes-slider-viewport.show-enamel .finishes-view-enamel {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

/* Option 3: Material Filter Rail 16 Finish Cards */
.finish-swatches-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 7px 6px;
  padding: 8px 10px;
  height: 100%;
  box-sizing: border-box;
  align-content: center;
  transition: all 0.25s ease;
}
.finish-swatches-grid[data-category="aluminum"] {
  grid-template-columns: repeat(8, 1fr);
}
.finish-swatches-grid[data-category="bronze"] {
  grid-template-columns: repeat(5, minmax(130px, 175px));
  justify-content: center;
}
.finish-swatches-grid[data-category="enamel"] {
  grid-template-columns: repeat(3, minmax(160px, 220px));
  justify-content: center;
}
.swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  text-align: center;
  padding: 5px 4px 6px;
  border-radius: 6px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  min-height: 100px;
  position: relative;
}
.swatch-item:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.swatch-item.selected {
  border-color: #0284c7;
  background: #f0f9ff;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.3), 0 4px 12px rgba(2, 132, 199, 0.15);
  transform: translateY(-1px);
}
.swatch-thumb {
  width: 100%;
  height: 58px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  margin-bottom: 4px;
  position: relative;
}
.alloy-badge {
  position: absolute;
  bottom: 3px;
  left: 3px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(2px);
  color: #f8fafc;
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 1px 4px;
  border-radius: 3px;
  text-transform: uppercase;
  pointer-events: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.swatch-item.selected .alloy-badge {
  background: #0284c7;
  color: #ffffff;
}
.swatch-item.selected .swatch-thumb::after {
  content: '✓';
  position: absolute;
  top: 3px;
  right: 3px;
  background: #0284c7;
  color: #ffffff;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.swatch-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 100%;
}
.swatch-item.selected .swatch-label {
  color: #0369a1;
  font-weight: 800;
}

/* Baked Enamel 47-Color Palette Grid */
.enamel-palette-banner {
  padding: 3px 14px 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  border-bottom: 1px solid #f1f5f9;
}
.enamel-colors-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  gap: 4px;
  padding: 4px 10px;
  overflow-y: auto;
  max-height: 140px;
}
.enamel-swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  text-align: center;
  gap: 2px;
  padding: 2px;
  border-radius: 4px;
  transition: transform 0.15s, background 0.15s;
}
.enamel-swatch-item:hover {
  transform: translateY(-1px);
  background: #f8fafc;
}
.enamel-swatch-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s, border-color 0.15s;
  position: relative;
}
.enamel-swatch-item.selected .enamel-swatch-circle {
  border: 2.5px solid var(--accent-red);
  box-shadow: 0 0 0 2px var(--accent-gold);
  transform: scale(1.08);
}
.enamel-swatch-item.metallic .enamel-swatch-circle::after {
  content: '★';
  position: absolute;
  bottom: -2px;
  right: -2px;
  font-size: 8px;
  background: #2b3a4a;
  color: #ffd700;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.enamel-swatch-label {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-secondary);
  line-height: 1.1;
  max-width: 66px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.enamel-swatch-code {
  font-size: 0.58rem;
  color: #94a3b8;
  line-height: 1;
}

/* Finish Bottom Description Bar */
.finish-bottom-desc {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 5px 16px;
  font-size: 0.74rem;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.25;
  box-sizing: border-box;
}
.finish-bottom-title {
  font-weight: 800;
  color: #0b2545;
  white-space: nowrap;
}
.finish-bottom-sep {
  color: #cbd5e1;
}
.finish-bottom-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Column 3: Select Size & Dimensional Profile (180px) - Stops at bottom of Enter your numbers card */
.builder-col-size {
  width: 180px;
  grid-column: 3;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.builder-col-size .builder-box:first-child {
  height: var(--tier1-height, 530px);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
}

.size-list-container {
  flex: 1 1 auto;
  min-height: 80px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.size-item-pill {
  padding: 5px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  cursor: pointer;
  background: #ffffff;
  transition: background 0.15s;
}
.size-item-pill:hover {
  background: #f5f5f5;
}
.size-item-pill.selected {
  background: var(--accent-gold);
  border: 2px solid var(--accent-red);
  color: #212121;
}
.size-item-pill.disabled {
  opacity: 0.35;
  background: #f0f2f5;
  color: #88929b;
  border-color: #d1d5db;
  cursor: not-allowed;
  pointer-events: none;
  text-decoration: line-through;
}

/* Added to Cart Floating Toast */
.cart-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #1b5e20;
  color: #ffffff;
  padding: 14px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  z-index: 99999;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  pointer-events: none;
  max-width: 360px;
  line-height: 1.4;
}
.cart-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* 3D Isometric Dimensional Profile Box */
.size-diagram-box {
  padding: 10px 12px;
  border-top: 1px solid #eaeef2;
  background: #fbfcfd;
}

.size-diagram-header {
  text-align: center;
  margin-bottom: 6px;
}

.size-diagram-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-blue);
}

.size-diagram-stage {
  position: relative;
  width: 100%;
  height: 145px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  background-size: 14px 14px;
}

.size-diagram-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.size-diagram-canvas-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.size-diagram-ruler-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

/* Precision Dimension Callouts */
.dimension-callout {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2.5px 7px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  pointer-events: none;
  z-index: 5;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0.3px;
}

.dim-height {
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff0f0;
  border: 1px solid #fca5a5;
  color: #b91c1c;
}

.dim-height .dim-axis {
  background: #ef4444;
  color: #ffffff;
  padding: 0.5px 3.5px;
  border-radius: 2px;
  font-size: 0.62rem;
}

.dim-depth {
  left: 8px;
  bottom: 8px;
  background: #f0f7ff;
  border: 1px solid #93c5fd;
  color: #1d4ed8;
}

.dim-depth .dim-axis {
  background: #2563eb;
  color: #ffffff;
  padding: 0.5px 3.5px;
  border-radius: 2px;
  font-size: 0.62rem;
}

.size-diagram-caption {
  font-size: 0.68rem;
  color: #64748b;
  text-align: center;
  margin-top: 6px;
  line-height: 1.3;
}
.size-diagram-caption strong {
  color: var(--text-primary);
}

.finish-description-card {
  height: var(--tier2-height, 274px);
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.finish-desc-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary-blue);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.finish-desc-body {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* ==========================================================================
   Trust Badges Banner
   ========================================================================== */

.value-props-banner {
  background: #ffffff;
  border-top: 2px solid var(--accent-red);
  border-bottom: 2px solid var(--accent-red);
  padding: 14px 20px;
  margin: 30px auto;
}
.value-props-list {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
}
.value-prop-item {
  font-style: italic;
  font-weight: 800;
  color: var(--accent-red);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Installation & FAQ Accordions
   ========================================================================== */

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
}
.faq-question {
  padding: 14px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-blue);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fafbfc;
}
.faq-question:hover {
  background: #f1f8ff;
}
.faq-icon-toggle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  transition: transform 0.2s;
}
.faq-card.open .faq-icon-toggle {
  transform: rotate(45deg);
  color: var(--accent-red);
}
.faq-answer {
  display: none;
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--text-primary);
  border-top: 1px solid #eaeef2;
  background: #ffffff;
}
.faq-card.open .faq-answer {
  display: block;
}

/* ==========================================================================
   Slide-out Cart Drawer
   ========================================================================== */

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: none;
}
.cart-overlay.active {
  display: block;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 90vw;
  height: 100%;
  background: #ffffff;
  z-index: 2001;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15);
  transition: right 0.25s ease-in-out;
  display: flex;
  flex-direction: column;
}
.cart-drawer.active {
  right: 0;
}
.cart-drawer-header {
  padding: 16px 20px;
  background: var(--primary-blue);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-drawer-title {
  font-size: 1.15rem;
  font-weight: 800;
}
.cart-drawer-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}
.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}
.cart-drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  background: #fafbfc;
}
.cart-drawer-checkout-btn {
  display: block;
  width: 100%;
  background: var(--accent-cyan);
  color: #fff;
  text-align: center;
  padding: 12px;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: 6px;
  text-transform: uppercase;
}
.cart-drawer-checkout-btn:hover {
  background: var(--accent-cyan-dark);
  text-decoration: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--primary-blue-dark);
  color: #ffffff;
  text-align: center;
  padding: 18px;
  font-size: 0.85rem;
  margin-top: 40px;
}

/* ==========================================================================
   Responsive Adaptations & Mobile Optimization
   ========================================================================== */

/* Intermediate / Tablet Viewports (769px to 1060px) */
@media (max-width: 1060px) and (min-width: 769px) {
  .builder-grid {
    grid-template-columns: minmax(220px, 260px) minmax(440px, 1fr) minmax(160px, 180px);
    max-width: 100%;
    gap: 12px 6px;
    padding: 0 8px;
  }
  .builder-col-style,
  .builder-col-center,
  .builder-col-size,
  .finish-swatches-box,
  .canvas-viewport-card,
  .pdf-mount-card,
  .builder-summary-card {
    width: 100%;
    max-width: 100%;
  }
  .canvas-container {
    height: 280px;
  }
}

/* Mobile Stack (<= 768px) - Triggers instantly on DevTools resize without requiring refresh */
@media (max-width: 768px) {
  .orientation-rotate-notice {
    display: flex;
  }
  .builder-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 16px;
  }
  .builder-col-style,
  .builder-col-center,
  .builder-col-size,
  .finish-swatches-box,
  .canvas-viewport-card,
  .pdf-mount-card,
  .builder-summary-card {
    width: 100%;
    max-width: 540px;
    grid-column: auto !important;
    grid-row: auto !important;
  }
  .finishes-box-header {
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 10px;
    height: auto;
  }
  .material-filter-tabs {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 3px;
    gap: 3px;
  }
  .filter-tab {
    padding: 4px 8px;
    font-size: 0.68rem;
    flex-shrink: 0;
  }
  .finish-swatches-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px 5px !important;
    padding: 6px 8px !important;
  }
  .finish-swatches-grid[data-category="bronze"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .finish-swatches-grid[data-category="enamel"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .summary-card-split {
    flex-direction: column;
    gap: 14px;
  }
  .summary-left-pane,
  .summary-right-pane {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .summary-right-pane .spacer-profile-svg {
    max-height: 120px;
  }
  .pdf-mount-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .pdf-mount-card-action {
    width: 100%;
    margin: auto;
  }
  .pdf-mount-card-action .btn-email-pdf {
    width: 100%;
    justify-content: center;
  }
  .builder-col-style .builder-box:first-child,
  .builder-col-size .builder-box:first-child {
    height: auto;
    max-height: 380px;
  }
  .canvas-container {
    height: 260px;
  }
  .welcome-hero-card {
    grid-template-columns: 1fr;
  }
  .masthead-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .brand-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    margin-top: 3px;
  }
  .brand-contact-sep {
    display: none;
  }
  .brand-contact a {
    white-space: nowrap;
    font-size: 0.82rem;
  }
  .masthead-tagline {
    display: none;
  }
  .brand-tagline-img {
    height: 42px;
  }
}

/* Mobile Landscape Baseline (Height <= 500px and Width >= 560px) */
@media (max-height: 500px) and (min-width: 560px) {
  .orientation-rotate-notice {
    display: none !important;
  }
  .site-masthead {
    padding: 6px 16px;
  }
  .brand-name {
    font-size: 1.2rem;
  }
  .brand-contact {
    display: none;
  }
  .brand-tagline-img {
    height: 38px;
  }
  .sticky-nav-wrapper {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  }
  .nav-item a {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  .builder-grid {
    display: grid;
    grid-template-columns: 240px 1fr 160px;
    gap: 8px;
    max-width: 100%;
  }
  .builder-col-style,
  .builder-col-center,
  .builder-col-size,
  .finish-swatches-box,
  .canvas-viewport-card,
  .pdf-mount-card,
  .builder-summary-card {
    width: 100%;
    max-width: 100%;
  }
  .canvas-container {
    height: 220px;
  }
  .builder-col-style .builder-box:first-child {
    height: 280px;
  }
  .builder-col-size .builder-box:first-child {
    height: 280px;
  }
}
