/* Momo Jord — editorial single-product (PDP). Scoped to body.mj-pdp (hammock-family products).
   Restyles the WooCommerce summary/gallery/title/price/add-to-cart + the mhs-* showcase.
   Keeps the variation form, CGKit swatches, gallery and add-to-cart fully functional. */

/* Sticky editorial buy-box */
@media (min-width:1100px){
  .mj-pdp div.product .summary.entry-summary{ position:sticky; top:108px; align-self:start; }
}

/* Title + price in display serif */
.mj-pdp .product_title,
.mj-pdp .product_title.entry-title{
  font-family:var(--ff-display); font-weight:var(--display-weight);
  font-size:clamp(34px,4vw,56px); line-height:1.02; letter-spacing:-.02em; color:var(--ink);
}
.mj-pdp div.product .summary .price,
.mj-pdp div.product .summary .price .woocommerce-Price-amount{
  font-family:var(--ff-display); font-weight:var(--display-weight); color:var(--ink);
}
.mj-pdp div.product .summary > .price,
.mj-pdp div.product .summary .price{ font-size:34px; letter-spacing:-.01em; }
.mj-pdp div.product .summary .price del,
.mj-pdp div.product .summary .price del .woocommerce-Price-amount{ color:var(--ink-mute); font-size:18px; font-weight:400; }
.mj-pdp div.product .summary .price ins{ text-decoration:none; }

/* Short description */
.mj-pdp .woocommerce-product-details__short-description{
  font-size:16px; line-height:1.65; color:var(--ink-soft); margin-top:6px;
}
.mj-pdp .woocommerce-product-details__short-description p:first-child{ font-family:var(--ff-display); font-weight:var(--display-weight); font-size:20px; line-height:1.4; color:var(--ink); }

/* Add to cart pill */
.mj-pdp .single_add_to_cart_button,
.mj-pdp .single_add_to_cart_button.button,
.mj-pdp form.cart .button{
  background:var(--brand) !important; color:#fff !important; border:0 !important;
  border-radius:999px !important; font-family:var(--ff-sans); font-weight:500;
  padding:15px 28px !important; font-size:15px !important; letter-spacing:0;
}
.mj-pdp .single_add_to_cart_button:hover,
.mj-pdp form.cart .button:hover{ background:var(--brand-deep) !important; }

/* Quantity — editorial pill stepper, height matches the green CTA (~52px).
   Consolidated here so the rounded input, the +/- arrow gutter and the native
   spinner all agree (the old half-override left square theme arrows poking
   through a rounded pill). */
.mj-pdp form.cart .quantity{
  position:relative; display:inline-flex; align-items:stretch;
  margin:0; border-radius:999px; overflow:visible;
}
.mj-pdp form.cart .quantity input.qty{
  width:92px !important; max-width:92px; height:52px; box-sizing:border-box;
  text-align:center; margin:0;
  border:1px solid var(--hairline-strong); border-radius:999px;
  padding:0 32px 0 18px; background:var(--card); color:var(--ink);
  font-family:var(--ff-sans); font-size:15px; font-weight:500; line-height:50px;
  -moz-appearance:textfield;
}
.mj-pdp form.cart .quantity input.qty::-webkit-outer-spin-button,
.mj-pdp form.cart .quantity input.qty::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }
.mj-pdp form.cart .quantity .quantity-nav{
  position:absolute; top:1px; right:1px; bottom:1px; width:28px;
  display:flex; flex-direction:column;
  border-left:1px solid var(--hairline);
  border-radius:0 999px 999px 0; overflow:hidden; pointer-events:none;
}
.mj-pdp form.cart .quantity .quantity-nav .quantity-button{
  flex:1; pointer-events:auto; cursor:pointer; position:relative;
  background:var(--paper-2); transition:background .15s ease;
}
.mj-pdp form.cart .quantity .quantity-nav .quantity-button:hover{ background:var(--brand-soft); }
.mj-pdp form.cart .quantity .quantity-nav .quantity-down{ border-top:1px solid var(--hairline); }
.mj-pdp form.cart .quantity .quantity-nav .quantity-up::before{ border-bottom-color:var(--ink); }
.mj-pdp form.cart .quantity .quantity-nav .quantity-down::before{ border-top-color:var(--ink); }

/* Gallery editorial frame */
.mj-pdp .woocommerce-product-gallery__image img,
.mj-pdp #commercegurus-pdp-gallery img{ border-radius:8px; }

