/* Shop Archive — sidebar filter layout matching the reference design */

.shop-wrap {
    background-color: #F4F1E9;
    padding: 0px 0 60px;
}
.archive .hero-copy::before {
    display: none;
}

.shop-topbar__sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-topbar__sort form.woocommerce-ordering {
    padding: 0px;
    margin: 0px;
    border-left: 1px solid #E2DBCF;
    padding-left: 20px;
    padding-top: 14px;
    padding-bottom: 14px;

}
.shop-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* ---------- Sidebar ---------- */

.shop-sidebar {
    flex: 0 0 320px;
}

.filter-block {
    margin-bottom: 35px;
}
.filter-title::after {
    background: var(--color-primary);
    width: 100px;
    height: 2px;
    content: "";
    position: absolute;
    bottom: -1.96px;
    left: 0;
}

.filter-title {
    font-size: 1.375rem;
    letter-spacing: 0px;
    text-transform: uppercase;
    color: #1E1C1C;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1.5px solid #E2DBCF;
    position: relative;
    margin-bottom: 18px;
}

.filter-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.filter-checklist li {
    margin-bottom: 10px;
}

.filter-checklist label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #1E1C1C;
    cursor: pointer;
    font-family: 'Inter';
    font-weight: 400;
}

.filter-checklist input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #1a1a1a;
    cursor: pointer;
}

/* ---------- Color Swatches ---------- */

.filter-swatches {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-swatches li {
    display: inline-flex;
}

.swatch {
    --swatch-color: #cccccc;
    position: relative;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--swatch-color);
    border: 1px solid rgba(0,0,0,0.15);
    cursor: pointer;
    display: block;
}

.swatch input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.swatch::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px solid transparent;
    transition: border-color 0.15s ease;
}

.swatch.is-selected::after,

/* ---------- Price Slider ---------- */

.price-slider {
    margin: 12px 4px 16px;
}

.price-range-display {
    color: #1E1C1C;
    font-family: Inter;
    font-weight: 400;
    font-size: 15px;
    line-height: 26px;
    letter-spacing: 0%;
}

.noUi-target {
    background: #e2ddce;
    border: none;
    box-shadow: none;
    height: 1px;
}

.noUi-connect {
    background: #EB3737;
}

.noUi-handle {
    width: 14px !important;
    height: 14px !important;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #EB3737;
    box-shadow: none;
    top: -6px !important;
    right: -7px !important; /* noUiSlider default offset correction */
}

.noUi-handle::before,
.noUi-handle::after {
    display: none; /* remove default grip lines */
}

/* ---------- Product Grid ---------- */

.shop-main {
    flex: 1 1 auto;
}

/*.shop-main ul.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}*/

.shop-main ul.products li.product {
    background: transparent;
    position: relative;
}

.shop-main ul.products li.product img {
    border-radius: 6px;
    width: 100%;
    height: auto;
    display: block;
}
nav.woocommerce-pagination {
    margin-top: 15px;
}
.shop-main ul.products li.product .woocommerce-loop-product__title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 12px 0 4px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    font-family: 'Inter';
}
.shop-main ul.products li.product .price {
    font-size: 14px;
    color: #1a1a1a;
}

.shop-main ul.products li.product .price del {
    color: #999;
    font-weight: 400;
    margin-right: 6px;
}

.woocommerce ul.products li.product img.attachment-woocommerce_thumbnail, .woocommerce ul.products li.product img.woocommerce-placeholder {
    height: auto !important;
    aspect-ratio: 1 / 1;
}
.shop-main ul.products li.product .onsale {
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    position: absolute;
    top: 12px;
    right: 12px;
    left: auto;
    padding: 0px 18px;
    border-radius: 6px;
    font-size: 14px;
    text-transform: uppercase;
    height: 30px;
    line-height: 30px;
}
section.section.shop-page {
    padding-top: 0;
}.woocommerce ul.products li.product {
    text-align: center;
    margin-bottom: 50px;
    justify-content: center;
    align-items: center;
}

.woocommerce ul.products li.product bdi {
    font-size: 18px;
}
.filter-checklist input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: transparent;
    border: 1px solid #A8A8A8;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

/* Background when checked */
.filter-checklist input[type="checkbox"]:checked {
    background: #000000;
    border-color: #000000;
}

/* Checkmark */
.filter-checklist input[type="checkbox"]:checked::after {
    content: "✓";
    color: #ffffff;
    font-size: 23px;
    position: absolute;
    left: 0px;
    top: 1px;
    font-family: 'Inter';
    line-height: 18px;
    

.woocommerce ul.products li.product {
    text-align: center;
    margin-bottom: 50px;
    justify-content: center;
    align-items: center;
}

.woocommerce ul.products li.product bdi {
    font-size: 18px;
}



.woocommerce-pagination ul.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 10px;
    border: 0;
}

.woocommerce-pagination ul.page-numbers span.page-numbers {
    display: flex;
}

.woocommerce-pagination ul.page-numbers:hover {
    background: transparent;
}

.woocommerce ul.products {
    align-items: self-start;
}

a.added_to_cart.wc-forward {
    background: var(--color-primary);
    color: #fff;
    padding: 0 20px;
    height: 48px;
    display: flex;
    align-items: center;
    line-height: 48px;
    border-radius: 10px;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 600;
    max-width: 157px;
    text-align: center;
    margin: auto;
    justify-content: center;
}


a.added_to_cart.wc-forward:hover {
    background: var(--color-primary);
    color: #fff;
}
.woocommerce-pagination ul.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 10px;
    border: 0;
}

.woocommerce-pagination ul.page-numbers span.page-numbers {
    display: flex;
}
.woocommerce-pagination ul.page-numbers:hover {
    background: transparent;
}

@media (max-width: 900px) {
    .shop-layout {
        flex-direction: column;
    }
    .shop-sidebar {
        flex: 1 1 auto;
        width: 100%;
    }
    .shop-main ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .shop-main ul.products {
        grid-template-columns: 1fr;
    }
}


.swatch:has(input:checked)::after {
    border-color: #C0392B;
}