.product-page{
    padding-top:140px;
}
.product-wrapper{
    margin-top:34px;
}

.product-head{
    display:flex;
    gap:40px;
}
.product-head .product-gallery-wrapper{
    width:50%;
}
.product-head .product-gallery-wrapper .product-slide img{
    width:100%;
    height:400px;
    border-radius:8px;
}
.product-head .product-gallery-wrapper .product-nav-slide{
    margin:0 5px;
}
.product-head .product-gallery-wrapper .product-nav-slide:hover{
    cursor:pointer;
}
.product-head .product-gallery-wrapper .product-nav-slide img{
    width:100%;
    height:120px;
    border-radius:4px;
}
.product-gallery-slider{
    margin-bottom:20px;    
}
.product-head .product-title{
    width:50%;
    display:flex;
    flex-direction:column;
    gap:15px;
}
.product-price{
    font-size:26px;
    font-weight:500;
}
.product-head .product-title p{
    line-height: 1.5;
}
.product-gallery-slider-nav .slick-slide {
    opacity: 0.5;
    transform: scale(0.95);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    margin: 0 5px;
}

.product-gallery-slider-nav .slick-slide.custom-active {
    opacity: 1;
    transform: scale(1);
    border-color: #7F3476;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius:5px;
}
.product-cart-control .qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.product-cart-control .add-to-cart-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.quantity .qty-input {
    -moz-appearance: textfield;
}
.quantity .qty-input::-webkit-outer-spin-button,
.quantity .qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.product-cart-control .quantity {
    max-width: 150px;
}
.product-cart-control .qty-btn {
    width: 36px;
    height: 36px;
}
.product-cart-control .qty-input {
    width: 60px;
    height: 36px;
}
/* ===== Product Cart Toggle ===== */
.product-cart-toggle {
    width: 100%;
    max-width: 260px;
}

/* Кнопка "Заказать" */
.product-add-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    border-radius: 12px;
    transition: background-color 0.2s, transform 0.1s;
}

.product-add-btn:active {
    transform: scale(0.97);
}

/* Группа +/− */
.product-qty-group {
    display: flex;
    align-items: center;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #7F3476;
    width: 100%;
    height: 44px;
}

.product-qty-btn {
    width: 44px;
    height: 100%;
    border: none;
    border-radius: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s;
    flex-shrink: 0;
    padding: 0;
}

.product-qty-btn:hover {
    opacity: 0.85;
}

.product-qty-btn:active {
    transform: scale(0.95);
}

.product-qty-value {
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--bs-body-color, #212529);
    user-select: none;
    background: #fff;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Анимация появления */
.product-cart-toggle .ms3-add-to-cart,
.product-cart-toggle .ms3-cart-controls {
    animation: productCartFadeIn 0.2s ease;
}

@keyframes productCartFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Состояние загрузки */
.product-cart-toggle.is-loading .product-add-btn,
.product-cart-toggle.is-loading .product-qty-btn {
    pointer-events: none;
    opacity: 0.6;
}
@media (max-width: 768px) {
   .product-page {
        padding-top: 70px;
    }
   .product-wrapper {
        margin-top: 10px;
    }
    .product-page{
        padding-top:70px;
    }
   .product-head {
       flex-direction:column;
       align-items: center;
       gap:20px
   }
   .product-head .product-title {
        width: 100%;
    }
    .product-head .product-gallery-wrapper {
        width:100%;
    }
    .product-head .product-gallery-wrapper .product-slide img {
        height:250px;
    }
    .product-head .product-gallery-wrapper .product-nav-slide img {
        height:90px;
    }
    
    .product-add-btn {
        letter-spacing: 6px;
        font-weight: 500;
        padding: 18px 24px;
        font-size: 20px;
    }
    .product-cart-toggle {
        max-width:none;
    }
    .product-qty-btn {
        padding: 16px 40px;
    }
    .product-qty-value {
        font-size:22px;
    }
    .product-qty-btn:hover {
        opacity: 1;
        background-color:#7F3476;
    }
}