/* =====================================================
   Product Hero Heading Slider (fb 4.docx items 6, 8, 9, 10)
   Hình heading di chuyển qua lại mượt mà trong .pp-hero-art
   ===================================================== */

/* Đảm bảo text bên trái luôn nằm trên ảnh và lớp fade */
.pp-hero-copy {
    position: relative;
    z-index: 5 !important;
}
.pp-hero-art {
    z-index: 1 !important;
}

/* Override riêng cho trang Color Management (.pp-family-color vốn ẩn .pp-hero-art và dùng ::before + background tĩnh) */
.pp-family-color .pp-hero:has(.pp-hero-slider) {
    background: #edf5fc !important;
    background-image: none !important;
}
.pp-family-color .pp-hero:has(.pp-hero-slider)::before {
    display: none !important;
    content: none !important;
}
.pp-family-color .pp-hero-art:has(.pp-hero-slider) {
    visibility: visible !important;
}
.pp-family-color .pp-hero-slider-stage::after {
    background: linear-gradient(90deg, #edf5fc 0%, transparent 28%, transparent 94%, #edf5fc 100%);
}

.pp-hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.pp-hero-slider-stage {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 320px;
}

/* Lớp blur/fade mép ảnh hòa vào nền hero giống các trang sản phẩm khác */
.pp-hero-slider-stage::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #eef6fc 0%, transparent 28%, transparent 94%, #eef6fc 100%);
    pointer-events: none;
    z-index: 3;
}
.pp-hero.pp-dark .pp-hero-slider-stage::after {
    background: linear-gradient(90deg, #001b3b 0%, transparent 28%, transparent 94%, #001b3b 100%);
}
.pp-family-carton .pp-hero-slider-stage::after {
    background: linear-gradient(90deg, #001c3d 0%, transparent 28%, transparent 94%, #001c3d 100%);
}

.pp-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(28px);
    visibility: hidden;
    transition: opacity .6s ease, transform .6s ease, visibility .6s ease;
    z-index: 1;
}

.pp-hero-slide.is-active {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
    z-index: 2;
}

.pp-hero-slide.is-prev {
    opacity: 0;
    transform: translateX(-28px);
}

.pp-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* Controls nằm gọn góc dưới phải, nổi trên lớp ::after fade */
.pp-hero-slider-controls {
    position: absolute;
    bottom: 14px;
    right: 48px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(7, 27, 61, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    padding: 5px 10px;
    border-radius: 999px;
}

.pp-hero-arrow {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    cursor: pointer;
    padding: 0;
    transition: background .2s, color .2s;
}
.pp-hero-arrow:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.pp-hero-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 2px;
}

.pp-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0;
    transition: width .25s, background .25s;
}
.pp-hero-dot.is-active {
    width: 18px;
    border-radius: 4px;
    background: #f50087;
}

@media (max-width: 1199px) {
    .pp-hero-slider-stage {
        aspect-ratio: 16 / 9;
        height: auto;
        min-height: 0;
    }
    .pp-hero-slider-stage::after {
        background: linear-gradient(180deg, #eef6fc 0%, transparent 22%);
    }
    .pp-hero.pp-dark .pp-hero-slider-stage::after {
        background: linear-gradient(180deg, #001b3b 0%, transparent 22%);
    }
    .pp-family-carton .pp-hero-slider-stage::after {
        background: linear-gradient(180deg, #001c3d 0%, transparent 22%);
    }
    .pp-family-color .pp-hero-slider-stage::after {
        background: linear-gradient(180deg, #edf5fc 0%, transparent 22%);
    }
    .pp-hero-slider-controls {
        right: 14px;
        bottom: 12px;
    }
}

/* ── Video minh họa trong trang sản phẩm (fb 4.docx item 7) ── */
.pp-split-video-wrap {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #00142b;
    box-shadow: 0 12px 32px rgba(7, 27, 61, 0.14);
}
.pp-split-video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* ── Prepress Automation / HYBRID Hero Slider (fb 4.docx item 10) ── */
.hy-hero:has(.hy-hero-bg-slider) {
    position: relative;
    background: #001c3d !important;
}
.hy-hero:has(.hy-hero-bg-slider) .hy-hero-grid {
    position: relative;
    z-index: 3;
    background: none !important;
    pointer-events: none;
    overflow: hidden;
}
.hy-hero:has(.hy-hero-bg-slider) .hy-hero-copy,
.hy-hero:has(.hy-hero-bg-slider) .hy-partners {
    position: relative;
    z-index: 4;
    pointer-events: auto;
}
.hy-hero-bg-slider {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 68%;
    z-index: 1;
}
.hy-hero-bg-slider .pp-hero-slider-stage::after {
    background: linear-gradient(90deg, #001c3d 0%, rgba(0, 28, 61, 0.92) 22%, rgba(0, 28, 61, 0.35) 50%, transparent 78%, #001c3d 100%);
}
.hy-hero-bg-slider .pp-hero-slider-controls {
    right: 20px;
    bottom: 16px;
    z-index: 6;
    pointer-events: auto;
}
@media (max-width: 920px) {
    .hy-hero-bg-slider {
        width: 100%;
        opacity: 0.45;
    }
    .hy-hero-bg-slider .pp-hero-slider-stage::after {
        background: linear-gradient(180deg, #001c3d 0%, rgba(0, 28, 61, 0.65) 55%, #001c3d 100%);
    }
    .hy-hero-bg-slider .pp-hero-slider-controls {
        right: 16px;
        bottom: 12px;
    }
}
