/* ========================================================
   KODA Product Detail Page Styles (Frameless Architectural Editorial)
   Shared product layout, using the site's existing colors and typography.
   ======================================================== */

.product-detail {
  max-width: 1280px;
  margin: auto;
  padding: 24px 32px 80px;
}

/* --- Breadcrumbs & Top Catalog Pager --- */
.product-back-link { display: none; }
.product-top-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 28px;
}
.product-top-nav .breadcrumbs {
  margin-bottom: 0;
}
.product-pager {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.product-pager-btn {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid #DDD4C8;
  border-radius: 8px;
  background: transparent;
  color: #443E3A;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 150ms ease, color 150ms ease;
}
.product-pager-btn:hover {
  border-color: #1F1B18;
  color: #1F1B18;
}
.product-pager-pos {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  font-weight: 600;
  color: #78716C;
  padding-inline: 4px;
}
@media (max-width: 639px) {
  .product-detail > .breadcrumbs,
  .product-top-nav .breadcrumbs { display: none; }
  .product-top-nav {
    margin-bottom: 18px;
  }
  .product-pager {
    width: 100%;
    justify-content: space-between;
  }
  .product-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin-bottom: 14px;
    padding: 0 12px;
    border: 1px solid #DDD4C8;
    border-radius: 8px;
    color: #292421;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
  }
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #78716C;
  margin-bottom: 32px;
  align-items: center;
}
.breadcrumbs a {
  color: #78716C;
  text-decoration: none;
  transition: color 0.15s ease;
}
.breadcrumbs a:hover,
.detail-link:hover,
.bridge-link:hover {
  color: #1D1917;
  text-decoration: underline;
}

