﻿/* ============================================
   PRODUCT.CSS - Стили для страницы товара
   ============================================ */

.product-detail {
    padding: 2rem 0;
}

/* Двухколоночная вёрстка */
.product-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.product-gallery {
    flex: 1;
    min-width: 300px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.product-info {
    flex: 1;
    min-width: 300px;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

/* Квадратное изображение */
.main-image {
    aspect-ratio: 1 / 1;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    overflow: hidden;
}

    .main-image img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

/* Миниатюры */
.thumbnail-list {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.thumbnail {
    width: 70px;
    height: 70px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 0.25rem;
    background: var(--white);
    transition: var(--transition);
}

    .thumbnail:hover {
        border-color: var(--primary);
    }

    .thumbnail.active {
        border-color: var(--primary);
        box-shadow: 0 0 0 2px var(--primary-light);
    }

    .thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

/* Информация о товаре */
.product-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.product-article {
    color: var(--gray-500);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.product-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1rem 0;
}

.product-description {
    margin: 1.5rem 0;
    line-height: 1.6;
    color: var(--gray-700);
}

/* Характеристики */
.characteristics {
    margin-top: 1.5rem;
}

    .characteristics h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid var(--primary);
        display: inline-block;
    }

.characteristics-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

    .characteristics-table td {
        padding: 0.75rem;
        border-bottom: 1px solid var(--gray-200);
    }

        .characteristics-table td:first-child {
            font-weight: 600;
            width: 35%;
            background: var(--gray-100);
        }

/* Кнопка */
.btn-add-to-cart {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    margin-top: 1rem;
}

/* Похожие товары */
.related-products {
    margin-top: 3rem;
}

    .related-products h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }

/* Адаптивность */
@media (max-width: 768px) {
    .product-row {
        flex-direction: column;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .product-price {
        font-size: 1.75rem;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
    }
}
