/* Product navigation and collection detail pages. */
a.product-card { display: flex; flex-direction: column; color: white; text-decoration: none; }
.product-discover { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: auto; padding-top: 1.5rem; font-size: .85rem; font-weight: 600; color: #ff8a8a; }
a.product-card:focus-visible { outline: 3px solid #ff6868; outline-offset: 5px; }
.product-page { background: #080808; color: #f5f3ef; }
.product-page a { color: inherit; text-decoration: none; }
.product-page a:focus-visible { outline: 3px solid #ff6868; outline-offset: 6px; }
.product-page h1, .product-page h2, .product-page h3 { line-height: 1.15; text-wrap: balance; }
.product-skip { position: fixed; top: 10px; left: 10px; z-index: 2000; padding: 12px 20px; background: white; color: #080808 !important; transform: translateY(-160%); }
.product-skip:focus { transform: none; }
.detail-header, .product-page main, .detail-footer { width: min(1200px, 88%); margin-inline: auto; }
.detail-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 96px; border-bottom: 1px solid #ffffff20; }
.detail-header .logo, .detail-footer .logo { white-space: nowrap; font-size: 1.25rem; }
.back-link { color: #b9b9b9 !important; font-size: .9rem; }
.back-link:hover { color: #fff !important; }
.detail-button { display: inline-flex; justify-content: center; align-items: center; gap: 24px; padding: 15px 24px; min-height: 48px; background: #d52d36; color: white; border-radius: 9px; font-weight: 600; font-size: .95rem; transition: background .2s; }
.detail-button:hover { background: #b82029; }
.detail-button.small { padding: 10px 20px; font-size: .85rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; padding: 28px 0; font-size: .78rem; color: #aaa; }
.breadcrumb [aria-current] { color: #eee; }
.detail-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 6%; align-items: center; padding: 24px 0 80px; }
.detail-eyebrow { display: block; font-size: .7rem; font-weight: 700; letter-spacing: 2px; color: #ff888d; margin-bottom: 20px; }
.detail-copy h1 { font-size: clamp(2.5rem, 4.5vw, 4.4rem); letter-spacing: -.045em; margin-bottom: 24px; }
.detail-copy h2 { font-size: clamp(1.35rem, 2.3vw, 2rem); font-weight: 400; color: #dedbd7; margin-bottom: 24px; }
.detail-copy p { color: #b9b9b9; line-height: 1.85; margin-bottom: 30px; max-width: 520px; }
.detail-cover { position: relative; overflow: hidden; border-radius: 22px; background: #181818; border: 1px solid #ffffff18; }
.detail-cover img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.detail-cover figcaption { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; gap: 12px; padding: 48px 24px 24px; background: linear-gradient(transparent,#000d); font-size: .75rem; letter-spacing: 1px; }
.detail-features, .detail-gallery, .detail-uses, .other-products { padding: 65px 0; border-top: 1px solid #ffffff20; }
.section-intro { max-width: 620px; margin-bottom: 36px; }
.section-intro h2, .detail-uses h2, .detail-cta h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); letter-spacing: -.035em; }
.section-intro p { color: #aaa; margin-top: 20px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.feature-grid article { padding: 28px; background: #141414; border: 1px solid #ffffff12; border-radius: 16px; }
.detail-number { display: block; color: #f06b73; font-size: .8rem; margin-bottom: 28px; }
.feature-grid h3 { font-size: 1.2rem; margin-bottom: 14px; }
.feature-grid p { color: #aaa; font-size: .9rem; line-height: 1.8; }
.gallery-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 20px; }
.gallery-grid figure { overflow: hidden; min-width: 0; border-radius: 16px; background: #151515; }
.gallery-grid img { display: block; width: 100%; height: 320px; object-fit: cover; }
.gallery-grid .detail-crop img { object-fit: cover; object-position: 65% center; transform: scale(1.3); }
.gallery-grid figcaption { position: relative; background: #151515; padding: 18px; font-size: .8rem; color: #ccc; }
.detail-uses { display: grid; grid-template-columns: 1fr 1fr; gap: 10%; }
.detail-uses ul { list-style: none; margin-bottom: 24px; }
.detail-uses li { border-bottom: 1px solid #ffffff20; padding: 16px 0; font-size: 1.2rem; }
.detail-uses li:first-child { padding-top: 0; }
.detail-uses p { color: #aaa; font-size: .9rem; }
.detail-cta { text-align: center; padding: 60px 25px; margin: 20px 0 65px; border: 1px solid #e6394638; border-radius: 22px; background: radial-gradient(ellipse at top,#5b1b2350,transparent 75%),#141011; }
.detail-cta p { color: #bbb; margin: 20px auto 28px; max-width: 480px; }
.detail-cta>div { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: center; }
.detail-text-link { font-size: .9rem; text-decoration: underline !important; text-underline-offset: 5px; }
.other-products h2 { font-size: 1.35rem; margin-bottom: 24px; }
.other-products>div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.other-products a { display: flex; justify-content: space-between; gap: 12px; padding: 22px; border: 1px solid #ffffff25; border-radius: 12px; transition: background .2s; }
.other-products a:hover { background: #201315; }
.detail-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 22px; border-top: 1px solid #ffffff20; padding: 30px 0; font-size: .8rem; color: #aaa; }
@media(max-width: 900px) {
    .detail-hero { gap: 30px; }
    .detail-copy h1 { font-size: 2.6rem; }
    .feature-grid article { padding: 22px; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .gallery-grid figure:last-child { grid-column: 1 / -1; }
    .gallery-grid figure:last-child img { height: 300px; object-position: center 55%; }
}
@media(max-width: 650px) {
    .detail-header { flex-wrap: wrap; padding: 20px 0; min-height: auto; gap: 16px; }
    .detail-header .logo { font-size: 1.05rem; }
    .detail-header .back-link { order: 3; width: 100%; }
    .detail-button.small { padding: 10px 14px; }
    .breadcrumb { font-size: .7rem; }
    .detail-hero { grid-template-columns: 1fr; padding: 12px 0 45px; }
    .detail-copy h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
    .detail-copy h2 { font-size: 1.5rem; }
    .detail-cover img { aspect-ratio: 1 / 1; }
    .detail-features, .detail-gallery, .detail-uses, .other-products { padding: 40px 0; }
    .feature-grid, .detail-uses, .other-products>div { grid-template-columns: 1fr; }
    .detail-uses { gap: 28px; }
    .gallery-grid { gap: 12px; }
    .gallery-grid img { height: 210px; }
    .gallery-grid figcaption { font-size: .7rem; padding: 12px; }
    .detail-cta { padding: 40px 20px; margin-bottom: 40px; }
    .detail-footer { flex-direction: column; align-items: flex-start; }
}
@media(prefers-reduced-motion: reduce) { .product-page *, a.product-card { transition: none; } }

.detail-arrow { display: inline-block; width: 16px; height: 16px; flex-shrink: 0; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.corporate-more { display: inline-flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 2rem; }

/* Image enlargement does not change the gallery layout. */
.gallery-zoom { display: block; overflow: hidden; cursor: zoom-in; }
.image-viewer { position: fixed; inset: 0; margin: auto; width: min(1200px, 96vw); max-width: 96vw; height: min(920px, 94dvh); max-height: 94dvh; padding: 20px; border: 1px solid #ffffff30; border-radius: 16px; background: #111; color: #fff; }
.image-viewer::backdrop { background: rgba(0,0,0,.88); }
.viewer-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 48px; }
.image-viewer button { min-width: 44px; min-height: 44px; padding: 8px 14px; border: 1px solid #ffffff40; border-radius: 8px; background: #202020; color: white; cursor: pointer; font: inherit; }
.image-viewer button:focus-visible { outline: 3px solid #ff6868; outline-offset: 3px; }
.viewer-stage { display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; align-items: center; gap: 12px; height: calc(100% - 48px); }
.viewer-stage figure { min-width: 0; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.viewer-stage img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.viewer-stage figcaption { flex-shrink: 0; max-width: 100%; color: #ccc; font-size: .85rem; text-align: center; overflow-wrap: anywhere; padding-bottom: 8px; }
@media(max-width: 650px) {
    .image-viewer { padding: 12px; }
    .viewer-stage { grid-template-columns: 44px minmax(0,1fr) 44px; gap: 4px; }
    .viewer-stage figcaption { font-size: .7rem; }
}
.viewer-stage { grid-template-rows: minmax(0, 1fr); min-height: 0; }
.viewer-stage figure { min-height: 0; max-height: 100%; }

/* Preserve the supplied product photos and display every model upright. */
.product-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-gallery .product-photo { position: relative; aspect-ratio: 3 / 4; background: white; }
.product-gallery .product-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.product-gallery .product-photo[data-rotate] img { position: absolute; width: 133.3333%; height: 75%; max-width: none; top: 12.5%; left: -16.6667%; transform: rotate(-90deg); }
.viewer-stage figure.viewer-rotated { position: relative; }
.viewer-stage figure.viewer-rotated img { position: absolute; top: 50%; left: 50%; max-width: none; transform: translate(-50%, -50%) rotate(-90deg); }
.viewer-stage figure.viewer-rotated figcaption { position: absolute; bottom: 0; left: 0; right: 0; background: #111; }
@media(max-width: 900px) {
    .product-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-gallery figure:last-child { grid-column: auto; }
    .product-gallery figure:last-child img { height: 100%; }
}
@media(max-width: 380px) { .product-gallery { grid-template-columns: 1fr; } }

/* A compact, uncropped cover for the product collections. */
.detail-cover.product-cover { width: min(100%, 340px); justify-self: center; background: #fff; }
.product-cover .gallery-zoom { height: 400px; }
.detail-cover.product-cover img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; }
.product-cover figcaption { pointer-events: none; padding: 36px 18px 18px; }
@media(max-width: 650px) {
    .detail-cover.product-cover { width: min(100%, 300px); }
    .product-cover .gallery-zoom { height: 350px; }
}

/* Manual navigation within the existing product cover. */
.product-cover .cover-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #0002; border-radius: 50%; background: #fffffff0; color: #a51d28; cursor: pointer; box-shadow: 0 2px 10px #0001; }
.product-cover .cover-prev { left: 10px; }
.product-cover .cover-next { right: 10px; }
.product-cover .cover-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.product-cover .cover-arrow:hover { background: #fbeaec; }
.product-cover .cover-arrow:focus-visible { outline: 3px solid #e63946; outline-offset: 2px; }
.product-cover .gallery-zoom { position: relative; }
.product-cover .gallery-zoom[data-rotate] img { position: absolute; top: 50%; left: 50%; max-width: none; transform: translate(-50%, -50%) rotate(-90deg); }
