/* ============================================================
   Search box & suggestion dropdown — extracted from header.twig
   ============================================================ */

#main-search-wrap { position: relative; flex: 1; max-width: 100%; margin: 0 50px; }

.seacrh-inner-box {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--blue);
    border-radius: 8px;
    overflow: visible;
    transition: border-color .2s;
}
.seacrh-inner-box:active { border: 2px solid var(--blue); }
.seacrh-inner-box input[name=search] {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 14px;
    font-size: 14px;
    color: #111827;
    background: transparent;
    font-family: inherit;
}
.seacrh-inner-box input[name=search]::placeholder { color: #9ca3af; }

#srch-btn {
    background: #3b5cff;
    border: none;
    padding: 0 18px;
    height: 100%;
    min-height: 42px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 0 6px 6px 0;
    font-size: 20px;
}
#srch-btn:hover { background: #2347e0; }

/* Suggestion dropdown */
#srch-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,.15);
    z-index: 99999;
    overflow: hidden;
    min-width: 100%;
}

.sd-tabs { display: flex; border-bottom: 1px solid #f1f5f9; padding: 8px 12px 0; }
.sd-tab-btn {
    background: none;
    border: none;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px 6px 0 0;
    color: #4b5563;
    transition: all .18s;
    margin-right: 4px;
}
.sd-tab-btn.active { background: #ff5625; color: #fff; }
.sd-tab-btn:not(.active):hover { background: #f5f6fa; color: #111; }

.sd-pane { display: none; max-height: 340px; overflow-y: auto; }
.sd-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: #111827;
    transition: background .15s;
    border-bottom: 1px solid #f9fafb;
}
.sd-item:last-child { border-bottom: none; }
.sd-item:hover { background: #f5f6fa; }

.sd-thumb {
    width: 54px;
    height: 54px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 4px;
    border: 1px solid #f1f5f9;
    background: #fff;
    padding: 2px;
}
.sd-info { flex: 1; min-width: 0; }
.sd-name { font-size: 13px; font-weight: 500; color: #111827; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-price { margin-top: 3px; }
.sd-pnew { font-size: 13px; font-weight: 700; color: #ff5625; }
.sd-pold { font-size: 11px; color: #9ca3af; text-decoration: line-through; margin-left: 5px; }
.sd-see-all { display: block; text-align: center; padding: 10px; font-size: 13px; font-weight: 600; color: #ff5625; text-decoration: none; border-top: 1px solid #f1f5f9; }
.sd-see-all:hover { background: #fff8f6; color: #e04520; }
.sd-empty { padding: 18px 14px; font-size: 13px; color: #9ca3af; text-align: center; }

#srch-footer { display: none; }

/* Mobile search bar */
.mob-srch-bar { position: relative; }
.mob-srch-row { display: flex; gap: 8px; align-items: center; }
.mob-srch-inner { flex: 1; position: relative; }

#mob-srch-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,.15);
    z-index: 99999;
    overflow: hidden;
}
