/*
Theme Name: Autobid Child
Theme URI: https://autobid.modeltheme.com/
Template: autobid
Author: ModelTheme
Author URI: http://modeltheme.com/
Description: Car Auctions Marketplace WooCommerce Theme
Version: 1.3.0
Text Domain: autobid
Tags: custom-header, custom-menu, featured-images, post-formats, sticky-post
*/
/* Theme customization starts here
------------------------------------------------------- */

/* Category Tabs Styling for WooCommerce Archive Pages */
.category-tabs-container {
    margin-bottom: 30px;
    width: 100%;
}

.category-tabs-nav {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.category-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;  /* Hide scrollbar for IE and Edge */
    scrollbar-width: none;  /* Hide scrollbar for Firefox */
    flex: 1;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-nav-arrow {
    position: absolute;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.category-tabs-nav.has-overflow .category-nav-arrow {
    opacity: 1;
    visibility: visible;
}

.category-nav-arrow.hidden {
    opacity: 0;
    visibility: hidden;
}

.category-nav-arrow:hover {
    background-color: #f5f5f5;
    transform: scale(1.05);
}

.category-nav-arrow.nav-prev {
    left: 0;
}

.category-nav-arrow.nav-next {
    right: 0;
}

.category-tab {
    flex: 1;
    min-width: 120px;
    width: 100%;
    text-align: center;
    padding: 15px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex
;
    justify-content: center;
    align-items: center;
}

.category-tab:hover {
    background-color: #e9e9e9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.category-tab.active {
    border-color: #ffc842;
    background-color: #ffc84221;
    box-shadow: 0 4px 8px #ffc8420f;
}

.category-icon {
    height: 40px;
    width: 40px;
    display: flex
;
    align-items: center;
    justify-content: center;
}

.category-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.category-icon i {
    font-size: 24px;
}

.category-name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

/* Make category tabs responsive */
@media (max-width: 768px) {
    .category-tabs {
        padding: 10px 4px;
        padding-bottom: 15px;
    }
    
    .category-tab {
        min-width: 130px;
        padding: 10px 8px;
    }
    
    .category-icon {
        height: 30px;
        width: 30px;
    }
    
    .category-name {
        font-size: 12px;
    }
    
    .category-nav-arrow {
        width: 35px;
        height: 35px;
    }
    
    .category-nav-arrow i {
        font-size: 14px;
    }
}

/* WooCommerce Filters Sidebar Styles */
.woo-filters-sidebar {
    padding: 15px;
}

.ba-woo-filters-container {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 30px;
}

.ba-woo-filters-header {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.ba-woo-filters-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    color: #333;
}

.ba-woo-filters-header h3 i {
    margin-right: 10px;
    color: #666;
}

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

.filter-group h4 {
    font-size: 15px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 12px;
    color: #333;
}

.filter-dropdown {
    position: relative;
    margin-bottom: 15px;
}

.filter-dropdown select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    color: #555;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    font-weight: normal;
    height: 40px;
    box-shadow: none;
    outline: none;
}

.filter-dropdown::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #666;
    pointer-events: none;
}

.year-range input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.filter-checkbox {
    margin-bottom: 8px;
}

.filter-checkbox label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    font-weight: normal;
}

.filter-checkbox input[type="checkbox"] {
    margin-right: 8px;
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #ccc;
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    background-color: #fff;
    outline: none;
}

.filter-checkbox input[type="checkbox"]:checked {
    background-color: #1e73be;
    border-color: #1e73be;
}

.filter-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.year-range {
    display: flex;
    gap: 10px;
}

.year-range input {
    flex: 1;
}

.search-auctions-btn {
    width: 100%;
    padding: 12px;
    background-color: #1e73be;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-auctions-btn:hover {
    background-color: #135e9e;
}

/* Active Filters Styles */
.ba_active_filters {
    background-color: #f9f9f9;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.ba_active_filters h4 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #333;
}

.active-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.active-filter {
    display: flex;
    align-items: center;
    background-color: #e9f5ff;
    border: 1px solid #c5e1ff;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
}

.active-filter span {
    margin-right: 5px;
}

.remove-filter {
    color: #666;
    font-weight: bold;
    text-decoration: none;
    font-size: 14px;
}

.clear-all-filters {
    margin-top: 10px;
    width: 100%;
}

.clear-all-filters a {
    color: #666;
    font-size: 12px;
    text-decoration: underline;
}

/* Responsive styles for filters */
@media (max-width: 768px) {
    .woo-filters-sidebar {
        margin-bottom: 20px;
    }
    
    .ba-woo-filters-container {
        padding: 15px;
    }
    
    .filter-group h4 {
        font-size: 13px;
    }
    
    .filter-checkbox label {
        font-size: 13px;
    }
}
