/* Страница товара */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    margin: 30px 0;
}

.product-gallery {
    position: sticky;
    top: 100px;
}
.price-range {
    margin-bottom: 10px;
}

.price-range-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.obfuscated-note {
    margin-top: 8px;
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}
.company-name {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
    line-height: 1.3;
}

.user-name {
    font-weight: 500;
    color: #333;
}
    .obfuscated-note svg {
        flex-shrink: 0;
    }

.wholesale-obfuscated {
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
    text-align: center;
}

.obfuscated-text {
    font-size: 18px;
    color: #999;
    font-weight: 500;
}

.obfuscated-note-small {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
}

.wholesale-more {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
    text-align: center;
}
.main-image {
    position: relative;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1;
}

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

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

    .product-badge.discount {
        background: #ff4d4f;
        color: white;
    }

    .product-badge.hit {
        background: #faad14;
        color: white;
    }

    .product-badge.new {
        background: #52c41a;
        color: white;
    }

.thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    background: #f8f9fa;
}

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

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

.product-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.sku {
    font-family: monospace;
}

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

    .rating .stars {
        color: #faad14;
    }

.reviews {
    color: #999;
}

.title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.short-desc {
    color: #666;
    font-size: 15px;
    line-height: 1.5;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    background: #f8f9fa;
    padding: 16px;
    border-radius: 16px;
}

    .specs-grid .label {
        color: #666;
    }

    .specs-grid .value {
        font-weight: 500;
        color: #333;
    }