/* ---- Showcase (mhs-*) editorial polish ---- */
/* Re-tint the showcase's private --mhs-* palette to the editorial tokens (it
   shipped its own slightly-off greens/golds); one override cascades to prose
   links, markers, specs, companion sub/price and the quote glyph at once. */
.mj-pdp .mhs-showcase{
  color:var(--ink);
  --mhs-accent:var(--brand); --mhs-accent-dark:var(--brand-deep);
  --mhs-bg:var(--paper); --mhs-bg-soft:var(--paper-2);
  --mhs-border:var(--hairline); --mhs-muted:var(--ink-mute); --mhs-dark:var(--ink);
}
.mj-pdp .mhs-section-title{ font-family:var(--ff-display); font-weight:var(--display-weight); font-size:clamp(34px,4vw,64px); letter-spacing:-.025em; line-height:1.02; }
.mj-pdp .mhs-section-title em{ font-style:italic; color:var(--brand); }
.mj-pdp .mhs-prose{ max-width:60ch; color:var(--ink-soft); }
.mj-pdp .mhs-prose li{ color:var(--ink-soft); line-height:1.7; }
.mj-pdp .mhs-prose em{ font-style:italic; color:var(--ink); }
.mj-pdp .mhs-prose blockquote{ color:var(--ink-soft); }
.mj-pdp .mhs-review-quote::before{ content:none; }
.mj-pdp .mhs-specs{ border-radius:8px; }
.mj-pdp .mhs-prose figure img{ border-radius:8px; }
.mj-pdp .mhs-prose h2{ font-family:var(--ff-display); font-weight:var(--display-weight); font-size:clamp(26px,2.8vw,40px); letter-spacing:-.02em; line-height:1.05; }
.mj-pdp .mhs-prose h2 em{ font-style:italic; color:var(--brand); }
.mj-pdp .mhs-prose p{ font-size:16px; line-height:1.7; color:var(--ink-soft); }
.mj-pdp .mhs-review-card{ background:var(--card); border:1px solid var(--hairline); border-radius:10px; }
.mj-pdp .mhs-review-quote{ font-family:var(--ff-display); font-weight:var(--display-weight); font-size:19px; line-height:1.4; color:var(--ink); }
.mj-pdp .mhs-stars,.mj-pdp .mhs-review-stars{ color:var(--gold); }
.mj-pdp .mhs-star-dim{ color:var(--hairline-strong); }
.mj-pdp .mhs-comp-card{ background:var(--card); border:1px solid var(--hairline); border-radius:8px; transition:transform .2s ease,border-color .2s ease; }
.mj-pdp .mhs-comp-card:hover{ transform:translateY(-3px); border-color:var(--hairline-strong); }
.mj-pdp .mhs-comp-name{ font-family:var(--ff-display); font-weight:var(--display-weight); font-size:18px; letter-spacing:-.005em; }

/* ---- Flagship PDP: numbered editorial chapters ---- */
.mj-pdp .mhs-chapters{ max-width:1040px; margin:3rem auto 2.5rem; padding:0 1rem; display:flex; flex-direction:column; gap:64px; }
.mj-pdp .mhs-chapter{ display:grid; grid-template-columns:88px 1fr; gap:32px; align-items:start; scroll-margin-top:100px; }
.mj-pdp .mhs-chapter-num{ position:sticky; top:100px; font-family:var(--ff-mono); font-size:11px; letter-spacing:.16em; text-transform:uppercase; color:var(--ink-mute); border-top:1px solid var(--hairline); padding-top:12px; }
.mj-pdp .mhs-chapter-num .n{ display:block; font-family:var(--ff-display); font-style:italic; font-weight:var(--display-weight); font-size:56px; line-height:1; letter-spacing:-.02em; color:var(--ink); text-transform:none; margin-top:6px; }
.mj-pdp .mhs-chapter-body{ min-width:0; }
/* Long description spans the full chapter body column (matches the reviews +
   companions grids below — Leon wanted it edge-to-edge, less scrolling). */
.mj-pdp .mhs-chapter .mhs-prose{ max-width:none; margin:0; }

