/* Shop and product pages. */

.shop-head { display: grid; justify-items: center; gap: 0.7rem; text-align: center; padding: clamp(2rem, 4.5vw, 3.75rem) var(--pad); background: linear-gradient(#fbf7f1, #f5eee3); }
.shop { padding-block: 1.75rem var(--section); }
.shop__categories { justify-content: safe center; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-block: 2px; }
.shop__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.9rem; margin-block: 1.5rem; padding-block: 0.9rem; border-block: 1px solid var(--line); }
.shop__bar > p { font-size: 0.84rem; }
.shop__filters { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.shop__filters select { min-height: 42px; padding: 0.4rem 0.9rem; border: 1px solid var(--line); border-radius: 99px; background: var(--white); font-size: 0.82rem; cursor: pointer; }
@media (max-width: 700px) {
  .shop__filters { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .shop__filters label:last-child { grid-column: 1 / -1; }
  .shop__filters select { width: 100%; font-size: 1rem; }
}

.crumbs { display: flex; flex-wrap: wrap; gap: 0.6rem; padding-block: 1.1rem; font-size: 0.76rem; color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs b { color: var(--text); font-weight: 400; }

.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: start; padding-bottom: 1rem; }
.gallery { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 0.75rem; }
.gallery__main { aspect-ratio: 1; max-height: calc(100dvh - var(--header-h) - 150px); min-height: 280px; width: 100%; border-radius: calc(var(--radius) + 8px); overflow: hidden; background: radial-gradient(circle at 50% 38%, #fff 0%, var(--soft) 74%); }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; padding: 5%; filter: drop-shadow(0 24px 22px rgb(60 42 24 / 0.17)); animation: fade 0.5s var(--ease); }
.gallery__main.is-photo img { padding: 0; filter: none; object-fit: cover; }
@keyframes fade { from { opacity: 0; scale: 0.96; } }
.gallery__thumbs { display: flex; justify-content: safe center; gap: 0.6rem; overflow-x: auto; padding: 3px; }
.gallery__thumbs button { flex: 0 0 82px; aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); overflow: hidden; transition: border-color 0.25s; }
.gallery__thumbs button[aria-current='true'] { border-color: var(--text); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.gallery__thumbs .is-photo img { padding: 0; object-fit: cover; }

.info { display: grid; gap: 1rem; justify-items: start; padding-block: 0.5rem 2rem; }
.info > * { max-width: 100%; }
.info h1 { font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); }
.info__price .price { font: 400 2.1rem var(--serif); }
.info__price .price--soon { font-size: 1.5rem; }
.info__lead { color: var(--muted); font-weight: 300; max-width: 56ch; }

.buy { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; width: 100%; max-width: 480px; padding-block: 0.5rem; }
.buy .qty { height: 50px; }
.buy .qty button { width: 44px; height: 100%; }
.buy > a:only-child { grid-column: 1 / -1; }
.buy > .btn:only-child { grid-column: 1 / -1; }
.buy .btn--block, .buy .text-btn { grid-column: 1 / -1; }
.buy .text-btn { justify-self: center; }

.facts { width: 100%; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; padding-block: 0.65rem; border-bottom: 1px solid var(--line); font-size: 0.84rem; }
.facts dt { color: var(--muted); }

.panels { width: 100%; }
.panels details { border-bottom: 1px solid var(--line); }
.panels summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.05rem 0; cursor: pointer; list-style: none; font: 400 1.35rem var(--serif); }
.panels summary::-webkit-details-marker { display: none; }
.panels summary::after { content: '+'; font: 300 1.5rem/1 var(--sans); transition: rotate 0.3s var(--ease); }
.panels details[open] summary::after { rotate: 45deg; }
.panels details > div { padding-bottom: 1.2rem; color: #554d46; font-weight: 300; }
.ticks { display: grid; gap: 0.55rem; }
.ticks li { position: relative; padding-left: 1.4rem; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 0.65em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

@media (max-width: 860px) {
  .product { grid-template-columns: minmax(0, 1fr); }
  .gallery { position: static; }
  .gallery__main { max-height: none; min-height: 0; }
}
