/* Product Instagram Reels v1.2 – ON THE 'GRAM story-style auto slider */

.pir-reel-section {
    margin: 40px auto 36px;
    max-width: 1100px;
    padding: 24px 12px 28px;
    clear: both;
    text-align: center;
    background: #f4ff5a; /* bright accent like demo – change if needed */
    border-radius: 16px;
}

.pir-reel-title {
    margin: 0 0 6px;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0a472e;
}

.pir-reel-subtitle {
    margin: 0 0 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #5a6f64;
}

.pir-slider-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
}

.pir-slider {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.pir-track {
    display: flex;
    gap: 12px;
    transition: transform 0.45s ease;
    will-change: transform;
}

/* Story / reel card – portrait */
.pir-slide {
    flex: 0 0 160px;
    width: 160px;
    box-sizing: border-box;
}

.pir-card-title {
    display: none; /* keep cards clean like demo */
}

.pir-ig-card,
.pir-video-wrap,
.pir-iframe-wrap {
    width: 160px;
    height: 280px;
    border-radius: 14px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
    position: relative;
}

.pir-video-wrap video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
    pointer-events: none; /* no control panel interaction */
}

/* Hide native video controls completely */
.pir-video-wrap video::-webkit-media-controls {
    display: none !important;
}
.pir-video-wrap video::-webkit-media-controls-enclosure {
    display: none !important;
}

.pir-ig-card {
    padding: 0;
    border: none;
}

.pir-ig-card blockquote.instagram-media {
    margin: 0 !important;
    max-width: 160px !important;
    min-width: 160px !important;
    width: 160px !important;
}

.pir-open-link {
    margin: 6px 0 0;
    font-size: 0.7rem;
}

.pir-open-link a {
    color: #0a472e;
    font-weight: 600;
}

.pir-iframe-wrap {
    padding-bottom: 0;
    height: 280px;
}

.pir-iframe-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

.pir-nav {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #0a472e;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(10, 71, 46, 0.25);
    transition: background 0.2s, transform 0.15s;
}

.pir-nav:hover {
    background: #063520;
    transform: scale(1.05);
}

.pir-nav:disabled {
    opacity: 0.4;
    cursor: default;
    transform: none;
}

/* Melanam green strip instead of yellow if preferred – override */
.single-product .pir-reel-section {
    background: linear-gradient(180deg, #f8fbf9 0%, #e8f5ee 100%);
}

@media (min-width: 768px) {
    .pir-slide {
        flex: 0 0 180px;
        width: 180px;
    }
    .pir-ig-card,
    .pir-video-wrap,
    .pir-iframe-wrap {
        width: 180px;
        height: 320px;
    }
}

@media (max-width: 560px) {
    .pir-slide {
        flex: 0 0 140px;
        width: 140px;
    }
    .pir-ig-card,
    .pir-video-wrap,
    .pir-iframe-wrap {
        width: 140px;
        height: 250px;
    }
}
