/* --- Search Results Page Wrapper --- */
.search-results .content-area {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
    padding: 50px 20px;
    max-width: 1320px;
    margin: 0 auto;
}

/* Make the Search Title span across all columns */
.search-results .page-header {
    grid-column: 1 / -1;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 20px;
    padding-bottom: 15px;
}

.search-results .page-title {
    font-size: 28px;
    font-weight: 700;
    color: #0b3e27; /* Tazaj Primary Green */
}

.search-results .page-title span {
    color: #125b39;
    font-style: italic;
}

/* --- Individual Product Card (Article) --- */
.search-results article.product {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    padding: 15px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.search-results article.product:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transform: translateY(-5px);
    border-color: #0b3e27;
}

/* Image Styling */
.search-results .post-thumbnail {
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 10px;
    background: #f9f9f9;
}

.search-results .post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.search-results article:hover .post-thumbnail img {
    transform: scale(1.05);
}

/* Title Styling */
.search-results .entry-header {
    margin-bottom: 10px;
}

.search-results .entry-title {
    font-size: 16px;
    line-height: 1.4;
    margin: 0;
}

.search-results .entry-title a {
    text-decoration: none;
    color: #1f2937;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 44.81px;
}

/* Meta Data (Date, Author) - Often hidden on grocery search for a cleaner look */
.search-results .entry-meta {
    display: none; /* Remove this line if you want to show dates/author */
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 10px;
}

/* Content/Excerpt Styling */
.search-results .entry-content {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    flex-grow: 1; /* Pushes button to bottom */
}

.search-results .entry-content p {
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 54.41px;
}

/* Button Styling (Read More) */
.search-results .read-more {
    display: block;
    text-align: center;
    background-color: #0b3e27; /* Tazaj Yellow */
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none !important;
    font-size: 14px;
    transition: 0.2s;
    margin-top: auto;
}

.search-results .read-more:hover {
    background-color: #fdd835;
    color: #0b3e27;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .search-results .content-area {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 10px;
    }
    
    .search-results .page-title {
        font-size: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .search-results .content-area {
        grid-template-columns: 1fr;
    }
}