/* atmospheric pull-quote */
.mj-pdp .mhs-atmo{ position:relative; min-height:440px; background-size:cover; background-position:center; display:grid; place-items:center; color:#f3efe4; border-radius:12px; overflow:hidden; margin:8px 0; }
.mj-pdp .mhs-atmo blockquote{ position:relative; margin:0; padding:0 32px; max-width:24ch; text-align:center; font-family:var(--ff-display); font-weight:var(--display-weight); font-size:clamp(26px,3.6vw,46px); line-height:1.2; letter-spacing:-.015em; text-shadow:0 2px 18px rgba(0,0,0,.3); }
.mj-pdp .mhs-atmo cite{ display:block; margin-top:24px; font-family:var(--ff-mono); font-size:11px; letter-spacing:.16em; text-transform:uppercase; color:color-mix(in oklab,#f3efe4 72%,transparent); font-style:normal; }

/* reviews header: big italic score + distribution bars */
.mj-pdp .mhs-reviews-head{ display:grid; grid-template-columns:auto 1fr auto; gap:32px; align-items:end; margin-bottom:32px; }
.mj-pdp .mhs-score-wrap{ display:flex; align-items:baseline; gap:8px; }
.mj-pdp .mhs-score{ font-family:var(--ff-display); font-style:italic; font-weight:var(--display-weight); font-size:clamp(56px,7vw,88px); line-height:.9; color:var(--ink); letter-spacing:-.02em; }
.mj-pdp .mhs-score-of{ font-family:var(--ff-mono); font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-mute); }
.mj-pdp .mhs-review-bars{ display:grid; gap:6px; max-width:340px; align-self:center; }
.mj-pdp .mhs-bar-row{ display:grid; grid-template-columns:28px 1fr; gap:10px; align-items:center; }
.mj-pdp .mhs-bar-label{ font-family:var(--ff-mono); font-size:10px; color:var(--ink-mute); }
.mj-pdp .mhs-bar-track{ height:6px; background:var(--paper-2); border-radius:999px; overflow:hidden; }
.mj-pdp .mhs-bar-fill{ display:block; height:100%; background:var(--brand); border-radius:999px; }
.mj-pdp .mhs-reviews-meta{ text-align:right; font-size:13px; color:var(--ink-soft); display:grid; gap:2px; }
.mj-pdp .mhs-reviews-meta .mhs-stars{ font-size:13px; letter-spacing:1px; }

/* rich review cards */
.mj-pdp .mhs-review-grid{ grid-template-columns:repeat(2,1fr); gap:16px; }
.mj-pdp .mhs-rev-rich{ padding:28px; }
.mj-pdp .mhs-rev-head{ display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.mj-pdp .mhs-rev-av{ width:36px; height:36px; border-radius:50%; background:var(--paper-2); display:flex; align-items:center; justify-content:center; font-family:var(--ff-display); font-weight:var(--display-weight); color:var(--ink-soft); flex:none; }
.mj-pdp .mhs-rev-id{ display:grid; gap:1px; }
.mj-pdp .mhs-rev-name{ font-size:14px; font-weight:500; color:var(--ink); }
.mj-pdp .mhs-rev-date{ font-family:var(--ff-mono); font-size:10px; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-mute); }
.mj-pdp .mhs-rev-verified{ margin-left:auto; display:inline-flex; align-items:center; gap:4px; font-family:var(--ff-mono); font-size:10px; letter-spacing:.08em; text-transform:uppercase; color:var(--brand); flex:none; }
.mj-pdp .mhs-rev-rich .mhs-review-stars{ margin-bottom:8px; }
.mj-pdp .mhs-rev-rich .mhs-review-quote{ margin:0; }

/* related poster grid */
.mj-pdp .mhs-rel-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.mj-pdp .mhs-rel{ display:block; background:var(--card); border:1px solid var(--hairline); border-radius:8px; overflow:hidden; transition:transform .2s ease,border-color .2s ease; color:var(--ink); }
.mj-pdp .mhs-rel:hover{ transform:translateY(-3px); border-color:var(--hairline-strong); }
.mj-pdp .mhs-rel-art{ aspect-ratio:1/1; background:var(--paper-2); overflow:hidden; }
.mj-pdp .mhs-rel-art img{ width:100%; height:100%; object-fit:cover; }
.mj-pdp .mhs-rel-body{ padding:18px; }
.mj-pdp .mhs-rel-cat{ font-family:var(--ff-mono); font-size:10px; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-mute); }
.mj-pdp .mhs-rel-name{ font-family:var(--ff-display); font-weight:var(--display-weight); font-size:19px; letter-spacing:-.005em; margin:4px 0 8px; line-height:1.15; }
.mj-pdp .mhs-rel-price{ font-family:var(--ff-display); font-weight:var(--display-weight); font-size:16px; color:var(--ink); }
.mj-pdp .mhs-rel-price .mhs-rel-oos{ font-family:var(--ff-mono); font-size:10px; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-mute); }
.mj-pdp .mhs-rel.is-oos{ opacity:.7; }

