/* Search Page Styles */

.search-results-section {
    padding: 40px 0;
    background: #f9f9f9;
}

.results-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--theme-color);
}

.results-header h2 {
    font-family: 'Jost', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.results-header p {
    font-size: 15px;
    color: #666;
}

.results-header strong {
    color: var(--theme-color);
    font-weight: 600;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.product-item {
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* No Results Container */
.no-results-container {
    text-align: center;
    border-radius: 12px;
    margin: 40px 0;
}

.no-results-container svg {
    margin-bottom: 30px;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.no-results-container h2 {
    font-family: 'Jost', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.no-results-container p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

.no-results-container a {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--theme-color), rgba(15, 143, 172, 0.8));
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(15, 143, 172, 0.25);
}

.no-results-container a:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 143, 172, 0.35);
    color: white;
}

/* Responsive Design */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .results-header h2 {
        font-size: 24px;
    }

    .no-results-container {
        padding: 60px 15px;
    }

    .no-results-container h2 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .results-header h2 {
        font-size: 20px;
    }

    .results-header p {
        font-size: 13px;
    }

    .no-results-container {
        padding: 50px 15px;
    }

    .no-results-container h2 {
        font-size: 20px;
    }

    .no-results-container p {
        font-size: 14px;
    }

    .no-results-container a {
        padding: 12px 24px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .results-header h2 {
        font-size: 18px;
    }

    .results-header p {
        font-size: 12px;
    }

    .no-results-container {
        padding: 40px 10px;
    }

    .no-results-container h2 {
        font-size: 18px;
    }

    .no-results-container svg {
        width: 80px;
        height: 80px;
    }
}

/* Product Card Images Fix */
.product-card .img-box {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 8px 8px 0 0;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .img-box a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .img-box img,
.product-card .img-box .img-fluid,
.product-card .img-box .bg-img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

.product-card .content-box {
    padding: 16px;
    text-align: left;
}

.product-card .content-box a {
    text-decoration: none;
    color: inherit;
}

.product-card .product-subcategory {
    font-size: 12px;
    color: var(--theme-color);
    font-weight: 500;
    margin: 0 0 8px 0;
    text-transform: capitalize;
}

.product-card h5 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .price-box {
    display: flex;
    gap: 8px;
    align-items: center;
}

.product-card span {
    color: var(--theme-color);
    font-weight: 600;
    font-size: 14px;
}

.product-card del {
    color: #999;
    font-size: 12px;
    text-decoration: line-through;
}
