/* GAMFOODS — Page détaillée d'un plat ou d'un produit (#/plat). Fond clair,
   grande photo, description repliable, barre d'ajout fixe sur téléphone. */

.wh-item { background: var(--wh-ivory); color: var(--wh-brown); padding: 36px 0 100px; }
.wh-item .wh-kicker { color: var(--color-primary); }
.wh-item .wh-h2 { color: var(--wh-brown); }
.wh-item .wh-h2 .wh-s { color: var(--color-primary); }
.wh-item-loading { min-height: 60vh; display: flex; align-items: center; justify-content: center; }
.wh-item-loading img { width: clamp(120px, 28vw, 168px); height: auto; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 18px 40px -18px rgba(60, 40, 20, 0.45); animation: whLogoIn .35s var(--wh-ease) both, whLogoPulse 1.6s ease-in-out .35s infinite; }
@keyframes whLogoIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes whLogoPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.wh-item-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: start; }
.wh-item-gal { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 14px; }
.wh-item-photo { position: relative; aspect-ratio: 4 / 3; border-radius: 32px; overflow: hidden; background: var(--wh-sand); }
.wh-item-photo img { width: 100%; height: 100%; object-fit: cover; animation: whItemIn .6s var(--wh-ease) both; }
@keyframes whItemIn { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
.wh-item-badges { position: absolute; left: 18px; top: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.wh-item-badge { padding: 8px 14px; border-radius: 999px; background: rgba(18, 12, 8, 0.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--wh-ivory); font-size: 12px; font-weight: 700; }
.wh-item-badge.is-promo { background: #C2593A; }
.wh-item-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.wh-item-thumb { aspect-ratio: 1 / 1; padding: 0; border: 2px solid transparent; border-radius: 18px; overflow: hidden; background: none; cursor: pointer; }
.wh-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wh-item-thumb.active { border-color: var(--wh-brown); }
.wh-item-info { display: flex; flex-direction: column; gap: 24px; }
.wh-item-h1 { margin: 12px 0 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 5vw, 64px); line-height: .95; letter-spacing: -.045em; color: var(--wh-brown); }
.wh-item-h1 .wh-s { color: var(--color-primary); letter-spacing: -.03em; }
.wh-item-price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.wh-item-price b { font-family: var(--font-display); font-weight: 600; font-size: 40px; letter-spacing: -.02em; }
.wh-item-price s { font-size: 18px; color: #9A8C7E; }
.wh-item-desc { padding: 22px 24px; border-radius: 24px; background: #fff; border: 1px solid var(--wh-line); }
.wh-item-desc-text p { margin: 0 0 12px; font-size: 17px; line-height: 1.7; color: #4A3F35; }
.wh-item-desc-text p:last-child { margin-bottom: 0; }
.wh-item-desc-text.is-clamped { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.wh-item-more { margin-top: 12px; padding: 0; border: 0; background: none; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--color-primary); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.wh-item-out { margin: 0; padding: 16px 20px; border-radius: 18px; background: var(--color-error-light); color: var(--color-error); font-weight: 700; }
.wh-item-buy { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 18px; border-radius: 24px; background: #fff; border: 1px solid var(--wh-line); }
.wh-item-qty { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--wh-sand); }
.wh-item-qty button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--wh-brown); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.wh-item-qty button:hover { background: var(--wh-brown); color: var(--wh-ivory); }
.wh-item-qty .icon { width: 18px; height: 18px; }
.wh-item-qty span { min-width: 30px; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.wh-item-add { flex: 1 1 280px; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 6px 10px 6px 24px; border: 0; border-radius: 999px; background: var(--wh-gold); color: var(--wh-ink); font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.2; text-align: left; cursor: pointer; transition: background-color .25s, transform .3s; }
.wh-item-add:hover { background: var(--wh-gold-soft); transform: translateY(-2px); }
.wh-item-add.is-added { background: #4E6B53; color: #fff; }
.wh-item-add .icon { width: 18px; height: 18px; }
.wh-item-add-label { min-width: 0; display: inline-flex; align-items: center; flex-wrap: wrap; column-gap: .3em; }
.wh-item-add-label [data-total] { white-space: nowrap; }
.wh-item-cartlink { font-weight: 700; font-size: 14px; color: var(--color-primary); text-decoration: none; }
.wh-item-reserve { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; border: 1.5px solid var(--wh-brown); border-radius: 999px; background: transparent; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--wh-brown); cursor: pointer; }
.wh-item-reserve:hover { background: var(--wh-brown); color: var(--wh-ivory); }
.wh-item-reserve .icon { width: 18px; height: 18px; }
.wh-item-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wh-item-trust div { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 18px; background: var(--wh-sand); }
.wh-item-trust .icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--color-primary); }
.wh-item-trust b { display: block; font-size: 13px; }
.wh-item-trust small { display: block; margin-top: 2px; font-size: 12px; color: var(--wh-muted); }
.wh-item-pays { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--wh-muted); }
.wh-item-pays span { width: 52px; height: 32px; border-radius: 8px; background: #fff; border: 1px solid var(--wh-line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.wh-item-pays span.is-mtn { background: #FFCB05; border-color: #FFCB05; }
.wh-item-pays img { height: 26px; width: auto; }
.wh-item-pays img.is-visa { height: 11px; }
.wh-item-more-sec { margin-top: 90px; }
.wh-item-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.wh-item-card { position: relative; height: 340px; border-radius: 26px; overflow: hidden; display: block; color: var(--wh-ivory); text-decoration: none; }
.wh-item-card:hover { color: var(--wh-ivory); }
.wh-item-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--wh-ease); }
.wh-item-card:hover img { transform: scale(1.06); }
.wh-item-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18,12,8,.85) 0%, rgba(18,12,8,0) 55%); }
.wh-item-card span { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; }
.wh-item-card b { display: block; font-family: var(--font-display); font-size: 20px; }
.wh-item-card em { display: block; margin-top: 4px; font-family: var(--wh-serif); font-size: 17px; color: var(--wh-gold); }
.wh-item-bar { display: none; }

