
:root {
    --primary: #f6c10f;
    --primary-dark: #dcae14;
    --secondary: #d9a22a;
    --dark: #2d3436;
    --light: #f5f6fa;
    --white: #ffffff;
    --gray: #61757d; /* Updated Color */
    --text: #2d3436;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
    --footer-bg-start: #2d3e50;
    --footer-bg-end: #34495e;
    --gold: #f8ca1b;
    --gold-light: #f3e5ab;
}

        * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
        body { font-family: 'Vazirmatn', sans-serif; background-color: var(--light); color: var(--text); max-width: 600px; margin: 0 auto; position: relative; overflow-x: hidden; padding-bottom: 70px; }
        body.no-scroll { overflow: hidden; }
        img { display: block; max-width: 100%; }
        a { text-decoration: none; color: inherit; }
        .no-scrollbar::-webkit-scrollbar { display: none; }
        .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

        /* --- Header --- */
        header { background: linear-gradient(135deg, var(--footer-bg-start) 0%, var(--footer-bg-end) 100%); padding: 15px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
        .menu-btn, .cart-btn { font-size: 24px; color: var(--gold); cursor: pointer; background: none; border: none; }
        .logo { font-size: 24px; font-weight: 900; color: var(--gold-light); text-shadow: 0 2px 4px rgba(0,0,0,0.3); display: flex; align-items: center; gap: 10px; min-width: 0; }
        .logo img { height: 38px; width: auto; display: block; flex-shrink: 0; }
        /* وقتی نام کسب‌وکار به‌جای «دلیج» می‌نشیند، اسم‌های بلند به‌جای برهم‌ریختن هدر سه‌نقطه می‌شوند */
        .logo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .header-icons { display: flex; align-items: center; gap: 15px; }
        .header-icons i { font-size: 20px; color: var(--gold); cursor: pointer; transition: color 0.3s; }
        .header-icons i:hover { color: var(--gold-light); }

        .desktop-nav { display: none; gap: 25px; align-items: center; }
        .nav-link { color: #dcdcdc; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 6px; cursor: pointer; transition: color 0.3s, transform 0.2s; }
        .nav-link:hover { color: var(--gold); transform: translateY(-2px); }
        .nav-link i { font-size: 14px; }

        /* --- Notifications Popup (bell, works on mobile + desktop) --- */
        .notif-menu-wrap { position: relative; display: flex; align-items: center; }
        .notif-btn { position: relative; background: none; border: none; padding: 0; cursor: pointer; display: flex; align-items: center; }
        .notif-badge { position: absolute; top: -6px; left: -8px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--primary); color: #fff; font-size: 10px; font-weight: bold; display: flex; align-items: center; justify-content: center; border: 2px solid var(--footer-bg-start); }
        .notif-badge.hidden { display: none; }
        /* In RTL the header icons sit at the LEFT edge, so the popup must open toward the right. */
        .notif-popup { position: absolute; top: calc(100% + 18px); left: -10px; width: min(320px, calc(100vw - 30px)); background: var(--white); border-radius: 16px; box-shadow: 0 15px 40px rgba(0,0,0,0.25); z-index: 200; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease; }
        .notif-popup.active { opacity: 1; visibility: visible; transform: translateY(0); }
        .notif-popup::before { content: ''; position: absolute; top: -7px; left: 16px; width: 14px; height: 14px; background: var(--white); transform: rotate(45deg); border-radius: 3px 0 0 0; }
        .notif-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 15px; border-bottom: 1px solid rgba(0,0,0,0.07); position: relative; background: var(--white); border-radius: 16px 16px 0 0; }
        .notif-head h4 { font-size: 15px; color: var(--dark); display: flex; align-items: center; gap: 8px; }
        .notif-head h4 i { color: var(--primary); font-size: 14px; }
        .notif-mark-read { background: none; border: none; font-family: inherit; font-size: 12px; color: var(--primary); cursor: pointer; padding: 4px; }
        .notif-mark-read:disabled { color: var(--gray); cursor: default; }
        .notif-list { max-height: 320px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
        .notif-item { display: flex; gap: 11px; padding: 13px 15px; border-bottom: 1px solid rgba(0,0,0,0.05); cursor: pointer; transition: background 0.2s; }
        .notif-item:last-child { border-bottom: none; }
        .notif-item:hover { background: var(--light); }
        .notif-item.unread { background: rgba(239, 58, 75, 0.05); }
        .notif-item.unread:hover { background: rgba(239, 58, 75, 0.09); }
        .notif-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
        .notif-body { flex: 1; min-width: 0; }
        .notif-title { font-size: 13px; font-weight: 700; color: var(--dark); margin-bottom: 3px; display: flex; align-items: center; gap: 6px; }
        .notif-title .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
        .notif-text { font-size: 12px; color: #666; line-height: 1.6; }
        .notif-time { font-size: 11px; color: var(--gray); margin-top: 5px; display: flex; align-items: center; gap: 5px; }
        .notif-empty { padding: 35px 15px; text-align: center; color: var(--gray); font-size: 13px; }
        .notif-empty i { font-size: 32px; color: #dfe3e6; display: block; margin-bottom: 10px; }
        .notif-footer { padding: 11px; text-align: center; border-top: 1px solid rgba(0,0,0,0.07); background: var(--light); border-radius: 0 0 16px 16px; }
        .notif-footer span, .notif-footer a { font-size: 13px; color: var(--primary); font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: color 0.2s; }
        .notif-footer a:hover { color: var(--primary-dark); }
        .notif-footer a i { font-size: 11px; }

        /* --- Desktop User Popup (avatar on the left of the header) --- */
        .user-menu-wrap { position: relative; display: none; }
        .user-avatar-btn { width: 38px; height: 38px; padding: 0; border-radius: 50%; border: 2px solid var(--gold); background: none; cursor: pointer; display: block; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
        .user-avatar-btn img { width: 100%; height: 100%; object-fit: cover; }
        .user-avatar-btn:hover { transform: scale(1.05); box-shadow: 0 0 0 3px rgba(248, 202, 27, 0.25); }
.user-popup {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    width: 290px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    padding: 15px;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    max-height: 500px;
    overflow-y: auto;
}
        .user-popup.active { opacity: 1; visibility: visible; transform: translateY(0); }
        .user-popup::before { content: ''; position: absolute; top: -7px; left: 14px; width: 14px; height: 14px; background: var(--white); transform: rotate(45deg); border-radius: 3px 0 0 0; }
        .user-popup-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid rgba(0,0,0,0.07); }
        .user-popup-head img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
        .user-popup-head h4 { font-size: 14px; color: var(--dark); margin-bottom: 3px; }
        .user-popup-head p { font-size: 12px; color: var(--gray); direction: ltr; text-align: right; }
        .user-popup-menu { margin-top: 8px; }
        .user-popup-item { display: flex; align-items: center; gap: 12px; padding: 11px 8px; font-size: 14px; color: var(--dark); cursor: pointer; border-radius: 10px; transition: background 0.2s, color 0.2s; }
        .user-popup-item:hover { background: var(--light); color: var(--primary); }
        .user-popup-item i { width: 18px; text-align: center; color: var(--gray); font-size: 15px; transition: color 0.2s; }
        .user-popup-item:hover i { color: var(--primary); }
        .user-popup-item.logout { color: var(--primary); border-top: 1px solid rgba(0,0,0,0.07); margin-top: 6px; padding-top: 12px; border-radius: 0 0 10px 10px; }
        .user-popup-item.logout i { color: var(--primary); }
.user-popup::-webkit-scrollbar {
    width: 10px;
}

.user-popup::-webkit-scrollbar-track {
    background-color: var(--white);
}

.user-popup::-webkit-scrollbar-thumb {
    box-shadow: inset 0 0 20px var(--primary);
}

        /* --- Wallet Card (shared: desktop popup + mobile drawer) --- */
        .wallet-card { background: linear-gradient(135deg, var(--gold) 0%, #e0a800 100%); border-radius: 14px; padding: 14px; color: var(--footer-bg-start); box-shadow: 0 6px 18px rgba(248, 202, 27, 0.3); }
        .wallet-label { font-size: 12px; font-weight: 500; display: flex; align-items: center; gap: 7px; opacity: 0.85; }
        .wallet-balance { font-size: 20px; font-weight: 800; margin: 8px 0 12px; }
        .wallet-balance span { font-size: 12px; font-weight: 500; }
        .wallet-charge-btn { width: 100%; background: var(--footer-bg-start); color: var(--gold); border: none; border-radius: 10px; padding: 9px; font-family: inherit; font-size: 13px; font-weight: bold; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px; transition: background 0.3s; }
        .wallet-charge-btn:hover { background: #000; }
        .wallet-actions.with-payout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
        .wallet-payout-btn { width: 100%; background: rgba(255, 255, 255, .88); color: var(--footer-bg-start); border: none; border-radius: 10px; padding: 9px 6px; font-family: inherit; font-size: 12px; font-weight: bold; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; transition: background 0.3s, color 0.3s; }
        .wallet-payout-btn:hover { background: #fff; color: #000; }

        /* --- Overlays & Drawers Common --- */
        .drawer-overlay { position: fixed; top: 0; right: 0; left: 0; bottom: 0; background: rgba(0,0,0,0.3); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); z-index: 999; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
        .drawer-overlay.active { opacity: 1; visibility: visible; }

        /* --- Main Drawer --- */
        .drawer { position: fixed; top: 0; bottom: 0; right: -300px; width: 280px; z-index: 1000; transition: right 0.3s ease; padding: 20px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; background: linear-gradient(135deg, var(--footer-bg-start) 0%, var(--footer-bg-end) 100%); border-left: 1px solid var(--gold); box-shadow: -5px 0 20px rgba(0,0,0,0.3); }
        .drawer.active { right: 0; }
        .drawer-header { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid rgba(212, 175, 55, 0.3);}
        .drawer-header img { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--gold); object-fit: cover; }
        .drawer-header h3 { font-size: 16px; color: var(--gold-light); }
        .drawer-header p { font-size: 12px; color: #ccc; }
        .drawer-menu-item { display: flex; align-items: center; gap: 15px; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.1); cursor: pointer; color: #dcdcdc; transition: all 0.3s ease; }
        .drawer-menu-item:hover { color: var(--gold); padding-right: 10px; }
        .drawer-menu-item i { color: var(--gold); width: 20px; text-align: center; }
        .drawer-section-title { margin-top: 20px; font-size: 14px; color: #aaa; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
        .drawer-section-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
        .drawer-newsletter-text { font-size: 12px; color: #ccc; line-height: 1.8; margin-bottom: 12px; }
        .drawer-logout { width: 100%; margin-top: 20px; background: none; border: none; border-top: 1px solid rgba(255,255,255,0.1); font-family: inherit; font-size: inherit; text-align: right; color: var(--primary); }
        .drawer-logout i { color: var(--primary); }
        .drawer-logout:hover, .drawer-logout:hover i { color: var(--primary-dark); }
        .footer-info-drawer { font-size: 12px; color: #ccc; line-height: 1.8; margin-top: 20px; }
        .footer-info-drawer h4 { color: var(--gold); margin-bottom: 5px; }
        .footer-info-drawer i { color: var(--gold); }
        .drawer-social { margin-top: 15px; display: flex; gap: 18px; }
        .drawer-social i { font-size: 36px; color: var(--gold); cursor: pointer; transition: color 0.3s, transform 0.2s; }
        .drawer-social i:hover { color: var(--gold-light); transform: translateY(-2px); }

        /* --- Search Drawer --- */
        .search-drawer { position: fixed; top: 0; bottom: 0; right: 0; left: 0; z-index: 1001; transform: translateY(-100%); transition: transform 0.3s ease; background: var(--glass-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 20px; display: flex; flex-direction: column; }
        .search-drawer.active { transform: translateY(0); }
        .search-drawer-head { display: flex; gap: 10px; margin-bottom: 20px; flex-shrink: 0; }
        .search-drawer-input { flex: 1; display: flex; align-items: center; background: rgba(255,255,255,0.6); border-radius: 15px; padding: 12px 15px; border: 1px solid var(--glass-border); }
        .search-drawer-input input { border: none; background: none; outline: none; width: 100%; font-family: inherit; font-size: 16px; color: var(--dark); }
        .search-drawer-input i { color: var(--gray); font-size: 18px; margin-left: 10px; }
        .search-close-btn { background: var(--primary); color: white; border: none; border-radius: 12px; padding: 0 15px; font-size: 18px; cursor: pointer; }
        .search-content { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding-bottom: 80px; }
        .search-title { font-size: 14px; color: var(--gray); margin: 20px 0 10px; }
        .search-tags { display: flex; flex-wrap: nowrap; gap: 10px; padding-bottom: 5px; }
        .search-tag { background: rgba(255,255,255,0.6); padding: 8px 15px; border-radius: 20px; font-size: 13px; color: var(--dark); border: 1px solid var(--glass-border); flex-shrink: 0; white-space: nowrap; cursor: pointer; transition: all 0.2s; }
        .search-tag:active { transform: scale(0.95); background: var(--primary); color: white; }

        /* Horizontal drag-scroll utility (stories, search tags) */
        .drag-scroll { overflow-x: auto; scroll-behavior: smooth; touch-action: pan-x; }
        .drag-scroll.dragging { scroll-behavior: auto; cursor: grabbing; user-select: none; }
        .drag-scroll.dragging * { pointer-events: none; }
        @media (hover: hover) and (pointer: fine) { .drag-scroll { cursor: grab; } }

        /* Location Selectors */
        .location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
        .glass-select { width: 100%; padding: 12px 15px; border-radius: 15px; background: rgba(255,255,255,0.6); border: 1px solid var(--glass-border); font-family: inherit; font-size: 14px; color: var(--dark); outline: none; cursor: pointer; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b2bec3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: left 15px center; background-size: 14px; }

        .search-splash { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--white); z-index: 3000; display: none; flex-direction: column; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; }
        .search-splash.active { display: flex; opacity: 1; }

        /* --- Category Grid --- */
        .category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
        .cat-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(255,255,255,0.5); border: 1px solid var(--glass-border); border-radius: 15px; padding: 15px 5px; cursor: pointer; transition: all 0.2s ease; position: relative; }
        .cat-item i { font-size: 24px; color: var(--primary); transition: color 0.2s ease; }
        .cat-item span { font-size: 12px; color: var(--dark); text-align: center; font-weight: 500; }
        .cat-item.selected { background: var(--primary); border-color: var(--primary-dark); box-shadow: 0 4px 10px rgba(239, 58, 75, 0.3); }
        .cat-item.selected i, .cat-item.selected span { color: white; }
        .cat-item .check-icon { position: absolute; top: 5px; left: 5px; color: white; font-size: 12px; display: none; }
        .cat-item.selected .check-icon { display: block; }

        .apply-filters-btn { flex: 1; background: var(--primary); color: white; border: none; padding: 15px; border-radius: 15px; font-family: inherit; font-size: 16px; font-weight: bold; cursor: pointer; box-shadow: 0 10px 20px rgba(239, 58, 75, 0.3); display: flex; align-items: center; justify-content: center; gap: 10px; }

        /* --- Cart Drawer --- */
        .cart-drawer { position: fixed; top: 0; bottom: 0; left: -350px; width: 350px; z-index: 1000; transition: left 0.3s ease; display: flex; flex-direction: column; background: var(--glass-bg); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border-right: 1px solid var(--glass-border); box-shadow: 5px 0 20px rgba(0,0,0,0.1); }
        .cart-drawer.active { left: 0; }
        .cart-header { padding: 20px; border-bottom: 1px solid rgba(0,0,0,0.05); display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
        .cart-header h3 { font-size: 18px; color: var(--dark); }
        .cart-header i { font-size: 20px; color: var(--gray); cursor: pointer; }
        .vendor-tabs-swiper { width: 100%; padding: 15px 0; border-bottom: 1px solid rgba(0,0,0,0.05); flex-shrink: 0; background: rgba(255,255,255,0.3); }
        .vendor-tabs-swiper .swiper-wrapper { align-items: center; }
        .vendor-tab { padding: 8px 18px; border-radius: 20px; font-size: 13px; white-space: nowrap; cursor: pointer; background: var(--light); color: var(--dark); border: 1px solid transparent; transition: all 0.3s ease; display: inline-block; user-select: none; }
        .vendor-tab.active { background: var(--primary); color: white; border-color: var(--primary-dark); transform: scale(1.05); box-shadow: 0 4px 10px rgba(239, 58, 75, 0.2); }
        .cart-items { flex: 1; padding: 15px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
        .cart-item { display: flex; flex-direction: column; gap: 10px; background: rgba(255,255,255,0.6); padding: 12px; border-radius: 12px; margin-bottom: 15px; border: 1px solid var(--glass-border); }
        .cart-item-top { display: flex; gap: 12px; align-items: flex-start; }
        .cart-item img { width: 70px; height: 70px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
        .cart-item-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
        .cart-item-info h4 { font-size: 14px; color: var(--dark); }
        .cart-item-cat { font-size: 11px; color: var(--gray); background: var(--light); padding: 2px 8px; border-radius: 8px; width: fit-content; }
        .cart-remove-btn { color: #b2bec3; cursor: pointer; font-size: 16px; transition: color 0.2s; padding: 5px; }
        .cart-remove-btn:hover { color: var(--primary); }
        .cart-item-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px dashed rgba(0,0,0,0.1); }
        .cart-qty-selector { display: flex; align-items: center; gap: 12px; background: var(--white); border-radius: 10px; padding: 4px; border: 1px solid var(--glass-border); }
        .qty-btn { width: 28px; height: 28px; background: var(--light); border: none; border-radius: 6px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--dark); font-weight: bold; font-size: 14px; transition: background 0.2s; }
        .qty-btn:hover { background: var(--primary); color: white; }
        .qty-num { font-size: 14px; font-weight: bold; min-width: 24px; text-align: center; }
        .cart-item-price { font-size: 16px; font-weight: 800; color: var(--primary); }
        .cart-footer { padding: 20px; border-top: 1px solid rgba(0,0,0,0.05); flex-shrink: 0; background: rgba(255,255,255,0.4); }
        .cart-total { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 16px; font-weight: bold; color: var(--dark); }
        .cart-checkout-btn { width: 100%; background: var(--primary); color: white; border: none; padding: 15px; border-radius: 12px; font-family: inherit; font-size: 16px; font-weight: bold; cursor: pointer; transition: background 0.3s; }
        .cart-checkout-btn:hover { background: var(--primary-dark); }

        @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

        /* --- Minimal shop heading --- */
        .shop-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 15px 8px; background: var(--white); }
        .shop-page-heading > div { min-width: 0; }
        .shop-page-heading span { display: flex; align-items: center; gap: 6px; color: var(--primary); font-size: 11px; font-weight: 700; }
        .shop-page-heading h1 { color: var(--dark); font-size: 18px; margin-top: 6px; line-height: 1.6; }
        .shop-page-heading a { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-size: 12px; font-weight: 700; }
        .shop-page-heading a i { font-size: 13px; }

        /* --- Shop Hero (cover + profile of the selected business) --- */
        .shop-cover-wrap { position: relative; height: 190px; overflow: hidden; }
        .shop-cover-wrap img { width: 100%; height: 100%; object-fit: cover; }
        .shop-cover-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.05) 45%, rgba(0,0,0,0.55) 100%); }
        .cover-top-bar { position: absolute; top: 12px; right: 15px; left: 15px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
        .cover-badge { background: rgba(0,0,0,0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; font-size: 11px; padding: 6px 12px; border-radius: 20px; display: flex; align-items: center; gap: 6px; }
        .cover-badge.open { background: rgba(39, 174, 96, 0.85); }
        .cover-badge.closed { background: rgba(239, 58, 75, 0.85); }
        .cover-actions { display: flex; gap: 8px; }
        .cover-icon-btn { width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; border: none; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; transition: color 0.2s, transform 0.2s; }
        .cover-icon-btn:hover { transform: scale(1.08); }
        .cover-icon-btn.active { color: var(--primary); }

        .shop-profile { background: var(--white); border-radius: 22px 22px 0 0; margin-top: -22px; position: relative; z-index: 5; padding: 0 15px 18px; animation: fadeInUp 0.5s ease; }
        .shop-profile-top { display: flex; align-items: flex-end; gap: 12px; }
        .shop-logo { width: 84px; height: 84px; border-radius: 20px; object-fit: cover; border: 4px solid var(--white); background: var(--white); margin-top: -42px; box-shadow: 0 6px 18px rgba(0,0,0,0.12); flex-shrink: 0; }
        .shop-headline { flex: 1; min-width: 0; padding-bottom: 4px; }
        .shop-name { font-size: 18px; font-weight: 800; color: var(--dark); display: flex; align-items: center; gap: 6px; }
        .shop-name .verify { color: #2e86de; font-size: 14px; }
        .shop-tagline { font-size: 12px; color: var(--gray); margin-top: 5px; line-height: 1.7; }
        .shop-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
        .shop-chip { font-size: 11px; color: var(--gray); background: var(--light); padding: 4px 10px; border-radius: 10px; display: flex; align-items: center; gap: 5px; }
        .shop-chip i { color: var(--primary); font-size: 11px; }
        .shop-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 15px; background: var(--light); border-radius: 15px; padding: 12px 8px; }
        .shop-stat { text-align: center; }
        .shop-stat b { display: block; font-size: 15px; color: var(--dark); }
        .shop-stat b i { color: var(--secondary); font-size: 12px; }
        .shop-stat span { font-size: 11px; color: var(--gray); }
        .shop-cta { display: flex; gap: 10px; margin-top: 14px; }
        .btn-follow { flex: 1; background: var(--primary); color: #fff; border: none; border-radius: 12px; padding: 12px; font-family: inherit; font-size: 14px; font-weight: bold; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background 0.3s; }
        .btn-follow:hover { background: var(--primary-dark); }
        .btn-follow.following { background: var(--light); color: var(--dark); }
        .btn-ghost { background: var(--light); color: var(--dark); border: none; border-radius: 12px; padding: 0 16px; font-family: inherit; font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.3s, color 0.3s; }
        .btn-ghost:hover { background: var(--primary); color: #fff; }

        /* --- Shop Info & Settings --- */
        .info-section { background: var(--white); padding: 0 15px 25px; }
        .info-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
        .info-row { display: flex; gap: 12px; align-items: flex-start; background: var(--light); border-radius: 14px; padding: 12px; }
        .info-row > i { width: 34px; height: 34px; border-radius: 10px; background: var(--white); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
        .info-row div { min-width: 0; flex: 1; }
        .info-row h5 { font-size: 12px; color: var(--gray); font-weight: 500; margin-bottom: 4px; }
        .info-row p { font-size: 13px; color: var(--dark); line-height: 1.8; word-break: break-word; }
        .info-more { overflow: hidden; max-height: 0; transition: max-height 0.45s ease; }
        .info-more.open { max-height: 4000px; }
        .info-sub-title { font-size: 14px; font-weight: 700; color: var(--dark); margin: 20px 0 10px; display: flex; align-items: center; gap: 8px; }
        .info-sub-title i { color: var(--primary); font-size: 13px; }

        /* کادر قرمز دربرگیرنده اطلاعات کامل فروشگاه */
.info-panel {
    margin-top: 15px;
    border: 1.5px solid var(--primary);
    border-radius: 18px;
    background: linear-gradient(180deg, var(--footer-bg-start) 0%, var(--footer-bg-end) 100%);
    padding: 14px;
    box-shadow: 0 6px 20px var(--footer-bg-end);
}
        .info-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; padding-bottom: 11px; border-bottom: 1px dashed rgba(239, 58, 75, 0.3); }
        .info-panel-head h4 { font-size: 14px; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 8px; }
        .info-panel-head h4 i { font-size: 14px; }
        .info-panel-sub { font-size: 11.5px; color: var(--gray); background: var(--white); padding: 4px 11px; border-radius: 20px; }

        .info-boxes { display: grid; grid-template-columns: 1fr; gap: 12px; }
        .info-box { background: var(--white); border-radius: 15px; padding: 14px; box-shadow: 0 4px 14px rgba(0,0,0,0.05); display: flex; flex-direction: column; }
        .info-box-wide { margin-top: 12px; }
        .info-box-head { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
        .info-box-head.spaced { margin-top: 15px; }
        .info-box-head i { width: 30px; height: 30px; border-radius: 9px; background: rgba(239, 58, 75, 0.09); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
        .info-box-head h5 { font-size: 13px; font-weight: 700; color: var(--dark); }
        .info-box-empty { font-size: 12px; color: var(--gray); }

        .info-box-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
        .info-box-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; color: var(--dark); line-height: 1.9; }
        .info-box-list li > i { color: var(--primary); font-size: 12px; margin-top: 4px; flex-shrink: 0; width: 14px; text-align: center; }
        .info-box-list a { color: var(--dark); word-break: break-all; transition: color 0.2s; }
        .info-box-list a:hover { color: var(--primary); }
        .info-box-list .ltr { direction: ltr; text-align: right; unicode-bidi: embed; }

        .info-box-social { display: flex; gap: 12px; margin-top: 12px; padding-top: 11px; border-top: 1px solid rgba(0,0,0,0.05); }
        .info-box-social a { width: 34px; height: 34px; border-radius: 10px; background: var(--light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 16px; transition: background 0.2s, color 0.2s, transform 0.2s; }
        .info-box-social a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

        .info-box-facts { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
        .info-box-facts > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--light); border-radius: 10px; padding: 8px 11px; }
        .info-box-facts span { font-size: 11.5px; color: var(--gray); }
        .info-box-facts b { font-size: 12px; color: var(--dark); text-align: left; }

        .hours-table { background: var(--light); border-radius: 12px; overflow: hidden; }
        .hours-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; font-size: 12.5px; border-bottom: 1px solid rgba(0,0,0,0.05); }
        .hours-row:last-child { border-bottom: none; }
        .hours-row.today { background: rgba(239, 58, 75, 0.09); font-weight: bold; color: var(--primary); }
        .hours-row span:last-child { color: var(--gray); direction: ltr; }
        .hours-row.today span:last-child { color: var(--primary); }
        .hours-row.closed span:last-child { color: var(--primary); font-weight: bold; }
        .tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
        .tag-item { font-size: 12px; background: var(--light); color: var(--dark); padding: 7px 12px; border-radius: 20px; display: flex; align-items: center; gap: 6px; }
        .tag-item i { color: var(--primary); font-size: 11px; }
        .shop-about { font-size: 13px; color: #555; line-height: 2; }
        .shop-social { display: flex; gap: 15px; margin-top: 12px; }
        .shop-social i { font-size: 26px; color: var(--primary); cursor: pointer; transition: transform 0.2s, color 0.2s; }
        .shop-social i:hover { transform: translateY(-2px); color: var(--primary-dark); }
.info-toggle-btn {
    width: 100%;
    margin-top: 15px;
    background: var(--primary);
    border: 1px dashed rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 11px;
    font-family: inherit;
    font-size: 13px;
    color: var(--footer-bg-end);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
        .info-toggle-btn i { transition: transform 0.3s; }
        .info-toggle-btn.open i { transform: rotate(180deg); }

        /* --- Product & Service Category Grid (below the search box) --- */
        .pcat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 15px; }
        .pcat-card { background: var(--white); border-radius: 15px; padding: 14px 6px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.05); cursor: pointer; border: 1.5px solid transparent; transition: all 0.2s ease; }
        .pcat-card:hover { transform: translateY(-3px); }
        .pcat-card i { font-size: 22px; color: var(--primary); }
        .pcat-card span { display: block; font-size: 12px; font-weight: 500; color: var(--dark); margin-top: 8px; }
        .pcat-card small { display: block; font-size: 10px; color: var(--gray); margin-top: 4px; }
        .pcat-card.active { border-color: var(--primary); background: rgba(239, 58, 75, 0.06); }

        /* --- Products Grid + Toolbar --- */
        .products-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 15px; margin-bottom: 12px; }
        .result-count { font-size: 12px; color: var(--gray); }
        .result-count b { color: var(--dark); }
        .toolbar-select { width: auto; min-width: 150px; padding: 9px 14px 9px 34px; border-radius: 12px; background-color: var(--white); border-color: transparent; font-size: 13px; }
        .active-filters { display: flex; gap: 8px; padding: 0 15px 12px; }
        .active-filters:empty { display: none; }
        .af-chip { background: rgba(239, 58, 75, 0.1); color: var(--primary); border: 1px solid var(--primary); font-size: 12px; padding: 6px 12px; border-radius: 20px; display: flex; align-items: center; gap: 7px; white-space: nowrap; flex-shrink: 0; cursor: pointer; }
        .af-chip i { font-size: 11px; }
        .af-clear { background: var(--light); color: var(--gray); border: 1px solid transparent; }
        .products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 15px; }
        .p-card { background: var(--white); border-radius: 15px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); position: relative; display: flex; flex-direction: column; animation: fadeInUp 0.35s ease; }
        .p-card-img { position: relative; }
        .p-card-img img { width: 100%; height: 150px; object-fit: cover; }
        .p-badge { position: absolute; top: 8px; right: 8px; background: var(--primary); color: #fff; padding: 4px 9px; border-radius: 20px; font-size: 10px; font-weight: bold; }
        .p-badge.service { background: var(--secondary); color: var(--footer-bg-start); }
        .p-badge.new { background: #2e86de; }
        .p-out { position: absolute; inset: 0; background: rgba(255,255,255,0.7); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: bold; color: var(--primary); }
        .p-body { padding: 10px 12px 12px; display: flex; flex-direction: column; flex: 1; }
        .p-name { font-size: 13px; font-weight: 500; line-height: 1.7; height: 44px; overflow: hidden; margin-bottom: 8px; }
        .p-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
        .p-cat { font-size: 10px; color: var(--gray); background: var(--light); padding: 3px 8px; border-radius: 10px; }
        .p-rate { font-size: 11px; color: var(--secondary); font-weight: bold; display: flex; align-items: center; gap: 3px; }
        .p-price-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
        .p-price { font-size: 14px; font-weight: 800; color: var(--primary); }
        .p-price small { font-size: 10px; font-weight: 500; color: var(--gray); }
        .p-old { display: block; font-size: 11px; color: var(--gray); text-decoration: line-through; }
        .p-add-btn { width: 32px; height: 32px; border-radius: 10px; background: var(--primary); color: #fff; border: none; cursor: pointer; font-size: 13px; flex-shrink: 0; transition: background 0.2s; }
        .p-add-btn:hover { background: var(--primary-dark); }
        .p-add-btn:disabled { background: #dfe3e6; color: var(--gray); cursor: not-allowed; }
        .empty-state { text-align: center; padding: 45px 20px; color: var(--gray); }
        .empty-state i { font-size: 40px; color: #dfe3e6; display: block; margin-bottom: 12px; }
        .empty-state p { font-size: 14px; }
        .empty-state button { margin-top: 15px; background: var(--primary); color: #fff; border: none; border-radius: 12px; padding: 10px 22px; font-family: inherit; font-size: 13px; cursor: pointer; }
        .shop-products-loading, .shop-products-end { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; padding: 10px 15px; color: var(--gray); font-size: 12px; text-align: center; }
        .shop-products-end { color: var(--primary); }
        .shop-products-spinner { width: 18px; height: 18px; border: 2px solid rgba(239, 58, 75, 0.22); border-top-color: var(--primary); border-radius: 50%; animation: shopProductsSpin 0.75s linear infinite; }
        #shopProductsSentinel { height: 1px; width: 100%; }
        @keyframes shopProductsSpin { to { transform: rotate(360deg); } }

        /* --- Search Drawer: product filters --- */
        .glass-input { width: 100%; padding: 12px 15px; border-radius: 15px; background: rgba(255,255,255,0.6); border: 1px solid var(--glass-border); font-family: inherit; font-size: 14px; color: var(--dark); outline: none; }
        .price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
        .chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
        .f-chip { background: rgba(255,255,255,0.6); border: 1px solid var(--glass-border); padding: 8px 14px; border-radius: 20px; font-size: 13px; color: var(--dark); cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 6px; }
        .f-chip i { font-size: 11px; }
        .f-chip.active { background: var(--primary); color: #fff; border-color: var(--primary-dark); box-shadow: 0 4px 10px rgba(239, 58, 75, 0.25); }
        .search-actions { position: absolute; bottom: 20px; left: 20px; right: 20px; display: flex; gap: 10px; }
        .reset-filters-btn { background: rgba(255,255,255,0.7); color: var(--dark); border: 1px solid var(--glass-border); border-radius: 15px; padding: 0 18px; font-family: inherit; font-size: 15px; cursor: pointer; }

        /* --- Search Section (Trigger) --- */
        .search-section { padding: 20px 15px; background: var(--white); }
        .search-trigger { display: flex; align-items: center; background: var(--light); border-radius: 15px; padding: 12px 15px; margin-bottom: 15px; cursor: pointer; }
        .search-trigger i { color: var(--gray); font-size: 18px; margin-left: 10px; }
        .search-trigger span { color: var(--gray); font-size: 14px; }
        .filter-pills { display: flex; gap: 10px; padding-bottom: 5px; }
        .pill { background: var(--light); padding: 8px 15px; border-radius: 30px; font-size: 13px; color: var(--dark); white-space: nowrap; flex-shrink: 0; border: 1px solid transparent; cursor: pointer; display: flex; align-items: center; gap: 5px; }
        .pill.active { background: rgba(239, 58, 75, 0.1); color: var(--primary); border-color: var(--primary); font-weight: bold; }
        .pill i { font-size: 12px; }

        /* --- Section Styles --- */
        .section { padding: 25px 0; }
        .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding: 0 15px; }
        .section-title { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
        .section-title i { color: var(--primary); }
        .section-more { font-size: 13px; color: var(--primary); }
        .swiper-carousel { padding: 0 15px !important; padding-right: 0 !important; }
        .swiper-carousel .swiper-slide { width: 85%; margin-left: 15px !important; }

        /* Cards */
        .biz-card { background: var(--white); border-radius: 15px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); height: 100%; }
        .biz-img { width: 100%; height: 140px; object-fit: cover; }
        .biz-info { padding: 12px; }
        .biz-name { font-size: 15px; font-weight: 700; margin-bottom: 5px; }
        .biz-meta { display: flex; justify-content: space-between; align-items: center; }
        .biz-cat { font-size: 11px; color: var(--gray); background: var(--light); padding: 3px 8px; border-radius: 10px; }
        .biz-rate { font-size: 12px; color: var(--secondary); font-weight: bold; display: flex; align-items: center; gap: 3px; }

        .prod-card { background: var(--white); border-radius: 15px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); height: 100%; position: relative; }
        .prod-img { width: 100%; height: 180px; object-fit: cover; }
        .prod-info { padding: 12px; }
        .prod-name { font-size: 14px; font-weight: 500; margin-bottom: 8px; height: 40px; overflow: hidden; }
        .prod-price { font-size: 15px; font-weight: 800; color: var(--primary); }
        .prod-old-price { font-size: 12px; color: var(--gray); text-decoration: line-through; margin-right: 5px; }
        
        .disc-card { background: var(--white); border-radius: 15px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); height: 100%; position: relative; }
        .disc-badge { position: absolute; top: 10px; right: 10px; background: var(--primary); color: white; padding: 5px 10px; border-radius: 20px; font-size: 11px; font-weight: bold; z-index: 2; }
        .disc-img { width: 100%; height: 160px; object-fit: cover; }
        .disc-info { padding: 12px; }
        .disc-timer { font-size: 12px; color: var(--dark); display: flex; align-items: center; gap: 5px; margin-top: 5px; }
        .disc-timer i { color: var(--primary); }

        .comment-card { background: var(--white); border-radius: 15px; padding: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); height: 100%; }
        .comment-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
        .comment-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
        .comment-user h4 { font-size: 14px; }
        .comment-user span { font-size: 11px; color: var(--gray); }
        .comment-stars { color: var(--secondary); font-size: 12px; margin-right: auto; }
        .comment-text { font-size: 13px; color: #555; line-height: 1.6; }

        /* --- Advertising Section --- */
        .advert-section { padding: 40px 0; background: white; overflow: hidden; }
        .ad-swiper-container { padding: 20px 0; perspective: 1200px; }
        .ad-swiper { overflow: visible !important; padding: 0 15px !important; }
        .ad-swiper .swiper-slide { width: 85%; height: 180px; transition: transform 0.3s ease; }
        .advert-box { border-radius: 15px; overflow: hidden; position: relative; height: 100%; width: 100%; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
        .advert-box img { width: 100%; height: 100%; object-fit: cover; }
        .advert-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.7), transparent); display: flex; flex-direction: column; justify-content: center; padding: 20px; }
        
        /* Custom Advert h3 Style */
        .advert-overlay h3 { 
            color: #FFFFFF; 
            background: #0000002e; 
            text-shadow: #434343 1px 2px 2px; 
            font-size: 18px; 
            margin-bottom: 5px;
            padding: 5px 10px; 
            align-self: flex-start; 
            border-radius: 5px; 
        }
        
        /* Custom Advert p Style */
        .advert-overlay p { 
            color: #000000;
            font-size: 12px;
            background: #ffcf007a;
            align-self: flex-start;
            padding: 5px 10px;
            border-radius: 5px;
        }

        /* --- Desktop Footer & Wave --- */
        .footer-wave { display: none; line-height: 0; }
        .footer-wave svg { width: 100%; height: 80px; display: block; }
        footer { display: none; background: linear-gradient(135deg, var(--footer-bg-start) 0%, var(--footer-bg-end) 100%); color: #ccc; padding: 0 5% 40px; }
        footer .footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 40px; max-width: 1200px; margin: 0 auto; padding-top: 20px; }
        footer h4 { color: var(--gold); font-size: 18px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
        footer h4::after { content: ''; flex: 1; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); }
        footer ul { list-style: none; }
        footer ul li { margin-bottom: 12px; font-size: 14px; color: #dcdcdc; cursor: pointer; display: flex; align-items: center; gap: 10px; transition: color 0.3s, padding-right 0.3s; }
        footer ul li:hover { color: var(--gold); padding-right: 5px; }
        footer ul li i { color: var(--gold); width: 16px; text-align: center; }
        .footer-contact li { align-items: flex-start; }
        .newsletter-form { display: flex; background: rgba(255,255,255,0.1); border-radius: 10px; padding: 5px; margin-bottom: 20px; border: 1px solid rgba(212, 175, 55, 0.3); }
        .newsletter-form input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: white; padding: 10px; font-family: inherit; font-size: 14px; }
        .newsletter-form input::placeholder { color: #aaa; }
        .newsletter-form button { flex-shrink: 0; background: var(--gold); color: var(--footer-bg-start); border: none; padding: 0 15px; border-radius: 8px; cursor: pointer; font-family: inherit; font-weight: bold; transition: background 0.3s; }
        .newsletter-form button:hover { background: var(--gold-light); }
        .footer-badges { display: flex; gap: 15px; margin-top: 20px; }
        .badge-placeholder { width: 90px; height: 100px; background: white; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
        .badge-placeholder i { font-size: 30px; color: #555; margin-bottom: 5px; }
        .badge-placeholder span { font-size: 10px; color: #333; font-weight: bold; }
        .footer-copyright { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 13px; color: #888; }

        /* Bottom Navigation */
        .bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 600px; background: linear-gradient(135deg, var(--footer-bg-start) 0%, var(--footer-bg-end) 100%); display: flex; justify-content: space-around; padding: 10px 0; box-shadow: 0 -2px 10px rgba(0,0,0,0.2); z-index: 100; }
        .nav-item { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #dcdcdc; cursor: pointer; }
        .nav-item i { font-size: 20px; }
        .nav-item span { font-size: 10px; }
        .nav-item.active { color: var(--gold); }

        @media (min-width: 768px) {
            body { max-width: 100%; }
            .swiper-carousel .swiper-slide { width: 250px; }
            header { max-width: 100%; padding: 15px 5%; }
            .search-section, .section-header { padding-left: 5%; padding-right: 5%; }
            .section { padding: 30px 0; }
            .category-grid { grid-template-columns: repeat(6, 1fr); }
            .ad-swiper .swiper-slide { width: calc((100% - 40px) / 3); height: 220px; }
            /* Shop page desktop layout */
            .shop-cover-wrap { height: 300px; }
            .shop-profile { margin: -28px 5% 0; border-radius: 22px 22px 0 0; padding: 0 25px 22px; }
            .info-section { margin: 0 5%; border-radius: 0 0 22px 22px; padding: 0 25px 25px; }
            .info-grid { grid-template-columns: 1fr 1fr; }
            /* دسکتاپ: چهار باکس سفید داخل کادر قرمز */
            .info-panel { padding: 18px; border-radius: 20px; }
            .info-boxes { grid-template-columns: 1fr 1fr; gap: 14px; }
            .info-box { padding: 16px; }
            .info-box-wide { margin-top: 14px; }
            .pcat-grid { grid-template-columns: repeat(6, 1fr); padding: 0 5%; }
            .products-grid { grid-template-columns: repeat(4, 1fr); padding: 0 5%; }
            .products-toolbar, .active-filters { padding-left: 5%; padding-right: 5%; }
            .p-card-img img { height: 180px; }
        }

        /* Real desktop only: horizontal top menu replaces the drawer, bottom-nav
           gives way to the full footer. Tablet keeps the mobile-style bottom-nav + drawer. */
        @media (min-width: 1024px) {
            .menu-btn { display: none; }
            .desktop-nav { display: flex; }
            .user-menu-wrap { display: block; }
            body { padding-bottom: 0; }
            .bottom-nav { display: none; }
            .footer-wave, footer { display: block; }

            /* چهار باکس در یک ردیف داخل کادر قرمز */
            .info-grid { grid-template-columns: repeat(4, 1fr); }
            .info-boxes { grid-template-columns: repeat(4, 1fr); }
        }
