/* Hero Section */
.products-hero {
    background: linear-gradient(135deg, #0A58CA 0%, #0947A8 100%);
    color: white;
    position: relative;
    overflow: hidden;
}
.products-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}
.products-hero h1 {
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.products-results-loading {
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

@media (max-width: 768px) {
    .products-hero h1 {
        font-size: 1.8rem;
    }
}

/* Product card */
.product-card {
    background: #fff;
    border: 1px solid var(--gray-200, #E9ECF0);
    border-radius: var(--radius, 20px);
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,0.02), 0 4px 12px rgba(0,0,0,0.03));
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-lg, 0 20px 35px -12px rgba(0,0,0,0.08));
    transform: translateY(-6px);
}

.product-card .card-image {
    background: var(--gray-100, #F1F3F7);
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-card .card-image-link {
    display: block;
    height: 100%;
}

.product-card .card-image img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    width: 100%;
}

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

.product-card .discount-badge {
    background: linear-gradient(135deg, #DC2626, #B91C1C);
    border-radius: 20px;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    left: 12px;
    padding: 4px 10px;
    position: absolute;
    top: 12px;
    z-index: 2;
}

.product-card .featured-badge {
    align-items: center;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    border-radius: 20px;
    color: #fff;
    display: flex;
    font-size: 0.7rem;
    font-weight: 700;
    gap: 4px;
    padding: 4px 10px;
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 2;
}

.product-card .stock-badge {
    border-radius: 20px;
    bottom: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 4px 10px;
    position: absolute;
    right: 12px;
    z-index: 2;
}

.product-card .stock-available {
    background: #10b981;
    color: #fff;
}

.product-card .stock-low {
    background: #f59e0b;
    color: #fff;
}

.product-card .stock-empty {
    background: #dc2626;
    color: #fff;
}

.product-card .city-badge {
    align-items: center;
    background: var(--brand-light, #E8F0FE);
    border-radius: 20px;
    color: var(--brand, #0A58CA);
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 700;
    gap: 4px;
    margin-bottom: 0.5rem;
    padding: 4px 9px;
}

.product-card .card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.25rem;
}

.product-card .card-title {
    color: var(--gray-800, #212529);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.product-card .card-title a {
    color: inherit;
    text-decoration: none;
}

.product-card .card-title a:hover {
    color: var(--brand, #0A58CA);
}

.product-card .rating-stars {
    align-items: center;
    display: flex;
    gap: 4px;
    margin-bottom: 0.5rem;
}

.product-card .rating-stars i {
    color: #FBBF24;
    font-size: 0.7rem;
}

.product-card .card-price {
    margin-bottom: 0.5rem;
}

.product-card .old-price {
    color: var(--gray-500, #9AA4B2);
    font-size: 0.8rem;
    margin-left: 0.5rem;
    text-decoration: line-through;
}

.product-card .new-price {
    color: var(--brand, #0A58CA);
    font-size: 1.1rem;
    font-weight: 800;
}

.product-card .product-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.product-card .btn-brand {
    background: var(--brand, #0A58CA);
    border-color: var(--brand, #0A58CA);
    color: #fff;
    font-weight: 700;
}

.product-card .btn-brand:hover {
    background: var(--brand-dark, #0947A8);
    border-color: var(--brand-dark, #0947A8);
    color: #fff;
}
