/* product-styles.css */
/* Стили для селекторов опций */
.option-selector {
    margin: 20px 0;
}

.option-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #2c3e50;
}

.option-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.option-option {
    position: relative;
}

.option-option input {
    display: none;
}

.option-label {
    display: inline-block;
    padding: 8px 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.option-option input:checked + .option-label {
    border-color: #e74c3c;
    background-color: #e74c3c;
    color: white;
}

.option-label:hover {
    border-color: #c0392b;
}

/* Стили для страницы товара */
.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.product-gallery {
    display: flex;
    flex-direction: column;
}

.main-image {
    background-color: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumbnails {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail.active {
    border-color: #e74c3c;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 20px 0;
}

.product-title {
    font-size: 28px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.product-price {
    font-size: 32px;
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 15px;
}

.product-rating {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-count {
    color: #666;
    font-size: 14px;
}

.product-features {
    margin: 25px 0;
}

.product-features h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.product-features ul {
    list-style: none;
    padding-left: 0;
}

.product-features li {
    margin-bottom: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.product-actions {
    margin: 30px 0;
}

.quantity-selector {
    margin-bottom: 20px;
}

.quantity-selector label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.quantity-selector input {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-secondary {
    background-color: #3498db;
    margin-left: 10px;
}

.btn-secondary:hover {
    background-color: #2980b9;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

.btn-outline:hover {
    background-color: #e74c3c;
    color: white;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.availability, .delivery-info, .warranty {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.in-stock {
    background-color: #d4edda;
    color: #155724;
}

/* Табы */
.product-tabs {
    margin: 50px 0;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 30px;
}

.tab-link {
    padding: 15px 25px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.tab-link.active {
    border-bottom-color: #e74c3c;
    color: #e74c3c;
    font-weight: bold;
}

.tab-panel {
    display: none;
    line-height: 1.8;
}

.tab-panel.active {
    display: block;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.specs-table td {
    padding: 12px 15px;
}

.specs-table td:first-child {
    width: 30%;
    font-weight: bold;
}

/* Отзывы */
.review {
    border-bottom: 1px solid #f0f0f0;
    padding: 20px 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.review-author {
    font-weight: bold;
}

.review-date {
    color: #666;
    font-size: 14px;
}

/* Похожие товары */
.related-products {
    margin-top: 60px;
}

.related-products h2 {
    text-align: center;
    margin-bottom: 30px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .product-detail-content {
        grid-template-columns: 1fr;
    }
    
    .tabs-header {
        flex-wrap: wrap;
    }
    
    .tab-link {
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
}

/* В product-styles.css */
.related-products {
    margin-top: 60px;
}

.related-products .products-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}