/* Kern — product page. */

.pdp__top { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5.5rem); padding-top: clamp(1rem, 2vw, 2rem); }

/* gallery */
.gallery__stage { position: relative; isolation: isolate; aspect-ratio: 1 / 1; max-height: var(--fit-h); display: grid; place-items: center; overflow: hidden; border-radius: 6px; background: var(--tone, var(--sand)) var(--grain); background-size: 180px; }
.gallery__sun { position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--tone-2, var(--paper-3)); animation: sunIn 1.4s var(--ease-out) both; }
@keyframes sunIn { from { transform: scale(0.6); opacity: 0; } }
.gallery__main, .gallery__ghost { width: 84%; height: 80%; object-fit: contain; }
.gallery__main { animation: rise 1.1s var(--ease-out) 0.15s both; }
.gallery__ghost { position: absolute; left: 8%; top: 10%; opacity: 0; transition: opacity 0.5s var(--ease); }
.gallery__ghost.is-on { opacity: 1; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.gallery__expand { position: absolute; right: 1rem; bottom: 1rem; width: 2.8rem; height: 2.8rem; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgb(var(--light-rgb) / 0.9); cursor: zoom-in; transition: transform 0.4s var(--ease-out); }
.gallery__expand:hover { transform: scale(1.08); }
.gallery__expand .icon { width: 18px; height: 18px; }
.gallery__more { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-top: 0.8rem; }
.gallery__item { margin: 0; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: var(--paper-2); }
.gallery__item:first-child { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.gallery__item:nth-child(even):last-child { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
.gallery__open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery__open img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.gallery__open:hover img { transform: scale(1.03); }

/* info column */
.pdp__sticky { position: sticky; top: calc(var(--bar-h) + 1.5rem); padding-bottom: 2rem; }
.pdp__catno { margin: 1.2rem 0 0.5rem; color: var(--rust-ink); }
.pdp__title { margin: 0 0 0.5rem; font-size: clamp(2rem, 1.3rem + 1.6vw, 3rem); line-height: 1.02; }
.pdp__byline { margin: 0; font: italic 400 1.12rem var(--serif); color: var(--ink-2); font-variation-settings: 'SOFT' 100; }
.pdp__price { margin: 1.2rem 0 0.3rem; font: 350 1.7rem / 1 var(--serif); }
.pdp__vat { margin: 0; font-size: 0.85rem; color: var(--ink-3); }
.pdp__excerpt { margin: 1.1rem 0 1.3rem; font-size: 1.12rem; line-height: 1.55; color: var(--ink-2); }
.pdp__excerpt p { margin: 0; }

.buy__row { display: flex; gap: 0.8rem; margin-top: 1.2rem; }
.btn--buy { flex: 1; min-height: 3.7rem; font-size: 1rem; }
.qty { display: inline-flex; align-items: center; height: 3.7rem; border: 1px solid var(--line-2); border-radius: 999px; }
.qty__btn { width: 2.9rem; height: 100%; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.qty__btn .icon { width: 18px; height: 18px; }
.qty__btn:hover { background: rgb(var(--ink-rgb) / 0.06); }
.qty .qty__input, .qty .qty__input:focus { width: 2.2rem; padding: 0; border: 0; background: none; box-shadow: none; text-align: center; font-weight: 500; -moz-appearance: textfield; appearance: textfield; }
.qty__input::-webkit-inner-spin-button, .qty__input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.buy__status { min-height: 1.3em; margin: 0.7rem 0 0; font-size: 0.9rem; color: var(--rust-ink); }
.pdp__gone { padding: 1.3rem 1.4rem; border-radius: 12px; background: var(--paper-2); }
.pdp__gone p { margin: 0 0 1rem; color: var(--ink-2); line-height: 1.55; }
.stock { font-size: 0.92rem; }
.stock.out-of-stock { display: inline-block; padding: 0.7rem 1.1rem; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); font-weight: 500; }

.pdp__perks { list-style: none; display: grid; gap: 0.75rem; margin: 1.2rem 0 0; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.pdp__perks li { display: flex; align-items: center; gap: 0.8rem; font-size: 0.95rem; }
.pdp__perks .icon { width: 20px; height: 20px; color: var(--teak); }
.pdp__perks a { text-underline-offset: 0.2em; }

.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__item summary { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 0; font-weight: 500; list-style: none; cursor: pointer; }
.acc__item summary::-webkit-details-marker { display: none; }
.acc__item summary .icon { width: 18px; height: 18px; transition: transform 0.45s var(--ease-out); }
.acc__item[open] summary .icon { transform: rotate(45deg); }
.acc__body { overflow: hidden; padding-bottom: 1.3rem; font-size: 0.95rem; line-height: 1.6; color: var(--ink-2); }
.acc__body p:last-child { margin-bottom: 0; }
.dims { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; margin: 0; }
.dims div { padding-left: 0.8rem; border-left: 1px solid var(--line-2); }
.dims dt { font: 500 var(--fs-xs) var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }
.dims dd { margin: 0.25rem 0 0; font: 350 1.35rem / 1.1 var(--serif); color: var(--ink); }

/* story */
.story { margin-top: var(--section); }
.story__media { margin: 0; height: clamp(16rem, 40vw, 32rem); max-height: 70svh; overflow: hidden; }
.story__img { width: 100%; height: 100%; object-fit: cover; }
.story__text { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 0.4rem clamp(2rem, 6vw, 6rem); padding-top: clamp(2.5rem, 5vw, 4rem); }
.story__text .label { grid-column: 1 / -1; }
.story__title { margin: 0; font-size: var(--fs-h2); }
.story__body p { font-size: var(--fs-l); line-height: 1.55; color: var(--ink-2); }

/* lightbox */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--paper); overflow: hidden; }
.lightbox::backdrop { background: rgb(var(--ink-rgb) / 0.6); }
.lightbox.is-cut { background: var(--tone, var(--sand)); }
.lightbox__stage { position: absolute; inset: 4rem 5rem; display: grid; place-items: center; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.lightbox__btn, .lightbox__close { position: absolute; width: 3.2rem; height: 3.2rem; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--cream); cursor: pointer; box-shadow: 0 8px 24px rgb(0 0 0 / 0.12); }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__close { right: 1rem; top: 1rem; }
.lightbox__count { position: absolute; left: 50%; bottom: 1.2rem; margin: 0; transform: translateX(-50%); font-size: 0.85rem; font-weight: 500; }

@media (max-width: 1000px) {
	.pdp__top { grid-template-columns: 1fr; }
	.pdp__sticky { position: static; }
	.story__text { grid-template-columns: 1fr; }
	.pdp__top { padding-top: 0.6rem; }
	.gallery__more { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 0.6rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
	.gallery__more::-webkit-scrollbar { display: none; }
	.gallery__item, .gallery__item:first-child, .gallery__item:nth-child(even):last-child { flex: 0 0 78%; aspect-ratio: 4 / 3; scroll-snap-align: start; }
}
@media (max-width: 600px) {
	.lightbox__stage { inset: 4rem 1rem; }
	.dims { grid-template-columns: 1fr 1fr; }
	.buy__row { flex-wrap: wrap; }
}
