/** Shopify CDN: Minification failed

Line 4589:0 Unexpected "}"

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

/* Wilderness RV Mattress - Custom Builder V2 Styles */
/* Updated to match product page styling */

/* ============================================
   CSS VARIABLES - Updated to match product page
   ============================================ */

/* Break out of theme grid constraints */
.section-builder-v2,
.section-builder-v2.shopify-section {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Outer wrapper - full width background */
.builder-v2-page {
  background: #F5F0E8;
  padding: 0;
  overflow: hidden;
  width: 100%;
}

/* Inner wrapper - override page-width to be full */
.builder-v2-page .page-width,
.builder-v2-wrapper.page-width {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
}

/* Inner wrapper with updated color palette */
.builder-v2-wrapper {
  /* Primary greens - matched to product page teal */
  --gd: #163318;      /* Dark green - primary */
  --g: #1C3B1E;       /* Medium green - buttons/accents */
  --gl: #2a5a2c;      /* Light green - hover states */
  
  /* Accent colors */
  --gold: #C8892A;
  --cream: #F5F0E8;
  
  /* Neutral palette */
  --w: #fff;
  --g1: #F5F0E8;
  --g2: #e8e8e8;
  --g3: #d4d4d4;
  --g4: #a3a3a3;
  --g5: #737373;
  --g6: #525252;
  --g7: #404040;
  --g8: #262626;
  
  /* Effects */
  --sh: 0 4px 20px rgba(0,0,0,0.08);
  --sh-lg: 0 8px 30px rgba(0,0,0,0.12);
  --rad: 12px;
  
  /* Typography - use system fonts that match theme */
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

.builder-v2-wrapper * {
  box-sizing: border-box;
}

/* Topographic background pattern */
.topo-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .25;
  background-image: url("data:image/svg+xml,%3Csvg width='600' height='600' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%231a4d3e' stroke-width='0.5'%3E%3Cellipse cx='300' cy='300' rx='280' ry='200' opacity='0.12'/%3E%3Cellipse cx='300' cy='300' rx='180' ry='130' opacity='0.08'/%3E%3Cellipse cx='300' cy='300' rx='80' ry='55' opacity='0.05'/%3E%3Cellipse cx='150' cy='480' rx='100' ry='70' opacity='0.08'/%3E%3Cellipse cx='480' cy='150' rx='90' ry='60' opacity='0.08'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 600px;
}

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

.builder-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 580px;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

@media(max-width: 900px) {
  .builder-main {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  
  .preview {
    order: 1;
  }
  
  .config {
    order: 2;
    border-right: none;
    border-bottom: 1px solid var(--g2);
  }
  
  /* Steps moved to end via JS, ensure it's last */
  .steps.mobile-moved {
    order: 3;
  }
}

/* ============================================
   CONFIG PANEL (Left Side)
   ============================================ */

.config {
  background: var(--g1);
  border-right: 1px solid var(--g2);
  display: flex;
  flex-direction: column;
}

/* Config Header - must match preview-header total height */
/* Config Header - fixed height to match preview-header */
.config-header {
  height: 120px;
  padding: 20px 20px 16px;
  background: var(--w);
  border-bottom: 1px solid var(--g2);
  flex-shrink: 0;
  box-sizing: border-box;
}

/* Config Main - matches preview-main */
.config-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.prev-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--gd), var(--g));
  color: var(--w);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}

.prev-badge svg {
  width: 12px;
  height: 12px;
  fill: var(--gold);
}

.config-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 700;
  color: var(--gd);
  margin: 0 0 4px 0;
  line-height: 1.2;
  white-space: nowrap;
}

.config-sub {
  color: var(--g5);
  font-size: 14px;
  margin: 0;
  line-height: 1.3;
}

/* ============================================
   PREVIEW PANEL (Right Side)
   ============================================ */

.preview {
  display: flex;
  flex-direction: column;
  order: 2;
  overflow: visible;
  background: var(--w);
}

/* Price Header - fixed height to match config-header */
.preview-header {
  height: 120px;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--g2);
  flex-shrink: 0;
  box-sizing: border-box;
}

.preview-header-top {
  height: 20px;
  background: var(--w);
  flex-shrink: 0;
}

.preview-header-content {
  flex: 1;
  background: var(--gd);
  padding: 12px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.preview-header .price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.preview-header .price-lbl {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2px;
}

.preview-header .price-orig {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  text-decoration: line-through;
}

.preview-header .price-cur {
  font-size: 32px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

/* Price pulse animation - brief opacity flash on price */
@keyframes pricePulse {
  0% { opacity: 1; }
  30% { opacity: 0.5; }
  100% { opacity: 1; }
}

.price-cur.pulse {
  animation: pricePulse 0.35s ease;
  animation-fill-mode: none;
}

.preview-header .price-save {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: var(--gd);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.preview-header .price-save svg {
  width: 16px;
  height: 16px;
}

/* Mattress Preview - Topo background */
.preview-main {
  flex: 1;
  padding: 16px 24px;
  background: linear-gradient(160deg, var(--w) 0%, rgba(248,246,241,0.95) 100%);
  position: relative;
  overflow: visible;
}

.preview-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("/cdn/shop/files/topo_map.jpg?v=1769704761&width=800&format=webp");
  background-repeat: repeat;
  background-size: 300px 300px;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.preview-main > * {
  position: relative;
  z-index: 1;
}

/* Build Summary - min-height to match cfg-foot, can grow on small screens */
.preview-summary {
  min-height: 76px;
  background: #ebe7df;
  padding: 14px 24px;
  border-top: 1px solid var(--g2);
  flex-shrink: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

.summary-title {
  display: none;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px 12px;
  width: 100%;
}

@media(max-width: 1100px) {
  .summary-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 16px;
  }
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.summary-label {
  font-size: 10px;
  color: var(--g5);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.summary-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--g8);
  white-space: nowrap;
}

@media(max-width: 900px) {
  .preview {
    order: 2;
    grid-row: 2;
    border-top: 1px solid var(--g2);
  }
  
  .preview-main {
    min-height: 280px;
    padding: 20px;
  }
  
  .summary-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Preview Section Labels */
.prev-section {
  margin-bottom: 12px;
  overflow: visible;
}

.prev-section:last-child {
  margin-bottom: 0;
}

.prev-section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--g5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

/* Top View Container */
.top-cont {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  padding: 5px 50px 30px 5px; /* Room for dimension labels */
}

.matt-svg {
  width: 100%;
  height: auto;
}

/* Dimension Labels */
.dim-lbl {
  position: absolute;
  background: var(--gd);
  color: var(--w);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(26,77,62,0.3);
}

.dim-lbl.w {
  transform: translateX(-50%);
  /* left and top set by JS */
}

.dim-lbl.l {
  transform: translateY(-50%);
  /* left and top set by JS */
}

/* Side View - Compact */
.side-cont {
  max-width: 400px;
  margin: 0 auto;
  padding: 0;
  overflow: visible;
}

/* Preview footer stats removed - now in config panel */

/* Step Navigation - Compact */
.steps {
  display: flex;
  padding: 10px 16px;
  gap: 2px;
  background: var(--w);
  border-bottom: 1px solid var(--g2);
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  transition: opacity .2s;
}

.step.dis {
  opacity: .4;
  pointer-events: none;
}

.step-ind {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--g2);
  color: var(--g5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  transition: all .3s;
}

.step.act .step-ind {
  background: var(--g);
  color: var(--w);
  box-shadow: 0 3px 10px rgba(31,92,74,0.35);
}

.step.done .step-ind {
  background: var(--gold);
  color: var(--gd);
}

.step-lbl {
  font-size: 8px;
  font-weight: 600;
  color: var(--g5);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.step.act .step-lbl {
  color: var(--g);
}

.step.done .step-lbl {
  color: var(--gd);
}

/* Step Content Area - Compact */
.step-cont {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px;
  max-width: 100%;
}

.step-sec {
  display: none;
}

.step-sec.act {
  display: block;
  animation: fadeIn .3s ease;
}

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

/* Section Titles - Compact */
.sec-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--g8);
  margin-bottom: 2px;
}

.sec-sub {
  font-size: 12px;
  color: var(--g5);
  margin-bottom: 12px;
  line-height: 1.3;
}

/* ============================================
   MATTRESS SELECTION - 2 Column Layout
   ============================================ */

.matt-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}

/* Left Column - Selected Mattress Detail */
.matt-detail {
  background: var(--w);
  border: 2px solid var(--g);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.matt-detail-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--gd);
  font-size: 8px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  width: fit-content;
  margin-bottom: 8px;
  min-height: 18px;
}

.matt-detail-badge:empty {
  visibility: hidden;
}

.matt-detail-img {
  width: 100%;
  height: 100px;
  object-fit: contain;
  border-radius: 6px;
  background: transparent;
  margin-bottom: 12px;
}

.matt-detail-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--g8);
  line-height: 1.2;
  margin-bottom: 4px;
}

