        * { box-sizing: border-box; }
        body { font-family: 'Segoe UI', 'Hind Siliguri', Tahoma, Geneva, Verdana, sans-serif; margin: 0; background: var(--bg); color: var(--text); padding-bottom: 0; overflow-x: hidden; max-width: 100%; }
        a { text-decoration: none; color: inherit; }
        button { font-family: inherit; cursor: pointer; }

        /* ---------- Top Header ---------- */
        .store-header {
            position: sticky; top: 0; z-index: 300; background: var(--header-color); border-bottom: 1px solid var(--border);
            padding: 12px 20px; display: flex; align-items: center; gap: 16px;
        }
        .store-logo { font-size: 20px; font-weight: 800; color: var(--primary); flex-shrink: 0; }
        .store-search { flex: 1; position: relative; max-width: 480px; }
        .store-search input {
            width: 100%; padding: 10px 14px 10px 38px; border: 1px solid #ddd; border-radius: 999px; font-size: 14px; background: #f7f6fb;
        }
        .store-search input:focus { outline: none; border-color: var(--primary); background: #fff; }
        .store-search .search-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
        .search-results-box {
            display: none; position: absolute; top: 46px; left: 0; right: 0; background: #fff; border: 1px solid var(--border);
            border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,0.1); max-height: 360px; overflow-y: auto; z-index: 310;
        }
        .header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; }
        .header-btn {
            display: flex; flex-direction: column; align-items: center; gap: 2px; background: transparent; border: none;
            padding: 6px 12px; border-radius: 10px; font-size: 11.5px; font-weight: 600; color: #4b5563;
        }
        .header-btn:hover { background: #f4f2fa; }
        .header-btn .icon { font-size: 19px; }

        /* ---------- Layout ---------- */
        .store-layout { display: flex; max-width: 1320px; margin: 0 auto; align-items: flex-start; }
        .store-sidebar {
            width: 250px; flex-shrink: 0; background: #fff; border-right: 1px solid var(--border);
            min-height: calc(100vh - 60px); position: sticky; top: 61px;
        }
        .sidebar-title { padding: 16px 18px 8px 18px; font-weight: 800; font-size: 14px; color: var(--primary); display:flex; align-items:center; gap:8px; }
        @keyframes qv-blink { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.25; transform: scale(0.85); } }
        .blink-emoji { display: inline-block; margin-left: 6px; animation: qv-blink 1.1s ease-in-out infinite; }
        .cat-item { border-bottom: 1px solid #f5f4fa; }
        .cat-item-head {
            display: flex; align-items: center; justify-content: space-between; padding: 12px 18px;
            font-size: 14px; font-weight: 600; cursor: pointer; color: #333;
        }
        .cat-item-head:hover, .cat-item-head.active { background: #f4f0fb; color: var(--primary); }
        .cat-item-head .arrow { font-size: 11px; transition: transform .2s; color: #999; }
        .cat-item.open .cat-item-head .arrow { transform: rotate(90deg); }
        .cat-subs { display: none; padding-bottom: 6px; }
        .cat-item.open .cat-subs { display: block; }
        .cat-sub-link { display: block; padding: 8px 18px 8px 36px; font-size: 13.5px; color: #555; }
        .cat-sub-link:hover, .cat-sub-link.active { color: var(--primary); font-weight: 700; }

        /* ---------- Main content ---------- */
        .store-main { flex: 1; min-width: 0; padding: 18px 20px 90px 20px; }
        .hero-banner {
            background: linear-gradient(120deg, #efe8fb, #fbeef0); border-radius: 16px; padding: 26px 28px;
            display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; overflow: hidden;
        }
        .hero-text h1 { font-size: 22px; margin: 0 0 6px 0; color: #2a1a4a; }
        .hero-text p { margin: 0 0 14px 0; color: #5b5470; font-size: 13.5px; }
        .hero-emoji { font-size: 54px; }

        /* ---------- হোমপেজ ব্যানার স্লাইডশো ---------- */
        /* object-fit:contain ব্যবহার করা হয়েছে (আগে ছিল cover) — এখন ছবি কখনো ক্রপ/কাটা যাবে না,
           ডিভাইস/স্ক্রিন সাইজ অনুযায়ী পুরো ছবিটাই দেখাবে (দরকারে হালকা খালি জায়গা (letterbox) দেখাবে,
           যেটা background রঙ আর নিচের বর্ডার দিয়ে সুন্দর একটা ফ্রেমের মতো লাগবে)। বর্ডারের রঙ অ্যাডমিন
           প্যানেল (banners.php) থেকে বদলানো যায় — index.php এখানে ইনলাইন style দিয়ে override করে দেয়।
        */
        .hero-slideshow { position: relative; border-radius: 16px; overflow: hidden; margin-bottom: 22px; aspect-ratio: 16 / 5; background: #f2f1f7; border: 3px solid #7c3aed; box-sizing: border-box; }
        .hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; display: block; }
        .hero-slide.active { opacity: 1; }
        .hero-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
        .hero-slide-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 2; }
        .hero-slide-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.55); cursor: pointer; transition: all .2s; }
        .hero-slide-dots span.active { background: #fff; width: 22px; border-radius: 5px; }
        /* মোবাইলে আলাদা aspect-ratio জোর করা হতো আগে (16/9) - এটাই সাদা ফাঁকা জায়গার (letterbox)
           কারণ ছিল, কারণ ছবির আসল অনুপাতের সাথে সেটা মিলত না। এখন index.php প্রতিটা ব্যানারের
           আসল ছবির মাপ থেকে সঠিক অনুপাত বসায় (inline style দিয়ে) - সব ডিভাইসেই একই অনুপাত
           বজায় থাকে, তাই এখানে আলাদা কোনো মোবাইল override রাখা হয়নি। */

        /* ---------- কার্ট গোল প্রোগ্রেস বার (৪ ধাপ) ---------- */
        .cart-goal-box { background: #f4f2fa; border-radius: 12px; padding: 14px 16px 20px 16px; margin-bottom: 14px; }
        .cart-goal-box.achieved { background: linear-gradient(120deg, #eafaf0, #f0faec); }
        .cart-goal-text { font-size: 12.5px; color: #3f3a52; margin-bottom: 4px; line-height: 1.5; }
        .cart-goal-box.achieved .cart-goal-text { color: #166534; }
        .cart-goal-track-wrap { position: relative; height: 22px; margin-top: 16px; }
        .cart-goal-track { position: absolute; top: 50%; left: 0; right: 0; height: 8px; transform: translateY(-50%); background: #e5e1f2; border-radius: 999px; overflow: hidden; }
        .cart-goal-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-dark)); border-radius: 999px; transition: width .4s ease; }
        .cart-goal-box.achieved .cart-goal-fill { background: linear-gradient(90deg, #16a34a, #22c55e); }
        .cart-goal-marker {
            position: absolute; top: 50%; transform: translate(-50%, -50%); width: 21px; height: 21px; border-radius: 50%;
            background: #e5e1f2; display: flex; align-items: center; justify-content: center; font-size: 11px;
            border: 2px solid #fff; box-shadow: 0 0 0 1px #d8d3ea; opacity: .6; transition: all .3s ease; z-index: 2;
        }
        .cart-goal-marker.achieved { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); opacity: 1; box-shadow: 0 0 0 1px var(--primary); }
        .cart-goal-box.achieved .cart-goal-marker.achieved { background: linear-gradient(135deg, #16a34a, #22c55e); box-shadow: 0 0 0 1px #16a34a; }

        .sub-tabs { display: flex; gap: 8px; margin-bottom: 16px; overflow-x: auto; padding-bottom: 2px; }
        .sub-tab {
            padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--border);
            font-size: 13px; font-weight: 600; white-space: nowrap; color: #444;
        }
        .sub-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

        .product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; max-width: 100%; }
        /* খুব ছোট মোবাইল ডিসপ্লেতেও (যেমন ছোট Android ফোন) কমপক্ষে ২টা প্রোডাক্ট পাশাপাশি দেখানোর জন্য।
           minmax(0, 1fr) ব্যবহার করা হয়েছে যাতে ভেতরের লম্বা কনটেন্ট কলামকে ঠেলে বড় করে দিয়ে
           পুরো পেজে সাইড-স্ক্রল তৈরি করতে না পারে (আগে এই সমস্যাটাই হচ্ছিল) */
        @media (max-width: 480px) {
            .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
            .product-thumb { height: 120px; }
        }
        .product-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
        .product-thumb { width: 100%; height: 100px; border-radius: 10px; background: #f4f2fa; display: flex; align-items: center; justify-content: center; font-size: 30px; margin-bottom: 8px; overflow: hidden; flex-shrink: 0; }
        .product-thumb img { width: 100%; height: 100%; object-fit: cover; }
        /* ছবি লোড না হলে ব্রাউজার alt টেক্সট দেখায় - সেটা যাতে কার্ড ফাটিয়ে বিশাল হয়ে না যায় (মোবাইলে সবচেয়ে বেশি হতো),
           তাই ছবির ভেতরের টেক্সটকেও ছোট রেখে কার্ডের মধ্যেই আটকে রাখা হচ্ছে */
        .product-thumb img { font-size: 11px; line-height: 1.25; color: var(--muted); text-align: center; overflow: hidden; }
        /* লম্বা ইংরেজি নাম (যেমন "2-in-1 Multifunctional Milk Frother...") যাতে কার্ডের বাইরে বেরিয়ে না যায় */
        .product-name { font-size: 13.5px; font-weight: 700; margin-bottom: 4px; line-height: 1.3; min-height: 34px; overflow-wrap: break-word; word-break: break-word; hyphens: auto; }
        .product-price { font-size: 14px; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
        .product-price .old { text-decoration: line-through; color: var(--muted); font-weight: 500; font-size: 12px; margin-right: 5px; }
        .discount-chip { display: inline-block; background: #fee2e2; color: var(--danger); font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px; margin-bottom: 5px; }
        .stock-out { color: var(--danger); font-size: 12px; font-weight: 700; }
        .qty-stepper { display: flex; align-items: center; gap: 8px; margin-top: auto; }
        .qty-stepper button { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--border); background: #fff; font-weight: 700; }
        .qty-stepper span { font-size: 13px; font-weight: 700; min-width: 16px; text-align: center; }
        .add-cart-btn {
            width: 100%; margin-top: 8px; background: var(--btn-color); color: #fff; border: none; padding: 9px; border-radius: 9px;
            font-weight: 700; font-size: 13px;
        }
        .add-cart-btn:hover { filter: brightness(0.9); }
        .add-cart-btn:disabled { background: #d1d5db; }
        .empty-msg { text-align: center; color: var(--muted); padding: 40px 0; grid-column: 1 / -1; }

        /* ---------- Floating cart button (desktop) ---------- */
        .fab-cart {
            position: fixed; bottom: 26px; right: 26px; width: 58px; height: 58px; border-radius: 50%;
            background: var(--btn-color); color: #fff; border: none; font-size: 24px; display: flex; align-items: center;
            justify-content: center; box-shadow: 0 8px 22px rgba(111,66,193,0.4); z-index: 400;
        }
        .fab-badge {
            position: absolute; top: -4px; right: -4px; background: var(--danger); color: #fff; font-size: 11px;
            font-weight: 800; min-width: 20px; height: 20px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
        }

        /* ---------- Cart Drawer ---------- */
        .overlay-bg { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 500; }
        .overlay-bg.open { display: block; }
        .cart-drawer {
            position: fixed; top: 0; right: 0; bottom: 0; width: 380px; max-width: 92vw; background: #fff; z-index: 510;
            transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; box-shadow: -6px 0 24px rgba(0,0,0,0.12);
        }
        .cart-drawer.open { transform: translateX(0); }
        .drawer-header { padding: 16px 18px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 16px; }
        .drawer-body { flex: 1; overflow-y: auto; padding: 14px 18px; }
        .drawer-footer { padding: 14px 18px; border-top: 1px solid var(--border); }
        .cart-line { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f5f4fa; align-items: center; }
        .cart-line-thumb { width: 46px; height: 46px; border-radius: 8px; background: #f4f2fa; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 18px; overflow: hidden; }
        .cart-line-thumb img { width: 100%; height: 100%; object-fit: cover; }
        .cart-line-info { flex: 1; min-width: 0; }
        .cart-line-name { font-size: 13.5px; font-weight: 700; }
        .gift-line-badge { display: inline-block; background: #dcfce7; color: #166534; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
        .cart-line-price { font-size: 12.5px; color: var(--muted); }
        .cart-line-attrs { font-size: 11.5px; color: var(--primary); font-weight: 600; margin: 1px 0 2px 0; }
        .cart-line-qty { display: flex; align-items: center; gap: 6px; }
        .cart-line-qty button { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--border); background: #fff; font-weight: 700; }
        .remove-line { color: var(--danger); font-size: 12px; font-weight: 700; margin-left: 8px; background:none; border:none; }
        .totals-row { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 6px; }
        .totals-row.grand { font-size: 17px; font-weight: 800; color: var(--primary); border-top: 1px dashed var(--border); padding-top: 8px; margin-top: 6px; }
        .coupon-row { display: flex; gap: 8px; margin: 10px 0; }
        .coupon-row input { flex: 1; padding: 8px 10px; border: 1px solid #ddd; border-radius: 8px; font-size: 13px; text-transform: uppercase; }
        .btn-primary-full { width: 100%; background: var(--btn-color); color: #fff; border: none; padding: 13px; border-radius: 10px; font-weight: 800; font-size: 14.5px; }
        .btn-outline-full { width: 100%; background: #fff; color: var(--primary); border: 1px solid var(--primary); padding: 11px; border-radius: 10px; font-weight: 700; font-size: 13.5px; margin-top: 8px; }
        .form-group { margin-bottom: 12px; }
        .form-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; }
        .form-group input { width: 100%; padding: 11px; border: 1px solid #ddd; border-radius: 9px; font-size: 14px; }
        .phone-input-wrap { display: flex; align-items: stretch; border: 1px solid #ddd; border-radius: 9px; overflow: hidden; }
        .phone-input-wrap .phone-prefix { display:flex; align-items:center; background: #f3f3f3; padding: 0 10px; font-size: 14px; font-weight: 700; color: #555; border-right: 1px solid #ddd; user-select: none; }
        .phone-input-wrap input { flex: 1; min-width: 0; border: none !important; border-radius: 0 !important; padding: 11px !important; }
        .phone-input-wrap input:focus { outline: none; }
        .cod-note { background: #f4f2fa; color: #5b5470; font-size: 12.5px; padding: 10px 12px; border-radius: 9px; margin-bottom: 14px; }
        .success-view { text-align: center; padding: 40px 10px; }
        .success-icon { width: 70px; height: 70px; border-radius: 50%; background: #dcfce7; color: var(--success); font-size: 34px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px auto; animation: successPop .45s cubic-bezier(.34,1.56,.64,1); }
        @keyframes successPop { 0% { transform: scale(0); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }
        .order-id-badge { display: inline-block; background: var(--bg); border: 1px dashed var(--primary); color: var(--primary); font-weight: 800; letter-spacing: .5px; padding: 7px 16px; border-radius: 20px; font-size: 14px; margin: 4px 0 14px 0; }
        .success-steps { text-align: left; background: var(--bg); border-radius: 12px; padding: 14px 16px; margin: 18px 0; }
        .success-step { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; font-size: 13px; color: var(--text); }
        .success-step .num { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1.5px solid var(--primary); color: var(--primary); font-size: 11.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
        .success-contact-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; text-align: left; font-size: 12.5px; color: var(--muted); }
        .success-contact-card a { color: var(--primary); font-weight: 700; text-decoration: none; }
        .success-thanks-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; line-height: 1.7; }
        .achievement-card {
            background: linear-gradient(135deg, #fff7ed 0%, #fdf4ff 100%); border: 1.5px dashed var(--primary);
            border-radius: 14px; padding: 16px; margin: 16px 0; text-align: left;
            animation: achievementPop .5s cubic-bezier(.34,1.56,.64,1);
        }
        @keyframes achievementPop { 0% { transform: scale(.92); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
        .achievement-card.all-unlocked { background: linear-gradient(135deg, #fef9c3 0%, #fce7f3 100%); border-color: #d97706; }
        .achievement-headline { font-size: 14.5px; font-weight: 800; color: #7c2d12; margin-bottom: 8px; }
        .achievement-list { list-style: none; padding: 0; margin: 0 0 12px 0; display: flex; flex-direction: column; gap: 5px; }
        .achievement-list li { font-size: 12.5px; color: var(--text); background: rgba(255,255,255,.6); padding: 6px 10px; border-radius: 8px; }
        .achievement-share-row { border-top: 1px dashed rgba(124,45,18,.25); padding-top: 10px; }
        .achievement-share-label { font-size: 11.5px; font-weight: 700; color: #7c2d12; margin-bottom: 8px; }

        /* ---------- Offers modal ---------- */
        .offers-modal { position: fixed; top: 0; right: 0; bottom: 0; width: 380px; max-width: 92vw; background: #fff; z-index: 510; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
        .offers-modal.open { transform: translateX(0); }
        .offer-card { border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
        .offer-code { display: inline-block; background: #f4f2fa; color: var(--primary); font-weight: 800; padding: 4px 10px; border-radius: 7px; font-size: 13px; letter-spacing: .03em; }

        /* ---------- Mobile bottom nav ---------- */
        .mobile-bottom-nav { display: none; }
        @media (max-width: 900px) {
            .store-sidebar { display: none; }
            .fab-cart { display: none; }
            .header-btn.chat-desktop { display: none; }
            .store-main { padding-bottom: 90px; }
            .mobile-bottom-nav {
                display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: var(--mobile-nav-color); border-top: 1px solid var(--border);
                z-index: 450; padding: 8px 10px; gap: 0; box-shadow: 0 -4px 14px rgba(0,0,0,0.06);
            }
            .mnav-btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; background: transparent; border: none; border-right: 1px solid var(--border); padding: 8px 0; border-radius: 0; font-size: 11.5px; font-weight: 700; color: #4b5563; position: relative; }
            .mnav-btn:last-child { border-right: none; }
            .mnav-btn.primary { color: var(--primary); }
            .mnav-btn .icon { font-size: 22px; }
            .mnav-badge { position: absolute; top: 2px; right: 24%; background: var(--danger); color: #fff; font-size: 10px; font-weight: 800; min-width: 17px; height: 17px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
        }

        /* ---------- Mobile categories overlay ---------- */
        .categories-overlay {
            display: none; position: fixed; inset: 0; background: #fff; z-index: 480; overflow-y: auto;
        }
        .categories-overlay.open { display: block; }
        .cat-overlay-header { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 16px; position: sticky; top: 0; background: #fff; }
        .cat-overlay-back { font-size: 20px; background: none; border: none; }
        .cat-tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px; }
        .cat-tile { background: #f4f2fa; border-radius: 14px; padding: 16px 8px; text-align: center; font-size: 12.5px; font-weight: 700; color: #3a2e57; }
        .cat-tile .emoji { font-size: 26px; display: block; margin-bottom: 6px; }

        /* ---------- Live Chat Automation Phase 1: Online status dot ---------- */
        .chat-online-dot {
            display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
            margin-left: 4px; vertical-align: middle; animation: chatPulseDot 2s infinite;
        }
        @keyframes chatPulseDot {
            0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.55); }
            70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
            100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
        }

        /* ---------- Live Chat Automation Phase 1: Proactive greeting toast ---------- */
        #chatGreetToast {
            display: none; position: fixed; bottom: 100px; right: 22px; max-width: 270px; background: #fff;
            border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.18); z-index: 450; padding: 12px 30px 12px 14px;
            font-size: 12.5px; line-height: 1.5; color: var(--text); cursor: pointer; animation: chatGreetIn .35s ease;
        }
        #chatGreetToast:hover { box-shadow: 0 12px 34px rgba(0,0,0,0.24); }
        @keyframes chatGreetIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
        #chatGreetToast .cgt-close {
            position: absolute; top: 6px; right: 9px; cursor: pointer; color: var(--muted); font-size: 15px; line-height: 1;
        }
        #chatGreetToast .cgt-head { display: flex; align-items: center; gap: 4px; font-weight: 800; margin-bottom: 4px; color: var(--primary); }
        @media (max-width: 900px) {
            #chatGreetToast { bottom: 78px; right: 12px; left: 12px; max-width: none; }
        }

        /* ---------- Live Chat Automation Phase 6: Typing indicator + scroll button ---------- */
        .typing-dots { display: inline-block; }
        @keyframes typingDotsBlink { 0%, 20% { opacity: .2; } 50% { opacity: 1; } 100% { opacity: .2; } }
        #chatTypingIndicatorStore .typing-dots { animation: typingDotsBlink 1.2s infinite; }
        #chatScrollBottomBtn:hover { filter: brightness(0.92); }

        /* ---------- Support Widget (Chat + Complain + Return + Question - সব একটা বক্সে ট্যাব আকারে) ---------- */
        #chatPanelStore {
            display: none; position: fixed; bottom: 90px; right: 22px; width: 340px; max-width: calc(100vw - 40px); height: 480px;
            background: #fff; border-radius: 14px; box-shadow: 0 12px 34px rgba(0,0,0,0.18); z-index: 520; flex-direction: column; overflow: hidden;
        }
        @media (max-width: 900px) {
            #chatPanelStore { bottom: 0; right: 0; left: 0; top: 0; width: auto; max-width: none; height: 100vh; border-radius: 0; }
        }
        .support-tabs { display: flex; border-bottom: 1px solid var(--border); background: #fafaff; flex-shrink: 0; }
        .support-tab-btn {
            flex: 1; text-align: center; padding: 9px 4px; font-size: 11px; font-weight: 700; color: var(--muted);
            background: none; border: none; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap;
        }
        .support-tab-btn .stb-icon { display: block; font-size: 15px; margin-bottom: 1px; }
        .support-tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
        .support-tab-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
        .support-form-pane { display: none; flex: 1; overflow-y: auto; padding: 14px; }
        .support-form-pane.active { display: flex; flex-direction: column; }
        .support-form-pane input, .support-form-pane textarea {
            width: 100%; padding: 9px 11px; border: 1px solid #d1d5db; border-radius: 7px; font-size: 13px; margin-bottom: 8px; font-family: inherit; box-sizing: border-box;
        }
        .support-form-pane textarea { min-height: 70px; resize: vertical; }
        .support-form-pane button.submit-btn { background: var(--primary); color: #fff; border: none; padding: 10px; border-radius: 8px; font-weight: 700; cursor: pointer; }
        .support-form-msg { font-size: 12px; margin-top: 6px; display: none; }
        .support-form-msg.success { color: var(--success); display: block; }
        .support-form-msg.error { color: var(--danger); display: block; }
        .faq-item { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; overflow: hidden; }
        .faq-q { padding: 10px 12px; font-size: 13px; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: #fafaff; }
        .faq-a { padding: 0 12px; max-height: 0; overflow: hidden; transition: all 0.2s; font-size: 12.5px; color: #374151; background: #fff; }
        .faq-a.open { padding: 10px 12px; max-height: 300px; }

        .toast { position: fixed; top: 18px; left: 50%; transform: translateX(-50%) translateY(-20px); background: #1f2937; color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 600; opacity: 0; transition: all .25s; z-index: 999; pointer-events: none; }
        .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

        /* ---------- Hot / Offer ব্যাজ (প্রোডাক্ট কার্ডের ছবির উপর ব্লিংক করবে) ---------- */
        .product-thumb { position: relative; }
        .hot-badge, .offer-badge {
            position: absolute; top: 8px; font-size: 21px; line-height: 1;
            animation: qv-blink 1.1s ease-in-out infinite;
            filter: drop-shadow(0 1px 3px rgba(0,0,0,0.35));
        }
        .hot-badge { left: 8px; }
        .offer-badge { right: 8px; }

        /* ---------- Quick View মোডাল - ডেস্কটপে বড়, আয়তাকার, দুই-কলাম প্রফেশনাল লেআউট ---------- */
        .quick-view-modal {
            position: fixed; top: 50%; left: 50%; transform: translate(-50%,-45%); width: 780px; max-width: 94vw;
            background: #fff; border-radius: 18px; z-index: 530; opacity: 0; pointer-events: none; transition: all .22s ease;
            max-height: 86vh; box-shadow: 0 24px 64px rgba(0,0,0,0.28); overflow: hidden;
        }
        .quick-view-modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%,-50%); }
        .quick-view-modal .qv-close-btn {
            position: absolute; top: 12px; right: 14px; background: rgba(0,0,0,0.45); color: #fff; border: none;
            width: 32px; height: 32px; border-radius: 50%; font-size: 18px; z-index: 5; cursor: pointer;
        }
        .qv-modal-grid { display: flex; height: 100%; max-height: 86vh; }
        .qv-modal-gallery { width: 46%; background: #f6f4fb; position: relative; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
        .qv-modal-gallery img { width: 100%; height: 100%; object-fit: cover; }
        .qv-modal-gallery .qv-no-img { font-size: 64px; }
        .qv-gallery-arrow {
            position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.92); border: none;
            width: 38px; height: 38px; border-radius: 50%; font-size: 18px; cursor: pointer; box-shadow: 0 3px 10px rgba(0,0,0,0.18);
        }
        .qv-gallery-arrow.prev { left: 14px; }
        .qv-gallery-arrow.next { right: 14px; }
        .qv-gallery-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
        .qv-gallery-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(0,0,0,0.2); }
        .qv-gallery-dots span.active { background: var(--primary); width: 18px; border-radius: 4px; }
        .qv-modal-details { width: 54%; padding: 30px 32px; overflow-y: auto; }
        .qv-modal-name { font-size: 21px; font-weight: 800; margin-bottom: 8px; line-height: 1.3; }
        .qv-modal-sku { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
        .qv-modal-desc { font-size: 14px; color: #4b5563; line-height: 1.7; margin-bottom: 18px; }
        .qv-modal-price { font-size: 20px; font-weight: 800; color: var(--primary); margin-bottom: 18px; }
        .qv-share-row { margin: 4px 0 20px 0; padding-top: 14px; border-top: 1px solid #eee; }
        .qv-share-label { font-size: 11.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 9px; }
        .qv-share-btns { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
        .qv-share-btn {
            width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
            display: flex; align-items: center; justify-content: center; font-size: 16px;
            color: #fff; transition: transform .15s, box-shadow .15s; text-decoration: none;
        }
        .qv-share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.18); }
        .qv-share-btn.fb { background: #1877f2; }
        .qv-share-btn.msg { background: #0084ff; }
        .qv-share-btn.wa { background: #25d366; }
        .qv-share-btn.tg { background: #229ed9; }
        .qv-share-btn.x { background: #000; }
        .qv-share-btn.copy { background: #f1f0f7; color: var(--primary); font-size: 15px; }
        .qv-affiliate-note { font-size: 11px; color: var(--primary); margin-top: 8px; font-weight: 600; }
        /* ---------- প্রোডাক্ট অ্যাট্রিবিউট (সাইজ/রঙ) - শুধু কুইক-ভিউ পেজে দেখায় ---------- */
        .qv-attr-group { margin-bottom: 14px; }
        .qv-attr-label { font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 7px; }
        .qv-attr-label .qv-attr-chosen { color: var(--primary); font-weight: 600; }
        .qv-attr-chips { display: flex; flex-wrap: wrap; gap: 7px; }
        .qv-attr-chip {
            border: 1.5px solid var(--border); background: #fff; border-radius: 8px;
            padding: 7px 13px; font-size: 12.5px; font-weight: 600; cursor: pointer;
            display: inline-flex; align-items: center; gap: 6px; transition: border-color .15s, background .15s;
            font-family: inherit; color: var(--text);
        }
        .qv-attr-chip:hover { border-color: var(--primary); }
        .qv-attr-chip.selected { border-color: var(--primary); background: #f4f2fa; color: var(--primary); }
        .qv-attr-swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.15); flex-shrink: 0; }
        .qv-attr-select { width: 100%; padding: 9px 11px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 13px; font-family: inherit; }
        @media (max-width: 760px) {
            .quick-view-modal { top: auto; bottom: 0; left: 0; right: 0; width: auto; max-width: none; transform: translateY(100%); border-radius: 18px 18px 0 0; max-height: 90vh; }
            .quick-view-modal.open { transform: translateY(0); }
            .qv-modal-grid { flex-direction: column; overflow-y: auto; max-height: 90vh; }
            .qv-modal-gallery { width: 100%; height: 260px; }
            .qv-modal-details { width: 100%; padding: 22px; }
        }