@charset "UTF-8";
/*
 * Header search bar + suggestion dropdown (templates/element/new-theme/navigation.php,
 * new-theme/search_auto_suggestion.php). Loaded on every page by layout/default.php.
 * The theme sets html { font-size: 62.5% }, so px is used here to keep sizes predictable.
 */
.bbs {
    --bbs-red: #ED1D24;
    --bbs-ink: #1b1d21;
    --bbs-muted: #6b7078;
    --bbs-line: #e4e5e9;

    position: relative;
    width: 100%;
    max-width: 680px;
    margin: 8px auto 14px;
    padding: 0 12px;
}

/* ---------- Search field ---------- */
.bbs .bbs__form {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 4px;
    background: #f4f5f7;
    border: 2px solid transparent;
    border-radius: 999px;
    transition: background .2s, border-color .2s, box-shadow .2s;
}
.bbs .bbs__form:hover {
    background: #eef0f3;
}
.bbs .bbs__form:focus-within {
    background: #fff;
    border-color: var(--bbs-red);
    box-shadow: 0 0 0 4px rgba(237, 29, 36, .12), 0 8px 24px rgba(16, 24, 40, .08);
}
.bbs .bbs__icon {
    flex-shrink: 0;
    width: 40px;
    font-size: 16px;
    text-align: center;
    color: var(--bbs-muted);
    pointer-events: none;
}
.bbs .bbs__form:focus-within .bbs__icon {
    color: var(--bbs-red);
}
.bbs .bbs__input {
    flex: 1;
    min-width: 0;
    width: auto;
    height: 100%;
    padding: 0 8px 0 0;
    font-size: 15px;
    color: var(--bbs-ink);
    background: transparent;
    border: 0;
    border-radius: 0;
    outline: none;
    box-shadow: none;
}
.bbs .bbs__input::placeholder {
    color: #8a8f98;
    opacity: 1;
}
.bbs .bbs__input::-webkit-search-cancel-button {
    cursor: pointer;
}
.bbs .bbs__btn {
    position: static;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    height: 100%;
    padding: 0 22px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: var(--bbs-red);
    border: 0;
    border-radius: 999px;
    transition: background .2s;
}
.bbs .bbs__btn:hover,
.bbs .bbs__btn:focus-visible {
    background: #c4141a;
}

/* ---------- Suggestion dropdown ---------- */
.bbs .bbs__suggest {
    position: absolute;
    top: calc(100% + 6px);
    left: 12px;
    right: 12px;
    z-index: 1050;
    width: auto;
    max-height: min(440px, 70vh);
    margin: 0;
    padding: 6px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--bbs-line);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(16, 24, 40, .16);
}
.bbs .bbs__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 12px;
    transition: background .15s;
}
.bbs .bbs__item + .bbs__item {
    margin-top: 2px;
}
.bbs .bbs__item:hover {
    background: #f6f7f9;
}
.bbs .bbs__thumb {
    flex-shrink: 0;
    display: block;
    width: 56px;
    height: 56px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--bbs-line);
    border-radius: 10px;
}
.bbs .bbs__thumb img {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
}
.bbs .bbs__info {
    flex: 1;
    min-width: 0;
}
.bbs .bbs__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--bbs-ink);
    text-decoration: none;
}
.bbs .bbs__title:hover {
    color: var(--bbs-red);
}
.bbs .bbs__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 2px;
    font-size: 13px;
    text-decoration: none;
}
.bbs .bbs__price b {
    font-size: 15px;
    color: var(--bbs-red);
}
.bbs .bbs__price s {
    color: var(--bbs-muted);
}
.bbs .bbs__cart {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--bbs-red);
    background: #fff1f1;
    border: 1px solid rgba(237, 29, 36, .25);
    border-radius: 999px;
    transition: background .2s, color .2s;
}
.bbs .bbs__cart:hover,
.bbs .bbs__cart:focus-visible {
    color: #fff;
    background: var(--bbs-red);
}

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
    .bbs {
        margin: 4px auto 10px;
    }
    .bbs .bbs__form {
        height: 46px;
    }
    .bbs .bbs__input {
        font-size: 14px;
    }
    /* icon-only button on phones to leave room for the placeholder */
    .bbs .bbs__btn {
        width: 38px;
        padding: 0;
    }
    .bbs .bbs__btn span {
        display: none;
    }
    .bbs .bbs__icon {
        display: none;
    }
    .bbs .bbs__input {
        padding-left: 14px;
    }
    .bbs .bbs__cart {
        width: 36px;
        padding: 0;
        justify-content: center;
    }
    .bbs .bbs__cart span {
        display: none;
    }
}
