/*
 * صفحهٔ عمومی کسب‌وکار جمیاب — ویترین (بازطراحی ۲۰۲۶-۱۰-۱۵).
 *
 * زبان بصری: editorial و گرم؛ کاور-محور در سرصفحه، نوار اطلاعات شناور، کارت‌های
 * آرام با سایهٔ نرم و تیترهای نشانه‌دار. mobile-first، RTL و همخوان با عمودی‌ها.
 * همهٔ شناسه/کلاس‌هایی که اسکریپت (lightbox/صفحه‌بندی) و تست‌ها به آن‌ها تکیه
 * دارند حفظ شده‌اند.
 */

:root {
    /* کنترل بومی (اسکرول‌بار و کنترل‌های فرم) همیشه روشن بماند. */
    color-scheme: light;

    --bp-bg: #f4f1ea;
    --bp-card: #ffffff;
    --bp-card-2: #fbfaf6;
    --bp-text: #23252b;
    --bp-muted: #6f737d;
    --bp-line: #e8e3d8;
    --bp-line-strong: #d8d1c2;

    --bp-primary: #bf3b2c;
    --bp-primary-dark: #8f2a1e;
    --bp-primary-soft: #fbece9;
    --bp-gold: #cf9a12;
    --bp-gold-soft: #fbf3dd;
    --bp-green: #1f9d63;
    --bp-green-soft: #e6f6ee;

    --bp-radius: 18px;
    --bp-radius-lg: 26px;
    --bp-shadow: 0 1px 2px rgba(26, 21, 14, 0.04), 0 14px 32px -20px rgba(26, 21, 14, 0.32);
    --bp-shadow-lg: 0 2px 6px rgba(26, 21, 14, 0.06), 0 34px 70px -34px rgba(26, 21, 14, 0.45);
    --bp-container-width: 1120px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(1200px 500px at 100% -10%, var(--bp-bg-soft, #fbf7ef) 0%, transparent 60%),
        var(--bp-bg, #f4f1ea);
    color: var(--bp-text);
    font-family: Vazirmatn, "Segoe UI", Tahoma, sans-serif;
    line-height: 1.85;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

/*
 * لایهٔ طرح پس‌زمینه: یک کاشی SVG که کل صفحه را یکنواخت پر می‌کند. ثابت است
 * تا بالا/پایین صفحه و فضای دور کارت‌ها همیشه پوشیده بماند؛ کارت‌ها روی آن
 * قرار می‌گیرند و طرح فقط در فاصله‌ها دیده می‌شود. کاشی با رنگ پالت در سرور
 * ساخته می‌شود؛ اینجا هیچ رنگ ثابتی وجود ندارد.
 */
.bp-pattern-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image: var(--bp-pattern, none);
    background-size: var(--bp-pattern-size, 160px) var(--bp-pattern-size, 160px);
    background-repeat: repeat;
    pointer-events: none;
}

/*
 * بدنه هنگام کاور، کلاس bp-hero-cover می‌گیرد و طبق قاعدهٔ کاور، عکس گالری
 * را روی کل صفحه می‌کشد. در حالت طرح، این عکس رنگ پالت را آلوده می‌کند
 * (مثلاً کاور قرمز زیر طرح سبز)؛ پس فقط وقتی طرح فعال است، بدنه به همان
 * پس‌زمینهٔ پالت برمی‌گردد و عکس صرفاً در سرصفحه می‌ماند.
 */
body.bp-pattern-on {
    background-image:
        radial-gradient(1200px 500px at 100% -10%, var(--bp-bg-soft, #fbf7ef) 0%, transparent 60%),
        var(--bp-bg, #f4f1ea);
    background-size: auto;
    background-position: 0 0;
}

.bp-hero,
.bp-quickbar,
.bp-main,
.bp-footer {
    position: relative;
    z-index: 1;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.bp-container {
    width: 100%;
    max-width: var(--bp-container-width);
    margin: 0 auto;
    padding: 0 16px;
}

/* ==================================================================
   سرصفحه (hero)
   ================================================================== */

.bp-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    padding: 30px 0 34px;
    background: linear-gradient(135deg, var(--bp-hero-from, #c0422f) 0%, var(--bp-hero-to, #8f2a1e) 100%);
}

/* کاور تمام‌عرض با پوشش تیرهٔ خوانا (تصویر گالری نخست). */
.bp-hero-cover {
    background-image: var(--bp-cover);
    background-size: cover;
    background-position: center;
}

.bp-hero-scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(18, 14, 12, 0.48) 0%, rgba(18, 14, 12, 0.28) 42%, rgba(14, 10, 8, 0.82) 100%),
        linear-gradient(120deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.34) 100%);
}

.bp-hero-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bp-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.bp-logo {
    width: 76px;
    height: 76px;
    flex: 0 0 auto;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.14);
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
}

.bp-logo img { width: 100%; height: 100%; object-fit: cover; }

.bp-brand-text { min-width: 0; }

.bp-brand-text h1 {
    margin: 0 0 8px;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.25;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.bp-badges { display: flex; flex-wrap: wrap; gap: 6px; }

.bp-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 3px 11px;
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
    backdrop-filter: blur(4px);
}

.bp-chip-gold {
    background: rgba(255, 214, 122, 0.2);
    border-color: rgba(255, 214, 122, 0.42);
    color: #ffe6a3;
}

.bp-chip.bp-open {
    background: rgba(31, 157, 99, 0.32);
    border-color: rgba(120, 230, 175, 0.4);
    color: #d6ffe9;
}

.bp-chip.bp-closed {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffd9d3;
}

.bp-chip-gender-women {
    background: rgba(224, 82, 148, 0.32);
    border-color: rgba(255, 180, 214, 0.42);
    color: #ffd7ea;
}

.bp-chip-gender-men {
    background: rgba(52, 120, 214, 0.34);
    border-color: rgba(160, 200, 255, 0.42);
    color: #d6e6ff;
}

.bp-actions { display: flex; flex-wrap: wrap; gap: 9px; }

/* «مشاهده روی نقشه» و «صفحه اصلی» همیشه کنار هم می‌مانند تا در موبایل هم
   «صفحه اصلی» دقیقاً سمت چپ دکمهٔ نقشه بماند. */
.bp-actions-group { display: flex; flex-wrap: nowrap; gap: 9px; }

.bp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.32);
    color: #fff;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(6px);
    transition: background 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}

.bp-btn:hover { background: rgba(255, 255, 255, 0.26); transform: translateY(-1px); }
.bp-btn:focus-visible { outline: 3px solid rgba(255, 255, 255, 0.7); outline-offset: 2px; }

.bp-btn-primary {
    background: #fff;
    color: var(--bp-primary-dark);
    border-color: #fff;
    font-weight: 700;
    box-shadow: 0 12px 26px -14px rgba(0, 0, 0, 0.7);
}

.bp-btn-primary:hover { background: #fff2ef; }

/* در موبایل چهار دکمهٔ اقدام در یک ردیف چهارستونه می‌نشینند (بدون سرریز). */
@media (max-width: 639px) {
    .bp-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
    .bp-actions-group { display: contents; }
    .bp-actions .bp-btn { flex-direction: column; gap: 5px; min-width: 0; padding: 9px 4px; font-size: 11.5px; line-height: 1.2; }
    .bp-actions .bp-btn svg { width: 20px; height: 20px; }
}

/* ==================================================================
   نوار اطلاعات شناور (quick facts)
   ================================================================== */

.bp-quickbar { position: relative; z-index: 3; margin-top: -26px; }

.bp-quickbar-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 4px 16px;
    background: var(--bp-card);
    border: 1px solid var(--bp-line);
    border-radius: var(--bp-radius-lg);
    box-shadow: var(--bp-shadow-lg);
    padding: 12px 16px;
}

.bp-quick {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px 6px;
    min-width: 0;
    border-radius: 14px;
    text-align: start;
}

a.bp-quick:hover { background: var(--bp-card-2); }

.bp-quick-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 12px;
    background: var(--bp-primary-soft);
    color: var(--bp-primary);
}

.bp-quick-ico.is-open { background: var(--bp-green-soft); color: var(--bp-green); }
.bp-quick-ico.is-closed { background: #fdecea; color: var(--bp-primary); }
.bp-quick-ico.is-gold { background: var(--bp-gold-soft); color: var(--bp-gold); }

.bp-quick-body { display: flex; flex-direction: column; min-width: 0; }
.bp-quick-body b { font-size: 14px; font-weight: 700; line-height: 1.4; }
.bp-quick-body small { color: var(--bp-muted); font-size: 12.5px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ==================================================================
   چیدمان اصلی
   ================================================================== */

.bp-main { padding: 24px 16px 48px; }

.bp-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

.bp-col-main,
.bp-col-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* ==================================================================
   کارت‌ها و سرتیتر بخش‌ها
   ================================================================== */

.bp-card {
    position: relative;
    background: var(--bp-card);
    border: 1px solid var(--bp-line);
    border-radius: var(--bp-radius-lg);
    padding: 20px;
    box-shadow: var(--bp-shadow);
}

.bp-card-title {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--bp-text, #2a2c33);
}

/* نشانهٔ آیکون تیتر: کاشی رنگی کوچک. */
.bp-card-title::before {
    content: "";
    display: none;
}

.bp-card-title > i,
.bp-card-title > svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 11px;
    background: var(--bp-primary-soft);
    color: var(--bp-primary);
}

.bp-count {
    margin-inline-start: auto;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--bp-muted);
    background: var(--bp-card-2);
    border: 1px solid var(--bp-line);
    border-radius: 999px;
    padding: 2px 10px;
    white-space: nowrap;
}

.bp-about { color: var(--bp-text, #3a3d44); white-space: normal; font-size: 15px; }

.bp-restricted { border-color: #f0c2d6; background: #fff6fb; }
.bp-restricted .bp-card-title { color: #b03a72; }
.bp-restricted .bp-card-title > i,
.bp-restricted .bp-card-title > svg { background: #fbe0ee; color: #b03a72; }
.bp-restricted-text { margin: 0; font-size: 14px; line-height: 1.95; color: #7a4560; }

/* ==================================================================
   منو / خدمات
   ================================================================== */

.bp-menu-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 16px;
}

.bp-menu-tab {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--bp-line);
    background: var(--bp-card-2);
    color: var(--bp-text, #4a4d55);
    border-radius: 999px;
    padding: 5px 13px;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.bp-menu-tab:hover { background: var(--bp-primary-soft); border-color: #f0cfc9; color: var(--bp-primary-dark); }

.bp-menu-group { scroll-margin-top: 80px; }
.bp-menu-group + .bp-menu-group { margin-top: 24px; }

.bp-menu-cat {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--bp-text, #2b2d33);
}

.bp-menu-cat::before {
    content: "";
    width: 4px;
    height: 18px;
    border-radius: 3px;
    background: var(--bp-primary);
}

.bp-menu-list { list-style: none; margin: 0; padding: 0; }

.bp-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed #eceae2;
}

.bp-menu-item:last-child { border-bottom: none; }

.bp-menu-thumb {
    width: 56px;
    height: 56px;
    flex: 0 0 auto;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid var(--bp-line);
    background: #f0efea;
}

.bp-menu-name {
    flex: 0 1 auto;
    min-width: 0;
    font-size: 14.5px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    /* نام‌های بلندِ بدون فاصله (مثل دادهٔ آزمون یا نام‌های لاتین پیوسته) نباید
       عرض صفحهٔ ویترین را از دید کاربر بیرون بزنند. */
    overflow-wrap: anywhere;
    word-break: break-word;
}

.bp-menu-sub { color: var(--bp-muted); font-size: 12px; font-weight: 400; }

/* ردیف نقطه‌چین میان نام و قیمت، مثل منوی کلاسیک. */
.bp-menu-dots {
    flex: 1;
    min-width: 12px;
    align-self: center;
    border-bottom: 2px dotted var(--bp-line-strong);
    transform: translateY(-3px);
}

.bp-menu-price {
    color: var(--bp-primary-dark);
    font-weight: 700;
    white-space: nowrap;
    font-size: 14px;
}

.bp-menu-price small { font-weight: 500; color: var(--bp-muted); font-size: 11px; }

/* ==================================================================
   گالری
   ================================================================== */

.bp-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.bp-gallery-item {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--bp-line);
    aspect-ratio: 1 / 1;
    background: #f0efea;
}

/* تصویر نخست شاخص ۲×۲. */
.bp-gallery-featured { grid-column: span 2; grid-row: span 2; }

.bp-gallery-btn {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: zoom-in;
    color: #fff;
}

.bp-gallery-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.2, .7, .3, 1); }
.bp-gallery-btn:focus-visible { outline: 3px solid var(--bp-primary); outline-offset: -3px; }

.bp-gallery-zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.55) 100%);
    opacity: 0;
    transition: opacity .25s ease;
}

.bp-gallery-zoom svg { transform: translateY(6px) scale(.92); transition: transform .25s ease; }

.bp-gallery-btn:hover .bp-gallery-zoom,
.bp-gallery-btn:focus-visible .bp-gallery-zoom { opacity: 1; }
.bp-gallery-btn:hover .bp-gallery-zoom svg,
.bp-gallery-btn:focus-visible .bp-gallery-zoom svg { transform: translateY(0) scale(1); }
.bp-gallery-btn:hover img { transform: scale(1.06); }

@media (hover: none) {
    .bp-gallery-zoom {
        opacity: 1;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, 0.35) 100%);
    }
}

