/* Детальная страница товара */
.product-detail {
    padding: 40px 0;
}

.breadcrumb {
    padding: 15px 0;
    margin-bottom: 30px;
    background-color: transparent;
    border-radius: 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.product-gallery {
    position: relative;
}

.main-image {
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

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

.thumbnail-container {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail:hover {
    border-color: var(--primary-color);
}

.thumbnail.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.product-info h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.product-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: #777;
    font-size: 14px;
}

.product-price {
    margin: 20px 0;
}

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

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

.product-actions {
    display: flex;
    gap: 15px;
    margin: 30px 0;
    align-items: center;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background-color: #f5f5f5;
}

.quantity-input {
    width: 50px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.add-to-cart {
    flex-grow: 1;
    height: 40px;
}

.product-short-description {
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.product-features {
    margin: 20px 0;
}

.product-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
}

.product-features li strong {
    min-width: 120px;
    display: inline-block;
    color: #555;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.share-buttons span {
    color: #777;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 16px;
}

.share-btn.facebook {
    background-color: #3b5998;
}

.share-btn.instagram {
    background-color: #e1306c;
}

.share-btn.vk {
    background-color: #4a76a8;
}

.share-btn.whatsapp {
    background-color: #25d366;
}

/* Табы */
.product-tabs {
    margin: 50px 0;
}

.tabs-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    border-bottom: 1px solid #eee;
}

.tabs-nav li {
    padding: 10px 20px;
    cursor: pointer;
    position: relative;
    color: #777;
}

.tabs-nav li.active {
    color: var(--primary-color);
    font-weight: 500;
}

.tabs-nav li.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.tab-pane {
    display: none;
}

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

.tab-content-inner {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 0 0 8px 8px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th, .specs-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.specs-table th {
    width: 200px;
    color: #555;
    font-weight: normal;
}

/* Отзывы */
.reviews-list {
    margin-bottom: 20px;
}

.review {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.review:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 15px;
}

.review-author {
    font-weight: 500;
}

.review-date {
    color: #777;
    font-size: 14px;
}

.review-rating {
    color: #ffc107;
    margin-left: auto;
}

.add-review-btn {
    margin-top: 20px;
}

/* Похожие товары */
.related-products {
    margin-top: 50px;
}

/* Адаптивность */
@media (max-width: 992px) {
    .product-main {
        grid-template-columns: 1fr;
    }
    
    .thumbnail-container {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .product-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .add-to-cart {
        width: 100%;
    }
    
    .tabs-nav {
        flex-wrap: wrap;
    }
    
    .tabs-nav li {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .specs-table th, .specs-table td {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .specs-table th {
        width: 120px;
    }
}