.form.minisearch.dbas-ready .search-autocomplete {
    display: none !important;
}

.form.minisearch.dbas-ready .control {
    position: relative;
}

.dbas-panel {
    --dbas-bg: #111;
    --dbas-ink: #f6f1ee;
    --dbas-muted: #b8b0ad;
    --dbas-line: rgba(255,255,255,.14);
    --dbas-soft: rgba(255,255,255,.06);
    --dbas-card: #191919;
    position: absolute;
    z-index: 902;
    top: calc(100% + 10px);
    left: 50%;
    width: min(var(--dbas-width, 1040px), calc(100vw - 32px));
    max-height: min(680px, calc(100vh - 150px));
    transform: translateX(-50%);
    overflow: hidden;
    border: 1px solid var(--dbas-line);
    border-radius: 8px;
    background: var(--dbas-bg);
    color: var(--dbas-ink);
    box-shadow: 0 20px 70px rgba(0,0,0,.42);
}

.dbas-panel[hidden] {
    display: none !important;
}

.dbas-style-light {
    --dbas-bg: #fff;
    --dbas-ink: #151515;
    --dbas-muted: #666;
    --dbas-line: #ddd;
    --dbas-soft: #f6f6f6;
    --dbas-card: #fff;
}

.dbas-style-minimal {
    --dbas-bg: #fafafa;
    --dbas-ink: #151515;
    --dbas-muted: #606060;
    --dbas-line: #e0e0e0;
    --dbas-soft: #fff;
    --dbas-card: #fff;
}

.dbas-style-modern_light {
    --dbas-bg: #fff;
    --dbas-ink: #111;
    --dbas-muted: #666;
    --dbas-line: #e7e7e4;
    --dbas-soft: #f5f5f2;
    --dbas-card: #f4f4f2;
    --dbas-button: #111;
    --dbas-preorder: #c90018;
}

.dbas-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    min-height: 420px;
    max-height: inherit;
}

.dbas-side {
    overflow: auto;
    padding: 24px 18px;
    border-right: 1px solid var(--dbas-line);
    background: rgba(255,255,255,.03);
}

.dbas-main {
    overflow: auto;
    padding: 26px 28px 28px;
}

.dbas-close {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--dbas-muted);
    font-size: 32px;
    line-height: 28px;
    cursor: pointer;
}

.dbas-close:hover,
.dbas-close:focus {
    color: var(--dbas-ink);
}

.dbas-side-section {
    margin: 0 0 24px;
}

