/* Current-product scope; the native gallery, purchase and chapter keep their DOM order. */
.lunavia-product-story-enabled .lunavia-product-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; margin-bottom: 38px; }
.woocommerce div.product.lunavia-product-story-enabled > .lunavia-product-stage > div.images,
.woocommerce div.product.lunavia-product-story-enabled > .lunavia-product-stage > div.summary { float: none; width: 100%; min-width: 0; margin: 0; }
.woocommerce div.product.lunavia-product-story-enabled div.summary { padding: clamp(22px, 2.1vw, 30px); }
.woocommerce div.product.lunavia-product-story-enabled .product_title { margin-bottom: 22px; line-height: 1.06; }
.lunavia-product-story-enabled .lunavia-model-name { display: block; font-size: clamp(2.5rem, 3.5vw, 3.6rem); letter-spacing: -.04em; }
.lunavia-product-story-enabled .lunavia-model-form { display: block; margin-top: 12px; font-family: var(--sans); font-size: 1rem; font-weight: 400; line-height: 1.6; letter-spacing: 0; }
.woocommerce div.product.lunavia-product-story-enabled .summary p.price { margin-bottom: 18px; }
.lunavia-product-story-enabled .lunavia-product-kind { margin-bottom: 12px; }
.lunavia-product-story-enabled .lunavia-product-guidance { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 18px; margin-block: 17px; padding-block: 12px 8px; }
.lunavia-product-story-enabled .lunavia-guidance-dimensions dd { margin-bottom: 0; }
.lunavia-product-story-enabled .lunavia-product-guidance .lunavia-guidance-link { width: auto; }
.woocommerce div.product.lunavia-product-story-enabled form.cart { margin-block: 18px 20px; }
.lunavia-product-story-enabled .woocommerce-product-details__short-description { font-size: .875rem; line-height: 1.8; padding-top: 18px; margin-bottom: 15px; }
.lunavia-product-story-enabled .woocommerce-product-details__short-description > :last-child { margin-bottom: 0; }
.lunavia-product-story-enabled .lunavia-product-care { margin-bottom: 10px; }
.lunavia-product-story-enabled .lunavia-preview-note { margin-block: 16px; padding: 12px 15px; }
.woocommerce div.product.lunavia-product-story-enabled div.images .flex-control-thumbs li { width: auto; flex: 0 0 auto; }
.woocommerce div.product.lunavia-product-story-enabled div.images .flex-control-thumbs .lunavia-gallery-thumb { display: flex; justify-content: center; align-items: center; width: auto; min-width: 44px; min-height: 68px; }
.woocommerce div.product.lunavia-product-story-enabled div.images .flex-control-thumbs img { width: auto; height: 68px; }
.lunavia-product-story-enabled .lunavia-review-disclosure { margin-top: 24px; border-block: 1px solid var(--line); }
.lunavia-product-story-enabled .lunavia-review-disclosure > summary { padding-block: 16px; min-height: 56px; font-size: 1rem; font-weight: 500; cursor: pointer; }
.lunavia-product-story-enabled .lunavia-review-disclosure > summary:focus-visible { outline: 3px solid var(--cherry); outline-offset: 4px; }
.lunavia-product-story-enabled .lunavia-review-disclosure[open] > summary { margin-bottom: 16px; }
.lunavia-product-story-enabled .lunavia-review-disclosure #respond { padding-bottom: 22px; }
.lunavia-product-story-enabled.lunavia-story-accent-sky { --story-accent: var(--sky); }
.lunavia-product-story-enabled.lunavia-story-accent-sage { --story-accent: var(--sage); }
.lunavia-product-story-enabled.lunavia-story-accent-pearl { --story-accent: var(--pearl); }
.lunavia-product-story-enabled.lunavia-story-accent-lavender { --story-accent: var(--lavender); }
.lunavia-product-story-enabled .lunavia-product-story { clear: none; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 3.2vw, 44px); align-items: start; min-width: 0; margin: 0; padding: clamp(24px, 2.6vw, 36px); background: var(--story-accent, var(--palette)); }
.lunavia-product-story-enabled .lunavia-product-story.has-portrait-detail { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.lunavia-product-story-enabled .lunavia-product-story-copy { min-width: 0; }
.lunavia-product-story-enabled .lunavia-product-story-copy > h2 { margin: 0 0 18px; font-size: clamp(2rem, 2.4vw, 2.5rem); line-height: 1.12; }
.lunavia-product-story-enabled .lunavia-product-story-prose { max-width: 46ch; font-size: .9375rem; line-height: 1.8; overflow-wrap: anywhere; }
.lunavia-product-story-enabled .lunavia-product-story-prose > :last-child { margin-bottom: 0; }
.lunavia-product-story-enabled .lunavia-product-story-prose h2,
.lunavia-product-story-enabled .lunavia-product-story-prose h3 { font-size: 1.6rem; margin-block: 24px 14px; }
.lunavia-product-story-enabled .lunavia-product-story-detail { margin: 0; min-width: 0; justify-self: center; }
.lunavia-product-story-enabled .lunavia-product-story-detail img { display: block; width: auto; height: auto; max-width: 100%; max-height: 480px; }
@media (min-width: 981px) {
  .lunavia-product-story-enabled .lunavia-product-stage { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); column-gap: clamp(28px, 3.2vw, 46px); }
  .lunavia-product-story-enabled .lunavia-product-stage > .images { grid-column: 1; grid-row: 1; }
  .lunavia-product-story-enabled .lunavia-product-stage > .summary { grid-column: 2; grid-row: 1; }
  .lunavia-product-story-enabled .lunavia-product-stage > .lunavia-product-story { grid-column: 1 / -1; grid-row: 2; }
  .lunavia-product-story-enabled.lunavia-story-wide .lunavia-product-stage { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  /* Only an actual chapter creates row two; a failed detail leaves no reserved space. */
  .lunavia-product-story-enabled.lunavia-story-wide .lunavia-product-stage:has(> .lunavia-product-story) { grid-template-rows: min-content minmax(0, 1fr); }
  .lunavia-product-story-enabled.lunavia-story-wide .lunavia-product-stage:has(> .lunavia-product-story) > .summary { grid-row: 1 / span 2; }
  .lunavia-product-story-enabled.lunavia-story-wide .lunavia-product-stage > .lunavia-product-story { grid-column: 1; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: 24px; padding: 28px; }
  .lunavia-product-story-enabled.lunavia-story-wide .lunavia-product-story-copy > h2 { font-size: 2rem; }
  .woocommerce div.product.lunavia-product-story-enabled.kind-ring:not(.lunavia-mineral-product) div.images .woocommerce-product-gallery__image > a > img { max-height: min(78vh, 560px); }
}
@media (min-width: 981px) and (max-width: 1150px) {
  .lunavia-product-story-enabled.lunavia-story-wide .lunavia-product-stage > .lunavia-product-story { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 761px) and (max-width: 980px) {
  .woocommerce div.product.lunavia-product-story-enabled div.summary { padding: 28px; }
}
@media (max-width: 760px) {
  .lunavia-product-story-enabled .lunavia-product-stage { gap: 24px; margin-bottom: 30px; }
  .woocommerce div.product.lunavia-product-story-enabled div.images .flex-control-thumbs .lunavia-gallery-thumb { min-height: 64px; }
  .woocommerce div.product.lunavia-product-story-enabled div.images .flex-control-thumbs img { height: 64px; }
  .woocommerce div.product.lunavia-product-story-enabled div.summary { padding: 23px 20px; }
  .lunavia-product-story-enabled .lunavia-model-name { font-size: clamp(2.3rem, 9vw, 3rem); }
  .lunavia-product-story-enabled .lunavia-model-form { margin-top: 10px; font-size: .9375rem; line-height: 1.65; }
  .lunavia-product-story-enabled .lunavia-product-guidance { gap: 5px 12px; margin-block: 15px; }
  .lunavia-product-story-enabled .lunavia-product-story,
  .lunavia-product-story-enabled .lunavia-product-story.has-portrait-detail { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px 20px 20px; }
  .lunavia-product-story-enabled .lunavia-product-story-copy > h2 { font-size: 2rem; }
  .lunavia-product-story-enabled .lunavia-product-story-prose { max-width: none; }
  .lunavia-product-story-enabled .lunavia-product-story-detail img { max-height: 420px; }
}
