/* Product detail video hero styles */
.video-hero{
    position:relative;
    overflow:hidden;
    height: calc(100vh - 100px);
    display:block;
    background:#111;
    width:100%;
}

.video-hero .bg-video,
.video-hero .bg-image{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    object-fit:cover;
    z-index:0;
    pointer-events:none;
}
.video-hero .bg-image{width:100%;height:100%;top:0;left:0;transform:none;object-fit:cover}

/* nunca borrar la clase video-overlay, no se usa en ningun lado pero sin eso se rompe el diseño del hero */
.video-hero .video-overlay{ 
    position:absolute;
    inset:0;
    background:linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 100%);
    z-index:1;
    pointer-events:none;
}
.video-hero .hero-content{
    position:relative;
    z-index:2;
    color:#fff;
    padding:40px 0;
    height: 100%;

    display: flex;
    flex-direction: column;
}
.video-hero .text-accent{color:#c3df00}
.video-hero .hero-title{font-size:2.2rem;margin-top:.5rem}
.video-hero .hero-copy{margin-top:.75rem}

.main-logo-video{
    width: 100%;
}
.main-logo-video img{
    width: 100%;
    margin-top: -50px !important;
}
.stats-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 100%;
    text-align: center;
}
.stat{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.product-stats{
    margin-top: 0; 
    text-align: center;
    font-family: 'Scion', sans-serif;
    color: #fff;
}
.stat-label{
    font-size: clamp(0.3rem, 1vw, 1.5rem);
    white-space: nowrap;
}
.stat-value{
    font-size: clamp(0.8rem, 4vw, 3rem);
    line-height: 1;
    white-space: nowrap;
}
.stat-unit{
    color: red;
    -webkit-text-stroke: 2px;    
}

.stat-icon{
    width: clamp(28px, 4vw, 50px);
    height: clamp(28px, 4vw, 50px);
    display:block;
    flex-shrink:0;
}

.product-name{
    font-size: 25px !important;
    font-weight: 300 !important;
}
.product-description{
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 20px !important;
    letter-spacing: 1px;
}

.branding-text h3{
    font-size: 20px !important;
    line-height: 30px !important;
    letter-spacing: 1px;
}

.branding-description{
    font-size: 15px !important;
    line-height: 20px !important;
    letter-spacing: 1px;
}

.product-branding{
    background-image: url('/static/images/product_details/product-background.png');
    background-size: cover;
    background-position: center;
    padding: 60px 0;
    color: #fff;
    min-height: 570px;
    font-size: 25px;
    font-weight: 300;
}

.product-branding p{
    font-size: 15px !important;
  font-weight: 400;
  line-height: 20px !important;
  letter-spacing: 1px;
}
.brand_gallery{
    width: 100%;
    max-width: 400px;
    height: 500px !important;
}
.brand-item {
    flex: 0 0 100%;
    height: 500px;
}

/* 💻 md en adelante */
@media (min-width: 768px) {
    .brand-item {
        flex: 1 1 0;
        max-width: 400px;
    }
}

.brand_gallery .img-container{        
    height: 390px !important;
    overflow: hidden;
}

.brand_gallery .img-container img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand_gallery h5{
    font-style: normal;
    letter-spacing: 1px;
}

.product-gallery{
    background-image: url('/static/images/product_details/bg-black.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
}



.bg-light{
    color: #111 !important;
}

.brand-card{
    height: 400px
}



#productGalleryCarousel {
    height: 350px;    
}

#productGalleryCarousel .carousel-inner {
    height: 350px;
}
#productGalleryCarousel .carousel-item {
    height: 350px;
}


#productGalleryCarousel img {
    max-width: 100%;
    height: 100%;              /* 🔥 clave */
    object-fit: contain; 
    overflow: hidden;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.dowloads{
    min-height: 430px;
}

.manual-usuario{
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 60px 0;
    height: 430px;
}

.ficha-tecnica{
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 60px 0;
    height: 430px;
}

