    /* shop.css — صفحه فروشگاه (base.css را نیز بارگذاری کنید) */

    /* ===== BREADCRUMB ADDITIONS ===== */
    .page-title-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 20px; }
    .page-title { font-size: 1.4rem; font-weight: 800; color: var(--navy); display: flex; align-items: center; gap: 10px; }
    .result-badge { background: var(--teal-pale); color: var(--teal-dark); font-size: 0.78rem; font-weight: 600; padding: 5px 14px; border-radius: 50px; border: 1px solid var(--teal-light); }

    /* ===== SHOP LAYOUT ===== */
    .shop-layout { display: grid; grid-template-columns: 270px 1fr; gap: 24px; padding-bottom: 60px; align-items: start; }

    /* ===== SIDEBAR ===== */
    .sidebar { display: flex; flex-direction: column; gap: 0; }
    .sidebar-mob-head { display: none; }
    .sidebar-inner { display: flex; flex-direction: column; gap: 14px; }
    .sidebar-card { background: white; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-sm); }
    .sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid var(--border); cursor: pointer; user-select: none; transition: background 0.15s; }
    .sidebar-head:hover { background: var(--teal-pale); }
    .sidebar-head h3 { font-size: 0.88rem; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 8px; }
    .sidebar-head h3 i { color: var(--teal); font-size: 0.82rem; }
    .sidebar-toggle { color: var(--text-muted); font-size: 0.75rem; transition: transform 0.25s; }
    .sidebar-toggle.open { transform: rotate(180deg); }
    .sidebar-body { padding: 14px 18px; }

    .sidebar-search-wrap { position: relative; }
    .sidebar-search-input { width: 100%; padding: 10px 18px 10px 68px; border: 2px solid var(--border); border-radius: 50px; font-family: 'Vazir',sans-serif; font-size: 0.85rem; background: var(--teal-pale); outline: none; transition: all 0.22s; color: var(--text); }
    .sidebar-search-input:focus { border-color: var(--teal); background: white; box-shadow: 0 0 0 3px rgba(14,159,165,0.1); }
    .sidebar-search-input::placeholder { color: var(--text-muted); }
    .sidebar-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--teal); font-size: 0.85rem; pointer-events: none; }
    .sidebar-search-clear { position: absolute; left: 36px; top: 50%; transform: translateY(-50%); background: #ddd; border: none; cursor: pointer; width: 18px; height: 18px; border-radius: 50%; display: none; align-items: center; justify-content: center; font-size: 0.6rem; color: #666; transition: background 0.15s; }
    .sidebar-search-clear:hover { background: #bbb; }
    .sidebar-search-clear.visible { display: flex; }

    .cat-tree { list-style: none; }
    .cat-tree > li { border-bottom: 1px solid #f0f8f9; }
    .cat-tree > li:last-child { border-bottom: none; }
    .cat-tree > li > span { display: flex; align-items: center; justify-content: space-between; padding: 9px 4px; color: var(--navy-light); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: color 0.2s; user-select: none; }
    .cat-tree > li > span:hover { color: var(--teal); }
    .cat-tree > li > span.active-cat-link { color: var(--teal); }
    .cat-count { background: var(--teal-pale); color: var(--teal-dark); font-size: 0.68rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
    .sub-cats { list-style: none; padding: 0 0 6px 14px; display: none; }
    .sub-cats.show { display: block; }
    .sub-cats li a { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; text-decoration: none; color: var(--text-muted); font-size: 0.82rem; transition: color 0.15s; }
    .sub-cats li a:hover { color: var(--teal); }
    .sub-cats li a.active { color: var(--teal); font-weight: 600; }

    .price-inputs { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
    .price-input { flex: 1; padding: 7px 8px; border: 2px solid var(--border); border-radius: 10px; font-family: 'Vazir',sans-serif; font-size: .78rem; color: var(--text); outline: none; text-align: center; transition: border .2s; background: var(--bg,#f8fafc); }
    .price-input:focus { border-color: var(--teal); }
    .price-sep { color: var(--text-muted); font-size: .9rem; flex-shrink: 0; }
    .dual-range { position: relative; height: 26px; margin: 4px 0 6px; }
    .dual-range-track { position: absolute; top: 50%; left: 8px; right: 8px; transform: translateY(-50%); height: 5px; background: var(--border,#dde6e8); border-radius: 5px; pointer-events: none; }
    .dual-range-fill  { position: absolute; height: 100%; background: var(--teal,#0e9fa5); border-radius: 5px; transition: left .05s, width .05s; }
    .dual-thumb { position: absolute; width: 100%; top: 50%; transform: translateY(-50%); -webkit-appearance: none; appearance: none; background: transparent; pointer-events: none; margin: 0; padding: 0; }
    .dual-thumb::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; pointer-events: all; width: 18px; height: 18px; border-radius: 50%; background: var(--teal,#0e9fa5); border: 2.5px solid white; box-shadow: 0 2px 6px rgba(14,159,165,.35); cursor: pointer; }
    .dual-thumb::-moz-range-thumb { pointer-events: all; width: 16px; height: 16px; border-radius: 50%; background: var(--teal,#0e9fa5); border: 2.5px solid white; box-shadow: 0 2px 6px rgba(14,159,165,.35); cursor: pointer; border: none; }
    .price-labels { display: flex; justify-content: space-between; font-size: .68rem; color: var(--text-muted); margin-bottom: 12px; }
    .apply-price-btn { width: 100%; padding: 9px; background: var(--teal); border: none; cursor: pointer; border-radius: 50px; color: white; font-family: 'Vazir',sans-serif; font-size: .82rem; font-weight: 700; transition: opacity .2s; }
    .apply-price-btn:hover { opacity: .88; }

    .check-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
    .check-item { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 5px 4px; font-size: 0.84rem; color: var(--navy-light); border-radius: 8px; transition: background 0.15s; }
    .check-item:hover { background: var(--teal-pale); }
    .check-item input[type="checkbox"] { accent-color: var(--teal); width: 16px; height: 16px; cursor: pointer; flex-shrink: 0; }
    .check-label { flex: 1; }
    .check-num { font-size: 0.7rem; color: var(--text-muted); background: #f0f8f9; padding: 2px 7px; border-radius: 20px; }
    .rating-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
    .rating-item { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 7px 8px; border-radius: 10px; transition: background 0.15s; font-size: 0.83rem; }
    .rating-item:hover, .rating-item.active { background: var(--teal-pale); }
    .rating-item input[type="radio"] { accent-color: var(--teal); width: 15px; height: 15px; cursor: pointer; flex-shrink: 0; }
    .r-stars { color: var(--gold); font-size: 0.78rem; letter-spacing: 1px; }
    .r-label { color: var(--text-muted); font-size: 0.78rem; }

    .active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
    .af-tag { display: inline-flex; align-items: center; gap: 6px; background: var(--teal-pale); color: var(--teal-dark); border: 1px solid var(--teal-light); padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
    .af-tag button { background: none; border: none; cursor: pointer; color: var(--teal); font-size: 0.7rem; line-height: 1; padding: 0; }
    .clear-all-btn { font-size: 0.75rem; color: var(--accent); font-weight: 600; cursor: pointer; background: none; border: none; font-family: 'Vazir',sans-serif; padding: 4px 0; display: inline-flex; align-items: center; gap: 5px; }

    .sidebar-mob-head { background: white; border-bottom: 2px solid var(--border); padding: 16px 18px; display: none; align-items: center; justify-content: space-between; flex-shrink: 0; }
    .smh-left { display: flex; align-items: center; gap: 10px; }
    .smh-left h3 { font-size: 1rem; font-weight: 700; color: var(--navy); }
    .smh-badge { background: var(--teal); color: white; font-size: 0.65rem; font-weight: 800; padding: 2px 7px; border-radius: 20px; display: none; }
    .smh-badge.show { display: inline-block; }
    .sidebar-close-btn { width: 36px; height: 36px; background: var(--bg); border: none; cursor: pointer; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 1rem; transition: all 0.2s; flex-shrink: 0; }
    .sidebar-close-btn:hover { background: #fde; color: #e74c3c; }

    /* ===== TOOLBAR ===== */
    .main-content { min-width: 0; }
    .shop-toolbar { background: white; border-radius: var(--radius); padding: 12px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); margin-bottom: 20px; flex-wrap: wrap; }
    .toolbar-right { display: flex; align-items: center; gap: 10px; }
    .toolbar-left { display: flex; align-items: center; gap: 8px; }
    .sort-label { font-size: 0.82rem; color: var(--text-muted); white-space: nowrap; }
    .sort-select { padding: 7px 14px; border: 2px solid var(--border); border-radius: 50px; font-family: 'Vazir',sans-serif; font-size: 0.82rem; color: var(--navy); background: var(--teal-pale); outline: none; cursor: pointer; transition: border 0.2s; }
    .sort-select:focus { border-color: var(--teal); }
    .view-btns { display: flex; gap: 4px; }
    .view-btn { width: 36px; height: 36px; border: 2px solid var(--border); border-radius: 10px; background: white; cursor: pointer; color: var(--text-muted); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; transition: all 0.2s; }
    .view-btn.active { background: var(--teal); border-color: var(--teal); color: white; }
    .view-btn:hover:not(.active) { border-color: var(--teal); color: var(--teal); }
    .result-count { font-size: 0.82rem; color: var(--text-muted); }
    .result-count strong { color: var(--navy); }
    .mobile-filter-btn { display: none; align-items: center; gap: 6px; padding: 7px 14px; border: 2px solid var(--border); border-radius: 50px; background: white; cursor: pointer; font-family: 'Vazir',sans-serif; font-size: 0.82rem; color: var(--navy-light); font-weight: 600; transition: all 0.2s; position: relative; }
    .mobile-filter-btn:hover { border-color: var(--teal); color: var(--teal); }
    .mobile-filter-btn.has-filters { border-color: var(--teal); color: var(--teal); background: var(--teal-pale); }
    .mob-filter-count { background: var(--teal); color: white; font-size: 0.62rem; font-weight: 800; min-width: 18px; height: 18px; border-radius: 20px; padding: 0 5px; display: none; align-items: center; justify-content: center; }
    .mob-filter-count.show { display: flex; }

    /* ===== PRODUCT GRID ===== */
    .product-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(210px,1fr)); gap: 18px; margin-bottom: 28px; }
    .product-grid.list-view { grid-template-columns: 1fr; }
    .product-card { background: white; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; transition: all 0.28s; position: relative; box-shadow: var(--shadow-sm); }
    .product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--teal-light); }
    .product-grid.list-view .product-card { display: flex; flex-direction: row; align-items: stretch; }
    .product-grid.list-view .prod-img-wrap { width: 160px; min-width: 160px; height: auto; flex-shrink: 0; }
    .product-grid.list-view .prod-body { display: flex; flex-direction: column; flex: 1; }
    .product-grid.list-view .prod-desc { display: block !important; }
    .product-grid.list-view .prod-add-btn { max-width: 200px; }
    .prod-img-wrap { background: var(--teal-pale); height: 160px; display: flex; align-items: center; justify-content: center; font-size: 3rem; position: relative; overflow: hidden; }
    .prod-img-wrap::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 120%,rgba(14,159,165,0.08),transparent 70%); }
    .prod-body { padding: 14px; display: flex; flex-direction: column; flex: 1; }
    .prod-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 10px; display: none; }
    .discount-pct { background: #ffeee5; color: var(--accent); font-size: 0.68rem; font-weight: 700; padding: 2px 7px; border-radius: 20px; }
    .prod-available { font-size: 0.72rem; margin-bottom: 8px; display: flex; align-items: center; gap: 5px; }
    .prod-available.in { color: #27ae60; }
    .prod-available.out { color: #e74c3c; }

    /* ===== PAGINATION ===== */
    .pagination { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 0 20px; }
    .page-btn { width: 38px; height: 38px; border-radius: 12px; border: 2px solid var(--border); background: white; display: flex; align-items: center; justify-content: center; font-family: 'Vazir',sans-serif; font-size: 0.88rem; font-weight: 600; color: var(--navy-light); cursor: pointer; transition: all 0.2s; }
    .page-btn:hover { border-color: var(--teal); color: var(--teal); }
    .page-btn.active { background: var(--teal); border-color: var(--teal); color: white; }
    .page-btn.disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
    .page-ellipsis { color: var(--text-muted); font-size: 0.88rem; }

    /* ===== EMPTY STATE ===== */
    .empty-state { text-align: center; padding: 70px 20px; background: white; border-radius: var(--radius); border: 1px solid var(--border); }
    .empty-state i { font-size: 3.5rem; color: var(--teal-light); display: block; margin-bottom: 16px; }
    .empty-state h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
    .empty-state p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 18px; }
    .empty-state-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 22px; background: var(--teal); color: white; border: none; border-radius: 50px; font-family: 'Vazir',sans-serif; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: opacity 0.2s; }
    .empty-state-btn:hover { opacity: 0.88; }

    /* ===== MOBILE SIDEBAR OVERLAY ===== */
    .sidebar-mob-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1800; opacity: 0; visibility: hidden; transition: all 0.3s; }
    .sidebar-mob-overlay.show { opacity: 1; visibility: visible; }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 1024px) { .shop-layout { grid-template-columns: 240px 1fr; } }

    @media (max-width: 860px) {
      .shop-layout { grid-template-columns: 1fr; }
      .sidebar { position: fixed; top: 0; right: -310px; width: 300px; height: 100vh; z-index: 1900; overflow: hidden; transition: right 0.38s cubic-bezier(.77,0,.18,1); box-shadow: -6px 0 28px rgba(0,0,0,0.14); display: flex; flex-direction: column; background: var(--bg); }
      .sidebar.open { right: 0; }
      .sidebar-mob-head { display: flex; }
      .sidebar-inner { flex: 1; overflow-y: auto; padding: 14px 12px 24px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--teal-light) transparent; }
      .sidebar-inner::-webkit-scrollbar { width: 4px; }
      .sidebar-inner::-webkit-scrollbar-thumb { background: var(--teal-light); border-radius: 4px; }
      .mobile-filter-btn { display: flex; }
      .sort-label { display: none; }
    }
    @media (max-width: 560px) {
      .product-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
      .product-grid.list-view { grid-template-columns: 1fr; }
      .shop-toolbar { padding: 10px 14px; }
    }
    @media (max-width: 400px) { .product-grid { grid-template-columns: 1fr; } }