/* Product Card Css */
.category-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin: 60px 0;
    justify-content: space-between;
}

.category-filter {
    max-width: 300px;
    width: 100%;
}

.category-products {
    max-width: calc(100% - 350px);
    width: 100%;
}

.category-products h2.woocommerce-loop-product__title {
    font-size: 20px !important;
    line-height: 1.4;
    text-transform: uppercase;
}

.product .woocommerce-variation-availability {
    display: block !important;
    position: absolute;
    top: 10px;
    left: 10px;
    visibility: visible !important;
}

ul.products.wb-products-grid,
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

/* Remove default WooCommerce floats/clears */
.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
}

.woocommerce ul.products li.product,
.wb-product-card-item {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

.products .wishlist-btn-overlay .woosw-btn {
    top: 50%;
    right: 20px;
    width: 0;
    height: 0;
}

.wb-card-inner {
    border-radius: 4px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.wb-card-inner:hover {
    border-color: #cccccc;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.wb-card-media {
    position: relative;
    padding: 30px 20px 15px;
    text-align: center;
    background: #ffffff;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wb-card-img-link {
    display: block;
    width: 100%;
}

.wb-card-media img {
    max-height: 210px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.wb-card-inner:hover .wb-card-media img {
    transform: scale(1.04);
}

.wb-stock-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    text-transform: uppercase;
    border-radius: 2px;
    letter-spacing: 0.5px;
    line-height: 1;
    z-index: 3;
}

.wb-stock-badge.out-of-stock {
    background-color: #9e9e9e;
    color: #ffffff !important;
}

.wb-stock-badge.in-stock {
    background-color: #5ccb5f;
    color: #ffffff;
}

.wb-card-body {
    padding: 15px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.wb-card-full-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.wb-card-category {
    font-size: 13px;
    color: #8c8c8c;
    margin-bottom: 6px;
    font-weight: 400;
    font-family: inherit;
    position: relative;
    z-index: 5;
}

.wb-card-category a.wb-cat-link {
    color: #8c8c8c;
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
    z-index: 5;
}

.wb-card-category a.wb-cat-link:hover {
    color: #000000;
    text-decoration: underline;
}

.wb-card-title {
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.35;
    margin: 0 0 8px 0;
    letter-spacing: -0.2px;
}

.wb-card-title a {
    color: #000000 !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.wb-card-title a:hover {
    color: #555555 !important;
}

.wb-card-price,
.wb-card-price .price {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #000000 !important;
    margin-bottom: 10px !important;
    line-height: 1.2 !important;
}

.wb-card-price del,
.wb-card-price del .amount {
    color: #999999 !important;
    font-weight: 500 !important;
    margin-right: 6px !important;
    font-size: 14px !important;
}

.wb-card-price ins,
.wb-card-price ins .amount {
    text-decoration: none !important;
    font-weight: 700 !important;
    color: #000000 !important;
}

.wb-card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 4px;
}

.wb-stars {
    display: flex;
    gap: 2px;
    font-size: 14px;
    line-height: 1;
}

.wb-stars .star.filled {
    color: #ffb400;
}

.wb-stars .star.empty {
    color: #d1d5db;
}

.wb-rating-count {
    font-size: 13px;
    color: #8c8c8c;
    font-weight: 400;
}

.wb-card-footer {
    border-top: 1px solid #eeeeee;
    line-height: 1;
    padding: 14px 20px;
    background: #ffffff;
    position: relative;
    z-index: 5;
}

a.wb-card-buy-btn {
    position: relative;
    z-index: 5;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    letter-spacing: 0.8px !important;
    box-shadow: none !important;
    transition: opacity 0.2s ease, transform 0.2s ease !important;
}

a.wb-card-buy-btn:hover {
    opacity: 0.75 !important;
    transform: translateX(2px) !important;
    background: transparent !important;
    color: #000000 !important;
}


.wb-plus-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wb-plus-icon svg {
    stroke: #000000;
    stroke-width: 2.5;
}

.wb-buy-text {
    font-weight: 800;
    font-size: 13px;
}

.category-wrapper {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-top: 30px;
    margin-bottom: 50px;
}

.category-filter {
    width: 280px;
    flex-shrink: 0;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
}

.category-products {
    flex: 1;
    min-width: 0;
}

.wb-product-filter-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Accordion Box */
.wb-filter-box {
    background: #ffffff;
}

.wb-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #e2e2e2;
    cursor: pointer;
    user-select: none;
}

.wb-filter-title {
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #000000;
    font-family: inherit;
}

.wb-filter-toggle {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    color: #000000;
    cursor: pointer;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wb-filter-content {
    padding: 16px 4px 8px 4px;
    display: block;
}

.wb-filter-box:not(.is-open) .wb-filter-content {
    display: none;
}

/* 1. WHEEL SIZE Tags */
.wb-tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wb-tag-label {
    cursor: pointer;
    position: relative;
    margin: 0;
}

.wb-tag-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.wb-tag-btn {
    display: inline-block;
    background: #f4f4f4;
    color: #222222;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 2px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.wb-tag-label:hover .wb-tag-btn {
    background: #eaeaea;
}

.wb-tag-input:checked+.wb-tag-btn,
.wb-tag-label.is-selected .wb-tag-btn {
    background: #ffffff;
    border-color: #000000;
    color: #000000;
    font-weight: 700;
}

/* 2, 3, 5. CHECKBOX LISTS (SPECS, FRAME, RATING) */
.wb-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wb-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #333333;
    margin: 0;
    user-select: none;
}

.wb-checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #dcdcdc;
    border-radius: 2px;
    outline: none;
    background: #fafafa;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.wb-checkbox-label input[type="checkbox"]:checked {
    background-color: #000000;
    border-color: #000000;
}

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

