header {
    position: sticky;
}

.product-title__slide {
    height: 180px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-title__slide h2 {
    font-size: 30px;
    font-weight: 700;
}

.product-types .product-types__layout {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.product-types .product-types__layout .product-types__image {
    width: 100%;
    transition: all 1s ease;
}

.product-types .product-types__layout .product-types__image img {
    border-radius: 5px;
    width: 100%;
    transition: all 1s ease;
}

.product-types .product-types__layout .product-types__image:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.product-types .product-types__layout .product-types__image:hover img {
    transform: scale(1.03);
}

/* Image Stack */
.image-stack {
    position: relative;
    width: 300px;
    height: 200px;
    margin-right: 100px;
}

.image-stack img {
    position: absolute;
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease, z-index 0.3s ease;
}

.image-stack img:nth-child(1) {
    transform: translateX(200px);
    z-index: 3;
}

.image-stack img:nth-child(2) {
    transform: translateX(100px);
    z-index: 2;
}

.image-stack img:nth-child(3) {
    transform: translateX(0);
    z-index: 1;
}

/* Khi hover vào container, làm mờ tất cả ảnh */
.image-stack:hover img {
    opacity: 0.5;
    filter: blur(3px);
}

/* Khi hover vào từng ảnh, khôi phục và tăng z-index */
.image-stack img:hover {
    opacity: 1;
    filter: none;
    z-index: 10;
    /* Đưa ảnh hover lên trên */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Hiệu ứng transform cho từng ảnh */
.image-stack img:nth-child(1):hover {
    transform: translateX(200px) translateY(-20px) scale(1.1);
    /* Ảnh 3 */
}

.image-stack img:nth-child(2):hover {
    transform: translateX(100px) translateY(-20px) scale(1.1);
    /* Ảnh 2 */
}

.image-stack img:nth-child(3):hover {
    transform: translateX(0) translateY(-20px) scale(1.1);
    /* Ảnh 1 */
}

/* Mobile */
@media (max-width: 767.9px) {
    .image-stack {
        display: none;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024.9px) {
    .product-title__slide {
        height: 250px;
    }

    .product-title__slide h2 {
        font-size: 35px;
    }

    .product-types .product-types__layout {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        margin-top: 40px;
        margin-bottom: 40px;
    }
}

/* PC */
@media (min-width: 1025px) {
    .product-title__slide {
        height: 300px;
    }

    .product-title__slide h2 {
        font-size: 50px;
    }

    .product-types .product-types__layout {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        margin-top: 60px;
        margin-bottom: 60px;
    }
}