.matt-detail-reviews {
  margin-bottom: 8px;
  min-height: 20px;
  transition: opacity 0.2s ease;
  border-radius: 4px;
  padding: 2px 4px;
  margin-left: -4px;
}

.matt-detail-reviews:hover {
  opacity: 0.8;
  background: rgba(31, 92, 74, 0.05);
}

.matt-detail-desc {
  font-size: 12px;
  color: var(--g5);
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
}

.matt-detail-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
  align-items: center;
}

.matt-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--g);
  background: rgba(31,92,74,0.1);
  padding: 4px 10px;
  border-radius: 4px;
}

/* Right Column - All 4 Mattress Options */
.matt-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.matt-card {
  background: var(--w);
  border: 2px solid var(--g2);
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
}

.matt-card:hover {
  border-color: var(--g3);
  background: var(--g1);
}

.matt-card.sel {
  border-color: var(--g);
  background: linear-gradient(135deg, rgba(31,92,74,0.05), rgba(31,92,74,0.1));
}

.matt-img {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  object-fit: contain;
  background: var(--g1);
  flex-shrink: 0;
}

.matt-cont {
  flex: 1;
  min-width: 0;
}

.matt-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.matt-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--g8);
  line-height: 1.2;
}

.matt-thick {
  font-size: 11px;
  font-weight: 600;
  color: var(--g);
  background: rgba(31,92,74,0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Comfort buttons inside Montana card */
.matt-comf-row {
  display: flex;
  gap: 4px;
}

.comf-btn-sm {
  flex: 1;
  padding: 6px 8px;
  border: 1.5px solid var(--g2);
  border-radius: 5px;
  background: var(--w);
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  color: var(--g6);
}

.comf-btn-sm:hover {
  border-color: var(--g3);
  background: var(--g1);
}

.comf-btn-sm.sel {
  border-color: var(--g);
  background: var(--g);
  color: var(--w);
}

/* Comfort selection error state */
.comf-error {
  animation: comfPulse 1s ease-in-out infinite;
}

.comf-error .comf-btn-sm {
  border-color: #c53030;
  background: #fff5f5;
}

.comf-error .comf-btn-sm:hover {
  border-color: #c53030;
  background: #fed7d7;
}

@keyframes comfPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(197, 48, 48, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(197, 48, 48, 0); }
}

/* Dimension error styles */
.dim-error .dim-input-wrap {
  border-color: #c53030;
  background: #fff5f5;
  animation: dimPulse 0.5s ease;
}

.dim-error .dim-input-wrap input {
  color: #c53030;
}

.dim-error-msg {
  display: none;
  color: #c53030;
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
}

.dim-error .dim-error-msg {
  display: block;
}

@keyframes dimPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(197, 48, 48, 0.4); }
  50% { box-shadow: 0 0 8px rgba(197, 48, 48, 0.6); }
}

/* Section Header Row with Button */
.sec-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.sec-header-row .sec-title {
  margin-bottom: 4px;
}

.sec-header-row .sec-sub {
  margin-bottom: 0;
}

/* Measure Help Button */
.measure-help-btn {
  background: none;
  border: none;
  color: #c53030;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 4px;
}

.measure-help-btn:hover {
  color: #9b2c2c;
}

/* Measure Help Modal */
.measure-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  overflow-y: scroll;
  padding: 60px 20px 20px;
  box-sizing: border-box;
}

.measure-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.measure-modal-close {
  position: fixed;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.95);
  color: #333;
  border: none;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  z-index: 10000;
}

.measure-modal-close:hover {
  background: #fff;
}

/* Help Modal Content - Shared Base Styles */
.help-modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  max-width: 400px;
  width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
}

.help-modal-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gd);
  margin-bottom: 8px;
  text-align: center;
}

.help-modal-content p {
  font-size: 14px;
  color: var(--g5);
  margin-bottom: 16px;
  text-align: center;
}

.help-modal-content img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Corner Help Specific */
.corner-help-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.corner-help-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: var(--g1);
  border: 2px solid var(--g2);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.corner-help-btn:hover {
  border-color: var(--g);
  background: rgba(31,92,74,0.05);
}

.corner-help-btn svg {
  width: 60px;
  height: 60px;
}

.corner-help-btn span {
  font-size: 13px;
  font-weight: 600;
  color: var(--gd);
}

.corner-help-back {
  background: none;
  border: none;
  color: var(--g);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-bottom: 12px;
  font-family: inherit;
}

.corner-help-back:hover {
  color: var(--gd);
}

.corner-help-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ============================================
   PRODUCT LANDING PAGE - PREMIUM DESIGN
   Based on Montana landing page template
   ============================================ */

/* CSS Variables for Landing Page */
.product-landing-modal {
  --pl-cream: #faf8f5;
  --pl-cream-dark: #f0ebe3;
  --pl-forest: #2d5a45;
  --pl-forest-light: #3d7a5d;
  --pl-forest-pale: #e8f0eb;
  --pl-amber: #c9883a;
  --pl-amber-light: #e5a84b;
  --pl-amber-pale: #fef7ed;
  --pl-slate: #3a4a5c;
  --pl-text: #2d3748;
  --pl-text-muted: #6b7280;
  --pl-border: #e5e0d8;
  --pl-radius: 16px;
  --pl-shadow: 0 4px 24px rgba(45, 90, 69, 0.08);
}

/* Learn More Button */
.matt-read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 4px 10px;
  background: #2d5a45;
  border: none;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.matt-read-more:hover {
  background: #1a4030;
}

/* Modal Overlay */
.product-landing-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 10000;
  backdrop-filter: blur(4px);
  content-visibility: auto;
}

.product-landing-modal.active {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.pl-content {
  background: var(--pl-cream);
  max-width: 900px;
  width: 100%;
  margin: 20px;
  border-radius: var(--pl-radius);
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.pl-close {
  position: fixed;
  top: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.pl-close:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}

.pl-close svg {
  width: 20px;
  height: 20px;
  stroke: var(--pl-slate);
}

/* Hero Section */
.pl-hero {
  background: linear-gradient(180deg, #fff 0%, var(--pl-cream) 100%);
  padding: 40px 36px 32px;
  position: relative;
  overflow: hidden;
}

.pl-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/cdn/shop/files/topo_black.png?v=1769816871&width=500&format=webp');
  background-size: 500px;
  opacity: 0.06;
  pointer-events: none;
}

.pl-hero-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 30px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.pl-hero-grid > * {
  min-width: 0;
}

.pl-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pl-amber-pale);
  border: 1px solid var(--pl-amber);
  border-radius: 50px;
  padding: 6px 12px;
  font-size: 10px;
  color: var(--pl-amber);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.pl-stars {
  display: inline-flex;
  gap: 2px;
}

.pl-stars svg {
  width: 12px;
  height: 12px;
  fill: var(--pl-amber);
}

.pl-hero-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 8px;
  color: var(--pl-slate);
}

.pl-hero-subtitle {
  font-size: 16px;
  color: var(--pl-forest);
  font-weight: 500;
  margin-bottom: 12px;
}

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

