/* Shop Filters Styling */
.ui-slider-horizontal .ui-slider-handle {
    top: -.45em;
    margin-left: -.6em;
}
.shop-container {
    display: flex;
    gap: 40px;
    max-width: 1310px;
    margin: 0 auto;
    padding: 20px;
}

.shop-sidebar {
    flex: 0 0 300px;
}

.shop-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Ensure WooCommerce products container takes full width */
.woocommerce .woocommerce-products-header {
    margin-bottom: 30px;
}

.woocommerce .woocommerce-products-header__title {
    font-family: "Host Grotesk", sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #103900;
    margin: 0 0 20px 0;
}

/* Ensure proper spacing for product grid */
.woocommerce ul.products {
    margin-bottom: 40px !important;
}

.sidebar-filters {
    background: #F2F4F3;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid #CFD7CC;
    box-shadow: 0 4px 20px rgba(16, 57, 0, 0.08);
}

.sidebar-filters h3 {
    font-family: "Host Grotesk", sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #103900;
    margin: 0 0 24px 0;
    line-height: 1.3;
}

.filter-section {
    margin-bottom: 32px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section h4 {
    font-family: "Host Grotesk", sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #103900;
    margin: 0 0 16px 0;
    line-height: 1.4;
}

/* Category Filter Checkboxes - Using same styling as login form */
.category-filter {
    list-style: none;
    margin: 0;
    padding: 0;
}

 ul.category-filter {
    list-style: none !important;
}

.category-filter li {
    margin-bottom: 8px;
}

.category-filter li:last-child {
    margin-bottom: 0;
}

.category-filter label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: "Host Grotesk", sans-serif;
    font-size: 14px;
    color: #103900;
    transition: color 0.3s ease;
}

.category-filter input[type="checkbox"] {
    display: none;
}

.category-filter span {
    position: relative;
    width: 20px;
    height: 20px;
    border: 2px solid #CFD7CC;
    border-radius: 4px;
    margin-right: 12px;
    background: #FFFFFF;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.category-filter input[type="checkbox"]:checked + span {
    background: #FDBF02;
    border-color: #FDBF02;
}

.category-filter input[type="checkbox"]:checked + span::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #103900;
    font-size: 14px;
    font-weight: bold;
}

.category-filter label:hover span {
    border-color: #FDBF02;
}

.category-filter label:hover {
    color: #FDBF02;
}

/* Sub-categories */
.sub-categories {
    list-style: none;
    margin: 8px 0 0 32px;
    padding: 0;
}

.sub-categories li {
    margin-bottom: 8px;
}

.sub-categories li:last-child {
    margin-bottom: 0;
}

.sub-categories label {
    font-size: 13px;
    color: #666666;
}

.sub-categories label:hover {
    color: #FDBF02;
}

/* Current category styling */
.current-category label {
    font-weight: 500;
    color: #FDBF02;
}

.current-category span {
    border-color: #FDBF02;
    background: #FDBF02;
}

/* Price Filter */
.price-filter {
    margin-top: 16px;
}

.price-slider-container {
    padding: 0 8px;
}

#price-slider {
    margin: 20px 0;
}

.price-labels {
    display: flex;
    justify-content: space-between;
    font-family: "Host Grotesk", sans-serif;
    font-size: 14px;
    color: #666666;
    margin-top: 8px;
}

/* Filter Buttons */
.apply-filters-btn,
.clear-filters-btn {
    font-family: "Host Grotesk", sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 8px;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 12px;
    text-align: center;
}

.apply-filters-btn {
    background: #FDBF02;
    color: #103900;
    border-color: #FDBF02;
}

.apply-filters-btn:hover {
    background: #103900;
    color: #F2F4F3;
    border-color: #103900;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 57, 0, 0.2);
}

.clear-filters-btn {
    background: transparent;
    color: #103900;
    border-color: #CFD7CC;
}

.clear-filters-btn:hover {
    background: #103900;
    color: #F2F4F3;
    border-color: #103900;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 57, 0, 0.2);
}

