/* QUARTZELLE — shop, collections and product page */

/* ── editorial page header ── */
.ed-head { padding-bottom: 0; }
.ed-grid { align-items: end; row-gap: 20px; padding: clamp(24px, 5vw, 72px) 0 clamp(32px, 4vw, 64px); }
.ed-grid > .eyebrow { grid-column: 1 / -1; justify-self: start; }
.ed-grid > h1 { grid-column: 1 / 9; font-size: clamp(56px, 8.6vw, 140px); line-height: .92; letter-spacing: -.028em; }
.ed-grid > .lead { grid-column: 9 / -1; max-width: 40ch; padding-bottom: .5em; }
@media (max-width: 860px) { .ed-grid { column-gap: 0; row-gap: 16px; } .ed-grid > h1, .ed-grid > .lead { grid-column: 1 / -1; } .ed-grid > .lead { padding-bottom: 0; font-size: 16px; } }
.shop-tabs { overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.shop-tabs::-webkit-scrollbar { display: none; }
.shop-tabs ul { display: flex; gap: clamp(22px, 2.6vw, 40px); width: max-content; padding-right: var(--gutter); }
.shop-tabs a { display: block; padding: 20px 0 18px; font: 500 var(--t-label)/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 1px solid transparent; white-space: nowrap; transition: color .2s, border-color .2s; }
.shop-tabs a:hover { color: var(--ink); }
.shop-tabs a.on { color: var(--ink); border-color: var(--ink); }
.shop-tabs a:focus-visible { outline-offset: -2px; }

/* ── listing: sticky top bar, three columns ── */
.shop { padding-bottom: var(--section); }
.shop-toolbar { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.filters-open { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font: 500 var(--t-label)/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.filters-open .icon { width: 18px; height: 18px; }
.f-count { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--teal-dark); color: var(--ivory); font: 500 10.5px/20px var(--sans); letter-spacing: 0; text-align: center; }
.f-count:empty { display: none; }
.result-count { flex: 1; text-align: right; font-size: 13.5px; }
.sort .select { min-height: 42px; font-size: 14.5px; min-width: 200px; padding-block: 6px; border-bottom-color: transparent; }
.sort .select:focus { border-bottom-color: var(--teal); }
.shop-main { min-height: 40vh; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 28px; }
.chips:empty { display: none; }
.clear-all { font-size: 13.5px; margin-left: 6px; }
.load-more { text-align: center; margin-top: 72px; }
.load-more:empty { display: none; }
#results { transition: opacity .2s; }
@media (max-width: 600px) { .shop-toolbar { gap: 12px; justify-content: space-between; } .result-count { display: none; } .sort .select { min-width: 0; } }

/* ── filter choices (the panel itself is in chrome.css) ── */
.f-group { border: 0; border-top: 1px solid var(--line); padding: 14px 0 16px; margin: 0; min-width: 0; }
.f-group:first-child { border-top: 0; }
.f-group legend { float: left; width: 100%; margin-bottom: 10px; padding: 0; font: 500 var(--t-label)/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.f-group legend + * { clear: both; }
.f-group .select { min-height: 40px; font-size: 15px; }
.f-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.f-pill { position: relative; cursor: pointer; }
.f-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.f-pill span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 18px; font-size: 13.5px; transition: background .2s, color .2s, border-color .2s; }
.f-pill:hover span { border-color: var(--ink); }
.f-pill input:checked + span { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--ivory); }
.f-pill input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ── product page ── */
.pdp-wrap { padding-bottom: var(--section); }
.pdp { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 96px); align-items: start; }
.pdp-gallery { position: relative; display: grid; gap: 14px; }
#gallery-inner { display: grid; gap: 14px; transition: opacity .25s; }
.pdp-tags { position: absolute; top: 0; left: 0; z-index: 3; display: flex; flex-direction: column; gap: 1px; align-items: flex-start; pointer-events: none; }
.gal-main { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gal-slide { margin: 0; aspect-ratio: 1; overflow: hidden; background: var(--beige); }
.gal-slide:first-child { grid-column: 1 / -1; }
/* an even number of images would leave the last one alone: let it span the row */
.gal-slide:nth-child(even):last-child { grid-column: 1 / -1; }
.gal-zoom { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.gal-zoom img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gal-zoom:focus-visible { outline-offset: -3px; }
.gal-dots { display: none; }
.pdp-info { display: grid; gap: 6px; align-content: start; }
.pdp > .is-pinned-column { position: sticky; top: var(--pin, calc(var(--header-compact) + 24px)); } /* set by product.js */
.pdp-title { font-size: clamp(48px, 5.4vw, 88px); line-height: .96; margin-top: 12px; }
.pdp-caption { font: italic 400 25px/1.35 var(--serif); color: var(--ink-soft); margin: 8px 0; }
.pdp-desc { margin-top: 24px; font-size: 16.5px; line-height: 1.75; max-width: 54ch; }
.p-price-row { margin-top: 10px; }
.gst-note { font-size: 13.5px; margin: 4px 0 14px; }
.opt { margin: 16px 0 4px; }
.opt-label { display: flex; gap: 12px; align-items: baseline; margin-bottom: 10px; }
.opt-selected { font-size: 15px; color: var(--ink-soft); }
.opt-values { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(7, 59, 59, .25); display: grid; place-items: center; padding: 0; position: relative; transition: transform .2s; }
.swatch i { width: 34px; height: 34px; border-radius: 50%; display: block; border: 1px solid rgba(0, 0, 0, .12); box-shadow: inset 0 -4px 8px rgba(0, 0, 0, .12); }
.swatch:hover { transform: scale(1.06); }
.swatch.sel { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.swatch.oos::after, .pill.oos::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top right, transparent calc(50% - .7px), rgba(7, 59, 59, .55) 50%, transparent calc(50% + .7px)); border-radius: inherit; pointer-events: none; }
.swatch.oos i, .pill.oos { opacity: .5; }
.pill { position: relative; min-height: 46px; padding: 0 22px; border: 1px solid var(--line-strong); font-size: 14.5px; letter-spacing: .02em; transition: background .2s, color .2s, border-color .2s; overflow: hidden; }
.pill:hover { border-color: var(--ink); }
.pill.sel { background: var(--teal-dark); color: var(--ivory); border-color: var(--teal-dark); opacity: 1; }
.stock { display: flex; align-items: center; gap: 10px; margin: 20px 0 16px; font-size: 14.5px; color: var(--ink); }
.stock i { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); flex: none; }
.stock.low i { background: #C98A1B; } .stock.low { color: #8a5d0c; }
.stock.out i { background: var(--danger); } .stock.out { color: var(--danger); }
.stock .sku { color: var(--ink-soft); font-size: 13px; }
.buy-row { display: flex; gap: 12px; align-items: stretch; }
.buy-row .qty { height: 52px; }
.buy-row .btn { min-height: 52px; }
.btn.grow { flex: 1; }
.pdp-assure { display: grid; gap: 12px; margin: 26px 0 8px; padding: 20px 0; border-block: 1px solid var(--line); }
.pdp-assure li { display: flex; gap: 14px; align-items: center; font-size: 14.5px; color: var(--ink-soft); }
.pdp-assure .icon { width: 20px; height: 20px; color: var(--ink-soft); flex: none; stroke-width: 1.1; }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; cursor: pointer; list-style: none; font: 500 12.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; font-size: 22px; font-weight: 300; color: var(--ink-soft); }
.acc details[open] summary::after { content: '–'; }
.acc-body { padding: 0 0 22px; display: grid; gap: 10px; font-size: 16px; }
.specs { display: grid; gap: 0; margin: 0; }
.specs > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.specs > div:last-child { border-bottom: 0; }
.specs dt { color: var(--ink-soft); } .specs dd { margin: 0; }