.pl-hero-stats {
  display: flex;
  gap: 28px;
  padding: 16px 0;
  border-top: 1px solid var(--pl-border);
  border-bottom: 1px solid var(--pl-border);
}

.pl-hero-stat {
  text-align: left;
}

.pl-hero-stat-value {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--pl-forest);
}

.pl-hero-stat-label {
  font-size: 10px;
  color: var(--pl-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.pl-hero-image {
  position: relative;
  width: 100%;
}

.pl-hero-image-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(45, 90, 69, 0.12);
}

.pl-hero-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* Thumbnail Gallery */
.pl-hero-thumbs {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.pl-hero-thumbs::-webkit-scrollbar {
  height: 4px;
}

.pl-hero-thumbs::-webkit-scrollbar-track {
  background: var(--pl-cream-dark);
  border-radius: 2px;
}

.pl-hero-thumbs::-webkit-scrollbar-thumb {
  background: var(--pl-forest);
  border-radius: 2px;
}

.pl-hero-thumb {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  opacity: 0.6;
}

.pl-hero-thumb:hover {
  opacity: 0.9;
}

.pl-hero-thumb.active {
  border-color: var(--pl-forest);
  opacity: 1;
}

.pl-hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Trust Bar */
.pl-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-bottom: 1px solid var(--pl-border);
  padding: 24px 40px;
}

.pl-trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pl-trust-icon {
  width: 46px;
  height: 46px;
  background: var(--pl-forest-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pl-trust-icon svg {
  width: 22px;
  height: 22px;
  color: var(--pl-forest);
}

.pl-trust-text {
  display: flex;
  flex-direction: column;
}

.pl-trust-text strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--pl-slate);
}

.pl-trust-text span {
  font-size: 11px;
  color: var(--pl-text-muted);
}

/* Section Headers */
.pl-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.pl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--pl-forest);
  margin-bottom: 12px;
  font-weight: 600;
}

.pl-eyebrow::before,
.pl-eyebrow::after {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--pl-forest);
  opacity: 0.3;
}

.pl-section-header h2 {
  font-family: Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--pl-slate);
}

.pl-section-header h2 span {
  color: var(--pl-forest);
}

/* Features Section */
.pl-features {
  background: var(--pl-cream);
  padding: 50px 40px;
  position: relative;
}

.pl-features::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/cdn/shop/files/topo_black.png?v=1769816871&width=500&format=webp');
  background-size: 500px;
  opacity: 0.05;
  pointer-events: none;
}

.pl-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.pl-feature-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--pl-border);
  border-radius: var(--pl-radius);
  padding: 24px;
  transition: all 0.3s ease;
}

.pl-feature-item:hover {
  border-color: var(--pl-forest-pale);
  box-shadow: var(--pl-shadow);
  transform: translateY(-2px);
}

.pl-feature-icon {
  width: 52px;
  height: 52px;
  background: #fff;
  border: 2px solid var(--pl-forest-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--pl-shadow);
}

.pl-feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--pl-forest);
}

.pl-feature-content h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--pl-slate);
}

.pl-feature-content p {
  font-size: 14px;
  color: var(--pl-text-muted);
  line-height: 1.6;
}

/* Layers Section */
.pl-layers {
  background: #fff;
  padding: 50px 40px;
}

.pl-layers-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: start;
}

.pl-layers-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pl-layer-item {
  background: var(--pl-cream);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
  cursor: default;
}

.pl-layer-item:hover {
  border-color: var(--pl-forest);
  background: #fff;
  box-shadow: var(--pl-shadow);
  transform: translateX(6px);
}

.pl-layer-depth {
  width: 44px;
  height: 44px;
  background: var(--pl-forest);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  flex-shrink: 0;
}

.pl-layer-info h5 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
  color: var(--pl-slate);
}

.pl-layer-info p {
  font-size: 13px;
  color: var(--pl-text-muted);
}

.pl-layers-details {
  background: var(--pl-cream);
  border-radius: 20px;
  padding: 36px;
}

.pl-layers-details h3 {
  font-family: Georgia, serif;
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--pl-slate);
}

.pl-layers-details > p {
  font-size: 15px;
  color: var(--pl-text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.pl-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.pl-spec {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.pl-spec-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--pl-text-muted);
  margin-bottom: 4px;
  font-weight: 500;
}

.pl-spec-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--pl-forest);
}

/* Testimonial Section */
.pl-testimonial {
  background: var(--pl-cream);
  padding: 50px 40px;
  position: relative;
}

.pl-testimonial::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/cdn/shop/files/topo_black.png?v=1769816871&width=500&format=webp');
  background-size: 500px;
  opacity: 0.05;
  pointer-events: none;
}

.pl-testimonial-card {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--pl-border);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  z-index: 1;
  text-align: center;
}

.pl-testimonial-stars {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 20px;
}

.pl-testimonial-stars svg {
  width: 22px;
  height: 22px;
  fill: var(--pl-amber);
}

.pl-testimonial-text {
  font-size: 17px;
  color: var(--pl-text);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.pl-testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.pl-testimonial-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--pl-forest-pale) 0%, var(--pl-forest-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
}

.pl-testimonial-info {
  text-align: left;
}

.pl-testimonial-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--pl-slate);
}

.pl-testimonial-location {
  font-size: 13px;
  color: var(--pl-text-muted);
}

/* Testimonial Carousel */
.pl-testimonial-carousel {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.pl-testimonial-slides {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.pl-testimonial-slide {
  display: none;
}

.pl-testimonial-slide.active {
  display: block;
  animation: plFadeIn 0.3s ease;
}

@keyframes plFadeIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

.pl-testimonial-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--pl-border);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.pl-testimonial-arrow:hover {
  background: var(--pl-forest);
  border-color: var(--pl-forest);
}

.pl-testimonial-arrow svg {
  width: 20px;
  height: 20px;
  stroke: var(--pl-slate);
  stroke-width: 2;
  fill: none;
}

.pl-testimonial-arrow:hover svg {
  stroke: #fff;
}

.pl-testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.pl-testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pl-border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pl-testimonial-dot:hover {
  background: var(--pl-forest-light);
}

.pl-testimonial-dot.active {
  background: var(--pl-forest);
  width: 24px;
  border-radius: 4px;
}

/* ============================================
   REVIEWS MODAL
   ============================================ */
.reviews-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 10001;
  backdrop-filter: blur(4px);
  content-visibility: auto;
}

.reviews-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.reviews-content {
  background: #fff;
  color: #333;
  max-width: 600px;
  width: 100%;
  border-radius: 16px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.reviews-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: #f5f5f5;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #666;
  transition: all 0.2s ease;
  z-index: 10;
}

.reviews-close:hover {
  background: #e0e0e0;
  color: #333;
}

.reviews-header {
  padding: 28px 28px 20px;
  border-bottom: 1px solid #e5e5e5;
  flex-shrink: 0;
}

.reviews-header h2 {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: #2d3748;
  margin: 0;
}

.reviews-widget-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px 28px;
}

/* Loading state */
.reviews-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #666;
}

.reviews-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e5e5e5;
  border-top-color: #2d5a45;
  border-radius: 50%;
  animation: reviewsSpin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes reviewsSpin {
  to { transform: rotate(360deg); }
}

.reviews-error {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

/* Summary header */
.reviews-summary-header {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 24px;
}

.reviews-stars-large {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
}

.reviews-stars-large svg {
  width: 28px;
  height: 28px;
}

.reviews-stars-large svg.filled {
  fill: #c9883a;
}

.reviews-stars-large svg.empty {
  fill: #e5e5e5;
}

.reviews-rating-text {
  font-size: 14px;
  color: #666;
  margin: 0;
}

/* Reviews list */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.reviews-empty {
  text-align: center;
  padding: 40px;
  color: #666;
}

/* Individual review */
.review-item {
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}

.review-item:last-child {
  border-bottom: none;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.review-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2d5a45;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.review-author-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-author-name {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.review-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #2d5a45;
}

.review-verified svg {
  width: 14px;
  height: 14px;
}

.review-location {
  font-size: 12px;
  color: #888;
}

.review-date {
  font-size: 13px;
  color: #888;
  flex-shrink: 0;
}

.review-rating {
  display: flex;
  gap: 2px;
  margin-bottom: 10px;
}

.review-rating svg {
  width: 16px;
  height: 16px;
}

.review-rating svg.filled {
  fill: #c9883a;
}

.review-rating svg.empty {
  fill: #ddd;
}

.review-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px;
}

.review-body {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
  margin: 0;
}

/* Pagination */
.reviews-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 0;
  margin-top: 20px;
  border-top: 1px solid #e5e5e5;
}