/* ==================================================================
   نمایشگر تمام‌صفحهٔ تصاویر (lightbox)
   ================================================================== */

.bp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(12, 13, 16, 0.94);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    color: #fff;
}

.bp-lightbox[hidden] { display: none; }

.bp-lightbox-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
}

.bp-lightbox-count { font-size: 13.5px; color: #d6d8e0; }

.bp-lightbox-btn,
.bp-lightbox-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    transition: background .2s ease;
}

.bp-lightbox-btn:hover,
.bp-lightbox-nav:hover { background: rgba(255, 255, 255, 0.24); }
.bp-lightbox-btn:focus-visible,
.bp-lightbox-nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.bp-lightbox-stage {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px 20px;
    min-height: 0;
}

.bp-lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(0, 0, 0, 0.45); }
.bp-lightbox-prev { right: 10px; }
.bp-lightbox-next { left: 10px; }

.bp-lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 14px;
    background: #1b1c21;
}

.bp-lightbox-nav:disabled { opacity: .35; cursor: default; }

body.bp-lightbox-open { overflow: hidden; }

/* ==================================================================
   ساعت کاری و تماس
   ================================================================== */

.bp-open-line { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }

.bp-open-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    padding: 4px 13px;
    font-size: 13px;
    font-weight: 700;
}

