:root {
    --bg-accent: #e31235;
    --bg-black: #000000;
    --bg-white: #ffffff;
    --bg-light: #f6f6f6;

    --bg-accent-hover: rgb(237,33,67);

    --border-color-accent: #e31235;
    --border-color-light: #cccccc;

    /*--text-accent: #FF0000;*/
    --text-accent: var(--text-black);
    --text-muted: #9b9b9b;
    --text-grey: #484848;
    --text-black: #000000;
}

.radius-10 {
    border-radius: 10px !important;
}
.d-grid {
    display: grid;
}
.grid-2 {
    display: grid;
    grid-template: auto/2fr 1fr;
    align-items: center;
    justify-content: space-between;
}
.items-end {
    justify-content: end;
}
.text-grey {
    color: var(--text-grey);
    font-weight: 600;
    font-size: 12px;
}
.product-list.clearfix:after, .product-list.clearfix:before {display: none!important;}

.products_view_grid .product .in {
    display: grid;
    grid-template: 210px 1fr/1fr;
    padding: 2px;
    border-radius: 10px;
    height: 100%;
}
.products_view_grid .product .offers {
    margin: 8px;
}
.products_view_grid .product .offers form {
    height: 100%;
    display: grid;
    grid-template: auto 1fr/1fr;
    align-content: start;
}
.products_view_grid .product .offers form .btn_grid {
    align-self: end;
}
.products_view_grid .product .offers .price {
    font-family: 'Inter', Arial, sans-serif;
    color: var(--text-accent);
    font-size: 20px;
    font-weight: bold;
}
.products_view_grid .product .offers .compare-at-price {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-muted);
    line-height: 1.65rem;
}
.products_view_grid .product .product_name a {
    font-family: 'Inter', Arial, sans-serif;
    color: var(--text-black);
    font-size: 14px;
    font-weight: 500;
}
.btn_grid {
    display: grid;
    grid-template: 1fr/1fr 36px;
    justify-content: space-between;
    gap: 8px;
}

.products_view_grid .product .offers .p_buttons a i {
    width: 20px;
    height: 20px;
    opacity: 1;
}
.products_view_grid .product .offers .p_buttons a {
    border: 1px solid var(--border-color-accent);
    border-radius: 10px;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn_add2cart i {
    background-image: url("../img/delivery.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: 0 0;

    width: 16px;
    height: 16px;

    display: inline-block;
    margin: -3px 6px 0 -7px;
    vertical-align: middle;
}

.p_buttons a.to_favorites i {
    background-image: url("../img/like.svg");
    background-position: 0 0;
    background-size: contain;
    background-repeat: no-repeat;
    margin: 4px 0 0 0;
    width: 100%;
    height: 100%;
}

.p_buttons a.to_favorites.active i {
    background-image: url("../img/like-fill.svg");
    opacity: 1 !important;
}

.products_view_grid .btn_add2cart {
    background-image: none !important;
    width: 100%;
    font-size: 14px !important;
    font-weight: bold !important;
    line-height: 20px !important;
    padding: 8px 16px !important;
}
.products_view_grid .btn_add2cart i {
    width: 20px;
    height: 20px;
}
.btn-primary {
    background-color: var(--bg-accent);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--bg-accent-hover);
}

.products_view_grid .product .offers .p_buttons {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-rating-card {
    margin: 8px 0;
    line-height: 1;
}

.product-rating-card__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    flex-wrap: wrap;
}

.product-rating-card__star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.product-rating-card__star svg {
    display: block;
    width: 100%;
    height: 100%;
}

.product-rating-card__value {
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    color: #111;
}

.product-rating-card__dot {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    line-height: 1;
}

.product-rating-card__count {
    font-size: 13px;
    font-weight: 400;
    color: #9b9b9b;
    line-height: 1;
}

.catalog-actions-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.catalog-cart-box .btn_add2cart {
    width: 100%;
}

.catalog-cart-box[data-cart-added="0"] .catalog-actions-row {
    display: none;
}

.catalog-cart-box[data-cart-added="1"] .btn_add2cart {
    display: none;
}

.catalog-cart-box[data-cart-added="1"] .catalog-actions-row {
    display: flex;
}

.qty_wrap--modern {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
    padding: 0 18px;
    background: #f3f3f3;
    border: 1px solid #e31235;
    border-radius: 18px;
    box-sizing: border-box;
    width: 100%;
}

.qty_wrap--modern .qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #111;
    font-size: 30px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
}

.qty_wrap--modern .qty-btn:hover {
    opacity: .75;
}

.qty_wrap--modern .qty-btn:focus {
    outline: none;
    box-shadow: none;
}

.qty_wrap--modern .qty-input {
    width: 56px;
    border: 0;
    background: transparent;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #111;
    padding: 0;
    box-shadow: none;
}

.qty_wrap--modern .qty-input:focus {
    outline: none;
    box-shadow: none;
}

.qty_wrap--modern .qty-btn.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    color: #111;
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
    min-width: auto;
}

.qty_wrap--modern .qty-btn.btn:hover,
.qty_wrap--modern .qty-btn.btn:focus,
.qty_wrap--modern .qty-btn.btn:active {
    background: transparent;
    border: 0;
    box-shadow: none;
    outline: none;
}

.fav-btn {
    flex: 0 0 64px;
    width: 64px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid #ff2a2a;
    border-radius: 18px;
    text-decoration: none;
    transition: .2s ease;
    box-sizing: border-box;
}

.fav-btn svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: #ff2a2a;
}

.fav-btn:hover {
    background: #fff5f5;
}

.fav-btn.active {
    background: #ff2a2a;
}

.fav-btn.active svg {
    fill: #fff;
}

@media (max-width: 768px) {
    .text-grey {
        font-size: 12px;
    }
    .products_view_grid .product:not(.swiper-slide) {
        width: 100% !important;
    }
    .products_view_grid {
        display: grid;
        grid-template: auto / repeat(2, 1fr);
    }
    .products_view_grid .product .in {
        grid-template: 180px 1fr/1fr;
    }
    .product-rating-card__star {
        width: 16px;
        height: 16px;
        flex-basis: 16px;
        margin-top: -4px;
    }

    .product-rating-card__value,
    .product-rating-card__dot,
    .product-rating-card__count {
        font-size: 12px;
    }
    .qty_wrap--modern .qty-btn.btn {
        width: 20px;
        height: 20px;
    }
    .qty_wrap--modern .qty-input {
        width: 36px;
    }
    .btn_grid {
        gap: 5px;
    }
}

@media (min-width: 1200px) {
    .products_view_grid {
        display: grid;
        grid-template: auto/ repeat(4, 1fr);
    }
    .products_view_grid.per_row_4 .product {
        width: 100%;
    }
}