/* ========================================
   Homepage V2 – Custom Animations & Effects
   ======================================== */

/* Shimmer effect for trust/marketplace bars */
.shimmer-bg {
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 3s infinite linear;
}
@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Hide scrollbar */
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

/* Scroll-reveal base */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal="zoom"] {
    transform: scale(0.9);
}
[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Category grid fade transition */
#categoryProductGrid {
    transition: opacity 0.3s ease;
}

/* ── Category Filter Tabs ── */
.cat-tabs-track {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f3f4f6;
    border-radius: 9999px;
    padding: 6px 8px;
}

/* Mobile: horizontal scroll carousel */
@media (max-width: 639px) {
    .cat-tabs-track {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        -ms-overflow-style: none;
        scrollbar-width: none;
        max-width: 100%;
        padding: 5px 6px;
        gap: 8px;
    }
    .cat-tabs-track::-webkit-scrollbar { display: none; }
    .cat-tabs-track .cat-tab {
        scroll-snap-align: start;
        flex-shrink: 0;
    }
}

.cat-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}
.cat-tab.active {
    font-weight: 600;
}

@media (max-width: 639px) {
    .cat-tab {
        padding: 7px 14px;
        font-size: 12px;
        gap: 5px;
    }
}

/* Line clamp fallback */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Marketplace card hover arrow */
.mp-arrow {
    transition: transform 0.4s ease;
}
.mp-card:hover .mp-arrow {
    transform: translateX(4px);
}
