/* Основной блок */
.product-section {
    background-color: #f8f9fa;
}

/* Галерея */
.product-gallery {
    position: relative;
}

    .product-gallery .main-image {
        max-width: 100%;
        max-height: 450px;
        object-fit: contain;
        border-radius: 10px;
        background: #fff;
        transition: transform 0.2s ease;
    }

        .product-gallery .main-image:hover {
            transform: scale(1.02);
        }

.gallery-thumb {
    width: 80px;
    height: 80px;
    cursor: pointer;
    border-radius: 6px;
    object-fit: cover;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

    .gallery-thumb:hover {
        transform: scale(1.05);
        border-color: #1F839F;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .gallery-thumb.active {
        border: 2px solid #1F839F;
    }

/* Бейджи */
.product-badge {
    position: absolute;
    top: 15px;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 4px;
    z-index: 10;
    color: #fff;
}

.badge-discount {
    background-color: #e63946;
}

.badge-new {
    background-color: #2a9d8f;
}

.position-left {
    left: 15px;
}

.position-right {
    right: 15px;
}

/* Заголовок и инфо */
.product-section h1 {
    font-size: 1.8rem;
}

.product-section .fs-4 {
    font-size: 1.5rem;
}

/* Цена */
.price-block {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

    .price-block span {
        line-height: 1.2;
    }

/* Кнопки +/- */
.product-section .btn {
    min-width: 38px;
}

.product-section input[type="number"] {
    max-width: 70px;
    text-align: center;
}

/* Кнопка "В корзину" */
.add-to-cart {
    font-size: 1rem;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

    .add-to-cart:hover {
        background-color: #176A81 !important;
    }

    .add-to-cart.added {
        transform: scale(1.05);
    }

/* Вкладки */
.nav-tabs .nav-link {
    color: #555;
    font-weight: 500;
    transition: color 0.2s ease, border-color 0.2s ease;
}

    .nav-tabs .nav-link.active {
        color: #1F839F;
        border-color: #1F839F #1F839F #fff;
        background-color: #fff;
        font-weight: 600;
    }

    .nav-tabs .nav-link:hover {
        color: #1F839F;
    }

/* Контент вкладок */
.tab-content {
    border-radius: 0 0 10px 10px;
    background-color: #fff;
    font-size: 0.95rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Адаптив */
@media (max-width: 991.98px) {
    .product-gallery .main-image {
        max-height: 300px;
    }

    .gallery-thumb {
        width: 60px;
        height: 60px;
    }

    .product-section h1 {
        font-size: 1.5rem;
    }

    .product-section .fs-4 {
        font-size: 1.2rem;
    }
}

@media (max-width: 575.98px) {
    .price-block span {
        font-size: 1.1rem;
    }

    .product-badge {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
}
