/*
 * Product detail page styles (productDetail.blade.php).
 * Moved out of the inline <style> blocks so the browser can cache them.
 * Loaded with getAssetsVersion() for cache busting.
 */

/* ---- WhatsApp fixed button is hidden on the product page ---- */
.fix-whatsapp-button {
    display: none;
}


/* ---- Video facade: poster + play button, same box as .image-gallery-swiper-image (375px / 420px) ---- */
.pdp-video-facade {
    position: relative;
    display: block;
    width: 100%;
    height: 375px;
    padding: 0;
    border: 0;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
}
/* The poster fills the slide box; a 16:9 cover loses only a sliver at the edges. */
.pdp-video-facade-cover {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Video thumbs: YouTube's 4:3 frame carries baked-in black bars, so fill the 75x75 box instead of letterboxing. */
.image-gallery-swiper-thumb-image.pdp-video-thumb {
    object-fit: cover;
}
.pdp-video-facade-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    transition: background-color .2s ease, transform .2s ease;
}
.pdp-video-facade:hover .pdp-video-facade-play,
.pdp-video-facade:focus-visible .pdp-video-facade-play {
    background: rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.08);
}
.pdp-video-facade-play img {
    width: 36px;
    height: 36px;
}
.pdp-video-slide iframe {
    display: block;
    width: 100%;
    height: 375px;
    border: 0;
    background: #000;
}
@media (min-width: 1024px) {
    .pdp-video-facade,
    .pdp-video-slide iframe {
        height: 420px;
    }
}


/* ---- Zoom modal ---- */
/* Override the fixed 420px gallery image height inside the zoom modal */
#productImagesModal .image-gallery-swiper-image {
    height: 70vh;
    max-height: 70vh;
}


/* ---- Offer button pulse: .is-pulsing is added in Blade when the product is active ---- */
.btn-get-offer-button.is-pulsing {
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}


/* ---- Important information collapse ---- */
.important-information-content-container {
    padding: 4px 0;
}
.important-information-bg img {
    min-width: 220px;
    width: 220px;
}
ul.important-information-list li {
    line-height: 15px;
}
.collapse-trigger {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.15s ease-in-out;
    position: relative;
    font-family: Satoshi, Arial, sans-serif;
}
.collapse-trigger > strong {
    font-size: 15px!important;
    font-weight: 600!important;
}

.collapse-trigger:hover {
    background-color: #e9ecef;
}

.collapse-trigger .caret-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #6c757d;
}

.collapse-trigger[aria-expanded="true"] .caret-icon {
    transform: translateY(-50%) rotate(180deg);
}

.important-information-content-container {
    margin-top: 0;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 6px 6px;
}

.important-information-list {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 0;
}

.important-information-list li {
    margin-bottom: 8px;
    color: #495057;
}

.important-information-bg {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
}

.important-information-bg img {
    max-width: 100%;
    height: auto;
}

