/* Hallmark · shape: kept · genre: modern-minimal · theme: brand · redesign: full · system: site-revamp.css */

/* ============================================================================
   PRODUCT PAGE REVAMP (the 37 product pages, English and BM; look only)
   ----------------------------------------------------------------------------
   Loads after product.css and site-revamp.css. The page keeps every section,
   word, link and script; only the look changes:
   - the product photo sits on a plain pale-blue frame, with no shadow
   - every card, table and panel gets the navy outline and round corners
   - the plan picker shows the promo price in yellow and the price after
     promo in navy, like the home page
   ========================================================================== */

/* ---------- breadcrumb and hero ---------- */
.detail-breadcrumb { background: var(--blue); border-bottom: 1px solid var(--hv-line-dark); }
.pp-hero { position: relative; }
/* cloud edge where the blue hero meets the white section bar under it */
.pp-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: var(--hv-scallop-h); background: radial-gradient(circle at 50% 100%, var(--hv-white) 13px, transparent 13.5px) 0 0 / 28px 14px repeat-x; pointer-events: none; }
/* small text on the blue hero is white, so it stays readable (the pale blue fell just under 4.5:1) */
.detail-breadcrumb, .detail-breadcrumb a, .pp-model, .pp-price-label, .pp-hero-context, .pp-facts dt, .pp-variants-label { color: var(--hv-white); }
.pp-gallery { background: none; }
/* the photo sits alone on a plain pale-blue frame, so the customer looks at the product only
   (Abu, 2026-11-19: no collage behind or touching a product, no shadow on the photo) */
