/* Контейнер сторінки */
.products-ajax-page.container {
    padding: 40px 20px;
}

/* Фільтри */
.products-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    align-items: center;
}
.products-filters .cat-filter {
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #444444;
    border-radius: 0;
    color: #444444;
    font-family: Cormorant;
    font-weight: 700;
    font-size: 16px;
    line-height: 22.4px;
    cursor: pointer;

    &:hover{
        background: #EBECE7;
    }
}
.products-filters .cat-filter.active {
    background: #444444;
    color: #fff;

    &:hover {
        background: #2A2A2A;
    }
}

/* Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
}

.add-to-cart.not-in-stock{
    background: #fff;
    width: 48px !important;
    height: 48px !important;
    cursor: pointer;

    &:hover{
        background: #EBECE7;
    }
}

/* breakpoints:
   - small phones: 1 column
   - tablets: 2 columns
   - desktop: 3 columns
*/
@media (min-width: 576px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
}

.product-card {
    background: #fff;
    box-shadow: 0 0 10px 0 #0000001A;
    padding: 0;
    height: auto;
    margin-bottom: 24px;
}

.product-inner {
    padding: 16px 24px 24px;
}

.product-badge {
    font-family: Cormorant;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.4em;
    color: #fff;
    padding: 2px 8px;
    width: fit-content;
}

.product-badge.in-stock {
    background: #6EBD65;
}
.product-badge.not-in-stock {
    background: #BD6E65;
}
.product-badge.onbackorder {
    background: #65A2BD;
}

.product-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 400/360;
    object-fit: cover;
}

.product-title {
    font-family: Cormorant !important;
    font-weight: 700;
    font-size: 24px!important;
    line-height: 1.2em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 1;
}

.product-title a {
    text-decoration: none;
    color: #2E3741!important;

    &:hover {
        color: #000!important;
    }
}

.product-excerpt {
    font-family: Cormorant;
    font-weight: 500;
    font-size: 17px;
    line-height: 1.4em;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 3;
    min-height: 72px;
}
.price-wrapper .product-price {
    font-family: Cormorant;
    font-weight: 700;
    font-size: 32px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 12px;
}

.add-to-cart button,
.add-to-cart a {
    width: 100%;
    text-align: center;
}

.price-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;

    .add_to_cart_button {
        width: 48px !important;
        height: 48px !important;

        span.button-text {
            display: none;
        }
    }

    .button.add_to_cart_button::before {
        margin: 0;
        font-size: 16px;
    }

    del {
        font-family: Cormorant;
        font-weight: 600;
        font-size: 20px;
        line-height: 22.4px;
        text-align: center;
        text-decoration: none;
        color: #444444;
        opacity: 40%;
        position: relative;
    }

    del:after{
        border-top: 1px solid #444444;
        position: absolute;
        content: "";
        right: 0;
        top:60%;
        left: 0;
    }

    ins {
        font-style: normal;
        border: none;
        color: #A661CC;
    }

}

.products-loader {
    width: 24px;
    height: 24px;
    border: 3px solid #eee;
    border-top-color: #444;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-left: 24px;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

@media (max-width: 767px) {
    .products-loader {
        width: 16px;
        height: 16px;
        margin-left: 16px;
    }
}

.products-load-more-wrap {
    width: 100%;
    text-align: center;
    margin-bottom: 64px;
}


