/* A product's page (DESIGN.md 5J): the gallery on the left, the details on the right and staying in view */
.wfg-pd p, .wfg-pd h1, .wfg-pd h3, .wfg-pd ul { margin: 0; }
.wfg-pd-crumb { color: var(--wfg-muted); margin-bottom: 18px; }
.wfg-pd-crumb a { color: var(--wfg-primary); }
.wfg-pd-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.wfg-pd-gallery { display: grid; gap: 12px; min-width: 0; }
.wfg-pd-main { position: relative; border-radius: var(--wfg-card); overflow: hidden; background: var(--wfg-soft); box-shadow: var(--wfg-shadow); }
.wfg-pd-slides { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; touch-action: pan-x pan-y; }
.wfg-pd-slides::-webkit-scrollbar { display: none; }
.wfg-pd-slide { flex: 0 0 100%; aspect-ratio: 4 / 5; scroll-snap-align: start; }
.wfg-pd-slide img, .wfg-pd-slide__ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.wfg-pd-main .wfg-mc__badge { top: 14px; left: 14px; }
.wfg-pd-arrow { position: absolute; top: 50%; z-index: 2; width: 46px; height: 46px; translate: 0 -50%; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--wfg-paper); color: var(--wfg-primary); box-shadow: 0 6px 16px -6px rgb(0 0 0 / .45); cursor: pointer; }
.wfg-pd-arrow .wfg-ico { width: 20px; height: 20px; }
.wfg-pd-arrow--prev { left: 12px; }
.wfg-pd-arrow--prev .wfg-ico { rotate: 180deg; }
.wfg-pd-arrow--next { right: 12px; }
.wfg-pd-count { position: absolute; right: 14px; bottom: 14px; z-index: 2; padding: .35em .75em; border-radius: var(--wfg-pill); background: rgb(20 30 25 / .72); color: #fff; font-size: .82rem; font-weight: 600; }
.wfg-pd-thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 4px 4px 8px; scrollbar-width: thin; }
.wfg-pd-thumb { flex: 0 0 74px; aspect-ratio: 1; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--wfg-soft); cursor: pointer; outline: 3px solid transparent; outline-offset: 2px; opacity: .75; transition: opacity .2s; }
.wfg-pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wfg-pd-thumb:hover, .wfg-pd-thumb[aria-current="true"] { opacity: 1; }
.wfg-pd-thumb[aria-current="true"] { outline-color: var(--wfg-accent); }
.wfg-pd-info { position: sticky; top: 104px; display: grid; gap: 16px; align-content: start; }
.wfg-pd-title { font: 400 clamp(2.5rem, 1.6rem + 3vw, 3.7rem)/1 var(--wfg-font-hero); letter-spacing: 0; color: var(--wfg-primary); }
.wfg-pd-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.wfg-pd-price b { font: 700 1.9rem/1 var(--wfg-font-display); color: var(--wfg-primary); }
.wfg-pd-price span { font-size: .92rem; color: var(--wfg-muted); }
.wfg-pd-line { font-size: 1.08rem; max-width: 44ch; }
.wfg-pd-pick { display: grid; gap: 10px; }
.wfg-pd-pick__label { font-weight: 600; color: var(--wfg-primary); }
.wfg-pd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wfg-pd-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 4px 16px 4px 4px; border: 2px solid var(--wfg-line); border-radius: var(--wfg-pill); background: var(--wfg-paper); color: var(--wfg-primary); font: 600 .94rem/1 var(--wfg-font-body); cursor: pointer; }
.wfg-pd-chip img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.wfg-pd-chip:hover { border-color: var(--wfg-primary); }
.wfg-pd-chip[aria-checked="true"] { border-color: var(--wfg-primary); background: var(--wfg-primary); color: var(--wfg-on-primary); }
.wfg-pd-chip:disabled { opacity: .45; cursor: default; text-decoration: line-through; }
.wfg-pd-buy { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.wfg-qty { display: inline-flex; align-items: center; border: 2px solid var(--wfg-line); border-radius: var(--wfg-pill); background: var(--wfg-paper); }
.wfg-qty__btn { width: 44px; height: 44px; border: 0; background: none; color: var(--wfg-primary); font: 700 1.3rem/1 var(--wfg-font-body); cursor: pointer; }
.wfg-qty__in { width: 3ch; border: 0; background: none; text-align: center; font: 600 1rem var(--wfg-font-body); color: var(--wfg-primary); -moz-appearance: textfield; }
.wfg-qty__in::-webkit-inner-spin-button, .wfg-qty__in::-webkit-outer-spin-button { -webkit-appearance: none; }
.wfg-pd-add { flex: 1 1 200px; justify-content: center; }
.wfg-pd-pre { padding: 12px 14px; border-radius: 12px; background: var(--wfg-soft); font-size: .92rem; }
.wfg-pd-perks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; color: var(--wfg-muted); }
.wfg-pd-perks li::before { content: ""; display: inline-block; width: .9em; height: .5em; margin-right: .45em; border: solid var(--wfg-leaf); border-width: 0 0 2.5px 2.5px; rotate: -45deg; translate: 0 -.2em; }
.wfg-pd-made { display: flex; align-items: center; gap: 14px; font-weight: 600; color: var(--wfg-primary); }
.wfg-pd-made__num { flex: none; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--wfg-pop); color: var(--wfg-primary); font: 400 1.5rem/1 var(--wfg-font-hero); rotate: -8deg; box-shadow: inset 0 0 0 3px rgb(255 255 255 / .55); }
.wfg-pd-more { margin-top: 4px; }
.wfg-pd-details { margin: 0; padding: 0 0 0 1.3em; display: grid; gap: 4px; }
.wfg-pd-stories__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(20px, 3vw, 36px); }
.wfg-pd-story { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: start; }
.wfg-pd-story img, .wfg-pd-story__blank { width: 112px; aspect-ratio: 4 / 5; object-fit: cover; border: 6px solid var(--wfg-paper); border-radius: 8px; box-shadow: var(--wfg-shadow); rotate: -2.5deg; background: var(--wfg-soft); display: block; }
.wfg-pd-story:nth-child(even) img { rotate: 2.5deg; }
.wfg-pd-story h3 { font-family: var(--wfg-font-display); font-weight: var(--wfg-display-weight); font-size: 1.2rem; color: var(--wfg-primary); margin-bottom: 4px; }
.wfg-pd-story p { font-size: .95rem; margin: 0; }
@media (width < 1080px) { .wfg-pd-stories__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (width < 900px) { .wfg-pd-grid { grid-template-columns: minmax(0, 1fr); } .wfg-pd-gallery { width: min(100%, 560px); justify-self: center; } .wfg-pd-info { position: static; } }
@media (width < 640px) {
	.wfg-pd-arrow { width: 40px; height: 40px; }
	.wfg-pd-thumb { flex-basis: 62px; }
	.wfg-pd-stories__list { grid-template-columns: minmax(0, 1fr); gap: 26px; }
	.wfg-pd-story { grid-template-columns: 92px minmax(0, 1fr); gap: 16px; }
	.wfg-pd-story img, .wfg-pd-story__blank { width: 92px; }
	.wfg-pd-made__num { width: 68px; height: 68px; font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) { .wfg-pd-thumb { transition: none; } .wfg-pd-slides { scroll-behavior: auto; } }
