/* Header search overlay — Brandprint redesign (Figma 2034:3603) */

html.bp-search-open { overflow: hidden; }

.bp-search {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    pointer-events: none;
}
.bp-search:not([hidden]) { pointer-events: auto; }
.bp-search__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 19, 24, 0.35);
    cursor: pointer;
}
.bp-search__panel {
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 16px 20px 20px;
    background: #fff;
    border: 1px solid #9c9797;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(15, 19, 24, 0.18);
    animation: bpSearchOpen .18s ease-out;
}
@keyframes bpSearchOpen {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.bp-search__form { display: contents; }

/* Search field */
.bp-search__field {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 56px;
    padding: 0 16px;
    border-bottom: 1px solid #d2cfcc;
    background: #fff;
}
.bp-search__input {
    flex: 1 1 auto;
    height: 100%;
    border: 0;
    outline: none;
    background: transparent;
    font-family: "Open Sans", sans-serif;
    font-size: 15px;
    line-height: 24px;
    color: #0e1318;
}
.bp-search__input::placeholder { color: #9c9797; }
.bp-search__submit {
    flex-shrink: 0;
    width: 36px; height: 36px;
    border: 0;
    background: transparent;
    color: #0e1318;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background .15s ease;
}
.bp-search__submit:hover { background: #f3f4f6; }

/* Body — 2-column grid */
.bp-search__body {
    display: grid;
    grid-template-columns: 1.6fr 1px 1fr;
    gap: 24px;
    padding: 24px 20px;
    align-items: start;
}
.bp-search__body::after {
    content: '';
    grid-column: 2;
    grid-row: 1 / -1;
    background: #d2cfcc;
    align-self: stretch;
    width: 1px;
    margin: 0 auto;
}
/* Place items: column 1 = products, column 3 = side */
.bp-search__col--products { grid-column: 1; }
.bp-search__col--side { grid-column: 3; display: flex; flex-direction: column; gap: 16px; }

.bp-search__heading {
    margin: 0 0 14px;
    font-family: "Open Sans", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    color: #000;
}
.bp-search__heading::after { display: none !important; }

/* Recommended products grid */
.bp-search__products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.bp-search__product {
    display: flex; flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid #d2cfcc;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s ease;
}
.bp-search__product:hover { border-color: #e82693; }
.bp-search__product-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    border-radius: 4px;
    overflow: hidden;
}
.bp-search__product-img img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}
.bp-search__product-name {
    font-family: "Open Sans", sans-serif;
    font-size: 12px;
    line-height: 16px;
    color: #000;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bp-search__empty {
    color: #777272;
    font-size: 14px;
    margin: 0;
    padding: 24px 0;
    text-align: center;
}

/* Popular searches chips */
.bp-search__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.bp-search__chip {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 16px;
    border: 1px solid #d2cfcc;
    border-radius: 8px;
    background: #fff;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #000;
    text-decoration: none;
    transition: border-color .15s ease, color .15s ease;
}
.bp-search__chip:hover { border-color: #e82693; color: #e82693; }

.bp-search__divider {
    border: 0;
    height: 1px;
    background: #e0e0e0;
    margin: 0;
}

/* Popular categories list */
.bp-search__cats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.bp-search__cats a {
    color: #000;
    text-decoration: none;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    line-height: 24px;
}
.bp-search__cats a:hover { color: #e82693; }

/* CTA */
.bp-search__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: calc(100% - 40px);
    margin: 0 auto 20px;
    height: 51px;
    background: #e82693;
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    cursor: pointer;
    transition: background .15s ease;
}
.bp-search__cta:hover { background: #c91f7d; }

/* Responsive */
@media (max-width: 767px) {
    .bp-search__body {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .bp-search__body::after { display: none; }
    .bp-search__col--products,
    .bp-search__col--side { grid-column: 1; }
    .bp-search__products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bp-search__panel { margin: 12px 8px; }
}
