.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-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 {
    min-width: 0;
}

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

.dbas-product-img {
    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-add {
    width: 100%;
    min-height: 36px;
    margin-top: 10px;
    padding: 8px 10px;
    border: 1px solid var(--dbas-accent, #c90018);
    border-radius: 4px;
    background: var(--dbas-accent, #c90018);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
}

.dbas-add:hover,
.dbas-add:focus {
    filter: brightness(1.08);
}

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

.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 a {
        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;
    }
}
