.hero-theme {
    background: linear-gradient(90deg, #212529 0%, #343a40 55%, #111827 100%);
}

.media-cover {
    height: 250px;
    object-fit: cover;
}

.card .small.ps-2 {
    text-decoration: none;
}

.pagination {
    justify-content: center;
}

.product-detail-shell {
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,249,250,.92));
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 1.5rem;
    padding: 1rem;
    box-shadow: 0 1rem 2rem rgba(0,0,0,.04);
}

.product-media-panel {
    position: relative;
}

.product-media-carousel {
    position: relative;
}

.media-zoom-trigger {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.media-zoom-trigger > img,
.media-zoom-trigger > video {
    pointer-events: none;
}

.product-hero-media,
.product-hero-empty {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #f8f9fa;
    border-radius: 1.25rem;
    box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.08);
}

.product-hero-empty {
    display: grid;
    place-items: center;
    color: #6c757d;
    font-weight: 600;
}

.video-play-badge,
.thumb-video-label {
    position: absolute;
    left: .75rem;
    bottom: .75rem;
    padding: .25rem .55rem;
    font-size: .72rem;
    border-radius: 999px;
    color: #fff;
    background: rgba(0,0,0,.72);
}

.thumb-carousel-wrap {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.product-thumb,
.viewer-thumb,
.gallery-card {
    position: relative;
    border: 0;
    padding: 0;
    background: transparent;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
}

.product-thumb img,
.product-thumb video,
.viewer-thumb img,
.viewer-thumb video,
.gallery-card-media {
    width: 100%;
    display: block;
    object-fit: cover;
    background: #f8f9fa;
}

.product-thumb img,
.product-thumb video {
    aspect-ratio: 1 / 1;
}

.product-thumb.is-active {
    outline: 3px solid #212529;
    outline-offset: 2px;
}

.thumb-strip {
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    padding: .25rem 0 .5rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    flex: 1;
}

.thumb-strip::-webkit-scrollbar {
    display: none;
}

.thumb-strip .product-thumb {
    flex: 0 0 82px;
    scroll-snap-align: start;
}

.product-info-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.25rem;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.05);
}

.product-title {
    font-size: clamp(1.8rem, 3vw, 3rem);
    font-weight: 800;
    line-height: 1.05;
}

.product-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: #111827;
}

.product-description {
    font-size: 1.02rem;
    line-height: 1.7;
    color: #4b5563;
}

.section-title {
    font-weight: 800;
}

.media-viewer-modal .modal-content {
    border-radius: 1.25rem;
    border: 0;
    overflow: hidden;
    box-shadow: 0 1.5rem 4rem rgba(0,0,0,.22);
}

.viewer-stage {
    border-radius: 1.25rem;
    overflow: hidden;
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    min-height: 52vh;
    display: grid;
    place-items: center;
    padding: .5rem;
}

.viewer-media {
    width: 100%;
    max-height: 75vh;
    object-fit: contain;
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
    border-radius: .9rem;
    box-shadow: 0 .75rem 2rem rgba(0,0,0,.28);
}

.viewer-thumb.is-active {
    outline: 3px solid #212529;
    outline-offset: 2px;
}

.product-carousel-control {
    width: 4rem;
    opacity: 1;
}

.product-carousel-control .carousel-control-prev-icon,
.product-carousel-control .carousel-control-next-icon {
    background-color: rgba(17, 24, 39, .8);
    border-radius: 999px;
    background-size: 55% 55%;
    padding: 1.4rem;
}

.thumb-strip-nav {
    border: 0;
    background: linear-gradient(180deg, #ffffff 0%, #f3f4f6 100%);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    box-shadow: 0 .35rem .9rem rgba(0,0,0,.14);
    font-size: 1.5rem;
    line-height: 1;
    color: #111827;
}

.viewer-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: .75rem;
}

.viewer-thumb img,
.viewer-thumb video {
    aspect-ratio: 1 / 1;
    border-radius: .85rem;
    box-shadow: 0 .35rem 1rem rgba(0,0,0,.14);
}

.viewer-thumb .thumb-video-label {
    bottom: .45rem;
    left: .45rem;
}

@media (max-width: 991.98px) {
    .product-detail-shell {
        padding: .75rem;
        border-radius: 1rem;
    }

    .product-info-card {
        padding: 1rem;
    }

    .viewer-stage {
        min-height: 34vh;
    }

    .thumb-strip-nav {
        flex: 0 0 auto;
    }
}
