    /* ============================================================
       BASE.CSS — مشترک همه صفحات پت‌شاپ
       ============================================================ */

    :root {
      --teal: #0e9fa5;
      --teal-dark: #097a7e;
      --teal-light: #b2eff1;
      --teal-pale: #e8fafb;
      --navy: #0b3d45;
      --navy-light: #164e58;
      --accent: #ff6b35;
      --accent-light: #fff0ea;
      --gold: #f5a623;
      --text: #1a3a40;
      --text-muted: #5a8088;
      --bg: #f0fafb;
      --white: #ffffff;
      --border: #c8eaed;
      --shadow-sm: 0 2px 8px rgba(14,159,165,0.08);
      --shadow-md: 0 8px 24px rgba(14,159,165,0.14);
      --shadow-lg: 0 20px 40px rgba(14,159,165,0.18);
      --radius: 20px;
      --radius-sm: 12px;
      --radius-lg: 32px;
      --green: #27ae60;
      --green-light: #e9fff1;
      --green-border: #b7ebc7;
      --red: #e74c3c;
      --red-dark: #b71c1c;
      --red-light: #ffebee;
      --red-border: #ffcdd2;
      --orange: #f57c00;
      --orange-light: #fff3e0;
      --orange-border: #ffe0b2;
    }

    * { margin: 0; padding: 0; box-sizing: border-box; }

    body {
      font-family: 'Vazir', 'Tahoma', sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.6;
      overflow-x: hidden;
    }

    .container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

    /* ===== ANNOUNCEMENT BAR ===== */
    .announce-bar {
      background: linear-gradient(90deg, var(--teal-dark), var(--teal), var(--teal-dark));
      background-size: 200% 100%;
      animation: gradientFlow 4s ease infinite;
      color: white;
      text-align: center;
      padding: 8px 20px;
      font-size: 0.82rem;
      letter-spacing: 0.5px;
    }
    @keyframes gradientFlow {
      0%,100% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
    }

    /* ===== HEADER ===== */
    .header {
      background: var(--white);
      position: sticky;
      top: 0;
      z-index: 1000;
      box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    }
    .header-top {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 14px 0;
    }
    .logo {
      flex-shrink: 0;
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
    }
    .logo-icon {
      width: 42px; height: 42px;
      background: linear-gradient(135deg, var(--teal), var(--teal-dark));
      border-radius: 14px;
      display: flex; align-items: center; justify-content: center;
      color: white; font-size: 1.3rem;
      box-shadow: 0 4px 12px rgba(14,159,165,0.3);
    }
    .logo-text { font-size: 1.5rem; font-weight: 800; color: var(--navy); }
    .logo-text span { color: var(--teal); }
    .search-wrap { flex: 1; position: relative; }
    .search-wrap input {
      width: 100%;
      padding: 11px 20px 11px 48px;
      border: 2px solid var(--border);
      border-radius: 50px;
      font-family: 'Vazir', sans-serif;
      font-size: 0.9rem;
      background: var(--teal-pale);
      outline: none;
      transition: all 0.25s;
      color: var(--text);
    }
    .search-wrap input:focus {
      border-color: var(--teal);
      background: white;
      box-shadow: 0 0 0 4px rgba(14,159,165,0.1);
    }
    .search-btn {
      position: absolute;
      left: 14px; top: 50%;
      transform: translateY(-50%);
      background: none; border: none;
      color: var(--teal); font-size: 1rem;
      cursor: pointer; padding: 4px;
    }
    /* autocomplete shared */
    .autocomplete-box { position:absolute; top:calc(100% + 8px); right:0; left:0; background:#fff; border-radius:var(--radius); box-shadow:0 12px 40px rgba(0,0,0,.14); border:1px solid var(--border); z-index:1200; max-height:420px; overflow-y:auto; display:none; }
    .ac-item { padding:10px 16px; display:flex; align-items:center; gap:12px; cursor:pointer; border-bottom:1px solid var(--border); color:var(--navy); font-size:.86rem; transition:background .12s; }
    .ac-item:last-child { border-bottom:none; }
    .ac-item:hover { background:var(--teal-pale,#e8fafb); }
    .ac-item i { color:var(--teal); width:18px; text-align:center; flex-shrink:0; }
    .ac-badge { margin-right:auto; font-size:.7rem; background:var(--teal-pale); color:var(--teal); padding:2px 9px; border-radius:20px; white-space:nowrap; flex-shrink:0; }
    .ac-highlight { background:#b2eff1; border-radius:3px; padding:0 2px; font-weight:700; }
    .ac-prod { padding:9px 14px; }
    .ac-prod-thumb { width:46px; height:46px; border-radius:10px; background:var(--teal-pale); display:flex; align-items:center; justify-content:center; overflow:hidden; flex-shrink:0; font-size:1.5rem; border:1px solid var(--border); }
    .ac-prod-thumb img.ac-prod-img { width:100%; height:100%; object-fit:cover; border-radius:9px; }
    .ac-prod-info { flex:1; min-width:0; }
    .ac-prod-name { font-size:.83rem; font-weight:600; color:var(--navy); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-bottom:3px; }
    .ac-prod-meta { display:flex; gap:8px; font-size:.7rem; color:var(--text-muted); }
    .ac-prod-price { text-align:left; flex-shrink:0; }
    .ac-price-main { font-size:.82rem; font-weight:800; color:var(--teal-dark); display:block; }
    .ac-price-old  { font-size:.7rem; color:var(--text-muted); text-decoration:line-through; display:block; }
    .ac-see-all { background:var(--bg,#f8fafc); justify-content:flex-start; color:var(--teal); font-weight:600; font-size:.82rem; gap:10px; }
    .ac-see-all i { font-size:.8rem; }

    .header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
    .h-btn {
      background: none; border: none; cursor: pointer;
      position: relative; color: var(--navy-light);
      font-size: 1.4rem; padding: 6px;
      transition: color 0.2s;
    }
    .h-btn:hover { color: var(--teal); }
    .cart-badge {
      position: absolute; top: -4px; right: -4px;
      background: var(--accent); color: white;
      font-size: 0.62rem; font-weight: 700;
      width: 18px; height: 18px;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      border: 2px solid white;
    }
    .login-pill {
      background: linear-gradient(135deg, var(--teal), var(--teal-dark));
      color: white; border: none; cursor: pointer;
      padding: 9px 20px; border-radius: 50px;
      font-family: 'Vazir', sans-serif;
      font-size: 0.82rem; font-weight: 600;
      display: flex; align-items: center; gap: 6px;
      transition: all 0.2s;
      white-space: nowrap;
    }
    .login-pill:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(14,159,165,0.35); }
    .hamburger-btn {
      display: none;
      background: none; border: none; cursor: pointer;
      font-size: 1.5rem; color: var(--navy);
    }

    /* ===== NAV ===== */
    .nav-bar { background: var(--white); border-top: 1px solid var(--border); }
    .nav-list { display: flex; list-style: none; gap: 4px; padding: 0; }
    .nav-list > li > a {
      display: flex; align-items: center; gap: 6px;
      padding: 12px 14px;
      text-decoration: none;
      color: var(--navy-light);
      font-size: 0.88rem; font-weight: 600;
      border-radius: 10px;
      transition: all 0.2s;
      white-space: nowrap;
    }
    .nav-list > li > a:hover, .nav-list > li > a.active-nav { color: var(--teal); background: var(--teal-pale); }
    .nav-list li { position: relative; }
    .submenu {
      position: absolute; top: 100%; right: 0;
      background: white;
      min-width: 200px;
      border-radius: var(--radius);
      box-shadow: var(--shadow-lg);
      border: 1px solid var(--border);
      padding: 8px;
      opacity: 0; visibility: hidden;
      transform: translateY(8px);
      transition: all 0.2s;
      z-index: 500;
    }
    .nav-list li:hover > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
    .submenu a {
      display: block; padding: 9px 14px;
      text-decoration: none; color: var(--navy-light);
      font-size: 0.85rem; border-radius: 10px;
      transition: background 0.15s;
    }
    .submenu a:hover { background: var(--teal-pale); color: var(--teal); }
    .sale-link { color: var(--accent) !important; }
    .sale-link::before { content: '🔥 '; }

    /* ===== BREADCRUMB ===== */
    .breadcrumb { display: flex; align-items: center; gap: 8px; padding: 18px 0 0; font-size: 0.8rem; color: var(--text-muted); flex-wrap: wrap; }
    .breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
    .breadcrumb a:hover { color: var(--teal); }
    .breadcrumb span { color: var(--teal); font-weight: 600; }
    .breadcrumb i { font-size: 0.65rem; }

    /* ===== CART SIDEBAR ===== */
    .cart-overlay {
      position: fixed; inset: 0;
      background: rgba(0,0,0,0.45);
      z-index: 1900;
      opacity: 0; visibility: hidden;
      transition: all 0.3s;
    }
    .cart-overlay.show { opacity: 1; visibility: visible; }
    .cart-sidebar {
      position: fixed;
      left: -380px; top: 0;
      width: 360px; height: 100%;
      background: white; z-index: 2000;
      box-shadow: -8px 0 32px rgba(0,0,0,0.12);
      transition: left 0.35s cubic-bezier(.77,0,.18,1);
      display: flex; flex-direction: column;
    }
    .cart-sidebar.open { left: 0; }
    .cart-header {
      padding: 20px 22px;
      display: flex; align-items: center; justify-content: space-between;
      border-bottom: 1px solid var(--border);
    }
    .cart-header h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); }
    .cart-close-btn {
      background: var(--bg); border: none; cursor: pointer;
      width: 32px; height: 32px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      color: var(--text-muted); font-size: 1rem; transition: all 0.2s;
    }
    .cart-close-btn:hover { background: #fde; color: #e74c3c; }
    .cart-items-wrap { flex: 1; overflow-y: auto; padding: 16px 20px; }
    .cart-empty { text-align: center; padding: 50px 20px; color: var(--text-muted); }
    .cart-empty i { font-size: 3rem; margin-bottom: 12px; color: var(--teal-light); display: block; }
    .cart-item {
      display: flex; gap: 12px;
      padding: 14px 0; border-bottom: 1px solid #f0f8f9;
      align-items: center;
    }
    .cart-item-icon { font-size: 1.6rem; flex-shrink: 0; }
    .cart-item-info { flex: 1; }
    .cart-item-name { font-size: 0.82rem; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
    .cart-item-price { font-size: 0.78rem; color: var(--teal-dark); font-weight: 700; }
    .cart-qty { display: flex; align-items: center; gap: 8px; }
    .qty-btn {
      width: 26px; height: 26px;
      background: var(--teal-pale); border: none; cursor: pointer;
      border-radius: 8px; display: flex; align-items: center; justify-content: center;
      font-size: 0.85rem; color: var(--teal); font-weight: 700; transition: background 0.15s;
    }
    .qty-btn:hover { background: var(--teal); color: white; }
    .qty-num { font-size: 0.85rem; font-weight: 700; min-width: 20px; text-align: center; }
    .cart-footer { padding: 18px 22px; border-top: 1px solid var(--border); }
    .cart-total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
    .cart-total-label { font-size: 0.88rem; color: var(--text-muted); }
    .cart-total-val { font-size: 1.1rem; font-weight: 800; color: var(--navy); }
    .checkout-btn {
      width: 100%; padding: 13px;
      background: linear-gradient(135deg, var(--teal), var(--teal-dark));
      border: none; cursor: pointer;
      border-radius: 50px; color: white;
      font-family: 'Vazir', sans-serif;
      font-size: 0.92rem; font-weight: 700;
      box-shadow: 0 4px 16px rgba(14,159,165,0.3);
      transition: all 0.2s;
    }
    .checkout-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(14,159,165,0.38); }

    /* ===== LOGIN MODAL ===== */
    .modal-overlay {
      position: fixed; inset: 0;
      background: rgba(0,0,0,0.5);
      z-index: 3000;
      display: none; align-items: center; justify-content: center;
    }
    .modal-overlay.show { display: flex; }
    .modal-box {
      background: white;
      border-radius: var(--radius-lg);
      padding: 36px 32px;
      max-width: 380px; width: 90%;
      animation: modalIn 0.3s ease;
    }
    @keyframes modalIn { from { opacity:0; transform:scale(0.92) translateY(16px); } to { opacity:1; transform:scale(1) translateY(0); } }
    .modal-box h3 { font-size: 1.2rem; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
    .modal-box p { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 24px; }
    .modal-input {
      width: 100%; padding: 12px 16px;
      border: 2px solid var(--border);
      border-radius: var(--radius);
      font-family: 'Vazir', sans-serif;
      font-size: 0.88rem; outline: none;
      margin-bottom: 12px; transition: border 0.2s;
      color: var(--text);
    }
    .modal-input:focus { border-color: var(--teal); }
    .modal-submit {
      width: 100%; padding: 13px;
      background: linear-gradient(135deg, var(--teal), var(--teal-dark));
      border: none; cursor: pointer;
      border-radius: 50px; color: white;
      font-family: 'Vazir', sans-serif;
      font-size: 0.92rem; font-weight: 700;
      margin-top: 4px; transition: all 0.2s;
    }
    .modal-submit:hover { opacity: 0.9; }
    .modal-msg { text-align: center; font-size: 0.82rem; margin-top: 10px; min-height: 20px; }
    .modal-close {
      position: absolute; top: 16px; left: 16px;
      background: var(--bg); border: none; cursor: pointer;
      width: 30px; height: 30px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      color: var(--text-muted);
    }
    .modal-wrap { position: relative; }

    /* ===== TOAST ===== */
    .toast {
      position: fixed; bottom: 24px; left: 24px;
      background: var(--navy); color: white;
      padding: 12px 20px; border-radius: var(--radius);
      font-size: 0.85rem; font-weight: 600;
      box-shadow: var(--shadow-lg);
      z-index: 9999;
      display: flex; align-items: center; gap: 10px;
      transform: translateY(80px); opacity: 0;
      transition: all 0.35s cubic-bezier(.77,0,.18,1);
    }
    .toast.show { transform: translateY(0); opacity: 1; }
    .toast i { color: var(--teal); }

    /* ===== SHARED PRODUCT COMPONENTS ===== */
    .prod-badge {
      position: absolute; top: 12px; right: 12px;
      padding: 4px 10px; border-radius: 20px;
      font-size: 0.68rem; font-weight: 700;
      z-index: 1;
    }
    .badge-sale { background: #ffeee5; color: var(--accent); }
    .badge-new  { background: #e8fafb; color: var(--teal); }
    .badge-hot  { background: #fff3cd; color: #d4800a; }
    .prod-fav {
      position: absolute; top: 12px; left: 12px;
      background: white; border: none; cursor: pointer;
      width: 32px; height: 32px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      color: #ccc; font-size: 0.9rem;
      box-shadow: var(--shadow-sm);
      transition: all 0.2s; z-index: 1;
    }
    .prod-fav:hover, .prod-fav.liked { color: #e74c3c; }
    .prod-fav.liked { background: #fff0f0; }
    .prod-brand { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
    .prod-name  { font-size: 0.88rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; line-height: 1.4; }
    .prod-stars { display: flex; align-items: center; gap: 4px; margin-bottom: 10px; }
    .stars      { color: var(--gold); font-size: 0.75rem; letter-spacing: 1px; }
    .review-count { font-size: 0.7rem; color: var(--text-muted); }
    .prod-price-wrap { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
    .prod-price     { font-size: 1rem; font-weight: 800; color: var(--teal-dark); }
    .prod-old-price  { font-size: 0.75rem; color: #aaa; text-decoration: line-through; }
    .prod-add-btn {
      margin-top: auto;
      width: 100%; padding: 9px;
      background: var(--teal-pale);
      border: 2px solid transparent;
      border-radius: 50px;
      font-family: 'Vazir', sans-serif;
      font-size: 0.82rem; font-weight: 700;
      color: var(--teal-dark);
      cursor: pointer;
      transition: all 0.22s;
      display: flex; align-items: center; justify-content: center; gap: 6px;
    }
    .prod-add-btn:hover { background: var(--teal); color: white; border-color: var(--teal); transform: translateY(-1px); }
    .prod-add-btn.added { background: var(--teal); color: white; border-color: var(--teal); }

    /* ===== QTY CONTROL ===== */
    .prod-qty-ctrl { margin-top: auto; width: 100%; display: flex; align-items: stretch; background: var(--teal); border: 2px solid var(--teal); border-radius: 50px; overflow: hidden; padding: 0; cursor: default; animation: qtyPop .22s cubic-bezier(.17,.67,.52,1.3); }
    @keyframes qtyPop { from { transform:scale(.82);opacity:0 } to { transform:scale(1);opacity:1 } }
    .pqc-btn { width: 36px; flex-shrink: 0; background: none; border: none; color: white; font-size: 1.15rem; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; font-family: 'Vazir',sans-serif; line-height: 1; padding: 6px 0; }
    .pqc-btn:hover { background: rgba(0,0,0,.18); }
    .pqc-btn:active { background: rgba(0,0,0,.3); }
    .pqc-num { flex: 1; text-align: center; font-size: .9rem; font-weight: 800; color: white; display: flex; align-items: center; justify-content: center; font-family: 'Vazir',sans-serif; border-right: 1px solid rgba(255,255,255,.25); border-left: 1px solid rgba(255,255,255,.25); }

    /* ===== MOBILE NAV & HEADER ===== */
    @media (max-width: 860px) {
      .hamburger-btn { display: block; }
      .nav-list {
        position: fixed; top: 0; right: -100%;
        width: 280px; height: 100vh;
        background: white; flex-direction: column;
        padding: 70px 16px 20px;
        box-shadow: -4px 0 20px rgba(0,0,0,0.1);
        transition: right 0.3s; z-index: 1100;
        overflow-y: auto;
      }
      .nav-list.open { right: 0; }
      .submenu { position: static; opacity: 1; visibility: visible; box-shadow: none; border: none; display: none; background: var(--teal-pale); padding: 4px; margin-top: 4px; }
      .nav-list li.mob-open > .submenu { display: block; }
    }
    @media (max-width: 560px) {
      .search-wrap { order: 3; flex: none; width: 100%; }
      .header-top { flex-wrap: wrap; }
      .login-pill span { display: none; }
    }