/* Стили для страницы товара */
.product-page {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Хлебные крошки */
.breadcrumbs {
    margin: 20px 0;
    font-size: 14px;
    color: #666;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.breadcrumbs a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #ffc107;
    text-decoration: underline;
}

.breadcrumbs span {
    color: #333;
    font-weight: 500;
}

/* Контейнер товара */
.product-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-top: 20px;
    padding: 30px;
}

.product-wrapper {
    display: flex;
    gap: 50px;
    margin-bottom: 40px;
}

/* Изображение товара */
.product-image-section {
    flex: 1;
    min-width: 300px;
}

.product-main-image {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #f8f9fa;
    position: relative;
}

.product-main-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.product-main-image:hover img {
    transform: scale(1.02);
}

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

.product-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    background: #f8f9fa;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.product-thumbnail.active {
    border-color: #ffc107;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.product-thumbnail:hover {
    border-color: #ffc107;
}

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

/* Информация о товаре */
.product-info-section {
    flex: 1;
    min-width: 300px;
}

.product-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #333;
    line-height: 1.3;
}

.product-price {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.price-value {
    font-size: 36px;
    font-weight: 700;
    color: #2c5aa0;
    display: inline-block;
}

.price-currency {
    font-size: 20px;
    color: #666;
    display: inline-block;
    margin-left: 5px;
}

/* Кнопки */
.product-actions {
    margin: 30px 0;
    display: flex;
    gap: 15px;
}

.order-btn {
    padding: 16px 40px;
    background: #ffc107;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    flex: 1;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
}

.order-btn:hover {
    background: #e0a800;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.3);
}

.back-btn {
    padding: 16px 30px;
    background: white;
    color: #333;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.back-btn:hover {
    border-color: #ffc107;
    color: #ffc107;
}

/* Описание товара */
.product-description {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
}

.description-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.description-title:before {
    content: '';
    width: 4px;
    height: 20px;
    background: #ffc107;
    border-radius: 2px;
}

.description-content {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.description-content p {
    margin: 0 0 15px 0;
}

.description-content strong {
    color: #333;
    display: inline-block;
    margin: 10px 0 5px 0;
}

.description-list {
    margin: 15px 0;
    padding-left: 20px;
}

.description-list li {
    margin: 8px 0;
    position: relative;
    color: #555;
}

/* Характеристики */
.product-specs {
    margin: 25px 0;
}

.specs-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #333;
}

.specs-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.spec-item {
    padding: 12px 15px;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #ffc107;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.spec-name {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.spec-value {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

/* Детальное описание */
.product-details {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.details-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

.details-tab {
    padding: 12px 30px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    position: relative;
    transition: color 0.3s ease;
    border-radius: 6px 6px 0 0;
}

.details-tab.active {
    color: #2c5aa0;
    font-weight: 600;
}

.details-tab.active:after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 0;
    right: 0;
    height: 3px;
    background: #2c5aa0;
    border-radius: 2px;
}

.details-content {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.details-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 20px 0 15px 0;
    color: #333;
}

.details-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.details-content li {
    margin: 10px 0;
    color: #555;
}

/* Адаптация */
@media (max-width: 992px) {
    .product-main-image {
        height: 400px;
    }

    .product-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .product-image-section,
    .product-info-section {
        width: 100%;
    }

    .specs-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .product-main-image {
        height: 350px;
    }

    .product-page {
        padding: 0 15px;
        margin: 20px auto;
    }

    .product-container {
        padding: 20px;
    }

    .product-title {
        font-size: 26px;
    }

    .price-value {
        font-size: 30px;
    }

    .product-actions {
        flex-direction: column;
    }

    .order-btn,
    .back-btn {
        width: 100%;
        text-align: center;
    }

    .product-thumbnail {
        width: 70px;
        height: 70px;
    }

    .details-tab {
        padding: 10px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .product-main-image {
        height: 280px;
        padding: 5px;
    }

    .product-title {
        font-size: 22px;
    }

    .price-value {
        font-size: 26px;
    }

    .product-description {
        padding: 20px;
    }

    .description-content {
        font-size: 15px;
    }

    .product-thumbnail {
        width: 60px;
        height: 60px;
    }
}
