/* css/xp-fruit.css — FRUIT PAGES (fruits-givres/<slug>/). Stage: css/xp-viewer.css · cards (.ct): css/xp-carte.css ·
   behaviour: js/xp/pages/fruit.js. The client's charter (css/tokens.css): Questrial 400 only, black text and actions on
   blanc cassé, sage for the chamber, the label boxes and the tasting panel; opaque surfaces only.
   Phones: name → BUY BLOCK (price + note, weight, « Ajouter au panier », « Commander maintenant ») → stage → specs → …
   so the price and the buttons are on the first screen. Wide (≥ 1024 px): the stage on the left, the buy column right. */

html.xpp { background: var(--field); }
.fp { --pad: clamp(16px, 3.4vw, 52px); position: relative; z-index: 3; min-height: 100vh; min-height: 100svh; padding-top: var(--top-h, 76px); color: var(--ink); }

/* ================================================================ hero: head · buy · stage · facts */
.fp-hero { max-width: 1500px; margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "buy" "stage" "facts"; }
.fp-head { grid-area: head; min-width: 0; padding-top: clamp(8px, 2vh, 24px); }
.fp-head .crumb { margin-bottom: 2px; }
.fp-name { margin: 6px 0 0; font: 400 clamp(40px, 4.6vw, 76px)/1.03 var(--font-sans); letter-spacing: var(--tr-display); text-wrap: balance; }
.fp-short { margin: 10px 0 0; max-width: 38ch; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.45; color: var(--ink-2); }

