/* ========================================================
   SEARCH PAGE (search.php)
   ======================================================== */
.search-banner {
    background-color: var(--brand-green, #0fa153);
    padding: 60px 20px;
    text-align: center;
    color: white;
    margin-bottom: 60px;
}
.search-banner-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #ffffff;
    font-family: 'Noto Sans Khmer', sans-serif;
}
.search-banner-content p {
    font-size: 18px;
    margin: 0;
    opacity: 0.9;
}

.search-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px 20px;
    font-family: 'Noto Sans Khmer', sans-serif;
}

/* --- Has Results Header --- */
.search-results-header {
    margin-bottom: 40px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
    text-align: center;
}
.search-results-header h2 {
    font-size: 24px;
    color: #333;
    font-weight: 700;
}

/* -----------------------------------------
   "NOTHING FOUND" ERROR BOX
   ----------------------------------------- */
.no-results-section {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 40px;
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}
.no-results-icon {
    font-size: 60px;
    color: #e0e0e0;
    margin-bottom: 20px;
}
.no-results-section h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}
.no-results-section p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* --- The Custom Search Bar --- */
.custom-search-box form {
    display: flex;
    max-width: 500px;
    margin: 0 auto 50px auto;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-radius: 8px;
}
.custom-search-box .search-field {
    flex: 1;
    padding: 18px 20px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 8px 0 0 8px;
    outline: none;
    font-family: inherit;
    transition: 0.3s;
}
.custom-search-box .search-field:focus {
    border-color: var(--brand-green, #0fa153);
}
.custom-search-box .search-submit {
    background-color: var(--brand-green, #0fa153);
    color: white;
    border: none;
    padding: 0 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 0 8px 8px 0;
    transition: 0.3s;
    font-family: inherit;
}
.custom-search-box .search-submit:hover {
    background-color: #0b7a3d;
}

/* --- Category Suggestions Buttons --- */
.search-suggestions h3 {
    font-size: 18px;
    color: #444;
    margin-bottom: 25px;
}
.suggestion-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}
.suggest-btn {
    padding: 12px 25px;
    border-radius: 6px;
    color: white !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: 0.3s;
}
.suggest-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-green { background-color: var(--brand-green, #0fa153); }
.btn-yellow { background-color: var(--brand-yellow, #ffb800); color: #000 !important; }
.btn-blue { background-color: #0b4a8f; }
.btn-dark-green { background-color: var(--brand-dark-green, #064b17); }

/* ================= MOBILE RESPONSIVE FIXES ================= */
@media (max-width: 600px) {
    .search-banner-content h1 { font-size: 32px; }
    .no-results-section { padding: 40px 20px; }
    
    .custom-search-box form {
        flex-direction: column;
        border-radius: 0;
        box-shadow: none;
        gap: 10px;
    }
    .custom-search-box .search-field {
        border: 1px solid #ddd;
        border-radius: 8px;
    }
    .custom-search-box .search-submit {
        border-radius: 8px;
        padding: 18px;
    }
    .no-results-section h2 { font-size: 26px; }
    .suggestion-buttons { flex-direction: column; }
}

/* --- Search Divider Headings --- */
.search-section-title {
    border-bottom: 2px solid var(--brand-green, #0fa153);
    padding-bottom: 10px;
    margin-bottom: 30px;
}
.search-section-title h3 {
    font-size: 24px;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}
.search-section-title h3 i {
    color: var(--brand-green, #0fa153); /* Makes the little icons green! */
}

/* ========================================================
   PRODUCT TAG STYLING (For Search Cards)
   ======================================================== */
.single-category-grid .product-card {
    position: relative; /* Required to make the tag float correctly */
}

.product-tag {
    position: absolute;
    top: -15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-family: 'Noto Sans Khmer', sans-serif;
    font-weight: 700;
    color: #ffffff; 
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tag-green { 
    background-color: var(--brand-green, #0fa153); 
}