.product-small {
    position: relative;
}

.product-small .product-small.box {
    position: relative;
    border-radius: 7px 7px 9px 9px;
    background: #FFF;
    box-shadow: 0px 5px 7px -2px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.box-image {
    border-radius: 7px;
    margin: 0 !important;
}

.product-small .box-text.box-text-products {
    padding: 12px 8px 8px;
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    justify-content: space-between;
}

.product-small .title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-small .product-title a {
    color: var(--c-black);
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 22px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 !important;
}

.product-small .box-text p {
    margin: 0 !important;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 2px;
    align-items: center;
    margin: 0;
}

li.chip {
    margin: 0 !important;
}

.product-small .price-wrapper {
    padding-top: 22px;
    position: relative;
}

.product-small .star-rating {
    margin-top: 0;
    margin-bottom: 0;
    position: absolute;
    top: 4px;
    left: 0;
    font-size: 12px;
    height: 10px;
    overflow: visible;
}

.product-small .star-rating::before,
.product-small .star-rating span {
    top: -2px;
}

.price-wrapper .chips {
    order: 2;
}

.addcart-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 18px;
    margin-top: auto;
}

.addcart-wrapper form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

.addcart-wrapper>* {
    flex: 1 1 100%;
}

.addcart-wrapper .price {
    font-size: 22px;
    font-style: normal;
    font-weight: 700;
    line-height: 22px;
}

.addcart-wrapper :is(button, .added_to_cart, a) {
    display: block;
    margin: 0 !important;
}

.card-variations {
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(var(--variations-count), 1fr);
    margin: 0;
}

.product-variations {
    width: 100%;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(var(--variations-count), 1fr);
    margin: 0;
    padding-top: 18px;
    position: relative;
    margin-top: 24px;
}

.variation__option {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    height: 36px;

    border-radius: 6px;
    border: 1px solid #F4F4F4;
    cursor: pointer;
}

.variation__option:has(input:checked) {
    border: 2px solid var(--c-primary);
}

.variation__name {
    line-height: 14px;
    text-align: center;
}

.variation__name_extra {
    color: #D73A3B;
}

.card-submit {
    position: relative;
}

.card-submit .btn {
    width: 100%;
}

.card-submit:has(.loading):after {
    animation: spin .5s linear infinite;
    border: 2px solid #fff;
    border-radius: 32px;
    border-right-color: transparent !important;
    border-top-color: transparent !important;
    content: "";
    display: block;
    height: 16px;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    position: absolute;
    top: 50%;
    width: 16px;
}

.product-wrapper {
    position: relative;
}

.cv-prod__wide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.cv-prod__wide :is(h2, h3, h4) {
    color: var(--c-black);
    font-size: 22px;
    font-weight: 700;
    line-height: 26px;
    margin-bottom: 16px;
}

.cv-prod__desc {
    color: var(--c-black);
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
}

.product-wide .product-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.product-wide .title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


@media (max-width: 992px) {
    .product-small span.amount {
        font-size: 18px;
        line-height: 18px
    }

    .chips {
        padding-top: 6px;
    }

    .addcart-wrapper {
        padding-top: 13px;
        gap: 7px;
        margin-top: 0;
    }

    .product-small .title-wrapper {
        gap: 3px;
    }

    .product-small .product-title a {
        -webkit-line-clamp: 3;
        font-size: 16px !important;
        line-height: 18px !important;
    }

    .product-small .box-text.box-text-products {
        padding: 10px 6px 6px;
    }

    .badge-inner {
        font-size: 12px !important;
        line-height: 12px !important;
        padding: 4px 5px;
    }

    .addcart-wrapper form {
        gap: 7px;
    }

    .variation__option {
        border: unset;
    }

    .variation__option:has(.variation__name_extra) {
        padding: 0 2px;
    }

    .cv-prod__wide {
        display: flex;
        flex-direction: column;
        gap: 11px;
    }

    .product-wide .product-wrapper {
        display: flex;
        flex-direction: column;
        gap: 11px;
    }
}

@media (max-width: 321px) {
    .addcart-wrapper {
        flex-direction: column;
    }

    .product-small .box-text {
        font-size: 14px;

    }

    .product-small .box-text a {
        line-height: 16px;
        height: 32px;
    }
}