/* Home uses a clean white canvas */
body.bmd-ui, .bmd-ui .aiz-main-wrapper { background: #fff; }

/* ==========================================================================
   BestMart — Home page
   ========================================================================== */

/* ---------- Hero ---------- */
.bmh-hero { position: relative; overflow: hidden; background: radial-gradient(1200px 520px at 85% -10%, var(--bm-primary-soft), transparent 60%), radial-gradient(900px 480px at -10% 110%, var(--bm-accent-soft), transparent 60%), linear-gradient(180deg, #F5F8FF 0%, #fff 100%); }
.bmh-hero__grid { position: absolute; inset: 0; pointer-events: none; opacity: .55; background-image: linear-gradient(var(--bm-line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--bm-line-soft) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent); -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent); }
.bmh-hero > .bmh-hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
@media (max-width: 991px) { .bmh-hero > .bmh-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 32px; padding-bottom: 56px; } }
.bmh-hero__copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.bmh-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--bm-line); box-shadow: var(--bm-shadow-sm); font-size: 13px; font-weight: 600; color: var(--bm-muted); }
.bmh-pill b { padding: 4px 10px; border-radius: 999px; background: var(--bm-primary); color: #fff; font-size: 12px; font-weight: 700; }
.bmh-title { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.03; letter-spacing: -.04em; font-weight: 800; color: var(--bm-ink); margin: 0; }
.bmh-title .bmh-rotator { display: inline-grid; vertical-align: bottom; }
.bmh-title .bmh-rotator > span { grid-area: 1 / 1; background: linear-gradient(110deg, var(--bm-primary), var(--bm-sky)); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0; transform: translateY(40%); transition: opacity .55s var(--bm-ease), transform .55s var(--bm-ease); white-space: nowrap; }
.bmh-title .bmh-rotator > span.is-on { opacity: 1; transform: none; }
.bmh-title .bmh-rotator > span.is-out { opacity: 0; transform: translateY(-40%); }
.bmh-sub { font-size: 18px; line-height: 1.65; color: var(--bm-muted); margin: 0; max-width: 540px; }

.bmh-search { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; background: #fff; border: 1px solid var(--bm-line); border-radius: 22px; box-shadow: 0 30px 60px -30px rgba(10, 37, 82, .35); max-width: 660px; position: relative; z-index: 5; }
.bmh-search__field { flex: 2 1 230px; display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 16px; border-radius: 15px; background: var(--bm-bg-soft); transition: background-color .2s, box-shadow .2s; position: relative; }
.bmh-search__field:focus-within { background: #fff; box-shadow: inset 0 0 0 2px var(--bm-primary); }
.bmh-search__field svg { color: var(--bm-subtle); flex: none; }
.bmh-search__field input { border: 0; outline: 0; background: transparent; font: 600 16px var(--bm-font); color: var(--bm-ink); width: 100%; min-width: 0; }
.bmh-search__field input::placeholder { font-weight: 500; color: #9AA6B8; }
.bmh-search__loc { flex: 1 1 170px; display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 16px; border-radius: 15px; background: var(--bm-bg-soft); border: 0; cursor: pointer; text-align: left; font-family: var(--bm-font); transition: background-color .2s; min-width: 0; }
.bmh-search__loc:hover { background: var(--bm-accent-soft); }
.bmh-search__loc svg { color: var(--bm-accent); flex: none; }
.bmh-search__loc span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.bmh-search__loc small { font-size: 11px; font-weight: 700; color: var(--bm-subtle); text-transform: uppercase; letter-spacing: .5px; }
.bmh-search__loc strong { font-size: 15px; font-weight: 800; color: var(--bm-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bmh-search .bmd-btn { height: 58px; border-radius: 15px; padding: 0 28px; flex: 0 0 auto; }
@media (max-width: 575px) { .bmh-search .bmd-btn { flex: 1 1 100%; } }

.bmh-popular { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bmh-popular__label { font-size: 13px; font-weight: 700; color: var(--bm-subtle); margin-right: 4px; }

.bmh-stats { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 6px; }
.bmh-stat strong { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--bm-ink); line-height: 1.1; }
.bmh-stat span { font-size: 13px; color: var(--bm-muted); font-weight: 600; }

/* Hero visual */
.bmh-visual { position: relative; min-height: 460px; min-width: 0; }
@media (max-width: 991px) { .bmh-visual { min-height: 0; } }
.bmh-visual__blob { position: absolute; border-radius: 50%; filter: blur(2px); }
.bmh-visual__blob--a { width: 320px; height: 320px; right: -40px; top: -30px; background: radial-gradient(circle at 30% 30%, var(--bm-accent-soft), transparent 70%); }
.bmh-visual__blob--b { width: 380px; height: 380px; left: -60px; bottom: -60px; background: radial-gradient(circle at 60% 60%, var(--bm-primary-soft), transparent 70%); }
/* Full-width offers slider — matches the admin banner size 3500 × 1296 so nothing is cut */
.bmh-banners { padding: 8px 0 0; }
.bmh-slider { position: relative; border-radius: 28px; overflow: hidden; background: var(--bm-bg-soft); box-shadow: 0 30px 60px -36px rgba(10, 37, 82, .45); aspect-ratio: 3500 / 1296; }
@media (max-width: 575px) { .bmh-slider { border-radius: 18px; } }
.bmh-slider .bmh-swiper { position: relative; overflow: hidden; width: 100%; height: 100%; z-index: 1; }
.bmh-slider .swiper-wrapper, .bmh-slider .swiper-slide { height: 100%; }
.bmh-slider .swiper-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.bmh-slider .swiper-pagination { bottom: 12px !important; }
.bmh-slider .swiper-pagination-bullet { width: 8px; height: 8px; background: #fff; opacity: .6; box-shadow: 0 1px 4px rgba(0,0,0,.25); transition: all .3s var(--bm-ease); }
.bmh-slider .swiper-pagination-bullet-active { width: 24px; border-radius: 8px; opacity: 1; }
.bmh-slider__nav { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; border-radius: 14px; border: 0; background: rgba(255,255,255,.92); color: var(--bm-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--bm-shadow); opacity: 0; transition: opacity .3s, transform .3s var(--bm-ease); }
.bmh-slider:hover .bmh-slider__nav { opacity: 1; }
.bmh-slider__nav:hover { transform: scale(1.08); }
.bmh-slider__nav--prev { left: 16px; }
.bmh-slider__nav--next { right: 16px; }
@media (hover: none) { .bmh-slider__nav { display: none; } }
.bmh-float { position: absolute; z-index: 3; background: #fff; border: 1px solid var(--bm-line-soft); border-radius: 18px; box-shadow: 0 30px 60px -28px rgba(10, 37, 82, .45); padding: 14px 16px; display: flex; align-items: center; gap: 12px; font-family: var(--bm-font); }
.bmh-float strong { display: block; font-size: 14.5px; color: var(--bm-ink); font-weight: 800; }
.bmh-float small { display: block; font-size: 12.5px; color: var(--bm-muted); font-weight: 600; }
.bmh-float--tl { left: -28px; top: 36px; }
.bmh-float--br { right: -20px; bottom: 34px; }
@media (max-width: 1199px) { .bmh-float--tl { left: 12px; top: 12px; } .bmh-float--br { right: 12px; bottom: 12px; } }
@media (max-width: 575px) { .bmh-float { display: none; } }

/* Placeholder visual when no banners */
.bmh-cards { position: relative; height: 460px; }
.bmh-card-demo { position: absolute; width: min(330px, 80%); background: #fff; border-radius: 22px; padding: 18px; box-shadow: 0 30px 60px -28px rgba(10, 37, 82, .4); border: 1px solid var(--bm-line-soft); display: flex; gap: 14px; align-items: center; }
.bmh-card-demo:nth-child(1) { left: 0; top: 40px; }
.bmh-card-demo:nth-child(2) { right: 0; top: 180px; }
.bmh-card-demo:nth-child(3) { left: 40px; bottom: 20px; }
@media (max-width: 991px) { .bmh-cards { height: auto; display: grid; gap: 14px; } .bmh-card-demo { position: static; width: 100%; } }

/* ---------- Section heads ---------- */
.bmh-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.bmh-head__copy { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.bmh-head p { margin: 0; color: var(--bm-muted); font-size: 16px; line-height: 1.6; }

/* ---------- Categories ---------- */
.bmh-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
@media (max-width: 575px) { .bmh-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } }
.bmh-cat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 22px 12px 18px; border-radius: 22px; background: #fff; border: 1px solid var(--bm-line-soft); text-decoration: none !important; transition: transform .4s var(--bm-ease), box-shadow .4s var(--bm-ease), border-color .4s; position: relative; overflow: hidden; }
.bmh-cat::before { content: ''; position: absolute; inset: auto 0 0; height: 0; background: linear-gradient(180deg, transparent, var(--bm-primary-soft)); transition: height .4s var(--bm-ease); }
.bmh-cat:hover { transform: translateY(-6px); box-shadow: var(--bm-shadow-lg); border-color: transparent; }
.bmh-cat:hover::before { height: 100%; }
.bmh-cat__img { position: relative; width: 72px; height: 72px; border-radius: 22px; background: var(--bm-bg-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; transition: transform .5s var(--bm-spring); }
.bmh-cat:hover .bmh-cat__img { transform: scale(1.08) rotate(-4deg); }
.bmh-cat__img img { width: 74%; height: 74%; object-fit: contain; }
.bmh-cat__name { position: relative; font-size: 14px; font-weight: 700; color: var(--bm-ink); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 575px) { .bmh-cat { padding: 16px 6px 14px; border-radius: 18px; } .bmh-cat__img { width: 56px; height: 56px; border-radius: 16px; } .bmh-cat__name { font-size: 12.5px; } }
.bmh-cat--more .bmh-cat__img { background: var(--bm-ink); color: #fff; }

/* ---------- Business cards (trending) ---------- */
.bmh-biz-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 22px; margin: 0 -4px; scrollbar-width: none; }
.bmh-biz-row::-webkit-scrollbar { display: none; }
@media (min-width: 1200px) { .bmh-biz-row { grid-auto-columns: calc((100% - 54px) / 4); } }
.bmh-biz { scroll-snap-align: start; display: flex; flex-direction: column; border-radius: 22px; background: #fff; border: 1px solid var(--bm-line-soft); overflow: hidden; text-decoration: none !important; transition: transform .4s var(--bm-ease), box-shadow .4s var(--bm-ease); }
.bmh-biz:hover { transform: translateY(-6px); box-shadow: var(--bm-shadow-lg); }
.bmh-biz__cover { position: relative; height: 130px; background: linear-gradient(135deg, var(--bm-primary-soft), var(--bm-accent-soft)); display: flex; align-items: center; justify-content: center; }
.bmh-biz__logo { width: 76px; height: 76px; border-radius: 20px; background: #fff; box-shadow: var(--bm-shadow); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; color: var(--bm-primary); transition: transform .5s var(--bm-spring); }
.bmh-biz:hover .bmh-biz__logo { transform: scale(1.06); }
.bmh-biz__logo img { width: 100%; height: 100%; object-fit: cover; }
.bmh-biz__badge { position: absolute; top: 12px; left: 12px; }
.bmh-biz__dist { position: absolute; top: 12px; right: 12px; background: rgba(255, 255, 255, .92); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; color: var(--bm-ink); }
.bmh-biz__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bmh-biz__name { font-size: 16px; font-weight: 800; color: var(--bm-ink); margin: 0; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.bmh-biz__meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--bm-muted); flex-wrap: wrap; }
.bmh-biz__addr { font-size: 13px; color: var(--bm-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bmh-biz__cta { margin-top: auto; padding-top: 6px; font-size: 13.5px; font-weight: 700; color: var(--bm-primary); display: inline-flex; align-items: center; gap: 6px; }
.bmh-biz:hover .bmh-biz__cta svg { transform: translateX(4px); }
.bmh-biz__cta svg { transition: transform .3s var(--bm-ease); }
.bmh-scroll-btns { display: flex; gap: 8px; }
.bmh-scroll-btns button { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--bm-line); background: #fff; color: var(--bm-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .25s var(--bm-ease); }
.bmh-scroll-btns button:hover { background: var(--bm-ink); color: #fff; border-color: var(--bm-ink); }

/* ---------- Steps ---------- */
.bmh-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: s; }
@media (max-width: 767px) { .bmh-steps { grid-template-columns: 1fr; } }
.bmh-step { position: relative; padding: 32px; border-radius: 26px; background: var(--bm-bg-soft); overflow: hidden; display: flex; flex-direction: column; gap: 14px; transition: transform .4s var(--bm-ease); }
.bmh-step:hover { transform: translateY(-4px); }
.bmh-step::after { counter-increment: s; content: '0' counter(s); position: absolute; right: 20px; top: 8px; font-size: 76px; font-weight: 800; letter-spacing: -.05em; color: rgba(10, 37, 82, .05); }
.bmh-step--dark { background: var(--bm-ink); color: #C7D3E6; }
.bmh-step--dark::after { color: rgba(255, 255, 255, .06); }
.bmh-step--dark h3 { color: #fff; }
.bmh-step p { margin: 0; font-size: 15px; line-height: 1.65; }

/* ---------- Grow cards ---------- */
.bmh-grow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 991px) { .bmh-grow { grid-template-columns: 1fr; } }
.bmh-grow-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 18px; padding: 32px; border-radius: 28px; background: #fff; border: 1px solid var(--bm-line-soft); transition: transform .45s var(--bm-ease), box-shadow .45s var(--bm-ease); }
.bmh-grow-card:hover { transform: translateY(-8px); box-shadow: var(--bm-shadow-lg); }
.bmh-grow-card::before { content: ''; position: absolute; width: 220px; height: 220px; right: -70px; top: -70px; border-radius: 50%; background: var(--_tint, var(--bm-primary-soft)); transition: transform .6s var(--bm-ease); }
.bmh-grow-card:hover::before { transform: scale(1.25); }
.bmh-grow-card > * { position: relative; }
.bmh-grow-card--accent { --_tint: var(--bm-accent-soft); }
.bmh-grow-card--dark { background: var(--bm-ink); border-color: var(--bm-ink); color: #C7D3E6; --_tint: rgba(255, 255, 255, .06); }
.bmh-grow-card--dark h3 { color: #fff; }
.bmh-grow-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.bmh-grow-card li { display: flex; gap: 10px; align-items: flex-start; }
.bmh-grow-card li svg { flex: none; margin-top: 2px; color: var(--bm-success); }
.bmh-grow-card--dark li svg { color: #FF9A6B; }
.bmh-grow-card .bmh-grow-card__actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Enquiry band ---------- */
.bmh-enq { position: relative; overflow: hidden; border-radius: 32px; padding: 56px; background: linear-gradient(120deg, var(--bm-ink) 0%, #12357a 55%, var(--bm-primary) 120%); color: #fff; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 991px) { .bmh-enq { grid-template-columns: 1fr; padding: 36px 24px; } }
.bmh-enq h2 { color: #fff; font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -.03em; margin: 0 0 12px; line-height: 1.12; }
.bmh-enq p { color: #C7D3E6; font-size: 16px; line-height: 1.65; margin: 0; }
.bmh-enq__rings { position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 0 0 60px rgba(255, 255, 255, .03), 0 0 0 120px rgba(255, 255, 255, .02); animation: bmd-float 10s ease-in-out infinite; }
.bmh-enq__panel { position: relative; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 14px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.bmh-enq__row { display: flex; gap: 12px; align-items: center; font-size: 14.5px; color: #E6EEFB; }
.bmh-enq__row span:first-child { width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .12); display: flex; align-items: center; justify-content: center; flex: none; }

/* ---------- App section ---------- */
.bmh-app { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 36px 40px; border-radius: 28px; border: 1px solid var(--bm-line-soft); background: linear-gradient(120deg, #fff 0%, var(--bm-bg-soft) 100%); }

/* ---------- Promo banner rows (admin "Banner 1/2") ---------- */
.bmh-promos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.bmh-promos a { display: block; border-radius: 22px; overflow: hidden; transition: transform .4s var(--bm-ease), box-shadow .4s var(--bm-ease); }
.bmh-promos a:hover { transform: translateY(-4px); box-shadow: var(--bm-shadow-lg); }
.bmh-promos img { width: 100%; display: block; }

/* ---------- Grow modals (split layout) ---------- */
.bmh-split .modal-dialog { max-width: 760px; }
.bmh-split__grid { display: grid; grid-template-columns: 300px 1fr; }
@media (max-width: 767px) { .bmh-split__grid { grid-template-columns: 1fr; } .bmh-split__art { display: none !important; } }
.bmh-split__art { position: relative; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; overflow: hidden; }
.bmh-split__art img { width: 100%; max-height: 240px; object-fit: contain; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .25)); animation: bmd-float 6s ease-in-out infinite; }
.bmh-split__art h3 { color: #fff; font-size: 22px; font-weight: 800; margin: 0; }
.bmh-split__art--owner { background: linear-gradient(150deg, var(--bm-accent), #FF8A57); }
.bmh-split__art--partner { background: linear-gradient(150deg, var(--bm-primary), var(--bm-sky)); }
.bmh-split__art--advisor { background: linear-gradient(150deg, var(--bm-ink), #23498f); }
.bmh-split__body { padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.bmh-split__body ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; color: var(--bm-text); }
.bmh-split__body li { display: flex; gap: 10px; }
.bmh-split__body li svg { color: var(--bm-success); flex: none; margin-top: 2px; }

/* Enquiry modal autocomplete list */
#inquery_model #productlist { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; }
.bmh-loc-box { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--bm-bg-soft); margin-bottom: 16px; font-size: 14px; }
.bmh-loc-box svg { color: var(--bm-accent); flex: none; }
.bmh-loc-box__text { flex: 1; min-width: 0; font-weight: 700; color: var(--bm-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#inqCityDropdown { background: #fff; border: 1px solid var(--bm-line); border-radius: 14px; max-height: 200px; overflow-y: auto; margin-top: 6px; box-shadow: var(--bm-shadow); }
#inqCityDropdown > div { padding: 10px 14px; cursor: pointer; font-size: 14px; }
#inqCityDropdown > div:hover { background: var(--bm-bg-soft); color: var(--bm-primary); }

/* Hero entrance — pure CSS so the heading paints immediately (good for LCP) */
[data-bmh-in] { animation: bmd-page-in .9s var(--bm-ease) backwards; animation-delay: var(--d, 0ms); }
.bmh-flip { transform: rotate(180deg); }
.bmh-cat--more { cursor: pointer; font-family: var(--bm-font); width: 100%; }
