.sort-bar {
    opacity: 1 !important;
}
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.loading-overlay > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.loading-overlay i {
    display: block;
    margin-bottom: 15px;
}
.loading-overlay p {
    margin: 0;
}
#products-container {
    position: relative;
    min-height: 400px;
}
#products {
    height: auto !important;
}

/* Product animation styles */
#products .item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

#products .item.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for multiple products */
#products .item.fade-in:nth-child(1) { transition-delay: 0.05s; }
#products .item.fade-in:nth-child(2) { transition-delay: 0.1s; }
#products .item.fade-in:nth-child(3) { transition-delay: 0.15s; }
#products .item.fade-in:nth-child(4) { transition-delay: 0.2s; }
#products .item.fade-in:nth-child(5) { transition-delay: 0.25s; }
#products .item.fade-in:nth-child(6) { transition-delay: 0.3s; }
#products .item.fade-in:nth-child(n+7) { transition-delay: 0.35s; }

/* Smooth fade out when removing products - faster to prevent gap */
#products .item.fade-out {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.15s ease-in, transform 0.15s ease-in;
}
