/* ============================================
   PRODUCT GALLERY CAROUSEL - INFINITE SCROLL
   ============================================ */

.product-gallery {
    padding: 100px 0;
    background: #ffffff;
    overflow: hidden;
}

.product-gallery__container {
    max-width: 100%;
}

/* Header */
.product-gallery__header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
}

.product-gallery__label {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-cyan);
    margin-bottom: 20px;
}

.product-gallery__title {
    font-size: 42px;
    font-weight: 800;
    color: var(--color-black);
    margin-bottom: 20px;
    line-height: 1.2;
}

.product-gallery__title-accent {
    color: var(--color-cyan);
}

.product-gallery__subtitle {
    font-size: 18px;
    color: #666666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Carousel Wrapper */
.product-gallery__carousel-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 60px;
}

.product-gallery__carousel-wrapper::before,
.product-gallery__carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.product-gallery__carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #ffffff 0%, transparent 100%);
}

.product-gallery__carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #ffffff 0%, transparent 100%);
}

/* Carousel */
.product-gallery__carousel {
    display: flex;
    gap: 30px;
    animation: infiniteScroll 60s linear infinite;
    width: fit-content;
}

.product-gallery__carousel:hover {
    animation-play-state: paused;
}

@keyframes infiniteScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.333%);
    }
}

/* Gallery Item */
.product-gallery__item {
    flex-shrink: 0;
    width: 380px;
}

.product-gallery__card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.product-gallery__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.product-gallery__image-box {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.product-gallery__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-gallery__card:hover .product-gallery__image {
    transform: scale(1.1);
}

/* Overlay */
.product-gallery__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-gallery__card:hover .product-gallery__overlay {
    opacity: 1;
}

.product-gallery__overlay-content {
    width: 100%;
}

.product-gallery__category {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-yellow);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.product-gallery__name {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 20px;
    line-height: 1.3;
}

.product-gallery__button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--color-cyan);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.product-gallery__button:hover {
    background: var(--color-yellow);
    color: var(--color-black);
    transform: translateX(5px);
}

/* Badge */
.product-gallery__badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--color-yellow);
    color: var(--color-black);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

/* CTA */
.product-gallery__cta {
    text-align: center;
    padding: 0 20px;
}

.product-gallery__cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: var(--color-black);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 17px;
    transition: all 0.3s ease;
}

.product-gallery__cta-button:hover {
    background: var(--color-cyan);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(7, 158, 229, 0.3);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .product-gallery {
        padding: 60px 0;
    }
    
    .product-gallery__title {
        font-size: 32px;
    }
    
    .product-gallery__subtitle {
        font-size: 16px;
    }
    
    .product-gallery__item {
        width: 300px;
    }
    
    .product-gallery__image-box {
        height: 260px;
    }
    
    .product-gallery__carousel-wrapper::before,
    .product-gallery__carousel-wrapper::after {
        width: 50px;
    }
    
    .product-gallery__carousel {
        gap: 20px;
    }
}

@media screen and (max-width: 480px) {
    .product-gallery {
        padding: 50px 0;
    }
    
    .product-gallery__title {
        font-size: 28px;
    }
    
    .product-gallery__item {
        width: 260px;
    }
    
    .product-gallery__image-box {
        height: 220px;
    }
    
    .product-gallery__name {
        font-size: 18px;
    }
}