/* --- First Fold Hero Overview (Frameless Split) --- */
.product-overview {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Gallery & Thumbnails */
.gallery-container {
  position: sticky;
  top: 96px;
}
.gallery-stage {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #EEE9E2;
  aspect-ratio: 4 / 3;
}
.gallery-stage > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}
.gallery-dimension-view {
  display: none;
  position: absolute;
  inset: 0;
  align-content: center;
  padding: 4px 10px;
  background: #fbf8f3;
}
.gallery-stage:has(+ .gallery-thumbnails [data-gallery-diagram][aria-pressed="true"]) > img { display: none; }
.gallery-stage:has(+ .gallery-thumbnails [data-gallery-diagram][aria-pressed="true"]) > .gallery-dimension-view { display: grid; }
.gallery-dimension-view .dimension-values { margin-top: 0; }
.gallery-dimension-view figcaption {
  margin-top: 6px;
  color: #635c56;
  font-size: 11px;
  text-align: center;
}
.thumbnail-btn[data-gallery-diagram] img { object-fit: contain; background: #fbf8f3; }
.gallery-count {
  display: none !important;
}

.gallery-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.thumbnail-btn {
  width: 72px;
  height: 54px;
  padding: 2px;
  background: transparent;
  border: 1.5px solid #EAE5DC;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumbnail-btn img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  background: #EEE9E2;
  display: block;
}
.thumbnail-btn:hover {
  border-color: #A3704C;
}
.thumbnail-btn[aria-pressed="true"],
.thumbnail-btn[aria-selected="true"] {
  border-color: #1D1917;
}

/* --- Product Summary (Right Side: Frameless, Content-First) --- */
.product-summary {
  display: flex;
  flex-direction: column;
}
.product-header-badges {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}
.product-model-badge {
  font-family: monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #A3704C;
  background: transparent;
  padding: 0;
}
.product-cat-badge {
  font-size: 11px;
  font-weight: 600;
  color: #A8A29E;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.product-summary h1 {
  font-size: clamp(28px, 2.8vw, 36px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: #1D1917;
  margin: 4px 0 12px;
}
.product-tagline {
  font-size: 14px;
  color: #57534E;
  line-height: 1.65;
  margin-bottom: 24px;
}

/* Compact Specification Table (Architectural Hairline, Zero Box / Zero Shadow) */
.specs-compact-panel {
  background: transparent;
  border: none;
  border-top: 1px solid #1D1917;
  border-bottom: 1px solid #EAE5DC;
  border-radius: 0;
  padding: 14px 0 16px;
  margin-bottom: 18px;
  box-shadow: none;
}
.specs-compact-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: none;
  padding-bottom: 8px;
  margin-bottom: 4px;
}
.specs-compact-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #1D1917;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.specs-compact-subtext {
  font-size: 11px;
  color: #A8A29E;
}
.trade-specs-compact {
  width: 100%;
  font-size: 12.5px;
  line-height: 1.5;
  border-collapse: collapse;
}
.mattress-specs th[scope="col"] { width: 28%; color: #1D1917; font-weight: 600; border-bottom: 1px solid #EAE5DC; }
.mattress-specs th[scope="col"]:first-child { width: 44%; }
.trade-specs-compact th,
.trade-specs-compact td {
  text-align: left;
  vertical-align: top;
  padding: 8px 0;
  border-bottom: 1px solid #EAE5DC;
}
.trade-specs-compact tr:last-child th,
.trade-specs-compact tr:last-child td {
  border-bottom: none;
}
.trade-specs-compact th {
  width: 44%;
  font-weight: 500;
  color: #78716C;
  padding-right: 12px;
}
.trade-specs-compact td {
  font-weight: 600;
  color: #1D1917;
}

/* Concise B2B Procurement Summary Note (Zero Dashed Box / Editorial Footnote) */
.b2b-order-note {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #78716C;
  line-height: 1.55;
}
.b2b-order-note > div {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.b2b-order-note strong {
  color: #1D1917;
  font-weight: 600;
  flex-shrink: 0;
}

/* Action CTAs */
.product-cta-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-moq-note { display: block; margin-top: 3px; font-weight: 400; }
.product-buying-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  padding: 14px 16px;
  border: 1px solid #DDD4C8;
  border-radius: 12px;
  background: #faf8f5;
}
.product-buying-summary dt,
.product-cta-bar > .product-moq-note { color: #635c56; font-size: 12px; }
.product-buying-summary dd { color: #292421; font-size: 14px; font-weight: 600; }
.product-sample-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #865a3d;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.product-buying-option { display: block; }
body:has(.product-overview--trade) .whatsapp-floating-widget:not([data-positioned]) {
  bottom: max(16px, env(safe-area-inset-bottom));
  transform: none;
}
.product-cta-bar--in-summary {
  order: 4;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.product-cta-bar--in-summary .product-moq-note { grid-column: 1 / -1; }
.product-cta-bar--in-summary a { padding-inline: 8px; text-align: center; }
.product-secondary-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.product-secondary-actions .rfq-toggle-btn,
.product-secondary-actions .spec-print-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #d6cec5;
  border-radius: 8px;
  background: #ffffff;
  color: #443e3a;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.product-secondary-actions .rfq-toggle-btn:hover,
.product-secondary-actions .spec-print-btn:hover {
  border-color: #8c5c39;
  background: #faf8f5;
  color: #1d1917;
}
.product-secondary-actions .rfq-toggle-btn.is-added {
  border-color: #1f1b18;
  background: #f2ede6;
  color: #1f1b18;
}
@media print {
  .desktop-utility,
  .site-header,
  .site-footer,
  .whatsapp-floating-widget,
  .rfq-floating-bar,
  .rfq-drawer-backdrop,
  .product-back-link,
  .product-pager,
  .breadcrumbs,
  .gallery-thumbnails,
  .product-cta-bar,
  .product-trade-jump,
  .related-section,
  .related-card-footer,
  .product-unpacking,
  .detail-link {
    display: none !important;
  }
  body { background: #fff !important; color: #111 !important; }
  .product-detail { max-width: 100% !important; padding: 0 !important; }
  .product-overview { grid-template-columns: 1fr 1fr !important; gap: 24px !important; }
  .product-trade-details { grid-template-columns: 1fr 1fr !important; gap: 20px !important; break-inside: avoid; }
  .editorial-section { break-inside: avoid; }
}
.product-overview--trade .product-trade-jump {
  order: 5;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
}
@media (min-width: 721px) {
  .product-overview--trade .product-summary { align-self: center; }
  .product-overview--trade .product-summary h1 { font-size: clamp(32px, 3.2vw, 46px); }
}
.inquiry-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #1D1917;
  color: white;
  border-radius: 8px;
  padding: 14px 24px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.inquiry-link:hover {
  background: #38332E;
  color: white;
}
.whatsapp-quick-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: #1D1917;
  border: 1px solid #1D1917;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}
.whatsapp-quick-link:hover {
  background: #1D1917;
  color: white;
}
.whatsapp-quick-link:hover svg {
  color: white;
}

/* --- Below Fold Details Layout (Frameless Architectural Flow) --- */
.details-layout {
  margin-top: 72px;
}
.product-trade-details {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding-top: 24px;
  margin-bottom: 32px;
  border-top: 1px solid #eae5dc;
}
.product-trade-details > .specs-compact-panel { border: 0; padding: 0; margin: 0; }
.product-trade-details .specs-compact-title { font-size: 18px; text-transform: none; letter-spacing: 0; }
.product-trade-details .b2b-order-note { margin: 12px 0 0; }
#packing-delivery-heading {
  scroll-margin-top: calc(var(--product-header-height, 119px) + 16px);
}
#product-detail-sections {
  scroll-margin-top: 100px;
}
.detail-heading {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #1D1917;
  margin-bottom: 28px;
}

/* Features Section (3-Column Hairline Editorial Split, Zero Cards) */
.features-section {
  border-top: 1px solid #1D1917;
  padding-top: 48px;
  margin-bottom: 64px;
}
.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  margin-bottom: 48px;
}
.feature-card {
  background: transparent;
  border: none;
  border-top: 1px solid #EAE5DC;
  border-radius: 0;
  padding: 20px 0 0;
  display: flex;
  flex-direction: column;
}
.feature-card-num {
  font-family: monospace;
  font-size: 12px;
  font-weight: 700;
  color: #A3704C;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.feature-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #1D1917;
  line-height: 1.35;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 13px;
  color: #78716C;
  line-height: 1.65;
}

/* Customization & OEM Bridge Bar (Open Hairline Split, Zero Floating Card) */
.customization-bridge-bar {
  background: transparent;
  border: none;
  border-top: 1px solid #EAE5DC;
  border-bottom: 1px solid #EAE5DC;
  border-radius: 0;
  padding: 24px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.bridge-text {
  max-width: 660px;
}
.bridge-text h4 {
  font-size: 14px;
  font-weight: 700;
  color: #1D1917;
  margin-bottom: 6px;
}
.bridge-text p {
  font-size: 13px;
  color: #78716C;
  line-height: 1.6;
  margin: 0;
}
.bridge-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.bridge-btn {
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 600;
  color: #1D1917;
  background: transparent;
  border: 1px solid #1D1917;
  border-radius: 6px;
  padding: 9px 16px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.bridge-btn:hover {
  background: #1D1917;
  color: white;
}

/* --- Order & Container Volume Guidance Ledger --- */
.product-order-tiers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 32px;
  border-top: 1px solid #1F1B18;
  border-bottom: 1px solid #DDD4C8;
}
.product-tier-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px 20px;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.product-tier-card + .product-tier-card {
  border-left: 1px solid #EAE5DC;
}
.product-tier-step {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8C5C39;
}
.product-tier-card strong {
  font-size: 17px;
  font-weight: 600;
  color: #1F1B18;
  font-variant-numeric: tabular-nums;
}
.product-tier-card span:not(.product-tier-step),
.product-tier-card a {
  font-size: 12px;
  line-height: 1.45;
  color: #635C56;
}
.product-tier-card a {
  color: #8C5C39;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.product-tier-card a:hover {
  color: #1F1B18;
}
.product-fabric-catalog-note {
  margin-bottom: 18px;
  padding: 12px 16px;
  border: 1px solid #DDD4C8;
  border-radius: 12px;
  background: #FAF8F5;
  font-size: 13.5px;
  line-height: 1.65;
  color: #443E3A;
}
.product-fabric-catalog-note strong {
  color: #1F1B18;
}
@media (max-width: 960px) {
  .product-order-tiers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-tier-card:nth-child(3) {
    border-left: 0;
  }
  .product-tier-card:nth-child(n+3) {
    border-top: 1px solid #EAE5DC;
  }
}
@media (max-width: 540px) {
  .product-order-tiers {
    grid-template-columns: 1fr;
  }
  .product-tier-card {
    padding: 14px 0;
  }
  .product-tier-card + .product-tier-card {
    border-left: 0;
    border-top: 1px solid #EAE5DC;
  }
}

/* Related / More Products (Frameless Architectural Gallery) */
.related-section {
  border-top: 1px solid #1D1917;
  padding-top: 48px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.related-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: 0;
}
.related-card-link {
  display: block;
  flex: 1;
  text-decoration: none;
}
.related-card .product-card-image {
  overflow: hidden;
  border-radius: 10px;
}
.related-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #EEE9E2;
}
.related-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 14px 0 6px;
}
.related-card .product-model {
  display: inline-block;
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  color: #8C5C39;
  margin: 0;
  letter-spacing: 0.05em;
}
.related-load-pill {
  font-size: 11px;
  font-weight: 500;
  color: #78716C;
  background: transparent;
  padding: 0;
}
.related-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: #1D1917;
  margin: 0 0 6px;
}
.related-card .related-meta {
  font-size: 12px;
  color: #78716C;
  margin: 0;
}
.related-card-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #EAE5DC;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.related-card-footer .home-product-spec-link {
  font-size: 12px;
  font-weight: 600;
  color: #1D1917;
  text-decoration: none;
}
.related-card-footer .home-product-spec-link:hover {
  color: #8C5C39;
}

