/* Main Container */
.ewaf-container {
    margin: 0 auto;
    max-width: 1400px;
}

/* Layout */
.ewaf-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

/* Filter Section */
.ewaf-filter-section {
    flex: 0 0 300px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.ewaf-filter-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.ewaf-filter-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.ewaf-product-badge.popular,
.ewaf-product-badge.new,
.ewaf-product-badge.best-seller,
.ewaf-product-badge.featured {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    color: #fff;
    font-size: 12px;
    border-radius: 50px;
    padding: 6px 12px;
    line-height: 1;
}
.ewaf-product-badge.new,
.ewaf-product-badge.featured {
    background: #22c55e;
}
.ewaf-product-badge.popular {
    background: #338ae7;
}
.ewaf-product-badge.best-seller {
    background:#f57298;
}
.ewaf-filter-item h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    position: relative;
}

/* Accordion */
.ewaf-accordion-header {
    cursor: pointer;
    position: relative;
    padding-right: 25px;
}

.ewaf-accordion-header::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.ewaf-accordion.active .ewaf-accordion-header::after {
    transform: translateY(-50%) rotate(45deg);
}

.ewaf-accordion-content {
    display: none;
    padding-top: 10px;
}

.ewaf-accordion.active .ewaf-accordion-content {
    display: block;
}

.ewaf-filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ewaf-filter-option {
    display: flex;
    align-items: center;
}

.ewaf-filter-option input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.ewaf-filter-option label {
    margin: 0;
    cursor: pointer;
    font-size: 15px;
    color: #555;
}

/* Price Slider */
.ewaf-price-slider {
    margin-top: 15px;
}

.ewaf-price-range {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    margin-bottom: 15px;
    position: relative;
}

.ui-slider-range {
    background: #0073aa;
    border-radius: 3px;
}

.ui-slider-handle {
    width: 18px;
    height: 18px;
    background: #0073aa;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.ewaf-price-values {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    color: #333;
}

/* Filter Actions */
.ewaf-filter-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.ewaf-filter-button,
.ewaf-reset-button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}
.ewaf-reset-button {
    background-color: #e0e0e0;
    color: #333333;
}

.ewaf-reset-button:hover {
    background-color: #d0d0d0;
}

/* Products Section */
.ewaf-products-section {
    flex: 1;
    position: relative;
}
.ewaf-products-section li {
    list-style: none;
}

.ewaf-products-grid {
    display: grid;
    gap: 25px;
    margin-bottom: 30px;
}

