/*
Theme Name: BuyFromChina (Bricks Child)
Theme URI: https://buyfromchina.shop
Description: BuyFromChina wholesale marketplace child theme for Bricks.
Author: Multilancer Limited
Template: bricks
Version: 1.0.1
Text Domain: bfc
*/

/* Bricks integration for the Wholesale Vermilion direction (tokens live in BuyFromChina Core app.css). */
body.bricks-is-frontend { background: var(--bfc-bg); }
#brx-header:has(.bfc-hdr) { position: sticky; top: 0; z-index: 800; }
.admin-bar #brx-header:has(.bfc-hdr) { top: 32px; }
@media (max-width: 782px) { .admin-bar #brx-header:has(.bfc-hdr) { top: 0; } }
.bfc-hdr { position: relative; width: 100%; }
.bfc-hdr > .bfc-hdr__top { width: 100%; }
.bfc-hdr__top .bfc-wrap { flex-direction: row; flex-wrap: nowrap; white-space: nowrap; }
.bfc-promo { width: 100%; }
.brxe-section.bfc-section, .brxe-section.bfc-hdr, .brxe-section.bfc-ftr { width: 100%; }
.brxe-div.bfc-wrap { width: min(1400px, 100% - 32px); margin-inline: auto; }
@media (max-width: 767px) { .brxe-div.bfc-wrap { width: calc(100% - 24px); } }
.bfc-hdr__main .brxe-shortcode, .bfc-hdr__search { min-width: 0; }
.bfc-hdr__main > .brxe-text { margin: 0; }
.bfc-hdr__top .brxe-text-link { color: inherit; }
.bfc-panel { padding: 16px; background: var(--bfc-surface); border-radius: var(--bfc-r-lg); box-shadow: var(--bfc-shadow-1); }
.bfc-step .brxe-icon { color: var(--bfc-accent); font-size: 22px; line-height: 1; padding-top: 2px; }
.bfc-step .brxe-heading { color: #fff; }
.bfc-logo--light { color: #fff; }
.bfc-logo--light b { color: #fff; }
.bfc-section--feed .bfc-h2 { margin-top: 6px; }
.bfc-ftr .brxe-heading { color: #fff; font-size: 15px; margin-bottom: 12px; }
.bfc-ftr p { margin: 10px 0 0; max-width: 40ch; }
.bfc-pdp__summary .brxe-product-title { margin: 0; }
.bfc-pdp .woocommerce-product-gallery { margin: 0; }
.woocommerce-breadcrumb, .brxe-woocommerce-breadcrumbs { margin: 6px 0 12px; color: var(--bfc-muted); font-size: 13px; }
.brxe-woocommerce-breadcrumbs a { color: var(--bfc-muted); }
.brxe-shortcode { width: 100%; }
.bfc-hero > .brxe-shortcode { height: 100%; }
/* WordPress menus (Appearance > Menus) */
.bfc-strip-menu { width: 100%; }
.bfc-strip-menu .bricks-nav-menu { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 8px 0 10px; margin: 0; list-style: none; }
.bfc-strip-menu .bricks-nav-menu::-webkit-scrollbar { display: none; }
.bfc-strip-menu .bricks-nav-menu > li { flex: 0 0 auto; margin: 0; }
.bfc-strip-menu .bricks-nav-menu > li > a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--bfc-r-pill); color: var(--bfc-ink-2); font: 500 13.5px/1 var(--bfc-text); text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s; }
.bfc-strip-menu .bricks-nav-menu > li > a:hover, .bfc-strip-menu .current-menu-item > a { background: var(--bfc-sunk); color: var(--bfc-ink); }
.bfc-strip-menu .bfc-strip__all > a { background: var(--bfc-ink) !important; color: #fff !important; font-weight: 600; }
.bfc-strip-menu .bfc-strip__all > a::before { content: ""; width: 14px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; }
.bfc-strip-menu .bfc-strip__hot > a { color: var(--bfc-accent) !important; font-weight: 700; }
.bfc-topbar-menu .bricks-nav-menu { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; }
.bfc-topbar-menu .bricks-nav-menu a { color: #EDE6E1; opacity: .85; text-decoration: none; font: 500 12.5px/1 var(--bfc-text); }
.bfc-topbar-menu .bricks-nav-menu a:hover { opacity: 1; }
.bfc-ftr-menu .bricks-nav-menu { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bfc-ftr-menu .bricks-nav-menu li { margin: 0; }
.bfc-ftr-menu .bricks-nav-menu a { color: #EDE6E1; text-decoration: none; font: 400 14px/1.4 var(--bfc-text); }
.bfc-ftr-menu .bricks-nav-menu a:hover { color: #fff; text-decoration: underline; }
.bfc-ftr .bfc-ftr__grid > div { min-width: 0; }
@media (max-width: 767px) { .bfc-strip-menu .bricks-nav-menu { padding: 4px 0 8px; } .bfc-strip-menu .bricks-nav-menu > li > a { padding: 6px 12px; font-size: 13px; background: var(--bfc-sunk); } .bfc-topbar-menu { display: none; } }
.bfc-buybar > .brxe-product-add-to-cart:not(:has(form)) { display: none; }
.bfc-buybar > * { flex: 1 1 auto; min-width: 0; }
.bfc-pdp__gallery .woocommerce-product-gallery { opacity: 1 !important; }
@media (max-width: 899px) { .bfc-pdp__gallery { margin: 0 -12px !important; } }
@media (max-width: 767px) { .bfc-app.single-product .bfc-buybar { display: flex; } .bfc-app.single-product .bfc-buybar .bfc-quote { width: 100%; } }
.bfc-shelves > .brxe-shortcode { min-width: 0; }