/* the four promises, formerly a flat banner image */
.pdp-promise { background: var(--teal-dark); color: var(--ivory); padding-block: clamp(48px, 6vw, 96px); }
.pdp-promise ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--col-gap); }
.pdp-promise li { display: grid; gap: 20px; align-content: start; padding-top: 24px; border-top: 1px solid var(--line-light); font: 400 clamp(26px, 2.4vw, 36px)/1.15 var(--serif); text-wrap: balance; }
.pdp-promise .icon { width: 28px; height: 28px; color: var(--gold); stroke-width: 1; }
@media (max-width: 760px) { .pdp-promise ul { grid-template-columns: 1fr 1fr; row-gap: 32px; } }
.pdp-related { border-top: 0; }

.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: rgba(247, 244, 237, .98); border-top: 1px solid var(--line); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); display: none; align-items: center; justify-content: space-between; gap: 14px; transform: translateY(110%); transition: transform .35s var(--ease); }
.sticky-buy.show { transform: none; }
.sticky-buy > div { display: grid; line-height: 1.25; min-width: 0; }
.sticky-buy b { font: 400 22px/1.15 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(7, 40, 40, .94); display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(92vw, 900px); max-height: 88vh; object-fit: contain; background: var(--beige); }
.lightbox :focus-visible { outline-color: var(--gold); }
.lb-close { position: absolute; top: 14px; right: 14px; color: var(--ivory); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); color: var(--ivory); font-size: 56px; line-height: 1; width: 64px; height: 90px; opacity: .8; }
.lb-nav:hover { opacity: 1; color: var(--gold); }
.lb-nav.prev { left: 6px; } .lb-nav.next { right: 6px; }
@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; gap: 24px; }
  .pdp-gallery { margin-inline: calc(var(--gutter) * -1); }
  .gal-main { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .gal-main::-webkit-scrollbar { display: none; }
  .gal-slide { flex: 0 0 100%; scroll-snap-align: start; }
  .gal-dots { display: flex; justify-content: center; gap: 8px; }
  .gal-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(7, 59, 59, .25); transition: all .2s; }
  .gal-dots i.on { background: var(--teal); width: 20px; border-radius: 4px; }
  .pdp > .is-pinned-column { position: static; top: auto; }
  .pdp > .pdp-gallery.is-pinned-column { position: relative; } /* keeps the badge anchored to the image */
  .sticky-buy { display: flex; }
  .specs > div { grid-template-columns: 120px 1fr; }
}
@media (max-width: 480px) { .buy-row { flex-wrap: wrap; } .buy-row .qty { order: 1; } .buy-row .wish.lg { order: 2; margin-left: auto; } .buy-row .btn.grow { order: 3; flex-basis: 100%; } }
