.mobile-menu-contact .social-links{
    justify-content: flex-start;
    gap: 25px;
}
.mobile-menu-contact .social-link{
    width: auto;
    height: auto;
    background-color: transparent;
}
.mobile-menu-contact .social-link i{
    font-size: 32px;
}

.order-alert-success{
    font-weight: 500;
}
.order-success-table{
    font-size: 12px;
}

.form-check-input:checked{
    background:linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    border-color: transparent;
}

.back-to-step1,
.back-to-step1:active{
    background: linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%) border-box;
    border: 2px solid transparent;
    transition:all 0.2s 0s linear;
    border-color: transparent !important;
}
.back-to-step1 span{
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* Для лучшей поддержки браузеров */
    -webkit-text-fill-color: transparent;
}
.back-to-step1:hover{
    opacity: .7;
}

.cart-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.cart-controls button:not(.add-to-cart) {
    width: 37px;
    height: 37px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    font-size: 18px;
    cursor: pointer;
    display: inline-flex;
    line-height: 30px;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cart-controls button:not(.add-to-cart):hover {
    background: var(--primary-color);
    color: white;
}
.cart-controls svg{
    width: 16px;
    pointer-events: none;
}
.cart-controls button:not(.add-to-cart) path{
    transition:all 0.2s;
}
.cart-controls button:not(.add-to-cart):hover path{
    fill:#fff;
}

.cart-quantity {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    min-width: 20px;
    text-align: center;
}

.cart-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 10px;
    font-size: 12px;
    padding: 0 6px;
    margin-left: 5px;
    font-weight: 600;
}

.cart-counter:empty {
    display: none;
}

/* Стили модального окна */


.product-quick-view {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 30px;
}

.product-images {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
}

.swiper {
    width: 100%;
    max-width: 100%;
}


.product-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}

.product-swiper .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumbs-swiper {
    height: 80px;
}

.thumbs-swiper .swiper-slide {
    opacity: 0.4;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    transition: opacity 0.3s;
}

.thumbs-swiper .swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid var(--primary-color);
}

.thumbs-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.product-name {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-color);
    margin: 0;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}
#quickViewModal .payment-info{
    margin-bottom: 20px;
}
#quickViewModal .product-price{
    margin-bottom: 20px;
}

.payment-info {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    color: #666;
}

.payment-info i {
    color: var(--primary-color);
    font-size: 20px;
    width: 23px;
}

.product-description {
    color: #666;
    line-height: 1.6;
    text-align: left;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color);
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
}

.main-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-slider {
    width: 100%;
    overflow: hidden;
}

.thumbnails {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.thumbnail {
    aspect-ratio: 1;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.thumbnail.active {
    opacity: 1;
    border: 2px solid var(--primary-color);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Стили для стрелок навигации */
.product-swiper .swiper-button-next,
.product-swiper .swiper-button-prev {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-swiper .swiper-button-next:after,
.product-swiper .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.product-swiper .swiper-button-next:hover,
.product-swiper .swiper-button-prev:hover {
    background: var(--primary-color);
    color: white;
}

/* Стили для точек пагинации */
.product-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ccc;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.product-swiper .swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
    width: 24px;
    border-radius: 4px;
}

.modal .product-info {
    display: flex;
    flex-direction: column;
}

.modal .product-info .add-to-cart {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.modal .product-info .add-to-cart {
    width: 100%;
}

@media (max-width: 768px) {
    .product-quick-view {
        grid-template-columns: 1fr;
    }
    
    .product-swiper {
        height: 300px;
    }
    
    .thumbs-swiper {
        height: 60px;
    }
    .cart-controls button:not(.add-to-cart):hover {
        background: white;
    }
    .cart-controls button:not(.add-to-cart):active{
        background: var(--primary-color);
    }
    .cart-controls button:not(.add-to-cart):hover path{
        fill: var(--primary-color);
    }
    .cart-controls button:not(.add-to-cart):active path{
        fill: white;
    }
}

/* Стили страницы корзины */
.cart-page{
    padding: 40px 0;
}
.cart-empty {
    text-align: center;
    padding: 40px 0;
}

.cart-empty p {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.cart-items {
    margin-bottom: 30px;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto;
    gap: 20px;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    min-width: 0;
}

.cart-item-name {
    font-size: 16px;
    margin: 0 0 10px;
}

.cart-item-prices {
    display: flex;
    gap: 10px;
    align-items: center;
}

.cart-item-prices .new-price,
.cart-item-total-prices .new-price,
.cart-total-prices .new-price {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.cart-item-prices .old-price,
.cart-item-total-prices .old-price,
.cart-total-prices .old-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}

.cart-total-prices .new-price {
    font-size: 24px;
}

.cart-total-prices .old-price {
    font-size: 18px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.remove-from-cart {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
}

.remove-from-cart:hover {
    color: #dc3545;
}

.cart-item-total {
    text-align: right;
    min-width: 120px;
}

.cart-item-total-prices {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cart-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.cart-total {
    margin-bottom: 20px;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 500;
}

.cart-total-prices {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-button {
    width: 100%;
    padding: 15px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 15px;
        padding: 20px 0;
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
    }

    .cart-item-controls {
        grid-column: 1 / -1;
        justify-content: space-between;
    }

    .cart-item-total {
        grid-column: 2;
        text-align: right;
    }
    .cart-summary{
        padding: 20px 0;
    }
    .cart-total-prices .new-price{
        font-size: 20px;
    }
    .cart-total-prices .old-price{
        font-size: 16px;
    }
    .step2-btns{
        flex-wrap: wrap;
    }
    .step2-btns button{
        width: 100%;
        height: 45px;
        margin-top: 20px;
    }
    .step2-btns button:first-child{
        margin-top: 0;
    }
    .cart-page{
        padding-top: 20px;
    }

    .product-quick-view .product-images {
        overflow: hidden; /* предотвратит выход содержимого за пределы */
    }

    .product-quick-view .product-images .swiper {
        width: 100%; /* принудительно установим ширину */
        max-width: 100%; /* ограничим максимальную ширину */

    }
    .product-images{
        margin-left: -1rem;
        width: auto;
        margin-right: -1rem;
        max-width: unset;
    }
    .product-images .swiper{
        padding-left: 1rem;
    }
    .product-quick-view .thumbs-swiper{
        display: none;
    }

    .product-quick-view .product-images .swiper-wrapper {
        width: 100%;
        max-width: 100%;
    }

    .product-swiper .swiper-slide{
        width: auto !important;
    }
    .product-quick-view{
        gap:20px;
    }
    #quickViewModal .product-info{
        padding: 0;
    }
    .order-alert-success h3{
        font-size: 18px;
    }
    .order-alert-success p{
        font-size: 14px;
    }

}

/* Стили для блока контактов на странице подтверждения */
.confirmation-contacts {
    margin-top: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    text-align: center;
}

.confirmation-contacts h4 {
    margin-bottom: 20px;
    color: #333;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    transition: all 0.3s ease;
    background-color: transparent;
}
.confirmation-contacts .social-link i{
    font-size: 32px;
}

.social-link:hover {
    transform: scale(1.1);
}

.fa-telegram {
    color: #23a2e0;
}

.fa-whatsapp {
    color: #25D366;
}
