/*
 * assets/css/pages/category-catalog.css
 * Rules that only the products page family (main.products-page: /products, /flours, /gift-hampers) uses.
 * Loaded after category.css.
 *
 * Loaded by:  includes/category/view.php when the page variant is "catalog".
 * Contents:   hero banner cross-fade, shimmer keyframes, custom category dropdown option state and the cart
 *             button hover colour. The rice and millets pages keep different values, see category-listing.css.
 */

/* Banner slides */
.banner-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: bannerFade 12s infinite ease-in-out;
}
.banner-slide:nth-child(1) { animation-delay: 0s; }
.banner-slide:nth-child(2) { animation-delay: 6s; }

@keyframes bannerFade {
    0%   { opacity: 1; }
    45%  { opacity: 1; }
    55%  { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes cs-shimmer {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}

.ia-add:hover { background: #1e293b; }

/* Custom select (bold options work here, unlike a native select) */
.custom-select-option.selected {
    background: #d1fae5;
    color: #065f46;
    font-weight: 700;
}
