body {
    /* The order is important: 
       1. Mulish (Primary Font)
       2. Crimson Pro (Fallback Serif Font)
       3. sans-serif (Universal Fallback for safety)
    */
    font-family: "Mulish", "Crimson Pro", sans-serif;
}


/* ====================================================================
   MOBILE FILTER BUTTON & OVERLAY
   ==================================================================== */

.mobile-filter-toggle {
    width: 100%;
    display: flex !important;
    justify-content: center !important;
    gap: 15px !important;
    background-color: #0B5B50 !important;
    color: white !important;
    border: none !important;
    padding: 12px 20px !important;
    border-radius: 50px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    margin-top: 50px !important;
    width: 100% !important;
}

.mobile-filter-toggle:hover {
    opacity: 0.8;
}

.mobile-filter-toggle svg {
    stroke: currentColor;
}

.filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filter-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-filter-close {
    display: none;
    position: absolute;
    top: 20px !important;
    right: 20px !important;
    background: #0B5B50 !important;
    border: none !important;
    cursor: pointer !important;
    padding: 8px !important;
    z-index: 10 !important;
    color: white !important;
    border-radius: 10px !important;
    width: 40px !important;
    height: 40px !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.3s ease !important;
}

.mobile-filter-close:hover {
    background: #e0e0e0;
}

.mobile-filter-close svg {
    stroke: currentColor;
}

body.filter-open {
    overflow: hidden;
}

/* ====================================================================
   SHOP FILTER - MAIN LAYOUT
   ==================================================================== */

.shop-container {
    display: flex;
    gap: 40px;
    margin: 80px 0;
}

/* ====================================================================
   FILTER SIDEBAR
   ==================================================================== */

.shop-sidebar {
    flex: 0 0 280px;
    position: sticky;
    top: 160px;
    align-self: start;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.shop-filter-sidebar {
    background: #fff;
    border: none;
    padding: 25px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.filter-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    padding: 0;
    background: transparent;
    border-radius: 6px;
}

.active-filters > .active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    color: #0B5B50;
    border: 1px solid #0B5B50;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.active-filters > .active-filter-tag:hover {
    background: #0B5B50;
    color: #fff;
}

.active-filter-tag .remove-icon {
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

.filter-header > .clear-filters {
    background: transparent;
    border: none;
    padding: 0;
    font-size: 13px;
    text-decoration: underline;
    color: black;
    cursor: pointer;
}

.clear-filters:hover {
    background: #f5f5f5;
    color: #333;
    border-color: #bbb;
}

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

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #333;
    margin-bottom: 15px;   
}

/* ====================================================================
   PRICE RANGE SLIDER
   ==================================================================== */

.price-filter-group {
    padding-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
}

.price-range-container {
    padding: 0;
}

.price-range-slider {
    position: relative;
    height: 6px;
    margin: 25px 5px 20px 5px;
    background: #ddd;
    border-radius: 3px;
}

.ui-slider {
    position: relative;
    text-align: left;
}

.ui-slider .ui-slider-handle {
    position: absolute;
    z-index: 2;
    width: 18px;
    height: 18px;
    cursor: pointer;
    background: #0B5B50;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    top: -6px;
    margin-left: -9px;
    outline: none;
}

.ui-slider .ui-slider-handle:hover,
.ui-slider .ui-slider-handle:focus {
    background: #0B5B50;
}

.ui-slider .ui-slider-range {
    position: absolute;
    z-index: 1;
    display: block;
    background: #0B5B50;
    height: 100%;
    border-radius: 3px;
}

.ui-slider-horizontal {
    height: 6px;
}

.ui-slider-horizontal .ui-slider-handle {
    top: -6px;
}

.ui-slider-horizontal .ui-slider-range {
    top: 0;
    height: 100%;
}

.ui-widget-content {
    background: #ddd;
    border: none;
}

.price-range-values {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

.price-range-label {
    font-weight: 600;
    color: #333;
}

.price-range-separator {
    color: #999;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
    transition: all 0.2s ease;
}

.filter-option:hover {
    padding-left: 5px;
}

.filter-checkbox {
    width: 18px;
    height: 18px;
    margin: 0;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #0073aa;
}

.filter-label {
    font-size: 14px;
    color: #555;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

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

.filter-option:hover .filter-label {
    color: #333;
}

.filter-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ====================================================================
   PRODUCTS SECTION
   ==================================================================== */

.shop-main-content {
    flex: 1;
    min-height: 500px;
}

.products-wrapper {
    position: relative;
}

#products-container {
    position: relative;
    transition: opacity 0.3s ease;
}

#products-container.loading {
    opacity: 0.5;
    pointer-events: none;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

/* ====================================================================
   PRODUCT ITEM CARD
   ==================================================================== */

.product-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.product-image {
    position: relative;
    overflow: hidden;
    background: #f9f9f9;
}

.product-image a {
    display: block;
}

.product-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.02);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e74c3c;
    color: #fff;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