/* Accessibility Focus States */
.product-detail button:focus-visible,
.product-detail a:focus-visible {
  outline: 2px solid #1D1917;
  outline-offset: 3px;
}

/* Responsive Media Queries */
@media (max-width: 960px) {
  .product-overview {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .product-trade-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
  .feature-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 720px) {
  .product-detail {
    padding: 20px 16px 56px;
  }
  .product-overview.product-overview--trade { gap: 16px; }
  .product-overview--trade .product-tagline { margin-bottom: 14px; }
  .product-overview--trade .product-summary > .product-buying-summary {
    margin-bottom: 8px;
    padding-block: 10px;
    row-gap: 8px;
  }
  body:has(.product-overview--trade) .whatsapp-float-btn {
    width: 44px;
    height: 44px;
  }
  body:has(.product-overview--trade) .whatsapp-icon { width: 28px; height: 28px; }
  .whatsapp-floating-widget[data-inline-chat-visible] { visibility: hidden; }
  .product-trade-details {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-bottom: 24px;
  }
  .product-overview {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .gallery-container {
    position: static;
  }
  .related-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .customization-bridge-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* --- Rich Editorial Sections (Frameless Architectural Flow) --- */
.editorial-section {
  border-top: 1px solid #1D1917;
  padding-top: 48px;
  margin-top: 64px;
}
.editorial-eyebrow {
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  color: #A3704C;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.editorial-title {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #1D1917;
  line-height: 1.25;
  margin-bottom: 12px;
}
.editorial-intro {
  font-size: 14px;
  color: #78716C;
  line-height: 1.65;
  max-width: 680px;
  margin-bottom: 36px;
}

/* Section: Anatomy & Foam Engineering (2-Column Asymmetric) */
.anatomy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.anatomy-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: #EEE9E2;
}
.anatomy-layers {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.anatomy-layer-item {
  border-top: 1px solid #EAE5DC;
  padding-top: 14px;
}
.anatomy-layer-item h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: #1D1917;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.anatomy-layer-tag {
  font-family: monospace;
  font-size: 11px;
  color: #A3704C;
  font-weight: 600;
}
.anatomy-layer-item p {
  font-size: 13px;
  color: #78716C;
  line-height: 1.6;
  margin: 0;
}

/* Section: Unboxing & 72-Hour Timeline (3-Stage Flow) */
.unboxing-timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.timeline-card {
  border-top: 1px solid #EAE5DC;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
}
.timeline-time {
  font-family: monospace;
  font-size: 13px;
  font-weight: 800;
  color: #A3704C;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.timeline-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: #1D1917;
  margin-bottom: 8px;
}
.timeline-card p {
  font-size: 13px;
  color: #78716C;
  line-height: 1.65;
  margin: 0;
}

/* Section: Curated Fabric Swatches (4-Column) */
.fabrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.fabric-item {
  display: flex;
  flex-direction: column;
}
.fabric-swatch-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  background: #EEE9E2;
  border: 1px solid #EAE5DC;
  margin-bottom: 12px;
}
.fabric-item h4 {
  font-size: 14px;
  font-weight: 700;
  color: #1D1917;
  margin-bottom: 4px;
}
.fabric-specs {
  font-size: 12px;
  color: #78716C;
  line-height: 1.5;
  margin: 0;
}

/* Section: B2B Freight Economics (4-Stat Metric Row) */
.economics-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  border-top: 1px solid #EAE5DC;
  border-bottom: 1px solid #EAE5DC;
  padding: 28px 0;
  margin-bottom: 32px;
}
.metric-item {
  display: flex;
  flex-direction: column;
}
.metric-value {
  font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 800;
  color: #1D1917;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 6px;
}
.metric-label {
  font-size: 13px;
  font-weight: 700;
  color: #443E3A;
  margin-bottom: 4px;
}
.metric-desc {
  font-size: 12px;
  color: #78716C;
  line-height: 1.5;
  margin: 0;
}