.respaldo-mb{
    background-image: url('/static/images/product_details/bg-gray.jpg');
    background-size: cover;
    background-position: center;
    color: #000;
    padding: 60px 0;
    min-height: 430px;
}

.video-content{
    width: 100%;
    max-width: 350px;
    margin: 100px auto 0 auto;
    height: auto;    
}
.video-content img{
    width: 100%;
    
}


#view-360 h2{
    line-height: 10px !important;
    font-weight: 300 !important;
    letter-spacing: 1px !important;
    font-style: normal !important;
    font-size: 20px !important;
}

/* view-360 overrides: ensure images respect intended height and cover */
#view-360-carousel img.main-view-360,
#view-360-carousel img.carousel-frame,
#view-360-carousel .carousel-frame.main-view-360 {
    /* make images fill the carousel container height */
    height: 100% !important;
    max-height: none !important;
    width: auto !important;
    object-fit: cover !important;
    max-width: 100% !important;
}

/* Todas ocultas por defecto */
#view-360-carousel img.carousel-frame {
    display: none;
}

/* Solo la activa visible */
#view-360-carousel img.carousel-frame.active {
    display: block;
}


img.main-view-360,
 img.carousel-frame {
    min-height: 100% !important;
    max-width: none !important;
    align-self: stretch !important;
    max-width: 100% !important;
}

/* Variant color swatches */
.variant-color-swatch{
    display:inline-block;
    width:40px !important;
    height:40px !important;
    border-radius:50%;
    margin:0 5px;
    cursor:pointer;
    box-sizing: border-box;
    border: 2px solid rgba(0,0,0,0.12);
}
.variant-color-swatch.active{
    border-color: #000;
    box-shadow: 0 0 0 4px rgba(0,0,0,0.06) inset;
}


/* Contenedor centrado abajo */
.custom-indicators {
    position: static; /* 👈 clave (quita absolute) */
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

/* Botones normales */
.custom-indicators button {
    width: 10px;
    height: 10px;
    background-color: #000 !important; /* negro */
    opacity: 0.4;
    border: none;
}

/* Activo */
.custom-indicators .active {
    opacity: 1;
}

.respaldo-mb h2{
    font-size: 25px;
    line-height: 28px;
    letter-spacing: 1px;
    font-style: normal !important;
}
.respaldo-mb h6{
    font-size: 15px;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 1px;
}



@media (min-width: 768px){
    #productGalleryCarousel {
    height: 700px;
    
    }

    #productGalleryCarousel .carousel-inner {
        height: 700px;
    }
    #productGalleryCarousel .carousel-item {
        height: 700px;
    }
    #view-360-carousel{
        height: 700px;
    }
    .image-hero{
        background-image: url('/static/images/product_details/bg-gray.jpg');
        height: calc(100vh - 100px);
        background-size: cover;
        background-position: center;
    }
    
}
@media (max-width: 768px){
    .main-logo-video-container  {
        position: absolute;        
        bottom: 10%;
        left: 0;
        width: 100%;
    }
    .stats-grid{
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
    }
    .product-stats{
        margin-top: 0; 
    }
    .stat-unit{
        font-size: clamp(0.5rem, 0.5vw, 1.5rem);
    }
    .bg-video {        
        height: 45vh !important;
        top: 10 !important; 
        left: 0;
        transform: none;
        object-fit: contain;
        overflow: hidden;

    }
    .video-content{
        top: 50%;
    }
    .image-hero{
        background-image: url('/static/images/product_details/bg-gray.jpg');
        background-size: cover;
        background-position: center;
        padding-bottom: 20px;
    }
 
}

.animate__animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
  }
  100% {
    opacity: 1;
    transform: translateZ(0);
  }
}

.animate__fadeInUp {
  animation-name: fadeInUp;
}

#related-accessories{
    background-image: url('/static/images/product_details/MB-Singl-Performance-Beretta-Section7-background-1-1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
}