@media (max-width: 1100px) {
  .wh-item-trust { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .wh-item { padding: 16px 0 140px; }
  .wh-item-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .wh-item-gal { position: static; }
  .wh-item-photo { border-radius: 24px; }
  .wh-item-price b { font-size: 30px; }
  .wh-item-trust { grid-template-columns: minmax(0, 1fr); }
  .wh-item-buy { padding: 0; border: 0; background: none; }
  .wh-item-buy > .wh-item-qty, .wh-item-buy > .wh-item-add, .wh-item-buy > .wh-item-cartlink { display: none; }
  .wh-item-cards { display: flex; overflow-x: auto; gap: 12px; scroll-snap-type: x mandatory; }
  .wh-item-card { flex: 0 0 220px; height: 280px; scroll-snap-align: start; }
  .wh-item-more-sec { margin-top: 56px; }
  .wh-item-bar { display: flex; position: fixed; left: 10px; right: 10px; bottom: 84px; z-index: 40; gap: 10px; align-items: center; padding: 8px; border-radius: 999px; background: var(--wh-ink); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6); }
  .wh-item-bar .wh-item-qty { background: rgba(251, 248, 243, 0.1); }
  .wh-item-bar .wh-item-qty button { width: 38px; height: 38px; background: rgba(251, 248, 243, 0.12); color: var(--wh-ivory); }
  .wh-item-bar .wh-item-qty span { color: var(--wh-ivory); }
  .wh-item-bar .wh-item-add { min-width: 0; min-height: 50px; padding: 0 18px; justify-content: center; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .wh-item-photo img, .wh-item-loading img { animation: none; }
}

/* Prix sur photo : pastille dorée, chiffres droits et gras, bien lisibles */
.wh-item-card em,
.wh .wh-dish-price {
  display: inline-flex; align-items: center; margin-top: 8px; padding: 6px 12px; border-radius: 999px;
  background: var(--wh-gold); color: var(--wh-ink);
  font-family: var(--font-display); font-style: normal; font-weight: 700; font-size: 15px; letter-spacing: -.01em;
}
.wh .wh-dish-price s { color: rgba(18, 12, 8, 0.6); font-weight: 600; }
.wh-item-card b, .wh .wh-dish h3 { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45); }
