/**
 * Стили для страницы товара
 */

.product-section {
    background: var(--white);
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

/* Product Layout */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

/* Product Gallery */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gallery-main {
    width: 100%;
    height: 500px;
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
}

.gallery-thumbs img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.gallery-thumbs img:hover,
.gallery-thumbs img.active {
    border-color: var(--primary-color);
}

/* Product Details */
.product-details h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.product-sku {
    font-size: 14px;
    color: var(--text-light);
}

.product-stock {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.product-stock.in-stock {
    color: var(--success);
}

.product-stock.out-of-stock {
    color: var(--error);
}

.product-price-block {
    margin-bottom: 20px;
}

.product-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
}

.product-short-description {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 30px;
}

.add-to-cart-product {
    width: 100%;
    max-width: 400px;
}

/* Product Tabs */
.product-tabs {
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
}

.tabs-nav {
    display: flex;
    background: var(--white);
    border-bottom: 2px solid var(--border);
}

.tab-btn {
    flex: 1;
    padding: 15px 30px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tabs-content {
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Product Description */
.product-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-dark);
}

.product-description h1,
.product-description h2,
.product-description h3 {
    margin-top: 25px;
    margin-bottom: 15px;
}

.product-description ul,
.product-description ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.product-description li {
    margin-bottom: 10px;
}

/* Specifications Table */
.specifications-table {
    width: 100%;
    background: var(--white);
}

.specifications-table th {
    width: 40%;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
}

.specifications-table td {
    color: var(--text-light);
}

/* Адаптивность */
@media screen and (max-width: 992px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .gallery-main {
        height: 400px;
    }
}

@media screen and (max-width: 576px) {
    .product-details h1 {
        font-size: 24px;
    }
    
    .product-price {
        font-size: 28px;
    }
    
    .gallery-main {
        height: 300px;
    }
    
    .gallery-thumbs img {
        width: 70px;
        height: 70px;
    }
    
    .tabs-nav {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .tabs-content {
        padding: 20px;
    }
}