/* ─── Infinite Scrolling Product Banner ─────────────────────────── */

.marquee-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    background: var(--glass-bg-light);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

.marquee-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: marqueeScroll 30s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-item {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--glass-bg-medium);
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.marquee-item:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.marquee-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.marquee-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.marquee-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.marquee-item:hover .marquee-image-wrapper img {
    transform: scale(1.08);
}

.marquee-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg-light);
    color: var(--text-on-dark-muted);
    font-size: 2rem;
}

.marquee-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 14px;
    background: linear-gradient(to top, rgba(0, 10, 25, 0.85) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.marquee-item:hover .marquee-overlay {
    opacity: 1;
}

.marquee-product-name {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.marquee-category {
    display: block;
    font-size: 0.65rem;
    color: var(--color-primary-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ─── Pause on hover ────────────────────────────────────────────── */
.marquee-section:hover .marquee-track {
    animation-play-state: paused;
}

/* ─── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .marquee-item {
        width: 140px;
        height: 140px;
    }
    .marquee-product-name {
        font-size: 0.7rem;
    }
    .marquee-category {
        font-size: 0.55rem;
    }
}

@media (max-width: 480px) {
    .marquee-item {
        width: 100px;
        height: 100px;
        border-radius: var(--radius-sm);
    }
    .marquee-overlay {
        padding: 8px 10px;
    }
}