/* WooCommerce Shop With Filters */

.wc-swf-wrap {
    display: flex;
    width: 100%;
    background: #f5f5f5;
    color: #222;
}

.wc-swf-sidebar {
    width: 190px;
    flex: 0 0 190px;
    padding: 32px 20px;
    border-right: 1px solid #ddd;
    background: #f5f5f5;
}

.wc-swf-sidebar h3 {
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
    color: #111;
}

.wc-swf-filter-link {
    display: block;
    margin: 0 0 9px;
    font-size: 14px;
    line-height: 1.3;
    color: #0095ff;
    text-decoration: none;
}

.wc-swf-filter-link:hover,
.wc-swf-filter-link.active {
    color: #006bb8;
    text-decoration: underline;
}

.wc-swf-main {
    flex: 1;
    min-width: 0;
    padding: 34px 30px;
}

.wc-swf-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.wc-swf-header h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
    color: #111;
}

.wc-swf-sort-form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wc-swf-sort-form label {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.wc-swf-sort-form select {
    min-width: 165px;
    height: 39px;
    padding: 0 36px 0 12px;
    border: 1px solid #ddd;
    border-radius: 0;
    background-color: #f7f7f7;
    color: #666;
    font-size: 14px;
    outline: none;
}

.wc-swf-products {
    display: grid;
    column-gap: 30px;
    row-gap: 32px;
}

.wc-swf-columns-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.wc-swf-columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wc-swf-columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wc-swf-columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wc-swf-columns-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.wc-swf-columns-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.wc-swf-product {
    min-width: 0;
}

.wc-swf-product-image {
    display: block;
    width: 100%;
    margin-bottom: 15px;
    background: #fff;
    overflow: hidden;
    text-decoration: none;
}

.wc-swf-product-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin: 0;
}

.wc-swf-product-title {
    display: block;
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    color: #555;
    text-decoration: none;
}

.wc-swf-product-title:hover {
    color: #111;
}

.wc-swf-price {
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
    color: #111;
}

.wc-swf-price del {
    opacity: .55;
    font-size: 14px;
    margin-right: 5px;
}

.wc-swf-price ins {
    text-decoration: none;
}

.wc-swf-empty,
.wc-swf-notice {
    padding: 18px;
    background: #fff;
    border: 1px solid #ddd;
    color: #555;
}

@media (max-width: 1024px) {
    .wc-swf-products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .wc-swf-wrap {
        display: block;
    }

    .wc-swf-sidebar {
        width: auto;
        border-right: 0;
        border-bottom: 1px solid #ddd;
        padding: 20px;
    }

    .wc-swf-main {
        padding: 24px 20px;
    }

    .wc-swf-header {
        display: block;
    }

    .wc-swf-sort-form {
        margin-top: 16px;
        justify-content: flex-start;
    }

    .wc-swf-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 18px;
        row-gap: 26px;
    }
}

@media (max-width: 480px) {
    .wc-swf-products {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .wc-swf-sort-form {
        display: block;
    }

    .wc-swf-sort-form label {
        display: block;
        margin-bottom: 8px;
    }

    .wc-swf-sort-form select {
        width: 100%;
    }
}