@media (max-width:900px){
  .mj-pdp .mhs-chapters{ gap:48px; }
  .mj-pdp .mhs-chapter{ grid-template-columns:1fr; gap:14px; }
  .mj-pdp .mhs-chapter-num{ position:static; border-top:0; padding-top:0; display:flex; align-items:baseline; gap:10px; }
  .mj-pdp .mhs-chapter-num .n{ display:inline; font-size:30px; margin-top:0; }
  .mj-pdp .mhs-reviews-head{ grid-template-columns:1fr; gap:16px; }
  .mj-pdp .mhs-reviews-meta{ text-align:left; }
  .mj-pdp .mhs-review-grid{ grid-template-columns:1fr; }
  .mj-pdp .mhs-rel-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:520px){
  .mj-pdp .mhs-rel-grid{ grid-template-columns:1fr; }
}

/* ---- Underquilt temperature picker ---- */
.mj-tp{ margin:6px 0 22px; }
.mj-tp-head{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:10px; gap:12px; }
.mj-tp-eyebrow{ font-family:var(--ff-mono); font-size:10px; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-mute); }
.mj-tp-scale{ display:flex; gap:16px; font-family:var(--ff-mono); font-size:9px; letter-spacing:.1em; text-transform:uppercase; }
.mj-tp-scale span:first-child{ color:var(--ember); }
.mj-tp-scale span:last-child{ color:var(--brand); }
.mj-tp-bar{ position:relative; height:6px; border-radius:999px; margin:0 0 18px;
  background:linear-gradient(90deg,#c66a2e 0%, #c9a14a 38%, #6f9a52 66%, #2f6b3a 100%); }
.mj-tp-tick{ position:absolute; top:50%; width:11px; height:11px; border-radius:50%; background:#fff; border:2px solid var(--ink); transform:translate(-50%,-50%); }
.mj-tp-cards{ display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.mj-tp-card{ display:flex; flex-direction:column; align-items:flex-start; gap:1px; padding:12px; border:1px solid var(--hairline-strong); border-radius:8px; background:var(--card); cursor:pointer; text-align:left; transition:border-color .15s ease, box-shadow .15s ease; }
.mj-tp-card:hover{ border-color:var(--ink); }
.mj-tp-card.is-active{ border-color:var(--brand); box-shadow:0 0 0 2px color-mix(in oklab,var(--brand) 30%, transparent); }
.mj-tp-card.is-oos{ opacity:.55; cursor:not-allowed; }
.mj-tp-temp{ font-family:var(--ff-display); font-weight:var(--display-weight); font-style:italic; font-size:24px; line-height:1; color:var(--brand); }
.mj-tp-code{ font-family:var(--ff-mono); font-size:10px; letter-spacing:.1em; text-transform:uppercase; color:var(--ink); margin-top:5px; }
.mj-tp-season{ font-size:12px; color:var(--ink-mute); line-height:1.2; }
.mj-tp-price{ font-family:var(--ff-display); font-weight:var(--display-weight); font-size:16px; color:var(--ink); margin-top:5px; }
.mj-tp-oos{ font-family:var(--ff-mono); font-size:9px; letter-spacing:.08em; text-transform:uppercase; color:var(--ember); margin-top:2px; }
@media (max-width:520px){ .mj-tp-cards{ grid-template-columns:1fr 1fr; } }

/* ============================================================
   2026-06-03 — PDP polish from Leon's mobile audit
   ============================================================ */

/* --- Surface: ONE cream canvas, white reserved for explicit cards ---------
   Kills the "vit ram / biege kort" inconsistency (audit 90,91,96,1908,1911):
   every PDP content wrapper goes transparent so the page reads as a single
   cream surface. The review / companion / spec CARDS keep their own white bg
   (they set it explicitly below the .mhs-* rules). */
.mj-pdp #primary,
.mj-pdp .content-area,
.mj-pdp .site-main,
.mj-pdp div.product,
.mj-pdp .product-details-wrapper,
.mj-pdp .summary.entry-summary,
.mj-pdp .mhs-showcase,
.mj-pdp .mhs-chapter,
.mj-pdp .mhs-chapter-body,
.mj-pdp .mhs-prose{ background:transparent !important; box-shadow:none !important; }

/* --- Buy row: quantity + "Lägg i varukorgen" on ONE line (audit 89,1910) ---
   CommerceKit (CGKit) wraps the real qty + ATC in .commercekit-sticky-atc-intersector
   (not a plain form.cart). Flex THAT so qty + button share a row. Fallbacks cover
   non-CGKit simple products (form.cart) and variable products. The qty needn't
   dominate — it's usually 1 — so the button takes the rest of the row. */
.mj-pdp .commercekit-sticky-atc-intersector,
.mj-pdp form.cart:not(.variations_form),
.mj-pdp .woocommerce-variation-add-to-cart{
  /* nowrap forces the button to share the qty's row (CGKit gives the button
     flex-basis:100%, which would otherwise wrap it below); the button shrinks. */
  display:flex; flex-wrap:nowrap; align-items:center; justify-content:flex-start; gap:12px; margin-top:8px;
}
.mj-pdp .commercekit-sticky-atc-intersector > .quantity,
.mj-pdp form.cart > .quantity{ flex:0 0 auto; margin:0; }
.mj-pdp .commercekit-sticky-atc-intersector .quantity input.qty,
.mj-pdp form.cart .quantity input.qty{ width:84px !important; max-width:84px; }
.mj-pdp .commercekit-sticky-atc-intersector .single_add_to_cart_button,
.mj-pdp form.cart .single_add_to_cart_button{
  /* width:auto overrides the critical-CSS width:100% so the button shares the row
     with the qty pill instead of wrapping below it. */
  flex:1 1 auto !important; width:auto !important; min-width:160px; white-space:nowrap;
  display:inline-flex; align-items:center; justify-content:center;
}

/* --- Gallery: uniform framing so mixed portrait/landscape images stop jumping
   (audit 88,1905,1914). One square ratio, cover-cropped, matching the shop grid +
   companion cards. Big image stays big; the theme's thumbnail strip is untouched. */
.mj-pdp .woocommerce-product-gallery{ overflow:hidden; }
.mj-pdp .woocommerce-product-gallery__image > a,
.mj-pdp .woocommerce-product-gallery__image{ display:block; }
.mj-pdp .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image img,
.mj-pdp #commercegurus-pdp-gallery .pdp-slide img,
.mj-pdp .cgkit-product-image > .woocommerce-product-gallery__image img{
  aspect-ratio:1/1; width:100%; height:auto; object-fit:cover; object-position:center;
  border-radius:10px;
}

/* --- "Läs alla omdömen på Trustpilot →" link under the review grid (95,1920) --- */
.mj-pdp .mhs-reviews-all,
.mj-andn .andn-reviews-all{ margin:20px 0 0; }
.mj-pdp .mhs-reviews-all a,
.mj-andn .andn-reviews-all a{
  font-family:var(--ff-mono); font-size:12px; letter-spacing:.06em; text-transform:uppercase;
  color:var(--brand); border-bottom:1px solid color-mix(in oklab,var(--brand) 40%,transparent);
  padding-bottom:2px; text-decoration:none;
}
.mj-pdp .mhs-reviews-all a:hover,
.mj-andn .andn-reviews-all a:hover{ color:var(--brand-deep); border-bottom-color:currentColor; }

/* Reviews: collapse beyond the first 5 + "Visa fler" toggle (2026-06-03) */
.mj-pdp .mhs-review-card.is-hidden{ display:none; }
.mj-pdp .mhs-reviews-all{ text-align:center; margin-top:26px; }
.mj-pdp .mhs-reviews-more{ display:inline-flex; align-items:center; justify-content:center; background:transparent; color:var(--ink); border:1px solid var(--hairline-strong); border-radius:999px; padding:13px 28px; font-family:var(--ff-sans); font-weight:600; font-size:15px; cursor:pointer; transition:border-color .15s ease, background .15s ease; }
.mj-pdp .mhs-reviews-more:hover{ border-color:var(--ink); background:var(--paper-2); }
