/* Custom CSS to fix hover issue in sidebar */
/* This rule ensures only the direct anchor child of the hovered list item changes color */
.main-sidebar-1 .single-sidebar-widget__shop-widget-categories ul li:hover > a {
    color: var(--theme3);
}

/* This rule resets the color for all other anchors within the hovered list item */
.main-sidebar-1 .single-sidebar-widget__shop-widget-categories ul li:hover a:not(:hover) {
    color: inherit;
}

/* View toggle buttons styling */
.view-toggle-buttons {
    display: flex;
    gap: 10px;
}

.view-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background-color: #f9f7e0;
    border: 1px solid #ece303;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-toggle:hover {
    background-color: #f0e980;
}

.view-toggle.active {
    background-color: #592781;
    color: white;
    border-color: #592781;
}

/* Loading indicator for products container */
#products-container.loading {
    position: relative;
    min-height: 200px;
}

#products-container.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

#products-container.loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin-top: -25px;
    margin-left: -25px;
    border: 5px solid #e9e2f0;
    border-top: 5px solid #592781;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 2;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Product card styles for view type 1 */
.best-seller-one {
    position: relative;
}

.best-seller-one__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #592781;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}

.best-seller-one__category {
    color: #3d1b56;
    font-size: 12px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.best-seller-one__location {
    font-size: 12px;
    color: #4a2266;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.best-seller-one__location i {
    color: #592781;
}

/* Product card styles for view type 2 */
.best-seller-product-items-two__details--location {
    font-size: 12px;
    color: #4a2266;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.best-seller-product-items-two__details--location i {
    color: #592781;
}

.swiper-slide .product-box-items-one a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.best-seller-one__thumb img, .best-seller-product-items-two__thumb img {
    object-fit: contain;
    object-position: center;
    display: block;
    height: 100%;
    width: 100%;
}

.best-seller-product-items-two__thumb {
    border-radius: 10px;
    background-color: #F6F6F6;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 126px;
}
