/* styles/product-card.css */

/* Основная карточка товара */
.not-found {
        text-align: center;
        padding: 80px 20px;
    }
    .not-found h1 {
        font-size: 32px;
        margin-bottom: 20px;
        color: #333;
    }
    .not-found p {
        margin-bottom: 30px;
        color: #666;
    }
    .btn-primary {
        display: inline-block;
        padding: 12px 24px;
        background: #f54900;
        color: white;
        text-decoration: none;
        border-radius: 8px;
        font-weight: 600;
        border: none;
        cursor: pointer;
    }
    .unit {
        margin-left: 10px;
        color: #666;
        font-size: 14px;
    }
    .quantity-btn {
        width: 36px;
        height: 36px;
        background: #f0f0f0;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-size: 18px;
    }
    .quantity-input {
        width: 60px;
        height: 36px;
        text-align: center;
        border: 1px solid #ddd;
        border-radius: 6px;
    }
    .quantity-selector {
        display: flex;
        align-items: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    .quantity-controls {
        display: flex;
        align-items: center;
        gap: 5px;
    }
    .product-actions {
        display: flex;
        gap: 15px;
        margin-top: 20px;
        flex-wrap: wrap;
    }
    .add-to-cart-btn, .add-to-favorites-btn {
        padding: 12px 24px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 16px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .add-to-cart-btn {
        background: #f54900;
        color: white;
        border: none;
    }
    .add-to-favorites-btn {
        background: white;
        color: #333;
        border: 1px solid #ddd;
    }

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin: 30px 0;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Галерея изображений */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.image-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.thumbnail.active {
    border-color: #f54900;
}

.thumbnail:hover {
    border-color: #f54900;
}

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

/* Информация о товаре */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    color: #ffc107;
    font-size: 18px;
}

.rating-value {
    font-weight: 600;
    color: #333;
}

.reviews-count {
    color: #666;
    font-size: 14px;
}

/* Цены */
.product-price-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
}

.current-price {
    font-size: 32px;
    font-weight: 700;
    color: #f54900;
}

.old-price {
    font-size: 20px;
    color: #999;
    text-decoration: line-through;
}

.discount-badge {
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

/* Поставщик */
.product-supplier {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.supplier-label {
    color: #666;
    font-size: 14px;
}

.supplier-name {
    color: #f54900;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

.supplier-name:hover {
    text-decoration: underline;
}

.supplier-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.supplier-rating .stars {
    font-size: 14px;
}

/* Наличие */
.product-stock {
    font-size: 14px;
}

.in-stock {
    color: #28a745;
    font-weight: 500;
}

.out-of-stock {
    color: #dc3545;
    font-weight: 500;
}

/* Опции товара */
.product-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quantity-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quantity-selector label {
    font-weight: 600;
    color: #333;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    border-color: #f54900;
    color: #f54900;
}

.quantity-input {
    width: 60px;
    height: 40px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    /* Убираем стрелки */
    -moz-appearance: textfield; /* Firefox */
    appearance: textfield; /* Современные браузеры */
}

    /* Убираем стрелки в Chrome, Safari, Edge, Opera */
    .quantity-input::-webkit-outer-spin-button,
    .quantity-input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

.quantity-input:focus {
    outline: none;
    border-color: #f54900;
}

/* Кнопки действий */
.product-actions {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.btn-icon {
    font-size: 18px;
}

/* Доставка */
.delivery-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.delivery-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.delivery-item .icon {
    font-size: 20px;
}

.delivery-text {
    display: flex;
    flex-direction: column;
}

.delivery-text strong {
    color: #333;
    font-size: 14px;
}

.delivery-text span {
    color: #666;
    font-size: 13px;
}

/* Описание товара */
.product-description {
    margin: 50px 0;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.product-description h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #000000;
}

.product-description h3 {
    font-size: 18px;
    margin: 20px 0 10px;
    color: #000000;
}

.description-content {
    line-height: 1.6;
    color: #666;
}

.specs-list {
    list-style: none;
    padding: 0;
}

.specs-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.specs-list li:last-child {
    border-bottom: none;
}

.specs-list strong {
    color: #333;
    min-width: 200px;
    display: inline-block;
}

.meta-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    font-size: 12px;
    color: #999;
}

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

.related-products h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #000000;
    text-align: center;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .main-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .product-detail {
        padding: 20px;
        margin: 20px 0;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .current-price {
        font-size: 28px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .main-image {
        height: 250px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .breadcrumbs {
        font-size: 12px;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .product-detail {
        padding: 15px;
    }
    
    .product-title {
        font-size: 20px;
    }
    
    .current-price {
        font-size: 24px;
    }
    
    .product-price-section {
        flex-wrap: wrap;
    }
    
    .main-image {
        height: 200px;
    }
}
.product-detail .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Стили для модального окна (если нужно) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}