
/* Базовые стили */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumbs a {
    color: var(--primary-green);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}
.products-section {
    padding: 10px 20px;
}   

/* Контейнер товара */
.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 10px 0;
}

@media (max-width: 992px) {
    .product-detail-container {
        grid-template-columns: 1fr;
    }
}

/* Галерея */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image-container {
    width: 100%;
    height: 500px;
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-thumbnails {
    display: flex;
    margin: 0 auto;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.thumbnail.active {
    border-color: var(--primary-green);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Информация о товаре */
.product-info-detail {
    padding: 0 20px;
}

.product-title-detail {
    font-size: 24px;
    color: var(--dark-gray);
    margin-bottom: 10px;
}

.product-category-detail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--light-green);
    color: var(--primary-green);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 15px;
}

.product-price-section {
    margin: 25px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
}

.current-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-green);
    display: block;
    margin-bottom: 10px;
}

.stock-status {
    font-size: 16px;
}

.in-stock {
    color: var(--secondary-green);
    font-weight: 600;
}

.out-of-stock {
    color: #f44336;
    font-weight: 600;
}

/* Описание и характеристики */
.product-description-detail,
.product-characteristics {
    margin: 25px 0;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #eee;
}

.product-description-detail h3,
.product-characteristics h3 {
    color: var(--primary-green);
    margin-bottom: 15px;
    font-size: 18px;
}

.product-characteristics ul {
    list-style: none;
    padding: 0;
}

.product-characteristics li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.char-name {
    color: #666;
}

.char-value {
    color: var(--dark-gray);
    font-weight: 500;
}

/* Кнопки добавления в корзину */
.product-actions {
    display: flex;
    gap: 15px;
    margin: 30px 0;
    align-items: center;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--primary-green);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    font-size: 18px;
    color: var(--primary-green);
    cursor: pointer;
}

.qty-btn:hover {
    background: #f5f5f5;
}

#productQuantity {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.add-to-cart-detail {
    flex: 1;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--secondary-green), var(--primary-green));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.add-to-cart-detail:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-green), #1b5e20);
}

.add-to-cart-detail:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Особенности товара */
.product-features-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 25px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.feature i {
    color: var(--primary-green);
}

/* Похожие товары */
.related-products {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.related-products h2 {
    color: var(--primary-green);
    margin-bottom: 25px;
    text-align: center;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.related-product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s ease;
}

.related-product-card:hover {
    transform: translateY(-5px);
}

.related-product-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-product-image {
    width: 100%;
    height: 200px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 15px;
}

.related-product-info {
    padding: 15px;
}

.related-product-info h4 {
    font-size: 16px;
    color: var(--dark-gray);
    margin-bottom: 10px;
    line-height: 1.4;
    height: 45px;
    overflow: hidden;
}

.related-product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.stock-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.stock-badge.in-stock {
    background: var(--light-green);
    color: var(--secondary-green);
}

.stock-badge.out-of-stock {
    background: #ffebee;
    color: #f44336;
}

.add-to-cart-related {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: var(--primary-green);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-to-cart-related:hover:not(:disabled) {
    background: var(--primary-green);
    color: white;
}

.add-to-cart-related:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
