/* Compact product overview: full photographs remain in the detail dialog. */
.collection.section { padding-block: 48px; }
.collection .section-heading { margin-bottom: 26px; }
.product-image { aspect-ratio: 1; max-height: 270px; border-radius: 3px; }
.product-image img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 50% 72%; }
.product-caption { margin-top: 12px; }
.product h3 { font-size: 21px; }
.product p { margin: 6px 0 4px; }
.product-link { min-height: 36px; }
.collection-note { margin-top: 20px; }
@media (min-width: 640px) and (max-width: 1100px) {
  .products { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
  .product h3 { font-size: 19px; }
  .hero { grid-template-columns: 1fr 1fr; gap: 24px; }
  .hero h1 { font-size: clamp(44px,7vw,64px); }
  .hero-visual > img { height: min(480px,65svh); aspect-ratio: auto; }
  .hero-note { max-width: 260px; }
  .custom-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .custom-photo img { height: 460px; }
}
@media (max-width: 639px) {
  .collection.section { padding-block: 32px; }
  .collection .section-heading { margin-bottom: 22px; }
  .collection .eyebrow { margin-bottom: 12px; font-size: 8px; }
  .collection h2 { font-size: 34px; }
  .collection .section-heading > p { margin-top: 12px; font-size: 12px; }
  .products { gap: 18px 14px; }
  .product h3 { font-size: 19px; }
  .product-caption { margin-top: 10px; align-items: flex-start; }
  .swatch { margin-top: 4px; }
  .product p { font-size: 10px; }
  .product-link { min-height: 36px; font-size: 11px; }
  .collection-note { margin-top: 18px; }
}
/* Low landscape viewports keep the overview within one visible screen. */
@media (min-width: 640px) and (max-height: 500px) and (orientation: landscape) {
  .collection.section { padding-block: 16px; }
  .collection .section-heading { display: flex; align-items: end; margin-bottom: 14px; gap: 20px; }
  .collection .eyebrow { font-size: 8px; margin-bottom: 6px; }
  .collection h2 { font-size: 30px; }
  .collection .section-heading > p { margin: 0; font-size: 11px; }
  .product-image { height: min(158px,40svh); aspect-ratio: auto; }
  .product-image img { object-fit: contain; }
  .product-caption { margin-top: 8px; }
  .product h3 { font-size: 18px; }
  .product p { display: none; }
  .collection-note { margin-top: 10px; font-size: 9px; }
  .dialog-grid { grid-template-columns: 1fr 1fr; }
  .dialog-photo img { height: calc(100svh - 40px); }
  .dialog-content { padding: 30px 22px; }
}

/* Multi-view bag galleries: native touch scrolling, buttons and keyboard controls. */
.product { min-width: 0; }
.product-gallery { min-width: 0; }
.gallery-track { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track > * { flex: 0 0 100%; width: 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.product-gallery .product-image { margin: 0; }
.product-gallery .product-image img { object-position: 50% 73%; }
.gallery-controls { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 42px; }
.gallery-controls button { border: 0; background: transparent; color: var(--wine); min-width: 34px; min-height: 40px; padding: 0; }
.gallery-controls button:disabled { opacity: .3; cursor: default; }
.gallery-dots { display: flex; }
.gallery-dots button { min-width: 26px; }
.gallery-dots span { display: block; width: 6px; height: 6px; margin: auto; border: 1px solid var(--wine); border-radius: 50%; }
.gallery-dots [aria-current="true"] span { background: var(--wine); }
.gallery-count { min-width: 32px; font-size: 10px; color: var(--muted); text-align: center; }
.dialog-photo { min-width: 0; align-self: start; }
.dialog-photo .gallery-track img { height: min(620px,72svh); max-height: none; object-fit: contain; }
.dialog-photo .gallery-controls { padding: 4px 14px; }
@media (min-width: 1101px) { .products { grid-template-columns: repeat(5,minmax(0,1fr)); } }
@media (min-width: 640px) and (max-width: 1100px) { .products { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 639px) {
 .dialog-photo .gallery-track img { height: min(460px,55svh); }
 .product-gallery .gallery-controls { gap: 0; }
 .product-gallery .gallery-controls button { min-width: 26px; }
 .product-gallery .gallery-dots button { min-width: 21px; }
 .product-gallery .gallery-count { min-width: 26px; }
}
@media (min-width: 640px) and (max-height: 500px) and (orientation: landscape) {
 .products { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 14px; }
 .dialog-photo .gallery-track img { height: calc(100svh - 92px); }
 .product-gallery .gallery-controls { gap: 0; }
 .product-gallery .gallery-controls button { min-width: 23px; }
 .product-gallery .gallery-dots button { min-width: 18px; }
}

/* Local model-name draft: keep family, colour and story distinct at every width. */
.product .product-colour { font-size: 12px; color: var(--wine); line-height: 1.5; }
.product .product-tagline { font: italic 15px/1.45 var(--serif); margin: 8px 0 12px; color: var(--muted); }
.dialog-content #dialog-title { margin-bottom: 6px; }
.dialog-content .dialog-colour { font-size: 16px; color: var(--wine); margin-bottom: 22px; }
.model-story { border-left: 2px solid var(--wine); padding-left: 17px; margin: 0 0 20px; }
.model-story h3 { font: italic 23px/1.25 var(--serif); color: var(--wine); margin: 0 0 10px; }
.model-story p { font-size: 13px; line-height: 1.8; color: var(--muted); }
.dialog-content .variant-story { color: var(--ink); margin-bottom: 16px; }
@media (max-width: 639px) {
 .product .product-colour { font-size: 11px; }
 .product .product-tagline { font-size: 14px; }
 .model-story h3 { font-size: 22px; }
}
@media (min-width: 640px) and (max-height: 500px) and (orientation: landscape) {
 .product .product-colour { display: block; font-size: 10px; margin-bottom: 6px; }
 .product .product-tagline { display: none; }
}

/* Reserve the same image-information row for one-photo and multi-photo variants. */
.products { row-gap: 0; }
.product { display: grid; grid-template-rows: subgrid; grid-row: span 5; align-items: start; margin-bottom: 26px; }
.product-single { min-width: 0; }
.single-view-note { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; width: 100%; padding: 4px 0; border: 0; background: transparent; color: var(--muted); font-size: 10px; line-height: 1.4; }
.single-view-note .yarn-icon { width: 18px; height: 18px; flex: 0 0 18px; color: var(--wine); }
.single-view-note:hover { color: var(--wine); }
.product .product-tagline { align-self: start; }
.product-link { justify-self: start; align-self: end; }
@media (max-width: 639px) { .single-view-note { font-size: 9px; gap: 5px; } }
@media (min-width: 640px) and (max-height: 500px) and (orientation: landscape) {
 .product { grid-row: span 4; margin-bottom: 0; }
 .single-view-note { font-size: 9px; gap: 4px; }
}

/* Keep row spacing between products, but place the enquiry note close to the last row. */
.collection-note { margin-top: 14px; }
@media (min-width: 1101px) {
 .product:nth-child(5n+1):nth-last-child(-n+5),
 .product:nth-child(5n+1):nth-last-child(-n+5) ~ .product { margin-bottom: 0; }
}
@media (min-width: 640px) and (max-width: 1100px) {
 .product:nth-child(3n+1):nth-last-child(-n+3),
 .product:nth-child(3n+1):nth-last-child(-n+3) ~ .product { margin-bottom: 0; }
}
@media (max-width: 639px) {
 .product:nth-child(2n+1):nth-last-child(-n+2),
 .product:nth-child(2n+1):nth-last-child(-n+2) ~ .product { margin-bottom: 0; }
}

/* Explicit brand colours also apply to native iOS button text. */
.product-image { color: var(--wine); }
.product-number { color: var(--wine); -webkit-text-fill-color: currentColor; background: var(--paper); }

/* Sold originals remain visible and can inspire a new custom piece. */
.product-sold { position: absolute; top: 9px; right: 9px; z-index: 1; border-radius: 99px; padding: 5px 8px; background: var(--green); color: var(--paper); -webkit-text-fill-color: currentColor; font: 600 9px/1.3 var(--sans); letter-spacing: .3px; }
.product .sold-note { display: block; margin-top: 8px; font: 11px/1.5 var(--sans); color: var(--green); }
.dialog-content .dialog-availability { border: 1px solid var(--green); border-radius: 8px; padding: 10px 12px; margin: -6px 0 20px; color: var(--green); font-size: 12px; }

/* Model name left, final model price right: same type size and baseline. */
.product-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.product-caption h3, .product-caption .product-price { font: 400 21px/1.2 var(--serif); margin: 0; }
.product-caption .product-price { color: var(--wine); white-space: nowrap; flex-shrink: 0; text-align: right; }
.product .product-colour { display: flex; align-items: center; gap: 6px; }
.product-colour .swatch { width: 9px; height: 9px; flex: 0 0 9px; margin: 0; }
@media (min-width: 640px) and (max-width: 1100px), (max-width: 639px) { .product-caption h3, .product-caption .product-price { font-size: 19px; } }
@media (max-width: 380px) { .product-caption h3, .product-caption .product-price { font-size: 18px; } }
@media (min-width: 640px) and (max-height: 500px) and (orientation: landscape) { .product-caption h3, .product-caption .product-price { font-size: 18px; } }