.reviews-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #2d5a45;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.reviews-page-btn:hover:not(:disabled) {
  background: #2d5a45;
  border-color: #2d5a45;
  color: #fff;
}

.reviews-page-btn:hover:not(:disabled) svg {
  stroke: #fff;
}

.reviews-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.reviews-page-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.reviews-page-info {
  font-size: 14px;
  color: #666;
}

@media(max-width: 600px) {
  .reviews-modal {
    padding: 20px 10px;
  }
  
  .reviews-content {
    margin: 0;
    border-radius: 12px;
  }
  
  .reviews-header {
    padding: 20px 20px 16px;
  }
  
  .reviews-header h2 {
    font-size: 20px;
    padding-right: 30px;
  }
  
  .reviews-widget-container {
    padding: 16px 20px 20px;
  }
  
  .review-header {
    flex-direction: column;
    gap: 8px;
  }
  
  .review-date {
    margin-left: 52px;
  }
  
  .reviews-page-btn {
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* CTA Section */
.pl-cta {
  background: linear-gradient(135deg, var(--pl-forest) 0%, #1a4030 100%);
  padding: 50px 40px;
  text-align: center;
  position: relative;
}

.pl-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/cdn/shop/files/topo_white.png?v=1769816870&width=500&format=webp');
  background-size: 500px;
  opacity: 0.1;
  pointer-events: none;
}

.pl-cta h3 {
  font-family: Georgia, serif;
  font-size: 28px;
  color: #fff;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.pl-cta p {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.pl-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--pl-amber) 0%, var(--pl-amber-light) 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  box-shadow: 0 4px 16px rgba(201, 136, 58, 0.3);
  position: relative;
  z-index: 1;
}

.pl-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(201, 136, 58, 0.4);
}

.pl-cta-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s;
}

.pl-cta-btn:hover svg {
  transform: translateX(4px);
}

/* Firmness row for non-Montana mattresses */
.matt-firmness-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.firmness-end {
  font-size: 9px;
  font-weight: 600;
  color: var(--g5);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.firmness-scale {
  display: flex;
  align-items: center;
  gap: 3px;
}

.scale-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--g3);
  transition: all 0.2s;
}

.scale-dot.active {
  background: var(--g);
  transform: scale(1.4);
}

/* Better contrast when card is selected */
.matt-card.sel .scale-dot {
  background: rgba(31,92,74,0.25);
}

.matt-card.sel .scale-dot.active {
  background: var(--g);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.8);
}

.matt-card.sel .firmness-end {
  color: var(--g6);
}

.matt-chk {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--g3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--w);
  flex-shrink: 0;
}

.matt-card.sel .matt-chk {
  background: var(--g);
  border-color: var(--g);
}

.matt-chk svg {
  width: 12px;
  height: 12px;
  stroke: var(--w);
  stroke-width: 3;
  opacity: 0;
}

.matt-card.sel .matt-chk svg {
  opacity: 1;
}

/* Dim comfort row when Montana not selected */
.matt-card:not(.sel) .matt-comf-row {
  opacity: 0.5;
}

@media(max-width: 600px) {
  .matt-opts {
    grid-template-columns: 1fr;
  }
  
  .matt-detail {
    height: auto;
    min-height: 280px;
  }
}

/* ============================================
   TRUST BADGES (in config panel)
   ============================================ */

.trust-badges {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.trust-badge {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--g6);
  font-weight: 600;
  padding: 12px 8px;
  background: var(--w);
  border-radius: 8px;
  border: 1px solid var(--g2);
  text-align: center;
}

.trust-badge svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

/* ============================================
   DIMENSION INPUTS
   ============================================ */

.dim-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.dim-box {
  background: var(--w);
  border: 2px solid var(--g2);
  border-radius: var(--rad);
  padding: 16px;
  transition: border-color .2s, box-shadow .2s;
}

.dim-box:focus-within {
  border-color: var(--g);
  box-shadow: 0 0 0 3px rgba(31,92,74,0.1);
}

.dim-box-lbl {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--g6);
  margin-bottom: 8px;
}

.dim-box-lbl svg {
  width: 14px;
  height: 14px;
  stroke: var(--gold);
}

.dim-inp-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dim-input-wrap {
  display: flex;
  align-items: center;
  background: var(--g1);
  border-radius: 8px;
  overflow: hidden;
  flex: 1;
}

.dim-adj-btn {
  width: 40px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #c8d8d0;
  border: none;
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
  color: var(--g6);
  transition: background .15s;
  font-family: inherit;
  padding: 0;
  line-height: 1;
}

.dim-adj-btn:hover {
  background: #b8c8c0;
}

.dim-adj-btn:active {
  background: #a8b8b0;
}

.dim-inp-row input {
  flex: 1;
  padding: 10px;
  border: none;
  font-size: 22px;
  font-weight: 700;
  color: var(--gd);
  text-align: center;
  background: var(--g1);
  font-family: inherit;
  width: 100%;
  cursor: default;
  -moz-appearance: textfield;
}

.dim-inp-row input::-webkit-outer-spin-button,
.dim-inp-row input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.dim-inp-row input:focus {
  outline: none;
}

.dim-inp-row span {
  font-size: 14px;
  color: var(--g4);
  font-weight: 600;
}

/* Quick Select Section */
.quick {
  background: linear-gradient(135deg, var(--cream), #f0ede5);
  border-radius: var(--rad);
  padding: 18px;
  border: 1px solid var(--g2);
}

.quick-hdr {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.quick-icon {
  width: 36px;
  height: 36px;
  background: var(--g);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--w);
}

.quick-txt h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--g8);
  margin: 0;
}

.quick-txt p {
  font-size: 12px;
  color: var(--g5);
  margin: 0;
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.quick-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--w);
  border: 2px solid var(--g2);
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}

.quick-btn:hover {
  border-color: var(--g);
  transform: translateY(-2px);
  box-shadow: var(--sh);
}

.quick-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--g7);
}

.quick-dims {
  font-size: 11px;
  font-weight: 700;
  color: var(--gd);
  background: var(--gold);
  padding: 4px 8px;
  border-radius: 4px;
}

/* ============================================
   CORNER OPTIONS
   ============================================ */

.corn-tog {
  display: flex;
  background: var(--g2);
  border-radius: var(--rad);
  padding: 4px;
  margin-bottom: 18px;
}

.corn-tog-btn {
  flex: 1;
  padding: 14px 16px;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--g5);
  cursor: pointer;
  transition: all .3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
}

.corn-tog-btn svg {
  width: 18px;
  height: 18px;
}

.corn-tog-btn.act {
  background: var(--g);
  color: var(--w);
  box-shadow: 0 4px 15px rgba(31,92,74,0.3);
}

/* Standard Corners Message */
.std-msg {
  background: linear-gradient(135deg, var(--cream), #f0ede5);
  border-radius: var(--rad);
  padding: 28px;
  text-align: center;
  border: 1px solid var(--g2);
}

.std-msg-icon {
  width: 56px;
  height: 56px;
  background: var(--w);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: var(--sh);
}

.std-msg-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--g);
}

.std-msg h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--g8);
  margin-bottom: 6px;
}

.std-msg p {
  font-size: 14px;
  color: var(--g5);
  margin: 0;
  line-height: 1.4;
}

/* Custom Corners */
.cust-corn {
  display: none;
}

