/* ==========================================================================
   BestMart — Business (shop) page  ·  frontend/seller_shop.blade.php
   Reads theme variables from bm-theme.css / admin Appearance settings.
   ========================================================================== */

.bms { background: var(--bm-bg-soft); padding: 18px 0 64px; font-family: var(--bm-font); }
.bms-fill { fill: currentColor; stroke: none; }
body.bms-lock { overflow: hidden !important; }

/* ---------- Breadcrumb ---------- */
.bms-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; font-size: 13px; font-weight: 600; }
.bms-crumbs li { display: inline-flex; align-items: center; gap: 6px; color: var(--bm-ink); min-width: 0; }
.bms-crumbs li[aria-current] { max-width: 60vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.bms-crumbs li + li::before { content: ''; width: 6px; height: 6px; border-right: 2px solid var(--bm-subtle); border-top: 2px solid var(--bm-subtle); transform: rotate(45deg); margin-right: 4px; flex: none; display: inline-block; }
.bms-crumbs a { color: var(--bm-muted); text-decoration: none; transition: color .2s; }
.bms-crumbs a:hover { color: var(--bm-primary); }

/* ---------- Gallery ---------- */
.bms-gallery-wrap { position: relative; }
.bms-gallery { position: relative; display: grid; gap: 8px; height: 400px; border-radius: 26px; overflow: hidden; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.bms-gallery--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; height: 340px; }
.bms-gallery--2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.bms-gallery--3 { grid-template-columns: 2fr 1fr; }
.bms-gallery--4 { grid-template-columns: 2fr 1fr 1fr; }
.bms-gallery__item { position: relative; border: 0; padding: 0; margin: 0; overflow: hidden; cursor: zoom-in; background: #E9EEF5; min-height: 0; }
.bms-gallery__item:first-child { grid-row: 1 / -1; }
.bms-gallery--3 .bms-gallery__item:nth-child(2), .bms-gallery--3 .bms-gallery__item:nth-child(3) { grid-column: 2; }
.bms-gallery--4 .bms-gallery__item:nth-child(4) { grid-column: 2 / 4; }
.bms-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--bm-ease), filter .4s; }
.bms-gallery__item:hover img { transform: scale(1.06); filter: brightness(.92); }
.bms-gallery__more { position: absolute; inset: 0; background: rgba(10, 37, 82, .55); color: #fff; font-size: 26px; font-weight: 800; display: flex; flex-direction: column; align-items: center; justify-content: center; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.bms-gallery__more small { font-size: 13px; font-weight: 600; opacity: .9; }
.bms-gallery__all { position: absolute; right: 16px; top: 16px; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .94); color: var(--bm-ink); font: 700 13.5px var(--bm-font); cursor: pointer; box-shadow: var(--bm-shadow); transition: transform .3s var(--bm-spring); }
.bms-gallery__all:hover { transform: translateY(-2px); }
.bms-offer-flag { position: absolute; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--bm-accent); color: #fff; font-size: 12.5px; font-weight: 800; box-shadow: 0 10px 20px -10px rgba(255, 94, 24, .8); animation: bms-wiggle 3s ease-in-out infinite; }

.bms-strip { display: none; }

