/* ==========================================================================
   АДАПТИВНАЯ ВЕРСТКА ДЛЯ СТРАНИЦЫ ТОВАРА (css/adaptate_products.css)
   ========================================================================== */

/* --- 1. ПЛАНШЕТЫ И МАЛЕНЬКИЕ НОУТБУКИ (до 968px) --- */
@media (max-width: 968px) {
    body {
        padding-top: 70px;
    }

    .container {
        padding: 0 20px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 40px;
    }

    .product-info h1 {
        font-size: 28px;
    }

    .product-price {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .btn-add-to-cart {
        max-width: 100%;
        margin-bottom: 30px;
    }

    .kit-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

/* --- 2. МОБИЛЬНЫЕ УСТРОЙСТВА (до 768px) --- */
@media (max-width: 768px) {
    body {
        padding-top: 65px;
    }

    .product-section {
        padding: 15px 0 0 0;
    }

    .product-grid {
        gap: 24px;
        margin-bottom: 32px;
    }

    /* Компактная галерея */
    .product-gallery {
        max-width: 320px;
        margin: 0 auto;
        gap: 12px;
    }

    .main-image-box {
        max-width: 300px;
        border-radius: 16px;
    }

    .thumbnail-list {
        max-width: 300px;
        gap: 10px;
    }

    .thumb-item {
        width: 60px;
        height: 60px;
        border-radius: 10px;
    }

    /* Инфо о товаре */
    .product-info h1 {
        font-size: 24px;
        line-height: 1.25;
        margin-bottom: 6px;
    }

    .product-subtitle {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .product-price {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .btn-add-to-cart {
        font-size: 15px;
        padding: 14px 20px;
        border-radius: 10px;
        margin-bottom: 25px;
    }

    /* Характеристики */
    .specs-short-list {
        padding-top: 18px;
    }

    .specs-short-list li {
        font-size: 13px;
        margin-bottom: 10px;
    }

    /* Комплектация */
    .kit-section {
        padding: 24px 18px;
        border-radius: 18px;
        margin-bottom: 30px;
    }

    .kit-section h2 {
        font-size: 20px;
        margin-bottom: 18px;
    }

    .kit-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .kit-item-card {
        padding: 14px 10px;
        border-radius: 12px;
        gap: 8px;
    }

    .kit-item-icon {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    .kit-item-card span {
        font-size: 13px;
    }


}

/* --- 3. СМАРТФОНЫ (до 480px) --- */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    /* Уменьшаем фото, чтобы не занимало весь экран */
    .product-gallery {
        max-width: 270px;
    }

    .main-image-box {
        max-width: 250px;
        border-radius: 14px;
    }

    .thumbnail-list {
        max-width: 250px;
        gap: 8px;
    }

    .thumb-item {
        width: 50px;
        height: 50px;
    }

    /* Тексты */
    .product-info h1 {
        font-size: 21px;
    }

    .product-subtitle {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .product-price {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .btn-add-to-cart {
        font-size: 14px;
        padding: 12px 16px;
        margin-bottom: 20px;
    }

    /* Возвращаем характеристики в одну строку */
    .specs-short-list li {
        font-size: 12px;
        margin-bottom: 8px;
        flex-wrap: nowrap !important;
    }

    .specs-short-list .spec-value {
      
        flex: initial !important;
    }

    /* Блок комплектации */
    .kit-section {
        padding: 20px 12px;
    }

    .kit-section h2 {
        font-size: 18px;
        margin-bottom: 14px;
    }

    .kit-grid {
        gap: 8px;
    }

    .kit-item-card {
        padding: 10px 6px;
    }

    .kit-item-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .kit-item-card span {
        font-size: 12px;
    }
}

/* --- 4. ЭКСТРЕМАЛЬНО МАЛЕНЬКИЕ ЭКРАНЫ (до 360px) --- */
@media (max-width: 360px) {
    .product-gallery {
        max-width: 230px;
    }

    .main-image-box {
        max-width: 220px;
    }

    .thumbnail-list {
        max-width: 220px;
    }

    .thumb-item {
        width: 44px;
        height: 44px;
    }

    .product-info h1 {
        font-size: 19px;
    }

    .product-price {
        font-size: 20px;
    }
}

 /* Уведомление о добавлении в корзину */
.custom-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--gradient-primary, linear-gradient(135deg, #e06a3b, #ff2e93));
    color: #fff;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    font-weight: 600;
    font-size: 15px;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 16px;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    max-width: 380px;
}

.custom-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-link {
    color: #fff;
    text-decoration: underline;
    font-weight: 700;
    white-space: nowrap;
    font-size: 14px;
}

.toast-link:hover {
    text-decoration: none;
    opacity: 0.9;
}

@media (max-width: 576px) {
    .custom-toast {
        left: 20px;
        right: 20px;
        top: auto;
        bottom: 20px;
        font-size: 14px;
        padding: 14px;
    }
}
@media (max-width: 768px) {
    H2{
        font-size: 22px !important;
    }
}
@media (max-width: 500px) {
.capacity-grid{
    gap: 10px;
}
.capacity-card{
    padding:10px 20px
}
}