.pp-gallery-stage { width: min(100%, 520px); min-height: 0; aspect-ratio: 1; margin-inline: auto; padding: 8%; border: var(--hv-edge); border-radius: var(--hv-r-panel); background: var(--hv-sky); box-shadow: var(--hv-shadow); }
.pp-gallery-stage img { max-width: 100%; max-height: 100%; filter: none; }
/* thumbnails: white tiles with the navy outline, yellow for the photo being shown */
.pp-thumbs { gap: 8px; margin-top: 20px; }
.pp-thumbs button { border: var(--hv-edge); border-radius: var(--hv-r-ctl); background: var(--hv-white); transition: transform 0.22s var(--hv-ease), background-color 0.22s var(--hv-ease); }
.pp-thumbs button:hover { transform: translateY(-2px); }
.pp-thumbs button[aria-pressed="true"] { border-color: var(--ink); background: var(--accent); }
/* colour swatches and size choices on the blue hero */
.pp-swatch { border: var(--hv-edge-light); box-shadow: inset 0 0 0 3px var(--blue); }
.pp-swatch[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--blue), 0 0 0 2px var(--accent); }
.pp-swatch-text { border: var(--hv-edge-light); box-shadow: none; }
.pp-swatch-text[aria-pressed="true"] { border-color: var(--hv-white); background: var(--hv-white); color: var(--ink); }
/* the four key facts: one outlined box, like the promo stubs on the home page */
.pp-facts { gap: 0; overflow: hidden; border: var(--hv-edge-light); border-radius: 18px; background: none; }
.pp-facts div { background: none; }
.pp-facts div + div { border-left: 1px solid var(--hv-line-dark); }
/* RM20 in the site's display face and yellow, the same as the home hero */
.pp-hero-price { border-top-color: var(--hv-line-dark); }
.pp-hero-price strong { font-family: var(--display); font-size: clamp(56px, 5vw, 80px); letter-spacing: 0; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.pp-hero-price strong small { font-family: var(--body); color: var(--hv-white); }
.compare-text { width: auto; min-height: 52px; padding: 0 16px; border: var(--hv-edge-light); border-radius: var(--hv-r-ctl); font-weight: 600; }
.compare-text[aria-pressed="true"] { background: var(--hv-white); color: var(--ink); }

/* the fact labels are plain, untracked text like every other label on the site */
.pp-facts dt { font-size: 14px; letter-spacing: 0; text-transform: none; }
.pp-facts dd { font-size: 16px; }
/* desktop: a tighter hero, so the price and the Pick a plan button come up the screen */
@media (min-width: 1025px) {
  .pp-hero-copy { padding-top: 28px; padding-bottom: 32px; }
  .pp-hero-copy h1 { margin: 8px 0 6px; font-size: clamp(56px, 5.6vw, 96px); }
  .pp-tagline { margin-bottom: 16px; }
  .pp-variants { margin-bottom: 16px; }
  .pp-facts { margin-bottom: 16px; }
  .pp-facts div { padding: 10px 14px; }
  .pp-hero-price { padding-top: 12px; }
  .pp-hero-price strong { font-size: clamp(52px, 4vw, 68px); }
  .pp-hero-actions { margin-top: 16px; }
}

/* ---------- the sticky section bar ---------- */
.pp-nav { gap: 4px; padding-block: 8px; border-bottom: var(--hv-edge); background: var(--hv-white); }
.pp-nav a { padding: 10px 14px; border-bottom: 0; border-radius: 10px; transition: background-color 0.2s var(--hv-ease); }
.pp-nav a:hover,
.pp-nav a[aria-current] { border-bottom: 0; background: var(--hv-sky); color: var(--ink); }

/* ---------- overview and features ---------- */
.pp-bestfor { border-top-color: var(--line); }
.pp-features { background: var(--paper); }
/* the feature numbers (01, 02, 03) only decorate, so they are hidden */
.pp-feature-index { display: none; }
/* each feature photo is a framed print, tilted a little, the other way on every second row */
.pp-feature figure { border: var(--hv-edge); border-radius: var(--hv-r-card); background: var(--hv-sky); box-shadow: var(--hv-shadow); transform: rotate(-1.2deg); }
.pp-feature-flip figure { transform: rotate(1.2deg); }
.pp-highlight-grid { gap: 24px; }
.pp-highlight-grid article { border: var(--hv-edge); border-radius: var(--hv-r-card); background: var(--hv-white); box-shadow: var(--hv-shadow); }

/* ---------- filtration: navy band with cloud edges top and bottom ---------- */
.pp-filtration { position: relative; }
.pp-filtration::before,
.pp-filtration::after { content: ""; position: absolute; left: 0; right: 0; height: var(--hv-scallop-h); pointer-events: none; }
.pp-filtration::before { top: -1px; background: radial-gradient(circle at 50% 0, var(--paper) 13px, transparent 13.5px) 0 0 / 28px 14px repeat-x; }
.pp-filtration::after { bottom: -1px; background: radial-gradient(circle at 50% 100%, var(--paper) 13px, transparent 13.5px) 0 0 / 28px 14px repeat-x; }
.pp-steps { gap: 20px; }
.pp-steps li { border: var(--hv-edge-light); border-radius: var(--hv-r-card); }
.pp-step-no { display: inline-block; align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: var(--accent); color: var(--ink); font-weight: 700; letter-spacing: 0; }
.pp-schedule { border: var(--hv-edge-light); border-radius: var(--hv-r-card); }

/* ---------- close-up photos: pinned prints ---------- */
.pp-detail-grid { gap: 24px; }
.pp-detail-grid img { border: var(--hv-edge); border-radius: var(--hv-r-card); box-shadow: var(--hv-shadow); }
.pp-detail-grid figure:nth-child(odd) { transform: rotate(-1.2deg); }
.pp-detail-grid figure:nth-child(even) { transform: rotate(1.2deg); }

/* ---------- comparison table and room sizes (mattress pages) ---------- */
.pp-compare { background: var(--paper); }
.pp-table-wrap { border: var(--hv-edge); border-radius: var(--hv-r-card); background: var(--hv-white); box-shadow: var(--hv-shadow); }
.pp-compare-table thead th { background: var(--hv-sky); }
.pp-space-grid div { border: var(--hv-edge); border-radius: var(--hv-r-ctl); background: var(--hv-white); }

/* ---------- plan and price ---------- */
.pp-plan { background: var(--hv-sky); }
/* the full price table scrolls sideways inside its box on phones, instead of running off the screen */
.pp-all-prices { overflow-x: auto; overscroll-behavior-x: contain; border: var(--hv-edge); border-radius: var(--hv-r-card); background: var(--hv-white); }
.pp-all-prices summary span { display: inline-grid; place-items: center; width: 32px; height: 32px; border: var(--hv-edge); border-radius: 50%; }
.pp-all-prices[open] summary span { background: var(--accent); }
.pp-plan-panel { border: var(--hv-edge); border-radius: var(--hv-r-panel); background: var(--hv-white); box-shadow: var(--hv-shadow); }
/* each choice is an outlined chip; the chosen one turns yellow */
.pp-choices button { min-height: 44px; border: var(--hv-edge); border-radius: var(--hv-r-ctl); background: var(--hv-white); color: var(--ink); font-weight: 600; transition: background-color 0.2s var(--hv-ease); }
.pp-choices button:hover { border-color: var(--ink); background: var(--hv-sky); }
.pp-choices button[aria-pressed="true"] { border-color: var(--ink); background: var(--accent); color: var(--ink); }
.pp-dot { box-shadow: 0 0 0 2px var(--hv-white), 0 0 0 4px var(--ink); }
/* the result: promo months in yellow, then the price after promo in navy, an arrow badge between */
.pp-summary { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0; padding: 0; border: 0; background: none; }
.pp-summary-promo,
.pp-summary-main { padding: 16px 20px; border: var(--hv-edge); border-radius: 18px; }
.pp-summary-promo { background: var(--accent); }
.pp-summary-main { background: var(--ink); color: var(--hv-white); }
.pp-summary span { letter-spacing: 0; font-weight: 600; }
.pp-summary-promo span { color: var(--ink); }
.pp-summary-main span { color: var(--hv-on-dark); }
.pp-summary strong { font-family: var(--display); letter-spacing: 0; line-height: 1; font-variant-numeric: tabular-nums; }
.pp-summary-promo strong { color: var(--ink); }
.pp-summary-main strong { color: var(--accent); }
.pp-summary strong small { font-family: var(--body); }
.pp-summary-arrow { z-index: 1; display: grid; place-items: center; align-self: center; width: 36px; height: 36px; margin-inline: -12px; border: var(--hv-edge); border-radius: 50%; background: var(--hv-white); color: var(--ink) !important; }
.pp-summary-note { grid-column: 1 / -1; margin-top: 12px; }
.pp-combo-tag { padding: 2px 8px; border: var(--hv-edge); border-radius: 8px; }

/* ---------- specs, service, questions ---------- */
.pp-specs .spec-table { padding: 8px 24px; border: var(--hv-edge); border-radius: var(--hv-r-card); background: var(--hv-white); box-shadow: var(--hv-shadow); }
.pp-dimension { border: var(--hv-edge); border-radius: var(--hv-r-card); box-shadow: var(--hv-shadow); }
.pp-service { background: var(--paper); }
.pp-service-list { gap: 20px; }
.pp-service-list li { border: var(--hv-edge); border-radius: var(--hv-r-card); background: var(--hv-white); box-shadow: var(--hv-shadow); }
.pp-faq-list details { border-top: 1.5px solid var(--ink); }
.pp-faq-list details:last-child { border-bottom: 1.5px solid var(--ink); }
.pp-faq-list summary { align-items: center; }
/* the plus sign sits in an outlined circle that turns yellow when the answer is open */
.pp-faq-list summary span { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border: var(--hv-edge); border-radius: 50%; color: var(--ink); line-height: 1; transition: transform 0.22s var(--hv-ease), background-color 0.22s var(--hv-ease); }
.pp-faq-list details[open] summary span { background: var(--accent); }
.pp-sources { border-top-color: var(--line); }

/* ---------- tablet and phone ---------- */
@media (max-width: 1024px) {
  .pp-gallery-stage { width: min(100%, 440px); }
}
@media (max-width: 600px) {
  .pp-gallery-stage { width: min(100%, 340px); border-radius: var(--hv-r-card); }
  .pp-thumbs button { border-radius: 12px; }
  .pp-facts div + div { border-left: 0; }
  .pp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-facts div:nth-child(n + 3) { border-top: 1px solid var(--hv-line-dark); }
  .pp-facts div:nth-child(even) { border-left: 1px solid var(--hv-line-dark); }
  /* photos sit straight on phones, where a tilt would be cut by the screen edge */
  .pp-feature figure, .pp-feature-flip figure, .pp-detail-grid figure:nth-child(n) { transform: none; }
  .pp-plan-panel { border-radius: var(--hv-r-card); box-shadow: var(--hv-shadow); }
  .pp-summary { grid-template-columns: minmax(0, 1fr); }
  .pp-summary-arrow { justify-self: center; margin: -12px 0; transform: rotate(90deg); }
  .pp-specs .spec-table { padding: 4px 16px; }
}
/* very narrow phones: the plan choices stay on one line */
@media (max-width: 380px) {
  .pp-choices button { padding-inline: 10px; font-size: 14px; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .pp-thumbs button, .pp-choices button, .pp-faq-list summary span, .pp-nav a { transition: none; }
}
