/* Results Section */
.results {
    padding: 80px 0;
    background: #f8f9fa;
}

.results__loading {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4A90E2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.results__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.results__empty {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #666;
}

/* Product Cards - Улучшенный дизайн */
.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(74, 144, 226, 0.25);
    border-color: #4A90E2;
}

.product-card__image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card__image img {
    transform: scale(1.05);
}

.product-card__marketplace {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.product-card__marketplace.ozon {
    background: linear-gradient(135deg, #005bff 0%, #0047cc 100%);
}

.product-card__marketplace.wildberries {
    background: linear-gradient(135deg, #cb11ab 0%, #a00d8a 100%);
}

.product-card__content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card__title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #2c3e50;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
}

.product-card__info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.product-card__seller {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #7f8c8d;
}

.product-card__seller .material-icons {
    font-size: 16px;
    color: #95a5a6;
}

.product-card__rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #f39c12;
}

.product-card__rating .material-icons {
    font-size: 18px;
}

.product-card__prices {
    margin-top: auto;
    margin-bottom: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.product-card__price-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.product-card__price-main .product-card__price {
    font-size: 28px;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.product-card__price-main .product-card__price-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.product-card__price-regular {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
}

.product-card__price-regular .product-card__price-without-card {
    font-size: 20px;
    color: #666;
    font-weight: 600;
    text-decoration: none;
    line-height: 1;
}

.product-card__price-regular .product-card__price-label {
    font-size: 11px;
    color: #999;
    font-weight: normal;
}

.product-card__discount {
    position: absolute;
    top: -8px;
    right: -8px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
    z-index: 10;
}

.product-card__price {
    font-size: 28px;
    font-weight: 700;
    color: #27ae60;
    margin-bottom: 4px;
    line-height: 1;
}

.product-card__price-label {
    font-size: 12px;
    color: #7f8c8d;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-card__price-label::before {
    content: '💳';
    font-size: 14px;
}

.product-card__button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.product-card__button:hover {
    background: linear-gradient(135deg, #357ABD 0%, #2868a8 100%);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
    transform: translateY(-2px);
}

.product-card__button .material-icons {
    font-size: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .results__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .product-card__image {
        height: 240px;
    }
}

@media (max-width: 768px) {
    .results {
        padding: 60px 0;
    }
    
    .results__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-card__image {
        height: 280px;
    }
    
    .product-card__title {
        font-size: 15px;
    }
    
    .product-card__price {
        font-size: 24px;
    }
}