.ewaf-columns-2 .ewaf-products-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.ewaf-columns-3 .ewaf-products-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.ewaf-columns-4 .ewaf-products-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Product Card */
.ewaf-products-grid .product {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ewaf-products-grid .product:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.ewaf-products-grid .product-image {
    position: relative;
    overflow: hidden;
    height: 220px;
    background-color: #f8f9fa;
}

.ewaf-products-grid .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.ewaf-products-grid .product:hover .product-image img {
    transform: scale(1.08);
}

.ewaf-products-grid .product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #ff3d3d;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

.ewaf-products-grid .product-badge.onsale {
    background-color: #ff6b6b;
}

.ewaf-products-grid .product-badge.featured {
    background-color: #4ecdc4;
}

.ewaf-products-grid .product-actions {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ewaf-products-grid .product:hover .product-actions {
    opacity: 1;
}

.ewaf-products-grid .product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ewaf-products-grid .product-info {
    padding: 20px;
}

.ewaf-products-grid .product-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.ewaf-products-grid .product-price {
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 700;
    color: #0073aa;
}

.ewaf-products-grid .product-price del {
    color: #999;
    font-size: 16px;
    font-weight: 400;
    margin-right: 8px;
}
.ewaf-products-grid .ewaf-product-price ins {
    text-decoration: none!important;
}

.ewaf-products-grid .product-rating {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ewaf-products-grid .product-rating .star-rating {
    color: #ffc107;
}

.ewaf-products-grid .product-rating .rating-count {
    color: #777;
    font-size: 14px;
}

.ewaf-products-grid .add-to-cart-button {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    background-color: #0073aa;
    color: #ffffff;
    transition: all 0.3s ease;
}

.ewaf-products-grid .add-to-cart-button:hover {
    background-color: #005a87;
}

.ewaf-products-grid .add-to-cart-button.added {
    background-color: #4caf50;
}

/* Pagination */
.ewaf-products-grid .pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.ewaf-products-grid .pagination-inner {
    display: flex;
    gap: 5px;
}

.ewaf-products-grid .pagination-btn {
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.ewaf-products-grid .pagination-btn:hover {
    background-color: #f8f9fa;
}

.ewaf-products-grid .pagination-current {
    padding: 10px 15px;
    background-color: #0073aa;
    color: #ffffff;
    border-radius: 6px;
    font-weight: 600;
}

/* Quick View Modal */
.ewaf-quick-view-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.ewaf-quick-view-modal.active {
    display: flex;
}

.ewaf-quick-view-content {
    position: relative;
    background-color: #ffffff;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.ewaf-close-quick-view {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.ewaf-close-quick-view:hover {
    background-color: #f0f0f0;
}

.ewaf-quick-view-inner {
    display: flex;
    gap: 30px;
}

.ewaf-qv-image {
    flex: 1;
}

.ewaf-qv-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.ewaf-qv-details {
    flex: 1;
}

.ewaf-qv-details h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 26px;
    color: #333;
}

.ewaf-qv-price {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 700;
    color: #0073aa;
}

.ewaf-qv-rating {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ewaf-qv-description {
    margin-bottom: 25px;
    line-height: 1.7;
    color: #555;
}

.ewaf-qv-add-to-cart {
    margin-top: 20px;
}

/* Loading */
.ewaf-products-grid.loading {
    opacity: 0.5;
    position: relative;
}

.ewaf-products-grid.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #0073aa;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.ewaf-loading,
.ewaf-error {
    padding: 30px;
    text-align: center;
    font-size: 18px;
}

/* Responsive */
@media (max-width: 1024px) {
    .ewaf-products-grid.columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .ewaf-layout {
        flex-direction: column;
    }
    
    .ewaf-filter-section {
        flex: 0 0 100%;
        position: static;
    }
    
    .ewaf-products-grid.columns-3,
    .ewaf-products-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ewaf-quick-view-inner {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .ewaf-products-grid.columns-2,
    .ewaf-products-grid.columns-3,
    .ewaf-products-grid.columns-4 {
        grid-template-columns: 1fr;
    }
    
    .ewaf-filter-actions {
        flex-direction: column;
    }
    
    .ewaf-filter-button,
    .ewaf-reset-button {
        width: 100%;
    }
    
    .ewaf-quick-view-content {
        padding: 20px;
    }
}
.ewaf-product-card {
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    transition: 0.5s all;
    position: relative;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.ewaf-product-card:hover {
    box-shadow: 0 25px 50px -12px rgb(0 0 0/0.25);
    transform: translateY(-12px);
}
.ewaf-product-card .ewaf-product-image img {
    transition: 0.5s all;
}
.ewaf-product-card:hover .ewaf-product-image img {
    transform: scale(1.1);
}
.ewaf-product-image {
    position: relative;
    overflow: hidden;
}

.ewaf-product-image img {
    width: 100%;
    height: auto;
    transition: 0.3s all;
}

.ewaf-product-badge-wrap {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    color: #fff;
    font-weight: bold;
    z-index: 10;
    display: flex;
    gap: 5px;
    align-items: center;
}

.ewaf-product-badge.onsale { background: #e74c3c; }
.ewaf-product-badge.featured { background: #3498db; }

.ewaf-product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
}
.ewaf-product-actions svg {
    width: 15px;
    height: 15px;
}
.ewaf-product-info {
    padding: 15px;
    text-align: left;
}

.ewaf-product-rating {
    margin-bottom: 5px;
}
.bwd-category-rating-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.ewaf-rating-stars {
    color: #facc15;
}
.ewaf-product-price {
    color: #111827!important;
    font-size: 22px;
    font-weight: 700;
}
.ewaf-product-price del {
    font-size: 14px;
}
.ewaf-product-image-wrap {
    position: relative;
}
.ewaf-product-title a {
    color:#111827;
    font-weight: 600;
    font-size: 18px;
}
.ewaf-product-card:hover .ewaf-product-title a {
    color:#338ae7;
}
.ewaf-product-category {
    background: #338ae71a;
    border-radius: 6px;
    padding: 4px 8px;
    line-height: 1;
    color: #338ae7;
    font-size: 14px;
}
.ewaf-savings {
    background: #ef4444;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
    border-radius: 6px;
    padding: 5px 8px;
    line-height: 1;
    position: absolute;
    bottom: 20px;
    left: 9px;
}
.ewaf-product-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    word-wrap: break-word;
    line-height: 1.3;
}
.ewaf-product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}
.ewaf-add-to-cart-button {
    background: #f3f4f6;
    color: #1f2937;
    border: none;
    padding: 12px 15px;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    transition: all .3s;
    will-change: transform;
}

.ewaf-product-card .added_to_cart.wc-forward {
    background: #f3f4f6;
    color: #1f2937;
    border: none;
    padding: 12px 15px;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    transition: all .3s;
    will-change: transform;
    margin-top: 10px;
}
input.ewaf-search-input {
    border-radius: 10px!important;
    border: none!important;
    box-shadow: 0 0 3px #0000002e;
}
input.ewaf-search-input:focus {
    outline: none!important;
}
select.ewaf-sorting-select {
    border: none!important;
    border-radius: 5px;
    box-shadow: 0 0 3px #00000021!important;
    appearance: none;          
    -webkit-appearance: none;  
    -moz-appearance: none;     
    padding-right: 30px;      
    background: url('data:image/svg+xml;utf8,<svg fill="black" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 5px center;
    background-size: 25px;
}

select.ewaf-sorting-select:focus {
    outline: none!important;
    border: none!important;
    box-shadow: 0 0 3px #00000021!important;
}
.ewaf-filter-options .rating {
    color: #ffd700;
}

  
.ewaf-product-card:hover .ewaf-add-to-cart-button {
    background: linear-gradient(to right, #338AE7, #F57298);
    scale: 1.05;
    color: #fff;
}
.ewaf-product-card:hover .ewaf-add-to-cart-button svg {
    fill: #fff;
}
.ewaf-product-card .ewaf-add-to-cart-button svg {
    width: 15px;
    height: 15px;
}

/* Loader inside button */
.ewaf-add-to-cart-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid #fff;
    border-top-color: #0073aa;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }
.ewaf-cart-success {
    position: absolute;
    top: -25px;
    right: 0;
    background: #46b450;
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}
/* Add to Cart Button States */
.ewaf-add-to-cart-button {
    position: relative;
    margin-top: 15px;
    transition: all .3s;
}

.ewaf-add-to-cart-button.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.ewaf-add-to-cart-button.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

.ewaf-add-to-cart-button.added {
    background-color: #4caf50;
}
.ewaf-product-title {
    line-height: 1;
}
/* Notification */
.ewaf-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 350px;
}

.ewaf-notification.show {
    transform: translateX(0);
}

.ewaf-notification-success {
    background-color: #4caf50;
}

.ewaf-notification-error {
    background-color: #f44336;
}
.ewaf-pagination .ewaf-pagination-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.ewaf-pagination .ewaf-pagination-btn,
.ewaf-pagination .ewaf-pagination-current {
    background: #338ae7;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 5px 14px;
}
.ewaf-pagination .ewaf-pagination-btn:hover {
    background: #0073aa;
}
.ewaf-pagination .ewaf-pagination-current {
    background: #f57298;
}
/* Loading */
.ewaf-products-grid.loading {
    opacity: 0.5;
    position: relative;
}

.ewaf-products-grid.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #0073aa;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Load More Button */
.ewaf-load-more-container {
    text-align: center;
    margin-top: 30px;
    position: relative;
}

.ewaf-load-more-button {
    background: #338ae7;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
}

.ewaf-load-more-button:hover {
    background: #0073aa;
    transform: translateY(-2px);
}

.ewaf-load-more-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.ewaf-loading-spinner {
    display: none;
    width: 30px;
    height: 30px;
    margin: 20px auto;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #338ae7;
    animation: spin 1s ease-in-out infinite;
}

.ewaf-loading-spinner.active {
    display: block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
/* Top Bar */
.ewaf-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.ewaf-filter-toggle {
    display: none; /* Hidden by default, shown only on mobile */
}

.ewaf-filter-toggle-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    color: #333;
    transition: background-color 0.3s ease;
}

.ewaf-filter-toggle-button:hover {
    background-color: #e0e0e0;
}

.ewaf-filter-toggle-button svg {
    width: 20px;
    height: 20px;
}

.ewaf-top-bar-sorting {
    width: 100%;
    max-width: 300px;
}

/* Responsive behavior */
@media (max-width: 1024px) {
    .ewaf-filter-toggle {
        display: block;
    }    
    .ewaf-filter-section {
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        max-width: 350px;
        height: 100%;
        background-color: #fff;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }    
    .ewaf-filter-section.mobile-visible {
        transform: translateX(0);
    }    
    .ewaf-layout {
        flex-direction: column;
    }    
    .ewaf-products-section {
        width: 100%;
    }    
   
}

@media (min-width: 1024px) {
    .ewaf-filter-section {
        position: static;
        transform: none;
        box-shadow: none;
        width: auto;
        max-width: none;
    }
}

.ewaf-filter-close-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.ewaf-filter-close-button:hover {
    background-color: #f0f0f0;
}

.ewaf-filter-close-button svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 1024px) {
    .ewaf-filter-close {
        display: flex;
    }
}
/* Filter Overlay - Full Screen */
.ewaf-filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 56%);
    z-index: 999; 
}

.ewaf-filter-section {
    flex: 0 0 300px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.ewaf-filter-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.ewaf-filter-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.ewaf-filter-close {
    display: none;
    justify-content: flex-end;
    padding: 15px;
}

.ewaf-filter-close-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.ewaf-filter-close-button:hover {
    background-color: #f0f0f0;
}

.ewaf-filter-close-button svg {
    width: 20px;
    height: 20px;
}

/* Responsive behavior */
@media (max-width: 1024px) {
    .ewaf-filter-overlay.active {
        display: block;
    }
    
    .ewaf-filter-close {
        display: flex;
    }
    
    .ewaf-filter-section {
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        max-width: 350px;
        height: 100%;
        background-color: #fff;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        border-radius: 0;
    }
    
    .ewaf-filter-section.mobile-visible {
        transform: translateX(0);
    }
    
    .ewaf-layout {
        flex-direction: column;
    }
    
    .ewaf-products-section {
        width: 100%;
    }
}

@media (min-width: 1024px) {
    .ewaf-filter-section {
        position: static;
        transform: none;
        box-shadow: none;
        width: auto;
        max-width: none;
    }
    
    .ewaf-filter-overlay {
        display: none !important;
    }
}
/* Results Count */
.ewaf-results-count {
    font-size: 14px;
    color: #6b7280;
    flex-grow: 1;
    text-align: left;
}

@media (max-width: 768px) {
    .ewaf-results-count {
        display: none; /* Hide on small screens to save space */
    }
}
/* Carousel Layout */
.ewaf-products-carousel {
    width: 100%;
    padding: 0 20px;
}

.ewaf-products-carousel .swiper-wrapper {
    display: flex;
}

.ewaf-products-carousel .swiper-slide {
    height: auto;
}

.ewaf-products-carousel .ewaf-product-card {
    height: 100%;
}

.ewaf-products-carousel .swiper-pagination {
    position: relative;
    margin-top: 20px;
}

.ewaf-products-carousel .swiper-button-next,
.ewaf-products-carousel .swiper-button-prev {
    color: #333;
}

.ewaf-products-carousel .swiper-button-next:after,
.ewaf-products-carousel .swiper-button-prev:after {
    font-size: 24px;
    font-weight: bold;
}

.ewaf-products-carousel .swiper-button-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive adjustments for carousel */
@media (max-width: 1024px) {
    .ewaf-products-carousel {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .ewaf-products-carousel {
        padding: 0 10px;
    }
    
    .ewaf-products-carousel .swiper-button-next,
    .ewaf-products-carousel .swiper-button-prev {
        display: none;
    }
}
.ewaf-grid-1 .ewaf-products-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .ewaf-grid-2 .ewaf-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ewaf-grid-3 .ewaf-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .ewaf-grid-4 .ewaf-products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .ewaf-grid-5 .ewaf-products-grid {
    grid-template-columns: repeat(5, 1fr);
  }

@media (min-width:2400px) {
  .ewaf-grid-widescreen-1 .ewaf-products-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .ewaf-grid-widescreen-2 .ewaf-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ewaf-grid-widescreen-3 .ewaf-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .ewaf-grid-widescreen-4 .ewaf-products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .ewaf-grid-widescreen-5 .ewaf-products-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media (max-width:1366px) {
  .ewaf-grid-laptop-1 .ewaf-products-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .ewaf-grid-laptop-2 .ewaf-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ewaf-grid-laptop-3 .ewaf-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .ewaf-grid-laptop-4 .ewaf-products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .ewaf-grid-laptop-5 .ewaf-products-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media (max-width:1200px) {
  .ewaf-grid-tablet_extra-1 .ewaf-products-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .ewaf-grid-tablet_extra-2 .ewaf-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ewaf-grid-tablet_extra-3 .ewaf-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .ewaf-grid-tablet_extra-4 .ewaf-products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .ewaf-grid-tablet_extra-5 .ewaf-products-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media (max-width:1024px) {
  .ewaf-grid-tablet-1 .ewaf-products-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .ewaf-grid-tablet-2 .ewaf-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ewaf-grid-tablet-3 .ewaf-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .ewaf-grid-tablet-4 .ewaf-products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .ewaf-grid-tablet-5 .ewaf-products-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media (max-width:880px) {
  .ewaf-grid-mobile_extra-1 .ewaf-products-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .ewaf-grid-mobile_extra-2 .ewaf-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ewaf-grid-mobile_extra-3 .ewaf-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .ewaf-grid-mobile_extra-4 .ewaf-products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .ewaf-grid-mobile_extra-5 .ewaf-products-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media (max-width:767px) {
    .ewaf-grid-mobile-1 .ewaf-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    }
    
  }