/* Widget: business-showcase — featured slider / top list / grid of marketplace businesses.
   Themeable through the shared tokens (--primary-color, --surface, --text, --text-muted,
   --border-color, --w-radius, --w-font). RTL-first: logical properties only. */
.bsw, .bsw * { box-sizing: border-box; }
.bsw {
    --bsw-accent: var(--primary-color, #6366f1);
    --bsw-danger: #ff5d60;
    --bsw-radius: var(--w-radius, var(--border-radius, 14px));
    --bsw-surface: var(--surface, #fff);
    --bsw-text: var(--text, #1f2430);
    --bsw-muted: var(--text-muted, #6b7280);
    --bsw-border: var(--border-color, rgba(0,0,0,.08));
    font-family: var(--w-font, var(--font-body));
    color: var(--bsw-text);
    margin-block: 1rem;
}

/* ── Header ── */
.bsw-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block-end: 16px; }
.bsw-header__text { min-width: 0; }
.bsw-title {
    position: relative; margin: 0; padding-inline-start: 12px;
    font-size: 1.1rem; font-weight: 800; color: var(--bsw-text); line-height: 1.5;
}
.bsw-title::before {
    content: ""; position: absolute; inset-inline-start: 0; inset-block: 18% ; width: 4px;
    border-radius: 4px; background: var(--bsw-accent);
}
.bsw-subtitle { margin: 2px 0 0; padding-inline-start: 12px; font-size: .82rem; color: var(--bsw-muted); }
.bsw-viewall {
    display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0;
    font-size: .85rem; font-weight: 600; color: var(--bsw-accent); text-decoration: none; white-space: nowrap;
}
.bsw-viewall:hover { filter: brightness(.9); color: var(--bsw-accent); }
.bsw-viewall svg { transition: transform .2s; }
.bsw-viewall:hover svg { transform: translateX(-3px); }

/* ── Card shell ── */
.bsw-card {
    position: relative; display: flex; flex-direction: column; height: 100%;
    background: var(--bsw-surface); border-radius: var(--bsw-radius); overflow: hidden;
    border: 1px solid var(--bsw-border); box-shadow: 0 2px 12px rgba(0,0,0,.05);
    transition: box-shadow .25s, transform .25s;
}
.bsw-card:hover { box-shadow: 0 10px 28px rgba(0,0,0,.12); transform: translateY(-3px); }
.bsw-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #e5e7eb; }
.bsw-media__link { position: absolute; inset: 0; display: block; }
.bsw-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.bsw-card:hover .bsw-img { transform: scale(1.05); }

/* Placeholder when a business has no image: tinted gradient + initial */
.bsw-ph {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, hsl(var(--bsw-h) 62% 52%), hsl(calc(var(--bsw-h) + 40) 70% 38%));
}
.bsw-ph__letter { font-size: 3.4rem; font-weight: 800; color: rgba(255,255,255,.85); line-height: 1; text-shadow: 0 4px 18px rgba(0,0,0,.25); }

/* Ribbon (تخفیف ویژه) — flush with the inline-start edge */
.bsw-ribbons { position: absolute; inset-block-start: 12px; inset-inline-start: 0; z-index: 2; pointer-events: none; }
.bsw-ribbon {
    display: inline-block; padding: 4px 12px; font-size: .72rem; font-weight: 700; color: #fff;
    background: var(--bsw-danger); border-start-end-radius: 8px; border-end-end-radius: 8px;
    box-shadow: 0 3px 10px rgba(255,93,96,.4);
}

/* Name + rating + price over the image (slide layout) */
.bsw-overlay {
    position: absolute; inset-inline: 0; inset-block-end: 0; z-index: 2; pointer-events: none;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
    padding: 36px 14px 12px; color: #fff;
    background: linear-gradient(to top, rgba(8,12,24,.88) 0%, rgba(8,12,24,.55) 55%, transparent 100%);
}
.bsw-overlay a { pointer-events: auto; }
.bsw-overlay__main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bsw-overlay__side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; text-align: end; }
.bsw-overlay .bsw-name { color: #fff; font-size: 1.02rem; }
.bsw-overlay .bsw-address { color: rgba(255,255,255,.78); }
.bsw-overlay .bsw-price { color: rgba(255,255,255,.85); }
.bsw-overlay .bsw-price-value { color: #fff; }
.bsw-overlay .bsw-score { color: #fde047; background: rgba(255,255,255,.14); }

.bsw-name {
    font-weight: 800; font-size: .98rem; color: var(--bsw-text); text-decoration: none; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.bsw-name:hover { color: var(--bsw-accent); }
.bsw-overlay .bsw-name:hover { color: #fff; text-decoration: underline; }
.bsw-address {
    font-size: .78rem; color: var(--bsw-muted);
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}

/* Score chip */
.bsw-score {
    display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px;
    font-size: .78rem; font-weight: 700; color: #b45309; background: rgba(250,204,21,.18);
}
.bsw-score svg { flex-shrink: 0; }

/* Price */
.bsw-price { font-size: .78rem; color: var(--bsw-muted); white-space: nowrap; }
.bsw-price-value { font-size: .95rem; font-weight: 800; color: var(--bsw-text); }
.bsw-price small { font-size: .72rem; }

/* ── Card layout (vertical list + grid) ── */
.bsw-card--card .bsw-media__caption {
    position: absolute; inset-inline: 0; inset-block-end: 0; z-index: 2; pointer-events: none;
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 28px 14px 10px; color: #fff;
    background: linear-gradient(to top, rgba(8,12,24,.8), transparent);
}
.bsw-card--card .bsw-media__caption a { pointer-events: auto; color: #fff; }
.bsw-card--card .bsw-media__caption .bsw-score { color: #fde047; background: rgba(255,255,255,.16); }
.bsw-body { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 14px; flex: 1; }
.bsw-address--body { display: flex; align-items: center; gap: 6px; margin: 0; }
.bsw-address--body svg { flex-shrink: 0; color: var(--bsw-accent); }
.bsw-address--body span { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.bsw-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.bsw-badge {
    display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 8px;
    font-size: .72rem; font-weight: 700; border: 1px solid currentColor; background: transparent;
}
.bsw-badge--primary { color: var(--bsw-accent); }
.bsw-badge--danger { color: var(--bsw-danger); }
.bsw-foot { margin-block-start: auto; display: flex; flex-direction: column; gap: 10px; }
.bsw-cta {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 14px; border-radius: calc(var(--bsw-radius) - 4px);
    font-size: .85rem; font-weight: 700; text-decoration: none;
    color: var(--bsw-accent); border: 1px solid var(--bsw-accent); background: transparent;
    transition: background .2s, color .2s;
}
.bsw-cta:hover { background: var(--bsw-accent); color: var(--on-primary, #fff); }
.bsw-cta svg { transition: transform .2s; }
.bsw-cta:hover svg { transform: translateX(-3px); }

/* ── Layout containers ── */
.bsw-stack { display: flex; flex-direction: column; gap: 18px; }
.bsw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }

/* Slider (owl) */
.bsw--carousel .bsw-owl .item { height: 100%; }
/* global `.owl-carousel .item{display:flex}` would shrink the all-absolute card to 0 width */
.bsw--carousel .bsw-owl .item > .bsw-card { flex: 1 1 100%; width: 100%; min-width: 0; }
.bsw--carousel .bsw-media { aspect-ratio: 16 / 9; }
.bsw--carousel .bsw-card { border: 0; }
.bsw--carousel .bsw-owl .owl-nav button.owl-prev,
.bsw--carousel .bsw-owl .owl-nav button.owl-next {
    position: absolute; inset-block-start: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; border-radius: 50%; border: 0;
    background: rgba(255,255,255,.92) !important; color: #111 !important; box-shadow: 0 4px 14px rgba(0,0,0,.2);
    display: flex; align-items: center; justify-content: center; z-index: 5;
}
.bsw--carousel .bsw-owl .owl-nav button.owl-prev { inset-inline-start: 8px; }
.bsw--carousel .bsw-owl .owl-nav button.owl-next { inset-inline-end: 8px; }
.bsw--carousel .bsw-owl .owl-nav button.disabled { opacity: .35; }
.bsw--carousel .bsw-owl .owl-dots { text-align: center; margin-block-start: 10px; }
.bsw--carousel .bsw-owl .owl-dot span {
    display: block; width: 8px; height: 8px; margin: 0 3px; border-radius: 50%; background: var(--bsw-border); transition: all .2s;
}
.bsw--carousel .bsw-owl .owl-dot.active span { width: 22px; border-radius: 6px; background: var(--bsw-accent); }

/* ── Responsive ── */
@media (max-width: 767.98px) {
    .bsw-title { font-size: 1rem; }
    .bsw-grid { grid-template-columns: 1fr; gap: 14px; }
    .bsw-stack { gap: 14px; }
    .bsw-overlay { padding: 28px 12px 10px; }
    .bsw-overlay .bsw-name { font-size: .95rem; }
    .bsw-ph__letter { font-size: 2.6rem; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    .bsw-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .bsw-card, .bsw-img, .bsw-cta svg, .bsw-viewall svg { transition: none; }
}

/* ── Marquee variant: compact horizontal cards in two opposite-moving rows ── */
.bsw--marquee .bsw-header { margin-block-end: 12px; }
.bsw-card--mini {
    flex-direction: row; align-items: center; gap: 12px; width: 288px; height: auto;
    padding: 10px; border-radius: var(--bsw-radius); box-shadow: 0 1px 6px rgba(0,0,0,.05);
}
.bsw-card--mini:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.1); }
.bsw-mini__tile {
    position: relative; flex: 0 0 64px; width: 64px; height: 64px; display: block;
    border-radius: calc(var(--bsw-radius) - 4px); overflow: hidden; background: #e5e7eb;
}
.bsw-mini__tile .bsw-img { position: absolute; inset: 0; }
.bsw-mini__tile .bsw-ph__letter { font-size: 1.8rem; }
.bsw-mini__body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.bsw-mini__body .bsw-name { font-size: .92rem; line-height: 1.4; }
.bsw-mini__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; }
.bsw-mini__meta .bsw-score { padding: 1px 7px; font-size: .72rem; }
.bsw-mini__meta .bsw-score svg { width: 13px; height: 13px; }
.bsw-mini__meta .bsw-badge { padding: 1px 7px; font-size: .68rem; border-radius: 6px; }
@media (max-width: 767.98px) {
    .bsw-card--mini { width: 236px; gap: 10px; padding: 8px; }
    .bsw-mini__tile { flex-basis: 54px; width: 54px; height: 54px; }
}

/* Shared "two-row marquee" shell used by business-showcase/marquee and product-carousel/marquee.
   Rows are natively scrollable (overflow-x:auto, hidden scrollbar); initMarquees() drives the auto-motion
   through scrollLeft (row 1 forward, row 2 backward). Tracks are dir="ltr" so scrollLeft semantics are
   identical in RTL pages; cards restore dir="rtl". Works without JS as a plain swipeable strip. */
.pbm { --pbm-gap: 12px; display: flex; flex-direction: column; gap: var(--pbm-gap); min-width: 0; }
.pbm-row {
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
    scrollbar-width: none; -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    /* soft edge fade so items glide in/out instead of being cut */
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
    cursor: grab;
}
.pbm-row::-webkit-scrollbar { display: none; }
.pbm-row.is-dragging { cursor: grabbing; user-select: none; }
.pbm-row.is-dragging a { pointer-events: none; }
.pbm-track { display: flex; width: max-content; padding-block: 4px; }
.pbm-set { display: flex; flex-shrink: 0; gap: var(--pbm-gap); padding-inline-end: var(--pbm-gap); }
.pbm-item { flex: 0 0 auto; display: flex; }
.pbm-item > * { flex: 1 1 auto; }

@media (max-width: 767.98px) {
    .pbm { --pbm-gap: 10px; }
    .pbm-row {
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
                mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
    }
}

/* ════════════════════════════════════════════════════════════
   Marketplace "reference" look: glass title bars, rating badge, tabbed two-row scroller,
   tall business cards, amazing-offer card. Shapes only; colors come from the site tokens.
   ════════════════════════════════════════════════════════════ */
.bsw { --bsw-glass: rgba(255,255,255,.74); --bsw-line: #e5e7eb; }

/* rating badge (top, inline-end = left in RTL) */
.bsw-rate {
    position: absolute; inset-block-start: 10px; inset-inline-end: 10px; z-index: 3;
    display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 8px;
    font-size: .78rem; color: #1f2430; background: rgba(255,255,255,.82);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.bsw-rate svg { color: #1ec8d6; }
.bsw-rate b { font-weight: 800; }

/* glass title bar (bottom of cover) */
.bsw-glass {
    position: absolute; inset-inline: 10px; inset-block-end: 10px; z-index: 3;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 9px 12px; border-radius: 10px; text-decoration: none; color: #1f2430;
    background: var(--bsw-glass); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.bsw-glass .bsw-name { color: #1f2430; font-size: .95rem; flex: 1 1 auto; min-width: 0; }
.bsw-glass:hover .bsw-name { color: var(--bsw-accent); }
.bsw-glass__chev { flex-shrink: 0; color: #1f2430; }
.bsw-glass .bsw-price { color: #1f2430; font-size: .74rem; flex-shrink: 0; }
.bsw-glass .bsw-price-value { font-size: .9rem; }

/* ── Tall business card (grid / vertical / offer) ── */
.bsw-card--card { border-radius: 16px; border: 1px solid var(--bsw-line); box-shadow: none; }
.bsw-card--card:hover { transform: none; box-shadow: 0 6px 20px rgba(16,24,40,.08); }
.bsw-card--card .bsw-media { aspect-ratio: 16 / 10.5; border-radius: 0; }
.bsw-card--card .bsw-body { padding: 14px; gap: 9px; }
.bsw-card--card .bsw-address--body { color: var(--bsw-muted); font-size: .8rem; line-height: 1.7; }
.bsw-card--card .bsw-address--body b { color: var(--bsw-text); }
.bsw-card--card .bsw-address--body span { -webkit-line-clamp: 2; }
.bsw-card--card .bsw-badge { border-radius: 6px; padding: 2px 9px; background: transparent; }
.bsw-card--card .bsw-badge--danger { background: rgba(255,93,96,.07); }
.bsw-card--card .bsw-badge--primary { background: color-mix(in srgb, var(--bsw-accent) 8%, transparent); }
.bsw-card--card .bsw-price { font-size: .85rem; color: var(--bsw-text); }
.bsw-card--card .bsw-price-value { font-size: 1rem; }
.bsw-card--card .bsw-cta {
    position: relative; justify-content: center; padding: 10px 14px; border-radius: 10px;
    color: var(--bsw-text); border: 1px solid #d9dce1; background: #fff; font-weight: 800;
}
.bsw-card--card .bsw-cta:hover { background: color-mix(in srgb, var(--bsw-accent) 8%, #fff); color: var(--bsw-accent); border-color: var(--bsw-accent); }
.bsw-cta > svg:last-child { position: absolute; inset-inline-end: 14px; }
.bsw-card--card .bsw-foot { gap: 9px; }
.bsw--grid .bsw-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.bsw--vertical .bsw-stack { gap: 16px; }
.pb-panel .bsw-header { margin-block-end: 14px; }
.pb-panel .bsw-title { padding-inline-start: 0; font-size: 1.05rem; }
.pb-panel .bsw-title::before { display: none; }

/* ── Tabbed two-row scroller ── */
.bsw--tabs { margin-block: 0; }
.bsw-tabs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-inline: 4px; margin-block-end: -1px; }
.bsw-tabs::-webkit-scrollbar { display: none; }
.bsw-tab {
    position: relative; flex: 0 0 auto; min-width: 96px; padding: 12px 28px 14px; border: 0; cursor: pointer;
    font: inherit; font-size: .9rem; font-weight: 600; color: var(--bsw-text);
    background: rgba(255,255,255,.7); border-radius: 12px 12px 0 0; transition: background .2s, color .2s;
}
.bsw-tab:hover { background: #fff; }
.bsw-tab.is-active { background: #fff; color: var(--bsw-text); font-weight: 800; }
.bsw-tab.is-active::after {
    content: ""; position: absolute; inset-inline: 10px; inset-block-end: 4px; height: 4px; border-radius: 4px; background: var(--bsw-accent);
}
.bsw-tab:focus-visible { outline: 2px solid var(--bsw-accent); outline-offset: -2px; }
.bsw-subbar { background: #fff; border-radius: 12px; padding: 12px 18px; margin-block-end: 10px; min-height: 46px; display: flex; align-items: center; }
.bsw-subbar__link { display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--bsw-accent); text-decoration: none; }
.bsw-subbar__link[hidden] { display: none; }
.bsw-pane { display: none; }
.bsw-pane.is-active { display: block; }
.bsw--tabs .pbm { --pbm-gap: 10px; }
.bsw--tabs .pbm-row { -webkit-mask-image: none; mask-image: none; }
.bsw--tabs .pbm-track { padding-block: 0; }

/* scroller card ~310x150 */
.bsw-card--scroll {
    position: relative; display: block; width: 310px; height: 150px; border: 0; border-radius: 14px;
    background: #e5e7eb; box-shadow: 0 1px 4px rgba(16,24,40,.08);
}
.bsw-card--scroll:hover { transform: none; box-shadow: 0 4px 14px rgba(16,24,40,.14); }
.bsw-scroll__link { position: absolute; inset: 0; display: block; }
.bsw-card--scroll .bsw-img { position: absolute; inset: 0; }
.bsw-chips { position: absolute; inset-block-start: 10px; inset-inline-start: 10px; z-index: 3; display: flex; gap: 6px; align-items: center; pointer-events: none; }
.bsw-chip {
    display: inline-flex; align-items: center; justify-content: center; min-height: 26px; padding: 0 9px; border-radius: 7px;
    font-size: .7rem; font-weight: 700; border: 1px solid currentColor; background: rgba(255,255,255,.9);
}
.bsw-chip--primary { color: var(--bsw-accent); width: 30px; padding: 0; background: color-mix(in srgb, var(--bsw-accent) 14%, #fff); }
.bsw-chip--danger { color: var(--bsw-danger); background: #fff0f0; }
.bsw-glass--row { pointer-events: none; }

/* ── Amazing-offer card ── */
.bsw--offer { margin-block: 0; }
.bsw-offer { overflow: hidden; }
.bsw-offer .bsw-media { aspect-ratio: 16 / 9; }
.bsw-corner { position: absolute; inset-block-start: 0; inset-inline-start: 0; width: 112px; height: 112px; overflow: hidden; z-index: 4; pointer-events: none; }
.bsw-corner span {
    position: absolute; inset-block-start: 20px; inset-inline-start: -34px; width: 150px; padding: 4px 0; text-align: center;
    font-size: .72rem; font-weight: 800; color: #fff; background: var(--bsw-danger); transform: rotate(-45deg); box-shadow: 0 2px 6px rgba(255,93,96,.4);
}
.bsw-corner span:dir(rtl) { transform: rotate(45deg); }
.bsw-offer__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.bsw-old { font-size: .78rem; color: var(--bsw-muted); }
.bsw-cd { display: flex; gap: 8px; justify-content: space-between; padding: 8px; border-radius: 12px; background: #f1f2f4; direction: rtl; }
.bsw-cd__box {
    flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px 2px;
    border-radius: 9px; background: #3a2b31; border: 1px solid var(--bsw-danger); color: var(--bsw-danger);
}
.bsw-cd__box b { font-size: 1.25rem; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.bsw-cd__box small { font-size: .66rem; color: #f3b4b6; }
.bsw-cta--solid, .bsw-card--card .bsw-cta.bsw-cta--solid { background: var(--bsw-accent); color: var(--on-primary, #fff); border-color: var(--bsw-accent); }
.bsw-cta--solid:hover, .bsw-card--card .bsw-cta.bsw-cta--solid:hover { filter: brightness(1.08); background: var(--bsw-accent); color: var(--on-primary, #fff); }
.bsw-offer__all { display: inline-flex; align-items: center; gap: 6px; margin-block-start: 14px; font-size: .85rem; font-weight: 700; color: var(--bsw-accent); text-decoration: none; }

/* ── Mobile ── */
@media (max-width: 575.98px) {
    .bsw-card--scroll { width: 270px; height: 140px; }
    .bsw-tab { min-width: 84px; padding: 10px 18px 12px; }
    /* tall cards become horizontal: text on the inline-start, image on the inline-end */
    .bsw--grid .bsw-card--card, .bsw--vertical .bsw-card--card { display: grid; grid-template-columns: 1fr 42%; align-items: start; }
    .bsw--grid .bsw-card--card .bsw-media, .bsw--vertical .bsw-card--card .bsw-media {
        grid-column: 2; grid-row: 1 / span 3; aspect-ratio: auto; height: 100%; min-height: 150px;
    }
    .bsw--grid .bsw-card--card .bsw-glass, .bsw--vertical .bsw-card--card .bsw-glass { display: none; }
    .bsw--grid .bsw-card--card .bsw-body, .bsw--vertical .bsw-card--card .bsw-body,
    .bsw--grid .bsw-card--card .bsw-foot, .bsw--vertical .bsw-card--card .bsw-foot { display: contents; }
    .bsw--grid .bsw-card--card .bsw-address--body, .bsw--vertical .bsw-card--card .bsw-address--body { grid-column: 1; margin: 12px 12px 0; }
    .bsw--grid .bsw-card--card .bsw-badges, .bsw--vertical .bsw-card--card .bsw-badges { grid-column: 1; margin: 8px 12px 0; }
    .bsw--grid .bsw-card--card .bsw-price, .bsw--vertical .bsw-card--card .bsw-price { grid-column: 1; margin: 8px 12px 12px; }
    .bsw--grid .bsw-card--card .bsw-cta, .bsw--vertical .bsw-card--card .bsw-cta { grid-column: 1 / -1; margin: 0 12px 12px; }
    .bsw-offer .bsw-media { aspect-ratio: 16 / 8; }
}
@media (prefers-reduced-motion: reduce) { .bsw-tab { transition: none; } }
.bsw-name--body { display: none; }
@media (max-width: 575.98px) {
    .bsw--grid .bsw-card--card .bsw-name--body, .bsw--vertical .bsw-card--card .bsw-name--body { display: -webkit-box; grid-column: 1; margin: 12px 12px -2px; font-size: .92rem; }
    .bsw--grid .bsw-card--card .bsw-address--body, .bsw--vertical .bsw-card--card .bsw-address--body { margin-block-start: 0; }
}

/* ── Storefront service card (x-front.service-card): search / category / business pages ── */
.bsw--catalog { margin: 0; min-width: 0; display: flex; }
.bsw--catalog > .bsw-card { flex: 1; width: 100%; }
.cp-grid--grid_6:has(> .bsw--catalog) { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
/* list view: horizontal card at every width (same anatomy as the homepage's mobile card) */
.cp-grid--list > .bsw--catalog .bsw-card--card { display: grid; grid-template-columns: 1fr 34%; align-items: start; }
.cp-grid--list > .bsw--catalog .bsw-card--card .bsw-media { grid-column: 2; grid-row: 1 / span 4; aspect-ratio: auto; height: 100%; min-height: 170px; }
.cp-grid--list > .bsw--catalog .bsw-card--card .bsw-glass { display: none; }
.cp-grid--list > .bsw--catalog .bsw-card--card .bsw-body,
.cp-grid--list > .bsw--catalog .bsw-card--card .bsw-foot { display: contents; }
.cp-grid--list > .bsw--catalog .bsw-card--card .bsw-name--body { display: -webkit-box; grid-column: 1; margin: 14px 16px 0; font-size: 1rem; }
.cp-grid--list > .bsw--catalog .bsw-card--card .bsw-address--body { grid-column: 1; margin: 6px 16px 0; }
.cp-grid--list > .bsw--catalog .bsw-card--card .bsw-badges { grid-column: 1; margin: 8px 16px 0; }
.cp-grid--list > .bsw--catalog .bsw-card--card .bsw-price { grid-column: 1; margin: 8px 16px; }
.cp-grid--list > .bsw--catalog .bsw-card--card .bsw-cta { grid-column: 1; margin: 0 16px 16px; }
@media (max-width: 991.98px) {
    .cp-grid--grid_6:has(> .bsw--catalog) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    .cp-grid--grid_4:has(> .bsw--catalog), .cp-grid--grid_6:has(> .bsw--catalog) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .cp-grid:has(> .bsw--catalog) { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