/* ---------- Header card ---------- */
.bms-head { position: relative; z-index: 2; display: flex; gap: 24px; align-items: flex-start; margin: -64px 28px 0; padding: 26px; background: #fff; border-radius: 26px; border: 1px solid var(--bm-line-soft); box-shadow: var(--bm-shadow-lg); }
.bms-head--solo { margin: 0; }
.bms-head__logo { position: relative; flex: none; width: 104px; height: 104px; border-radius: 26px; overflow: hidden; background: linear-gradient(135deg, var(--bm-primary-soft), var(--bm-accent-soft)); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 5px #fff, var(--bm-shadow); }
.bms-head__logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; z-index: 1; }
.bms-head__logo span { font-size: 34px; font-weight: 800; color: var(--bm-primary); }
.bms-head__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.bms-head__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bms-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 800; text-decoration: none !important; }
.bms-chip--cat { background: var(--bm-primary-soft); color: var(--bm-primary) !important; transition: background-color .2s; }
.bms-chip--cat:hover { background: var(--bm-primary); color: #fff !important; }
.bms-chip--verified { background: var(--bm-success-soft); color: var(--bm-success-ink); }
.bms-head__name { margin: 0; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -.03em; font-weight: 800; color: var(--bm-ink); word-break: break-word; }
.bms-head__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; font-size: 14px; }
.bms-rating { display: inline-flex; align-items: center; gap: 4px; background: var(--bm-success-ink); color: #fff !important; font-weight: 800; font-size: 14px; padding: 4px 9px; border-radius: 9px; text-decoration: none !important; }
.bms-rating--sm { font-size: 12px; padding: 3px 7px; border-radius: 7px; }
.bms-muted-link { color: var(--bm-muted) !important; font-weight: 600; text-decoration: underline !important; text-decoration-color: var(--bm-line) !important; text-underline-offset: 3px; }
.bms-muted-link:hover { color: var(--bm-primary) !important; }
.bms-new { background: var(--bm-info-soft); color: var(--bm-primary); font-weight: 800; font-size: 12.5px; padding: 4px 10px; border-radius: 8px; }
.bms-new--sm { font-size: 11px; padding: 2px 7px; }
.bms-sep { width: 4px; height: 4px; border-radius: 50%; background: #C3CCD9; }
.bms-dist { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; color: var(--bm-ink); }
.bms-dist svg { color: var(--bm-accent); }
.bms-head__addr { margin: 0; display: flex; gap: 8px; align-items: flex-start; color: var(--bm-muted); font-size: 14.5px; line-height: 1.55; }
.bms-head__addr svg { flex: none; margin-top: 3px; color: var(--bm-accent); }

.bms-status { display: inline-flex; align-items: center; gap: 7px; }
.bms-status__dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.bms-status.is-open { background: var(--bm-success-soft); color: var(--bm-success-ink); }
.bms-status.is-open .bms-status__dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; animation: bms-ping 2s var(--bm-ease) infinite; }
.bms-status.is-closed { background: var(--bm-danger-soft); color: var(--bm-danger-ink); }
.bms-status--pill { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }

.bms-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.bms-actions .bmd-btn { height: 46px; }
.bms-act-call { --_bg: var(--bm-primary); }
.bms-act-wa { --_bg: #1FAF55; --_bgh: #18994a; --_shadow: rgba(31, 175, 85, .5); }
.bms-show-sm { display: none; }

/* ---------- Offer band ---------- */
.bms-offer { position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 18px 22px; border-radius: 20px; color: #fff; background: linear-gradient(110deg, var(--bm-accent), #FF8A3D); box-shadow: 0 18px 36px -22px rgba(255, 94, 24, .9); }
.bms-offer::after { content: ''; position: absolute; top: 0; bottom: 0; width: 60px; left: -80px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); animation: bms-shine 4s ease-in-out infinite; }
.bms-offer__icon { flex: none; width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, .2); display: flex; align-items: center; justify-content: center; }
.bms-offer__body { flex: 1; min-width: 0; }
.bms-offer__body strong { font-size: 15px; font-weight: 800; }
.bms-offer__body p { margin: 2px 0 0; font-size: 14px; opacity: .95; line-height: 1.5; }
.bms-offer .bmd-btn { flex: none; position: relative; z-index: 1; }

/* ---------- Sticky in-page tabs ---------- */
.bms-tabs { position: sticky; top: 0; z-index: 1020; margin-top: 22px; background: rgba(247, 249, 252, .92); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--bm-line); transition: box-shadow .3s, background-color .3s; }
.bms-tabs.is-stuck { background: rgba(255, 255, 255, .96); box-shadow: 0 12px 24px -18px rgba(10, 37, 82, .35); }
.bms-tabs__row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.bms-tabs__row::-webkit-scrollbar { display: none; }
.bms-tab { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 15px 14px; font-size: 14.5px; font-weight: 700; color: var(--bm-muted) !important; text-decoration: none !important; white-space: nowrap; transition: color .2s; }
.bms-tab span { font-size: 11.5px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: var(--bm-line-soft); color: var(--bm-muted); transition: all .2s; }
.bms-tab::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--bm-primary); transform: scaleX(0); transition: transform .35s var(--bm-ease); }
.bms-tab:hover { color: var(--bm-ink) !important; }
.bms-tab.active { color: var(--bm-primary) !important; }
.bms-tab.active::after { transform: scaleX(1); }
.bms-tab.active span { background: var(--bm-primary-soft); color: var(--bm-primary); }

