﻿.product {
    margin-top: 100px;
}

.product-card__title {
    margin-bottom: 30px;
}

.product-card {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.product-card__image {
    flex: 0 0 40%;
    border-radius: 8px;
    overflow: hidden;
}

.product-card__prop {
    width: 100%;
}

    .product-card__prop h2 {
        margin-bottom: 20px;
    }

.product-final__price {
    margin: 50px 0;
    font-size: 25px;
}

.product-card__title {
    font-size: 40px;
    font-weight: 600;
    line-height: 140%;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #444;
    display: flex;
    justify-content: center;
    align-items: center;
    height:auto;
}

    .swiper-slide img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.swiper {
    width: 100%;
    height: 300px;
    margin-left: auto;
    margin-right: auto;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
}

.mySwiper2 {
    height: 80%;
    width: 100%;
}

.mySwiper {
    height: 20%;
    box-sizing: border-box;
    padding: 10px 0;
}

    .mySwiper .swiper-slide {
        width: 25%;
        height: 100%;
        opacity: 0.4;
        height: auto;
    }

    .mySwiper .swiper-slide-thumb-active {
        opacity: 1;
    }


.info__description {
    font-size: 16px;
    line-height: 150%;
    color: #777;
    text-align: justify;
    margin-bottom: 20px;
}

.product-card .product-card__title, .properties-item {
    border-bottom: 1px solid rgba(18, 36, 64, 0.3);
    padding-bottom: 15px;
}

.properties-item__title {
    margin-bottom: 20px;
}

.product-card__price {
    font-size: 25px;
    margin-bottom: 20px;
}

.custom-radio {
    display: none;
}

.radio-img-label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 4px;
    transition: border-color 0.2s;
}

.custom-radio:checked + .radio-img-label {
    border-color: #0078d7; /* Highlight color */
    box-shadow: 0 0 8px rgba(0,120,215,0.2);
}

.product-element__chosen {
    display: flex;
    margin-top: 10px;
    display: none;
}



.product .add-to-basket.w-100 button {
    margin-top: 0;
}


.product-accordion {
    border-radius: 6px;
    overflow: hidden;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 21px;
    border-bottom: 0px;
    border-top: 0px;
}


.product-item {
    border-bottom: 1px solid #ddd;
}

.product-question {
    padding: 12px 16px;
    background: #f7f7f7;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

    .product-question:hover {
        background: #eee;
    }

    .product-question > div {
        display: flex;
        align-items: center;
    }

.count-element {
    background: red;
    color: white;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 9px;
    margin-top: -12px;
    margin-left: 4px;
}

.product-answer {
    display: none;
    padding: 12px 16px;
    background: white;
}

    .product-answer.active {
        display: block;
    }

.product-toggle {
    font-weight: bold;
    transition: transform .3s;
}

.product-question.open .product-toggle {
    transform: rotate(45deg);
}

.radio-img {
    width: 100px;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.properties-item__group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.addToBasket {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background-color: var(--color-green);
    padding: 0 10px;
}

    .addToBasket:hover {
        background: var(--color-green-hover);
    }

    .addToBasket img {
        width: 20px;
        height: 20px;
        margin: 0 4px;
    }

.addToBasket {
    width: 100%;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    height: 49px;
    line-height: 49px;
    border-radius: 4px;
    transition: all 0.3s ease 0s;
}

.product-card__desc {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

    .product-card__desc ul {
        display: flex;
        flex-direction: column;
        gap: 10px;

    }
    .product-card__desc ul li {
        display:flex;
        gap: 10px;
    }


    .checkmark {
        margin: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: 100vh;
        background: #ffffffe0;
        z-index: 10000;
    }

    .checkmark svg {
        width: 400px;
        height: 400px;
        max-width: 400px;
        margin: auto;
    }

    .checkmark span {
        position: absolute;
        top: 65%;
        font-size: 28px;
    }

@keyframes checkmark {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

#checkmark {
    animation: checkmark 1s forwards;
}


@media (max-width: 767.99px) {
    .product {
        margin-top: 80px;
    }

    .product-card {
        flex-direction: column;
    }

    .product-card__title {
        font-size: 25px;
    }

    .product-card__price {
        font-size: 18px;
    }

    .product-card__prop h2 {
        font-size: 16px;
        line-height: 140%;
    }

    .product-answer {
        padding: 8px 12px;
    }

    .radio-img-label {
        gap: 10px;
        padding: 2px;
        font-size: 12px;
    }

    .radio-img {
        width: 80px;
    }

    .radio-title {
        line-height: 1.2;
    }

    .product .add-to-basket.w-100 button {
        margin-top: 0px;
    }

    .product-final__price {
        margin: 30px 0;
        font-size: 20px;
    }

    .info__description {
        font-size: 14px;
    }
}


@media (max-width: 532.99px) {

    .checkmark svg {
        width: 300px;
        height: 300px;
    }

    .checkmark span {
        font-size: 20px;
    }
}
