/* Banasree site styles (moved out of base.html so browsers cache them) - 2026-11-12 */
:root {
            --brand: #1B4D3E;        /* Banasree green (logo) */
            --brand-dark: #153D31;
            --brand-maroon: #701E2A; /* secondary */
            --brand-gold: #B07D2B;   /* accent */
            --ink: #1F2421;          /* headings */
            --text: #3A3F3C;         /* body text */
            --muted: #6B706C;        /* secondary text */
            --paper: #FAF8F3;
            --rule: #E7E3DA;
        }
        html { -webkit-text-size-adjust: 100%; }
        body {
            color: var(--text);
            font-size: 16px;
            line-height: 1.65;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            text-rendering: optimizeLegibility;
            font-feature-settings: "kern" 1;
        }
        ::selection { background: rgba(27,77,62,.15); color: var(--ink); }

        /* Headings: classic book serif (Lora) — Bengali glyphs fall back to BanasreeBangla */
        h1, h2, h3, h4, h5, h6, .font-serif {
            font-family: 'Lora', 'BanasreeBangla', 'Noto Serif Bengali', Georgia, serif !important;
            color: var(--ink);
            letter-spacing: -0.005em;
            line-height: 1.3;
        }
        h1 { font-weight: 600; }
        h2, h3 { font-weight: 600; }

        /* Bengali: more line height so matras/conjuncts never clip */
        html[lang="bn"] body { line-height: 1.8; }
        html[lang="bn"] h1, html[lang="bn"] h2, html[lang="bn"] h3,
        html[lang="bn"] h4, html[lang="bn"] h5, html[lang="bn"] h6 { line-height: 1.45; letter-spacing: 0; }
        html[lang="bn"] p, html[lang="bn"] li { line-height: 1.85; }

        /* Arabic: Amiri (classic Naskh, book style) for headings, Noto Naskh for text */
        html[lang="ar"] body { line-height: 1.9; }
        html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
        html[lang="ar"] h4, html[lang="ar"] h5, html[lang="ar"] h6 {
            font-family: 'Amiri', 'Noto Naskh Arabic', serif !important;
            line-height: 1.6; letter-spacing: 0; font-weight: 700;
        }

        /* Areas forced to English (e.g. footer) always use the Latin stack */
        [lang="en"], [lang="en"] p, [lang="en"] span, [lang="en"] a, [lang="en"] div, [lang="en"] li, [lang="en"] button {
            font-family: 'Inter', 'BanasreeBangla', sans-serif !important;
        }
        [lang="en"] h1, [lang="en"] h2, [lang="en"] h3, [lang="en"] h4, [lang="en"] h5, [lang="en"] h6 {
            font-family: 'Lora', Georgia, serif !important;
        }

        /* ---- Brand identity (inspired by classic publisher sites) ---- */
        #brand-topbar { background: var(--brand); color: rgba(255,255,255,.82); font-size: 12.5px; letter-spacing: .02em; }
        #brand-topbar a { color: rgba(255,255,255,.85); display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
        #brand-topbar a:hover { color: #E3C27A; }
        #brand-topbar i { color: #E3C27A; font-size: 14px; }
        #brand-topbar .brand-tagline { font-family: 'Lora', Georgia, serif !important; font-style: italic; color: rgba(255,255,255,.75); }
        @media (min-width: 1024px) { .main-content-wrapper { padding-top: 117px !important; } }

        #desktop-nav > a, #desktop-nav .nav-item-c { letter-spacing: .015em; }

        .section-head { display: flex; flex-direction: column; align-items: center; }
        .section-title {
            font-family: 'Lora', 'BanasreeBangla', 'Noto Serif Bengali', Georgia, serif !important;
            font-weight: 600; color: var(--ink); font-size: 1.6rem; line-height: 1.3; letter-spacing: .01em;
        }
        @media (min-width: 768px) { .section-title { font-size: 2.25rem; } }
        html[lang="ar"] .section-title { font-family: 'Amiri', 'Noto Naskh Arabic', serif !important; font-weight: 700; }
        .brand-ornament { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--brand-gold); }
        .brand-ornament span { display: block; width: 44px; height: 1px; background: linear-gradient(90deg, transparent, var(--brand-gold)); }
        .brand-ornament span:last-child { background: linear-gradient(90deg, var(--brand-gold), transparent); }
        .brand-ornament b { font-size: 12px; line-height: 1; font-weight: 400; }
        .section-subtitle { margin-top: 10px; max-width: 40rem; color: var(--muted); font-size: .95rem; }
        .section-viewall {
            margin-top: 12px; display: inline-flex; align-items: center; gap: 4px;
            font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
            color: var(--brand); border-bottom: 1px solid rgba(176,125,43,.6); padding-bottom: 2px;
        }
        .section-viewall:hover { color: var(--brand-gold); }
        html[lang="bn"] .section-viewall, html[lang="ar"] .section-viewall { text-transform: none; letter-spacing: 0; font-size: 14px; }

        /* ---- Mobile bottom navigation ---- */
        #mobile-bottom-nav {
            position: fixed; left: 0; right: 0; bottom: 0; z-index: 9500;
            display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
            height: calc(64px + env(safe-area-inset-bottom)); padding: 0 6px env(safe-area-inset-bottom);
            background: rgba(255,255,255,.97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
            border-top: 1px solid var(--rule); border-radius: 18px 18px 0 0;
            box-shadow: 0 -6px 24px rgba(31,36,33,.08);
        }
        @media (min-width: 1024px) { #mobile-bottom-nav { display: none !important; } }
        @media (max-width: 1023px) { body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); } }
        #mobile-bottom-nav .mbn-item {
            display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
            height: 64px; color: #7A807C; font-size: 11.5px; font-weight: 500; line-height: 1.2;
            background: none; border: 0; -webkit-tap-highlight-color: transparent; transition: color .2s;
        }
        #mobile-bottom-nav .mbn-item i { font-size: 23px; line-height: 1; }
        #mobile-bottom-nav .mbn-item.is-active { color: var(--brand); font-weight: 700; }
        #mobile-bottom-nav .mbn-item.is-active i { color: var(--brand-gold); }
        #mobile-bottom-nav .mbn-center { justify-content: flex-end; padding-bottom: 8px; }
        #mobile-bottom-nav .mbn-fab {
            position: relative; display: flex; align-items: center; justify-content: center;
            width: 52px; height: 52px; margin-top: -22px; margin-bottom: 3px; border-radius: 9999px;
            background: var(--brand); color: #fff; border: 4px solid #fff;
            box-shadow: 0 6px 16px rgba(27,77,62,.35);
        }
        #mobile-bottom-nav .mbn-fab i { font-size: 22px; color: #fff; }
        #mobile-bottom-nav .mbn-badge {
            position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px;
            border-radius: 9999px; background: var(--brand-gold); color: #fff; font-style: normal;
            font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
        }

        /* ---- Related books (product page) ---- */
        .related-head { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 18px; }
        .related-title { font-family: 'Lora', 'BanasreeBangla', 'Noto Serif Bengali', Georgia, serif !important; font-weight: 600; font-size: 1.25rem; color: var(--ink); }
        html[lang="ar"] .related-head { align-items: flex-end; }
        .related-ornament { margin-top: 6px; }
        .related-ornament span:first-child { display: none; }
        html[lang="ar"] .related-ornament span:first-child { display: block; }
        html[lang="ar"] .related-ornament span:last-child { display: none; }
        .related-list { display: flex; flex-direction: column; }
        .related-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--rule); }
        .related-item:first-child { padding-top: 0; }
        .related-item:last-child { border-bottom: 0; }
        .related-cover { flex: 0 0 72px; aspect-ratio: 2/3; overflow: hidden; border-radius: 2px; background: #f3f1ec; box-shadow: 0 4px 12px rgba(31,36,33,.16); transition: transform .3s, box-shadow .3s; }
        .related-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
        .related-item:hover .related-cover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(31,36,33,.22); }
        .related-nocover { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 10px; color: #9ca3af; text-transform: uppercase; }
        .related-info { min-width: 0; flex: 1; padding-top: 2px; }
        .related-name { font-family: 'Lora', 'BanasreeBangla', 'Noto Serif Bengali', Georgia, serif !important; font-size: 1rem; font-weight: 600; line-height: 1.4; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
        .related-item:hover .related-name { color: var(--brand); }
        .related-author { margin-top: 3px; font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .related-price { margin-top: 6px; display: flex; align-items: baseline; gap: 8px; }
        .related-price span { font-weight: 700; color: var(--brand); font-size: .95rem; }
        .related-price s { font-size: .78rem; color: #9ca3af; }
        /* Mobile & tablet: horizontal shelf of covers */
        @media (max-width: 1023px) {
            .related-wrap { margin-top: 8px; padding-top: 28px; border-top: 1px solid var(--rule); }
            .related-list { flex-direction: row; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
            .related-list::-webkit-scrollbar { display: none; }
  .related-list { padding-left: 0 !important; padding-right: 0 !important; margin-left: 0 !important; margin-right: 0 !important; scroll-padding: 0 !important; }
  .related-item { max-width: none !important; }
            .related-item { flex: 0 0 38%; max-width: 170px; flex-direction: column; gap: 10px; padding: 0; border: 0; scroll-snap-align: start; }
            .related-cover { flex: none; width: 100%; }
            .related-name { font-size: .92rem; }
        }

                /* ===== UPL-inspired book sections (Banasree style) ===== */
        .bk-carousel { position: relative; }
        .bk-track { justify-content: safe center; }
        [dir="rtl"] .section-viewall i { transform: scaleX(-1); display: inline-block; }
        .bk-track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 14px; scrollbar-width: none; }
        .bk-track::-webkit-scrollbar { display: none; }
        .bk-slide { flex: 0 0 calc((100% - 4 * 18px) / 5); scroll-snap-align: start; display: flex; }
        @media (max-width: 1279px) { .bk-slide { flex-basis: calc((100% - 3 * 18px) / 4); } }
        @media (max-width: 1023px) { .bk-slide { flex-basis: calc((100% - 2 * 16px) / 3); } .bk-track { gap: 16px; } }
        @media (max-width: 639px)  { .bk-slide { flex-basis: 46%; } .bk-track { gap: 12px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-padding-left: 16px; } }
        .bk-nav { position: absolute; top: 38%; z-index: 5; width: 42px; height: 42px; border-radius: 9999px; background: #fff; border: 1px solid var(--rule); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 6px 16px rgba(31,36,33,.12); transition: all .2s; }
        .bk-nav:hover { background: var(--brand); color: #fff; }
        .bk-prev { left: -20px; } .bk-next { right: -20px; }
        [dir="rtl"] .bk-prev { left: auto; right: -20px; } [dir="rtl"] .bk-next { right: auto; left: -20px; }
        [dir="rtl"] .bk-nav i { transform: scaleX(-1); }
        @media (max-width: 639px) { .bk-nav { display: none; } }
        .bk-card { width: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; transition: box-shadow .25s, transform .25s; }
        .bk-card:hover { box-shadow: 0 12px 28px rgba(31,36,33,.12); transform: translateY(-2px); }
        .bk-cover { position: relative; display: block; width: 100%; padding-top: 150%; background: #f3f0e8; overflow: hidden; }
        .bk-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
        .bk-card:hover .bk-cover img { transform: scale(1.04); }
        .bk-nocover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #9ca3af; text-transform: uppercase; }
        .bk-badge-new { position: absolute; top: 10px; left: 10px; z-index: 2; width: 52px; height: 52px; border-radius: 9999px; background: var(--brand-gold); color: #fff; font-size: 10.5px; line-height: 1.15; font-weight: 700; display: flex; align-items: center; justify-content: center; text-align: center; padding: 4px; box-shadow: 0 4px 10px rgba(0,0,0,.18); }
        .bk-ribbon { position: absolute; top: 12px; left: 0; z-index: 2; background: var(--brand-maroon); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 14px 3px 10px; clip-path: polygon(0 0, 100% 0, 88% 50%, 100% 100%, 0 100%); }
        [dir="rtl"] .bk-badge-new { left: auto; right: 10px; } [dir="rtl"] .bk-ribbon { left: auto; right: 0; padding: 3px 10px 3px 14px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 12% 50%); }
        .bk-off { position: absolute; top: 10px; right: 10px; z-index: 2; background: #b91c1c; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 4px; }
        [dir="rtl"] .bk-off { right: auto; left: 10px; }
        .bk-body { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 12px 12px 14px; flex: 1; }
        .bk-cat { font-size: 11.5px; color: var(--brand-gold); font-weight: 600; letter-spacing: .03em; }
        .bk-title { font-size: 1.02rem; font-weight: 600; line-height: 1.35; min-height: 2.7em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
        .bk-title a:hover { color: var(--brand); }
        .bk-author { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
        .bk-price { display: flex; gap: 8px; align-items: baseline; justify-content: center; margin: 2px 0 8px; }
        .bk-price span { color: var(--brand); font-weight: 700; font-size: .98rem; }
        .bk-price s { color: #9ca3af; font-size: .78rem; }
        .bk-form { width: 100%; margin-top: auto; }
        .bk-btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 10px; border-radius: 4px; background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; transition: background .2s; }
        .bk-btn:hover { background: var(--brand-dark); color: #fff; }
        html[lang="bn"] .bk-btn, html[lang="ar"] .bk-btn { text-transform: none; letter-spacing: 0; font-size: 13.5px; }
        .bk-btn-disabled { background: #e5e7eb; color: #6b7280; cursor: not-allowed; margin-top: auto; }
        .bk-btn-outline { width: auto; background: transparent; color: var(--brand); border: 1px solid var(--brand); padding: 10px 26px; }
        .bk-btn-outline:hover { background: var(--brand); color: #fff; }
        @media (max-width: 639px) { .bk-title { font-size: .92rem; } .bk-btn { font-size: 11.5px; padding: 8px 6px; } html[lang="bn"] .bk-btn, html[lang="ar"] .bk-btn { font-size: 12.5px; } .bk-badge-new { width: 44px; height: 44px; font-size: 9.5px; } }
        /* Forthcoming spotlight */
        .bk-spot-wrap { display: flex; flex-direction: column; gap: 24px; align-items: center; }
        .bk-spot { width: 100%; max-width: 880px; display: grid; grid-template-columns: 260px 1fr; background: #fff; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; box-shadow: 0 8px 26px rgba(31,36,33,.07); }
        .bk-spot-cover { position: relative; display: block; padding-top: 150%; background: #f3f0e8; }
        .bk-spot-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
        .bk-spot-body { padding: 28px 30px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
        .bk-spot-title { font-size: 1.6rem; font-weight: 600; line-height: 1.3; }
        .bk-spot-body .bk-price { justify-content: flex-start; }
        .bk-spot-desc { color: var(--text); font-size: .95rem; line-height: 1.8; margin-bottom: 10px; }
        @media (max-width: 639px) { .bk-spot { grid-template-columns: 1fr; } .bk-spot-cover { width: 62%; margin: 22px auto 0; border-radius: 4px; box-shadow: 0 8px 20px rgba(0,0,0,.18); } .bk-spot-body { align-items: center; text-align: center; padding: 18px 18px 22px; } .bk-spot-body .bk-price { justify-content: center; } .bk-spot-title { font-size: 1.3rem; } }

        /* ===== Related books: uniform covers ===== */
        .related-cover { position: relative !important; flex: 0 0 64px !important; width: 64px !important; height: 96px !important; aspect-ratio: auto !important; border-radius: 3px !important; background: #f3f0e8 !important; }
        .related-cover img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover !important; }
        .related-item { align-items: center !important; }
        .related-price span { font-size: .92rem !important; }
        @media (max-width: 1023px) {
            .related-list { gap: 12px !important; }
            .related-item { flex: 0 0 40% !important; max-width: 165px !important; align-items: stretch !important; background: #fff; border: 1px solid var(--rule) !important; border-radius: 6px; overflow: hidden; gap: 0 !important; }
            .related-cover { flex: none !important; width: 100% !important; height: 0 !important; padding-top: 150% !important; border-radius: 0 !important; box-shadow: none !important; }
            .related-info { padding: 10px 10px 12px !important; text-align: center; }
            .related-price { justify-content: center; }
            .related-name { font-size: .88rem !important; min-height: 2.6em; }
        }

        /* ===== Mobile menu drawer (UPL-inspired, Banasree branded) ===== */
        @media (max-width: 1023px) {
            #mobile-menu-drawer { width: min(86vw, 360px) !important; box-shadow: 0 0 0 100vmax rgba(15,23,20,0); transition: transform .3s ease, box-shadow .3s ease !important; }
            #mobile-menu-drawer:not(.-translate-x-full) { box-shadow: 0 0 0 100vmax rgba(15,23,20,.45), 8px 0 30px rgba(0,0,0,.2); }
            #mobile-menu-drawer > div:first-child { background: var(--brand) !important; border: 0 !important; padding: 14px 18px !important; }
            #mobile-menu-drawer > div:first-child img { filter: brightness(0) invert(1); height: 42px !important; }
            #mobile-menu-drawer > div:first-child button { background: rgba(255,255,255,.12) !important; color: #fff !important; }
            #mobile-search-container { background: var(--paper) !important; padding: 12px 16px !important; }
            #mobile-search-container input { border-radius: 9999px !important; background: #fff; }
            #mobile-menu-drawer nav { padding: 6px 0 !important; }
            #mobile-menu-drawer nav > a, #mobile-menu-drawer nav > div > button {
                font-family: 'Lora', 'BanasreeBangla', 'Noto Serif Bengali', Georgia, serif !important;
                font-size: 15.5px !important; font-weight: 600 !important; text-transform: none !important; letter-spacing: .01em !important;
                color: var(--ink) !important; padding: 15px 22px !important; border-bottom: 1px solid var(--rule) !important; }
            html[lang="ar"] #mobile-menu-drawer nav > a, html[lang="ar"] #mobile-menu-drawer nav > div > button { font-family: 'Amiri', 'Noto Naskh Arabic', serif !important; font-size: 17px !important; }
            #mobile-menu-drawer nav > div { border: 0 !important; }
            #mobile-menu-drawer nav > a:active, #mobile-menu-drawer nav > div > button:active { background: var(--paper); }
            #mobile-menu-drawer nav i[class*="uil-angle"] { color: var(--brand-gold) !important; }
            #mobile-menu-drawer nav > div > div { background: var(--paper) !important; box-shadow: none !important; border: 0 !important; border-bottom: 1px solid var(--rule) !important; padding: 12px 22px 16px 30px !important; }
            #mobile-menu-drawer nav > div > div a { font-size: 14px !important; color: var(--text) !important; }
            #mobile-menu-drawer nav > div > div li:first-child { color: var(--brand-gold) !important; border-color: rgba(176,125,43,.35) !important; }
            #mobile-menu-drawer > div:last-child > div:last-child { background: var(--paper) !important; border-top: 1px solid var(--rule); }
        }

        /* ===== Mobile single product: sticky add-to-cart above bottom nav ===== */
        @media (max-width: 767px) {
            #mobile-sticky-cart { bottom: calc(64px + env(safe-area-inset-bottom)) !important; z-index: 9450 !important; transform: none !important; padding: 10px 14px !important; border-top: 1px solid var(--rule) !important; box-shadow: 0 -8px 22px rgba(31,36,33,.10) !important; display: block !important; }
            body:has(#mobile-sticky-cart) { padding-bottom: calc(140px + env(safe-area-inset-bottom)) !important; }
            body:has(#mobile-sticky-cart) #chat-widget-container { bottom: 160px !important; }
        }

        /* Topbar tagline: right font per language (avoids missing-glyph dots) */
        #brand-topbar .brand-tagline { font-family: 'Lora', 'BanasreeBangla', 'Noto Serif Bengali', Georgia, serif !important; }
        html[lang="ar"] #brand-topbar .brand-tagline { font-family: 'Amiri', 'Noto Naskh Arabic', serif !important; font-style: normal; font-size: 13.5px; }
        html[lang="bn"] #brand-topbar .brand-tagline { font-style: normal; }

        
        /* ===== Mobile polish (2026-11-01 b) ===== */
        .bk-slide { min-width: 0; } .bk-card { min-width: 0; }
        @media (max-width: 639px) {
            .section-head .section-viewall { display: none !important; }
            .wrapper div.sm\:hidden > a[href] { width: auto !important; background: transparent !important; border: 1px solid rgba(176,125,43,.55) !important; color: var(--brand) !important; border-radius: 9999px !important; padding: 8px 22px !important; font-size: 13px !important; }
            .wrapper div.mt-6.sm\:hidden { margin-top: 14px !important; }
        }
        html[lang="bn"] .bk-card p, html[lang="bn"] .bk-card h3, html[lang="bn"] .hz-card p { line-height: 1.45; }
        @media (max-width: 1023px) {
            #main-header-container { height: 66px !important; position: relative; justify-content: flex-end !important; }
            #header-logo-link { position: absolute !important; left: 50% !important; top: 50%; transform: translate(-50%, -50%); height: auto !important; padding: 0 !important; }
            #header-logo-link img { height: 50px !important; }
            #header-left-section { flex: 0 0 auto !important; margin: 0 !important; }
            #header-right-section button[onclick="toggleMobileMenu()"] { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 1.1rem; }
            [dir="rtl"] #header-right-section button[onclick="toggleMobileMenu()"] { left: auto; right: 10px; }
            #header-right-section button[onclick="toggleUserDrawer()"] { display: none !important; }
            .main-content-wrapper { padding-top: 66px !important; }
        }
        @media (max-width: 639px) {
            .wrapper > div.py-14 { padding-top: 34px !important; padding-bottom: 34px !important; }
            .section-head { margin-bottom: 18px !important; }
            .section-title { font-size: 1.4rem !important; }
            .brand-ornament { margin-top: 6px; }
            .section-viewall { margin-top: 8px; font-size: 12.5px; }
            .bk-slide { flex-basis: 43% !important; }
            .bk-track { gap: 12px; padding-bottom: 8px; }
            .bk-card { border-radius: 8px; box-shadow: 0 2px 10px rgba(31,36,33,.06); }
            .bk-card:hover { transform: none; }
            .bk-cat { display: none !important; }
            .bk-body { padding: 9px 8px 10px !important; gap: 1px !important; }
            .bk-title { font-size: .9rem !important; line-height: 1.35 !important; min-height: 2.7em; }
            .bk-author { font-size: .74rem !important; line-height: 1.3 !important; }
            .bk-price { margin: 4px 0 8px !important; }
            .bk-price span { font-size: .9rem !important; }
            .bk-btn { padding: 7px 4px !important; font-size: 11.5px !important; border-radius: 6px; }
            html[lang="bn"] .bk-btn, html[lang="ar"] .bk-btn { font-size: 12px !important; }
            .bk-badge-new { width: 38px !important; height: 38px !important; font-size: 8.5px !important; top: 7px !important; left: 7px !important; }
            [dir="rtl"] .bk-badge-new { left: auto !important; right: 7px !important; }
            .bk-ribbon { font-size: 10px !important; top: 8px !important; }
            .hz-actions { display: none !important; }
            .hz-desc { display: block !important; font-size: 12.5px !important; line-height: 1.6 !important; margin-top: 6px !important; color: var(--muted) !important; }
            .hz-card { border-radius: 8px !important; }
            .hz-card > div:first-child { width: 31% !important; margin: 12px 0 12px 12px !important; }
            [dir="rtl"] .hz-card > div:first-child { margin: 12px 12px 12px 0 !important; }
            .hz-card h3 { font-size: 1rem !important; }
            .hz-card .add-to-cart-btn, .hz-card form button { padding-top: 7px !important; padding-bottom: 7px !important; }
            .bk-spot-cover { width: 56% !important; }
        }
        /* ===== Mobile carousel: exactly 2 books + side arrows ===== */
        @media (max-width: 639px) {
            .bk-carousel { padding: 0 2px; }
            .bk-track { margin: 0 !important; padding: 4px 0 8px !important; gap: 12px !important; scroll-padding-left: 0 !important; }
            .bk-slide { flex: 0 0 calc((100% - 12px) / 2) !important; }
            .bk-nav { display: flex !important; width: 34px; height: 34px; font-size: 20px; top: 30%; background: rgba(255,255,255,.95); box-shadow: 0 4px 12px rgba(31,36,33,.18); }
            .bk-prev { left: -10px; } .bk-next { right: -10px; }
            [dir="rtl"] .bk-prev { left: auto; right: -10px; } [dir="rtl"] .bk-next { right: auto; left: -10px; }
            .bk-nav[disabled] { opacity: .35; }
        }
        /* ===== Mobile spacing tighten (v3) ===== */
        @media (max-width: 639px) {
            .wrapper > div.py-14 { padding-top: 26px !important; padding-bottom: 26px !important; }
            .section-head { margin-bottom: 12px !important; }
            html .section-title, html[lang="bn"] .section-title { line-height: 1.2 !important; font-size: 1.35rem !important; }
            .brand-ornament { margin-top: 4px !important; }
            .bk-body { padding: 8px 8px 9px !important; gap: 0 !important; }
            .bk-title, html[lang="bn"] .bk-card h3.bk-title { min-height: 0 !important; line-height: 1.3 !important; font-size: .92rem !important; margin: 0 !important; }
            .bk-author, html[lang="bn"] .bk-card p.bk-author { line-height: 1.25 !important; margin: 3px 0 0 !important; }
            .bk-price { margin: 4px 0 7px !important; line-height: 1.2; }
            .bk-form { margin-top: auto !important; }
            .wrapper div.mt-6.sm\:hidden { margin-top: 12px !important; }
            .wrapper div.sm\:hidden > a[href] { padding: 6px 20px !important; }
        }
        /* ===== Forthcoming: one book at a time + arrows ===== */
        .bk-spot-carousel .bk-track { gap: 0 !important; }
        .bk-spot-carousel .bk-slide, .bk-spot-carousel .bk-spot-slide { flex: 0 0 100% !important; max-width: 100%; display: flex; justify-content: center; padding: 4px 30px 10px; }
        .bk-spot-carousel .bk-nav { top: 50%; transform: translateY(-50%); }
        [dir="rtl"] .bk-spot-carousel .bk-nav i { transform: scaleX(-1); }
        .bk-spot-carousel .bk-prev { left: 0; } .bk-spot-carousel .bk-next { right: 0; }
        [dir="rtl"] .bk-spot-carousel .bk-prev { left: auto; right: 0; } [dir="rtl"] .bk-spot-carousel .bk-next { right: auto; left: 0; }
        @media (max-width: 639px) {
            .bk-spot-carousel .bk-slide, .bk-spot-carousel .bk-spot-slide { flex: 0 0 100% !important; padding: 2px 4px 8px; }
            .bk-spot-carousel .bk-nav { top: 32%; }
            .bk-spot-carousel .bk-prev { left: -8px; } .bk-spot-carousel .bk-next { right: -8px; }
            [dir="rtl"] .bk-spot-carousel .bk-prev { left: auto; right: -8px; } [dir="rtl"] .bk-spot-carousel .bk-next { right: auto; left: -8px; }
            .bk-spot-cover { padding-top: 0 !important; aspect-ratio: 2 / 3; width: 58% !important; }
            .bk-spot-desc { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px !important; line-height: 1.65 !important; }
        }
        /* ===== Book card: tight title-author-price block (desktop + mobile) ===== */
        .bk-body { gap: 0 !important; justify-content: flex-start; }
        .bk-cat { margin-bottom: 4px; }
        .bk-title, html[lang="bn"] .bk-card h3.bk-title { min-height: 0 !important; margin: 0 !important; line-height: 1.35 !important; }
        .bk-author, html[lang="bn"] .bk-card p.bk-author { margin: 5px 0 0 !important; line-height: 1.3 !important; }
        .bk-price { margin: 6px 0 12px !important; line-height: 1.2; }
        .bk-form, .bk-btn-disabled { margin-top: auto !important; }
        /* Links & rules */
        a { text-underline-offset: 3px; }
        hr { border-color: var(--rule); }

        /* Keep icon fonts intact */
        i[class^="uil"], i[class*=" uil"] { font-family: 'unicons' !important; }

/* ===== rtl-align-fix ===== */
/* Arabic: every text starts from the right. Tailwind 'text-left' becomes start-aligned (right) in RTL; the English footer stays left. */
[dir="rtl"] .text-left { text-align: right !important; }
@media (min-width: 640px) { [dir="rtl"] .sm\:text-left { text-align: right !important; } }
@media (min-width: 768px) { [dir="rtl"] .md\:text-left { text-align: right !important; } }
@media (min-width: 1024px) { [dir="rtl"] .lg\:text-left { text-align: right !important; } }
[dir="rtl"] footer .text-left, [dir="rtl"] [dir="ltr"] .text-left, [dir="rtl"] footer [class*="text-left"] { text-align: left !important; }
[dir="rtl"] [class*="space-x-"] > :not([hidden]) ~ :not([hidden]) { --tw-space-x-reverse: 1; }

/* ===== bp-mobile7 ===== */
/* Header logo fills the white bar from top to bottom */
#main-header-container #header-logo-link { height: 100% !important; padding-top: 0 !important; padding-bottom: 0 !important; }
#main-header-container *:has(> #header-logo-link) { align-self: stretch; height: 100%; }
#main-header-container #header-logo-link { align-self: stretch; }
#main-header-container #header-logo-link img { height: 100% !important; min-height: 56px; max-height: none !important; width: auto !important; aspect-ratio: 1 / 1; }

/* Mobile: categories bottom sheet */
.cat-sheet { position: fixed; inset: 0; z-index: 10050; pointer-events: none; }
.cat-sheet .cs-scrim { position: absolute; inset: 0; background: rgba(15,23,20,.45); opacity: 0; transition: opacity .25s; }
.cat-sheet .cs-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 80vh; background: #fff; border-radius: 20px 20px 0 0; transform: translateY(105%); transition: transform .3s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -10px 40px rgba(0,0,0,.15); }
.cat-sheet.open { pointer-events: auto; }
.cat-sheet.open .cs-scrim { opacity: 1; }
.cat-sheet.open .cs-panel { transform: none; }
.cs-grab { width: 44px; height: 5px; border-radius: 9px; background: #E5E1D7; margin: 10px auto 4px; }
.cs-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 18px 12px; border-bottom: 1px solid #EFEBE2; }
.cs-head h3 { margin: 0; font-size: 18px; font-weight: 700; color: #1B4D3E; }
.cs-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #F7F5EF; display: flex; align-items: center; justify-content: center; color: #1F2421; cursor: pointer; }
.cs-body { overflow-y: auto; padding: 14px 16px 22px; }
.cs-all { display: flex; justify-content: space-between; align-items: center; background: #1B4D3E; color: #fff !important; border-radius: 12px; padding: 13px 16px; font-weight: 600; font-size: 15px; }
.cs-sec { font-size: 12.5px; font-weight: 700; color: #B07D2B; letter-spacing: .04em; text-transform: uppercase; margin: 18px 4px 8px; }
.cs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cs-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #F7F5EF; border: 1px solid #EFEBE2; border-radius: 12px; padding: 12px; font-size: 14px; color: #1F2421; line-height: 1.3; min-height: 54px; }
.cs-item:active, .cs-item:hover { border-color: #D4A24C; background: #FBF6EA; }
.cs-item svg, .cs-all svg { flex: 0 0 auto; opacity: .6; }
[dir="rtl"] .cs-item svg, [dir="rtl"] .cs-all svg { transform: scaleX(-1); }
#mobile-bottom-nav button.mbn-item { background: none; border: 0; font-family: inherit; cursor: pointer; }
@media (min-width: 1024px) { .cat-sheet { display: none; } }

/* Mobile: related books — two at a time, centred, arrows move two by two */
@media (max-width: 1023px) {
  .related-head { align-items: center !important; text-align: center; }
  .related-carousel { position: relative; padding: 0 42px; }
  .related-carousel.no-nav { padding: 0; }
  .related-list { flex-direction: row !important; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .related-list::-webkit-scrollbar { display: none; }
  .related-carousel.no-nav .related-list { justify-content: center; }
  .related-item { flex: 0 0 calc(50% - 6px) !important; flex-direction: column !important; align-items: center !important; text-align: center; gap: 10px !important; padding: 0 !important; border-bottom: 0 !important; scroll-snap-align: start; min-width: 0; }
  .related-cover { flex: 0 0 auto !important; width: 100% !important; max-width: 140px; }
  .related-info { width: 100%; padding-top: 0 !important; min-width: 0; }
  .related-name, .related-author { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .related-price { justify-content: center; text-align: center; }
  .rel-nav { position: absolute; top: 34%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 1px solid #E5E1D7; box-shadow: 0 4px 12px rgba(31,36,33,.12); display: flex; align-items: center; justify-content: center; color: #1B4D3E; z-index: 2; cursor: pointer; padding: 0; }
  .rel-prev { left: 0; } .rel-next { right: 0; }
  [dir="rtl"] .rel-prev { left: auto; right: 0; } [dir="rtl"] .rel-next { right: auto; left: 0; }
  [dir="rtl"] .rel-nav svg { transform: scaleX(-1); }
  .related-carousel.no-nav .rel-nav { display: none; }
}
@media (min-width: 1024px) { .rel-nav { display: none !important; } }

/* ===== bp-section-space ===== */
/* Homepage sections (New Arrivals, Forthcoming, Best Sellers, Featured...): less empty space above each title */
div:has(> .container > .section-head) { padding-top: 22px !important; padding-bottom: 26px !important; }
@media (min-width: 768px) { div:has(> .container > .section-head) { padding-top: 34px !important; padding-bottom: 38px !important; } }
section.py-20:has(h2), section.py-16:has(h2) { padding-top: 48px !important; padding-bottom: 48px !important; }
@media (min-width: 768px) { section.md\:py-24:has(h2) { padding-top: 56px !important; padding-bottom: 56px !important; } }

/* ===== bp-ltr-contacts ===== */
/* Phone numbers and e-mail addresses always read left-to-right in English digits, even on the Arabic site */
[dir="rtl"] a[href^="tel:"] span, [dir="rtl"] a[href^="tel:"] p, [dir="rtl"] a[href^="tel:"] div,
[dir="rtl"] a[href^="mailto:"] span, [dir="rtl"] a[href^="mailto:"] p, [dir="rtl"] a[href^="mailto:"] div,
[dir="rtl"] a[href^="tel:"]:not(:has(span, p, div)), [dir="rtl"] a[href^="mailto:"]:not(:has(span, p, div)) { direction: ltr; unicode-bidi: isolate; }