/* ==========================================================================
   BrickoMart storefront: the buyer app's design on the web.
   Same tokens as apps/buyer/lib/src/ui.dart (navy header gradient, paper
   ground, sand image wells, ink text, orange actions, Helvetica). The only
   brickoerp.com touch: a faint blueprint grid + soft glow inside the navy.
   Loaded after brickomart.css. Never put "price" in a class name here:
   brickomart.css colours every [class*="price"] navy with !important.
   ========================================================================== */

:root {
    --bk-ink: #0F2A4A;
    --bk-navy: #114376;
    --bk-navy-a: #0E3A68;
    --bk-navy-b: #17508A;
    --bk-orange: #FD8200;
    --bk-orange-deep: #D96F00;
    --bk-orange-ink: #FFFFFF;
    --bk-paper: #FBFAF7;
    --bk-sand: #F3EEE6;
    --bk-muted: #6B7280;
    --bk-line: #E9E5DE;
    --bk-green: #0F8A5F;
    --bk-amber: #B45309;
    --bk-rail: #F1F3F6;
    --bk-rail-icon: #7C8798;
    --bk-wrap: 1320px;
    --bk-gutter: clamp(16px, 3vw, 40px);
}

/* The app's navy, with the brickoerp grid + glow at low strength */
.bk-navy {
    background:
        radial-gradient(50% 80% at 88% 0%, rgba(91, 155, 230, .22), transparent 70%),
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 48px 48px,
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 48px 48px,
        linear-gradient(135deg, var(--bk-navy-a), var(--bk-navy) 55%, var(--bk-navy-b));
    color: #fff;
}

