
/* =====================================================
   KITTU BITTU FOODS - SEARCH DESIGN
   Desktop, Tablet & Mobile Responsive
===================================================== */

.kbf-search-strip,
.kbf-search-strip * {
    box-sizing: border-box;
}

.kbf-search-strip {
    width: 100%;
    padding: 13px 18px;
    background: linear-gradient(110deg, #17603f 0%, #267c50 100%);
    position: relative;
    z-index: 5;
}

.kbf-search-inner {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.kbf-search-form {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    margin: 0;
}

.kbf-search-form input {
    flex: 1 1 auto;
    width: 0;
    min-width: 0;
    height: 49px;
    padding: 0 16px;
    border: 1px solid #e2e7e2;
    border-radius: 12px;
    outline: none;
    background: #fff;
    color: #26382b;
    font-family: inherit;
    font-size: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.kbf-search-form input::placeholder {
    color: #858b86;
    opacity: 1;
}

.kbf-search-form input:focus {
    border-color: #f0c75e;
    box-shadow: 0 0 0 3px rgba(240, 199, 94, 0.22);
}

.kbf-search-form button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 112px;
    height: 49px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: #31583d;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.kbf-search-form button:hover {
    background: #23452e;
}

.kbf-search-form button:active {
    transform: scale(.98);
}

.kbf-search-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =====================================================
   SEARCH RESULTS PAGE
===================================================== */

.kbf-results-page,
.kbf-results-page * {
    box-sizing: border-box;
}

.kbf-results-page {
    min-height: 55vh;
    padding: 36px 18px 60px;
    background: #f8f8f3;
}

.kbf-results-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.kbf-results-title {
    margin: 0 0 10px;
    color: #31583d;
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.25;
}

.kbf-results-description {
    margin: 0 0 22px;
    color: #666;
    font-size: 15px;
    line-height: 1.7;
}

.kbf-results-search {
    margin-bottom: 24px;
}

.kbf-results-count {
    margin: 0 0 15px;
    color: #555;
    font-size: 14px;
}

.kbf-results-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.kbf-result-card {
    display: block;
    min-width: 0;
    padding: 20px;
    border: 1px solid #e5e9df;
    border-radius: 15px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.035);
    transition: transform .2s ease, box-shadow .2s ease;
}

.kbf-result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.kbf-result-card h2 {
    margin: 0 0 9px;
    color: #31583d;
    font-size: 19px;
    line-height: 1.4;
}

.kbf-result-card p {
    margin: 0 0 14px;
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

.kbf-result-card .kbf-result-link {
    color: #31583d;
    font-size: 14px;
    font-weight: 700;
}

.kbf-no-results {
    padding: 28px 20px;
    border: 1px solid #e5e9df;
    border-radius: 15px;
    background: #fff;
    text-align: center;
}

.kbf-no-results h2 {
    margin-top: 0;
    color: #31583d;
}

.kbf-no-results p {
    margin-bottom: 0;
    color: #666;
    line-height: 1.7;
}

/* Tablet */

@media (max-width: 700px) {
    .kbf-results-list {
        grid-template-columns: 1fr;
    }

    .kbf-results-page {
        padding: 28px 15px 45px;
    }
}

/* Mobile */

@media (max-width: 480px) {
    .kbf-search-strip {
        padding: 11px 12px;
    }

    .kbf-search-form {
        gap: 7px;
    }

    .kbf-search-form input {
        height: 46px;
        padding: 0 11px;
        font-size: 13px;
        border-radius: 10px;
    }

    .kbf-search-form button {
        min-width: 83px;
        height: 46px;
        gap: 6px;
        padding: 0 11px;
        font-size: 13px;
        border-radius: 10px;
    }

    .kbf-search-form button i {
        font-size: 12px;
    }

    .kbf-results-title {
        font-size: 27px;
    }

    .kbf-result-card {
        padding: 17px;
    }
}

@media (max-width: 350px) {
    .kbf-search-form button {
        min-width: 70px;
        padding: 0 8px;
    }

    .kbf-search-form input {
        font-size: 12px;
    }
}