/* Section: Technical Buyer FAQ (2-Column Hairline List) */
.faq-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.faq-item {
  border-top: 1px solid #EAE5DC;
  padding-top: 16px;
}
.faq-item h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: #1D1917;
  line-height: 1.4;
  margin-bottom: 8px;
}
.faq-item p {
  font-size: 13px;
  color: #78716C;
  line-height: 1.65;
  margin: 0;
}

/* Responsive */
@media (max-width: 960px) {
  .anatomy-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .unboxing-timeline-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .fabrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .economics-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .faq-two-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
@media (max-width: 640px) {
  .fabrics-grid {
    grid-template-columns: 1fr;
  }
  .economics-metrics-grid {
    grid-template-columns: 1fr;
  }
}

/* Product-specific details, keeping the existing frameless layout. */
.gallery-container { top: calc(var(--product-header-height, 119px) + 16px); }
.gallery-caption { display: none; }
.mattress-gallery .gallery-caption { display: block; margin-top: 8px; font-size: 12px; color: #635c56; }
.mattress-gallery:has([data-original-photo][aria-pressed="true"]) .gallery-stage > img { object-fit: contain; }
.gallery-status { font-size: 12px; color: #635c56; line-height: 1.6; margin-top: 8px; }
.gallery-status:empty { display: none; }
.product-model-badge { color: #865a3d; }
.product-cat-badge, .specs-compact-subtext { color: #6b625a; }
.product-summary > .product-header-badges { order: 0; }
.product-summary > h1 { order: 1; }
.product-summary > .product-tagline { order: 2; }
.product-summary > .specs-compact-panel { order: 3; }
.product-summary > .b2b-order-note { order: 4; display: block; }
.product-summary > .product-buying-summary { order: 3; margin-bottom: 16px; }
.detail-story { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 48px; border-top: 1px solid #eae5dc; }
.detail-story figure { min-width: 0; }
.detail-story--text { grid-template-columns: minmax(0, 1fr); }
.detail-story figure > img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.detail-story figcaption, .product-size-section figcaption { margin-top: 10px; font-size: 12px; color: #635c56; line-height: 1.7; }
.detail-story .editorial-title { margin-bottom: 16px; }
.detail-story-intro { font-size: 15px; color: #57534e; line-height: 1.8; }
.detail-points { margin-top: 24px; }
.detail-points > div { border-top: 1px solid #eae5dc; padding-top: 16px; margin-top: 16px; }
.detail-points dt { font-weight: 600; font-size: 14px; }
.detail-points dd { margin-top: 6px; font-size: 14px; line-height: 1.8; color: #635c56; }
.product-detail .editorial-section { border-top: 1px solid #eae5dc; padding-top: 40px; margin-top: 48px; margin-bottom: 0; }
.product-closeup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.product-closeup { border: 1px solid #eae5dc; border-radius: 10px; overflow: hidden; background: #fff; }
.product-closeup > div { aspect-ratio: 3 / 2; overflow: hidden; }
.product-closeup img { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-closeup > span { display: block; padding: 9px 12px; font-size: 12px; font-weight: 600; }
.product-closeup--seat, .product-closeup--wide { grid-column: 1 / -1; }
.product-closeup--seat > div { aspect-ratio: 2.5; }
.product-closeup--wide > div { aspect-ratio: 2; }
.product-closeup--wide img { object-position: center 64%; }
.product-closeup--seat img { object-position: center 58%; transform: scale(1.65); transform-origin: center 62%; }
.product-closeup--arm img { object-position: right 58%; transform: scale(2.75); transform-origin: 86% 59%; }
.product-closeup--center, .product-closeup--left, .product-closeup--right,
.product-closeup--upper-right, .product-closeup--lower-right { --closeup-x: 50%; --closeup-y: 58%; }
.product-closeup--left { --closeup-x: 26%; }
.product-closeup--right { --closeup-x: 77%; }
.product-closeup--upper-right { --closeup-x: 76%; --closeup-y: 39%; }
.product-closeup--lower-right { --closeup-x: 76%; --closeup-y: 78%; }
.product-closeup--center img, .product-closeup--left img, .product-closeup--right img,
.product-closeup--upper-right img, .product-closeup--lower-right img {
  object-position: var(--closeup-x) var(--closeup-y);
  transform: scale(1.8);
  transform-origin: var(--closeup-x) var(--closeup-y);
}

.product-detail .product-unpacking { margin-bottom: 48px; }
.product-unpacking-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}
.product-unpacking-steps li { overflow: hidden; border: 0; border-radius: 0; background: transparent; }
.product-unpacking-image { position: relative; overflow: hidden; aspect-ratio: 1; background: var(--bg-sage); border-radius: 10px; }
.product-unpacking-image--sprite img { position: absolute; top: 0; left: 0; width: 200%; height: 200%; max-width: none; }
.product-unpacking-steps li:nth-child(even) .product-unpacking-image--sprite img { left: -100%; }
.product-unpacking-steps li:nth-child(n+3) .product-unpacking-image--sprite img { top: -100%; }
.product-unpacking-image--product { background: #eee4d8; }
.product-unpacking-image--product img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.product-unpacking-copy { padding: 12px 0 0; }
.product-unpacking-copy h3 { display: flex; align-items: baseline; gap: 8px; font-size: 14px; font-weight: 700; }
.product-unpacking-number { color: #865a3d; font-variant-numeric: tabular-nums; }
.product-unpacking-copy p { margin-top: 6px; color: #635c56; font-size: 13px; line-height: 1.65; }

@media (max-width: 720px) {
  .product-detail .product-unpacking { margin-bottom: 32px; }
  .product-unpacking-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-unpacking-copy { padding: 10px; }
}

.product-size-section figure { max-width: 900px; margin: 0 auto; }
.product-dimension-drawing { display: block; width: 100%; height: auto; }
.catalog-dimension-figure { overflow: hidden; border: 1px solid #eae5dc; border-radius: 10px; }
.catalog-dimension-figure p { padding: 12px 18px; text-align: center; background: #fff; color: #292421; }
.paired-dimensions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 12px; text-align: center; background: #fff; }
.paired-dimensions dt { color: #635c56; font-size: 12px; }
.paired-dimensions dd { margin-top: 4px; font-size: clamp(11px, 2.6vw, 16px); font-weight: 600; }
.catalog-dimension-figure p span { display: block; margin-top: 4px; color: #635c56; font-size: 12px; }
.dimension-annotated { position: relative; }
.dimension-guide {
  --dimension-arrow: clamp(4px, 0.9vw, 8px);
  position: absolute;
  color: #315e7a;
  pointer-events: none;
}
.dimension-guide::before, .dimension-guide::after {
  content: "";
  position: absolute;
  width: var(--dimension-arrow);
  height: var(--dimension-arrow);
  background: currentColor;
}
.dimension-guide-value {
  position: absolute;
  font-size: clamp(9px, 1.8vw, 16px);
  line-height: 1.15;
  font-weight: 600;
  white-space: nowrap;
}
.dimension-guide-horizontal { border-inline: 1px solid #315e7a75; border-bottom: 1px solid currentColor; }
.dimension-width, .dimension-depth { top: 75%; height: 9%; }
.dimension-width { left: 5.5%; right: 33%; }
.dimension-depth { left: 72%; right: 5.5%; }
.dimension-guide-horizontal::before { bottom: -1px; left: -1px; transform: translateY(50%); clip-path: polygon(0 50%, 100% 0, 100% 100%); }
.dimension-guide-horizontal::after { right: -1px; bottom: -1px; transform: translateY(50%); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.dimension-guide-horizontal .dimension-guide-value { top: calc(100% + 5px); left: 50%; transform: translateX(-50%); }
.dimension-guide-vertical { border-block: 1px solid #315e7a75; border-right: 1px solid currentColor; }
.dimension-height { top: 29.4%; bottom: 25%; left: 94.5%; right: 2.5%; }
.dimension-guide-vertical::before, .dimension-guide-vertical::after { right: -1px; transform: translateX(50%); }
.dimension-guide-vertical::before { top: -1px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.dimension-guide-vertical::after { bottom: -1px; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.dimension-guide-vertical .dimension-guide-value { top: 50%; left: 100%; padding-block: 4px; background: #fbf8f3; writing-mode: vertical-rl; transform: translate(-50%, -50%) rotate(180deg); }
.pumpkin-dimension-drawing .dimension-guide-value { font-size: clamp(8px, 1.5vw, 14px); padding-block: 2px; background: #fff; }
.pumpkin-chair-width { top: 70.4%; height: 10%; left: 3.8%; right: 72.9%; }
.pumpkin-chair-depth { top: 27%; bottom: 28.8%; left: 53%; right: 44.4%; }
.pumpkin-chair-height { top: 30%; bottom: 29.6%; left: 1%; right: 97.6%; }
.pumpkin-foot-width { top: 70.4%; height: 10%; left: 57.2%; right: 25.1%; }
.pumpkin-foot-depth { top: 33.8%; bottom: 30.4%; left: 96.5%; right: 1.7%; }
.pumpkin-foot-height { top: 44.6%; bottom: 29.6%; left: 75%; right: 22.8%; }
.b007-dimension-drawing .dimension-width { top: 82%; height: 6%; left: 12%; right: 55.4%; }
.b007-dimension-drawing .dimension-depth { top: 82%; height: 6%; left: 61.2%; right: 10%; }
.b007-dimension-drawing .dimension-height { top: 28%; bottom: 18%; left: 90.5%; right: 5%; }
.b006-dimension-drawing .dimension-width { top: 77%; height: 7%; left: 7%; right: 38.7%; }
.b006-dimension-drawing .dimension-depth { top: 77%; height: 7%; left: 68.1%; right: 5.7%; }
.b006-dimension-drawing .dimension-height { top: 31.5%; bottom: 23%; left: 94.7%; right: 2.5%; }
.b007-dimension-drawing .dimension-guide-value,
.b006-dimension-drawing .dimension-guide-value { font-size: clamp(8px, 1.5vw, 14px); background: #fff; }
.configuration-dimension-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 14px; border: 1px solid #eae5dc; border-radius: 12px; background: #fbf8f3; }
.configuration-dimension p { min-height: 1.5em; text-align: center; font-size: 12px; color: #635c56; }
.configuration-plan { position: relative; aspect-ratio: 1; }
.configuration-outline { position: absolute; top: 13%; height: var(--plan-depth); left: 10%; right: 29%; border: 1.5px solid #292421; border-radius: 8px; background: #f1ebe1; }
.configuration-outline::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 9px; border-bottom: 1px solid #292421; border-radius: 7px 7px 0 0; }
.configuration-dimension:last-child .configuration-outline::before { height: auto; inset: 5px; border: 1px solid #292421; border-radius: 5px; }
.configuration-width { top: calc(13% + var(--plan-depth)); height: 8%; left: 10%; right: 29%; }
.configuration-depth { top: 13%; height: var(--plan-depth); left: 71%; right: 14%; }
.configuration-plan .dimension-guide-value { font-size: clamp(9px, 1.4vw, 13px); }
.configuration-depth .dimension-guide-value { padding-block: 3px; }
@media (max-width: 600px) {
  .configuration-dimension-board { grid-template-columns: 1fr; }
  .configuration-plan { max-width: 280px; margin-inline: auto; }
}
.mattress-dimension-switch { --mattress-plan-bottom: 34%; min-width: 0; }
.mattress-dimension-switch:has(#mattress-dimension-wide:checked) { --mattress-plan-bottom: 24%; }
.mattress-dimension-switch legend { margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.mattress-dimension-options { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.mattress-dimension-options label { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid #d6cec5; border-radius: 8px; font-size: 13px; cursor: pointer; }
.mattress-dimension-options label:has(input:checked) { background: #f1e8dd; border-color: #a3704c; }
.mattress-dimension-options input { accent-color: #6d4832; }
.mattress-dimension-board { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; padding: 14px 16px; background: #fbf8f3; border: 1px solid #eae5dc; border-radius: 12px; }
.mattress-dimension-board > div { position: relative; aspect-ratio: 1.45; }
.mattress-dimension-board p { text-align: center; font-size: 12px; color: #635c56; }
.mattress-dimension-top, .mattress-dimension-edge { position: absolute; left: 8%; right: 22%; border: 1.5px solid #292421; border-radius: 7px; }
.mattress-dimension-top { top: 18%; bottom: var(--mattress-plan-bottom); }
.mattress-dimension-edge { top: 45%; bottom: 38%; }
.mattress-dimension-edge::after { content: ""; display: block; position: absolute; inset: 45% 0 0; border-top: 1px solid #292421; background: #eee9e2; border-radius: 0 0 5px 5px; }
.mattress-dimension-length { bottom: calc(var(--mattress-plan-bottom) - 8%); height: 8%; left: 8%; right: 22%; }
.mattress-dimension-width { top: 18%; bottom: var(--mattress-plan-bottom); left: 78%; right: 12%; }
.mattress-dimension-thickness { top: 45%; bottom: 38%; left: 78%; right: 12%; }
.mattress-dimension-thickness .dimension-guide-value { left: calc(100% + 4px); padding: 0; writing-mode: horizontal-tb; transform: translateY(-50%); }
.mattress-size-180, .mattress-dimension-switch:has(#mattress-dimension-wide:checked) .mattress-size-150 { display: none; }
.mattress-dimension-switch:has(#mattress-dimension-wide:checked) .mattress-size-180 { display: inline; }
@media (max-width: 600px) {
  .mattress-dimension-board { grid-template-columns: 1fr; gap: 12px; }
  .mattress-dimension-board > .mattress-dimension-profile { aspect-ratio: 2.2; }
  .mattress-dimension-thickness .dimension-guide-value { left: 100%; transform: translate(-50%, -50%); }
}
.product-size-section figcaption { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 20px; }
.dimension-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 12px auto 0; max-width: 520px; text-align: center; }
.dimension-values dt { font-size: 12px; color: #635c56; }
.dimension-values dd { margin-top: 4px; font-size: 14px; font-weight: 600; }
.corner-sofa-guides { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.corner-sofa-dimension-values { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-inline: 12px; }
@media (max-width: 600px) {
  .corner-sofa-guides text { font-size: 52px; }
  .corner-sofa-dimension-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.order-checklist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.order-checklist dt { font-size: 14px; font-weight: 600; }
.order-checklist dd { margin-top: 8px; font-size: 14px; line-height: 1.8; color: #635c56; }
.product-order-links { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 24px; }
.product-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.product-section-heading .editorial-title { margin-bottom: 10px; }
.product-section-heading p { font-size: 14px; line-height: 1.8; color: #635c56; }
.product-detail .detail-link { display: inline-block; font-size: 13px; color: #865a3d; text-decoration: underline; text-underline-offset: 4px; }
.product-section-heading > .detail-link { flex-shrink: 0; }
.product-fabric-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.product-fabric-options > p { grid-column: 1 / -1; }
.product-fabric-options img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 6px; }
.product-fabric-options figcaption { margin-top: 10px; font-size: 13px; }
.product-packing-note { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-top: 32px; padding-top: 24px; border-top: 1px solid #eae5dc; }
.product-packing-note h3 { font-size: 15px; font-weight: 600; }
.product-packing-note p { max-width: 640px; font-size: 14px; color: #635c56; line-height: 1.8; margin-top: 8px; }
.product-packing-note > div:last-child { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }
.product-detail .related-section { margin-top: 48px; border-top: 1px solid #eae5dc; padding-top: 40px; }
.related-card .related-meta { color: #635c56; }
@media (hover: none), (pointer: coarse) { .related-card:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) { .product-detail *, .product-detail *::before, .product-detail *::after { transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 960px) { .detail-story { gap: 32px; } .product-section-heading { align-items: flex-start; flex-direction: column; gap: 12px; } }
@media (max-width: 720px) {
  .order-checklist { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .product-summary > .specs-compact-panel { order: 4; }
  .product-summary > .b2b-order-note { order: 5; margin-bottom: 0; }
  .detail-story { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 32px; }
  .product-detail .editorial-section, .product-detail .related-section { padding-top: 32px; margin-top: 40px; }
  .product-detail .details-layout { margin-top: 40px; }
  .product-fabric-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .product-packing-note { flex-direction: column; align-items: flex-start; gap: 16px; }
  .product-packing-note > div:last-child { flex-direction: row; flex-wrap: wrap; gap: 16px; }
  .product-detail .detail-link { min-height: 44px; display: inline-flex; align-items: center; }
}
