/* Shared by the public layouts (including home v1) and the product admin. */
.product-coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    max-width: 100%;
    padding: .375rem .625rem;
    border-radius: 9999px;
    background: #f97316;
    color: #fff !important;
    font-size: .75rem;
    font-weight: 800;
    line-height: 1rem;
    white-space: nowrap;
    vertical-align: middle;
    text-decoration: none;
}

.product-coming-soon-badge i { color: #fff !important; }

.product-coming-soon-badge--card {
    position: absolute;
    top: .5rem;
    left: .5rem;
    z-index: 1;
    max-width: calc(100% - 1rem);
}

/* Reserve a strip above the photo instead of covering the product. */
.product-coming-soon-media {
    position: relative;
    padding-top: 2.5rem !important;
}

.product-coming-soon-media > .absolute.inset-0 {
    top: 2.5rem;
    padding-top: 0;
}

.product-coming-soon-media--related { height: 6rem; }
.product-coming-soon-media--download { height: 11rem; }

.product-coming-soon-media--related img,
.product-coming-soon-media--related video,
.product-coming-soon-media--download img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.product-launch-notice {
    margin-top: 2rem;
    padding: .875rem 1rem;
    border-left: 3px solid #f97316;
    border-radius: .75rem;
    background: #f8fafc;
    color: #334155;
    font-size: .875rem;
    line-height: 1.5;
}

.product-launch-checkbox { accent-color: #f97316; }
.product-launch-checkbox:focus-visible { outline: 2px solid #f97316; outline-offset: 2px; }

.product-detail-gallery { min-width: 0; max-width: 100%; }
.product-detail-main-media {
    object-fit: contain;
    background: #fff;
}
.product-detail-thumbs {
    display: flex;
    gap: .75rem;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: .25rem;
    scroll-snap-type: x proximity;
}
.product-detail-thumb {
    flex: 0 0 5.5rem;
    width: 5.5rem;
    margin: 0;
    padding: .25rem;
    border: 1px solid #e2e8f0;
    border-radius: .75rem;
    background: #fff;
    scroll-snap-align: start;
    cursor: pointer;
}
.product-detail-thumb img,
.product-detail-thumb video {
    display: block;
    width: 100%;
    height: 4rem;
    object-fit: contain;
    background: #fff;
    border-radius: .5rem;
}
.product-detail-thumb.is-active { border-color: #f97316; }
.product-detail-thumb:focus-visible {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}
.variant-photo-row {
    display: grid;
    gap: .75rem;
}
@media (min-width: 1024px) {
    .variant-photo-row {
        grid-template-columns: 7rem minmax(0, 1fr) minmax(0, 1fr) auto;
        align-items: end;
    }
}
.variant-saved-thumb {
    object-fit: contain;
    background: #fff;
}