.wb-checkbox-text {
    font-size: 14px;
    color: #333333;
    font-weight: 400;
}

.wb-count {
    color: #999999;
    font-size: 13px;
    font-weight: 400;
}

/* RATING STARS */
.wb-stars-wrap {
    display: inline-flex;
    gap: 2px;
    color: #ffb400;
    font-size: 15px;
}

.wb-stars-wrap .star.empty {
    color: #e0e0e0;
}

/* 4. PRICE SLIDER */
.wb-price-slider-wrapper {
    padding: 6px 0;
}

.wb-price-slider-track-container {
    position: relative;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin: 16px 6px 24px 6px;
}

.wb-price-slider-track {
    position: absolute;
    height: 100%;
    background: #ffdb00;
    /* Yellow bar as in screenshot */
    border-radius: 2px;
    left: 0;
    right: 0;
}

.wb-range-input {
    position: absolute;
    width: 100%;
    height: 4px;
    top: 0;
    left: 0;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    margin: 0;
}

.wb-range-input::-webkit-slider-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #ffdb00;
    /* Circle handles with yellow border */
    pointer-events: auto;
    -webkit-appearance: none;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.wb-range-input::-moz-range-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #ffdb00;
    pointer-events: auto;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.wb-price-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #666666;
    margin-top: 12px;
}

.wb-price-text {
    font-weight: 500;
    color: #444444;
}

.wb-price-text span {
    color: #000000;
    font-weight: 600;
}

.wb-filter-submit-link {
    background: none;
    border: none;
    color: #000000;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s ease;
}

.wb-filter-submit-link:hover {
    opacity: 0.7;
}

/* MOBILE/TABLET FILTER TRIGGER BUTTON & DRAWER HEADER */
.wb-drawer-header {
    display: none;
}

.wb-mobile-filter-trigger {
    display: none;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #000000;
    cursor: pointer;
    text-transform: uppercase;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.wb-mobile-filter-trigger:hover {
    border-color: #000000;
    background: #fafafa;
}

.wb-filter-backdrop {
    display: none;
}

body.wb-filter-drawer-open {
    overflow: hidden !important;
}

@media (max-width: 1024px) {
    .wb-mobile-filter-trigger {
        display: inline-flex;
    }

    .category-products {
        max-width: 100%;
    }

    .wb-shop-toolbar-wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
        margin-bottom: 20px;
    }

    .wb-shop-toolbar-wrapper .woocommerce-result-count {
        display: none;
    }

    .wb-shop-toolbar-wrapper .woocommerce-ordering {
        margin: 0;
    }

    aside.category-filter {
        position: fixed;
        top: 0;
        left: 0;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        background: #ffffff;
        z-index: 99999;
        box-shadow: 6px 0 30px rgba(0, 0, 0, 0.18);
        overflow-y: auto;
        padding: 24px 20px;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    aside.category-filter.is-active {
        transform: translateX(0);
    }

    .wb-drawer-header {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding-bottom: 14px;
        margin-bottom: 18px;
        border-bottom: 1px solid #eeeeee;
    }

    .wb-drawer-close-btn {
        background: none;
        border: none;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.8px;
        color: #000000;
        cursor: pointer;
        text-transform: uppercase;
        padding: 0;
    }

    .wb-drawer-close-btn .wb-close-x {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
        border: 1px solid #000000;
        border-radius: 3px;
        font-size: 16px;
        line-height: 1;
        font-weight: 700;
    }

    .wb-filter-backdrop {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .wb-filter-backdrop.is-active {
        opacity: 1;
        visibility: visible;
    }

    ul.products.wb-products-grid,
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px !important;
    }

    .category-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 767px) {

    ul.products.wb-products-grid,
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }

    .wb-card-media {
        min-height: 200px;
    }
}

@media (max-width: 576px) {

    ul.products.wb-products-grid,
    .woocommerce ul.products {
        grid-template-columns: repeat(1, 1fr) !important;
    }

    .category-products .woocommerce-ordering select {
        margin: 0 !important;
    }

    .wb-shop-toolbar-wrapper {
        gap: 5px;
    }
}