.products {
    margin: 0 0 35px 0;
}

.productsHeader {
    padding: 26px 0;
}

.productsHeader-title {
    text-align: center;
    margin-bottom: 5px;
    color: #333;
    text-transform: uppercase;
}

.productsHeader-count {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.productsList {
    display: grid;
    grid-template-columns: max(320px, 50%) max(320px, 50%);
    border-bottom: 1px solid #cccccc;
    border-left: 1px solid #cccccc;
}

.productCard {
    border-top: 1px solid #cccccc;
    border-right: 1px solid #cccccc;
    border-bottom: 1px solid #cccccc;
    margin-bottom: -1px;
    padding: 20px 30px 36px 30px;
    display: flex;
    flex-direction: column;
}

.productCard-header {
    padding-bottom: 19px;
    border-bottom: 1px dotted #cccccc;
}

.productCard-headerTitle {
    text-align: center;
    color: #333;
}

.productCard-imageWrapper {
    border-bottom: 1px dotted #cccccc;
    margin-bottom: 11px;
}

.productCard-imageBox {
    width: 390px;
    height: 390px;
    margin: 0 auto;
}

.productCard-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;

    &[src$=".svg" i] {
        padding: 15px;
    }
}

.productCard-carousel {
    padding: 0 29px 0 28px;
    margin: 0 0 20px 0;
    position: relative;

    --active-slide-idx: 0;
    --slide-gap: 25px;
    --slide-width: 46px;
    --slide-height: 46px;

    .slick-arrow {
        display: block;
        width: 10px;
        height: 20px;
        top: 13px;
        transform: none;

        &.slick-prev {
            left: 9px;

            &:before {
                font-size: 0;
                opacity: 1;
                width: 0;
                height: 0;
                border-top: 10px solid transparent;
                border-bottom: 10px solid transparent;
                border-right: 10px solid #e65450;
            }
        }

        &.slick-next {
            right: 9px;

            &:before {
                font-size: 0;
                opacity: 1;
                width: 0;
                height: 0;
                border-top: 10px solid transparent;
                border-bottom: 10px solid transparent;
                border-left: 10px solid #e65450;
            }
        }

        &.slick-disabled {
            &.slick-prev {
                &:before {
                    border-right: 10px solid #a6a6a6;
                }
            }

            &.slick-next {
                &:before {
                    border-left: 10px solid #a6a6a6;
                }
            }
        }
    }
}

.productCard-carouselBtnLeft {
    display: block;
    padding: 0;
    margin: 0;
    border: none;
    width: 10px;
    height: 20px;
    top: 13px;
    left: 9px;
    transform: none;
    position: absolute;
    background-color: transparent;
    cursor: pointer;

    &:before {
        content: '';
        display: block;
        font-size: 0;
        opacity: 1;
        width: 0;
        height: 0;
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        border-right: 10px solid #e65450;
    }

    &.isDisabled {
        &:before {
            cursor: default;
            border-right: 10px solid #a6a6a6;
        }
    }
}

.productCard-carouselBtnRight {
    display: block;
    padding: 0;
    margin: 0;
    border: none;
    width: 10px;
    height: 20px;
    top: 13px;
    right: 9px;
    transform: none;
    position: absolute;
    background-color: transparent;
    cursor: pointer;

    &:before {
        content: '';
        display: block;
        font-size: 0;
        opacity: 1;
        width: 0;
        height: 0;
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        border-left: 10px solid #e65450;
    }

    &.isDisabled {
        &:before {
            cursor: default;
            border-left: 10px solid #a6a6a6;
        }
    }
}

.productCard-carouselWrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    height: 46px;
}

.productCard-carouselItemsWrapper {
    --offset-x: 0;
    display: flex;
    gap: var(--slide-gap);
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(var(--offset-x));
    transition: transform 0.3s ease;
}

.productCard-carouselImageBox {

    width: var(--slide-width);
    height: var(--slide-height);
    border: 1px solid transparent;
    cursor: pointer;

    &.isActive,
    &:hover {
        border-color: #faafaf;
    }
}