body, main#main { background: var(--bk-paper) !important; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.bk-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
    font-size: 14px; font-weight: 800; text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background .15s, box-shadow .15s;
}
.bk-btn:focus-visible, .bk-tab:focus-visible, .bk-sub:focus-visible, .bk-add:focus-visible { outline: 2px solid #5B9BE6; outline-offset: 2px; }
.bk-btn-orange { background: var(--bk-orange); color: var(--bk-orange-ink) !important; box-shadow: 0 3px 8px rgba(253, 130, 0, .33); }
.bk-btn-orange:hover { background: #FF9426; }
.bk-btn-navy { background: var(--bk-navy); color: #fff !important; }
.bk-btn-navy:hover { background: #0E3A68; }
.bk-btn-line { background: #fff; color: var(--bk-ink) !important; border-color: var(--bk-line); }
.bk-btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.bk-btn-block { width: 100%; height: 50px; font-size: 15px; }

/* ==========================================================================
   Header (desktop): navy, site picker, white search pill, white icons
   ========================================================================== */
#bm-nav-bottom.b3-header,
#bm-nav-bottom.b3-header.bm-light,
#bm-nav-bottom.b3-header.bm-dark {
    background:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 48px 48px,
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 48px 48px,
        linear-gradient(135deg, var(--bk-navy-a), var(--bk-navy) 55%, var(--bk-navy-b)) !important;
    box-shadow: 0 2px 10px rgba(15, 42, 74, .18) !important;
}
.b3-header-row {
    max-width: var(--bk-wrap); margin: 0 auto; height: 70px;
    padding: 0 var(--bk-gutter);
    display: flex; align-items: center; gap: 22px;
}
.b3-logo { flex-shrink: 0; display: block; }
.b3-logo-img { height: 26px; width: auto; display: block; }
.b3-loc {
    display: flex; align-items: center; gap: 7px; flex-shrink: 0;
    background: none; border: 0; cursor: pointer; color: #fff; padding: 6px 8px; border-radius: 10px;
}
.b3-loc:hover { background: rgba(255, 255, 255, .08); }
.b3-loc-k { font-size: 9.5px; font-weight: 800; letter-spacing: 1.2px; color: rgba(255, 255, 255, .55); }
.b3-loc-v { font-size: 14.5px; font-weight: 800; color: #fff; letter-spacing: -.2px; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b3-search {
    flex: 1; max-width: 640px; position: relative; height: 44px;
    display: flex; align-items: center; background: #fff; border-radius: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
}
.b3-search form { flex: 1; display: flex; align-items: center; position: relative; height: 100%; }
.b3-search .bm-search-icon { position: absolute; left: 13px; color: var(--bk-navy) !important; pointer-events: none; display: flex; }
#bm-nav-bottom .b3-search .bm-search-input {
    width: 100%; height: 100%; border: 0; outline: 0; background: transparent !important;
    padding: 0 14px 0 42px; font-size: 14px; font-weight: 600; color: var(--bk-ink) !important; caret-color: var(--bk-orange);
}
#bm-nav-bottom .b3-search .bm-search-input::placeholder { color: var(--bk-muted) !important; }
#bm-search-suggestions { top: calc(100% + 6px) !important; border-radius: 14px !important; border-color: var(--bk-line) !important; }
.b3-actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; margin-left: auto; }
#bm-nav-bottom.b3-header .bricko-nav-item { color: rgba(255, 255, 255, .9) !important; }
#bm-nav-bottom.b3-header .bricko-nav-item:hover { color: #fff !important; }
.b3-login { display: flex; flex-direction: column; align-items: center; gap: 3px; color: rgba(255, 255, 255, .9) !important; text-decoration: none; font-size: 11px; font-weight: 700; }
.b3-avatar { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--bk-orange); color: var(--bk-orange-ink); font-weight: 800; font-size: 14px; }
.b3-profile-btn { display: flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; padding: 4px; border-radius: 10px; color: #fff; }
.b3-profile-btn:hover { background: rgba(255, 255, 255, .08); }

/* ==========================================================================
   Home: the app's navy header body (promo + top tabs), white sub rail
   ========================================================================== */
.bk-home-top { padding-top: 22px; }
.bk-wrap { max-width: var(--bk-wrap); margin: 0 auto; padding: 0 var(--bk-gutter); }

/* Glass promo (admin hero banners) */
.bk-promo {
    position: relative; overflow: hidden; border-radius: 16px; min-height: 112px;
    display: flex; align-items: center; gap: 20px; padding: 18px 22px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .06));
    border: 1px solid rgba(255, 255, 255, .18);
    background-size: cover; background-position: center right;
}
.bk-promo::after { /* the app's accent bubble, tinted by the slide's badge colour */
    content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
    background: var(--bk-promo-accent, rgba(253, 130, 0, .18)); pointer-events: none;
}
.bk-promo.bk-on-image { background-color: #fff; border-color: transparent; }
.bk-promo.bk-on-image::after { display: none; }
.bk-promo-slides { flex: 1; min-width: 0; position: relative; z-index: 1; }
.bk-promo-top { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.bk-promo-badge { padding: 3px 8px; border-radius: 6px; font-size: 10px; font-weight: 800; letter-spacing: .8px; color: #fff; }
.bk-dots { display: flex; gap: 3px; }
.bk-dots .bm-hero-dot { width: 4px; height: 4px; border-radius: 2px; border: 0; padding: 0; background: rgba(255, 255, 255, .35); cursor: pointer; transition: width .25s, background .25s; }
.bk-dots .bm-hero-dot.bm-active { width: 12px; background: rgba(255, 255, 255, .95); }
.bk-on-image .bk-dots .bm-hero-dot { background: rgba(36, 26, 18, .3); }
.bk-on-image .bk-dots .bm-hero-dot.bm-active { background: #241A12; }
.bk-promo-title { font-size: 22px; font-weight: 800; letter-spacing: -.4px; line-height: 1.15; margin: 0 0 3px; }
.bk-promo-sub { font-size: 13.5px; font-weight: 600; margin: 0; }
.bk-promo .bm-hero-cta { position: relative; z-index: 1; flex-shrink: 0; }
.bk-promo-nav { position: relative; z-index: 1; display: flex; gap: 6px; flex-shrink: 0; }
.bk-promo-nav button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.bk-promo-nav button:hover { background: rgba(255, 255, 255, .2); }
.bk-on-image .bk-promo-nav button { color: #241A12; border-color: rgba(36, 26, 18, .25); background: rgba(255, 255, 255, .6); }

/* Top tabs: the selected one is a white tab flush with the strip below */
.bk-tabs { display: flex; gap: 2px; margin-top: 22px; overflow-x: auto; scrollbar-width: none; }
.bk-tabs::-webkit-scrollbar { display: none; }
.bk-tab {
    width: 112px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 7px;
    padding: 12px 6px 12px; margin-top: 10px; background: transparent; border: 0; cursor: pointer;
    border-radius: 16px 16px 0 0; transition: margin .22s, background .22s;
}
.bk-tab-icon { width: 48px; height: 48px; border-radius: 24px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .14); color: #fff; transition: all .22s; }
.bk-tab-label { font-size: 12.5px; font-weight: 800; color: rgba(255, 255, 255, .9); white-space: nowrap; }
.bk-tab:hover .bk-tab-icon { background: rgba(255, 255, 255, .22); }
.bk-tab.bm-active { background: #fff; margin-top: 0; padding-top: 14px; }
.bk-tab.bm-active .bk-tab-icon { border-radius: 14px; background: linear-gradient(135deg, #FFE3C2, var(--bk-orange)); color: var(--bk-orange-ink); box-shadow: 0 4px 12px rgba(253, 130, 0, .33); }
.bk-tab.bm-active .bk-tab-label { color: var(--bk-navy); }

/* White sub-category rail */
.bk-strip { background: #fff; border-bottom: 1px solid var(--bk-line); box-shadow: 0 2px 6px rgba(15, 42, 74, .04); }
.bk-subs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; padding: 16px 0 14px; }
.bk-sub { display: flex; flex-direction: column; align-items: center; gap: 7px; text-decoration: none; padding: 4px 2px 2px; border-radius: 12px; }
.bk-sub-icon { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--bk-rail); color: var(--bk-rail-icon); transition: background .18s, color .18s, box-shadow .18s; }
.bk-sub-label { font-size: 12.5px; font-weight: 600; color: var(--bk-ink); text-align: center; line-height: 1.2; }
.bk-sub::after { content: ""; width: 0; height: 2.5px; border-radius: 2px; background: var(--bk-orange-deep); transition: width .2s; }
.bk-sub:hover .bk-sub-icon { background: var(--bk-navy); color: #fff; box-shadow: 0 4px 10px rgba(17, 67, 118, .27); }
.bk-sub:hover .bk-sub-label { color: var(--bk-navy); font-weight: 800; }
.bk-sub:hover::after { width: 22px; }

/* Chips (app style) */
.bk-chips { display: flex; gap: 6px; padding: 0 0 14px; overflow-x: auto; scrollbar-width: none; }
.bk-chip {
    display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px; border-radius: 16px;
    background: #fff; border: 1px solid var(--bk-line); color: var(--bk-ink); font-size: 12.5px; font-weight: 800;
    text-decoration: none; cursor: pointer; white-space: nowrap;
}
.bk-chip svg { color: var(--bk-muted); }
.bk-chip:hover { border-color: #D6D0C6; }
.bk-chip.is-on { background: var(--bk-ink); border-color: var(--bk-ink); color: #fff; }
.bk-chip.is-on svg { color: var(--bk-orange); }

/* Content below */
#bm-tab-content { max-width: var(--bk-wrap) !important; padding: 26px var(--bk-gutter) 40px !important; }
.bk-section-title,
#bm-tab-content h2,
#bm-tab-content .text-3xl,
#bm-tab-content [class*="font-dmserif"] {
    font-size: 21px !important; font-weight: 800 !important; letter-spacing: -.3px; color: var(--bk-ink) !important;
}
.bk-subhead { font-size: 18px; font-weight: 800; color: var(--bk-ink); margin: 32px 0 14px; letter-spacing: -.3px; }
.bk-note { font-size: 12.5px; color: var(--bk-muted); margin: -8px 0 14px; }

/* ==========================================================================
   Product tile (the app's compact tile)
   ========================================================================== */
.bm-product-card {
    border: 1px solid var(--bk-line) !important; border-radius: 14px !important; background: #fff !important;
    box-shadow: 0 3px 8px rgba(15, 42, 74, .04) !important;
}
.bm-product-card:hover { transform: none !important; box-shadow: 0 10px 22px rgba(15, 42, 74, .10) !important; border-color: #DDD6CB !important; }
.bm-product-img { position: relative; height: 188px !important; background: var(--bk-sand) !important; padding: 10px; }
.bm-product-img img { object-fit: contain !important; }
.bm-product-img:hover img { transform: none !important; }
.bm-product-body { padding: 9px 11px 11px !important; gap: 3px !important; }
.bm-product-cat { display: none !important; }
.bm-product-name { font-size: 13.5px !important; font-weight: 700 !important; color: var(--bk-ink) !important; line-height: 1.28 !important; min-height: 35px !important; }
.bm-product-supplier { color: var(--bk-muted) !important; font-size: 11.5px !important; }
.bm-product-price-row { margin-top: 3px; }
body .bm-product-card .bm-product-price-row .bm-product-price { font-size: 16px !important; font-weight: 800 !important; color: var(--bk-ink) !important; font-variant-numeric: tabular-nums; }
.bm-product-card .bm-product-price-row { color: var(--bk-ink) !important; }
.bm-product-unit { color: var(--bk-muted) !important; font-size: 11.5px !important; font-weight: 600 !important; }
.bk-tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 18px; margin-top: 2px; }
.bk-suppliers { font-size: 11.5px; font-weight: 700; color: var(--bk-green); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-quote { background: none; border: 0; padding: 0; cursor: pointer; font-size: 12px; font-weight: 800; color: var(--bk-navy); text-decoration: none; white-space: nowrap; }
.bk-quote:hover { text-decoration: underline; text-underline-offset: 3px; }
.bk-get-quotes { color: var(--bk-amber) !important; }
/* the app's "+" quick add, on the image */
.bk-add {
    position: absolute; right: 8px; bottom: 8px; z-index: 2;
    width: 34px; height: 34px; border-radius: 9px; border: 0; cursor: pointer;
    display: flex; align-items: center; justify-content: center; text-decoration: none;
    background: var(--bk-orange); color: var(--bk-orange-ink) !important; box-shadow: 0 3px 8px rgba(253, 130, 0, .33);
    transition: transform .12s, background .15s;
}
.bk-add:hover { background: #FF9426; transform: scale(1.06); }
.bk-verified { position: absolute; left: 8px; top: 8px; z-index: 2; width: 20px; height: 20px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--bk-green); }
.bk-new { position: absolute; left: 8px; bottom: 8px; z-index: 2; background: var(--bk-navy); color: #fff; font-size: 10px; font-weight: 800; padding: 3px 7px; border-radius: 6px; }

/* ==========================================================================
   Category / search heads: white, like the app's inner screens
   ========================================================================== */
.bk-page-head { background: #fff; border-bottom: 1px solid var(--bk-line); }
.bk-page-head .bk-wrap { padding-top: 18px; padding-bottom: 6px; }
.bk-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--bk-muted); }
.bk-crumbs a { color: var(--bk-muted); text-decoration: none; }
.bk-crumbs a:hover { color: var(--bk-navy); }
.bk-crumbs [aria-hidden] { opacity: .5; }
.bk-title { font-size: 26px; font-weight: 800; letter-spacing: -.5px; color: var(--bk-ink); margin: 8px 0 0; line-height: 1.15; }
.bk-meta { font-size: 13.5px; color: var(--bk-muted); margin: 5px 0 14px; }
.bk-meta b { color: var(--bk-green); }
.bmc-root { background: var(--bk-paper); }
.bmc-root .bmc-chiprow::after { background: linear-gradient(to right, rgba(255,255,255,0), #fff) !important; }
.bmc-root .bmc-pill { height: 32px; display: inline-flex; align-items: center; padding: 0 12px !important; border: 1px solid var(--bk-line) !important; border-radius: 16px !important; color: var(--bk-ink) !important; font-weight: 800 !important; font-size: 12.5px !important; background: #fff !important; }
.bmc-root .bmc-pill:hover { border-color: #D6D0C6 !important; }
.bmc-root .bmc-pill.is-active { background: var(--bk-ink) !important; border-color: var(--bk-ink) !important; color: #fff !important; }

/* ==========================================================================
   Product page (bmp-*)
   ========================================================================== */
.bmp-h1 { font-size: 26px !important; font-weight: 800 !important; letter-spacing: -.5px !important; line-height: 1.18 !important; color: var(--bk-ink) !important; }
#bmp-price-line { color: var(--bk-ink) !important; align-items: baseline; }
#bmp-price-line > span:first-child { font-size: 28px !important; font-weight: 800 !important; letter-spacing: -.5px; color: var(--bk-ink) !important; font-variant-numeric: tabular-nums; }
#bmp-price-line > span + span { font-size: 13.5px !important; color: var(--bk-muted) !important; }
#bmp-estimated-total { color: var(--bk-ink) !important; font-variant-numeric: tabular-nums; }
.bmp-btn { border-radius: 12px !important; font-weight: 800 !important; }
.bmp-btn-primary { background: var(--bk-orange) !important; color: var(--bk-orange-ink) !important; border-color: var(--bk-orange) !important; box-shadow: 0 3px 8px rgba(253, 130, 0, .3); }
.bmp-btn-primary:hover { background: #FF9426 !important; border-color: #FF9426 !important; }
.bmp-btn-outline { background: #fff !important; color: var(--bk-navy) !important; border: 1.5px solid var(--bk-navy) !important; }

/* ==========================================================================
   Cart page (not routed: /checkout/cart opens the drawer) + drawers
   ========================================================================== */
.b3-cart { max-width: 1200px; margin: 0 auto; padding: 30px var(--bk-gutter) 60px; }
.b3-cart-head { margin-bottom: 20px; }
.b3-cart-title { font-size: 26px; font-weight: 800; letter-spacing: -.5px; color: var(--bk-ink); margin: 0; }
.b3-cart-meta { margin: 6px 0 0; font-size: 13.5px; color: var(--bk-muted); }
.b3-cart-empty { text-align: center; padding: 64px 20px; background: #fff; border: 1px solid var(--bk-line); border-radius: 18px; color: var(--bk-muted); }
.b3-cart-empty h2 { font-size: 20px; font-weight: 800; color: var(--bk-ink); margin: 14px 0 6px; }
.b3-cart-empty p { margin: 0 0 20px; font-size: 14px; }
.b3-cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.b3-supplier-card { background: #fff; border: 1px solid var(--bk-line); border-radius: 16px; overflow: hidden; margin-bottom: 14px; }
.b3-supplier-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--bk-line); }
.b3-supplier-initial { width: 38px; height: 38px; border-radius: 10px; background: var(--bk-navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.b3-supplier-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.b3-supplier-name strong { font-size: 14.5px; color: var(--bk-ink); }
.b3-supplier-name span { font-size: 12.5px; color: var(--bk-muted); }
.b3-link { color: var(--bk-navy); font-size: 13px; font-weight: 800; text-decoration: none; }
.b3-line { display: flex; gap: 14px; padding: 14px 18px; border-bottom: 1px solid #F3F0EA; align-items: flex-start; }
.b3-line-img { width: 72px; height: 72px; flex-shrink: 0; border-radius: 12px; overflow: hidden; background: var(--bk-sand); display: flex; align-items: center; justify-content: center; }
.b3-line-img img { width: 100%; height: 100%; object-fit: contain; }
.b3-line-main { flex: 1; min-width: 0; }
.b3-line-name { font-size: 14px; font-weight: 700; color: var(--bk-ink); line-height: 1.35; }
.b3-line-attrs { font-size: 12.5px; color: var(--bk-muted); margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.b3-line-actions { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.b3-stepper { display: inline-flex; align-items: center; background: var(--bk-navy); border-radius: 8px; overflow: hidden; box-shadow: 0 3px 8px rgba(17, 67, 118, .27); }
.b3-stepper button { width: 32px; height: 32px; border: 0; background: transparent; color: #fff; cursor: pointer; font-size: 17px; font-weight: 800; }
.b3-stepper span { min-width: 30px; text-align: center; font-weight: 800; font-size: 14px; color: #fff; font-variant-numeric: tabular-nums; }
.b3-remove { background: none; border: 0; cursor: pointer; color: #C2410C; font-size: 13px; font-weight: 700; padding: 4px; }
.b3-line-total { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; gap: 3px; }
.b3-line-total strong { font-size: 16px; font-weight: 800; color: var(--bk-ink); font-variant-numeric: tabular-nums; }
.b3-line-total span { font-size: 12.5px; color: var(--bk-muted); }
.b3-supplier-foot { padding: 14px 18px; background: #FDFCFA; display: grid; gap: 12px; }
.b3-supplier-sub { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; color: var(--bk-muted); }
.b3-supplier-sub strong { font-size: 16px; font-weight: 800; color: var(--bk-ink); }
.b3-field-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13.5px; color: var(--bk-ink); }
.b3-field-row > span { font-weight: 700; min-width: 128px; }
.b3-field-row input[type="date"] { height: 38px; padding: 0 10px; border: 1px solid var(--bk-line); border-radius: 10px; font-size: 13.5px; background: #fff; color: var(--bk-ink); }
.b3-pay label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.b3-pay input { accent-color: var(--bk-orange); }
.b3-pay em { font-style: normal; font-size: 12px; color: var(--bk-green); background: #E7F5EE; padding: 2px 8px; border-radius: 6px; }
.b3-summary { position: sticky; top: 92px; border-radius: 18px; padding: 22px; background: #fff; border: 1px solid var(--bk-line); }
.b3-summary-title { font-size: 18px; font-weight: 800; color: var(--bk-ink); margin: 0 0 14px; }
.b3-summary-rows { margin: 0; display: grid; gap: 9px; }
.b3-summary-rows > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.b3-summary-rows dt { color: var(--bk-muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b3-summary-rows dd { margin: 0; color: var(--bk-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.b3-summary-rows dd.b3-quiet { color: var(--bk-muted); font-weight: 500; }
.b3-summary-rows-sep { border-top: 1px solid var(--bk-line); margin-top: 14px; padding-top: 14px; }
.b3-summary-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--bk-line); margin: 14px 0 16px; padding-top: 14px; }
.b3-summary-total span { font-size: 15px; font-weight: 800; color: var(--bk-ink); }
.b3-summary-total strong { font-size: 24px; font-weight: 800; color: var(--bk-ink); font-variant-numeric: tabular-nums; }
.b3-summary-site { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--bk-sand); margin-bottom: 14px; }
.b3-summary-site span { font-size: 12px; color: var(--bk-muted); }
.b3-summary-site strong { font-size: 14px; color: var(--bk-ink); }
.b3-summary-site em { font-style: normal; font-size: 12.5px; color: var(--bk-muted); }
.b3-summary-warn { padding: 12px 14px; border-radius: 12px; background: rgba(253, 130, 0, .16); border: 1px solid var(--bk-orange); color: #8A4500; font-size: 13.5px; margin-bottom: 14px; }
.b3-summary-back { display: block; text-align: center; margin-top: 12px; color: var(--bk-muted); font-size: 13.5px; text-decoration: none; }
@media (max-width: 960px) { .b3-cart-grid { grid-template-columns: 1fr; } .b3-summary { position: static; } }

#bm-cart-overlay, #bm-orders-overlay, #bm-notif-overlay { background: rgba(15, 42, 74, .45) !important; }
#bm-cart-drawer, #bm-orders-drawer { background: var(--bk-paper) !important; }
#bm-cart-detail-subtotal { font-size: 20px !important; font-weight: 800 !important; color: var(--bk-ink) !important; font-variant-numeric: tabular-nums; }
#bm-cart-detail-qty-label { text-transform: none !important; letter-spacing: 0 !important; font-size: 12.5px !important; }
#bm-cart-detail-checkout-btn { background: var(--bk-orange) !important; color: var(--bk-orange-ink) !important; font-weight: 800 !important; font-size: 14.5px !important; padding: 13px 22px !important; border-radius: 12px !important; box-shadow: 0 3px 8px rgba(253, 130, 0, .33); }
#bm-cart-detail-checkout-btn:hover { background: #FF9426 !important; }
#bm-cart-detail-checkout-btn svg { display: none; }

/* ==========================================================================
   Checkout: navy bar, white steps, orange place order
   ========================================================================== */
.b3-checkout-bar-inner { max-width: var(--bk-wrap); margin: 0 auto; padding: 16px var(--bk-gutter); display: flex; align-items: center; gap: 18px; }
.b3-checkout-secure { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .8); }
.b3-checkout { padding-top: 26px; padding-bottom: 60px; }
.b3-checkout-title { font-size: 26px !important; font-weight: 800 !important; letter-spacing: -.5px; color: var(--bk-ink) !important; margin: 0 0 20px !important; }
.b3-checkout .primary-button { background: var(--bk-orange) !important; color: var(--bk-orange-ink) !important; border-color: var(--bk-orange) !important; border-radius: 12px !important; font-weight: 800 !important; }
.b3-checkout .primary-button:hover { background: #FF9426 !important; }
.b3-checkout .secondary-button { border-color: var(--bk-navy) !important; color: var(--bk-navy) !important; border-radius: 12px !important; font-weight: 800 !important; }
.b3-checkout input[type="text"], .b3-checkout input[type="email"], .b3-checkout input[type="tel"], .b3-checkout select, .b3-checkout textarea { border-radius: 12px !important; }
.b3-checkout input:focus, .b3-checkout select:focus, .b3-checkout textarea:focus { border-color: var(--bk-navy) !important; box-shadow: 0 0 0 3px rgba(17, 67, 118, .12) !important; }
.b3-checkout input[type="radio"], .b3-checkout input[type="checkbox"] { accent-color: var(--bk-orange); }

/* ==========================================================================
   Footer: the header's navy + grid; discovery links on paper
   ========================================================================== */
.b3-seo { background: var(--bk-paper); border-top: 1px solid var(--bk-line); }
.b3-seo-inner { max-width: var(--bk-wrap); margin: 0 auto; padding: 36px var(--bk-gutter) 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 48px; }
.b3-seo h3 { font-size: 14px; font-weight: 800; color: var(--bk-ink); margin: 0 0 10px; }
.b3-seo .bmf-seo-wrap { margin-bottom: 20px; }
.b3-seo .bmf-chip { background: #fff !important; border-color: var(--bk-line) !important; color: var(--bk-ink) !important; font-weight: 600; }
.b3-seo .bmf-chip:hover { border-color: #D6D0C6 !important; }
.b3-footer-inner { max-width: var(--bk-wrap); margin: 0 auto; padding: 48px var(--bk-gutter) 34px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.b3-footer h3 { font-size: 14px; font-weight: 800; color: #fff; margin: 0 0 14px; }
.b3-footer-links { display: flex; flex-direction: column; gap: 10px; }
.b3-footer-links a { font-size: 13.5px; color: rgba(255, 255, 255, .72); text-decoration: none; }
.b3-footer-links a:hover { color: #fff; }
.b3-trust { border-top: 1px solid rgba(255, 255, 255, .12); }
.b3-trust-inner { max-width: var(--bk-wrap); margin: 0 auto; padding: 16px var(--bk-gutter); display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.b3-trust-item { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: #fff; }
.b3-legal { border-top: 1px solid rgba(255, 255, 255, .12); }
.b3-legal-inner { max-width: var(--bk-wrap); margin: 0 auto; padding: 14px var(--bk-gutter); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: rgba(255, 255, 255, .6); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
    .bk-subs { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 12px; }
    .b3-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .bk-home-top { padding-top: 14px; }
    .bk-promo { min-height: 92px; padding: 14px; gap: 12px; }
    .bk-promo-title { font-size: 16px; }
    .bk-promo-sub { font-size: 12px; }
    .bk-promo .bm-hero-cta, .bk-promo-nav { display: none !important; }
    .bk-tabs { margin-top: 14px; }
    .bk-tab { width: 84px; }
    .bk-tab-icon { width: 44px; height: 44px; }
    .bk-tab-label { font-size: 11.5px; }
    .bk-subs { display: flex; overflow-x: auto; gap: 2px; padding: 10px 0 6px; scrollbar-width: none; }
    .bk-sub { width: 76px; flex-shrink: 0; }
    .bk-sub-icon { width: 42px; height: 42px; }
    .bk-sub-icon svg { width: 20px; height: 20px; }
    .bk-sub-label { font-size: 10.5px; }
    #bm-tab-content { padding-top: 18px !important; }
    .bm-product-img { height: 140px !important; }
    .b3-seo-inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .bk-tab, .bk-tab-icon, .bk-sub-icon, .bk-add, .bm-product-card { transition: none !important; }
}

/* Placement: "+" sits on the image's bottom-right corner */
.bm-product-card > .bk-add { top: calc(188px - 42px); right: 8px; bottom: auto; }
@media (max-width: 768px) { .bm-product-card > .bk-add { top: calc(140px - 42px); } }
.bm-product-card > .bk-verified { top: 8px; left: 8px; }
/* The navy home strip already has app-style tabs on phones */
#bm-mobile-tabs { display: none !important; }

/* Header search: a solid white pill (beats brickomart.css's bm-dark glass) */
#bm-nav-bottom .b3-search.bm-search-wrap { background: #fff !important; border: 0 !important; }
/* Home rails: app spacing, not Bagisto's big margins */
#bm-tab-content .bm-carousel-container { margin-top: 0 !important; padding-left: 0 !important; padding-right: 0 !important; max-width: none !important; }
#bm-tab-content .bm-carousel-container > div + div, #bm-tab-content .bm-carousel-container [class*="mt-10"] { margin-top: 16px !important; }
#bm-tab-content .bm-carousel-container .secondary-button { border-radius: 12px !important; border: 1px solid var(--bk-line) !important; color: var(--bk-ink) !important; background: #fff !important; font-weight: 800 !important; font-size: 14px !important; padding: 10px 26px !important; }

/* Home: trades, sub-categories and chips centred (auto margins keep the
   first item reachable when a row scrolls on phones). */
.bk-tabs > .bk-tab:first-child { margin-left: auto; }
.bk-tabs > .bk-tab:last-child { margin-right: auto; }
.bk-subs { display: flex; flex-wrap: wrap; justify-content: center; }
.bk-sub { width: 136px; }
.bk-chips > :first-child { margin-left: auto; }
.bk-chips > :last-child { margin-right: auto; }
@media (max-width: 768px) {
    .bk-subs { flex-wrap: nowrap; justify-content: flex-start; }
    .bk-subs > .bk-sub:first-child { margin-left: auto; }
    .bk-subs > .bk-sub:last-child { margin-right: auto; }
    .bk-sub { width: 76px; }
}

/* Home: the active trade tab curves outward into the white rail (no sharp
   bottom corners); the rail itself keeps its straight edge. */
.bk-tabs { padding: 0 20px; }
.bk-tab.bm-active { position: relative; border-radius: 18px 18px 0 0; }
.bk-tab.bm-active::before, .bk-tab.bm-active::after { content: ""; position: absolute; bottom: 0; width: 18px; height: 18px; pointer-events: none; }
.bk-tab.bm-active::before { left: -18px; background: radial-gradient(circle at 0 0, rgba(255,255,255,0) 17px, #fff 18px); }
.bk-tab.bm-active::after { right: -18px; background: radial-gradient(circle at 100% 0, rgba(255,255,255,0) 17px, #fff 18px); }

/* Home top on desktop: compact and sleek */
@media (min-width: 769px) {
    .bk-home-top { padding-top: 14px; }
    .bk-promo { min-height: 84px; padding: 12px 18px; border-radius: 14px; }
    .bk-promo-title { font-size: 19px; }
    .bk-promo-sub { font-size: 12.5px; }
    .bk-promo .bm-hero-cta { height: 38px; padding: 0 16px; font-size: 13px; }
    .bk-tabs { margin-top: 14px; gap: 0; }
    .bk-tab { width: 92px; gap: 5px; padding: 8px 4px 9px; margin-top: 6px; }
    .bk-tab.bm-active { padding-top: 10px; border-radius: 14px 14px 0 0; }
    .bk-tab.bm-active::before, .bk-tab.bm-active::after { width: 14px; height: 14px; }
    .bk-tab.bm-active::before { left: -14px; background: radial-gradient(circle at 0 0, rgba(255,255,255,0) 13px, #fff 14px); }
    .bk-tab.bm-active::after { right: -14px; background: radial-gradient(circle at 100% 0, rgba(255,255,255,0) 13px, #fff 14px); }
    .bk-tab-icon { width: 38px; height: 38px; }
    .bk-tab-icon svg { width: 19px; height: 19px; }
    .bk-tab.bm-active .bk-tab-icon { border-radius: 11px; }
    .bk-tab-label { font-size: 11.5px; }
    .bk-subs { gap: 2px; padding: 12px 0 8px; }
    .bk-sub { width: 104px; gap: 6px; }
    .bk-sub-icon { width: 44px; height: 44px; }
    .bk-sub-icon svg { width: 20px; height: 20px; }
    .bk-sub-label { font-size: 11.5px; }
    .bk-chips { padding-bottom: 12px; }
    .bk-chip { height: 28px; font-size: 12px; padding: 0 11px; }
}

/* Home promo: no card border */
.bk-promo { border: 0 !important; }

/* Home promo: no tint either; the offer sits straight on the navy */
.bk-promo:not(.bk-on-image) { background: transparent !important; padding-left: 0; padding-right: 0; }
.bk-promo:not(.bk-on-image)::after { display: none; }

/* Home top on phones: compact */
@media (max-width: 768px) {
    .bk-home-top { padding-top: 8px; }
    .bk-promo { min-height: 70px; padding-top: 6px; padding-bottom: 6px; }
    .bk-promo-title { font-size: 15px; }
    .bk-promo-sub { font-size: 11.5px; }
    .bk-tabs { margin-top: 8px; padding: 0 16px; }
    .bk-tab { width: 72px; gap: 4px; padding: 6px 3px 7px; margin-top: 5px; }
    .bk-tab.bm-active { padding-top: 8px; border-radius: 14px 14px 0 0; }
    .bk-tab.bm-active::before, .bk-tab.bm-active::after { width: 14px; height: 14px; }
    .bk-tab.bm-active::before { left: -14px; background: radial-gradient(circle at 0 0, rgba(255,255,255,0) 13px, #fff 14px); }
    .bk-tab.bm-active::after { right: -14px; background: radial-gradient(circle at 100% 0, rgba(255,255,255,0) 13px, #fff 14px); }
    .bk-tab-icon { width: 36px; height: 36px; }
    .bk-tab-icon svg { width: 18px; height: 18px; }
    .bk-tab.bm-active .bk-tab-icon { border-radius: 11px; }
    .bk-tab-label { font-size: 10.5px; }
    .bk-subs { padding: 8px 0 4px; }
    .bk-sub { width: 66px; gap: 5px; }
    .bk-sub-icon { width: 36px; height: 36px; }
    .bk-sub-icon svg { width: 18px; height: 18px; }
    .bk-sub-label { font-size: 10px; }
    .bk-chips { padding-bottom: 10px; }
    .bk-chip { height: 28px; font-size: 11.5px; padding: 0 10px; }
}

/* Search hint that rolls through materials (bm-search-rotate.js) */
.bk-ph { position: absolute; z-index: 2; display: flex; align-items: center; gap: .3em; pointer-events: none; white-space: nowrap; color: #8A93A3; font-weight: 500; transition: opacity .15s; }
.bk-ph.is-off { opacity: 0; }
.bk-ph-slot { display: inline-grid; align-items: center; height: 1.5em; overflow: hidden; }
.bk-ph-word { grid-area: 1 / 1; color: var(--bk-ink); font-weight: 700; opacity: 0; transform: translateY(105%); transition: transform .42s cubic-bezier(.2, .8, .2, 1), opacity .42s; }
.bk-ph-word.is-in { opacity: 1; transform: none; }
.bk-ph-word.is-out { opacity: 0; transform: translateY(-105%); }
/* The rolling word stays placeholder-grey, like the rest of the hint */
.bk-ph-word { color: inherit; font-weight: 500; }

/* Home trade tabs: one white tab that slides between trades (bm-home-tabs.js) */
.bk-tabs--slide { position: relative; }
.bk-tabs--slide > .bk-tab-slider + .bk-tab { margin-left: auto; }
.bk-tab-slider { position: absolute; left: 0; top: 0; bottom: 0; z-index: 0; pointer-events: none; background: #fff; border-radius: 14px 14px 0 0; }
.bk-tab-slider.is-ready { transition: transform .42s cubic-bezier(.3, .8, .25, 1), width .42s cubic-bezier(.3, .8, .25, 1); }
.bk-tab-slider::before, .bk-tab-slider::after { content: ""; position: absolute; bottom: 0; width: 14px; height: 14px; }
.bk-tab-slider::before { left: -14px; background: radial-gradient(circle at 0 0, rgba(255,255,255,0) 13px, #fff 14px); }
.bk-tab-slider::after { right: -14px; background: radial-gradient(circle at 100% 0, rgba(255,255,255,0) 13px, #fff 14px); }
.bk-tabs--slide .bk-tab { position: relative; z-index: 1; }
.bk-tabs--slide .bk-tab.bm-active { background: transparent; }
.bk-tabs--slide .bk-tab.bm-active::before, .bk-tabs--slide .bk-tab.bm-active::after { display: none; }
.bk-tab-label { transition: color .3s; }

/* The new trade's sub-categories and promo slide in from the side you moved to */
@keyframes bk-in-r { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: none; } }
@keyframes bk-in-l { from { opacity: 0; transform: translateX(-32px); } to { opacity: 1; transform: none; } }
.bk-in-right { animation: bk-in-r .4s cubic-bezier(.2, .8, .2, 1); }
.bk-in-left { animation: bk-in-l .4s cubic-bezier(.2, .8, .2, 1); }

/* No hairline under the tabs: the white rail tucks 2px up under the navy so
   the sliding tab, its curves and the rail meet inside white, whatever the
   sub-pixel position. Curves get a 1px soft edge instead of a stepped one. */
.bk-strip { position: relative; z-index: 2; margin-top: -2px; }
.bk-tab-slider::before { background: radial-gradient(circle at 0 0, rgba(255,255,255,0) 13px, #fff 14px); }
.bk-tab-slider::after { background: radial-gradient(circle at 100% 0, rgba(255,255,255,0) 13px, #fff 14px); }
/* The rail's soft drop shadow also bled 4px upward into the white tab as a faint grey band */
.bk-strip { box-shadow: none; }
/* Curves: each corner piece tucks 1px under the white tab and 2px under the
   rail, so no hairline seam can show where the pieces meet. */
.bk-tab-slider::before, .bk-tab-slider::after { width: 15px; height: 14px; bottom: 0; }
.bk-tab-slider::before { left: -14px; background: radial-gradient(circle at 0 0, rgba(255,255,255,0) 13px, #fff 14px); }
.bk-tab-slider::after { right: -14px; background: radial-gradient(circle at 100% 0, rgba(255,255,255,0) 13px, #fff 14px); }

/* Trade tabs never scroll (that dragged the white tab out of place). On phones
   the tabs share the width equally so all of them always fit. */
.bk-tabs { overflow: hidden !important; overscroll-behavior: none; touch-action: pan-y; }
@media (max-width: 768px) {
    .bk-tabs { padding: 0 10px; gap: 0; }
    .bk-tabs > .bk-tab, .bk-tabs--slide > .bk-tab-slider + .bk-tab { flex: 1 1 0; width: auto; min-width: 0; margin-left: 0; margin-right: 0; }
    .bk-tab-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
}
/* overflow: clip makes the row a non-scrolling box, so nothing (not even focus or scripts) can shift it */
.bk-tabs { overflow: clip !important; }
@media (max-width: 380px) { .bk-tab-label { font-size: 10px; letter-spacing: -.2px; } .bk-tabs { padding: 0 6px; } }

/* ══ 2026-10-04: compact product tile everywhere (matches the home shelves) ══ */
.bm-product-grid:has(.bm-product-card) { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)) !important; gap: 12px !important; }
@media (max-width: 720px) { .bm-product-grid:has(.bm-product-card) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; } }
@media (max-width: 360px) { .bm-product-grid:has(.bm-product-card) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
.bm-product-grid:has(> .bm-brand-tile), .bm-product-grid:has(> .bm-consultant-tile) { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important; }
.bm-product-card { border-radius: 16px !important; padding: 7px !important; box-shadow: none !important; }
.bm-product-card:hover { box-shadow: 0 10px 24px -14px rgba(15, 42, 74, .35) !important; transform: translateY(-1px) !important; }
.bm-product-img { height: auto !important; aspect-ratio: 1 / 1; padding: 6px !important; border-radius: 11px !important; overflow: hidden; }
.bm-product-body { padding: 8px 3px 2px !important; gap: 2px !important; }
.bm-product-name { font-size: 13px !important; line-height: 1.3 !important; min-height: 34px !important; display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body .bm-product-card .bm-product-price-row .bm-product-price { font-size: 14.5px !important; }
.bk-add { width: 32px !important; height: 32px !important; right: 6px !important; bottom: 6px !important; border-radius: 10px !important; }
.bk-quote { font-size: 12px !important; }
.bk-tile-foot { margin-top: 4px !important; }
@media (max-width: 720px) {
    .bm-product-card { padding: 5px !important; border-radius: 14px !important; }
    .bm-product-name { font-size: 12px !important; min-height: 31px !important; }
    body .bm-product-card .bm-product-price-row .bm-product-price { font-size: 13px !important; }
    .bm-product-unit { font-size: 10.5px !important; }
    .bk-add { width: 28px !important; height: 28px !important; right: 5px !important; bottom: 5px !important; border-radius: 9px !important; }
    .bk-tile-foot { flex-wrap: wrap; row-gap: 2px; }
    .bk-suppliers, .bk-quote { font-size: 11px !important; }
}
.bm-carousel-card { min-width: 180px !important; }

/* Product page on phones: one notch smaller overall, like the app's product screen. */
@media (max-width: 720px) {
    .bmp-h1 { font-size: 21px !important; line-height: 1.22 !important; }
    #bmp-price-line > span:first-child { font-size: 24px !important; }
    .bmp-root { font-size: 13.5px; }
    .bmp-root .bmp-card { padding: 13px !important; border-radius: 14px !important; }
    .bmp-root .bmp-pill { font-size: 11.5px !important; }
    .bmp-root .bmp-btn { min-height: 44px; font-size: 14px !important; }
}
