/* Static-site adaptation of the shared Gallery/MediaViewer interaction rules. */
#product-dialog{width:min(1200px,96vw);max-height:94dvh;border-radius:16px;overscroll-behavior:contain}
#product-dialog .dialog-grid{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);align-items:start;gap:32px;padding:28px}
#product-dialog .dialog-body{padding:28px 16px 24px 0;min-width:0}
#product-dialog .dialog-photo{background:transparent;min-height:0;height:auto;position:sticky;top:28px;min-width:0}
#product-dialog .close-dialog{position:sticky;top:12px;float:right;margin:12px 12px -56px 0;z-index:5}
#product-dialog .dialog-body>p{font-size:.75rem;margin-top:0;margin-bottom:16px}
#product-dialog .detail-category{margin:0 0 8px}#product-dialog h2{font-size:2.25rem;margin:0 0 12px}
#product-dialog .detail-price{font-family:var(--font);font-size:1.75rem;font-weight:600;margin:0 0 8px}
#product-dialog .detail-price+.muted{margin:0 0 24px}
.gallery-stage{position:relative;background:var(--pink);border-radius:12px;overflow:hidden;aspect-ratio:4/5;max-height:70dvh}
.gallery-open{display:block;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:zoom-in}
#product-dialog .gallery-open img{width:100%;height:100%;object-fit:contain;object-position:center}
.gallery-arrow,.viewer-arrow{position:absolute;z-index:2;top:50%;transform:translateY(-50%);width:44px;height:44px;border:1px solid var(--line);border-radius:50%;background:var(--cream);color:var(--ink);font:32px/1 var(--font);display:grid;place-items:center;padding:0}
.gallery-arrow:hover,.viewer-arrow:hover{filter:brightness(.94)}.gallery-arrow:active,.viewer-arrow:active{transform:translateY(-50%) scale(.98)}
.previous{left:12px}.next{right:12px}.gallery-count{position:absolute;bottom:12px;left:12px;padding:4px 12px;border-radius:16px;background:var(--cream);font-size:.75rem;pointer-events:none}
.gallery-expand{position:absolute;right:12px;bottom:12px;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--cream);pointer-events:none}
.gallery-thumbs{display:flex;gap:8px;margin-top:12px;overflow-x:auto;padding:2px;scrollbar-width:thin}
.gallery-thumb{flex:0 0 64px;aspect-ratio:4/5;border:2px solid transparent;padding:0;border-radius:8px;overflow:hidden;background:var(--pink)}
#product-dialog .gallery-thumb img{width:100%;height:100%;object-fit:cover}.gallery-thumb[aria-pressed=true]{border-color:var(--wine)}
.gallery-caption{margin:8px 2px 0;color:var(--muted);font-size:.75rem}
#product-dialog .sizes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}
#product-dialog .sizes:has(label:nth-of-type(2)):not(:has(label:nth-of-type(3))){grid-template-columns:repeat(2,minmax(0,1fr))}
#product-dialog .sizes:not(:has(label:nth-of-type(2))){grid-template-columns:minmax(0,160px)}
#product-dialog .sizes legend{font-size:.875rem;font-weight:500;margin-bottom:12px}
#product-dialog .sizes label{display:grid;grid-template-columns:20px 1fr;gap:4px;padding:8px;border-radius:8px;cursor:pointer;min-width:0;position:relative}
#product-dialog .sizes label img{grid-column:1/-1;width:100%;height:96px;object-fit:contain;border-radius:4px;background:var(--pink);grid-row:1}
#product-dialog .sizes input{margin:0;align-self:center;width:16px;height:16px}.size-name{font-weight:600}.size-price{grid-column:1/-1;white-space:nowrap;font-size:.75rem}
.variant-composition{font-size:.875rem;margin:16px 0 8px}.detail-order{margin:20px 0 24px}.detail-order .button{margin:0;border-radius:8px}
.product-section{border-top:1px solid var(--line);padding:20px 0 0;margin-top:20px}.product-section h3{font-size:1rem;margin:0 0 8px;font-weight:600}.product-section p{font-size:.875rem;margin:0;color:var(--muted);line-height:1.65}
#photo-viewer{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;border:0;border-radius:0;background:#171413;color:#fff;padding:28px 60px 60px;overflow:hidden}
#photo-viewer::backdrop{background:#171413}#photo-viewer img{width:100%;height:100%;object-fit:contain}#viewer-caption{position:absolute;bottom:12px;left:60px;right:60px;text-align:center;font-size:.875rem;margin:0}
.viewer-close{position:absolute;left:16px;top:16px;width:44px;height:44px;border:0;border-radius:50%;font-size:28px;line-height:1;background:var(--cream);color:var(--ink);z-index:3}
#product-dialog[data-step=request] .dialog-photo,#product-dialog[data-step=draft] .dialog-photo{position:sticky}
@media(max-width:1024px){#product-dialog .dialog-grid{gap:24px;padding:24px}#product-dialog .dialog-body{padding-right:0}#product-dialog h2{font-size:2rem}#product-dialog .sizes label img{height:80px}}
@media(max-width:699px){#product-dialog{width:100vw;max-width:100vw;max-height:96dvh;margin:auto 0 0;border-radius:16px 16px 0 0}#product-dialog .dialog-grid{display:block;padding:16px}#product-dialog .dialog-photo{position:static;height:auto}#product-dialog .dialog-body{padding:24px 0 0}#product-dialog .close-dialog{top:12px;margin-right:12px}.gallery-stage{aspect-ratio:4/5;max-height:55dvh}.gallery-thumb{flex-basis:56px}#product-dialog .sizes label img{height:96px}#product-dialog .detail-order{position:sticky;bottom:0;background:var(--cream);padding:12px 0;margin-bottom:20px;z-index:3}#product-dialog[data-step=request] .dialog-photo,#product-dialog[data-step=draft] .dialog-photo{display:none}#product-dialog[data-step=request] .dialog-body,#product-dialog[data-step=draft] .dialog-body{padding-top:40px}#photo-viewer{padding:72px 8px 64px}.viewer-arrow{top:auto;bottom:12px;transform:none}.viewer-arrow:active{transform:scale(.98)}#viewer-caption{bottom:24px;font-size:.75rem}.product-section:last-child{padding-bottom:20px}}

/* Existing brand tokens, with gallery and form behavior adapted to the static site. */
.product-media .product-alternate{position:absolute;inset:0;opacity:0;transition:opacity .2s;pointer-events:none}
@media(hover:hover) and (pointer:fine){.product:hover .product-alternate{opacity:1}}
.product:has(:focus-visible) .product-alternate{opacity:1}
.composition-section{margin-top:20px}.composition-section h3{font-size:.875rem;font-weight:600;margin:0 0 12px}
.ingredient-list{list-style:none;display:flex;flex-wrap:wrap;gap:8px;padding:0;margin:0}
.ingredient-list li{display:flex;align-items:center;gap:8px;min-height:44px;border:1px solid var(--line);border-radius:8px;padding:8px 12px;font-size:.8125rem;background:var(--cream)}
.ingredient-list img{width:24px;height:24px;flex:none}.ingredient-list strong{font-weight:600;white-space:nowrap;color:var(--wine)}
#variant-composition{margin-top:12px}
.secondary{background:transparent;color:var(--wine);border-color:var(--line)}.secondary:hover{background:var(--pink)}
.detail-order .secondary{margin-top:8px}.consultation-entry{margin:8px 0 24px;border-radius:8px}
#consult-step>p{font-size:.875rem;margin-bottom:24px}#consult-form label{gap:8px}
#consult-form input,#consult-form select{background:var(--pink);border-color:transparent;border-radius:10px;min-height:48px}
#consult-form input[aria-invalid=true]{border-color:var(--wine)}
.field-error{font-size:.75rem;color:var(--wine)}.form-errors{border-left:3px solid var(--wine);padding:12px;margin-bottom:20px;background:var(--pink);font-size:.875rem}.form-errors p{margin:0 0 4px}.form-errors a{display:block;text-decoration:underline;padding:4px 0}
.contact-help{background:transparent;color:var(--cream);border:0;min-height:44px;padding:10px 20px;text-decoration:underline;text-underline-offset:4px;font-size:.875rem}
#product-dialog[data-step=consult] .dialog-photo{position:sticky}
@media(max-width:699px){#product-dialog[data-step=consult] .dialog-photo{display:none}#product-dialog[data-step=consult] .dialog-body{padding-top:40px}.ingredient-list{gap:8px}.ingredient-list li{padding:8px;font-size:.8125rem}.ingredient-list img{width:20px;height:20px}.detail-order .button{justify-content:center;gap:12px}.gallery-caption{line-height:1.5}}
@media(prefers-reduced-motion:reduce){.product-media .product-alternate{transition:none}}