.cust-corn.act {
  display: block;
}

/* Corner 2x2 Grid Layout */
.corn-grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.corn-editor {
  background: var(--w);
  border: 1px solid var(--g2);
  border-radius: 8px;
  padding: 10px;
}

.corn-editor.active {
  border-color: var(--g);
  background: linear-gradient(135deg, rgba(31,92,74,0.02), rgba(31,92,74,0.05));
}

.corn-editor-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--g6);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.corn-editor.active .corn-editor-title {
  color: var(--gd);
}

.corn-editor-styles {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.corn-style-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 4px;
  background: var(--g1);
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s;
}

.corn-style-btn:hover {
  background: var(--g2);
}

.corn-style-btn.sel {
  border-color: var(--g);
  background: linear-gradient(135deg, rgba(31,92,74,0.08), rgba(31,92,74,0.15));
}

.corn-style-btn svg {
  width: 24px;
  height: 24px;
}

.corn-style-btn span {
  font-size: 9px;
  font-weight: 600;
  color: var(--g5);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.corn-style-btn.sel span {
  color: var(--gd);
}

/* Always show dims area to prevent layout shift */
.corn-editor-dims {
  display: flex;
  justify-content: center;
  gap: 12px;
  min-height: 32px;
}

.corn-editor-dims .corn-dim {
  visibility: hidden;
}

.corn-editor-dims.show .corn-dim {
  visibility: visible;
}

.corn-dim {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: #c8d8d0;
  padding: 4px;
  border-radius: 5px;
}

.corn-dim label {
  font-size: 11px;
  font-weight: 700;
  color: var(--g5);
  margin-right: 6px;
}

.corn-dim-input-wrap {
  display: flex;
  align-items: center;
  background: var(--w);
  border-radius: 4px;
  border: 1px solid var(--g3);
  overflow: hidden;
}

.corn-dim-btn {
  width: 24px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--g1);
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: var(--g6);
  transition: background .15s;
  font-family: inherit;
  padding: 0;
  line-height: 1;
}

.corn-dim-btn:hover {
  background: var(--g2);
}

.corn-dim-btn:active {
  background: var(--g3);
}

.corn-dim input {
  width: 32px;
  padding: 4px 0;
  border: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--gd);
  text-align: center;
  background: var(--w);
  font-family: inherit;
  cursor: default;
  -moz-appearance: textfield;
}

.corn-dim input::-webkit-outer-spin-button,
.corn-dim input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.corn-dim input:focus {
  outline: none;
}

.corn-dim span {
  font-size: 12px;
  font-weight: 600;
  color: var(--g6);
  margin-left: 4px;
}

.corn-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding: 0 4px;
}

.corn-label-head,
.corn-label-foot {
  font-size: 9px;
  font-weight: 600;
  color: var(--g5);
  letter-spacing: 0.5px;
}

/* ============================================
   HINGE OPTIONS
   ============================================ */

/* Hinge Button Row */
.hinge-btn-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.hinge-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 8px;
  background: var(--w);
  border: 2px solid var(--g2);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--g7);
  transition: all .2s;
  font-family: inherit;
}

.hinge-btn:hover {
  border-color: var(--g3);
  background: var(--g1);
}

.hinge-btn.sel {
  border-color: var(--g);
  background: linear-gradient(135deg, rgba(31,92,74,0.05), rgba(31,92,74,0.1));
  color: var(--gd);
}

/* Hinge Settings */
.hinge-set {
  display: none;
  margin-top: 18px;
  padding: 20px;
  background: linear-gradient(135deg, var(--cream), #f0ede5);
  border-radius: var(--rad);
  border: 1px solid var(--g2);
}

.hinge-set.act {
  display: block;
}

.hinge-set-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--g7);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hinge-set-title svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
}

.hinge-row {
  margin-bottom: 18px;
}

.hinge-row-lbl {
  font-size: 13px;
  font-weight: 600;
  color: var(--g6);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hinge-row-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--gd);
  background: var(--w);
  padding: 4px 12px;
  border-radius: 6px;
}

.hinge-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 8px;
  background: var(--g2);
  border-radius: 4px;
}

.hinge-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--g);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Thickness Options */
.thick-lbl {
  font-size: 13px;
  font-weight: 600;
  color: var(--g6);
  margin-bottom: 10px;
}

.thick-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.thick-opts.show-input {
  grid-template-columns: 1fr 1fr 1fr;
}

.thick-btn {
  padding: 14px 10px;
  border: 2px solid var(--g2);
  border-radius: 10px;
  background: var(--w);
  cursor: pointer;
  text-align: center;
  transition: all .2s;
  font-family: inherit;
}

.thick-btn:hover {
  border-color: var(--g3);
  transform: translateY(-2px);
}

.thick-btn.sel {
  border-color: var(--g);
  background: linear-gradient(135deg, rgba(31,92,74,0.05), rgba(31,92,74,0.1));
}

.thick-btn-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--g7);
}

.thick-btn-desc {
  font-size: 10px;
  color: var(--g4);
  margin-top: 2px;
}

/* Thickness Amount Input - styled as third button */
.thick-amt-btn {
  display: none;
  padding: 10px;
  background: var(--w);
  border-radius: 10px;
  border: 2px solid var(--g);
  text-align: center;
  background: linear-gradient(135deg, rgba(31,92,74,0.05), rgba(31,92,74,0.1));
}

.thick-amt-btn.act {
  display: block;
}

.thick-amt-input {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.thick-input-wrap {
  display: flex;
  align-items: center;
  background: var(--w);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--g3);
}

.thick-adj-btn {
  width: 28px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #c8d8d0;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: var(--g6);
  transition: background .15s;
  font-family: inherit;
  padding: 0;
  line-height: 1;
}

.thick-adj-btn:hover {
  background: #b8c8c0;
}

.thick-adj-btn:active {
  background: #a8b8b0;
}

.thick-amt-input input {
  width: 45px;
  padding: 6px 2px;
  border: none;
  font-size: 16px;
  font-weight: 700;
  color: var(--gd);
  text-align: center;
  background: var(--w);
  font-family: inherit;
  cursor: default;
  -moz-appearance: textfield;
}

.thick-amt-input input::-webkit-outer-spin-button,
.thick-amt-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.thick-amt-input input:focus {
  outline: none;
}

.thick-amt-input span {
  font-size: 16px;
  font-weight: 700;
  color: var(--gd);
}

.thick-amt-lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--g6);
  margin-bottom: 6px;
}

.thick-amt-hint {
  font-size: 10px;
  color: var(--g5);
  margin-top: 6px;
}

/* ============================================
   REVIEW/SUMMARY SECTION
   ============================================ */

.sum-card {
  background: var(--cream);
  border-radius: var(--rad);
  padding: 20px;
  margin-top: 20px;
  border: 1px solid var(--g2);
}

.sum-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  color: var(--gd);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--g2);
}

.sum-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sum-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sum-row-lbl {
  font-size: 14px;
  color: var(--g5);
}

.sum-row-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--g8);
}

.sum-row-price {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px solid var(--g2);
}

.sum-row-price .sum-row-lbl {
  font-size: 16px;
  font-weight: 600;
  color: var(--g7);
}

.sum-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--g);
}

/* Guarantee Box */
.guarantee-box {
  margin-top: 18px;
  padding: 18px;
  background: rgba(31,92,74,0.05);
  border-radius: 12px;
  border: 1px solid rgba(31,92,74,0.12);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.guarantee-box svg {
  width: 28px;
  height: 28px;
  stroke: var(--g);
  flex-shrink: 0;
  margin-top: 2px;
}

.guarantee-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--gd);
  margin-bottom: 4px;
}

.guarantee-text {
  font-size: 13px;
  color: var(--g5);
  line-height: 1.4;
}

/* ============================================
   FOOTER / NAVIGATION BUTTONS
   ============================================ */

.cfg-foot {
  min-height: 76px;
  background: var(--w);
  border-top: 1px solid var(--g2);
  padding: 16px 20px;
  flex-shrink: 0;
  box-sizing: border-box;
}