/* jQuery UI Slider Customization */
.ui-slider {
    background: #CFD7CC;
    border: none;
    border-radius: 4px;
    height: 6px;
}

.ui-slider-range {
    background: #FDBF02;
    border-radius: 4px;
}

.ui-slider-handle {
    background: #103900;
    border: 2px solid #FDBF02;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    top: -7px;
    margin-left: -10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ui-slider-handle:hover,
.ui-slider-handle:focus {
    background: #FDBF02;
    border-color: #103900;
    transform: scale(1.1);
}

.ui-slider-handle:active {
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .shop-container {
        flex-direction: column;
        gap: 24px;
        padding: 16px;
    }

    .shop-sidebar {
        flex: none;
        width: 100%;
    }

    .sidebar-filters {
        padding: 24px 20px;
    }

    .sidebar-filters h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .filter-section h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .sub-categories {
        margin-left: 24px;
    }
}

@media (max-width: 480px) {
    .shop-container {
        padding: 12px;
    }

    .sidebar-filters {
        padding: 20px 16px;
    }

    .sidebar-filters h3 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .filter-section {
        margin-bottom: 24px;
    }

    .category-filter span {
        width: 18px;
        height: 18px;
        margin-right: 10px;
    }

    .category-filter input[type="checkbox"]:checked + span::after {
        font-size: 12px;
    }

    .apply-filters-btn,
    .clear-filters-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Product Grid Styles - Ensure 3 products per row */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
}

/* Ensure product cards have consistent styling */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: "Host Grotesk", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #103900;
    margin: 10px 0 5px 0;
    line-height: 1.4;
}

.woocommerce ul.products li.product .price {
    font-family: "Host Grotesk", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #103900;
    background: #FDBF02;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
    margin: 5px 0;
}

.woocommerce ul.products li.product .price del {
    color: #666;
    background: transparent;
    padding: 0;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
    color: #103900;
    background: #FDBF02;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
}

/* Product image styling */
.woocommerce ul.products li.product .woocommerce-loop-product__link {
    display: block;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.woocommerce ul.products li.product .woocommerce-loop-product__link:hover {
    transform: translateY(-2px);
}

.woocommerce ul.products li.product img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
}

/* Responsive product grid */
@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
}

/* Pagination Styling - Consistent for both filtered and main results */
.filtered-pagination {
    margin-top: 40px;
    text-align: center;
}

.viobin-custom-pagination {
    display: inline-block;
}

.viobin-custom-pagination .page-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.viobin-custom-pagination .page-numbers li {
    margin: 0;
}

.viobin-custom-pagination .page-numbers a,
.viobin-custom-pagination .page-numbers span {
    display: inline-block;
    padding: 12px 16px;
    background: #FFFFFF;
    color: #103900;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid #CFD7CC;
    font-family: "Host Grotesk", sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 44px;
    text-align: center;
}

.woocommerce nav.woocommerce-pagination ul li {
    margin: 0 1px;
}

.viobin-custom-pagination .page-numbers a:hover,
.viobin-custom-pagination .page-numbers span.current {
    background: #FDBF02 !important;
    color: #103900 !important;
    border-color: #FDBF02;
    box-shadow: 0 4px 12px rgba(253, 191, 2, 0.3);
}

.viobin-custom-pagination .page-numbers span.current {
    font-weight: 600;
}

.viobin-custom-pagination .page-numbers .prev,
.viobin-custom-pagination .page-numbers .next {
    min-width: 80px;
}

@media (max-width: 768px) {
    .viobin-custom-pagination .page-numbers {
        gap: 6px;
    }

    .viobin-custom-pagination .page-numbers a,
    .viobin-custom-pagination .page-numbers span {
        padding: 10px 12px;
        font-size: 13px;
        min-width: 40px;
    }

    .viobin-custom-pagination .page-numbers .prev,
    .viobin-custom-pagination .page-numbers .next {
        min-width: 70px;
    }
}