/* ---------- Layout ---------- */
.bms-body { padding-top: 24px; }
.bms-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 28px; align-items: start; }
.bms-main { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.bms-card { background: #fff; border-radius: 24px; border: 1px solid var(--bm-line-soft); padding: 26px; box-shadow: var(--bm-shadow-sm); }
.bms-section { scroll-margin-top: 160px; }
.bms-section__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.bms-section__head .bms-h2 { margin: 0; }
.bms-h2 { font-size: 22px; font-weight: 800; color: var(--bm-ink); letter-spacing: -.02em; margin: 0 0 14px; }
.bms-h3 { font-size: 16.5px; font-weight: 800; color: var(--bm-ink); margin: 0 0 14px; }

/* About */
.bms-about { position: relative; max-height: 150px; overflow: hidden; transition: max-height .5s var(--bm-ease); }
.bms-about p { margin: 0; font-size: 15px; line-height: 1.75; color: var(--bm-text); }
.bms-about:not(.is-open)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: linear-gradient(transparent, #fff); }
.bms-about.is-open { max-height: 2000px; }
.bms-more-link { margin-top: 8px; border: 0; background: none; padding: 0; color: var(--bm-primary); font: 700 14px var(--bm-font); cursor: pointer; }
.bms-more-link[hidden] { display: none; }

.bms-facts { list-style: none; margin: 20px 0 0; padding: 20px 0 0; border-top: 1px dashed var(--bm-line); display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.bms-facts li { display: flex; gap: 12px; align-items: center; min-width: 0; }
.bms-facts li > span { flex: none; width: 42px; height: 42px; border-radius: 13px; background: var(--bm-primary-soft); color: var(--bm-primary); display: flex; align-items: center; justify-content: center; }
.bms-facts li > div { min-width: 0; font-size: 14.5px; font-weight: 700; color: var(--bm-ink); line-height: 1.35; }
.bms-facts small { display: block; font-size: 12px; font-weight: 600; color: var(--bm-subtle); margin-bottom: 2px; }
.bms-facts a { color: var(--bm-ink); text-decoration: none; }
.bms-facts a:hover { color: var(--bm-primary); }

/* Products */
.bms-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.bms-product { display: flex; flex-direction: column; background: #fff; border-radius: 20px; border: 1px solid var(--bm-line-soft); overflow: hidden; transition: transform .4s var(--bm-ease), box-shadow .4s var(--bm-ease); }
.bms-product:hover { transform: translateY(-5px); box-shadow: var(--bm-shadow-lg); }
.bms-product__img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--bm-bg-soft); overflow: hidden; }
.bms-product__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--bm-ease); }
.bms-product:hover .bms-product__img img { transform: scale(1.06); }
.bms-product__off { position: absolute; top: 10px; left: 10px; background: var(--bm-accent); color: #fff; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 8px; }
.bms-product__body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bms-product__body h3 { margin: 0; font-size: 14.5px; font-weight: 700; line-height: 1.4; }
.bms-product__body h3 a { color: var(--bm-ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bms-product__body h3 a:hover { color: var(--bm-primary); }
.bms-product__price { display: flex; align-items: baseline; gap: 8px; }
.bms-product__price strong { font-size: 16px; font-weight: 800; color: var(--bm-ink); }
.bms-product__price del { font-size: 13px; color: var(--bm-subtle); }
.bms-product__btn { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; border-radius: 11px; border: 1.5px solid var(--bm-accent-soft); background: var(--bm-accent-soft); color: var(--bm-accent); font: 700 13.5px var(--bm-font); cursor: pointer; transition: all .25s; }
.bms-product__btn:hover { background: var(--bm-accent); color: #fff; }

/* Reviews summary */
.bms-rsum { display: grid; grid-template-columns: 150px minmax(0, 1fr) 210px; gap: 26px; align-items: center; padding: 20px; border-radius: 20px; background: var(--bm-bg-soft); }
.bms-rsum__score { text-align: center; }
.bms-rsum__score strong { display: block; font-size: 52px; line-height: 1; font-weight: 800; color: var(--bm-ink); letter-spacing: -.04em; }
.bms-rsum__score small { display: block; margin-top: 6px; font-size: 13px; color: var(--bm-muted); font-weight: 600; }
.bms-stars { display: inline-flex; gap: 2px; margin-top: 8px; }
.bms-star { color: #D5DCE6; display: inline-flex; }
.bms-star svg { fill: currentColor; stroke: none; }
.bms-star.is-full { color: #F5A524; }
.bms-star.is-half { color: #F5A524; opacity: .55; }
.bms-rsum__bars { display: flex; flex-direction: column; gap: 6px; }
.bms-bar { display: grid; grid-template-columns: 40px minmax(0, 1fr) 30px; align-items: center; gap: 10px; border: 0; background: none; padding: 3px 4px; border-radius: 8px; cursor: pointer; font: 700 13px var(--bm-font); color: var(--bm-ink); transition: background-color .2s; }
.bms-bar:hover:not([disabled]) { background: #fff; }
.bms-bar[disabled] { cursor: default; opacity: .6; }
.bms-bar__label { display: inline-flex; align-items: center; gap: 4px; }
.bms-bar__label svg { color: #F5A524; }
.bms-bar__track { height: 8px; border-radius: 8px; background: #E3E9F1; overflow: hidden; }
.bms-bar__fill { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, #F5A524, #FFC94D); transition: width 1.1s var(--bm-ease); }
.bms-rsum.is-in .bms-bar__fill { width: var(--w); }
.bms-rsum .bms-bar:nth-child(2) .bms-bar__fill { transition-delay: .08s; }
.bms-rsum .bms-bar:nth-child(3) .bms-bar__fill { transition-delay: .16s; }
.bms-rsum .bms-bar:nth-child(4) .bms-bar__fill { transition-delay: .24s; }
.bms-rsum .bms-bar:nth-child(5) .bms-bar__fill { transition-delay: .32s; }
.bms-bar__n { text-align: right; color: var(--bm-muted); font-weight: 600; }
.bms-rsum__rate { text-align: center; padding-left: 22px; border-left: 1px dashed var(--bm-line); }
.bms-rsum__rate p { margin: 0 0 8px; font-size: 13.5px; font-weight: 700; color: var(--bm-ink); }
.bms-rsum__rate small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--bm-muted); font-weight: 600; min-height: 18px; }
.bms-ratepick { display: inline-flex; gap: 2px; }
.bms-ratepick button, .bms-rm-stars button { border: 0; background: none; padding: 2px; color: #D5DCE6; cursor: pointer; transition: transform .3s var(--bm-spring), color .2s; }
.bms-ratepick button svg, .bms-rm-stars button svg { fill: currentColor; stroke: none; }
.bms-ratepick button.is-hover, .bms-rm-stars button.is-hover, .bms-rm-stars button.is-on { color: #F5A524; }
.bms-ratepick button:hover, .bms-rm-stars button:hover { transform: scale(1.2) rotate(-8deg); }

.bms-reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.bms-review { padding: 18px; border-radius: 18px; border: 1px solid var(--bm-line-soft); background: #fff; }
.bms-review--flat { border: 0; border-bottom: 1px solid var(--bm-line-soft); border-radius: 0; padding: 16px 4px; animation: bms-in .45s var(--bm-ease) backwards; animation-delay: calc(var(--i, 0) * 40ms); }
.bms-review__top { display: flex; align-items: center; gap: 12px; }
.bms-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--bm-primary), var(--bm-sky)); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.bms-review__who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bms-review__who strong { font-size: 14.5px; color: var(--bm-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bms-review__who small { font-size: 12px; color: var(--bm-subtle); font-weight: 600; }
.bms-review__text { margin: 10px 0 0; font-size: 14px; line-height: 1.65; color: var(--bm-text); white-space: pre-line; word-break: break-word; }
.bms-empty { text-align: center; padding: 26px 10px 6px; }
.bms-empty span { display: inline-flex; width: 58px; height: 58px; border-radius: 18px; align-items: center; justify-content: center; background: #FFF6E0; color: #F5A524; margin-bottom: 10px; animation: bms-bob 3s ease-in-out infinite; }
.bms-empty span svg { fill: currentColor; stroke: none; }
.bms-empty p { margin: 0; color: var(--bm-muted); font-size: 14.5px; }

/* Photos grid */
.bms-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.bms-photos__item { border: 0; padding: 0; aspect-ratio: 1; border-radius: 16px; overflow: hidden; cursor: zoom-in; background: #E9EEF5; }
.bms-photos__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--bm-ease); }
.bms-photos__item:hover img { transform: scale(1.08); }

/* Location */
.bms-loc-addr { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 14px; color: var(--bm-text); font-size: 14.5px; line-height: 1.55; }
.bms-loc-addr svg { flex: none; margin-top: 2px; color: var(--bm-accent); }
.bms-map { position: relative; height: 300px; border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, #E8F0FB, #F4F8FD); }
.bms-map::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(10, 37, 82, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(10, 37, 82, .05) 1px, transparent 1px); background-size: 28px 28px; }
.bms-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .5s; }
.bms-map.is-loaded iframe { opacity: 1; }
.bms-map__placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.bms-map.is-loaded .bms-map__placeholder { display: none; }
.bms-map__pin { color: var(--bm-accent); animation: bms-bob 2s ease-in-out infinite; filter: drop-shadow(0 8px 8px rgba(255, 94, 24, .35)); }

/* ---------- Sidebar ---------- */
.bms-side__sticky { position: sticky; top: calc(var(--bm-header-h) + 76px); display: flex; flex-direction: column; gap: 16px; }
.bms-side .bms-card { padding: 22px; }
.bms-contact__row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--bm-line-soft); }
.bms-contact__icon { flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--bm-primary-soft); color: var(--bm-primary); display: flex; align-items: center; justify-content: center; }
.bms-contact__val { flex: 1; min-width: 0; padding-top: 8px; font-size: 15px; font-weight: 800; color: var(--bm-ink) !important; text-decoration: none !important; word-break: break-word; }
.bms-contact__val--muted { font-size: 13.5px; font-weight: 600; color: var(--bm-muted) !important; line-height: 1.5; padding-top: 2px; }
a.bms-contact__val:hover { color: var(--bm-primary) !important; }
.bms-copy-btn { flex: none; width: 34px; height: 34px; margin-top: 2px; border-radius: 10px; border: 1px solid var(--bm-line); background: #fff; color: var(--bm-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s; }
.bms-copy-btn:hover { color: var(--bm-primary); border-color: var(--bm-primary); }
.bms-contact__btns { margin-top: 16px; }
.bms-contact__note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px 0 0; font-size: 12.5px; color: var(--bm-subtle); font-weight: 600; }

.bms-hours__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.bms-hours__head .bms-h3 { margin: 0; }
.bms-hours__list { list-style: none; margin: 0; padding: 0; }
.bms-hours__list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 10px; font-size: 14px; color: var(--bm-text); }
.bms-hours__list li > span:last-child { text-align: right; font-weight: 600; }
.bms-hours__list li.is-today { background: var(--bm-primary-soft); color: var(--bm-primary); font-weight: 800; }
.bms-hours__list li.is-today > span:last-child { font-weight: 800; }
.bms-hours__list em { font-style: normal; color: var(--bm-subtle); }
.bms-hours__list em.is-closed { color: var(--bm-danger-ink); font-weight: 700; }

.bms-social { display: flex; gap: 10px; flex-wrap: wrap; }
.bms-social a { width: 44px; height: 44px; border-radius: 14px; background: var(--bm-bg-soft); color: var(--bm-ink); display: flex; align-items: center; justify-content: center; transition: all .3s var(--bm-spring); }
.bms-social a:hover { background: var(--bm-primary); color: #fff; transform: translateY(-3px) rotate(-6deg); }

.bms-owner { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 20px; background: linear-gradient(135deg, #FFF4EC, #EEF4FF); border: 1px solid var(--bm-line-soft); }
.bms-owner > span { flex: none; width: 42px; height: 42px; border-radius: 13px; background: #fff; color: var(--bm-accent); display: flex; align-items: center; justify-content: center; box-shadow: var(--bm-shadow-sm); }
.bms-owner > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bms-owner strong { font-size: 14px; color: var(--bm-ink); }
.bms-owner small { font-size: 12px; color: var(--bm-muted); line-height: 1.45; }

/* ---------- Similar businesses ---------- */
.bms-similar { margin-top: 44px; }
.bms-similar__row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px; margin: 0 -4px; scrollbar-width: none; }
.bms-similar__row::-webkit-scrollbar { display: none; }
@media (min-width: 1200px) { .bms-similar__row { grid-auto-columns: calc((100% - 48px) / 4); } }
.bms-sim { scroll-snap-align: start; display: flex; gap: 14px; padding: 16px; border-radius: 20px; 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); min-width: 0; }
.bms-sim:hover { transform: translateY(-5px); box-shadow: var(--bm-shadow-lg); }
.bms-sim__logo { position: relative; flex: none; width: 58px; height: 58px; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, var(--bm-primary-soft), var(--bm-accent-soft)); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; color: var(--bm-primary); }
.bms-sim__logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; z-index: 1; }
.bms-sim__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.bms-sim__body strong { font-size: 15px; color: var(--bm-ink); display: flex; align-items: center; gap: 6px; min-width: 0; }
.bms-sim__body strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.bms-tick { display: inline-flex; width: 16px; height: 16px; border-radius: 50%; background: var(--bm-primary); color: #fff; align-items: center; justify-content: center; vertical-align: -2px; margin-left: 4px; }
.bms-sim__meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--bm-ink); }
.bms-sim__body small { font-size: 12.5px; color: var(--bm-muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Lightbox ---------- */
.bms-lightbox { position: fixed; inset: 0; z-index: 2147483000; background: #060F21; display: flex; flex-direction: column; opacity: 0; transition: opacity .25s var(--bm-ease); }
.bms-lightbox[hidden] { display: none; }
.bms-lightbox.is-open { opacity: 1; }
.bms-lightbox__top { display: flex; align-items: center; gap: 14px; padding: 14px 18px; color: #fff; }
.bms-lightbox__title { flex: 1; min-width: 0; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bms-lightbox__count { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.bms-lightbox__close { width: 42px; height: 42px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .3s var(--bm-spring), background-color .2s; }
.bms-lightbox__close:hover { background: rgba(255, 255, 255, .22); transform: rotate(90deg); }
.bms-lightbox__stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 70px; touch-action: pan-y; }
.bms-lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; user-select: none; }
.bms-lightbox__stage img.is-in { animation: bms-zoom .4s var(--bm-ease); }
.bms-lightbox__nav { position: absolute; top: 50%; width: 50px; height: 50px; margin-top: -25px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .2s, transform .3s var(--bm-spring); }
.bms-lightbox__nav:hover { background: rgba(255, 255, 255, .26); }
.bms-lightbox__nav.is-prev { left: 14px; }
.bms-lightbox__nav.is-prev svg { transform: rotate(180deg); }
.bms-lightbox__nav.is-next { right: 14px; }
.bms-lightbox__thumbs { display: flex; gap: 8px; padding: 14px 18px 18px; overflow-x: auto; justify-content: safe center; scrollbar-width: none; }
.bms-lightbox__thumbs::-webkit-scrollbar { display: none; }
.bms-lightbox__thumbs button { flex: none; width: 66px; height: 50px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; opacity: .5; cursor: pointer; background: #222; transition: opacity .2s, border-color .2s; }
.bms-lightbox__thumbs button.active { opacity: 1; border-color: #fff; }
.bms-lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Review modals ---------- */
.bms-rm-stars { display: flex; justify-content: center; gap: 6px; margin: 4px 0 6px; }
.bms-rm-stars button.bms-pop { animation: bms-pop .45s var(--bm-spring); }
.bms-rm-stars.bms-shake { animation: bmd-shake .4s var(--bm-ease); }
.bms-rm-hint { text-align: center; margin: 0 0 16px; font-size: 14px; font-weight: 700; color: var(--bm-subtle); transition: color .2s; }
.bms-rm-hint.is-set { color: #D98A00; }
.bms-rv-score { flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--bm-success-ink); color: #fff; font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.bms-rv-tools { padding: 8px 26px 12px; border-bottom: 1px solid var(--bm-line-soft); display: flex; flex-direction: column; gap: 10px; }
.bms-rv-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.bms-rv-chip { height: 32px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--bm-line); background: #fff; font: 700 12.5px var(--bm-font); color: var(--bm-ink); cursor: pointer; transition: all .2s; }
.bms-rv-chip:hover { border-color: var(--bm-primary); color: var(--bm-primary); }
.bms-rv-chip.active { background: var(--bm-ink); border-color: var(--bm-ink); color: #fff; }
.bms-rv-sort { margin-left: auto; height: 32px; border-radius: 10px; border: 1.5px solid var(--bm-line); padding: 0 10px; font: 700 12.5px var(--bm-font); color: var(--bm-ink); background: #fff; }
.bms-rv-list { padding: 4px 26px 20px !important; max-height: 60vh; }
.bms-rv-empty { text-align: center; color: var(--bm-muted); padding: 30px 0; margin: 0; }

/* ---------- Phone action bar ---------- */
.bms-bar-mobile { display: none; }

/* ---------- Keyframes ---------- */
@keyframes bms-ping { 0% { opacity: .8; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes bms-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes bms-shine { 0%, 60% { left: -80px; } 100% { left: 110%; } }
@keyframes bms-wiggle { 0%, 90%, 100% { transform: rotate(0); } 93% { transform: rotate(-4deg); } 96% { transform: rotate(4deg); } }
@keyframes bms-zoom { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes bms-pop { 0% { transform: scale(1); } 40% { transform: scale(1.45) rotate(-10deg); } 100% { transform: scale(1); } }
@keyframes bms-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .bms-layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 22px; }
  .bms-rsum { grid-template-columns: 130px minmax(0, 1fr); }
  .bms-rsum__rate { grid-column: 1 / -1; padding: 16px 0 0; border-left: 0; border-top: 1px dashed var(--bm-line); }

  .bms-bar-mobile { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 1034; gap: 6px; padding: 8px; border-radius: 22px; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 18px 40px -16px rgba(10, 37, 82, .45); border: 1px solid var(--bm-line-soft); transform: translateY(140%); transition: transform .45s var(--bm-ease); }
  .bms-bar-mobile.is-shown { transform: none; }
  .bms-bar-mobile__btn { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 52px; border-radius: 15px; border: 0; background: var(--bm-bg-soft); color: var(--bm-ink) !important; font: 700 11.5px var(--bm-font); text-decoration: none !important; cursor: pointer; transition: transform .25s var(--bm-spring); }
  .bms-bar-mobile__btn:active { transform: scale(.94); }
  .bms-bar-mobile__btn.is-call { background: var(--bm-primary); color: #fff !important; }
  .bms-bar-mobile__btn.is-wa { background: #E9FBF0; color: #128C4B !important; }
  .bms-bar-mobile__btn.is-enq { background: var(--bm-accent-soft); color: var(--bm-accent) !important; }
}
@media (max-width: 991px) {
  .bms-layout { grid-template-columns: minmax(0, 1fr); }
  .bms-side__sticky { position: static; display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .bms-side .bms-owner { grid-column: 1 / -1; }
  .bms-gallery { height: 320px; }
}
@media (max-width: 767px) {
  .bms { padding-top: 12px; }
  .bms-crumbs ol { font-size: 12px; margin-bottom: 12px; }

  .bms-gallery { display: none; }
  .bms-gallery-wrap { padding: 0; }
  .bms-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; height: 250px; background: #E9EEF5; }
  .bms-strip::-webkit-scrollbar { display: none; }
  .bms-strip__item { flex: 0 0 100%; scroll-snap-align: center; border: 0; padding: 0; height: 100%; }
  .bms-strip__item img { width: 100%; height: 100%; object-fit: cover; }
  .bms-strip__count { position: absolute; right: 14px; bottom: 54px; z-index: 1; padding: 4px 10px; border-radius: 999px; background: rgba(10, 37, 82, .65); color: #fff; font-size: 12px; font-weight: 700; }
  .bms-offer-flag { display: none; }

  .bms-head { flex-direction: column; gap: 14px; margin: -40px 12px 0; padding: 18px; border-radius: 22px; }
  .bms-head--solo { margin: 0; }
  .bms-head__logo { width: 76px; height: 76px; border-radius: 20px; margin-top: -54px; box-shadow: 0 0 0 4px #fff, var(--bm-shadow); }
  .bms-head--solo .bms-head__logo { margin-top: 0; }
  .bms-head__logo span { font-size: 26px; }
  .bms-head__name { font-size: 24px; }
  .bms-head__addr { font-size: 13.5px; }
  .bms-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .bms-actions .bmd-btn { height: 46px; padding: 0 10px; font-size: 14px; }
  .bms-actions .bmd-btn--icon { width: auto; }
  .bms-hide-sm { display: none; }
  .bms-show-sm { display: inline; }

  .bms-offer { flex-wrap: wrap; padding: 16px; }
  .bms-offer .bmd-btn { width: 100%; }

  .bms-tabs { margin-top: 16px; }
  .bms-tab { padding: 13px 10px; font-size: 13.5px; }
  .bms-body { padding-top: 16px; }
  .bms-main { gap: 16px; }
  .bms-card { padding: 18px; border-radius: 20px; }
  .bms-h2 { font-size: 19px; }
  .bms-section__head .bmd-btn { width: 100%; }

  .bms-rsum { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .bms-rsum__score { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; text-align: left; align-items: center; }
  .bms-rsum__score strong { grid-row: span 2; font-size: 44px; }
  .bms-stars { margin-top: 0; }
  .bms-rsum__score small { margin-top: 0; }
  .bms-reviews { grid-template-columns: 1fr; }
  .bms-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bms-product__body { padding: 10px; }
  .bms-product__body h3 { font-size: 13.5px; }
  .bms-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .bms-photos__item { border-radius: 12px; }
  .bms-map { height: 240px; }

  .bms-side__sticky { grid-template-columns: 1fr; }
  .bms-similar { margin-top: 32px; }
  .bms-similar__row { grid-auto-columns: 84%; }
  .bms-rv-tools, .bms-rv-list { padding-left: 18px !important; padding-right: 18px !important; }

  .bms-lightbox__stage { padding: 0 6px; }
  .bms-lightbox__nav { display: none; }
  body.bms-has-bar .bms { padding-bottom: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  .bms-offer::after, .bms-offer-flag, .bms-status__dot::after, .bms-map__pin, .bms-empty span { animation: none !important; }
}
