
.product-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

/* Галерея изображений товара */
.product-gallery {
    position: relative;
}

.main-image {
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.main-image img {
    max-width: 100%;
    height: auto;
}

.image-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid #ddd;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.thumbnail.active {
    border-color: #4a8bc8;
    box-shadow: 0 0 5px rgba(74, 139, 200, 0.5);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Информация о товаре */
.product-info {
    position: relative;
}

.product-title {
    font-size: 24px;
    color: #2a5c8a;
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-rating {
    margin-bottom: 15px;
}

.stars {
    color: #ffcc00;
    margin-right: 10px;
}

.rating-count {
    color: #666;
    font-size: 13px;
}

.product-status {
    display: inline-block;
    padding: 5px 10px;
    background: #6fbf4d;
    color: white;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 15px;
}

.product-status.out-of-stock {
    background: #ff3333;
}

.product-price-block {
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.current-price {
    font-size: 32px;
    font-weight: bold;
    color: #ff0000;
    margin-bottom: 5px;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 18px;
    margin-bottom: 15px;
}

.discount {
    display: inline-block;
    background: #ff3333;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: bold;
    margin-left: 10px;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-buy {
    padding: 12px;
    background: linear-gradient(to bottom, #ff9900, #e69500);
    border: 1px solid #cc7700;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.btn-buy:hover {
    background: linear-gradient(to bottom, #ffaa00, #ff8800);
    transform: translateY(-2px);
}

.btn-favorite {
    padding: 12px;
    background: linear-gradient(to bottom, #f0f0f0, #e0e0e0);
    border: 1px solid #ccc;
    border-radius: 5px;
    color: #666;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-favorite:hover {
    background: linear-gradient(to bottom, #ffcc00, #ffaa00);
    color: #333;
}

/* Основные характеристики - ЧТО НРАВИТСЯ */
.product-features {
    margin-bottom: 20px;
}

.features-list {
    list-style: none;
}

.features-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
}

.feature-name {
    width: 40%;
    color: #666;
}

.feature-value {
    width: 60%;
    font-weight: bold;
}

/* Табы с описанием и характеристиками */
.product-tabs {
    margin-bottom: 30px;
}

.tabs-nav {
    display: flex;
    border-bottom: 2px solid #4a8bc8;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 12px 25px;
    background: linear-gradient(to bottom, #f0f0f0, #e0e0e0);
    border: none;
    border-right: 1px solid #ddd;
    cursor: pointer;
    font-weight: bold;
    color: #666;
    transition: all 0.3s;
}

.tab-btn.active {
    background: linear-gradient(to bottom, #4a8bc8, #2a5c8a);
    color: white;
}

.tab-btn:first-child {
    border-radius: 5px 0 0 0;
}

.tab-btn:last-child {
    border-right: none;
    border-radius: 0 5px 0 0;
}

.tab-content {
    display: none;
    padding: 20px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 0 5px 5px 5px;
}

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


.product-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.product-image {
    height: 150px;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #ddd;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff0000;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.product-info-small {
    padding: 15px;
}

.product-title-small {
    font-size: 14px;
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
}

.product-price-small {
    font-size: 18px;
    font-weight: bold;
    color: #ff0000;
    margin-bottom: 10px;
}

.product-old-price-small {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
    margin-left: 5px;
}

.product-btn {
    display: block;
    width: 100%;
    padding: 8px;
    background: linear-gradient(to bottom, #6fbf4d, #4a8c28);
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
    text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.product-btn:hover {
    background: linear-gradient(to bottom, #5faf3d, #3a7c18);
}

/* Мобильная версия */
@media (max-width: 991px) {
    .product-page {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-actions {
        grid-template-columns: 1fr;
    }

    .delivery-options {
        grid-template-columns: 1fr;
    }

    .products-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .product-card {
        flex: 1 0 calc(50% - 10px);
        min-width: 140px;
    }

    .product-image {
        height: 120px;
    }

    .benefits-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }

    .benefit-item {
        flex: 1 0 calc(50% - 15px);
        min-width: 140px;
    }

    .benefit-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tabs-nav {
        flex-direction: column;
    }

    .tab-btn {
        border-right: none;
        border-bottom: 1px solid #ddd;
    }

    .tab-btn:first-child {
        border-radius: 5px 5px 0 0;
    }

    .tab-btn:last-child {
        border-radius: 0;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .product-card {
        flex: 1 0 100%;
    }

    .benefit-item {
        flex: 1 0 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}