.product-details {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.product-title {
    font-size: 14px;
    font-weight: 400;
    margin: 0 0 10px 0;
    line-height: 1.4;
    font-family: 'Mulish', sans-serif;
}

.product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #0073aa;
}

/* ====================================================================
   PRODUCT BENEFIT TAGS - NEW STYLING
   ==================================================================== */

.product-benefit-tags {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

.product-benefit-tag {
    display: inline-block;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 400;
    font-family: 'Mulish', sans-serif;
    color: #000;
    text-decoration: none;
    border-radius: 100px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.product-benefit-tag:hover {
    scale: 1.02;
}

/* Product Filter Tags - Old styling (keeping for backward compatibility) */
.product-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.product-filter-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f0f0;
    color: #666;
    font-size: 11px;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.product-filter-tag:hover {
    background: #0073aa;
    color: #fff;
}

/* ====================================================================
   PRODUCT PRICE & ACTIONS
   ==================================================================== */

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: black;
    margin-bottom: 15px;
}

.product-price del {
    font-size: 14px;
    color: #999;
    font-weight: 400;
    margin-right: 8px;
}

.product-price ins {
    text-decoration: none;
}

.product-actions {
    margin-top: auto;
}

.product-actions > a,
.product-actions > .button.product_type_simple.add_to_cart_button.ajax_add_to_cart {
    width: 100%;
    text-align: center;
    padding: 13px 10px;
    background: #FFDE21;
    color: black;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.product-actions > a:hover,
.product-actions > .button.product_type_simple.add_to_cart_button.ajax_add_to_cart:hover {
    scale: 1.02;
}

/* variable product addtocart */

.product-actions > .button.product_type_variable.add_to_cart_button {
    width: 100%;
    text-align: center;
    padding: 13px 10px;
    background: #FFDE21;
    color: black;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}


/* ====================================================================
   NO PRODUCTS FOUND
   ==================================================================== */

.no-products-found {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 20px 0;
}

.no-products-found p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* ====================================================================
   PAGINATION
   ==================================================================== */

.products-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding: 20px 0;
}

.products-pagination a,
.products-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.products-pagination a:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

.products-pagination .current {
    background: #0B5B50;
    color: #fff;
    border: none;
    font-weight: 600;
}

.products-pagination .dots {
    border: none;
    background: transparent;
}

/* ====================================================================
   RESPONSIVE DESIGN
   ==================================================================== */

@media (max-width: 1024px) {
    .shop-container {
        gap: 30px;
        margin: 40px 0;
    }
    
    .shop-sidebar {
        flex: 0 0 250px;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .mobile-filter-toggle {
        display: flex !important;
    }
    
    .mobile-filter-close {
        display: flex !important;
    }
    
    .shop-container {
        flex-direction: column;
        gap: 20px;
        margin: 40px 0;
    }
    
    .shop-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        z-index: 1000;
        background: #fff;
        overflow-y: auto;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        padding-top: 70px;
        max-height: 100vh;
    }
    
    .shop-sidebar.active {
        left: 0;
    }
    
    .shop-filter-sidebar {
        padding: 20px;
        border: none;
    }
    
    .filter-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .clear-filters {
        align-self: flex-end;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    
    .product-price {
        font-size: 16px;
    }
    
    .product-benefit-tags {
        gap: 5px;
    }
    
    .product-benefit-tag {
        font-size: 11px;
        padding: 5px 12px;
    }
}

@media (min-width: 769px) {
    .mobile-filter-toggle {
        display: none !important;
    }
    
    .mobile-filter-close {
        display: none !important;
    }
    
    .filter-overlay {
        display: none !important;
    }
}


/* ====================================================================
   SCROLLBAR STYLING
   ==================================================================== */

.shop-sidebar::-webkit-scrollbar {
    width: 6px;
}

.shop-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.shop-sidebar::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.shop-sidebar::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* ====================================================================
   LOADING STATE OVERLAY
   ==================================================================== */

#products-container.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* ====================================================================
   ACCESSIBILITY
   ==================================================================== */

.filter-checkbox:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.filter-option:focus-within {
    background: #f9f9f9;
    border-radius: 4px;
}

/* ====================================================================
   PRINT STYLES
   ==================================================================== */

@media print {
    .shop-sidebar,
    .filter-loading,
    .products-pagination {
        display: none;
    }
    
    .shop-container {
        grid-template-columns: 1fr;
    }
}

/* ====================================================================
   HIDE WOOCOMMERCE DEFAULT ELEMENTS
   ==================================================================== */

.woocommerce-breadcrumb {
    display: none;
}

.woocommerce-products-header {
    display: none;
}