 /* Основний контейнер */
    .product-detail-container {
        max-width: 1400px;
        width: 100%;
        margin: 0 auto;
        display: flex;
        flex-wrap: wrap;
        gap: 30px;
        padding: 20px;
    }

    /* --- ЛІВА КОЛОНКА: ГАЛЕРЕЯ --- */
    .product-gallery {
        flex: 1 1 350px;
        max-width: 500px;
    }

    .main-image-frame {
        width: 100%;
        height: 400px;
        border: 1px solid #e1e1e1;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 15px;
        background: #fff;
        padding: 20px;
    }

    .main-image-frame img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    .thumbnails {
        display: flex;
        gap: 10px;
        overflow-x: auto;
    }

    .thumb {
        width: 80px;
        height: 80px;
        border: 1px solid #ddd;
        border-radius: 4px;
        cursor: pointer;
        object-fit: contain;
        padding: 5px;
        transition: border-color 0.2s;
    }

    .thumb:hover, .thumb.active {
        border-color: #337ab7;
    }

    /* --- ПРАВА КОЛОНКА: ІНФО --- */
    .product-info-col {
        flex: 2 1 400px;
    }

    h1 {
        font-size: 28px;
        margin-bottom: 5px;
        color: #333;
        line-height: 1.2;
    }

    .name-en {
        font-size: 16px;
        color: #777;
        margin-bottom: 20px;
        font-style: italic;
    }

    .stock-status {
        margin-bottom: 20px;
        font-size: 14px;
    }
    .in-stock { color: #28a745; font-weight: bold; }
    .out-stock { color: #dc3545; font-weight: bold; }

    .price-block {
        font-size: 32px;
        font-weight: bold;
        color: #d9534f;
        margin-bottom: 30px;
    }

    .product-actions {
        display: flex;
        gap: 20px;
        align-items: center;
        padding: 20px 0;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
    }

    .btn-add-cart {
        background-color: var(--accent-color);
        color: white;
        border: none;
        padding: 15px 40px;
        font-size: 18px;
        font-weight: bold;
        border-radius: 5px;
        cursor: pointer;
        transition: background 0.2s;
    }

    .btn-add-cart:hover {
        background-color: #218838;
    }

    .btn-add-cart:disabled {
        background-color: #ccc;
        cursor: not-allowed;
    }

    .product-description {
        margin-top: 30px;
        line-height: 1.6;
        color: #555;
    }

    .product-details-section {
        margin-top: 40px;
        background-color: #fff;
        border: 1px solid #e1e1e1;
        border-radius: 8px;
        overflow: hidden; /* Щоб кути не обрізалися */
    }

    /* Навігація (верхня смуга) */
    .tabs-nav {
        display: flex;
        background-color: #f7f7f7;
        border-bottom: 1px solid #ddd;
        flex-wrap: wrap; /* Щоб на мобільному переносилися */
    }

    .tab-btn {
        background: none;
        border: none;
        outline: none;
        padding: 15px 25px;
        cursor: pointer;
        font-size: 16px;
        font-weight: 600;
        color: #555;
        transition: 0.3s;
        border-right: 1px solid #ddd; /* Роздільник */
    }

    .tab-btn:hover {
        background-color: #eee;
        color: #337ab7;
    }

    /* Активна кнопка */
    .tab-btn.active {
        background-color: #fff;
        color: #337ab7; /* Синій колір активної вкладки */
        border-bottom: 2px solid transparent; /* Щоб перекрити лінію знизу */
        position: relative;
    }
    
    /* Робимо так, щоб активна вкладка "зливалася" з контентом */
    .tab-btn.active::after {
        content: "";
        position: absolute;
        bottom: -2px; /* Зсув вниз */
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #fff;
    }

    /* Вміст */
    .tabs-content-wrapper {
        padding: 30px;
        background: #fff;
        min-height: 200px;
    }

    .tab-pane {
        display: none; /* Ховаємо всі за замовчуванням */
        animation: fadeIn 0.4s;
    }

    .tab-pane.active {
        display: block; /* Показуємо активний */
    }

    .info-content {
        line-height: 1.8;
        color: #444;
        font-size: 16px;
    }

    /* Анімація появи */
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(5px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .quantity-selector {
        display: flex;
        border: 1px solid #ddd;
        border-radius: 5px;
        overflow: hidden;
    }
    .quantity-selector button {
        background: #f1f1f1;
        border: none;
        width: 40px;
        font-size: 18px;
        cursor: pointer;
    }
    .quantity-selector button:hover { background: #e1e1e1; }
    .quantity-selector input {
        width: 50px;
        text-align: center;
        border: none;
        font-weight: bold;
    }
    /* Прибирає стрілочки в Chrome/Safari */
    .quantity-selector input::-webkit-outer-spin-button,
    .quantity-selector input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    /* --- СТИЛІ КАТЕГОРІЙ НА СТОРІНЦІ ПРОДУКТУ --- */

.product-categories-tags {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.cat-label {
    font-size: 14px;
    color: #888;
    font-weight: 600;
    margin-right: 5px;
}

.cat-tag {
    display: inline-block;
    background-color: #f0f4f8; 
    color: #555;
    padding: 6px 14px;
    border-radius: 20px; 
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.cat-tag:hover {
    background-color: var(--primary-color); 
    color: #fff;
    transform: translateY(-2px); 
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.product-buy-box {
    flex: 0 0 320px; /* Фіксована ширина 320px */
}

/* Стиль картки для блоку купівлі */
.buy-box-inner {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Тінь для виділення */
    position: sticky; /* Щоб блок "лип" при прокрутці */
    top: 20px;
}

.price-block {
    font-size: 34px;
    font-weight: 800;
    color: var(--bg-dark);
    margin-bottom: 20px;
    text-align: center;
}

.product-actions-form {
    display: flex;
    flex-direction: column; /* Елементи один під одним */
    gap: 15px;
}

.qty-label {
    font-size: 14px;
    color: var(--bg-dark);
    margin-bottom: -10px;
}

.quantity-selector {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    height: 45px;
}
.quantity-selector button {
    flex: 1;
    background: #f8f9fa;
    border: none;
    font-size: 18px;
    cursor: pointer;
}
.quantity-selector input {
    flex: 1;
    width: 50px;
    text-align: center;
    border: none;
    font-weight: bold;
    font-size: 16px;
}

.btn-add-cart {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-add-cart:hover { background-color: #218838; }
.btn-add-cart:disabled { background-color: #ccc; cursor: not-allowed; }

.shipping-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #666;
}
.shipping-info p { margin-bottom: 5px; }
.shipping-info i { color: #28a745; margin-right: 8px; width: 15px; text-align: center;}


/* 5. Секція ТАБІВ (Завжди знизу) */
.product-details-section {
    flex-basis: 100%; 
    width: 100%;
    margin-top: 20px;
    background-color: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
}