@import url("./labels-stickers.css?v=20260920-1");

/* Shared product-detail layer: product details reuse the collection banner,
   while retaining their own gallery rather than the collection-page layout. */
.collection-hero { background-image: linear-gradient(100deg, rgba(5, 21, 31, .90), rgba(8, 29, 43, .66)), url('/images/products/collection-banner-printing.jpg'); }
.collection-hero .split-layout { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); max-width: none; align-items: center; }
.collection-hero .product-gallery .image-frame { display: block; }
.collection-hero .product-gallery + div > p:not(.eyebrow), .collection-hero .product-gallery + div li { color: #fff; font-weight: 600; text-shadow: 0 2px 12px rgba(0,0,0,.72); }
.collection-hero .product-gallery + div .eyebrow { color: #b9ecff; text-shadow: 0 1px 10px rgba(0,0,0,.62); }

/* Shared product-detail layer: keeps galleries, FAQs and inquiry forms stable on every detail page. */
.product-gallery { min-width: 0; }
.product-gallery .image-frame { min-height: 0; margin: 0; overflow: visible; background: #f4f6f7; }
.product-gallery .image-frame img { display: block; width: 100%; height: auto !important; min-height: 0; aspect-ratio: auto !important; object-fit: contain; background: #f4f6f7; }
.product-gallery figcaption { display: flex; gap: 9px; padding: 11px 14px; color: #fff; background: rgba(18,45,73,.96); font-size: .88rem; }
.product-gallery__thumbs { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 14px; }
.product-gallery__thumbs button { overflow: hidden; min-width: 0; padding: 0; border: 2px solid transparent; border-radius: 12px; background: #fff; cursor: pointer; }
.product-gallery__thumbs button.is-active { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(27,58,92,.16); }
.product-gallery__thumbs button { aspect-ratio: 1 / 1; background: #f4f6f7; }
.product-gallery__thumbs img { display: block; width: 100%; height: 100%; object-fit: contain; background: #f4f6f7; }

.collection-hero .product-gallery + div { min-width: 0; }
.collection-hero .product-gallery + div h1 { font-size: clamp(2.25rem, 4.8vw, 4.65rem); line-height: 1.05; overflow-wrap: anywhere; }
.collection-hero .product-gallery + div > p:not(.eyebrow) { color: #eef5f8; font-size: 1.04rem; line-height: 1.65; }
.collection-hero .product-gallery + div ul { display: grid; gap: 9px; margin: 22px 0; padding-left: 20px; color: #e2edf3; }
.product-image-pending { object-fit: contain !important; background: var(--color-primary); }
.faq-content { min-width: 0; }
.faq-list { display: grid; gap: 12px; margin-top: 24px; }
.faq-list article { overflow: hidden; border: 1px solid var(--color-line); border-radius: 12px; background: #fff; }
.faq-list button { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 18px; padding: 17px 19px; border: 0; color: var(--color-text); background: #fff; text-align: left; cursor: pointer; }
.faq-list button h3 { margin: 0; font-size: 1rem; line-height: 1.35; }
.faq-list button span { flex: 0 0 auto; color: var(--color-primary); font-size: 1.35rem; }
.faq-list article > div { display: none; padding: 0 19px 18px; }
.faq-list article > div p { margin: 0; color: var(--color-muted); }
.faq-list article.is-open > div { display: block; }
.faq-list article.is-open button { background: var(--color-soft); }

#final-inquiry .split-layout { align-items: start; }
#final-inquiry .image-frame img { height: auto; min-height: 0; }
#final-inquiry .hero-form { display: grid; gap: 16px; width: 100%; margin-top: 28px; padding: 0; background: transparent; box-shadow: none; }
#final-inquiry .hero-form label { color: #fff; }
#final-inquiry .hero-form input, #final-inquiry .hero-form textarea { border-color: rgba(255,255,255,.32); background: #fff; }
#final-inquiry .hero-form textarea { min-height: 146px; }

/* Product-detail content images use the same stable ratio as the gallery. */
.collection-hero ~ .section .image-frame { background: #f4f6f7; }
.collection-hero ~ .section .image-frame img { width: 100%; height: auto; min-height: 0; aspect-ratio: 4 / 3; object-fit: contain; background: #f4f6f7; }
#final-inquiry .image-frame img { width: 100%; height: auto; min-height: 0; aspect-ratio: 4 / 3; object-fit: contain; background: #f4f6f7; }

@media (max-width: 780px) {
  .collection-hero .split-layout { grid-template-columns: minmax(0, 1fr) !important; gap: 32px; }
  .collection-hero .product-gallery { width: 100%; }
  .product-gallery .image-frame { min-height: 0; }
  #final-inquiry .image-frame img { min-height: 0; height: auto; }
}
@media (max-width: 900px) {
  .collection-hero ~ .section .split-layout { grid-template-columns: minmax(0, 1fr) !important; gap: 30px; }
  .collection-hero ~ .section .split-layout > .image-frame { width: 100%; }
  .collection-hero ~ .section .split-layout > .image-frame img { height: auto !important; min-height: 0 !important; }
  .collection-hero ~ .section .advantage-grid { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 560px) {
  .collection-hero { padding: 36px 0 52px; }
  .collection-hero .product-gallery + div h1 { font-size: clamp(2.05rem, 10vw, 2.65rem); overflow-wrap: normal; }
  .product-gallery .image-frame img { width: 100%; height: auto !important; min-height: 0; aspect-ratio: auto !important; object-fit: contain; background: #fff; }
  .product-gallery__thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .product-gallery__thumbs button { aspect-ratio: 1 / 1; }
  .product-gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
  .faq-list button { padding: 15px; }
  .faq-list article > div { padding: 0 15px 16px; }
}

/* Replacements may have any source dimensions. Each detail-page image fills
   its assigned frame while retaining its aspect ratio; excess edges crop. */
.product-gallery .image-frame { overflow: hidden; }
.product-gallery .image-frame img { width: 100%; height: 100% !important; min-height: 0; aspect-ratio: 4 / 3 !important; object-fit: cover !important; background: transparent; }
.product-gallery__thumbs img { object-fit: cover !important; background: transparent; }
.collection-hero ~ .section .image-frame { overflow: hidden; }
.collection-hero ~ .section .image-frame img,
#final-inquiry .image-frame img { width: 100%; height: 100% !important; min-height: 0; aspect-ratio: 4 / 3; object-fit: cover !important; background: transparent; }

/* Flat / non-tactile page: retain only the image gallery, without the
   numbered caption panel. Its active thumbnail is the sole selection cue. */
.product-gallery--flat figcaption { display: none; }
.product-gallery--flat .product-gallery__thumbs button:focus,
.product-gallery--flat .product-gallery__thumbs button:focus-visible { outline: 0; }
