/* Product centre, category pages, legacy catalogue pages, image index */

.prod-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 40px; align-items: center; }
.prod-hero-figure { border: 1px solid var(--line); background: #fff; padding: 10px; }
.prod-hero-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.cat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
.cat-chip {
  display: grid; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 2px; background: #fff;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}
.cat-chip:hover { border-color: var(--brand); background: var(--surface); transform: translateY(-2px); }
.cat-chip strong { font-size: 0.95rem; }
.cat-chip span { font-size: 0.78rem; color: var(--muted); }
.cat-chip.is-current { border-color: var(--ink); background: var(--surface); }

.cat-block { margin-top: 40px; }
.cat-block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.cat-block-head h2 { margin: 0; font-size: 1.3rem; }
.cat-count { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.cat-note {
  margin-top: 28px; border-left: 3px solid var(--brand); background: var(--surface);
  padding: 18px 22px; font-size: 0.9rem; color: var(--muted);
}
.cat-note p:last-child { margin-bottom: 0; }

.options-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 8px; }
.option-card { border: 1px solid var(--line); background: #fff; padding: 22px; }
.option-card h3 { margin-top: 0; font-size: 1rem; }
.option-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.legacy-list { margin-top: 12px; }
.legacy-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }

.gallery-index-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gallery-index-grid figure { margin: 0; border: 1px solid var(--line); background: #fff; }
.gallery-index-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-index-grid figcaption { padding: 10px 12px; font-size: 0.78rem; color: var(--muted); border-top: 1px solid var(--line); }

@media (max-width: 1024px) {
  .cat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .options-grid { grid-template-columns: 1fr; }
  .gallery-index-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .prod-hero { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  .cat-strip { grid-template-columns: 1fr; }
  .gallery-index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* closure option chips on bottle family pages */
.closure-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.closure-list li {
  border: 1px solid var(--line); background: #fff; padding: 10px 16px; border-radius: 2px;
  font-size: 0.88rem; color: var(--ink-soft); transition: border-color 180ms ease, background-color 180ms ease;
}
.closure-list li:hover { border-color: var(--brand); background: var(--surface); }

/* two-chip category strip (ranges with two sub-categories) */
.cat-strip.cat-strip-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) {
  .cat-strip.cat-strip-2 { grid-template-columns: 1fr; }
}

/* product centre: range headings link to the range page */
.cat-block-head h2 a { transition: color 180ms ease; }
.cat-block-head h2 a:hover, .cat-block-head h2 a:focus-visible { color: var(--brand-strong); }
.cat-block + .cat-block { margin-top: 56px; }

/* ---------- product detail (single bottle) ---------- */
.pdp-figure { border: 1px solid var(--line); background: #fff; padding: 10px; margin: 0; }
.pdp-figure img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; }
.pdp-figure figcaption { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--muted); }

.pdp-keyfacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pdp-keyfact { padding: 24px 22px; border-left: 1px solid var(--line); }
.pdp-keyfact:first-child { border-left: 0; padding-left: 0; }
.pdp-keyfact strong { display: block; font-size: 1.45rem; letter-spacing: -0.02em; line-height: 1.2; }
.pdp-keyfact span { display: block; margin-top: 8px; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.pdp-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pdp-gallery figure { margin: 0; border: 1px solid var(--line); background: #fff; overflow: hidden; transition: border-color 200ms ease, transform 200ms ease; }
.pdp-gallery figure:hover { border-color: var(--brand); transform: translateY(-2px); }
.pdp-gallery img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 420ms ease; }
.pdp-gallery figure:hover img { transform: scale(1.03); }
.pdp-gallery figcaption { padding: 10px 12px; font-size: 0.78rem; color: var(--muted); border-top: 1px solid var(--line); }

.pdp-spec-note { margin-top: 22px; font-size: 0.82rem; color: var(--muted); }

@media (max-width: 1024px) {
  .pdp-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .pdp-keyfacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pdp-keyfact { border-top: 1px solid var(--line); }
  .pdp-keyfact:nth-child(-n+2) { border-top: 0; }
  .pdp-keyfact:nth-child(odd) { border-left: 0; padding-left: 0; }
}
@media (max-width: 600px) {
  .pdp-gallery { grid-template-columns: 1fr; }
  .pdp-keyfacts { grid-template-columns: 1fr; }
  .pdp-keyfact { border-left: 0; padding-left: 0; }
  .pdp-keyfact:nth-child(2) { border-top: 1px solid var(--line); }
  .pdp-keyfact:nth-child(-n+2) { border-top: 1px solid var(--line); }
  .pdp-keyfact:first-child { border-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pdp-gallery figure:hover { transform: none; }
  .pdp-gallery figure:hover img { transform: none; }
}

/* square-format range hero image: show the whole frame instead of cropping it */
.prod-hero-figure-square img { aspect-ratio: 1 / 1; object-fit: contain; background: #fff; }

/* four-shot gallery (product pages with exactly four views) */
.pdp-gallery.pdp-gallery-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .pdp-gallery.pdp-gallery-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pdp-gallery.pdp-gallery-4 { grid-template-columns: 1fr; } }

/* product listing that reflows to any number of bottles */
.prod-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
@media (max-width: 600px) { .prod-grid { grid-template-columns: 1fr; } }

/* three-chip category strip (range with three sub-categories) */
.cat-strip.cat-strip-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) {
  .cat-strip.cat-strip-3 { grid-template-columns: 1fr; }
}

/* reserved photo slot: marks where a product photo still has to be dropped in */
.pdp-gallery .pdp-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  aspect-ratio: 1 / 1; padding: 0 22px; text-align: center;
  border: 1px dashed var(--line); background: var(--surface);
  color: var(--muted); font-size: 0.78rem; letter-spacing: 0.02em;
}
.pdp-slot-mark { display: block; font-size: 1.15rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--line); }
.pdp-slot-note { display: block; max-width: 22ch; line-height: 1.6; }

/* single-view gallery: one photo, kept at a readable width */
.pdp-gallery.pdp-gallery-single { grid-template-columns: minmax(0, 560px); justify-content: center; }
@media (max-width: 1024px) { .pdp-gallery.pdp-gallery-single { grid-template-columns: minmax(0, 100%); } }

/* category list pagination — static pages, page 1 at index.html, then page-2.html */
.list-pagination {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px; margin-top: 34px;
}
.list-page {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 15px;
  border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink);
  font-size: 0.85rem; letter-spacing: 0.02em;
  transition: border-color 200ms ease, color 200ms ease, background 200ms ease, transform 200ms ease;
}
a.list-page:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
a.list-page:active { transform: translateY(0); }
a.list-page:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.list-page.is-current { border-color: var(--brand); background: var(--brand); color: #fff; }
.list-page-prev, .list-page-next { padding: 0 18px; }
@media (max-width: 600px) {
  .list-pagination { margin-top: 26px; }
  .list-page { min-width: 38px; height: 38px; padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  a.list-page:hover { transform: none; }
}