/* Action Buttons */
.act-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.act-btns .btn-next,
.act-btns .btn-cart {
  flex: 1;
}

.btn {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  font-family: inherit;
}

.btn svg {
  width: 14px;
  height: 14px;
}

.btn-back {
  background: var(--g2);
  color: var(--g6);
}

.btn-back:hover {
  background: var(--g3);
}

.btn-next {
  background: linear-gradient(135deg, var(--g), var(--gd)) !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 14px 20px;
  box-shadow: 0 4px 15px rgba(31,92,74,0.3);
}

.btn-next:hover {
  background: linear-gradient(135deg, var(--gd), #163318) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(31,92,74,0.4);
}

.btn-cart {
  background: linear-gradient(135deg, var(--gold), #f7e28a);
  color: var(--gd);
  grid-column: 1 / -1;
  font-size: 16px;
  font-weight: 800 !important;
  padding: 14px 20px;
}

.btn-cart:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(243,214,97,0.45);
}

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

@media(max-width: 900px) {
  .builder-main {
    grid-template-columns: 1fr;
  }
  
  .preview {
    min-height: auto;
    padding: 0;
  }
  
  .preview-summary {
    padding: 12px 16px;
  }
  
  .config {
    border-left: none;
    border-top: 1px solid var(--g2);
  }
  
  .dim-lbl.l {
    right: -55px;
  }
  
  /* Preview header compact on tablet */
  .preview-header {
    height: auto;
    min-height: 100px;
    padding: 0;
  }
  
  .preview-header-content {
    padding: 12px 16px;
  }
  
  .preview-header-top {
    height: 10px;
  }
  
  .preview-main {
    padding: 12px 16px;
  }
  
  /* Mattress selection stacks on tablet */
  .matt-opts {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .matt-detail {
    order: 1;
  }
  
  .matt-list {
    order: 2;
  }
}

/* ============================================
   MOBILE OPTIMIZATIONS (max-width: 600px)
   ============================================ */
@media(max-width: 600px) {
  /* === GENERAL LAYOUT === */
  .builder-wrap {
    padding: 0;
  }
  
  .builder-main {
    border-radius: 0;
    min-height: auto;
  }
  
  .step-cont {
    padding: 12px 16px;
  }
  
  /* === HEADER & PRICE === */
  .config-header {
    padding: 10px 16px;
    min-height: auto;
    height: auto;
  }
  
  /* Hide header on review step (step 5) on mobile */
  .builder-v2-wrapper.on-review .config-header {
    display: none;
  }
  
  /* Add white space at top of review step when header is hidden */
  .builder-v2-wrapper.on-review .step-cont {
    padding-top: 20px;
    background: var(--w);
  }
  
  .config-header h1 {
    font-size: 20px;
    margin-bottom: 2px;
  }
  
  .config-header p {
    font-size: 12px;
    margin-bottom: 0;
  }
  
  /* Darker config background on mobile */
  .config-main {
    background: #e8e5dd;
  }
  
  .preview-header {
    height: auto;
    padding: 0;
  }
  
  .preview-header-top {
    height: 8px;
  }
  
  .preview-header-content {
    padding: 12px 16px;
  }
  
  .preview-header .price-lbl {
    font-size: 11px;
  }
  
  .preview-header .price-orig {
    font-size: 13px;
  }
  
  .price-cur {
    font-size: 28px;
  }
  
  .preview-header .price-save {
    font-size: 11px;
    padding: 4px 10px;
  }
  
  /* === TRUST BADGE === */
  .prev-badge {
    font-size: 11px;
    padding: 6px 10px;
  }
  
  /* === STEP NAVIGATION === */
  .steps {
    padding: 12px 16px;
    gap: 2px;
    border-bottom: none;
    background: var(--w);
  }
  
  /* When steps is moved outside config on mobile */
  .steps.mobile-moved {
    border-top: 1px solid var(--g2);
    border-bottom: 1px solid var(--g2);
  }
  
  .step {
    padding: 6px 2px;
  }
  
  .step-num {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }
  
  /* === SECTION TITLES === */
  .sec-title {
    font-size: 18px;
    margin-bottom: 2px;
    text-align: center;
  }
  
  .sec-sub {
    font-size: 13px;
    margin-bottom: 12px;
    text-align: center;
  }
  
  .sec-header-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
  
  .sec-header-row .measure-help-btn {
    margin-top: 0;
  }
  
  /* Modal mobile adjustments */
  .measure-modal {
    padding: 50px 10px 10px !important;
    align-items: flex-start !important;
    justify-content: center !important;
    overflow-y: auto !important;
  }
  
  .help-modal-content {
    width: 95vw;
    padding: 20px 16px;
    max-height: 80vh;
  }
  
  .help-modal-content h3 {
    font-size: 18px;
  }
  
  .measure-modal-close {
    top: 10px;
    right: 10px;
  }
  
  /* Corner help buttons mobile */
  .corner-help-btns {
    flex-direction: column;
    gap: 10px;
  }
  
  .corner-help-btn {
    flex-direction: row;
    padding: 12px 16px;
    width: 100%;
    justify-content: flex-start;
  }
  
  .corner-help-btn svg {
    width: 40px;
    height: 40px;
  }
  
  /* Product Landing Modal Mobile */
  .product-landing-modal {
    padding: 0;
    backdrop-filter: none;
  }
  
  .product-landing-modal.active {
    display: block;
  }
  
  .pl-content {
    margin: 0;
    border-radius: 0;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    overflow-y: scroll;
  }
  
  .pl-close {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    z-index: 10001;
  }
  
  .pl-close svg {
    width: 18px;
    height: 18px;
  }
  
  .pl-hero {
    padding: 60px 20px 28px;
  }
  
  .pl-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  
  .pl-hero-text {
    order: 2;
  }
  
  .pl-hero-image {
    order: 1;
  }
  
  .pl-hero-badge {
    justify-content: center;
  }
  
  .pl-hero-title {
    font-size: 28px;
    line-height: 1.2;
  }
  
  .pl-hero-subtitle {
    font-size: 15px;
  }
  
  .pl-hero-desc {
    font-size: 14px;
  }
  
  .pl-hero-stats {
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .pl-hero-stat {
    min-width: 80px;
  }
  
  .pl-hero-stat-value {
    font-size: 22px;
  }
  
  .pl-hero-stat-label {
    font-size: 11px;
  }
  
  .pl-hero-image-wrap {
    max-width: 280px;
    margin: 0 auto;
  }
  
  .pl-hero-thumbs {
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
  }
  
  .pl-hero-thumb {
    width: 50px;
    height: 50px;
    padding: 4px;
  }
  
  /* Trust badges mobile */
  .pl-trust {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 20px 16px;
  }
  
  .pl-trust-item {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding: 12px 8px;
  }
  
  .pl-trust-icon {
    width: 36px;
    height: 36px;
  }
  
  .pl-trust-icon svg {
    width: 16px;
    height: 16px;
  }
  
  .pl-trust-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  
  .pl-trust-text strong {
    font-size: 11px;
  }
  
  .pl-trust-text span {
    font-size: 9px;
  }
  
  /* Features section mobile */
  .pl-features {
    padding: 32px 16px;
  }
  
  .pl-section-header {
    margin-bottom: 20px;
  }
  
  .pl-eyebrow {
    font-size: 10px;
    gap: 10px;
  }
  
  .pl-eyebrow::before,
  .pl-eyebrow::after {
    width: 20px;
  }
  
  .pl-section-header h2 {
    font-size: 22px;
  }
  
  .pl-features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .pl-feature-item {
    padding: 16px;
    gap: 14px;
  }
  
  .pl-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }
  
  .pl-feature-icon svg {
    width: 20px;
    height: 20px;
  }
  
  .pl-feature-content h4 {
    font-size: 14px;
    margin-bottom: 4px;
  }
  
  .pl-feature-content p {
    font-size: 12px;
    line-height: 1.5;
  }
  
  /* Layers section mobile */
  .pl-layers {
    padding: 32px 16px;
  }
  
  .pl-layers-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .pl-layers-stack {
    order: 1;
  }
  
  .pl-layers-details {
    order: 2;
    padding: 20px;
  }
  
  .pl-layers-details h3 {
    font-size: 18px;
    margin-bottom: 12px;
  }
  
  .pl-layer-item {
    padding: 12px 14px;
    gap: 12px;
  }
  
  .pl-layer-depth {
    width: 34px;
    height: 34px;
    font-size: 10px;
    border-radius: 8px;
  }
  
  /* Testimonial section mobile */
  .pl-testimonial {
    padding: 32px 16px;
  }
  
  .pl-testimonial-card {
    padding: 20px;
  }
  
  .pl-testimonial-stars svg {
    width: 16px;
    height: 16px;
  }
  
  .pl-testimonial-text {
    font-size: 14px;
    line-height: 1.6;
  }
  
  .pl-testimonial-author {
    gap: 10px;
  }
  
  .pl-testimonial-avatar {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }
  
  .pl-testimonial-name {
    font-size: 13px;
  }
  
  .pl-testimonial-location {
    font-size: 11px;
  }
  
  .pl-testimonial-dots {
    gap: 6px;
  }
  
  .pl-testimonial-dot {
    width: 6px;
    height: 6px;
  }
  
  /* CTA section mobile */
  .pl-cta {
    padding: 28px 16px 80px;
  }
  
  .pl-cta h3 {
    font-size: 20px;
    margin-bottom: 4px;
  }
  
  .pl-cta p {
    font-size: 13px;
    margin-bottom: 16px;
  }
  
  .pl-cta-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 14px;
  }
  
  .matt-read-more {
    margin-left: auto;
  }

  /* === TRUST BADGE (config header) === */
  .config-header {
    text-align: center;
  }
  
  .config-header .prev-badge {
    margin: 0 auto 8px auto;
  }
  
  /* === MATTRESS SELECTION === */
  .matt-opts {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .matt-detail {
    padding: 16px;
    order: 1;
    text-align: center;
  }
  
  .matt-detail-badge {
    margin: 0 auto 8px auto;
  }
  
  .matt-detail-tags {
    justify-content: center;
  }
  
  .matt-list {
    order: 2;
  }
  
  .matt-detail-img {
    height: 120px;
    margin-bottom: 16px;
  }
  
  .matt-detail-name {
    font-size: 20px;
  }
  
  .matt-detail-desc {
    font-size: 13px;
  }
  
  .matt-list {
    gap: 8px;
  }
  
  .matt-card {
    padding: 12px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  
  .matt-card img {
    width: 60px;
    height: 50px;
  }
  
  .matt-card-name {
    font-size: 15px;
  }
  
  .matt-tag {
    font-size: 10px;
    padding: 3px 8px;
  }
  
  /* === SIZE/DIMENSIONS === */
  .dim-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  
  .dim-input-wrap {
    border-radius: 6px;
  }
  
  .dim-adj-btn {
    width: 32px;
    height: 38px;
    font-size: 16px;
  }
  
  .dim-input-wrap input {
    font-size: 16px;
    padding: 6px 2px;
  }
  
  /* Quick size buttons - show only 4 on mobile */
  .quick-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  
  .quick-grid .quick-btn:nth-child(n+5) {
    display: none;
  }
  
  .quick-btn {
    padding: 12px 8px;
    font-size: 13px;
  }
  
  /* Corner 2x2 grid - keep 2 columns on mobile, just more compact */
  .corn-grid-4 {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  
  .corn-editor {
    padding: 10px;
  }
  
  .corn-editor-title {
    font-size: 11px;
    margin-bottom: 8px;
    text-align: center;
  }
  
  .corn-editor-styles {
    gap: 4px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .corn-style-btn {
    padding: 8px 4px;
    min-height: 52px;
    flex: 0 0 calc(50% - 2px);
    max-width: calc(50% - 2px);
  }
  
  .corn-style-btn svg {
    width: 22px;
    height: 22px;
  }
  
  .corn-style-btn span {
    font-size: 8px;
  }
  
  .corn-editor-dims {
    gap: 8px;
    min-height: 36px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .corn-dim {
    padding: 4px;
  }
  
  .corn-dim label {
    font-size: 11px;
    margin-right: 4px;
  }
  
  .corn-dim-btn {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
  
  .corn-dim input {
    width: 32px;
    font-size: 14px;
    padding: 4px 0;
  }
  
  .corn-dim span {
    font-size: 12px;
    margin-left: 2px;
  }
  
  /* === HINGE OPTIONS === */
  .hinge-btn-row {
    flex-direction: row;
    gap: 6px;
  }
  
  .hinge-btn {
    padding: 10px 6px;
    font-size: 11px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex: 1;
  }
  
  .hinge-btn svg {
    width: 20px;
    height: 20px;
  }
  
  .hinge-set {
    padding: 16px;
    margin-top: 16px;
  }
  
  .hinge-set-title {
    font-size: 16px;
    margin-bottom: 16px;
  }
  
  .hinge-row {
    margin-bottom: 20px;
  }
  
  .hinge-row-lbl {
    font-size: 14px;
    margin-bottom: 12px;
  }
  
  .hinge-row-val {
    font-size: 16px;
    padding: 6px 14px;
  }
  
  .hinge-slider {
    height: 12px;
  }
  
  .hinge-slider::-webkit-slider-thumb {
    width: 32px;
    height: 32px;
  }
  
  /* Thickness options */
  .thick-lbl {
    font-size: 13px;
    margin-bottom: 10px;
  }
  
  .thick-opts {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  
  .thick-opts.show-input {
    grid-template-columns: 1fr 1fr;
  }
  
  .thick-btn {
    padding: 10px 8px;
    text-align: center;
  }
  
  .thick-btn-name {
    font-size: 13px;
  }
  
  .thick-btn-desc {
    font-size: 10px;
  }
  
  .thick-amt-btn {
    padding: 12px;
    margin-top: 8px;
    grid-column: 1 / -1;
  }
  
  .thick-amt-lbl {
    font-size: 12px;
    margin-bottom: 8px;
  }
  
  .thick-adj-btn {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }
  
  .thick-amt-input input {
    width: 44px;
    font-size: 18px;
    padding: 6px 4px;
  }
  
  .thick-amt-input span {
    font-size: 16px;
  }
  
  .thick-amt-hint {
    font-size: 11px;
    margin-top: 8px;
  }
  
  /* === PREVIEW AREA === */
  .preview-main {
    padding: 12px 16px;
  }
  
  .prev-section-label {
    font-size: 10px;
    margin-bottom: 8px;
  }
  
  .top-cont {
    max-width: 100%;
    padding: 5px 40px 25px 5px;
  }
  
  .dim-lbl {
    font-size: 12px;
    padding: 4px 10px;
  }
  
  .dim-lbl.l {
    right: -45px;
  }
  
  .side-cont {
    max-width: 100%;
  }
  
  /* === SUMMARY/REVIEW === */
  .preview-summary {
    padding: 12px 16px;
    min-height: auto;
  }
  
  .summary-grid {
    gap: 8px;
  }
  
  .sum-item-label {
    font-size: 9px;
  }
  
  .sum-item-value {
    font-size: 13px;
  }
  
  .sum-card {
    padding: 12px;
  }
  
  .sum-title {
    font-size: 16px;
    margin-bottom: 10px;
    padding-bottom: 8px;
  }
  
  .sum-card-title {
    font-size: 16px;
  }
  
  .sum-rows {
    gap: 2px;
  }
  
  .sum-row {
    padding: 3px 0;
  }
  
  .sum-row-lbl {
    font-size: 13px;
  }
  
  .sum-row-val {
    font-size: 13px;
  }
  
  .sum-row-price {
    margin-top: 6px;
    padding-top: 6px;
  }
  
  .guarantee-box {
    margin-top: 12px;
    padding: 12px;
    gap: 10px;
  }
  
  .guarantee-box svg {
    width: 24px;
    height: 24px;
  }
  
  .guarantee-title {
    font-size: 14px;
    margin-bottom: 2px;
  }
  
  .guarantee-text {
    font-size: 12px;
  }
  
  /* === NAVIGATION BUTTONS === */
  .cfg-foot {
    padding: 12px 16px;
  }
  
  .act-btns {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .btn-back {
    order: 2;
    padding: 14px 20px;
    font-size: 15px;
  }
  
  .btn-cont {
    order: 1;
    padding: 16px 24px;
    font-size: 16px;
  }
  
  .btn-cart {
    padding: 18px 24px;
    font-size: 18px;
    font-weight: 800 !important;
  }
  
  .cart-price-text {
    display: none;
  }

  /* === REVIEW STEP SPECIFIC === */
  .sum-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .sum-actions .btn-cart {
    width: 100%;
  }
  
  /* === ADDITIONAL MOBILE CENTERING === */
  .corn-editor-styles {
    justify-content: center;
  }
  
  .corn-editor-dims {
    justify-content: center;
  }
  
  .thick-opts {
    justify-content: center;
  }
  
  .hinge-btn-row {
    align-items: center;
  }
  
  /* Ensure preview SVGs are centered */
  .top-cont,
  .side-cont {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .top-cont .matt-svg,
  .side-cont .matt-svg {
    max-width: 100%;
  }
  
  /* Make slider thumb easier to grab on mobile */
  .hinge-slider {
    height: 10px;
  }
  
  .hinge-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 36px;
    height: 36px;
  }
  
  .hinge-slider::-moz-range-thumb {
    width: 36px;
    height: 36px;
  }
  
  /* Price box centering */
  .preview-header {
    text-align: center;
  }
  
  .preview-header .price-save {
    margin: 8px auto 0;
  }
  
  /* Better touch targets for mattress cards */
  .matt-card {
    min-height: 70px;
  }
  
  /* Comfort options touch friendly */
  .comf-btn {
    min-height: 52px;
  }
}

/* ============================================
   EXTRA SMALL SCREENS (max-width: 380px)
   ============================================ */
@media(max-width: 380px) {
  .step-cont {
    padding: 12px;
  }
  
  .sec-title {
    font-size: 16px;
  }
  
  .sec-sub {
    font-size: 12px;
  }
  
  .matt-detail-name {
    font-size: 18px;
  }
  
  .matt-detail-desc {
    font-size: 12px;
  }
  
  .dim-adj-btn {
    width: 32px;
    height: 44px;
    font-size: 18px;
  }
  
  .dim-input-wrap input {
    font-size: 16px;
  }
  
  .quick-grid {
    grid-template-columns: 1fr;
  }
  
  .quick-btn {
    padding: 14px 10px;
  }
  
  .corn-grid-4 {
    gap: 10px;
  }
  
  .corn-style-btn {
    padding: 8px 4px;
    min-height: 55px;
  }
  
  .corn-style-btn svg {
    width: 24px;
    height: 24px;
  }
  
  .corn-style-btn span {
    font-size: 9px;
  }
  
  .corn-dim-btn {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
  
  .corn-dim input {
    width: 36px;
    font-size: 14px;
  }
  
  .price-cur {
    font-size: 24px;
  }
  
  .price-orig {
    font-size: 12px;
  }
  
  .hinge-btn {
    padding: 14px 10px;
    font-size: 14px;
  }
  
  .hinge-slider::-webkit-slider-thumb {
    width: 28px;
    height: 28px;
  }
  
  .thick-btn {
    padding: 14px 10px;
  }
  
  .thick-btn-name {
    font-size: 14px;
  }
  
  .thick-adj-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .btn-back {
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .btn-cont {
    padding: 14px 20px;
    font-size: 15px;
  }
  
  .btn-cart {
    padding: 16px 20px;
    font-size: 16px;
  }
  
  /* Summary stats wrap better */
  .summary-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .sum-item-value {
    font-size: 12px;
  }
  
  /* Product Landing Modal extra small */
  .pl-hero {
    padding: 55px 14px 24px;
  }
  
  .pl-hero-title {
    font-size: 24px;
  }
  
  .pl-hero-subtitle {
    font-size: 14px;
  }
  
  .pl-hero-stats {
    gap: 16px;
  }
  
  .pl-hero-stat-value {
    font-size: 20px;
  }
  
  .pl-trust {
    padding: 16px 12px;
    gap: 10px;
  }
  
  .pl-trust-item {
    padding: 10px 6px;
  }
  
  .pl-trust-icon {
    width: 32px;
    height: 32px;
  }
  
  .pl-trust-text strong {
    font-size: 10px;
  }
  
  .pl-trust-text span {
    display: none;
  }
  
  .pl-features,
  .pl-layers,
  .pl-testimonial {
    padding: 24px 12px;
  }
  
  .pl-section-header h2 {
    font-size: 20px;
  }
  
  .pl-feature-item {
    padding: 14px 12px;
  }
  
  .pl-feature-icon {
    width: 36px;
    height: 36px;
  }
  
  .pl-feature-content h4 {
    font-size: 13px;
  }
  
  .pl-feature-content p {
    font-size: 11px;
  }
  
  .pl-layers-details {
    padding: 16px;
  }
  
  .pl-layers-details h3 {
    font-size: 16px;
  }
  
  .pl-layer-item {
    padding: 10px 12px;
  }
  
  .pl-layer-depth {
    width: 30px;
    height: 30px;
    font-size: 9px;
  }
  
  .pl-testimonial-text {
    font-size: 13px;
  }
  
  .pl-cta {
    padding: 24px 12px;
  }
  
  .pl-cta h3 {
    font-size: 18px;
  }
}

/* ============================================
   SMALLER PHONES (max-width: 420px) - iPhone 14 Pro, etc.
   ============================================ */
@media(max-width: 420px) {
  /* Prevent overflow */
  .builder-main,
  .config,
  .preview,
  .step-cont {
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .step-cont {
    padding: 12px;
  }
  
  /* Dimension inputs more compact */
  .dim-row {
    gap: 6px;
  }
  
  .dim-adj-btn {
    width: 30px;
    height: 40px;
    font-size: 16px;
  }
  
  .dim-input-wrap input {
    font-size: 15px;
    padding: 6px 2px;
  }
  
  /* Quick sizes single column */
  .quick-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  
  .quick-btn {
    padding: 10px 6px;
    font-size: 11px;
  }
  
  /* Corner editors more compact */
  .corn-grid-4 {
    gap: 6px;
  }
  
  .corn-editor {
    padding: 8px;
  }
  
  .corn-editor-title {
    font-size: 10px;
  }
  
  .corn-style-btn {
    padding: 6px 3px;
    min-height: 48px;
  }
  
  .corn-style-btn svg {
    width: 20px;
    height: 20px;
  }
  
  .corn-style-btn span {
    font-size: 8px;
  }
  
  .corn-dim-btn {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
  
  .corn-dim input {
    width: 30px;
    font-size: 13px;
  }
  
  .corn-dim label {
    font-size: 10px;
  }
  
  /* Hinge buttons smaller */
  .hinge-btn {
    padding: 8px 4px;
    font-size: 10px;
  }
  
  .hinge-btn svg {
    width: 18px;
    height: 18px;
  }
  
  /* Thickness options */
  .thick-btn {
    padding: 8px 6px;
  }
  
  .thick-btn-name {
    font-size: 12px;
  }
  
  .thick-btn-desc {
    font-size: 9px;
  }
  
  .thick-adj-btn {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }
  
  .thick-amt-input input {
    width: 40px;
    font-size: 16px;
  }
  
  /* Price header */
  .price-cur {
    font-size: 26px;
  }
  
  .preview-header .price-save {
    font-size: 10px;
    padding: 3px 8px;
  }
  
  /* Buttons */
  .btn-cont,
  .btn-back {
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .btn-cart {
    padding: 14px 18px;
    font-size: 15px;
  }
}
}