.dbas-side-section strong,
.dbas-section-head strong,
.dbas-empty strong {
    display: block;
    color: var(--dbas-ink);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.dbas-side-section div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.dbas-side-section button {
    max-width: 100%;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--dbas-soft);
    color: var(--dbas-muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.dbas-side-section button:hover,
.dbas-side-section button:focus {
    border-color: var(--dbas-accent, #c90018);
    color: var(--dbas-ink);
}

.dbas-side-empty {
    color: var(--dbas-muted);
    font-size: 13px;
}

.dbas-section + .dbas-section {
    margin-top: 26px;
}

.dbas-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 42px 18px 0;
}

.dbas-section-head span {
    color: var(--dbas-muted);
    font-weight: 400;
}

.dbas-section-head a,
.dbas-view-all {
    color: var(--dbas-accent, #c90018);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.dbas-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.dbas-product {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dbas-product-link {
    display: grid;
    gap: 10px;
    color: var(--dbas-ink);
    text-decoration: none;
}

.dbas-product-img {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid var(--dbas-line);
    border-radius: 8px;
    background: var(--dbas-card);
}

.dbas-product-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dbas-product-body {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.dbas-product-body strong {
    display: -webkit-box;
    min-height: 40px;
    overflow: hidden;
    color: var(--dbas-ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.dbas-product-sku,
.dbas-product-price {
    color: var(--dbas-muted);
    font-size: 12px;
    line-height: 1.35;
}

.dbas-product-price {
    color: var(--dbas-ink);
    font-size: 14px;
    font-weight: 800;
}

.dbas-product-badge {
    position: absolute;
    z-index: 1;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--dbas-accent, #c90018);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .06em;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
}

.dbas-add {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 36px;
    margin: 10px 0 0;
    padding: 8px 10px;
    overflow: hidden;
    border: 1px solid var(--dbas-accent, #c90018);
    border-radius: 4px;
    background: var(--dbas-accent, #c90018);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    appearance: none;
}

.dbas-add:visited,
.dbas-add:hover,
.dbas-add:focus {
    color: #fff;
    text-decoration: none;
    filter: brightness(1.08);
}

.dbas-add[disabled] {
    opacity: .72;
    cursor: wait;
}


.dbas-style-modern_light .dbas-side {
    background: #f7f7f5;
}

.dbas-style-modern_light .dbas-product-img {
    padding: 16px;
    background: linear-gradient(180deg, #fafafa 0%, #f4f4f2 100%);
    border-color: #eeeeec;
    box-sizing: border-box;
}

.dbas-style-modern_light .dbas-product-img img {
    mix-blend-mode: multiply;
    transition: transform .24s ease;
}

.dbas-style-modern_light .dbas-product-link:hover .dbas-product-img img,
.dbas-style-modern_light .dbas-product-link:focus .dbas-product-img img {
    transform: scale(1.035);
}

.dbas-style-modern_light .dbas-product-badge {
    border: 1px solid rgba(201,0,24,.36);
    background: #fff;
    color: var(--dbas-preorder, #c90018);
    box-shadow: 0 8px 18px rgba(0,0,0,.1);
}

.dbas-style-modern_light .dbas-add {
    border-color: var(--dbas-button, #111);
    background: var(--dbas-button, #111);
    box-shadow: 0 10px 20px rgba(0,0,0,.1);
}

.dbas-style-modern_light .dbas-add--preorder {
    border-color: var(--dbas-preorder, #c90018);
    background: var(--dbas-preorder, #c90018);
    box-shadow: 0 10px 20px rgba(201,0,24,.16);
}

.dbas-style-modern_light .dbas-add:hover,
.dbas-style-modern_light .dbas-add:focus {
    filter: none;
    transform: translateY(-1px);
}

.dbas-category-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.dbas-category-list a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--dbas-line);
    border-radius: 6px;
    background: var(--dbas-soft);
    color: var(--dbas-ink);
    font-weight: 700;
    text-decoration: none;
}

.dbas-category-list a:hover,
.dbas-category-list a:focus {
    border-color: var(--dbas-accent, #c90018);
}

.dbas-empty {
    display: grid;
    place-content: center;
    min-height: 300px;
    padding: 40px 20px;
    text-align: center;
}

.dbas-empty p {
    max-width: 420px;
    margin: 10px auto 18px;
    color: var(--dbas-muted);
    line-height: 1.5;
}

.dbas-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 300px;
    color: var(--dbas-muted);
}

.dbas-loading span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dbas-accent, #c90018);
    animation: dbas-pulse .8s infinite alternate;
}

.dbas-loading span:nth-child(2) { animation-delay: .12s; }
.dbas-loading span:nth-child(3) { animation-delay: .24s; }
.dbas-loading em { margin-left: 8px; font-style: normal; }

.dbas-panel mark {
    padding: 0;
    background: transparent;
    color: var(--dbas-accent, #c90018);
    font-weight: 900;
}

@keyframes dbas-pulse {
    from { transform: translateY(0); opacity: .4; }
    to { transform: translateY(-4px); opacity: 1; }
}

@media (max-width: 900px) {
    .dbas-panel {
        position: fixed;
        inset: 0;
        width: 100vw;
        max-height: none;
        transform: none;
        border: 0;
        border-radius: 0;
    }

    .dbas-shell {
        grid-template-columns: 1fr;
        height: 100vh;
        min-height: 0;
        padding-top: 58px;
    }

    .dbas-side {
        display: flex;
        gap: 18px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 14px 16px;
        border-right: 0;
        border-bottom: 1px solid var(--dbas-line);
    }

    .dbas-side-section {
        flex: 0 0 auto;
        min-width: 180px;
        margin: 0;
    }

    .dbas-main {
        padding: 18px 16px 24px;
    }

    .dbas-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .dbas-category-list {
        grid-template-columns: 1fr;
    }

    .dbas-close {
        top: 14px;
        right: 18px;
    }

    body.dbas-open {
        overflow: hidden;
    }
}

@media (max-width: 420px) {
    .dbas-products {
        grid-template-columns: 1fr;
    }

    .dbas-product-link {
        grid-template-columns: 82px minmax(0, 1fr);
        align-items: center;
    }

    .dbas-product-img {
        width: 82px;
    }
}

/* Mobile overlay must sit above the store header/cart while open. */
.dbas-panel {
    z-index: 2147481000;
}

.dbas-close {
    z-index: 2147481001;
}

@media (max-width: 900px) {
    .dbas-panel {
        z-index: 2147481000;
    }

    .dbas-close {
        z-index: 2147481001;
        top: calc(env(safe-area-inset-top, 0px) + 14px);
        right: 18px;
        pointer-events: auto;
    }

    body.dbas-open .page-header,
    body.dbas-open .page-header .header.content,
    body.dbas-open .page-header .minicart-wrapper {
        z-index: 1 !important;
        pointer-events: none !important;
    }
}

/* BB advanced search mobile rebuild 2026-05-28 */
.dbas-mobile-head {
    display: none;
}

.dbas-mobile-field {
    position: relative;
}

.dbas-mobile-clear {
    opacity: 0;
    pointer-events: none;
}

.dbas-panel.has-mobile-query .dbas-mobile-clear {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 900px) {
    body.dbas-open::before {
        content: '';
        position: fixed;
        inset: 0;
        z-index: 2147480998;
        display: block;
        background: #fff;
        pointer-events: auto;
    }

    body.dbas-open .page-wrapper,
    body.dbas-open .page-main,
    body.dbas-open .page-header,
    body.dbas-open .columns,
    body.dbas-open .product-items,
    body.dbas-open .toolbar-products {
        pointer-events: none !important;
    }

    .dbas-panel {
        position: fixed !important;
        inset: 0 !important;
        left: 0 !important;
        top: 0 !important;
        right: auto !important;
        bottom: auto !important;
        z-index: 2147481000 !important;
        display: flex;
        flex-direction: column;
        width: 100vw !important;
        height: 100vh;
        height: 100dvh;
        max-width: none !important;
        max-height: none !important;
        min-height: 0 !important;
        overflow: hidden !important;
        transform: none !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: #fff !important;
        color: var(--dbas-ink, #111);
        box-shadow: none !important;
        box-sizing: border-box;
        overscroll-behavior: contain;
        pointer-events: auto !important;
        touch-action: auto;
    }

    .dbas-panel[hidden] {
        display: none !important;
    }

    .dbas-mobile-head {
        position: relative;
        z-index: 3;
        display: block;
        flex: 0 0 auto;
        padding: calc(env(safe-area-inset-top, 0px) + 12px) 58px 10px 14px;
        border-bottom: 1px solid #eeeeec;
        background: #fff;
        box-sizing: border-box;
    }

    .dbas-mobile-field {
        position: relative !important;
        height: 48px;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .dbas-panel .dbas-mobile-input,
    .dbas-panel .dbas-mobile-input:focus {
        position: static !important;
        left: auto !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        clip: auto !important;
        clip-path: none !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        height: 48px !important;
        min-height: 48px !important;
        margin: 0 !important;
        padding: 0 43px 0 16px !important;
        border: 1px solid #e3e3df !important;
        border-radius: 999px !important;
        background: #fff !important;
        box-shadow: inset 0 0 0 1px rgba(255,255,255,.72), 0 8px 20px rgba(0,0,0,.05) !important;
        color: #111 !important;
        -webkit-text-fill-color: #111;
        font-family: inherit !important;
        font-size: 16px !important;
        font-weight: 850 !important;
        line-height: 48px !important;
        letter-spacing: 0 !important;
        outline: 0 !important;
        box-sizing: border-box !important;
        appearance: none;
    }

    .dbas-panel .dbas-mobile-input::placeholder {
        color: #777;
        opacity: 1;
        -webkit-text-fill-color: #777;
    }

    .dbas-mobile-clear {
        position: absolute !important;
        right: 7px;
        top: 50%;
        z-index: 2;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        min-width: 34px;
        min-height: 34px;
        margin: 0;
        padding: 0;
        transform: translateY(-50%);
        border: 0;
        border-radius: 999px;
        background: #f1f1ef;
        color: #555;
        font-size: 24px;
        font-weight: 700;
        line-height: 1;
        cursor: pointer;
        transition: opacity .16s ease;
    }

    .dbas-close {
        position: absolute !important;
        z-index: 4 !important;
        top: calc(env(safe-area-inset-top, 0px) + 15px) !important;
        right: 12px !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        color: #5f5f5f !important;
        font-size: 34px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        pointer-events: auto !important;
    }

    .dbas-shell {
        position: relative;
        z-index: 2;
        display: flex !important;
        flex: 1 1 auto;
        flex-direction: column;
        grid-template-columns: none !important;
        width: 100%;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        padding-top: 0 !important;
        overflow: hidden !important;
        background: #fff !important;
    }

    .dbas-side {
        display: flex;
        flex: 0 0 auto;
        gap: 14px;
        width: 100%;
        max-height: 132px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 12px 14px 14px;
        border-right: 0;
        border-bottom: 1px solid #e6e6e2;
        background: #fafafa !important;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
        overscroll-behavior-x: contain;
    }

    .dbas-side-section {
        flex: 0 0 auto;
        min-width: min(210px, 68vw);
        margin: 0;
    }

    .dbas-side-section strong {
        font-size: 15px;
        line-height: 1.25;
    }

    .dbas-side-section div {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        margin-top: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 0 2px;
        -webkit-overflow-scrolling: touch;
    }

    .dbas-side-section button {
        flex: 0 0 auto;
        min-height: 36px;
        padding: 7px 13px;
        border: 1px solid #eeeeec;
        background: #fff;
        color: #555;
        font-size: 13px;
        font-weight: 800;
        white-space: nowrap;
        box-shadow: 0 5px 14px rgba(0,0,0,.04);
    }

    .dbas-side-empty {
        display: flex;
        align-items: center;
        min-height: 40px;
        color: var(--dbas-muted);
        font-size: 14px;
    }

    .dbas-main {
        position: relative;
        z-index: 2;
        flex: 1 1 auto;
        width: 100%;
        min-height: 0;
        overflow: auto !important;
        padding: 18px 14px calc(env(safe-area-inset-bottom, 0px) + 22px);
        background: #fff !important;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
        overscroll-behavior: contain;
    }

    .dbas-section + .dbas-section {
        margin-top: 22px;
    }

    .dbas-section-head {
        gap: 12px;
        margin: 0 0 16px;
    }

    .dbas-section-head strong {
        font-size: 22px;
        line-height: 1.15;
    }

    .dbas-section-head a,
    .dbas-view-all {
        font-size: 14px;
        line-height: 1.2;
    }

    .dbas-products {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 0;
    }

    .dbas-product {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid #eeeeec;
        background: #fff;
    }

    .dbas-product:first-child {
        padding-top: 0;
    }

    .dbas-product-link {
        display: grid;
        grid-template-columns: 96px minmax(0, 1fr) !important;
        align-items: center;
        gap: 14px;
    }

    .dbas-product-img {
        width: 96px !important;
        min-width: 96px;
        border-radius: 8px;
    }

    .dbas-style-modern_light .dbas-product-img {
        padding: 9px;
    }

    .dbas-product-body strong {
        min-height: 0;
        color: var(--dbas-ink);
        font-size: 16px;
        line-height: 1.3;
        -webkit-line-clamp: 3;
    }

    .dbas-product-sku,
    .dbas-product-price {
        font-size: 13px;
    }

    .dbas-product-price {
        font-size: 16px;
    }

    .dbas-product-badge {
        top: 7px;
        left: 7px;
        min-height: 21px;
        padding: 0 7px;
        font-size: 8px;
    }

    .dbas-add {
        min-height: 46px;
        margin: 12px 0 0;
        border-radius: 6px;
        font-size: 15px;
        white-space: normal;
    }

    .dbas-category-list {
        grid-template-columns: 1fr !important;
    }

    .dbas-empty,
    .dbas-loading {
        min-height: calc(100dvh - 250px);
        padding: 30px 18px;
        background: #fff;
    }

    .dbas-empty strong {
        font-size: 20px;
    }

    .dbas-empty p {
        margin-bottom: 18px;
        font-size: 15px;
    }

    body.dbas-open {
        overflow: hidden !important;
    }
}

@media (max-width: 420px) {
    .dbas-mobile-head {
        padding-right: 56px;
        padding-left: 12px;
    }

    .dbas-main {
        padding-right: 12px;
        padding-left: 12px;
    }

    .dbas-product-link {
        grid-template-columns: 88px minmax(0, 1fr) !important;
        gap: 12px;
    }

    .dbas-product-img {
        width: 88px !important;
        min-width: 88px;
    }
}
