.card {
	flex: 1;
    max-width: 500px;
    background: #FFFFFF;
    border: 1px solid rgba(42, 42, 42, 0.2);
    border-radius: 10px;
    padding: 15px 15px 0;
}

.card__container {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.card__header {
    position: absolute;
    z-index: 1;
/*
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;*/
}

.card__badge {
margin-bottom: 5px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    background: #F23300;
    border-radius: 5px;
    padding: 10px;
}

.card__badge--mobile {
    display: none;
}

.card__badge--warn {
    background: #F2A100;
}

.card__icons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 12px 0;
}

.card__icons--mobile {
    display: none;
}

.card__icon {
    transition: all .3s;
}

.card__icon:hover {
    transform: scale(1.1);
}

.card__icon-favorite path {
    fill: transparent;
    transition: all .3s;
}

@media (hover: hover) and (pointer: fine) { 
.card__icon-favorite:hover path, .card__icon-favorite--active path {
    fill: #F23300;
}
}

.card__icon--compare:hover svg path,
.card__icon--compare.active svg path {
    fill: #F23300;
}

.card__sku {
    display: flex;
    justify-content: flex-end;
    font-size: 13px;
}

.card__img {
	aspect-ratio: 1;
    display: block;
    overflow: hidden;
	width: 100%;
    position: relative;
}

.card__img:hover img {
    transform: scale(1.03);
}

.card__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all .3s;
}

.card__name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px;
}

.card:has(.card__name:hover) img {
    transform: scale(1.03);
}

.card__price {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 15px;
    margin-bottom: 5px;
}

.card__price-single {
    font-size: 18px;
    font-weight: 600;
}

.card__price-desc {
    display: block;
    font-size: 15px;
    line-height: 35px;
    opacity: 0.6;
    margin-bottom: 5px;
}

.card__buttons {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card__add-to-cart {
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    background: #F23300;
    border: 1px solid #F23300;
    border-radius: 5px;
    margin-bottom: 13px;
    transition: all .3s;
}

.card__add-to-cart:hover {
    background-color: #d62e00;
}

/* Лоадер на кнопке */
.card__add-to-cart.is-loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.card__add-to-cart.is-loading img {
    display: none;
}

.card__add-to-cart.is-loading::after {
    content: '';
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin 0.7s linear infinite;
	 margin-bottom: 3px;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

/* Анимации на плюс/минус */
.product__counter-btn--plus:active,
.product__counter-btn--minus:active {
    transform: scale(0.88);
}

.product__counter-btn--plus,
.product__counter-btn--minus {
    transition: background .2s, transform .1s;
}

/* Пульс на счётчике при изменении */
@keyframes counter-pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.25); }
    100% { transform: scale(1); }
}

.js-counter-qty.pulse {
    animation: counter-pulse 0.25s ease;
}

.card__counter {
    height: 40px;
    display: none;
    justify-content: space-between;
    align-items: center;
    background: #ECECEC;
    border-radius: 5px;
    margin-bottom: 13px;
    overflow: hidden;
}

.card__counter-minus {
    height: 100%;
    aspect-ratio: 1;
    color: #FFFFFF;
    background: #D9D9D9;
    border-radius: 5px;
    transition: all .3s;
}

.card__counter-minus:hover {
    background: #F23300;
}

.card__counter-plus {
    height: 100%;
    aspect-ratio: 1;
    color: #FFFFFF;
    background: #F23300;
    border-radius: 5px;
    transition: all .3s;
}

.card__counter-plus:hover {
    background: #D02C00;
}

.card__counter-value {
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

.card__delivery {
    height: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    border-top: 1px solid #F23300;
}

.card__delivery-price {
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
}

.card__delivery-discount {
    width: 35px;
    height: 15px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #58A848;
    font-size: 10px;
    border: 1px solid #58A848;
    border-radius: 5px;
}

.card__favorite-remove {
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #F23300;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(242, 51, 0, 0.1);
    border-radius: 5px;
    margin-bottom: 14px;
    transition: all .3s;
}

.card__favorite-remove:hover {
    background: rgba(242, 51, 0, 0.3);
}

.product__counter {
     /*  max-width: 150px;*/
      width: 100%;  
      height: 40px;
    /*height: 30px;*/
    margin-bottom: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ECECEC;
    border-radius: 5px;
    overflow: hidden;
}
.total__buttons>.product__counter {
     height: 100%; 
}


.product__info-wrapper .product__counter{
 max-width: 150px;
 height: 30px;
}

.product__counter-btn--minus {
    height: 100%;
    flex-shrink: 0;
    aspect-ratio: 1;
    color: #fff;
    background: #D9D9D9;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 20px;
}

.product__counter-btn--plus {
    height: 100%;
    flex-shrink: 0;
    aspect-ratio: 1;
    color: #fff;
    background: #F23300;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 20px;
}

.js-counter-qty {
    min-width: 0;
    flex: 1;
    padding: 0 8px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .card__icons--mobile {
        display: flex;
        justify-content: flex-end;
        margin-bottom: 12px;
    }

    .card__icon--desktop {
        display: none;
    }

    .card__icon--mobile {
        display: block;
    }

    .card__price {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}




@media (max-width: 768px) {
    .card {
        border-radius: 5px;
        padding: 8px 8px 0;
    }

    /*.card:nth-child(n+7) {
        display: none;
    }*/

    .card__header {
        margin-bottom: 6px;
    }

    .card__badge {
        height: 20px;
        font-size: 10px;
        border-radius: 3px;
        padding: 7px;
    }

    .card__badge--desktop {
        display: none;
    }

    .card__badge--mobile {
        display: inline;
    }

    .card__sku {
        font-size: 10px;
    }

    .card__img {
        margin: 0 -8px;
    }

    .card__name {
        font-size: 10px;
        margin-bottom: 10px;
    }

    .card__price {
        font-size: 10px;
        margin-bottom: 0;
    }

    .card__price-single {
        font-size: 12px;
    }

    .card__price-desc {
        font-size: 10px;
        line-height: 23px;
        margin-bottom: 0;
    }

    .card__add-to-cart, .product__counter {
		height: 30px;
		width: 100%;
        gap: 6px;
        font-size: 12px;
        border-radius: 3px;
        margin: 8px 0;
    }

	.card__add-to-cart.is-loading::after {
		width: 10px;
		height: 10px;
		margin-bottom: 0;
	}

    .card__counter {
        height: 30px;
        border-radius: 3px;
        margin-bottom: 8px;
    }

    .card__counter-minus {
        border-radius: 3px;
    }

    .card__counter-plus {
        border-radius: 3px;
    }

    .card__counter-value {
        font-size: 10px;
    }

    .card__delivery {
        height: 23px;
        font-size: 10px;
    }

    .card__delivery-price {
        font-size: 12px;
    }

    .card__delivery-discount {
        width: max-content;
        height: 10px;
        font-size: 8px;
        border-radius: 3px;
        padding: 0 2px;
    }

    .card__favorite-remove {
        height: 30px;
        gap: 6px;
        font-size: 12px;
        border-radius: 3px;
        margin-bottom: 10px;
    }

    .card__favorite-remove span {
        display: none;
    }
}

@media (max-width: 360px) {
    .card__delivery-label {
        display: flex;
        flex-direction: column;
    }
}
