/* assets/header-search.css - responsive flex styling */
.wa-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 1rem 1.7rem;
    background: #e3ece0;
    width: 100%;
    flex-wrap: nowrap; /* keep in one row unless media query */
}

/* Left Logo Section */
.wa-left .wa-logo {
    font-weight: 700;
    font-size: 10px;
    color: #111;
    text-decoration: none;
    flex: 0 0 auto; /* fixed size, no shrink */
}

.wa-left {
    width: 12%;
}

/* Center Search Section */
.wa-center {
    flex: 2 1 auto; /* grows and shrinks */
    min-width: 200px;
}
.wa-search-wrap {
    position: relative;
    width: 100%;
}
.wa-search-input {
    width: 100%;
    padding: 1.7rem !important;
    border-radius: 25px !important;
    border: 1px solid #e6e6e6;
    font-size: 16px;
    box-shadow: none;
    background: #fff !important;
}

/* Search Suggestions */
.wa-suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    z-index: 9999;
    overflow: hidden;
}
.wa-suggestion-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid #f3f3f3;
}
.wa-sugg-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
}
.wa-sugg-title {
    font-weight: 600;
    color: #111;
    text-decoration: none;
    display: block;
}
.wa-sugg-excerpt {
    font-size: 13px;
    color: #666;
    margin-top: 6px;
}
.wa-no {
    padding: 12px;
    color: #666;
}

/* Right Icon Section */
.wa-right {
    flex: 0 1 auto; /* allow shrinking */
    display: flex;
    justify-content: flex-end;
    min-width: 100px;
    flex-wrap: wrap;
}
.wa-icon-btn {
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0px 12px;
    border-radius: 8px;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #000;
}
.wa-icon-btn:hover {
    color: #76e43a;
}
.wa-icon-btn svg {
    width: 2.5rem;
}

/* Fallback Card Grid */
.wa-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.wa-card {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.wa-card-thumb img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}
.wa-card-title {
    margin: 12px 0 8px;
    font-size: 18px;
}
.wa-card-excerpt {
    color: #666;
    font-size: 14px;
    flex: 1;
}
.wa-card-meta {
    margin-top: 12px;
    font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 880px) {
    .wa-center {
        width: 80%;
    }
    .wa-left {
        width: 20%;
    }
    .wa-right {
        display: none; /* hide icons on small screens */
    }
}
