@import url('../../lib/vazirmatn/Vazirmatn-font-face.css');

:root {
    --bf-red: #cc2131;
    --bf-red-dark: #a91a28;
    --bf-dark: #2c292d;
    --bf-darker: #1f1d20;
    --bf-text: #2c292d;
    --bf-muted: #666;
    --bf-light: #f5f5f5;
    --bf-border: #e6e6e6;
    --bf-radius: 12px;
    --bf-header-h: 76px;
}

html { scroll-behavior: smooth; }
body { font-family: Vazirmatn, Tahoma, sans-serif; color: var(--bf-text); background: #fff; font-size: 15px; line-height: 1.9; overflow-x: clip; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--bf-red); }
img { max-width: 100%; }
.container-bf { max-width: 1440px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 1200px) { .container-bf { padding-inline: 48px; } }

/* ---------- buttons ---------- */
.btn-bf { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 2.2rem; border-radius: 999px; font-weight: 600; font-size: .95rem; border: 1.5px solid transparent; transition: all .25s; line-height: 1.4; cursor: pointer; }
.btn-bf-red { background: var(--bf-red); color: #fff; }
.btn-bf-red:hover { background: var(--bf-red-dark); color: #fff; }
.btn-bf-dark { background: var(--bf-dark); color: #fff; }
.btn-bf-dark:hover { background: #000; color: #fff; }
.btn-bf-outline { border-color: var(--bf-dark); color: var(--bf-dark); background: transparent; }
.btn-bf-outline:hover { background: var(--bf-dark); color: #fff; }
.btn-bf-white { background: #fff; color: var(--bf-dark); }
.btn-bf-white:hover { background: var(--bf-red); color: #fff; }
.btn-bf-sm { padding: .5rem 1.4rem; font-size: .85rem; }

/* ---------- announcement ---------- */
.bf-announce { background: var(--bf-darker); color: #d9d9d9; font-size: .82rem; }
.bf-announce .container-bf { display: flex; align-items: center; min-height: 38px; gap: 1.5rem; }
.bf-announce a:hover { color: #fff; }
.bf-announce .links { display: flex; gap: 1.25rem; margin-inline-start: auto; }

/* ---------- header ---------- */
.bf-header { position: sticky; top: 0; z-index: 1030; background: var(--bf-dark); color: #fff; transition: box-shadow .2s; }
.bf-header.scrolled { box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.bf-header .container-bf { display: flex; align-items: center; height: var(--bf-header-h); gap: 2rem; }
.bf-logo img { height: 44px; width: auto; display: block; }
.bf-nav { display: flex; align-items: stretch; height: 100%; margin: 0; padding: 0; list-style: none; }
.bf-nav > li { position: static; display: flex; align-items: center; }
.bf-nav > li.has-dropdown { position: relative; }
.bf-nav > li > a { display: flex; align-items: center; gap: .3rem; padding: 0 1rem; height: 100%; font-weight: 500; font-size: .95rem; color: #fff; }
.bf-nav > li > a:hover, .bf-nav > li:hover > a { color: #fff; opacity: .8; }
.bf-nav > li > a .bi { font-size: .7rem; }
.bf-dropdown { position: absolute; top: 100%; right: 0; min-width: 240px; background: #fff; color: var(--bf-text); padding: .75rem 0; border-radius: 0 0 var(--bf-radius) var(--bf-radius); box-shadow: 0 20px 40px rgba(0,0,0,.12); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s; }
.bf-dropdown a { display: block; padding: .45rem 1.4rem; font-size: .92rem; }
.bf-nav > li:hover .bf-dropdown, .bf-nav > li:hover .bf-mega { opacity: 1; visibility: visible; transform: none; }
.bf-mega { position: absolute; top: 100%; right: 0; left: 0; background: #fff; color: var(--bf-text); box-shadow: 0 25px 50px rgba(0,0,0,.12); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s; border-top: 1px solid var(--bf-border); }
.bf-mega .container-bf { display: grid; grid-template-columns: repeat(6, 1fr) 1.3fr; gap: 1.5rem; height: auto; padding-block: 2rem 2.2rem; align-items: start; }
.bf-mega h6 { font-size: .98rem; font-weight: 700; margin-bottom: .75rem; }
.bf-mega ul { list-style: none; padding: 0; margin: 0; }
.bf-mega li a { display: block; padding: .22rem 0; font-size: .88rem; color: var(--bf-muted); }
.bf-mega li a:hover { color: var(--bf-red); }
.bf-mega .mega-extra { display: flex; flex-direction: column; gap: .6rem; }
.bf-mega .mega-extra a.tag { font-weight: 700; }
.bf-mega .mega-promo { border-radius: var(--bf-radius); overflow: hidden; position: relative; aspect-ratio: 4/5; background: var(--bf-light); }
.bf-mega .mega-promo img { width: 100%; height: 100%; object-fit: cover; }
.bf-mega .mega-promo span { position: absolute; bottom: 1rem; right: 1rem; background: #fff; padding: .35rem 1rem; border-radius: 999px; font-weight: 600; font-size: .85rem; }
.bf-header-icons { display: flex; align-items: center; gap: .35rem; margin-inline-start: auto; }
.bf-header-icons a, .bf-header-icons button { color: #fff; background: none; border: 0; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; font-size: 1.2rem; position: relative; }
.bf-header-icons a:hover, .bf-header-icons button:hover { background: rgba(255,255,255,.1); color: #fff; }
.bf-header-icons .count { position: absolute; top: 3px; left: 3px; background: var(--bf-red); color: #fff; font-size: .65rem; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; }
.bf-burger { display: none !important; }
@media (max-width: 1199.98px) {
    .bf-nav { display: none; }
    .bf-burger { display: grid !important; order: -2; margin-inline: -.5rem 0 !important; }
    .bf-header .bf-logo { order: -1; }
    .bf-header-style2 > .container-bf { justify-content: flex-start; }
    .bf-header .container-bf { gap: .75rem; }
    .bf-logo img { height: 36px; }
    :root { --bf-header-h: 64px; }
}

/* ---------- mobile menu (offcanvas) ---------- */
.bf-offcanvas { width: min(360px, 88vw) !important; }
.bf-offcanvas .offcanvas-header { background: var(--bf-dark); color: #fff; }
.bf-mobile-nav { list-style: none; padding: 0; margin: 0; }
.bf-mobile-nav > li { border-bottom: 1px solid var(--bf-border); }
.bf-mobile-nav a, .bf-mobile-nav button { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: .85rem 1.25rem; background: none; border: 0; font-weight: 600; text-align: right; color: var(--bf-text); }
.bf-mobile-nav ul { list-style: none; padding: 0 0 .5rem; margin: 0; background: #fafafa; }
.bf-mobile-nav ul a { font-weight: 400; padding: .5rem 2rem; font-size: .92rem; }
.bf-mobile-nav ul ul a { padding-inline-start: 2.8rem; color: var(--bf-muted); }

/* ---------- search modal ---------- */
.bf-search .modal-content { border-radius: 0; border: 0; }
.bf-search input { border: 0; border-bottom: 2px solid var(--bf-dark); border-radius: 0; font-size: 1.4rem; padding: 1rem 0; box-shadow: none !important; }

/* ---------- sections ---------- */
.bf-section { padding-block: 80px; }
.bf-section-sm { padding-block: 48px; }
.bf-bg-light { background: var(--bf-light); }
.bf-title { font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 400; line-height: 1.5; margin-bottom: 1rem; }
.bf-title-lg { font-size: clamp(2rem, 4.5vw, 3.8rem); font-weight: 600; line-height: 1.35; }
.bf-subtitle { color: var(--bf-red); font-weight: 600; font-size: .95rem; margin-bottom: .5rem; }
.bf-lead { font-size: clamp(1rem, 1.6vw, 1.25rem); color: var(--bf-muted); line-height: 2; }
.bf-section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2.2rem; flex-wrap: wrap; }
.bf-section-head .bf-title { margin: 0; }

/* hero */
.bf-hero { position: relative; min-height: min(86vh, 820px); display: flex; align-items: center; overflow: hidden; background: #e9e6e1; }
.bf-hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out; z-index: 1; }
.bf-hero-slide.active { opacity: 1; visibility: visible; z-index: 2; }
.bf-hero-slide .hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bf-hero-slide .hero-media.flip { transform: scaleX(-1); }
.bf-hero-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to left, rgba(255,255,255,.55) 0%, rgba(255,255,255,.15) 45%, rgba(255,255,255,0) 70%); z-index: 1; }
.bf-hero .container-bf { position: relative; z-index: 3; width: 100%; }
.bf-hero .hero-content { max-width: 640px; background: rgba(255, 255, 255, .3); padding: clamp(1.1rem, 3vw, 2rem); border-radius: 14px; backdrop-filter: blur(2px); }
.bf-hero h1 { color: #4a4446; }
.bf-hero p { font-size: clamp(1rem, 1.8vw, 1.4rem); color: #5a5456; margin: 1.2rem 0 2rem; }
@media (max-width: 767.98px) {
    .bf-hero { align-items: flex-start; min-height: 560px; padding-top: 2.5rem; }
    .bf-hero-slide::after { background: linear-gradient(to bottom, rgba(255,255,255,.85) 0%, rgba(255,255,255,.5) 45%, rgba(255,255,255,0) 70%); }
}
.bf-hero-nav-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.12); background: rgba(255,255,255,0.75); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; color: #171717; cursor: pointer; transition: all 0.2s ease; font-size: 1.1rem; }
.bf-hero-nav-arrow:hover { background: #ffffff; box-shadow: 0 4px 16px rgba(0,0,0,0.15); transform: translateY(-50%) scale(1.05); }
.bf-hero-nav-arrow.prev { right: 24px; }
.bf-hero-nav-arrow.next { left: 24px; }
.bf-hero-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: 8px; align-items: center; }
.bf-hero-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--bf-red, #b91c1c); background: transparent; cursor: pointer; transition: all 0.25s ease; padding: 0; }
.bf-hero-dot.active { background: var(--bf-red, #b91c1c); width: 24px; border-radius: 999px; }

/* logos strip */
.bf-logos { display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; overflow-x: auto; scrollbar-width: none; padding-block: 8px; }
.bf-logos::-webkit-scrollbar { display: none; }
.bf-logos img { height: 38px; width: auto; opacity: .7; filter: grayscale(1); transition: opacity .2s; flex-shrink: 0; }
.bf-logos img:hover { opacity: 1; }

/* intro */
.bf-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.bf-intro img { border-radius: var(--bf-radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 991.98px) { .bf-intro { grid-template-columns: 1fr; gap: 2rem; } }

/* category cards */
.bf-cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
.bf-cat-card { display: block; }
.bf-cat-card .img { border-radius: var(--bf-radius); overflow: hidden; background: var(--bf-light); aspect-ratio: 3/4; }
.bf-cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.bf-cat-card:hover img { transform: scale(1.06); }
.bf-cat-card h3 { font-size: 1.3rem; font-weight: 500; margin: 1rem 0 .1rem; }
.bf-cat-card p { color: var(--bf-muted); font-size: .9rem; margin: 0; }
@media (max-width: 991.98px) { .bf-cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px) { .bf-cat-grid { grid-template-columns: repeat(2, 1fr); gap: .9rem; } }

/* image banner */
.bf-banner { position: relative; border-radius: var(--bf-radius); overflow: hidden; min-height: 520px; display: flex; align-items: flex-end; color: #fff; }
.bf-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bf-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to left, rgba(0,0,0,.55), rgba(0,0,0,0) 55%), linear-gradient(to top, rgba(0,0,0,.5), rgba(0,0,0,0) 50%); }
.bf-banner .content { position: relative; z-index: 1; padding: clamp(1.5rem, 4vw, 3.5rem); max-width: 720px; }
.bf-banner h2 { font-size: clamp(2rem, 5vw, 4rem); font-weight: 700; }
.bf-banner p { font-size: 1.15rem; opacity: .92; margin-bottom: 1.5rem; }

/* features */
.bf-features { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem; border-top: 1px solid #eee; padding-top: 2.5rem; }
.bf-feature { text-align: center; }
.bf-feature img { width: 64px; height: 64px; object-fit: contain; margin-bottom: 1rem; }
.bf-feature h3 { font-size: 1.05rem; font-weight: 500; line-height: 1.7; margin: 0; }
@media (max-width: 991.98px) { .bf-features { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; } }
@media (max-width: 575.98px) { .bf-features { grid-template-columns: repeat(2, 1fr); } }

/* horizontal slider */
.bf-slider { position: relative; }
.bf-slider-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 1.25rem) / 4); gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; padding-bottom: 4px; }
.bf-slider-track::-webkit-scrollbar { display: none; }
.bf-slider-track > * { scroll-snap-align: start; min-width: 0; }
.bf-slider[data-cols="3"] .bf-slider-track { grid-auto-columns: calc((100% - 2 * 1.25rem) / 3); }
@media (max-width: 991.98px) { .bf-slider-track, .bf-slider[data-cols="3"] .bf-slider-track { grid-auto-columns: calc((100% - 1.25rem) / 2.2); } }
@media (max-width: 575.98px) { .bf-slider-track, .bf-slider[data-cols="3"] .bf-slider-track { grid-auto-columns: 78%; } }
.bf-slider[data-loop] .bf-slider-track { scroll-snap-type: none; scroll-behavior: auto; }
.bf-slider[data-cols="5"] .bf-slider-track { grid-auto-columns: calc((100% - 4 * 1.25rem) / 5); }
.bf-slider-track.bf-logos { grid-auto-columns: max-content; gap: 3.5rem; align-items: center; }
@media (max-width: 991.98px) { .bf-slider[data-cols="5"] .bf-slider-track { grid-auto-columns: calc((100% - 2 * 1.25rem) / 3); } }
@media (max-width: 575.98px) { .bf-slider[data-cols="5"] .bf-slider-track { grid-auto-columns: 45%; } }
.bf-slider-nav { display: flex; gap: .5rem; }
.bf-slider-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--bf-dark); background: #fff; display: grid; place-items: center; font-size: 1.1rem; transition: all .2s; }
.bf-slider-nav button:hover { background: var(--bf-dark); color: #fff; }

/* project cards */
.bf-project { position: relative; display: block; border-radius: var(--bf-radius); overflow: hidden; aspect-ratio: 4/5; }
.bf-project img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.bf-project:hover img { transform: scale(1.05); }
.bf-project::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.6), transparent 50%); }
.bf-project h3 { position: absolute; bottom: 1.25rem; right: 1.25rem; left: 1.25rem; z-index: 1; color: #fff; font-size: 1.25rem; font-weight: 600; margin: 0; }

/* split (image + text) */
.bf-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.bf-split .media img { width: 100%; border-radius: var(--bf-radius); object-fit: cover; }
@media (max-width: 991.98px) { .bf-split { grid-template-columns: 1fr; gap: 2rem; } .bf-split .media { order: -1; } }

/* steps */
.bf-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: step; }
.bf-step { position: relative; padding-top: 1rem; }
.bf-step img { height: 56px; width: auto; margin-bottom: 1.2rem; }
.bf-step h3 { font-size: 1.3rem; font-weight: 600; }
.bf-step h3::before { counter-increment: step; content: counter(step, persian) '. '; color: var(--bf-red); }
.bf-step p { color: var(--bf-muted); margin: 0; }
@media (max-width: 991.98px) { .bf-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .bf-steps { grid-template-columns: 1fr; } }

/* product card */
.bf-product { display: block; position: relative; }
.bf-product .img { position: relative; background: var(--bf-light); border-radius: var(--bf-radius); overflow: hidden; aspect-ratio: 1; }
.bf-product .img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: opacity .35s ease, transform .5s ease; }
.bf-product .img img.alt { position: absolute; inset: 0; opacity: 0; z-index: 2; }
.bf-product:hover .img img:not(.alt) { opacity: 0; }
.bf-product:hover .img img.alt { opacity: 1; }
.bf-product:hover .img img:only-child { opacity: 1; transform: scale(1.04); }
.bf-product .badge-sale, .bf-showcase .badge-sale { position: absolute; top: 12px; right: 12px; background: var(--bf-red); color: #fff; font-size: .75rem; padding: .2rem .7rem; border-radius: 999px; z-index: 3; }
.badge-sale.badge-soldout { background: var(--bf-dark); }
.badge-sale.is-inline { position: static; display: inline-block; background: var(--bf-dark); color: #fff; font-size: .75rem; padding: .2rem .7rem; border-radius: 999px; }

/* sale showcase (fewer than 5 sale products) */
.bf-showcase { outline: none; }
.bf-showcase-stage { display: grid; touch-action: pan-y; user-select: none; cursor: grab; }
.bf-showcase-stage.dragging { cursor: grabbing; }
.bf-showcase-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateX(-24px); transition: opacity .6s ease, transform .6s ease, visibility .6s; }
.bf-showcase-slide.active { opacity: 1; visibility: visible; transform: none; }
.bf-showcase-slide .media { position: relative; display: block; background: #fff; border-radius: var(--bf-radius); overflow: hidden; aspect-ratio: 4/3; }
.bf-showcase-slide .media img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; transition: transform .6s ease; }
.bf-showcase-slide .media:hover img { transform: scale(1.03); }
.bf-pdp-brochure { display: flex; align-items: center; gap: .6rem; margin: .9rem 0 .4rem; padding: .7rem 1rem; border: 1px dashed var(--bf-red); border-radius: var(--bf-radius); color: var(--bf-red); font-weight: 600; text-decoration: none; transition: background .2s; }
.bf-pdp-brochure:hover { background: rgba(200, 16, 46, .06); color: var(--bf-red); }
.bf-pdp-brochure i { font-size: 1.4rem; }
.bf-pdp-brochure small { margin-inline-start: auto; font-weight: 500; opacity: .75; }
.bf-catalog-card .bf-catalog-ph { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 3rem; color: #c5c9d0; }
.bf-catalog-dl { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 600; color: var(--bf-red); }
.bf-catalog-dl.is-muted { color: var(--bf-muted); }
.bf-catalog-dl:hover { text-decoration: underline; }
.bf-catalog-search { min-width: 240px; }
.bf-showcase-gallery { min-width: 0; }
.bf-showcase-thumbs { display: flex; gap: .5rem; margin-top: .75rem; overflow-x: auto; scrollbar-width: none; }
.bf-showcase-thumbs button { flex: 0 0 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 10px; background: #fff; overflow: hidden; cursor: pointer; transition: border-color .2s; }
.bf-showcase-thumbs button.active, .bf-showcase-thumbs button:hover { border-color: var(--bf-red); }
.bf-showcase-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.bf-showcase-slide .bf-pname-alt { display: block; font-size: 1rem; color: var(--bf-muted); font-weight: 400; margin-top: .3rem; }
.bf-showcase-price { display: flex; align-items: baseline; gap: .8rem; margin: .5rem 0 1rem; font-size: 1.35rem; }
.bf-showcase-price del { color: var(--bf-muted); font-size: 1rem; }
.bf-showcase-price .ask { color: var(--bf-red); font-weight: 600; font-size: 1.1rem; }
.bf-showcase-dots { display: flex; justify-content: center; gap: 8px; margin-top: 2rem; }
.bf-product .brand { font-size: .78rem; color: var(--bf-muted); margin-top: .8rem; letter-spacing: .5px; }
.bf-product h3 { font-size: .98rem; font-weight: 500; margin: .15rem 0 .3rem; line-height: 1.7; }
.bf-product .price { font-weight: 700; font-size: .95rem; }
.bf-product .price del { color: #999; font-weight: 400; font-size: .85rem; margin-inline-start: .4rem; }
.bf-product .price .ask { color: var(--bf-muted); font-weight: 500; }

/* blog card */
.bf-post { display: block; }
.bf-post .img { border-radius: var(--bf-radius); overflow: hidden; aspect-ratio: 16/10; background: var(--bf-light); }
.bf-post img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.bf-post:hover img { transform: scale(1.05); }
.bf-post .meta { font-size: .82rem; color: var(--bf-muted); margin-top: 1rem; }
.bf-post h3 { font-size: 1.12rem; font-weight: 600; line-height: 1.8; margin: .3rem 0 .6rem; }
.bf-post .more { font-weight: 600; font-size: .9rem; border-bottom: 1.5px solid currentColor; }

/* faq */
.bf-faq-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: stretch; }
[dir="auto"] { text-align: start; }
.bf-post h3[dir="auto"], .bf-post h3[dir="ltr"], .bf-post h3[dir="rtl"],
.bf-product h3[dir="auto"], .bf-product h3[dir="ltr"], .bf-product h3[dir="rtl"] { text-align: start; }
.bf-pname > span, .bf-pname > small { display: block; text-align: start; }
.bf-pname-main[dir="rtl"] { text-align: right; }
.bf-pname-alt { font-size: .72em; font-weight: 400; color: var(--bf-muted); line-height: 1.6; margin-top: .15rem; }
.bf-pname-alt[dir="ltr"] { text-align: left; letter-spacing: .01em; }
@media (max-width: 991.98px) { .bf-faq-wrap { grid-template-columns: 1fr; } }
.bf-faq .accordion-item { border: 0; border-bottom: 1px solid var(--bf-border); background: transparent; }
.bf-faq .accordion-button { font-weight: 600; font-size: 1.02rem; padding: 1.2rem 0; background: transparent; box-shadow: none; color: var(--bf-text); }
.bf-faq .accordion-button::after { margin-right: auto; margin-left: 0; }
.bf-faq .accordion-body { padding: 0 0 1.25rem; color: var(--bf-muted); }
.bf-cta-card { position: relative; border-radius: var(--bf-radius); overflow: hidden; min-height: 460px; display: flex; align-items: flex-end; color: #fff; }
.bf-cta-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bf-cta-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7), transparent 60%); }
.bf-cta-card .content { position: relative; z-index: 1; padding: 2rem; }
.bf-cta-card h3 { font-size: 1.7rem; font-weight: 600; line-height: 1.6; }

/* page header / breadcrumb */
.bf-page-head { background: var(--bf-light); padding-block: 2.5rem; }
.bf-page-head h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600; margin: 0; }
.bf-breadcrumb { font-size: .85rem; color: var(--bf-muted); margin-bottom: .4rem; }
.bf-breadcrumb a:hover { color: var(--bf-red); }
.bf-breadcrumb .sep { margin-inline: .4rem; opacity: .5; }

/* collection */
.bf-collection-head { position: relative; overflow: hidden; }
.bf-collection-head.has-image { padding-block: 4rem; color: #fff; }
.bf-collection-head .container-bf { z-index: 1; }
.bf-collection-head.has-image h1 { color: #fff; }
.bf-collection-head .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bf-collection-head.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(20,18,20,.8), rgba(20,18,20,.35)); }
.bf-collection-head.has-image .bf-breadcrumb, .bf-collection-head.has-image .bf-breadcrumb a { color: rgba(255,255,255,.8); }
.bf-collection-desc { max-width: 760px; margin-top: .8rem; line-height: 2; color: var(--bf-muted); font-size: .95rem; }
.has-image .bf-collection-desc { color: rgba(255,255,255,.85); }
.bf-chips { display: flex; gap: .5rem; overflow-x: auto; padding-block: 1.25rem; scrollbar-width: none; }
.bf-chips::-webkit-scrollbar { display: none; }
.bf-chip { flex: none; border: 1px solid #ddd; border-radius: 999px; padding: .45rem 1rem; font-size: .88rem; white-space: nowrap; transition: .2s; }
.bf-chip small { color: var(--bf-muted); margin-inline-start: .25rem; }
.bf-chip:hover, .bf-chip.active { background: var(--bf-dark); border-color: var(--bf-dark); color: #fff; }
.bf-chip:hover small { color: #ccc; }
.bf-shop { display: grid; grid-template-columns: 250px 1fr; gap: 2rem; padding-top: 1rem; }
.bf-filters .bf-filter-group { border-bottom: 1px solid #eee; padding-bottom: 1.1rem; margin-bottom: 1.1rem; }
.bf-facet summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: .4rem; margin-bottom: .5rem; }
.bf-facet summary::-webkit-details-marker { display: none; }
.bf-facet summary::after { content: "\F282"; font-family: bootstrap-icons; margin-inline-start: auto; font-size: .8rem; transition: transform .2s; }
.bf-facet[open] summary::after { transform: rotate(180deg); }
.bf-facet h6 { margin: 0; }
.bf-facet-badge { background: var(--bf-red); color: #fff; border-radius: 99px; font-size: .7rem; padding: 0 .45rem; }
.bf-facet-values { max-height: 240px; overflow-y: auto; padding-inline-end: .25rem; }
.bf-facet-values .form-check { display: flex; align-items: center; gap: .4rem; margin-bottom: .3rem; }
i.bf-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); vertical-align: -2px; margin-inline-end: .25rem; background-color: #ddd; }
.bf-filters h6 { font-weight: 700; margin-bottom: .8rem; font-size: .95rem; }
.bf-filters .form-check { display: flex; gap: .5rem; align-items: center; padding: 0; margin-bottom: .45rem; cursor: pointer; font-size: .9rem; }
.bf-filters .form-check-input { margin: 0; float: none; }
.bf-filters .form-check-input:checked { background-color: var(--bf-dark); border-color: var(--bf-dark); }
@media (min-width: 992px) { .bf-filters { position: sticky; top: 90px; align-self: start; } .bf-filters .offcanvas-body { padding: 0; } }
@media (max-width: 991.98px) { .bf-shop { grid-template-columns: minmax(0, 1fr); } }
.bf-toolbar { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.bf-toolbar .form-select { width: auto; min-width: 160px; border-radius: 999px; }
.bf-product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 1.25rem; }
@media (max-width: 1199.98px) { .bf-product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767.98px) { .bf-product-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem .75rem; } }
.btn-bf-sm { padding: .4rem 1rem; font-size: .85rem; }

/* product page */
.bf-bg-light { background: var(--bf-light); }
.bf-pdp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
@media (max-width: 991.98px) { .bf-pdp { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } }
.bf-gallery { display: flex; flex-direction: column; gap: .75rem; }
@media (min-width: 992px) { .bf-gallery { position: sticky; top: 90px; } }
.bf-gallery-main { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 12px; background: var(--bf-light); position: relative; }
.bf-gallery-main::-webkit-scrollbar { display: none; }
.bf-gallery-main figure { flex: 0 0 100%; margin: 0; scroll-snap-align: start; aspect-ratio: 1; position: relative; }
.bf-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.bf-gallery-main figure.empty { display: grid; place-items: center; font-size: 4rem; color: #ccc; }
.bf-gallery-zoom-badge {
    position: absolute;
    bottom: 14px;
    right: 14px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .75rem;
    font-size: .8rem;
    font-weight: 500;
    color: #fff;
    background: rgba(20, 24, 30, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    cursor: pointer;
    transition: background .2s, transform .2s;
}
.bf-gallery-zoom-badge:hover {
    background: var(--bf-red, #cc2131);
    border-color: var(--bf-red, #cc2131);
    transform: scale(1.04);
}
.bf-gallery-thumbs { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.bf-gallery-thumbs button { flex: 0 0 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: var(--bf-light); opacity: .7; transition: .2s; }
.bf-gallery-thumbs button.active, .bf-gallery-thumbs button:hover { border-color: var(--bf-dark); opacity: 1; }
.bf-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.bf-pdp-brand { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--bf-muted); }
.bf-pdp-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; margin: .3rem 0 .6rem; }
.bf-pdp-title-row .bf-pname { flex: 1; min-width: 0; margin: 0; }
.bf-pdp-info h1 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 600; margin: 0; }
.bf-pdp-like-btn { flex: 0 0 auto; margin: .15rem 0 0; width: 42px; height: 42px; border: 1px solid #e5e5e5; border-radius: 50%; background: #fff; color: #444; display: grid; place-items: center; font-size: 1.15rem; transition: color .15s, border-color .15s, background .15s, transform .15s; cursor: pointer; }
.bf-pdp-like-btn:hover { color: var(--bf-red); border-color: var(--bf-red); background: #fff5f5; }
.bf-pdp-like-btn.is-liked { color: var(--bf-red); border-color: var(--bf-red); background: #fff5f5; }
.bf-pdp-like-btn.is-busy { opacity: .6; pointer-events: none; }
.bf-pdp-like-btn.is-liked:hover { transform: scale(1.05); }
.bf-pdp-price { font-size: 1.5rem; font-weight: 700; padding-block: 1rem; border-block: 1px solid #eee; margin-bottom: 1.25rem; }
.bf-pdp-price .quote { color: var(--bf-red); font-size: 1.25rem; }
.bf-pdp-price del { color: var(--bf-muted); font-size: 1rem; font-weight: 400; }
.bf-pdp-tax { display: block; font-size: .75rem; font-weight: 400; color: var(--bf-muted); margin-top: .35rem; }
.bf-stars { color: #f5a623; white-space: nowrap; }
.bf-option { margin-bottom: 1.1rem; }
.bf-option-label { font-size: .9rem; margin-bottom: .5rem; color: var(--bf-muted); }
.bf-option-label strong { color: var(--bf-dark); font-weight: 600; }
.bf-option-values { display: flex; flex-wrap: wrap; gap: .45rem; }
.bf-swatch { border: 1.5px solid #ddd; background: #fff; border-radius: 999px; padding: .4rem 1rem; font-size: .85rem; transition: .15s; unicode-bidi: plaintext; }
.bf-swatch:hover { border-color: var(--bf-dark); }
.bf-swatch.active { border-color: var(--bf-dark); background: var(--bf-dark); color: #fff; }
.bf-swatch.disabled { opacity: .45; text-decoration: line-through; cursor: not-allowed; }

/* Color Square Swatch */
.bf-color-swatch-sq {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 4px 12px 4px 4px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    direction: rtl;
    color: #1e293b;
}
.bf-color-swatch-sq .color-sq {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.18);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3);
    flex-shrink: 0;
    display: inline-block;
}
.bf-color-swatch-sq .color-title {
    font-size: 0.85rem;
    font-weight: 500;
}
.bf-color-swatch-sq:hover {
    border-color: #94a3b8;
    transform: translateY(-1px);
}
.bf-color-swatch-sq.active {
    border-color: var(--bf-dark, #201c1e);
    background: #f1f5f9;
    color: var(--bf-dark, #201c1e);
    box-shadow: 0 0 0 2px var(--bf-dark, #201c1e);
}

/* Fabric / Leather Texture Swatch */
.bf-fabric-swatch {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 5px 12px 5px 5px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    direction: rtl;
    color: #1e293b;
}
.bf-fabric-swatch .fabric-thumb {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.bf-fabric-swatch .fabric-title {
    font-size: 0.85rem;
    font-weight: 500;
}
.bf-fabric-swatch:hover {
    border-color: #94a3b8;
    transform: translateY(-1px);
}
.bf-fabric-swatch.active {
    border-color: var(--bf-dark, #201c1e);
    background: #f1f5f9;
    color: var(--bf-dark, #201c1e);
    box-shadow: 0 0 0 2px var(--bf-dark, #201c1e);
}

/* Armrest Swatch */
.bf-armrest-swatch {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 5px 12px 5px 5px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    direction: rtl;
    color: #1e293b;
}
.bf-armrest-swatch .armrest-icon-box {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.bf-armrest-swatch .armrest-title {
    font-size: 0.85rem;
    font-weight: 500;
}
.bf-armrest-swatch:hover {
    border-color: #94a3b8;
    transform: translateY(-1px);
}
.bf-armrest-swatch.active {
    border-color: var(--bf-dark, #201c1e);
    background: #f1f5f9;
    color: var(--bf-dark, #201c1e);
    box-shadow: 0 0 0 2px var(--bf-dark, #201c1e);
}
/* Product Option Select Dropdown */
.bf-select-wrapper {
    position: relative;
    max-width: 440px;
}
.bf-select-wrapper .input-group {
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}
.bf-select-wrapper .input-group:focus-within {
    box-shadow: 0 0 0 3px rgba(32, 28, 30, 0.12);
}
.bf-select-wrapper .input-group-text {
    border-radius: 0 10px 10px 0 !important;
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #64748b;
    padding-inline: 0.85rem;
}
.bf-select-option {
    border-radius: 10px 0 0 10px !important;
    border-color: #cbd5e1;
    font-size: 0.92rem;
    font-weight: 500;
    color: #1e293b;
    padding: 0.55rem 0.9rem;
    cursor: pointer;
    background-color: #fff;
    transition: border-color 0.2s ease;
}
.bf-select-option:focus {
    border-color: var(--bf-dark, #201c1e);
    box-shadow: none;
}
.bf-select-option option {
    padding: 8px 12px;
    font-size: 0.9rem;
}
.bf-select-option option:disabled {
    color: #94a3b8;
    background-color: #f1f5f9;
}

.bf-pdp-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-block: 1.25rem; }
.bf-pdp-actions .btn-bf { padding-block: .8rem; }
.bf-qty { display: flex; align-items: center; border: 1.5px solid #ddd; border-radius: 999px; overflow: hidden; }
.bf-qty button { border: 0; background: none; width: 38px; height: 100%; font-size: 1.1rem; }
.bf-qty input { width: 44px; border: 0; text-align: center; -moz-appearance: textfield; }
.bf-qty input::-webkit-inner-spin-button { display: none; }
.bf-pdp-perks { list-style: none; padding: 1rem 1.25rem; margin: 0 0 1.5rem; background: var(--bf-light); border-radius: 12px; font-size: .88rem; display: grid; gap: .6rem; }
.bf-pdp-perks i { color: var(--bf-red); margin-inline-end: .4rem; }
.bf-accordion .accordion-item { border: 0; border-bottom: 1px solid #e5e5e5; background: none; }
.bf-accordion .accordion-button { background: none; box-shadow: none; font-weight: 600; padding-inline: 0; color: var(--bf-dark); }
.bf-accordion .accordion-button::after { margin-right: auto; margin-left: 0; }
.bf-accordion .accordion-body { padding-inline: 0; }
.bf-specs { width: 100%; font-size: .9rem; }
.bf-specs th, .bf-specs td { padding: .6rem .5rem; border-bottom: 1px solid #f0f0f0; vertical-align: top; }
.bf-specs th { width: 35%; color: var(--bf-muted); font-weight: 500; }
.bf-review { background: #fff; border-radius: 12px; padding: 1.25rem 1.5rem; margin-bottom: 1rem; }
.bf-review-reply { margin-top: .9rem; padding: .75rem 1rem; border-inline-start: 3px solid var(--bf-red); background: var(--bf-light); border-radius: 6px; }
.bf-rate { display: inline-flex; flex-direction: row-reverse; gap: .25rem; font-size: 1.6rem; }
.bf-rate input { display: none; }
.bf-rate label { color: #ddd; cursor: pointer; transition: .15s; }
.bf-rate input:checked ~ label, .bf-rate label:hover, .bf-rate label:hover ~ label { color: #f5a623; }
.bf-quote-item { display: flex; align-items: center; gap: 1rem; background: var(--bf-light); border-radius: 10px; padding: .75rem; }
.bf-quote-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.bf-modal { border-radius: 16px; border: 0; }

/* blog */
.bf-post .img { display: grid; place-items: center; }
.bf-post .img > i { font-size: 3rem; color: #ccc; }
.bf-post .meta .dot, .bf-post-featured .dot { margin-inline: .45rem; opacity: .5; }
.bf-blog-search { position: relative; width: 300px; max-width: 100%; }
.bf-blog-search input { border-radius: 999px; padding-inline: 2.9rem 1.1rem; height: 46px; background: #fff; }
.bf-blog-search input::-webkit-search-cancel-button { margin-inline-start: .4rem; cursor: pointer; }
.bf-blog-search button { position: absolute; inset-inline-start: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; width: 36px; height: 36px; display: grid; place-items: center; color: var(--bf-muted, #6c757d); border-radius: 50%; transition: background .2s, color .2s; }
.bf-blog-search button:hover { background: var(--bf-light); color: var(--bf-dark); }
.badge-bf { display: inline-block; background: var(--bf-red); color: #fff; font-size: .78rem; padding: .3rem .8rem; border-radius: 999px; }
.bf-post-featured { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: center; }
.bf-post-featured .img { border-radius: var(--bf-radius); overflow: hidden; aspect-ratio: 16/10; background: var(--bf-light); }
.bf-post-featured img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.bf-post-featured:hover img { transform: scale(1.04); }
.bf-post-featured .meta { font-size: .85rem; color: var(--bf-muted); }
.bf-post-featured h2 { font-size: clamp(1.3rem, 2.4vw, 2rem); font-weight: 600; line-height: 1.6; margin: .6rem 0 1rem; text-align: start; }
.bf-post-featured p { line-height: 2; text-align: start; }
@media (max-width: 767.98px) { .bf-post-featured { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; } }
.bf-article-head { padding: 2.5rem 0 2rem; }
.bf-article-head h1 { font-size: clamp(1.6rem, 3.4vw, 2.8rem); font-weight: 600; line-height: 1.5; max-width: 980px; margin: .5rem 0 1.2rem; text-align: start; }
.bf-article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: var(--bf-muted); font-size: .88rem; }
.bf-article-meta i { margin-inline-end: .3rem; }
.bf-article-cover { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--bf-radius); }
.bf-article { display: grid; grid-template-columns: 70px minmax(0, 820px); justify-content: center; gap: 2.5rem; padding-block: 3rem 2rem; }
.bf-article-side { position: relative; }
.bf-share { position: sticky; top: 100px; display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.bf-share span { font-size: .75rem; color: var(--bf-muted); writing-mode: vertical-rl; margin-bottom: .4rem; }
.bf-share a, .bf-share button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid #ddd; background: #fff; display: grid; place-items: center; transition: .2s; }
.bf-share a:hover, .bf-share button:hover { background: var(--bf-dark); border-color: var(--bf-dark); color: #fff; }
.bf-share-row { position: static; flex-direction: row; flex-wrap: wrap; }
.bf-share-row span { writing-mode: initial; margin: 0 0 0 .3rem; }
.bf-share-row a, .bf-share-row button { width: 38px; height: 38px; }
/* آیکن دکمه‌های دایره‌ای دقیقاً در مرکز (ارتفاع خط متن و vertical-align آیکن حذف می‌شود) */
:is(.bf-share a, .bf-share button, .bf-footer .social a, .bf-header-icons a, .bf-header-icons button, .bf-hero-nav-arrow, .bf-slider-nav button, .bf-pdp-like-btn, .bf-blog-search button, .bf-lb-nav, .bf-lang-globe-btn, .bf-quick-nav, .bf-totop, .bf-splash-close) > .bi { display: grid; place-items: center; line-height: 1; }
:is(.bf-share a, .bf-share button, .bf-footer .social a, .bf-header-icons a, .bf-header-icons button, .bf-hero-nav-arrow, .bf-slider-nav button, .bf-pdp-like-btn, .bf-blog-search button, .bf-lb-nav, .bf-lang-globe-btn, .bf-quick-nav, .bf-totop, .bf-splash-close) > .bi::before { vertical-align: 0; }
@media (max-width: 767.98px) {
    .bf-article { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding-top: 1.5rem; }
    .bf-article-side { order: 2; }
    .bf-share { flex-direction: row; justify-content: center; }
    .bf-share span { writing-mode: initial; margin: 0 .3rem 0 0; }
}
.bf-article-body nav { background: var(--bf-light); border-radius: var(--bf-radius); padding: 1.25rem 1.75rem; margin-bottom: 2rem; }
.bf-article-body nav h2 { font-size: 1.1rem; margin: 0 0 .75rem; }
.bf-article-body nav ol { margin: 0; padding-inline-start: 1.25rem; }
.bf-article-body nav a { color: var(--bf-dark); }
.bf-article-body a { color: var(--bf-red); text-decoration: underline; text-underline-offset: 3px; }
.bf-article-body .table-wrap, .bf-article-body table { display: block; overflow-x: auto; }
.bf-article-tags { display: flex; flex-wrap: wrap; gap: .5rem; max-width: 820px; margin: 0 auto 2rem; }
.bf-article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 910px; margin: 0 auto; border-top: 1px solid #eee; padding-block: 1.5rem; }
.bf-article-nav a { display: block; }
.bf-article-nav small { color: var(--bf-muted); display: block; margin-bottom: .3rem; }
.bf-article-nav span { font-weight: 600; line-height: 1.7; }
.bf-article-nav a:hover span { color: var(--bf-red); }
.bf-comment-form { background: var(--bf-light); border-radius: var(--bf-radius); padding: 1.5rem; }

/* static pages / page builder */
.bf-page-hero { position: relative; overflow: hidden; color: #fff; padding-block: clamp(4rem, 10vw, 8rem); background: var(--bf-dark); }
.bf-page-hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bf-page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(20,18,20,.85), rgba(20,18,20,.3)); }
.bf-page-hero .container-bf { z-index: 1; }
.bf-page-hero .bf-breadcrumb, .bf-page-hero .bf-breadcrumb a { color: rgba(255,255,255,.75); }
.bf-page-hero h1 { font-size: clamp(1.9rem, 4.5vw, 3.4rem); font-weight: 600; line-height: 1.4; max-width: 760px; margin: .5rem 0 1rem; }
.bf-page-hero p { max-width: 620px; line-height: 2; color: rgba(255,255,255,.85); font-size: 1.05rem; }
.bf-split.reverse .media { order: 2; }
@media (max-width: 991.98px) { .bf-split.reverse .media { order: -1; } }
.bf-checklist { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .6rem; }
.bf-checklist li { position: relative; padding-inline-start: 1.8rem; line-height: 1.9; }
.bf-checklist li::before { content: "\F26E"; font-family: bootstrap-icons; position: absolute; inset-inline-start: 0; top: 0; color: var(--bf-red); font-size: 1.15rem; }
.bf-stats-wrap { background: var(--bf-dark); color: #fff; }
.bf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 2rem; text-align: center; }
.bf-stats strong { display: block; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: #fff; }
.bf-stats span { color: rgba(255,255,255,.7); }
.bf-feature-card { height: 100%; border: 1px solid #eee; border-radius: var(--bf-radius); padding: 2rem 1.5rem; transition: .25s; background: #fff; }
.bf-feature-card:hover { box-shadow: 0 12px 30px rgba(0,0,0,.07); transform: translateY(-3px); }
.bf-feature-card i { font-size: 2.2rem; color: var(--bf-red); }
.bf-feature-card h3 { font-size: 1.1rem; font-weight: 700; margin: 1rem 0 .6rem; }
.bf-feature-card p { color: var(--bf-muted); margin: 0; line-height: 1.9; font-size: .93rem; }
.bf-cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; background: var(--bf-dark); color: #fff; border-radius: var(--bf-radius); padding: 2.5rem clamp(1.5rem, 4vw, 3.5rem); }
.bf-cta-band h2 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); font-weight: 600; margin-bottom: .4rem; }
.bf-cta-band p { color: rgba(255,255,255,.75); }
.bf-form-card { background: #fff; border-radius: var(--bf-radius); padding: clamp(1.25rem, 3vw, 2.5rem); box-shadow: 0 10px 40px rgba(0,0,0,.05); }
.bf-lead-form .form-control, .bf-lead-form .form-select, .bf-form-card .form-control, .bf-form-card .form-select { padding: .7rem .9rem; border-radius: 10px; }
.bf-contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.bf-contact-card { display: block; background: var(--bf-light); border-radius: var(--bf-radius); padding: 1.75rem 1.25rem; text-align: center; transition: .2s; }
a.bf-contact-card:hover { background: var(--bf-dark); color: #fff; }
.bf-contact-card i { font-size: 1.8rem; color: var(--bf-red); }
.bf-contact-card h3 { font-size: 1rem; font-weight: 700; margin: .8rem 0 .4rem; }
.bf-contact-card span { font-size: .92rem; line-height: 1.8; }
.bf-map { border-radius: var(--bf-radius); overflow: hidden; height: 100%; min-height: 380px; background: var(--bf-light); }
.bf-map iframe, .bf-map img { width: 100%; height: 100%; min-height: 380px; border: 0; object-fit: cover; }
.bf-job { border: 1px solid #eee; border-radius: var(--bf-radius); padding: 1.25rem 1.5rem; margin-bottom: 1rem; transition: .2s; }
.bf-job:hover { border-color: var(--bf-dark); }
.bf-job h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .4rem; }
.bf-job-meta { display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; color: var(--bf-muted); font-size: .85rem; }
.bf-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.bf-gallery-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--bf-radius); }

/* rich content from editor / imported html */
.bf-prose { line-height: 2.1; font-size: 1.02rem; }
.bf-prose img { border-radius: var(--bf-radius); height: auto; }
.bf-prose h2, .bf-prose h3 { font-weight: 700; margin: 2rem 0 1rem; }
.bf-prose table { width: 100%; margin-bottom: 1rem; border-collapse: collapse; }
.bf-prose td, .bf-prose th { border: 1px solid var(--bf-border); padding: .5rem .75rem; }

/* ---------- footer ---------- */
.bf-footer { background: var(--bf-dark); color: #bdbdbd; padding-top: 70px; font-size: .92rem; }
.bf-footer a:hover { color: #fff; }
.bf-footer h5 { color: #fff; font-size: 1.05rem; font-weight: 600; margin-bottom: 1.2rem; }
.bf-footer ul { list-style: none; padding: 0; margin: 0; }
.bf-footer li { margin-bottom: .55rem; }
.bf-footer .logo { height: 50px; width: auto; margin-bottom: 1.2rem; }
.bf-footer .contact a { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; color: #fff; }
.bf-footer .social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #555; display: inline-grid; place-items: center; margin-inline-end: .35rem; color: #fff; }
.bf-footer .social a:hover { background: var(--bf-red); border-color: var(--bf-red); }
.bf-newsletter { display: flex; background: #3a363b; border-radius: 999px; padding: 4px; }
.bf-newsletter input { flex: 1; background: transparent; border: 0; color: #fff; padding: .55rem 1rem; outline: none; min-width: 0; }
.bf-newsletter input::placeholder { color: #999; }
.bf-footer-bottom { border-top: 1px solid #444; margin-top: 50px; padding-block: 1.4rem; font-size: .82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

/* ---------- mobile sticky bar ---------- */
.bf-mobile-bar { display: none; }
@media (max-width: 991.98px) {
    .bf-mobile-bar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; right: 0; left: 0; z-index: 1040; background: #fff; border-top: 1px solid var(--bf-border); box-shadow: 0 -4px 16px rgba(0,0,0,.06); padding-bottom: env(safe-area-inset-bottom); }
    .bf-mobile-bar a, .bf-mobile-bar button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .5rem 0; font-size: .7rem; background: none; border: 0; color: var(--bf-text); position: relative; }
    .bf-mobile-bar .bi { font-size: 1.25rem; }
    .bf-mobile-bar .count { position: absolute; top: 4px; left: calc(50% - 18px); background: var(--bf-red); color: #fff; font-size: .6rem; min-width: 16px; height: 16px; border-radius: 8px; display: grid; place-items: center; }
    body { padding-bottom: 64px; }
    .bf-section { padding-block: 56px; }
}

/* ---------- utilities ---------- */
.alert-bf { border-radius: var(--bf-radius); }
.pagination { --bs-pagination-color: var(--bf-dark); --bs-pagination-active-bg: var(--bf-dark); --bs-pagination-active-border-color: var(--bf-dark); --bs-pagination-border-radius: 999px; gap: .3rem; }
.pagination .page-link { border-radius: 999px !important; min-width: 40px; text-align: center; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; list-style: none; padding: 0; margin: 0; }
.pagination li > a, .pagination li > span { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .75rem; border-radius: 999px; border: 1px solid var(--bs-border-color, #e5e5e5); background: #fff; color: var(--bf-dark); font-weight: 500; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.pagination li > a:hover { border-color: var(--bf-dark); background: var(--bf-light); }
.pager { display: flex; flex-direction: column; align-items: center; gap: .75rem; max-width: 100%; }
.pager-info { font-size: .85rem; color: var(--bf-muted); text-align: center; }
.cart-summary-loading { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; background: rgba(255,255,255,.7); border-radius: 8px; }
.cart-summary.is-loading .cart-summary-loading { display: flex; }
#cart-checkout.disabled { pointer-events: none; opacity: .6; }
@media (max-width: 575.98px) {
    .pagination { gap: .2rem; }
    .pagination li > a, .pagination li > span { min-width: 34px; height: 34px; padding: 0 .45rem; font-size: .85rem; }
}
.pagination li .bi { color: inherit !important; font-size: .9rem; line-height: 1; }
.pagination li.active > span { background: var(--bf-dark); border-color: var(--bf-dark); color: #fff; }
.pagination li.disabled > span { opacity: .4; cursor: default; }

/* ==========================================================================
   STYLE 2: BAFCO.COM SIGNATURE MEGAMENU & HEADER
   ========================================================================== */
.bf-announce-style2 {
    background: #191618;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.bf-header-style2 {
    background: #201c1e;
    color: #ffffff;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 72px;
    z-index: 1030;
    transition: background .2s, box-shadow .2s;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.bf-header-style2.scrolled {
    background: #1a1719;
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}
.bf-header-style2 > .container-bf {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 1.5rem;
    position: static;
}
.bf-nav-style2 {
    height: 100%;
    display: flex;
    align-items: center;
    position: static;
}
.bf-nav-list {
    display: flex;
    align-items: stretch;
    height: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
    position: static;
}
.bf-nav-item {
    position: static;
    display: flex;
    align-items: center;
    height: 100%;
}
.bf-nav-item.has-dropdown {
    position: relative;
}
.bf-nav-link {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 1.15rem;
    height: 100%;
    color: #f5f5f4 !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.96rem;
    letter-spacing: 0.2px;
    position: relative;
    transition: color 0.15s ease, opacity 0.15s ease;
}
.bf-nav-link .nav-title {
    font-size: 0.96rem;
    font-weight: 600;
    color: #f5f5f4;
    line-height: 1.2;
    margin-bottom: 2px;
}
.bf-nav-link:hover,
.bf-nav-item:hover > .bf-nav-link {
    color: #ffffff !important;
    opacity: 1;
}
.bf-nav-link:hover .nav-title,
.bf-nav-item:hover > .bf-nav-link .nav-title {
    color: #ffffff;
}
.bf-nav-link .nav-fa-sub {
    font-size: 0.68rem;
    color: #a8a29e;
    line-height: 1;
    margin-top: 2px;
    font-weight: 400;
}
.bf-nav-link .nav-arrow {
    position: absolute;
    bottom: 6px;
    font-size: 0.55rem;
    color: #a8a29e;
    transition: transform 0.2s ease, color 0.2s ease;
}
.bf-nav-item:hover > .bf-nav-link .nav-arrow {
    transform: rotate(180deg);
    color: var(--bf-red, #cc2131);
}

/* ---------- Mega Dropdowns Desktop (Fixed directly below header navbar) ---------- */
.bf-mega2 {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: transparent;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    pointer-events: none;
    z-index: 1050;
    box-sizing: border-box;
    padding-top: 2px;
}
.bf-mega2::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 16px;
    background: transparent;
}
.bf-nav-item:hover .bf-mega2,
.bf-nav-item.is-hovered .bf-mega2 {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
/* فقط کارت منو (نه حاشیه شفاف تمام‌عرض) منو را باز نگه می‌دارد */
.bf-nav-item:hover .bf-mega2-card,
.bf-nav-item.is-hovered .bf-mega2-card {
    pointer-events: auto;
}
.bf-mega2::before {
    display: none;
}
.bf-mega2-dropdown::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 16px;
    background: transparent;
}
.bf-nav-item:hover .bf-mega2-dropdown,
.bf-nav-item.is-hovered .bf-mega2-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Tooltips must never intercept mouse pointer or cause premature mouseleave */
.tooltip {
    pointer-events: none !important;
}

/* Mega Menu Container & Luxury Card */
.bf-mega2-container {
    max-width: 1440px;
    margin-inline: auto;
    padding-inline: 20px;
    display: flex;
    justify-content: center;
}
@media (min-width: 1200px) {
    .bf-mega2-container {
        padding-inline: 48px;
    }
}

.bf-mega2-card {
    background: #ffffff;
    color: #1c1917;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 24px 50px -10px rgba(0,0,0,0.2), 0 6px 18px rgba(0,0,0,0.06);
    border: 1px solid #e2e2e2;
    border-top: none;
    overflow: hidden;
    width: 100%;
}
.bf-mega2-card-collections,
.bf-mega2-card-resources {
    max-width: 980px;
}
.bf-mega2-card-shop {
    max-width: 1320px;
}

/* Grids (follow page direction) */
.bf-mega2-grid-3col {
    display: grid;
    grid-template-columns: 210px 220px 1fr;
    min-height: 430px;
    background: #ffffff;
}
.bf-mega2-grid-2col {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 400px;
    background: #ffffff;
}

/* Columns */
.bf-mega2-col-main,
.bf-mega2-col-nav {
    border-inline-end: 1px solid #eeeeee;
    background: #ffffff;
    padding: 0.75rem 0;
    text-align: start;
}
.bf-mega2-col-subs {
    border-inline-end: 1px solid #eeeeee;
    background: #fafafa;
    padding: 0.75rem 0;
    text-align: start;
}
.bf-mega2-col-products,
.bf-mega2-content-area {
    padding: 1.25rem 1.75rem;
    background: #ffffff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: start;
}

/* Mega Menus Lists */
.bf-mega2-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: start;
}
.bf-mega2-list > li > a {
    display: block;
    padding: 0.7rem 1.3rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #262626;
    text-decoration: none;
    transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
    line-height: 1.35;
    border-inline-start: 3px solid transparent;
}
.bf-mega2-list > li > a .mega-title-fa {
    display: block;
    font-size: 0.93rem;
    font-weight: 600;
    color: #171717;
}
.bf-mega2-list > li > a .mega-title-en {
    font-size: 0.75rem;
    color: #737373;
    margin-top: 2px;
}
.bf-mega2-list > li:hover > a,
.bf-mega2-list > li.active > a {
    background: #f4f4f5;
    color: #000000;
    border-inline-start-color: var(--bf-red, #cc2131);
}
.bf-mega2-list > li.active > a .mega-title-fa {
    color: var(--bf-red, #cc2131);
}
.bf-mega2-list li.separator {
    height: 1px;
    background: #e5e5e5;
    margin: 0.5rem 1.2rem;
}
.bf-mega2-list li.special-item > a {
    font-size: 0.9rem;
    padding: 0.55rem 1.3rem;
}

/* Subcategories list */
.bf-mega2-sub-pane {
    display: none;
}
.bf-mega2-sub-pane.active {
    display: block;
}
.bf-mega2-sub-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: start;
}
.bf-mega2-sub-list > li > a {
    display: flex;
    flex-direction: column;
    padding: 0.55rem 1.3rem;
    color: #404040;
    text-decoration: none;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
    border-inline-start: 3px solid transparent;
}
.bf-mega2-sub-list > li > a .sub-fa {
    font-size: 0.9rem;
    font-weight: 500;
    color: #262626;
}
.bf-mega2-sub-list > li > a .sub-en {
    font-size: 0.75rem;
    color: #737373;
    margin-top: 2px;
}
.bf-mega2-sub-list > li:hover > a {
    background: #f0f0f0;
    border-inline-start-color: var(--bf-red, #cc2131);
}
.bf-mega2-sub-list > li.active-header > a {
    background: #ebebeb;
    border-inline-start-color: var(--bf-red, #cc2131);
}
.bf-mega2-sub-list > li.active-header > a .sub-fa {
    font-weight: 600;
    color: var(--bf-red, #cc2131);
}

/* Products and Gallery Tab Panes */
.bf-mega2-product-pane,
.bf-mega2-tab-pane {
    display: none;
    width: 100%;
}
.bf-mega2-product-pane.active,
.bf-mega2-tab-pane.active {
    display: block;
    animation: megaFadeIn 0.2s ease-out;
}
@keyframes megaFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Auto-Slider with Dots (No horizontal scrollbar) ---------- */
.bf-auto-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.bf-slides-container {
    position: relative;
    width: 100%;
}
.bf-slide {
    display: none;
    width: 100%;
    opacity: 0;
    transition: opacity 0.35s ease-in-out;
}
.bf-slide.active {
    display: block;
    opacity: 1;
    animation: slideFadeIn 0.35s ease-out;
}
@keyframes slideFadeIn {
    from { opacity: 0; transform: translateY(3px); }
    to { opacity: 1; transform: translateY(0); }
}
.bf-slide-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    width: 100%;
}
.bf-slide-grid-2.is-single {
    grid-template-columns: minmax(0, 320px);
    justify-content: start;
}

/* Indicator Dots (Small white/gray circles) */
.bf-slider-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding-top: 14px;
    padding-bottom: 2px;
    width: 100%;
}
.bf-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 50%;
    background-color: #d4d4d8;
    border: 1.5px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}
.bf-dot:hover {
    background-color: #a1a1aa;
    transform: scale(1.2);
}
.bf-dot.active {
    background-color: #4b5563;
    border-color: #ffffff;
    transform: scale(1.3);
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

/* Product Card in Mega Menu */
.bf-mega2-product-card {
    width: 100%;
    max-width: 100%;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: start;
}
.bf-mega2-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.bf-mega2-product-card .prod-img-box {
    width: 100%;
    aspect-ratio: 1/1;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 12px;
}
.bf-mega2-product-card .prod-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.bf-mega2-product-card:hover .prod-img-box img {
    transform: scale(1.05);
}
.bf-mega2-product-card .prod-info {
    padding: 0.75rem 0.85rem;
}
.bf-mega2-product-card .prod-title {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
    color: #171717;
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
}
.bf-mega2-product-card .prod-price {
    font-size: 0.84rem;
    color: #525252;
    font-weight: 500;
}

/* Image Card in Collections / Resources Mega Menu */
.bf-mega2-image-card {
    width: 100%;
    max-width: 100%;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: start;
}
.bf-mega2-image-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.1);
}
.bf-mega2-image-card .card-img-box {
    width: 100%;
    aspect-ratio: 16/11;
    background: #f5f5f5;
    overflow: hidden;
}
.bf-mega2-card-collections .bf-mega2-image-card .card-img-box {
    aspect-ratio: 1/1;
}
.bf-mega2-image-card .card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.bf-mega2-image-card:hover .card-img-box img {
    transform: scale(1.05);
}
.bf-mega2-image-card .card-meta {
    padding: 0.85rem 1rem;
}
.bf-mega2-image-card .card-meta h6 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #171717;
}
.bf-mega2-image-card .card-meta p {
    font-size: 0.82rem;
    color: #737373;
    margin: 0;
    line-height: 1.45;
}

/* Services & About Dropdowns */
.bf-mega2-dropdown {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    background: #ffffff;
    color: #171717;
    border-radius: 0 0 8px 8px;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease-out;
    pointer-events: none;
    z-index: 1050;
    border: 1px solid #e5e5e5;
    box-shadow: 0 16px 36px rgba(0,0,0,0.12);
    text-align: start;
}
.bf-nav-item:hover .bf-mega2-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.bf-dropdown-services,
.bf-dropdown-about {
    min-width: 320px;
}
.services-grid,
.about-grid {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.service-item,
.about-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.65rem 0.85rem;
    border-radius: 6px;
    text-decoration: none;
    color: #1f2937;
    transition: background 0.15s ease, color 0.15s ease;
    text-align: start;
}
.service-item:hover,
.about-item:hover {
    background: #f4f4f5;
    color: var(--bf-red, #cc2131);
}
.service-icon,
.about-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f3f4f6;
    display: grid;
    place-items: center;
    color: var(--bf-red, #cc2131);
    font-size: 1.1rem;
    flex-shrink: 0;
}
.service-item:hover .service-icon,
.about-item:hover .about-icon {
    background: var(--bf-red, #cc2131);
    color: #ffffff;
}
.service-desc,
.about-desc {
    display: block;
    font-size: 0.78rem;
    color: #737373;
    line-height: 1.4;
    margin-top: 2px;
}

/* Offcanvas Style 2 adjustments */
.bf-offcanvas-style2 .bf-mobile-nav button {
    font-size: 0.95rem;
    text-align: start;
}

/* ==========================================================================
   Album / Gallery Lightbox & Fullscreen Autoplay Slideshow
   ========================================================================== */
.bf-gallery-main figure,
.bf-gallery-grid img {
    cursor: zoom-in;
    transition: transform .25s ease, filter .25s ease;
}
.bf-gallery-main figure:hover img {
    transform: scale(1.02);
}

.bf-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    font-family: inherit;
    direction: rtl;
}

.bf-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 13, 16, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: opacity .3s ease;
}

.bf-lightbox-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Header */
.bf-lightbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1.5rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
    flex-shrink: 0;
    gap: 1rem;
    z-index: 10;
}
.bf-lightbox-title-box {
    display: flex;
    align-items: center;
    gap: .85rem;
    min-width: 0;
}
.bf-lightbox-title {
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 50vw;
    color: #f1f5f9;
}
.bf-lightbox-counter {
    font-size: .85rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.16);
    color: #e2e8f0;
    padding: .2rem .65rem;
    border-radius: 999px;
    letter-spacing: .5px;
    direction: ltr;
}

.bf-lightbox-actions {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-inline-start: auto;
}

.bf-lb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    height: 38px;
    padding: 0 .9rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: .88rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .15s;
    backdrop-filter: blur(8px);
}
.bf-lb-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}
.bf-lb-btn:active {
    transform: scale(.96);
}
.bf-lb-btn.is-playing {
    background: var(--bf-red, #cc2131);
    border-color: var(--bf-red, #cc2131);
}
.bf-lb-btn.is-playing:hover {
    background: var(--bf-red-dark, #a91a28);
}
.bf-lb-close {
    width: 38px;
    padding: 0;
    font-size: 1rem;
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
}
.bf-lb-close:hover {
    background: #ef4444;
    border-color: #ef4444;
}

/* Progress bar for autoplay */
.bf-lightbox-progress {
    width: 100%;
    height: 3px;
    background: transparent;
    overflow: hidden;
    position: relative;
    z-index: 9;
}
.bf-lightbox-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--bf-red, #cc2131);
    transition: width linear;
}

/* Stage & Slides */
.bf-lightbox-stage {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: .5rem 1rem;
}

.bf-lightbox-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.bf-lightbox-slide img {
    max-width: 88vw;
    max-height: calc(100vh - 170px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: opacity .25s ease, transform .25s ease;
}

.bf-lightbox-spinner {
    position: absolute;
    display: none;
    z-index: 5;
}

/* Prev / Next Arrows */
.bf-lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 8;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(20, 24, 30, 0.65);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    transition: background .2s, transform .2s, border-color .2s;
    backdrop-filter: blur(8px);
}
.bf-lb-nav:hover {
    background: rgba(204, 33, 49, 0.9);
    border-color: #cc2131;
    color: #fff;
    transform: translateY(-50%) scale(1.08);
}
.bf-lb-prev {
    right: 20px;
}
.bf-lb-next {
    left: 20px;
}

/* Thumbnail Footer */
.bf-lightbox-footer {
    height: 84px;
    padding: .5rem 1rem .75rem;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 10;
}
.bf-lightbox-thumbs-track {
    display: flex;
    align-items: center;
    gap: .55rem;
    overflow-x: auto;
    max-width: 100%;
    padding: .25rem;
    scrollbar-width: thin;
}
.bf-lightbox-thumb {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: .5;
    transition: opacity .2s, border-color .2s, transform .2s;
    background: #111;
    padding: 0;
}
.bf-lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bf-lightbox-thumb:hover {
    opacity: .85;
    transform: translateY(-2px);
}
.bf-lightbox-thumb.active {
    opacity: 1;
    border-color: var(--bf-red, #cc2131);
    box-shadow: 0 0 12px rgba(204, 33, 49, 0.6);
    transform: scale(1.06);
}

@media (max-width: 767.98px) {
    .bf-lb-btn-text { display: none; }
    .bf-lb-nav { width: 38px; height: 38px; font-size: 1.1rem; }
    .bf-lb-prev { right: 8px; }
    .bf-lb-next { left: 8px; }
    .bf-lightbox-slide img { max-width: 95vw; max-height: calc(100vh - 150px); }
    .bf-lightbox-thumb { width: 48px; height: 48px; }
    .bf-lightbox-footer { height: 70px; }
}

/* ==========================================================================
/* ==========================================================================
   Language Switcher Globe & Dropdown in Header
   ========================================================================== */
.bf-lang-dropdown {
    position: relative;
}
.bf-lang-globe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.12rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}
.bf-lang-globe-btn::after {
    display: none !important;
}
.bf-lang-code {
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-decoration: none;
}
.bf-lang-code.is-fa {
    font-size: 0.9rem;
    letter-spacing: 0;
}
.bf-lang-globe-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.08);
}
.bf-lang-globe-btn.show,
.bf-lang-globe-btn:focus-visible {
    color: #ffffff;
    background: rgba(204, 33, 49, 0.2);
    border-color: rgba(204, 33, 49, 0.6);
    box-shadow: 0 0 10px rgba(204, 33, 49, 0.35);
    outline: none;
}
.bf-lang-menu {
    background: #201c1e;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 6px;
    min-width: 195px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
    z-index: 1060;
    margin-top: 6px !important;
}
.bf-lang-menu .dropdown-header {
    font-size: 0.75rem;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.5) !important;
}
.bf-lang-item {
    color: #e5e5e5;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.86rem;
    transition: all 0.15s ease;
    text-decoration: none !important;
}
.bf-lang-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}
.bf-lang-item.active {
    background: rgba(204, 33, 49, 0.18);
    color: #ffffff;
    font-weight: 600;
}
.bf-lang-item.active:hover {
    background: rgba(204, 33, 49, 0.25);
    color: #ffffff;
}
.bf-lang-flag {
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
}
.bf-lang-check {
    color: #cc2131;
    font-size: 1.1rem;
}

/* Backward compatibility */
.bf-lang-flags {
    font-size: 0.82rem;
    font-weight: 500;
}
.bf-flag-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    line-height: 1.2;
}
.bf-flag-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}
.bf-flag-btn.active {
    color: #ffffff;
    background: rgba(204, 33, 49, 0.25);
    border-color: rgba(204, 33, 49, 0.6);
    font-weight: 600;
    box-shadow: 0 0 8px rgba(204, 33, 49, 0.3);
}
.bf-flag-btn .flag-emoji {
    font-size: 1.05rem;
    line-height: 1;
}

/* ==========================================================================
   Bilingual Translation Tooltips
   ========================================================================== */
.bf-trans-tip {
    position: relative;
    cursor: help;
    border-bottom: 1px dotted rgba(204, 33, 49, 0.35);
    transition: color 0.15s ease, border-color 0.15s ease;
}
.bf-trans-tip:hover {
    color: #cc2131;
    border-bottom-color: #cc2131;
}
.bf-trans-tip::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 7px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #18181b;
    color: #f4f4f5;
    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1.35;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1060;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.bf-trans-tip::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    border-width: 5px 5px 0 5px;
    border-style: solid;
    border-color: #18181b transparent transparent transparent;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1061;
}
.bf-trans-tip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.bf-trans-tip:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Shop Tile Quick "Add to Cart" Hover Action
   ========================================================================== */
.bf-product .img {
    position: relative;
    overflow: hidden;
}
.bf-product-quick-actions {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 5;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.bf-product:hover .bf-product-quick-actions {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.btn-quick-icon {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 6px;
    background: #fff;
    color: var(--bf-dark, #222) !important;
    font-size: 1.15rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
    transition: background .2s, color .2s, transform .2s;
    cursor: pointer;
}
.btn-quick-icon:hover { background: var(--bf-dark, #222); color: #fff !important; transform: translateY(-2px); }
.btn-quick-icon.is-cart { background: #cc2131; color: #fff !important; box-shadow: 0 4px 14px rgba(204, 33, 49, .4); }
.btn-quick-icon.is-cart:hover { background: #a81926; }
.btn-quick-icon.loading { opacity: .8; pointer-events: none; }
@media (hover: none) { .bf-product-quick-actions { opacity: 1; transform: none; pointer-events: auto; } }

/* quick view modal */
.bf-quick-modal .modal-content { border: 0; border-radius: 14px; overflow: hidden; }
.bf-quick-modal .modal-body { padding: 0; min-height: 320px; }
.bf-quick-close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 5; background-color: #fff; border-radius: 50%; padding: .6rem; opacity: .9; }
.bf-quick-loading { display: grid; place-items: center; min-height: 360px; }
.bf-quick { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); height: min(86vh, 720px); }
.bf-quick-gallery { background: var(--bf-light, #f5f5f5); padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; min-height: 0; }
.bf-quick-main { flex: 1; min-height: 0; display: grid; place-items: center; position: relative; }
.bf-quick-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.bf-quick-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.12); display: grid; place-items: center; opacity: .85; transition: opacity .2s; }
.bf-quick-nav:hover { opacity: 1; }
.bf-quick-nav.prev { inset-inline-start: 0; }
.bf-quick-nav.next { inset-inline-end: 0; }
[dir="ltr"] .bf-quick-nav .bi { transform: scaleX(-1); }
.bf-quick-count { position: absolute; bottom: 0; inset-inline-start: 50%; transform: translateX(50%); background: rgba(0,0,0,.55); color: #fff; font-size: .78rem; padding: .15rem .7rem; border-radius: 999px; }
[dir="ltr"] .bf-quick-count { transform: translateX(-50%); }
.bf-quick-thumbs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: thin; flex: none; }
.bf-quick-thumbs button { flex: none; width: 64px; height: 64px; border: 2px solid transparent; border-radius: 8px; background: #fff; padding: 3px; transition: border-color .2s; }
.bf-quick-thumbs button.active { border-color: var(--bf-red, #cc2131); }
.bf-quick-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.bf-quick-info { padding: 2.5rem 2rem 1.5rem; display: flex; flex-direction: column; min-height: 0; }
.bf-quick-scroll { flex: 1; min-height: 0; overflow-y: auto; padding-inline-end: .5rem; scrollbar-width: thin; }
.bf-quick-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .4rem 0 .2rem; }
.bf-quick-meta .bf-chip { padding: .2rem .75rem; font-size: .78rem; }
.bf-quick-meta .sku { font-size: .8rem; color: var(--bf-muted, #888); }
.bf-quick-lead { font-size: .88rem; color: #555; }
.bf-quick-title { font-size: .95rem; font-weight: 700; margin: 1.25rem 0 .6rem; padding-bottom: .4rem; border-bottom: 2px solid var(--bf-dark, #222); display: inline-block; }
.bf-quick-attr { margin-bottom: .8rem; }
.bf-quick-attr .label { font-size: .85rem; font-weight: 600; margin-bottom: .35rem; }
.bf-quick-attr .label span { color: var(--bf-muted, #888); font-weight: 400; }
.bf-quick-attr .values { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.bf-quick-attr .sw { width: 34px; height: 34px; object-fit: cover; border: 1px solid #e3e3e3; border-radius: 6px; display: inline-block; }
.bf-quick-attr .sw.shape-circle { border-radius: 50%; }
.bf-quick-attr .bf-chip { padding: .2rem .7rem; font-size: .8rem; }
.bf-specs-sm { font-size: .84rem; }
.bf-specs-sm th, .bf-specs-sm td { padding: .45rem .4rem; }
.bf-quick-info .brand { font-size: .8rem; color: var(--bf-muted, #888); letter-spacing: .5px; }
.bf-quick-info h3 { font-size: 1.35rem; font-weight: 700; margin: .3rem 0 .4rem; line-height: 1.6; }
.bf-quick-info .price { font-size: 1.2rem; font-weight: 700; margin: .5rem 0 1rem; }
.bf-quick-info .price del { color: #999; font-weight: 400; font-size: .9rem; margin-inline-start: .5rem; }
.bf-quick-info .price .ask { color: var(--bf-muted, #888); font-weight: 500; }
.bf-quick-info .desc { color: #555; line-height: 2; font-size: .92rem; }
.bf-quick-actions { flex: none; display: flex; flex-wrap: wrap; gap: .75rem; align-items: stretch; padding-top: 1rem; margin-top: .75rem; border-top: 1px solid #eee; }
.bf-quick-actions .bf-qty { height: 46px; }
[dir="ltr"] .bf-quick-actions .bi-arrow-left { transform: scaleX(-1); }
@media (max-width: 991.98px) {
    .bf-quick { grid-template-columns: minmax(0, 1fr); height: auto; }
    .bf-quick-main { aspect-ratio: 1; flex: none; }
    .bf-quick-info { padding: 1.5rem; }
    .bf-quick-scroll { overflow: visible; }
}

/* back to top */
.bf-totop {
    position: fixed;
    bottom: 24px;
    inset-inline-start: 24px;
    z-index: 1040;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: var(--bf-red, #cc2131);
    color: #fff;
    font-size: 1.25rem;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity .25s, transform .25s, visibility .25s, background .2s;
}
.bf-totop.show { opacity: 1; visibility: visible; transform: none; }
.bf-totop:hover { background: var(--bf-red-dark, #a81926); }
@media (max-width: 991.98px) { .bf-totop { bottom: 84px; inset-inline-start: 16px; width: 42px; height: 42px; } }

/* Advertising splash */
.bf-splash {
    position: fixed; inset: 0; z-index: 1090;
    display: flex; align-items: center; justify-content: center; padding: 20px;
    background: rgba(10, 10, 12, .72); backdrop-filter: blur(3px);
    opacity: 0; transition: opacity .35s;
}
.bf-splash.show { opacity: 1; }
.bf-splash-box {
    position: relative; width: min(920px, 100%); max-height: calc(100vh - 40px);
    border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
    transform: scale(.94) translateY(12px); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.bf-splash.show .bf-splash-box { transform: none; }
.bf-splash-link { position: relative; display: block; color: var(--splash-color); text-decoration: none; }
a.bf-splash-link[href] { cursor: pointer; }
.bf-splash-link img { display: block; width: 100%; max-height: calc(100vh - 40px); object-fit: cover; }
.bf-splash-link::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, var(--splash-overlay)); }
.bf-splash-content {
    position: absolute; inset-inline: clamp(12px, 4vw, 40px); margin-block: clamp(12px, 3vw, 28px); z-index: 1; padding: clamp(20px, 5vw, 48px);
    background: rgba(255, 255, 255, .3); border-radius: 14px; backdrop-filter: blur(2px);
    display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
}
.bf-splash.pos-top .bf-splash-content { top: 0; }
.bf-splash.pos-center .bf-splash-content { top: 50%; transform: translateY(-50%); }
.bf-splash.pos-bottom .bf-splash-content { bottom: 0; }
.bf-splash-title { font-size: clamp(1.35rem, 3.6vw, 2.4rem); font-weight: 800; line-height: 1.35; text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.bf-splash-text { font-size: clamp(.92rem, 1.8vw, 1.1rem); line-height: 1.9; max-width: 640px; opacity: .95; }
.bf-splash-btn {
    margin-top: 6px; padding: 10px 26px; border-radius: 999px;
    background: var(--bf-red, #cc2131); color: #fff; font-weight: 700; font-size: .95rem;
    transition: transform .2s, background .2s;
}
a.bf-splash-link[href]:hover .bf-splash-btn { background: var(--bf-red-dark, #a81926); transform: translateY(-2px); }
.bf-splash-close {
    position: absolute; top: 12px; inset-inline-end: 12px; z-index: 3;
    width: 38px; height: 38px; border: 0; border-radius: 50%;
    background: rgba(0, 0, 0, .45); color: #fff; font-size: 1rem;
    display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.bf-splash-close:hover { background: var(--bf-red, #cc2131); }
.bf-splash-timer {
    position: absolute; bottom: 0; inset-inline-start: 0; z-index: 2; height: 3px; width: 100%;
    background: var(--bf-red, #cc2131); transform-origin: left; animation: bf-splash-timer linear forwards;
}
[dir="rtl"] .bf-splash-timer { transform-origin: right; }
@keyframes bf-splash-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
/* ==========================================================================
   Real-Time Ajax Filter Loading State
   ========================================================================== */
#productGridContainer {
    position: relative;
    min-height: 250px;
    transition: opacity 0.2s ease;
}
#productGridContainer.is-loading {
    opacity: 0.45;
    pointer-events: none;
}
.bf-filter-spinner {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.92);
    padding: 12px 24px;
    border-radius: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #cc2131;
}

/* ==========================================================================
   Global Categorized Search Results
   ========================================================================== */
.bf-search-results-tabs {
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.bf-search-tab {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 8px 16px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: -2px;
    transition: all 0.2s;
}
.bf-search-tab:hover {
    color: #111827;
}
.bf-search-tab.active {
    color: #cc2131;
    border-bottom-color: #cc2131;
}
.bf-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    transition: background 0.15s;
    text-decoration: none !important;
    color: #1f2937;
}
.bf-search-item:hover {
    background: #f3f4f6;
}
.bf-search-item-img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f9fafb;
}
.bf-search-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background: #fee2e2;
    color: #cc2131;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}





/* ===== Product attributes ===== */
.bf-attr-values { display: flex; flex-wrap: wrap; gap: .5rem; }
.bf-attr-sw { border: 2px solid transparent; background: none; padding: 2px; cursor: pointer; line-height: 0; border-radius: 8px; transition: border-color .15s, transform .15s; position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: .35rem; }
.bf-attr-sw > span:not(.bf-attr-sw-caption), .bf-attr-sw > img { display: block; border-radius: 6px; object-fit: cover; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.bf-attr-sw.shape-circle > span:not(.bf-attr-sw-caption), .bf-attr-sw.shape-circle > img { border-radius: 50%; }
.bf-attr-sw-caption { display: block; max-width: 88px; font-size: .72rem; line-height: 1.35; color: #555; text-align: center; white-space: normal; }
.bf-attr-sw.active .bf-attr-sw-caption { color: var(--bf-red, #c0262d); font-weight: 600; }
.bf-attr-sw.is-text { line-height: 1.4; padding: .45rem .9rem; border: 1px solid #d7d7d7; border-radius: 999px; font-size: .85rem; color: inherit; }
.bf-attr-sw:hover:not(:disabled) { transform: translateY(-1px); }
.bf-attr-sw.active { border-color: var(--bf-red, #c0262d); }
.bf-attr-sw.is-text.active { background: var(--bf-red, #c0262d); color: #fff; }
.bf-attr-values.is-radio { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; }
.bf-attr-radio { display: inline-flex; align-items: center; gap: .55rem; background: none; border: 0; padding: .15rem 0; font: inherit; font-size: .92rem; color: inherit; cursor: pointer; }
.bf-attr-radio .dot { position: relative; flex: none; width: 18px; height: 18px; border: 2px solid #b9b3b5; border-radius: 50%; transition: border-color .15s; }
.bf-attr-radio.active .dot { border-color: var(--bf-red); }
.bf-attr-radio.active .dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--bf-red); }
.bf-attr-radio small { color: var(--bf-muted); }
.bf-attr-radio:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.bf-attr-sw:disabled { opacity: .35; cursor: not-allowed; }
.bf-attr-sw:disabled::after { content: ''; position: absolute; inset: 50% 0 auto; border-top: 2px solid #c0262d; transform: rotate(-35deg); }
.bf-attr-children { margin-top: .75rem; padding-inline-start: .75rem; border-inline-start: 2px solid #eee; }
.bf-attr-select { max-width: 420px; }
[data-theme="dark"] .bf-attr-sw.is-text { border-color: #444; }

/* توضیحات انگلیسی اصلی زیر معرفی فارسی خودکار */
.bf-desc-orig { margin-top: 1rem; border-top: 1px dashed #e4e4e7; padding-top: .75rem; }
.bf-desc-orig > summary { cursor: pointer; color: #71717a; font-size: .85rem; }
.bf-desc-orig > div { margin-top: .75rem; text-align: left; }


/* توضیحات مشخصه‌های قابل انتخاب */
.bf-option-help { font-size: .82rem; color: var(--bf-muted, #71717a); margin: -.25rem 0 .65rem; line-height: 1.55; }
.bf-option-detail { margin-top: .65rem; padding: .7rem .85rem; background: #f7f7f8; border-radius: 10px; font-size: .85rem; line-height: 1.6; color: #3f3f46; border: 1px solid #ececee; }
.bf-option-detail[hidden], .bf-option-help:empty { display: none !important; }
[data-theme="dark"] .bf-option-detail { background: #27272a; border-color: #3f3f46; color: #e4e4e7; }


/* contact locations (stores / showrooms / warehouses) */
.bf-locations-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.bf-location { background: #fff; border: 1px solid var(--bf-border, #eee); border-radius: var(--bf-radius, 12px); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.bf-location:hover { box-shadow: 0 14px 34px rgba(0,0,0,.08); transform: translateY(-2px); }
.bf-location .map-picker-canvas { border: 0; border-radius: 0; }
.bf-location-body { padding: 1.25rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.bf-location-type { align-self: flex-start; font-size: .78rem; font-weight: 600; color: var(--bf-red, #cc2131); background: rgba(204,33,49,.08); padding: .2rem .7rem; border-radius: 999px; }
.bf-location h3 { font-size: 1.1rem; font-weight: 700; margin: .2rem 0 .3rem; }
.bf-location ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .45rem; font-size: .9rem; color: #555; line-height: 1.9; }
.bf-location li { display: flex; gap: .55rem; align-items: flex-start; }
.bf-location li > .bi { color: var(--bf-muted, #888); margin-top: .3rem; flex: none; }
.bf-location li a { color: inherit; }
.bf-location li a:hover { color: var(--bf-red, #cc2131); }
.bf-location .sep { margin-inline: .4rem; opacity: .4; }
.bf-location-route { margin-top: auto; align-self: flex-start; font-size: .85rem; font-weight: 600; border: 1px solid var(--bf-dark, #222); border-radius: 999px; padding: .35rem 1rem; color: var(--bf-dark, #222); }
.bf-location-route:hover { background: var(--bf-dark, #222); color: #fff; }
.bf-locations-grid.is-single { grid-template-columns: minmax(0, 1fr); }
.bf-locations-grid.is-single .bf-location { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.bf-locations-grid.is-single .bf-location:hover { transform: none; }
.bf-locations-grid.is-single .bf-location-body { padding: 2rem 2.2rem; justify-content: center; }
.bf-locations-grid.is-single .bf-location h3 { font-size: 1.4rem; }
.bf-locations-grid.is-single .bf-location-body:only-child { grid-column: 1 / -1; }
@media (max-width: 767.98px) { .bf-locations-grid.is-single .bf-location { grid-template-columns: minmax(0, 1fr); } .bf-locations-grid.is-single .bf-location-body { padding: 1.4rem; } }

/* Lazy load lists */
.bf-lazy-more{display:flex;justify-content:center;margin-top:2.5rem}
.bf-lazy-more.is-loading button{opacity:.6;pointer-events:none}
.bf-lazy-more.is-loading button::after{content:"";display:inline-block;width:1em;height:1em;margin-inline-start:.5rem;vertical-align:-.15em;border:2px solid currentColor;border-inline-end-color:transparent;border-radius:50%;animation:bf-spin .7s linear infinite}
@keyframes bf-spin{to{transform:rotate(360deg)}}

/* QR accordion */
.bf-qr{display:flex;gap:1.5rem;align-items:center;flex-wrap:wrap}
.bf-qr-code{flex:0 0 auto;width:180px;aspect-ratio:1;padding:.6rem;background:#fff;border:1px solid #e5e5e5;border-radius:12px}
.bf-qr-code svg{display:block;width:100%;height:100%}
.bf-qr-code svg .dark,.bf-qr-code svg path{fill:#111}
.bf-qr-info{flex:1 1 220px;min-width:0}
.bf-qr-url{display:block;font-size:.8rem;color:#555;background:#f6f6f6;border-radius:8px;padding:.45rem .7rem;word-break:break-all;text-align:left}
@media (max-width:575.98px){.bf-qr{justify-content:center;text-align:center}.bf-qr-code{width:160px}}
