/* ════════════════════════════════════════════════════════════
   RESCUERIDE MOBILE — Clean Native App Style
   Rule #1: DO NOT touch card internals — only the grid container
   Rule #2: Activates only at ≤768px. Desktop untouched.
   ════════════════════════════════════════════════════════════ */

.rr-mobile-only { display: none !important; }
/* Safety — drawer must never overlay on initial render */
.rr-m-drawer:not(.open) { display: none !important; pointer-events: none !important; opacity: 0 !important; }

@media (max-width: 768px) {

    /* ── Reset ────────────────────────────────────────────── */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    *, *::before, *::after { box-sizing: border-box; }
    img { max-width: 100%; height: auto; }
    input, textarea, select { font-size: 16px !important; }

    /* ── Hide desktop chrome ─────────────────────────────── */
    .utility-bar,
    #mainHeader, header#mainHeader,
    #mainNav, nav.main-nav, .main-nav,
    .search-container, #searchContainerWrap,
    .location-picker, #locationPickerWrap,
    #searchAutocomplete, .rr-float-panel,
    .rr-footer,
    .rr-bc-a, .rr-bc-b, .rr-breadcrumb { display: none !important; }

    /* ── Show mobile chrome (explicit per element) ───────── */
    .rr-m-header  { display: flex !important; }
    .rr-m-search  { display: flex !important; }
    .rr-m-cats    { display: flex !important; }
    .rr-m-tabbar  { display: flex !important; }
    .rr-mfooter   { display: block !important; }
    .rr-m-drawer  { display: none !important; pointer-events: none !important; }
    .rr-m-drawer.open { display: block !important; pointer-events: auto !important; }

    /* ═══════════════════════════════════════════════════════
       MOBILE TOP HEADER
    ═══════════════════════════════════════════════════════ */
    .rr-m-header {
        position: sticky; top: 0; z-index: 100;
        background: #fff;
        border-bottom: 1px solid #e5e7eb;
        padding: 10px 12px;
        align-items: center; gap: 10px;
        box-shadow: 0 1px 4px rgba(0,0,0,.04);
        height: 54px;
    }
    .rr-m-ham { background: none; border: none; font-size: 22px; color: #1e293b; padding: 4px 6px; cursor: pointer; line-height: 1; }
    .rr-m-logo { display: flex; align-items: center; flex-shrink: 0; }
    .rr-m-logo img { height: 30px; max-width: 100px; }
    .rr-m-spacer { flex: 1; }
    .rr-m-icon { background: none; border: none; color: #1e293b; font-size: 18px; padding: 6px 8px; cursor: pointer; position: relative; }
    .rr-m-badge { position: absolute; top: 0; right: 0; background: #b22234; color: #fff; font-size: 9px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

    /* ═══════════════════════════════════════════════════════
       SEARCH BAR
    ═══════════════════════════════════════════════════════ */
    .rr-m-search { padding: 8px 12px; background: #fff; border-bottom: 1px solid #e5e7eb; gap: 8px; position: sticky; top: 54px; z-index: 99; }
    .rr-m-search input { flex: 1; padding: 9px 14px; border: 1.5px solid #e5e7eb; border-radius: 22px; background: #f3f4f6; font-size: 14px !important; outline: none; min-width: 0; }
    .rr-m-search-btn { background: #b22234; color: #fff; border: none; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; flex-shrink: 0; }

    /* ═══════════════════════════════════════════════════════
       CATEGORY CHIPS
    ═══════════════════════════════════════════════════════ */
    .rr-m-cats { padding: 10px 12px; gap: 8px; background: #fff; border-bottom: 1px solid #f3f4f6; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .rr-m-cats::-webkit-scrollbar { display: none; }
    .rr-m-chip { flex-shrink: 0; padding: 6px 14px; border: 1.5px solid #e5e7eb; border-radius: 18px; font-size: 12px; font-weight: 600; color: #475569; text-decoration: none; white-space: nowrap; background: #fff; }
    .rr-m-chip.active { background: #b22234; color: #fff; border-color: #b22234; }

    /* ═══════════════════════════════════════════════════════
       DRAWER
    ═══════════════════════════════════════════════════════ */
    .rr-m-drawer { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 999; }
    .rr-m-drawer-inner { position: absolute; top: 0; left: 0; bottom: 0; width: 82%; max-width: 320px; background: #fff; overflow-y: auto; transform: translateX(-100%); transition: transform .25s ease; }
    .rr-m-drawer.open .rr-m-drawer-inner { transform: translateX(0); }
    .rr-m-drawer-head { background: linear-gradient(135deg, #b22234, #8b1a26); color: #fff; padding: 22px 18px 16px; }
    .rr-m-drawer-head h3 { font-size: 17px; margin: 0 0 2px; font-weight: 700; }
    .rr-m-drawer-head p { font-size: 12px; margin: 0; opacity: .85; }
    .rr-m-drawer-sec { padding: 12px 0 8px; border-bottom: 1px solid #f3f4f6; }
    .rr-m-drawer-sec h4 { font-size: 10px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: 1px; margin: 0 18px 8px; }
    .rr-m-drawer-link { display: flex; align-items: center; gap: 12px; padding: 11px 18px; color: #1e293b; text-decoration: none; font-size: 14px; font-weight: 500; }
    .rr-m-drawer-link i { color: #b22234; width: 18px; text-align: center; font-size: 14px; }
    .rr-m-drawer-link:active { background: #f8fafc; }

    /* ═══════════════════════════════════════════════════════
       BOTTOM TAB BAR
    ═══════════════════════════════════════════════════════ */
    .rr-m-tabbar { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid #e5e7eb; padding: 4px 0 max(4px, env(safe-area-inset-bottom)); z-index: 200; justify-content: space-around; align-items: center; height: 56px; box-shadow: 0 -2px 12px rgba(0,0,0,.06); }
    .rr-m-tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: #9ca3af; font-size: 10px; font-weight: 600; position: relative; height: 100%; }
    .rr-m-tab i { font-size: 18px; }
    .rr-m-tab.active { color: #b22234; }
    .rr-m-tab .rr-m-badge { top: 4px; right: 20%; }

    body { padding-bottom: 60px !important; }

    /* ═══════════════════════════════════════════════════════
       PAGE PADDING
    ═══════════════════════════════════════════════════════ */
    .stats-row, .circle-section, .clinical-supplies,
    .for-you-section, .equipment-section,
    .featured-section, .deals-section, .page-section,
    .section-wrapper, .page-wrapper, .page-content,
    .catalogue-section, .about-section, .contact-section,
    .returns-section, .shipping-section, .help-section,
    .products-section, .content-section,
    .deals-grid-wrapper, .new-arrivals-wrapper,
    .bestsellers-wrapper, .product-section,
    .outer {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* ═══════════════════════════════════════════════════════
       HERO
    ═══════════════════════════════════════════════════════ */
    .hero-section { grid-template-columns: 1fr !important; padding: 8px 10px !important; height: auto !important; gap: 10px !important; }
    .left-col, .right-col { display: none !important; }
    .banner-carousel, .hero-banner-carousel { min-height: 180px !important; border-radius: 10px !important; }

    /* ═══════════════════════════════════════════════════════
       HOMEPAGE SECTIONS — HORIZONTAL SCROLL
       Deals, Best Sellers, New Arrivals, For You — each scrolls →
       Cards keep their ORIGINAL internal layout, just sized properly
    ═══════════════════════════════════════════════════════ */
    .deals-container, .deals-grid,
    .featured-grid, .featured-container,
    .for-you-grid, .for-you-container,
    .bestsellers-grid, .newarrivals-grid,
    .products-row, .scroll-track,
    .home-products-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        gap: 12px !important;
        padding: 12px 10px 16px !important;
        margin: 0 !important;
    }
    .deals-container::-webkit-scrollbar,
    .deals-grid::-webkit-scrollbar,
    .featured-grid::-webkit-scrollbar,
    .for-you-grid::-webkit-scrollbar,
    .bestsellers-grid::-webkit-scrollbar,
    .newarrivals-grid::-webkit-scrollbar,
    .products-row::-webkit-scrollbar,
    .scroll-track::-webkit-scrollbar { display: none !important; }

    /* Cards inside horizontal scroll get fixed width — NO internal style changes */
    .deals-container > *, .deals-grid > *,
    .featured-grid > *, .featured-container > *,
    .for-you-grid > *, .for-you-container > *,
    .bestsellers-grid > *, .newarrivals-grid > *,
    .products-row > *, .scroll-track > *,
    .home-products-grid > * {
        flex: 0 0 78% !important;
        max-width: 78% !important;
        scroll-snap-align: start !important;
        min-width: 0 !important;
    }

    /* ═══════════════════════════════════════════════════════
       HOMEPAGE Hospital-Grade Equipment → horizontal scroll cards
       (Same style as Deals/Best Sellers/New Arrivals sections)
    ═══════════════════════════════════════════════════════ */
    /* ═══════════════════════════════════════════════════════
       HOMEPAGE Hospital-Grade Equipment → 2 rows of horizontal scroll
       Row 1 = first 6, Row 2 = next 6. Each row scrolls independently.
    ═══════════════════════════════════════════════════════ */
    body.home .clinical-supplies .product-grid,
    .clinical-supplies .product-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        gap: 12px !important;
        padding: 12px 10px 20px !important;
        margin: 0 0 4px 0 !important;
        grid-template-columns: unset !important;
    }
    body.home .clinical-supplies .product-grid::-webkit-scrollbar,
    .clinical-supplies .product-grid::-webkit-scrollbar { display: none !important; }

    /* Each card = 72% wide so next card peeks */
    body.home .clinical-supplies .product-grid > *,
    .clinical-supplies .product-grid > * {
        flex: 0 0 72% !important;
        width: 72% !important;
        max-width: 72% !important;
        min-width: 0 !important;
        scroll-snap-align: start !important;
    }

    .rr-pay-grid { flex-wrap: nowrap !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch !important; scrollbar-width: thin !important; gap: 8px !important; }
    .rr-pay-grid::-webkit-scrollbar { height: 3px !important; }

    /* ── For You section — completely redesigned for mobile ── */
    .for-you-section {
        padding: 20px 12px 24px !important;
    }
    .for-you-section h2 {
        font-size: 18px !important;
        margin-bottom: 14px !important;
        text-align: center !important;
    }
    .for-you-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
    /* Redesign card to portrait style — image top, text below */
    .for-you-card {
        flex-direction: column !important;
        height: auto !important;
        min-height: 150px !important;
        border-radius: 12px !important;
        align-items: stretch !important;
        overflow: hidden !important;
    }
    .fyc-img {
        width: 100% !important;
        height: 90px !important;
        object-fit: cover !important;
        clip-path: none !important;
        flex-shrink: 0 !important;
    }
    .fyc-content {
        padding: 10px 12px !important;
        flex: 1 !important;
    }
    .fyc-content h3 { font-size: 12px !important; font-weight: 700 !important; margin-bottom: 2px !important; }
    .fyc-content p  { font-size: 10px !important; display: none !important; } /* hide description — too much text */
    .fyc-content .fyc-link { font-size: 11px !important; margin-top: 4px !important; }

    /* ═══════════════════════════════════════════════════════
       PRODUCT LISTING PAGES — VERTICAL SINGLE COLUMN
    ═══════════════════════════════════════════════════════ */
    .outer .product-grid,
    .card-grid,
    .items-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding: 12px 10px !important;
        margin: 0 !important;
    }

    /* ═══════════════════════════════════════════════════════
       PRODUCT.PHP — SIDEBAR BECOMES SLIDE-IN FILTER DRAWER
       VERY HIGH SPECIFICITY to override page CSS
    ═══════════════════════════════════════════════════════ */
    body .outer,
    div.outer {
        display: block !important;
        grid-template-columns: 1fr !important;
    }
    body aside.sidebar,
    aside.sidebar#rrFilterSidebar,
    .outer aside.sidebar {
        display: none !important;
    }
    body aside.sidebar.open-filter,
    aside.sidebar#rrFilterSidebar.open-filter {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 85% !important;
        max-width: 340px !important;
        background: #fff !important;
        z-index: 1000 !important;
        overflow-y: auto !important;
        box-shadow: 4px 0 24px rgba(0,0,0,.2) !important;
        padding: 0 !important;
    }

    /* Filter toggle button — ABOVE the white card */
    .rr-filter-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        background: #b22234 !important;
        color: #fff !important;
        border: none !important;
        border-radius: 12px !important;
        padding: 12px 20px !important;
        font-weight: 700 !important;
        font-size: 13px !important;
        cursor: pointer !important;
        margin: 10px !important;
        width: calc(100% - 20px) !important;
        box-shadow: 0 2px 8px rgba(178,34,52,.3) !important;
    }

    /* Backdrop when filter drawer is open */
    body.filter-open::after {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.5);
        z-index: 999;
    }

    /* ═══════════════════════════════════════════════════════
       CIRCLE CATEGORIES
    ═══════════════════════════════════════════════════════ */
    .circle-row { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 8px !important; }
    .circle-img { width: 56px !important; height: 56px !important; }
    .circle-item p { font-size: 10px !important; line-height: 1.2 !important; margin-top: 4px !important; }

    /* ═══════════════════════════════════════════════════════
       LAYOUTS STACK — all multi-column page layouts → 1 column
    ═══════════════════════════════════════════════════════ */
    .product-detail-layout,
    .cart-layout,
    .checkout-layout,
    .order-layout,
    .user-layout,
    .quick-view-layout,
    .profile-layout { grid-template-columns: 1fr !important; gap: 14px !important; }

    /* ═══════════════════════════════════════════════════════
       QUICK VIEW MODAL — proper mobile layout
    ═══════════════════════════════════════════════════════ */
    #quickViewModal .modal-content {
        margin: 0 !important;
        padding: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        overflow-y: auto !important;
    }
    #quickViewModal .modal-close {
        position: fixed !important;
        top: 12px !important;
        right: 12px !important;
        z-index: 10 !important;
        background: rgba(0,0,0,.5) !important;
        color: #fff !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 22px !important;
    }
    .quick-view-layout {
        display: block !important;
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        padding: 0 !important;
    }
    /* Big main image up top */
    .qv-gallery {
        gap: 10px !important;
        padding: 0 !important;
    }
    .qv-main-image {
        height: 280px !important;
        border-radius: 0 !important;
        border: none !important;
        background: #f1f5f9 !important;
    }
    .qv-main-image img {
        object-fit: contain !important;
    }
    /* Thumbnails in a scrollable row */
    .qv-thumbnails {
        display: flex !important;
        grid-template-columns: none !important;
        overflow-x: auto !important;
        gap: 8px !important;
        padding: 10px 16px !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }
    .qv-thumbnails::-webkit-scrollbar { display: none !important; }
    .qv-thumb {
        flex: 0 0 60px !important;
        width: 60px !important;
        height: 60px !important;
    }
    /* Info section gets proper padding */
    .qv-info {
        padding: 4px 18px 24px !important;
        gap: 12px !important;
    }
    .qv-title { font-size: 19px !important; line-height: 1.3 !important; }
    .qv-price { font-size: 24px !important; }
    .qv-description { font-size: 13px !important; }
    /* Actions — full width, stacked nicely */
    .qv-actions {
        flex-direction: row !important;
        gap: 10px !important;
        margin-top: 8px !important;
        position: sticky !important;
        bottom: 0 !important;
        background: #fff !important;
        padding: 12px 0 !important;
        align-items: stretch !important;
    }
    /* Cart-only icon button — compact square, leaves room for View Details */
    .qv-add-to-cart.qv-cart-icon {
        flex: 0 0 56px !important;
        width: 56px !important;
        padding: 14px 0 !important;
        font-size: 18px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .qv-add-to-cart { padding: 14px !important; font-size: 14px !important; }
    .qv-view-details {
        flex: 1 !important;
        padding: 14px !important;
        font-size: 14px !important;
        white-space: nowrap !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* ── CART PAGE ── */
    .cart-wrap, .cart-grid, .cart-container {
        display: block !important;
        grid-template-columns: 1fr !important;
        padding: 12px 10px !important;
    }
    .cart-main { width: 100% !important; }
    .cart-summary, .summary-card, .cart-sidebar {
        width: 100% !important;
        position: static !important;
        margin-top: 16px !important;
    }
    .also-bought-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    /* ── SINGLE PRODUCT PAGE ── */
    .sp-layout, .sp-grid, .sp-main-wrap, .product-top {
        display: block !important;
        grid-template-columns: 1fr !important;
    }
    .sp-gallery, .sp-main-img, .sp-info, .sp-buy-panel {
        width: 100% !important;
        max-width: 100% !important;
    }
    .sp-incl-grid { grid-template-columns: 1fr !important; }
    .sp-thumbs { justify-content: center !important; }
    .related-grid, .sp-related-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    /* ── USER / ACCOUNT PAGE ── */
    .account-wrap, .acc-layout, .acc-grid {
        display: block !important;
        grid-template-columns: 1fr !important;
        padding: 10px !important;
    }
    .acc-sidebar {
        width: 100% !important;
        position: static !important;
        margin-bottom: 16px !important;
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        gap: 8px !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }
    .acc-sidebar::-webkit-scrollbar { display: none !important; }
    .acc-main { width: 100% !important; }
    .profile-stats-grid, .order-stats-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    /* ── CHECKOUT PAGE ── */
    .checkout-wrap, .checkout-grid {
        display: block !important;
        grid-template-columns: 1fr !important;
        padding: 10px !important;
    }
    .checkout-main { width: 100% !important; }
    .checkout-summary, .order-summary {
        width: 100% !important;
        position: static !important;
        margin-top: 16px !important;
    }
    .form-row { grid-template-columns: 1fr !important; }
    .card-icon-row { flex-wrap: wrap !important; }

    /* ── SAVED PAGE ── */
    .saved-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        padding: 10px !important;
    }
    .saved-actions-panel { flex-wrap: wrap !important; gap: 8px !important; }

    /* ── ABOUT / CONTENT PAGES ── */
    .about-grid, .team-grid, .cert-grid, .feature-grid,
    .values-grid, .info-grid, .two-col, .three-col {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .contact-row, .contact-layout {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* ── CATALOGUE PAGE ── */
    .catalogue-grid, .cat-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    /* ── Generic: any wide content padding ── */
    .container, .wrapper, .content-wrap, .inner-wrap,
    .page-wrap, .page-container, .main-container {
        padding-left: 12px !important;
        padding-right: 12px !important;
        max-width: 100% !important;
    }

    /* ── Generic tables → scroll instead of overflow ── */
    table { display: block !important; overflow-x: auto !important; white-space: nowrap !important; -webkit-overflow-scrolling: touch !important; }

    /* ── Generic: tame any leftover repeat() grids ── */
    [class*="grid"][style*="repeat(3"],
    [class*="grid"][style*="repeat(4"],
    [class*="grid"][style*="repeat(5"] {
        grid-template-columns: 1fr 1fr !important;
    }

    /* ── Forms full width ── */
    input[type="text"], input[type="email"], input[type="tel"],
    input[type="password"], input[type="number"], textarea, select {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* ── Headings scale down ── */
    h1 { font-size: 22px !important; }
    h2 { font-size: 18px !important; }
    h3 { font-size: 15px !important; }

    /* ═══════════════════════════════════════════════════════
       STATS ROW
    ═══════════════════════════════════════════════════════ */
    .stats-row { flex-wrap: wrap !important; gap: 8px !important; padding: 12px 10px !important; }
    .stat-badge { flex: 0 0 calc(50% - 4px) !important; font-size: 11px !important; }

    /* ═══════════════════════════════════════════════════════
       MODALS
    ═══════════════════════════════════════════════════════ */
    .modal-content { margin: 8px auto !important; padding: 16px !important; max-width: calc(100vw - 16px) !important; max-height: calc(100vh - 80px) !important; border-radius: 12px !important; overflow-y: auto !important; }
    .auth-modal-content { max-width: calc(100vw - 16px) !important; }
    .comp-modal-content { padding: 12px !important; grid-template-columns: 1fr !important; }

    /* ═══════════════════════════════════════════════════════
       MOBILE FOOTER
    ═══════════════════════════════════════════════════════ */
    .rr-mfooter { background: #1e2b37; color: #cbd5e1; padding: 24px 16px 80px; margin-top: 24px; }
    .rr-mf-logo { text-align: center; margin-bottom: 14px; }
    .rr-mf-logo img { height: 32px; display: inline-block; filter: brightness(1.1); }
    .rr-mf-tag { text-align: center; font-size: 12px; color: #94a3b8; line-height: 1.5; max-width: 280px; margin: 0 auto 18px; }
    .rr-mf-socials { display: flex; justify-content: center; gap: 10px; margin-bottom: 22px; }
    .rr-mf-soc { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: #cbd5e1; text-decoration: none; font-size: 13px; border: 1px solid rgba(255,255,255,.12); }
    .rr-mf-pay { text-align: center; margin-bottom: 22px; }
    .rr-mf-pay-label { font-size: 10px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 10px; }
    .rr-mf-pay-row { display: flex; flex-wrap: nowrap !important; gap: 6px; justify-content: flex-start; overflow-x: auto !important; -webkit-overflow-scrolling: touch !important; scrollbar-width: none !important; padding: 0 2px; }
    .rr-mf-pay-row::-webkit-scrollbar { display: none !important; }
    .rr-mf-pay-row img { height: 22px; padding: 2px 6px; background: #fff; border-radius: 4px; display: inline-block; flex-shrink: 0; }
    .rr-mf-acc { display: block; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; margin-bottom: 8px; overflow: hidden; }
    .rr-mf-acc-head { padding: 12px 14px; font-size: 12px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 1px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
    .rr-mf-acc-head i { font-size: 11px; transition: transform .2s; }
    .rr-mf-acc.open .rr-mf-acc-head i { transform: rotate(180deg); }
    .rr-mf-acc-body { display: none; padding: 0 14px 12px; }
    .rr-mf-acc.open .rr-mf-acc-body { display: block; }
    .rr-mf-acc-body a { display: block; padding: 7px 0; color: #b8c4d4; text-decoration: none; font-size: 12.5px; }
    .rr-mf-bottom { text-align: center; margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); }
    .rr-mf-bottom p { font-size: 11px; color: #94a3b8; margin: 4px 0; }
    .rr-mf-bottom a { color: #94a3b8; text-decoration: none; margin: 0 6px; }


    /* ═══════════════════════════════════════════════════════
       PRODUCT.PHP — Filter controls & quick view on mobile
    ═══════════════════════════════════════════════════════ */
    /* Hide price filter on mobile */
    .title-price-filter { display: none !important; }
    
    /* Hide item count in title (1-8 of 13) on mobile */
    .item-count { display: none !important; }
    
    /* Sort tabs — visible, wrapping */
    .sort-left {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        align-items: center !important;
        width: 100% !important;
    }
    .sort-tabs {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }
    .sort-tab {
        font-size: 11px !important;
        padding: 6px 10px !important;
    }
    
    /* Filters & Categories button — show on mobile, on title line */
    .rr-filter-btn {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        background: #b22234 !important;
        color: #fff !important;
        border: none !important;
        border-radius: 20px !important;
        padding: 8px 14px !important;
        font-weight: 700 !important;
        font-size: 12px !important;
        cursor: pointer !important;
        margin-left: 8px !important;
        white-space: nowrap !important;
    }
    
    /* Control bar — wrap filters nicely */
    .control-bar {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        padding: 10px 10px !important;
        align-items: flex-start !important;
        flex-wrap: wrap !important;
    }
    .bar-spacer { display: none !important; }
    
    /* Filters — 2 column grid */
    .filters-right {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        width: 100% !important;
        align-items: start !important;
    }
    .filter-label { display: none !important; }
    .fselect {
        font-size: 11px !important;
        padding: 8px !important;
        width: 100% !important;
    }
    
    /* ── Product cards — prevent overlap ── */
    .card {
        display: flex !important;
        flex-direction: column !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }
    .card-body {
        min-width: 0 !important;
        overflow: hidden !important;
    }
    .prod-title {
        word-break: break-word !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .prod-desc {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    /* Quick view button — smaller on mobile */
    .btn-quick {
        font-size: 9px !important;
        padding: 5px 12px !important;
        bottom: -32px !important;
    }
    .card:hover .btn-quick {
        bottom: 6px !important;
    }

    /* ═══════════════════════════════════════════════════════
       CHAT WIDGET
    ═══════════════════════════════════════════════════════ */
    #rr-launcher { bottom: 72px !important; right: 12px !important; width: 50px !important; height: 50px !important; font-size: 20px !important; z-index: 300 !important; }
    #rr-win {
        bottom: 70px !important;
        right: 8px !important;
        left: 8px !important;
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        height: 65vh !important;
        max-height: 65vh !important;
        border-radius: 16px !important;
        z-index: 250 !important;
    }
    #rr-win .rr-min {
        width: 36px !important; height: 36px !important;
        font-size: 20px !important;
        background: rgba(255,255,255,.25) !important;
    }
    #rr-bubble { display: none !important; }
    #rr-badge { bottom: 116px !important; right: 6px !important; z-index: 300 !important; }

    /* Section titles */
    .section-title, .page-title, h1.page-h1, h2.section-h2 { font-size: 16px !important; margin: 14px 10px 10px !important; }
}

@media (max-width: 380px) {
    .rr-m-chip { font-size: 11px; padding: 5px 12px; }
}

/* ── Mid-range (769-900px) — also hide sidebar ─────────── */
@media (max-width: 900px) and (min-width: 769px) {
    body aside.sidebar,
    aside.sidebar#rrFilterSidebar { display: none !important; }
}