
body .woocommerce ul.products li.product,
body.woocommerce-page ul.products li.product{
    box-shadow: none!important;
    border: none!important;
    background-color: #ffffff00!important;
}
body .woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
body.woocommerce-page ul.products li.product .astra-shop-thumbnail-wrap {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: none!important;
}

body .woocommerce ul.products li.product .astra-shop-summary-wrap,
body.woocommerce-page ul.products li.product .astra-shop-summary-wrap {
    padding: 0;
}

body  ul.products li.product .ast-woo-product-category,
body.woocommerce-page ul.products li.product .ast-woo-product-category {
    color: #111!important;
    opacity: 1!important;
    font-weight: 600!important;
    background: #dfdfdf!important;
    width: fit-content!important;
    padding: 8px 14px!important;
    border-radius: 50px!important;
    margin-bottom: 10px!important;
    line-height: 1!important;
}

body .woocommerce-js ul.products li.product .woocommerce-loop-product__title,
body.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.35;
}

.woocommerce ul.products li.product .price {
    font-weight: 400;
    margin-bottom: 12px;
}

.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button {
    margin-bottom: 0;
    padding: 10px 16px!important;
    border-radius: 8px;
    background: #111;
    color: #fff;
    font-weight: 600;
    line-height: 1.3;
    transition: 0.3s ease all;
    text-align: center;

}

.woocommerce ul.products li.product .button:hover,
.woocommerce-page ul.products li.product .button:hover{
    background: #f0ba43;
    color: #111;
}

.woocommerce-js ul.products li.product .ast-shop-product-out-of-stock,
.woocommerce-page ul.products li.product .ast-shop-product-out-of-stock {
    border-radius: 8px;
    text-align: center;
    color: #ff0000;
    padding: 10px;
    background: #fff;
}



/* --- ARCHIVE LAYOUT --- */
.custom-shop-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* --- BANNER --- */
.shop-header-banner {
    width: 100%;
    display: flex;
    justify-content: space-around;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.banner-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.banner-icon {
    width: 45px;
    height: 45px;
    background: #fdf6e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f0ba43;
    font-size: 20px;
    flex-shrink: 0;
}

.banner-icon i,
.filter-icon i,
.clear-icon i,
.view-btn i,
.toggle-arrow i {
    font-weight: 900!important;
    display: inline-block;
}

.banner-icon i {
    display: block;
}

.banner-text strong {
    display: block;
    font-size: 16px;
    color: #111;
}

.banner-text span {
    font-size: 13px;
    color: #888;
}

/* --- SIDEBAR --- */
.custom-shop-sidebar {
    flex: 0 0 280px;
    align-self: stretch;
}

.custom-shop-sidebar .filter-box {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.filter-box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.filter-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.filter-box-header h3 {
    margin: 0;
    font-size: 18px;
}

.filter-section {
    margin-bottom: 25px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.filter-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-section li {
    margin-bottom: 10px;
}

.filter-section a.category-link {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #444;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s ease;
}

.filter-section a.category-link:hover {
    color: #f0ba43;
}

.filter-section a.category-link.active {
    color: #f0ba43;
    font-weight: 600;
}

.filter-section label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #444;
    cursor: pointer;
}

.filter-section input[type="radio"],
.filter-section input[type="checkbox"] {
    margin-right: 10px;
}

.filter-count {
    margin-left: auto;
    color: #999;
    font-size: 12px;
}

.view-all-cats {
    display: block;
    font-size: 13px;
    color: #888;
    margin-top: 10px;
    text-decoration: none;
}

.filter-submit-btn,
.apply-filters {
    width: 100%;
    background: #f0ba43;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.apply-filters:hover {
    background: #e0a933;
}

.filter-actions {
    position: sticky;
    bottom: -20px; /* Offset against filter-box padding */
    background: #fff;
    padding: 15px 0 15px; /* Added bottom padding */
    margin-top: 10px;
    border-top: 1px solid #eee;
    z-index: 10;
}

.clear-all-filters {
    width: 100%;
    background: #f8f8f8;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 6px;
    margin-top: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* --- PRODUCTS AREA --- */
.custom-shop-products {
    flex: 1;
}

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    background: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.view-switcher {
    display: flex;
    gap: 10px;
}

.filter-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.close-filter-sidebar {
    display: none;
}

.view-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
}

.view-btn.active {
    background: #f0ba43;
    border-color: #f0ba43;
}

.mobile-filter-toggle {
    display: none;
}

/* --- LIST VIEW STYLES --- */
.list-view-active ul.products {
    display: flex;
    flex-direction: column;
}

.list-view-active ul.products li.product {
    width: 100%!important;
    display: grid!important;
    grid-template-columns: 200px 1fr 150px;
    align-items: center;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px!important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.list-view-active ul.products li.product .astra-shop-thumbnail-wrap {
    grid-column: 1;
    margin: 0!important;
}

.list-view-active ul.products li.product .astra-shop-summary-wrap {
    grid-column: 2;
    text-align: left;
    padding: 0 10px;
}

.list-view-active ul.products li.product .ast-select-option-wrap,
.list-view-active ul.products li.product .ast-on-card-button,
.list-view-active ul.products li.product .price {
    grid-column: 3;
    width: 100%;
    text-align: center;
}

.list-view-active ul.products li.product .price {
    font-size: 1.2em;
    font-weight: bold;
    color: #f0ba43;
    margin-bottom: 10px;
}

.list-view-active ul.products li.product .button {
    grid-column: 3;
    width: 100%;
    margin-top: 10px;
}

/* --- PRICE SLIDER CUSTOMIZATION --- */
#price-slider-range {
    height: 6px;
    background: #eee;
    border: none;
    border-radius: 10px;
    margin: 20px 0;
}

#price-slider-range .ui-slider-range {
    background: #f0ba43;
}

#price-slider-range .ui-slider-handle {
    width: 18px;
    height: 18px;
    background: #fff;
    border: 2px solid #f0ba43;
    border-radius: 50%;
    top: -6px;
    cursor: pointer;
    outline: none;
}

.price-inputs {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
    .custom-shop-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #fff;
        z-index: 9999;
        overflow-y: auto;
        padding: 20px;
    }
    .custom-shop-sidebar.active {
        display: block;
    }
    .close-filter-sidebar {
        display: block;
        font-size: 24px;
        cursor: pointer;
    }
    body.filter-open {
        overflow: hidden;
    }
    .filter-box-header {
        margin-top: 10px;
    }
    .mobile-filter-toggle {
        display: flex;
        align-items: center;
        gap: 5px;
        background: #eee;
        border: none;
        padding: 5px 15px;
        border-radius: 4px;
    }
}

@media (max-width: 768px) {
    .shop-header-banner {
        flex-direction: column;
        gap: 20px;
    }
}

.view-btn.grid-view {
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn.list-view {
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-arrow i {
    color: #888;
    transition: transform 0.3s;
}

.toggle-arrow {
    transition: transform 0.3s ease;
    display: inline-block;
}

.closed .toggle-arrow {
    transform: rotate(-90deg);
}

.filter-icon {
    color: #f0ba43;
    font-size: 18px;
}

.clear-icon {
    margin-right: 5px;
}

#products-container.loading {
    position: relative;
}

#products-container.loading::after {
    content: "Loading...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    font-weight: bold;
    z-index: 10;
}