.fp-buy { grid-area: buy; min-width: 0; display: grid; gap: 14px; margin-top: 18px; }
.fp-price { display: grid; gap: 4px; }
.fp-price__v { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0; }
.fp-price__n { font: 400 clamp(34px, 2.8vw, 42px)/1 var(--font-sans); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.fp-price__star { margin-left: 2px; font-size: .55em; vertical-align: .7em; color: var(--ink-2); }
.fp-price__w { font: 400 17px/1.2 var(--font-sans); color: var(--ink-2); }
.fp-price__sig { align-self: center; padding: 7px 10px 6px calc(10px + .22em); background: var(--sauge); font: 400 10.5px/1.2 var(--font-sans); letter-spacing: .22em;
  text-transform: uppercase; color: var(--ink); }
.fp-price__note { margin: 0; max-width: 54ch; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.fp-actions { display: grid; gap: 10px; }
.fp-actions .step, .fp-actions .step__btn { height: 52px; }
.fp-actions .step__btn { min-width: 52px; font-size: 16.5px; }
.fp-actions .step.is-on .step__n { font-size: 18px; }
.fp-actions .cta { min-height: 52px; }
.fp-now__b { display: none; }
.fp-now[data-in-basket] .fp-now__a { display: none; }
.fp-now[data-in-basket] .fp-now__b { display: inline; }
.fp-wa .ico { width: 19px; height: 19px; }
.fp-svc { margin: 0; max-width: 52ch; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
@media (min-width: 560px) and (max-width: 1023.98px) { .fp-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.fp-stage { grid-area: stage; min-width: 0; margin-top: 26px; }
.fp-facts { grid-area: facts; min-width: 0; margin-top: 24px; }
.fp-specs { margin: 0; border-top: 1px solid var(--line); }
.fp-specs > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.fp-specs dt { font-size: 11.5px; letter-spacing: var(--tr-caps); text-transform: uppercase; color: var(--ink-2); }
.fp-specs dd { margin: 0; font-size: 15px; text-align: right; }
.fp-facts__note { margin: 12px 0 0; max-width: 60ch; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.fp-gift { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; font: 400 15px/1.2 var(--font-sans); text-underline-offset: 4px; }

@media (min-width: 1024px) {
  .fp-hero { grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr); grid-template-rows: auto auto auto 1fr;
    grid-template-areas: "stage head" "stage buy" "stage facts" "stage ."; column-gap: clamp(32px, 4vw, 72px); }
  .fp-head { padding-top: clamp(16px, 5vh, 64px); }
  .fp-stage { margin-top: 12px; }
  .fp-buy { margin-top: 22px; }
  .fp-facts { margin-top: 26px; }
}

/* ================================================================ sections */
.fp-sec { max-width: 1500px; margin: clamp(56px, 9vh, 112px) auto 0; padding: 0 var(--pad); display: grid; gap: 14px; }
.fp-sec + .fp-sec { margin-top: clamp(40px, 6vh, 72px); }
.fp-h2 { margin: 0; font: 400 clamp(27px, 2.5vw, 40px)/1.1 var(--font-sans); letter-spacing: var(--tr-h2); }
.fp-sec__body { min-width: 0; }
@media (min-width: 1024px) {
  .fp-sec { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(32px, 4vw, 72px); }
  .fp-sec > * { padding-top: 20px; border-top: 1px solid var(--line); }
}
.fp-prose p { margin: 0 0 1em; max-width: 64ch; font-size: clamp(16px, 1.1vw, 18px); line-height: 1.65; }
.fp-prose p:first-child { max-width: 38ch; font: 400 clamp(20px, 1.7vw, 26px)/1.4 var(--font-sans); letter-spacing: -.005em; }
.fp-prose p:last-child { margin-bottom: 0; }
.fp-taste__text { margin: 0; max-width: 60ch; padding: clamp(20px, 2.6vw, 36px) clamp(22px, 2.8vw, 40px); background: var(--sauge);
  font-size: clamp(16px, 1.15vw, 18px); line-height: 1.65; }

/* ================================================================ « De la même famille » */
.fp-more { max-width: 1500px; margin: clamp(64px, 10vh, 128px) auto 0; padding: 0 var(--pad); }
.fp-more__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: clamp(16px, 2.4vw, 26px); }
.fp-more__all { display: inline-flex; align-items: center; min-height: 44px; font: 400 12.5px/1.2 var(--font-sans); letter-spacing: var(--tr-caps); text-transform: uppercase; text-underline-offset: 6px; }
.fp-more__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
.fp-more__cell { display: grid; min-width: 0; }
@media (min-width: 640px) { .fp-more__grid { gap: 18px 16px; } }
@media (min-width: 1024px) { .fp-more__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }


/* ================================================================ the product's own bottom bar ([data-fixed-bottom]) */
.fp-bar { position: fixed; z-index: 55; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px;
  min-height: 64px; padding: 8px 8px 8px 10px; border: 1px solid var(--ink); border-radius: var(--r-ctl); background: var(--paper); color: var(--ink);
  box-shadow: 0 18px 40px -18px rgb(0 0 0 / .4); font-family: var(--font-sans);
  transition: transform .4s cubic-bezier(.22, 1, .36, 1), opacity .3s ease-out; }
.fp-bar[data-visible="false"] { transform: translateY(calc(100% + 32px)); opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform .4s cubic-bezier(.22, 1, .36, 1), opacity .3s ease-out, visibility 0s .4s; }
.fp-bar__img { flex: none; width: 46px; height: 46px; padding: 3px; border-radius: 50%; object-fit: contain; background: var(--field-hi); box-sizing: border-box; }
.fp-bar__t { display: grid; gap: 1px; flex: 1 1 auto; min-width: 0; margin: 0; }
.fp-bar__name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 400 15.5px/1.25 var(--font-sans); }
.fp-bar__price { font: 400 14px/1.2 var(--font-sans); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.fp-bar .step { flex: none; }
.fp-bar__go { display: none; flex: 1 1 auto; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 6px 14px 6px 16px;
  border: 0; border-radius: var(--r-ctl); background: var(--cta-bg); color: var(--cta-ink); text-align: left; cursor: pointer; font: 400 15px/1.2 var(--font-sans); }
.fp-bar__go:hover { background: var(--cta-bg-hover); }
.fp-bar__go:focus-visible, .fp-bar :focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.fp-bar__k { display: block; font-size: 11px; letter-spacing: var(--tr-caps); text-transform: uppercase; color: rgb(254 251 244 / .8); white-space: nowrap; }
.fp-bar__v { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fp-bar__v .ico { width: 18px; height: 18px; }
.fp-bar__go > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fp-bar[data-state="in"] .fp-bar__img, .fp-bar[data-state="in"] .fp-bar__t { display: none; }
.fp-bar[data-state="in"] .fp-bar__go { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; }
@media (min-width: 760px) {
  .fp-bar { left: auto; right: 24px; bottom: 24px; max-width: 560px; padding: 6px 6px 6px 8px; }
  .fp-bar__t { padding-right: 6px; }
  .fp-bar__go { padding-inline: 20px 18px; }
  .fp-bar[data-state="in"] .fp-bar__go { flex-direction: row; align-items: center; gap: 14px; }
  .fp-bar[data-state="in"] .fp-bar__k { font-size: 14.5px; }
}
@media (max-width: 359.98px) { .fp-bar__img { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .fp-bar, .fp-bar[data-visible="false"] { transition: none; }
}