.stock-delivery {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.stock.in {
    color: #52c41a;
}

.stock.out {
    color: #ff4d4f;
}

.delivery {
    color: #1565c0;
}

.prices {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

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

    .current-price .unit {
        font-size: 16px;
        font-weight: 400;
        color: #666;
    }

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

.wholesale {
    background: #f6ffed;
    border-radius: 16px;
    padding: 16px;
}

    .wholesale .title {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 12px;
        color: #333;
    }

.wholesale-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wholesale-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

    .wholesale-item .price {
        font-weight: 600;
        color: #52c41a;
    }

.supplier {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 16px;
}

.supplier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

    .supplier-header .name {
        font-weight: 700;
        font-size: 16px;
    }

    .supplier-header .rating {
        color: #faad14;
    }

.supplier .since,
.supplier .orders,
.supplier .purchases {
    font-size: 13px;
    color: #666;
    margin-top: 6px;
}

.supplier .verified {
    margin-top: 10px;
    color: #52c41a;
    font-size: 13px;
}

.actions {
    display: flex;
    gap: 16px;
    margin: 8px 0;
}

.btn-cart {
    flex: 2;
    background: linear-gradient(135deg, #f54900, #d43f00);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
}

.btn-quick {
    flex: 1;
    background: white;
    color: #f54900;
    border: 2px solid #f54900;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
}

.description .title,
.nutrition .title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f54900;
    display: inline-block;
}

.description p {
    line-height: 1.6;
    color: #555;
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    text-align: center;
}

    .nutrition-grid div {
        background: #f8f9fa;
        padding: 12px;
        border-radius: 12px;
    }

    .nutrition-grid span {
        display: block;
        font-size: 12px;
        color: #999;
    }

    .nutrition-grid strong {
        display: block;
        font-size: 18px;
        color: #333;
        margin-top: 4px;
    }

.not-found {
    text-align: center;
    padding: 80px 20px;
}

    .not-found h2 {
        font-size: 28px;
        margin-bottom: 16px;
    }

    .not-found p {
        color: #666;
        margin-bottom: 24px;
    }

@media (min-width: 1921px) {
    .product-detail {
        grid-template-columns: 1fr 1.3fr;
        gap: 48px;
    }

    .title {
        font-size: 32px;
    }

    .current-price {
        font-size: 36px;
    }
}

@media (min-width: 1600px) and (max-width: 1920px) {
    .product-detail {
        grid-template-columns: 1fr 1.2fr;
        gap: 40px;
    }

    .title {
        font-size: 30px;
    }

    .current-price {
        font-size: 34px;
    }
}

@media (min-width: 1366px) and (max-width: 1599px) {
    .product-detail {
        grid-template-columns: 1fr 1.2fr;
        gap: 36px;
    }

    .title {
        font-size: 28px;
    }

    .current-price {
        font-size: 32px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .product-detail {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .title {
        font-size: 24px;
    }

    .current-price {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 20px;
    }

    .current-price {
        font-size: 24px;
    }

    .product-gallery {
        position: static;
    }

    .thumbnails {
        gap: 8px;
    }

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

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

    .nutrition-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .actions {
        flex-direction: column;
    }
}

@media (max-width: 360px) {
    .title {
        font-size: 18px;
    }

    .current-price {
        font-size: 22px;
    }

    .thumbnail {
        width: 50px;
        height: 50px;
    }

    .product-detail {
        gap: 20px;
    }
}
.supplier-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.supplier-logo-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
/* ===== ФОРМА ДОБАВЛЕНИЯ ОТЗЫВА ===== */
.review-form-container {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid #eee;
}

.review-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.form-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.form-rating {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.rating-input {
    display: flex;
    gap: 6px;
}

.rating-input .star {
    font-size: 24px;
    cursor: pointer;
    color: #ddd;
    transition: color 0.2s ease;
}

.rating-input .star:hover,
.rating-input .star.hovered,
.rating-input .star.selected {
    color: #faad14;
}

.review-form-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #f54900, #d43f00);
    color: white;
    font-weight: 600;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-transform: uppercase;
}

.form-name-input {
    flex: 1;
    max-width: 250px;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

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

.form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 16px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: #f54900;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.char-counter {
    font-size: 12px;
    color: #999;
}

.btn-submit-review {
    background: linear-gradient(135deg, #f54900, #d43f00);
    border: none;
    color: white;
    padding: 10px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.btn-submit-review:hover {
    opacity: 0.85;
}

.btn-submit-review:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Анимация нового отзыва */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-item.new {
    animation: fadeInUp 0.4s ease;
}

/* Адаптив формы */
@media (max-width: 768px) {
    .review-form-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-user {
        flex-wrap: wrap;
    }
    
    .form-name-input {
        max-width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-submit-review {
        width: 100%;
        text-align: center;
    }
}
/* ===== БЛОК ОТЗЫВОВ ===== */
.reviews-section {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.reviews-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #333;
}

.reviews-rating-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 8px 20px;
    border-radius: 40px;
}

.average-rating {
    font-size: 28px;
    font-weight: 700;
    color: #f54900;
}

.summary-stars {
    font-size: 18px;
    letter-spacing: 2px;
}

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

/* Карточка отзыва */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.review-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 20px 24px;
    transition: box-shadow 0.2s ease;
}

.review-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f54900, #d43f00);
    color: white;
    font-weight: 600;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-transform: uppercase;
}

.user-name {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
}

.review-date {
    font-size: 12px;
    color: #999;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.review-rating .stars {
    color: #faad14;
    font-size: 14px;
    letter-spacing: 1px;
}

.rating-value {
    font-weight: 500;
    color: #666;
    font-size: 14px;
}

.review-content {
    color: #555;
    line-height: 1.5;
    margin-bottom: 16px;
    font-size: 15px;
}

.review-content p {
    margin: 0;
}

/* Кнопки лайков */
.review-actions {
    display: flex;
    gap: 16px;
}

.like-btn,
.dislike-btn {
    background: #f8f9fa;
    border: none;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #666;
}

.like-btn:hover {
    background: #e6f7e6;
    color: #52c41a;
}

.dislike-btn:hover {
    background: #fee;
    color: #ff4d4f;
}

.like-btn.active {
    background: #e6f7e6;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.dislike-btn.active {
    background: #fee;
    color: #ff4d4f;
    border: 1px solid #ffa39e;
}

.like-count,
.dislike-count {
    font-weight: 600;
}

/* Футер отзывов */
.reviews-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 16px;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-show-more {
    background: transparent;
    border: 2px solid #f54900;
    color: #f54900;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-show-more:hover {
    background: #f54900;
    color: white;
}

.btn-write-review {
    background: linear-gradient(135deg, #f54900, #d43f00);
    border: none;
    color: white;
    padding: 10px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.btn-write-review:hover {
    opacity: 0.85;
}

/* Адаптив */
@media (max-width: 768px) {
    .reviews-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .reviews-title {
        font-size: 22px;
    }
    
    .average-rating {
        font-size: 24px;
    }
    
    .review-header {
        flex-direction: column;
    }
    
    .review-item {
        padding: 16px;
    }
    
    .user-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .reviews-footer {
        flex-direction: column;
    }
    
    .btn-show-more,
    .btn-write-review {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .reviews-section {
        margin-top: 40px;
    }
    
    .reviews-title {
        font-size: 20px;
    }
    
    .review-content {
        font-size: 14px;
    }
}