.productCard-carouselImage {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.productCard-options {
    padding: 20px 20px 26px 20px;
    background-color: #fafafa;
    margin-bottom: 20px;
}

.productCard-optionsList {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 0 19px 0;
    border-bottom: 1px dotted #cccccc;
    margin-bottom: 18px;
}

.productCard-option {
    display: block;
    border: 1px solid #cccccc;
    padding: 15px 20px 17px 46px;
    position: relative;
    background-color: white;
    min-height: 140px;

    &:hover {
        border-color: #00aef3;
    }

    &:has(.productCard-optionRadio:checked) {
        border-color: #00aef3;
    }
}

.productCard-optionRadio {
    position: absolute;
    top: 19px;
    left: 14px;
}

.productCard-optionTitle {
    display: block;
    margin-bottom: 8px;
}

.productCard-priceMark {
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 20px;
    line-height: 1;
    font-weight: bold;
    color: #23b423;
}

.productCard-optDescription {
    display: block;
    font-size: 12px;
    line-height: 16px;
    font-weight: 300;

    &:not(:last-child) {
        margin-bottom: 3px;
    }
}

.productCard-optDescriptionUl {
    display: block;
    margin: 0 0 4px 0;
    padding: 0;
    list-style-type: none;

    &:has(:nth-child(5)) {
        columns: 2;
        column-gap: 6px;

        .productCard-optDescriptionLi {
            padding-top: 3px;
        }
    }
}

.productCard-optDescriptionLi {
    display: block;
    position: relative;
    padding-left: 7px;

    &:before {
        content: '\2022';
        display: block;
        position: absolute;
        top: 3px;
        left: 0;
    }

    & + & {
        padding-top: 3px;
    }
}

.productCard-optDescriptionNote {
    display: block;
    font-style: italic;
    font-size: 10px;
}

.productCard-optDescriptionPara {
    display: block;

    &:not(:last-child) {
        margin-bottom: 4px;
    }
}

.productCard-servicesList {
    display: flex;
    gap: 14px;
}

.productCard-servicesListItem {
    display: block;
    position: relative;
    font-size: 10px;

    &:after {
        content: '|';
        display: block;
        position: absolute;
        top: 0;
        right: -8px;
    }

    &:last-child {
        &:after {
            display: none;
        }
    }
}

.productCard-qty {
    display: grid;
    grid-template-columns: max-content 1fr max-content;
    gap: 5px 18px;
}

.productCard-qtyLabel {
    display: block;
    line-height: 40px;
}

.productCard-qtySelect {
    height: 40px;
    width: 115px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #666666;
}

.productCard-qtyGetButton {
    height: 40px;
    font-size: 22px;
    line-height: 1;
    min-width: 135px;
    padding: 0 18px;
    font-weight: normal;
}

.productCard-qtyMinimum {

}

.productCard-qtyMinimum {
    display: block;
    text-align: center;
    grid-column: 2 / 3;
    font-size: 9px;
}

.productCard-qtyShipping {
    display: block;
    text-align: center;
    grid-column: 3 / -1;
    font-size: 9px;
}

.productCard-qtyShippingTitle {
    font-weight: bold;
    font-size: 11px;
}

.productCard-warranty {
    display: flex;
    margin-bottom: 28px;
}

.productCard-warranty_mobile {
    display: none;
}

.productCard-warrantyText {
    position: relative;
    padding-left: 56px;

    &:before {
        content: '';
        display: block;
        width: 47px;
        height: 47px;
        background: url("../images/img--warranty-lifetime.svg") center center no-repeat;
        position: absolute;
        left: 0;
        top: 0;
    }
}

.productCard-warrantyText_lifetime {
    &:before {
        background: url("../images/img--warranty-lifetime.svg") center center no-repeat;
    }
}

.productCard-warrantyText_365 {
    &:before {
         background: url("../images/img--warranty-365.svg") center center no-repeat;
    }
}

.productCard-warrantyText_90 {
    &:before {
         background: url("../images/img--warranty-90.svg") center center no-repeat;
    }
}

.productCard-warrantyTitle {
    margin: 0;
    font-weight: bold;
}

.productCard-warrantyPara {
    margin: 0;
    font-family: var(--main-font-family-3);
    font-size: 11px;
    line-height: 16px;
}

.productCard-warrantyReadMore {
    font-family: var(--main-font-family-2);
    font-size: 12px;
    font-weight: 300;

    &:hover {
        text-decoration: none;
    }
}

.productCard-warrantyMenu {
    display: flex;
    padding: 0;
    margin: 0 0 0 auto;
    gap: 18px;
}

.productCard-warrantyMenuItem {
    display: block;
}

.productCard-warrantyMenuLink {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    line-height: 10px;
    font-weight: 300;
    text-align: center;

    &:before {
        content: '';
        display: block;
        height: 27px;
        width: 41px;
        background-color: #23b423;
        margin: 0 0 5px 0;
    }
}

.productCard-warrantyMenuLink_quality {
    width: 46px;

    &:before {
        background: url("../images/icon--quality.svg") center center no-repeat;
    }
}

.productCard-warrantyMenuLink_protection {
    width: 41px;

    &:before {
        background: url("../images/icon--shipping-protection.svg") center center no-repeat;
    }
}

.productCard-description {
    padding: 0 5px;
    margin-bottom: 20px;
}

.productCard-descriptionPara {
    font-size: 12px;
    line-height: 20px;
    margin: 0 0 10px 0;

    &:last-child {
        margin-bottom: 0;
    }
}

.productCard-specs {
    padding: 0 5px;
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 2px 20px;
}

.productCard-specsTitle {
    margin: 0;
    max-width: 200px;
}

.productCard-specsPara {
    margin: 0;
}

@media (max-width: 1039px) {
    .productCard {
        padding: 20px;
    }

    .productCard-imageWrapper {
        margin: 0 0 20px 0;
    }

    .productCard-options {
        margin-inline: -20px;
    }

    .productCard-imageBox {
        width: 318px;
        height: 318px;
    }

    .productCard-specsTitle {
        max-width: 150px;
    }

    .productCard-qty {
        grid-template-columns: 1fr;

        justify-items: center;
    }

    .productCard-qtyLabel {
        line-height: unset;
        order: 10;
    }

    .productCard-qtySelect {
        order: 20;
    }

    .productCard-qtyMinimum {
        order: 30;
        grid-column: 1 / 2;
    }

    .productCard-qtyGetButton {
        order: 40;
        margin-top: 10px;
    }

    .productCard-qtyShipping {
        order: 50;
        grid-column: 1 / 2;
    }
}

@media (max-width: 767px) {
    .productsList {
        grid-template-columns: 1fr;
        justify-content: center;
        border-left: none;
    }

    .productCard {
        border-left: none;
        border-right: none;
        padding-left: 0;
        padding-right: 0;
    }

    .productCard-carousel {
        width: 100%;
        max-width: 458px;
        padding: 0 27px;
        margin: 0 0 20px 0;
        align-self: center;
    }

    .productCard-carouselImageBox {
        margin: 0;
    }

    .productCard-options {
        margin-inline: 0;
    }

    .productCard-servicesList {
        flex-wrap: wrap;
    }

    .productCard-servicesListItem {
        white-space: nowrap;
    }

    .productCard-warranty {
        padding: 0 12px;
    }

    .productCard-description {
        padding: 0 12px;
    }

    .productCard-specs {
        padding: 0 12px;
    }

    .productCard-specsTitle {
        max-width: 120px;
    }

    .productCard-warranty_desktop {
        .productCard-warrantyMenu {
            display: none;
        }
    }

    .productCard-warranty_mobile {
        display: block;
        margin-bottom: 0;
        margin-top: 28px;

        .productCard-warrantyMenu {
            margin: 0 auto;
            justify-content: center;
        }

        .productCard-warrantyMenuLink {
            width: auto;
        }
    }
}