.bp-open-badge.bp-open { background: var(--bp-green-soft); color: var(--bp-green); }
.bp-open-badge.bp-closed { background: var(--bp-primary-soft); color: var(--bp-primary); }
.bp-open-hint { color: var(--bp-muted); font-size: 13px; }

.bp-hours { list-style: none; margin: 0; padding: 0; }

.bp-hours-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 14px;
}

.bp-hours-row + .bp-hours-row { margin-top: 3px; }

.bp-hours-today { background: var(--bp-primary-soft); border: 1px solid #f2d3ce; font-weight: 700; }

.bp-hours-day small { color: var(--bp-muted); font-weight: 500; }
.bp-hours-range { color: var(--bp-text, #3a3d44); white-space: nowrap; }
.bp-hours-closed { color: var(--bp-primary); }

.bp-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }

.bp-contact li { display: flex; align-items: flex-start; gap: 10px; color: var(--bp-text, #3a3d44); font-size: 14px; }
.bp-contact li > i, .bp-contact li > svg { color: var(--bp-primary); flex: 0 0 auto; margin-top: 3px; }
.bp-contact a { color: var(--bp-primary-dark); direction: ltr; font-weight: 600; }

/* ==================================================================
   نظرات
   ================================================================== */

.bp-rating-head { display: flex; align-items: baseline; gap: 7px; margin-bottom: 16px; }
.bp-rating-value { font-size: 30px; font-weight: 800; color: var(--bp-gold); line-height: 1; }
.bp-rating-outof { color: var(--bp-muted); font-size: 13px; }
.bp-rating-count { color: var(--bp-muted); font-size: 13px; }

.bp-reviews { display: flex; flex-direction: column; gap: 12px; }

.bp-review {
    border: 1px solid var(--bp-line);
    border-radius: var(--bp-radius);
    padding: 14px;
    background: var(--bp-card-2);
    position: relative;
}

/* آواتار حرف اول نام کسب‌وکار/نظر دهنده؟ اینجا بازبین نیست؛ ردیف امتیاز-تاریخ. */
.bp-review-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 8px;
}

.bp-review-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--bp-gold);
    font-weight: 700;
    background: var(--bp-gold-soft);
    border-radius: 999px;
    padding: 3px 10px;
}

.bp-review-date { color: var(--bp-muted); }
.bp-review-comment { margin: 0; color: var(--bp-text, #3a3d44); }

.bp-review-reply {
    margin-top: 10px;
    background: #f2f8ff;
    border: 1px solid #d9e9fb;
    border-radius: 12px;
    padding: 9px 12px;
    font-size: 13.5px;
    color: #2c4a6b;
}

.bp-reviews-card { margin-top: 16px; scroll-margin-top: 16px; }
.bp-reviews-card.is-loading .bp-reviews { opacity: 0.45; transition: opacity 0.15s ease; }

.bp-ico { display: inline-flex; align-items: center; }

.bp-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 18px; }

.bp-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 9px;
    border: 1px solid var(--bp-line);
    border-radius: 12px;
    background: var(--bp-card, #fff);
    color: var(--bp-text, #3a3d44);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.bp-page-btn:hover { background: var(--bp-card-2, #f6f4ef); border-color: var(--bp-line-strong); }

.bp-page-btn.is-active { background: var(--bp-primary); border-color: var(--bp-primary); color: #fff; cursor: default; }

.bp-page-gap { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 38px; color: var(--bp-muted); }

/* ==================================================================
   پابرگ
   ================================================================== */

.bp-footer { background: var(--bp-hero-to, #23252b); color: #d9dae0; padding: 18px 0; font-size: 13px; }

.bp-footer .bp-container { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bp-footer a { display: inline-flex; align-items: center; gap: 7px; color: #fff; font-weight: 600; }
.bp-footer a:hover { color: #ffd9d3; }
.bp-copy { color: #9a9ca6; }

/* ==================================================================
   واکنش‌گرایی
   ================================================================== */

@media (min-width: 640px) {
    body { font-size: 15.5px; }
    .bp-hero { padding: 44px 0 48px; }
    .bp-brand-text h1 { font-size: 30px; }
    .bp-logo { width: 96px; height: 96px; }
    .bp-gallery { grid-template-columns: repeat(3, 1fr); }
    .bp-main { padding: 28px 16px 56px; }
    .bp-lightbox-stage { padding: 0 22px 26px; }
    .bp-lightbox-prev { right: 22px; }
    .bp-lightbox-next { left: 22px; }
    .bp-lightbox-img { border-radius: 18px; }
}

@media (min-width: 960px) {
    .bp-hero { padding: 56px 0 64px; }
    .bp-hero-inner { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 28px; }
    .bp-actions { justify-content: flex-end; }
    .bp-grid { grid-template-columns: minmax(0, 1fr) 348px; align-items: start; }
    /* وقتی ستون اصلی خالی است، ویترین تک‌ستونهٔ وسط‌چین می‌شود تا فضای خالیِ
       نامتوازنِ سمت راست ایجاد نشود. */
    .bp-grid-solo { grid-template-columns: minmax(0, 1fr); max-width: 700px; margin-inline: auto; }
    .bp-col-side { position: sticky; top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}

/* ==================================================================
   قالب‌های ظاهر ویترین (انتخاب مدیر)
   ------------------------------------------------------------------
   قالب فقط زبان بصری را عوض می‌کند؛ ساختار و شناسه‌های اسکریپت/تست
   دست‌نخورده می‌مانند. رنگ‌ها همیشه از متغیرهای پالت می‌آیند.
   ================================================================== */

.bp-hero-plain .bp-hero-scrim {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.16) 45%, rgba(0, 0, 0, 0.34) 100%);
}

/* مینیمال: روشن، بدون سایه، گوشه‌های کم‌گرد و تیتر سبک‌تر. */
.bp-template-minimal {
    --bp-radius: 10px;
    --bp-radius-lg: 14px;
    --bp-shadow: none;
    --bp-shadow-lg: 0 1px 2px rgba(20, 24, 28, 0.06);
}

.bp-template-minimal .bp-brand-text h1 {
    font-size: clamp(23px, 4.6vw, 30px);
    font-weight: 650;
    letter-spacing: 0;
}

.bp-template-minimal .bp-hero-scrim {
    background:
        linear-gradient(180deg, rgba(16, 18, 20, 0.32) 0%, rgba(16, 18, 20, 0.2) 45%, rgba(12, 14, 16, 0.58) 100%);
}

.bp-template-minimal .bp-hero-plain .bp-hero-scrim {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.12));
}

.bp-template-minimal .bp-card { box-shadow: none; }

.bp-template-minimal .bp-card-title > i,
.bp-template-minimal .bp-card-title > svg {
    background: transparent;
    border: 1px solid var(--bp-line);
    color: var(--bp-primary);
}

.bp-template-minimal .bp-quickbar-inner { box-shadow: 0 1px 2px rgba(20, 24, 28, 0.06); }

.bp-template-minimal .bp-gallery-zoom { background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.34)); }

/* پرقدرت: تیتر درشت، گوشه‌های تیز و نوار رنگی روی کارت‌ها. */
.bp-template-bold {
    --bp-radius: 6px;
    --bp-radius-lg: 10px;
}

.bp-template-bold .bp-hero {
    padding: clamp(30px, 6.4vw, 68px) 0 clamp(34px, 7vw, 76px);
    border-bottom: 6px solid var(--bp-primary);
}

.bp-template-bold .bp-brand-text h1 {
    font-size: clamp(27px, 6vw, 42px);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.bp-template-bold .bp-chip { border-radius: 6px; }

.bp-template-bold .bp-btn { border-radius: 6px; }

.bp-template-bold .bp-card {
    border-top: 4px solid var(--bp-primary);
    box-shadow: 0 2px 0 rgba(20, 22, 26, 0.04), var(--bp-shadow);
}

.bp-template-bold .bp-card-title > i,
.bp-template-bold .bp-card-title > svg { border-radius: 6px; }

.bp-template-bold .bp-menu-cat::before { width: 6px; height: 20px; border-radius: 2px; }

.bp-template-bold .bp-quickbar-inner { border-top: 4px solid var(--bp-primary); }

/* بوتیک: برند وسط‌چین، لوگوی دایره‌ای و جزئیات طلایی. */
.bp-template-boutique {
    --bp-radius: 24px;
    --bp-radius-lg: 34px;
}

.bp-template-boutique .bp-hero-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 22px;
}

.bp-template-boutique .bp-brand {
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.bp-template-boutique .bp-logo {
    border-radius: 50%;
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.72);
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.14), 0 16px 36px -14px rgba(0, 0, 0, 0.65);
}

.bp-template-boutique .bp-brand-text h1 {
    font-size: clamp(22px, 4.4vw, 31px);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.bp-template-boutique .bp-badges { justify-content: center; }

.bp-template-boutique .bp-actions { justify-content: center; }

.bp-template-boutique .bp-card {
    border-color: var(--bp-line-strong);
    box-shadow: 0 1px 0 var(--bp-gold-soft), var(--bp-shadow);
}

.bp-template-boutique .bp-card-title > i,
.bp-template-boutique .bp-card-title > svg {
    background: var(--bp-gold-soft);
    color: var(--bp-gold);
}

.bp-template-boutique .bp-quickbar-inner {
    outline: 1px solid var(--bp-line);
    outline-offset: 3px;
}

.bp-template-boutique .bp-menu-cat::before { background: var(--bp-gold); }

/* ==================================================================
   چیدمان‌های ویترین (انتخاب مدیر)
   ================================================================== */

.bp-layout-centered .bp-col-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }

.bp-layout-centered .bp-hero-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.bp-layout-centered .bp-brand {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.bp-layout-centered .bp-badges,
.bp-layout-centered .bp-actions { justify-content: center; }

.bp-layout-compact .bp-main { padding-top: 16px; }

.bp-layout-compact .bp-grid,
.bp-layout-compact .bp-col-main,
.bp-layout-compact .bp-col-side { gap: 11px; }

.bp-layout-compact .bp-card { padding: 15px; }

.bp-layout-compact .bp-quickbar-inner { padding: 8px 12px; }

.bp-layout-compact .bp-hero { padding-top: clamp(22px, 4vw, 40px); padding-bottom: clamp(26px, 4.4vw, 46px); }

@media (min-width: 640px) {
    .bp-layout-centered .bp-col-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bp-layout-compact .bp-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
    .bp-layout-centered .bp-grid,
    .bp-layout-centered .bp-grid-solo {
        grid-template-columns: minmax(0, 1fr);
        max-width: 780px;
        margin-inline: auto;
    }

    .bp-layout-centered .bp-col-side { position: static; }

    .bp-layout-compact .bp-grid { grid-template-columns: minmax(0, 1fr) 320px; }
}

/* ==================================================================
   طرح پس‌زمینه روی سرصفحه/پابرگ
   ==================================================================
   لایهٔ ثابت فقط فضای بین بخش‌ها را پر می‌کند؛ برای یکنواختی کامل، همان
   کاشی پالت روی سرصفحهٔ بدون عکس و پابرگ هم تکرار می‌شود. سرصفحهٔ عکس‌دار
   عمداً طرح نمی‌گیرد تا خوانایی عکس و مودریشن حفظ شود. */

body.bp-pattern-on .bp-hero:not(.bp-hero-cover) {
    background-image:
        var(--bp-pattern, none),
        linear-gradient(135deg, var(--bp-hero-from, #c0422f) 0%, var(--bp-hero-to, #8f2a1e) 100%);
    background-size:
        var(--bp-pattern-size, 160px) var(--bp-pattern-size, 160px),
        100% 100%;
    background-repeat: repeat, no-repeat;
}

body.bp-pattern-on .bp-footer {
    background-image: var(--bp-pattern, none);
    background-size: var(--bp-pattern-size, 160px) var(--bp-pattern-size, 160px);
    background-repeat: repeat;
}

@media print {
    .bp-pattern-layer { display: none; }
}
