/* Search Page Styles - Modern & Professional */
.search-page {
    font-family: 'Poppins', sans-serif;
    color: #333;
}

/* Hero Section */
.search-hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 2.5rem 0;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.search-hero h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
    position: relative;
    padding-left: 15px;
}

.search-hero h1::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background: #4a6cf7;
    border-radius: 3px;
}

/* Search Form */
.search-form-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-top: -20px;
    position: relative;
    z-index: 1;
}

.search-input {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: none !important;
}

.search-input:focus {
    border-color: #4a6cf7;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1) !important;
}

.search-button {
    background: #4a6cf7;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(74, 108, 247, 0.2);
}

.search-button:hover {
    background: #3a57e8;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(74, 108, 247, 0.25);
}

.search-button i {
    margin-right: 8px;
}

/* Section Headers */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 60px;
    background: #4a6cf7;
    transition: width 0.4s ease;
}

.section-container:hover .section-title::after {
    width: 100%;
}

/* Product Cards */
.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-image-container {
    position: relative;
    overflow: hidden;
    padding-top: 75%; /* 4:3 Aspect Ratio */
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff3d71;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-name a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-name a:hover {
    color: #4a6cf7;
}

.product-price-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.current-price {
    font-weight: 600;
    color: #4a6cf7;
    font-size: 1.1rem;
}

.old-price {
    color: #a0aec0;
    text-decoration: line-through;
    font-size: 0.9rem;
}

/* News Cards */
.news-section {
    background: #f8fafc;
    padding: 3rem 0;
    border-radius: 10px;
}

.news-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 1.5rem;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.news-image-container {
    overflow: hidden;
    height: 200px;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.news-content {
    padding: 20px;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2d3748;
}

.news-title a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #4a6cf7;
}

.news-description {
    color: #718096;
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Empty Results */
.empty-results {
    background: #fff5f5;
    border-left: 4px solid #fc8181;
    color: #c53030;
    padding: 2rem;
    border-radius: 5px;
    text-align: center;
    margin: 2rem 0;
}

.empty-results h3 {
    font-size: 1.25rem;
    margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .search-hero h1 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .product-name {
        font-size: 0.9rem;
    }
}
