  /* ===== Search ===== */
  .search-wrap {
    padding: 0 0 6px 0; /* بنشيل الهوامش الجانبية عشان يتطابق بالمللي مع العنوان */
  }
  .search-box {
    background: var(--card);
    border: 1px solid rgba(201, 162, 75, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 8px;
    margin: 0 10px; /* بنخليها تاخد نفس حواف خانة العنوان فوقها */
  }
  .search-box .ic{ color:var(--gold); font-size:14px; }
  .search-box input{ background:none; border:none; outline:none; color:#fff; font-family:inherit; font-size:13px; width:100%; }
  .search-box input::placeholder{ color:#777; }

  /* ===== Category chips ===== */
  .chips-wrap{ padding:6px 0 10px; overflow-x:auto; white-space:nowrap; scrollbar-width:none; cursor:grab; }
  .chips-wrap.dragging{ cursor:grabbing; scroll-behavior:auto; }
  .chips-wrap::-webkit-scrollbar{ display:none; }
  .chips-row{ position:relative; display:flex; align-items:center; gap:4px; }
  .chips-row .chips-wrap{ flex:1; min-width:0; }
  .chip-arrow{
    display:none; flex:0 0 auto; width:28px; height:28px; border-radius:50%;
    background:var(--card2); border:1px solid rgba(201,162,75,.3); color:var(--gold);
    cursor:pointer; align-items:center; justify-content:center; font-size:17px; font-family:inherit;
    line-height:1; padding:0;
  }
  .chip-arrow:hover{ background:rgba(201,162,75,.15); }
  @media (hover:hover) and (pointer:fine){ .chip-arrow{ display:flex; } }
  .chips-inner{ display:inline-flex; gap:8px; padding:0 10px; }
  .chip{
    display:inline-flex; align-items:center; gap:6px;
    background:var(--card); border:1px solid rgba(201,162,75,.25); color:#bbb;
    border-radius:20px; padding:9px 14px; font-size:12px; cursor:pointer; user-select:none;
    transition:.15s;
  }
  .chip.active{ background:var(--red); border-color:var(--red); color:#fff; font-weight:bold; }
  .chip.chip-weight{ position:relative; overflow:visible; padding-bottom:16px; }
  .chip-weight-ribbon{
    position:absolute; left:10%; right:10%; bottom:1px;
    background:var(--red); color:var(--gold); border:1px solid var(--gold); border-radius:3px;
    font-size:8.5px; font-weight:800; letter-spacing:.2px; line-height:1.5;
    text-align:center; transform:rotate(-4deg); white-space:nowrap;
  }
  .chip.chip-weight.active .chip-weight-ribbon{ background:var(--gold); color:var(--red); border-color:#fff; }

  /* ===== Product grid ===== */
  .grid{
    padding:0 10px 10px; display:grid; grid-template-columns:1fr 1fr; gap:8px;
  }
  .empty-msg{ text-align:center; color:#555; padding:40px 0; font-size:13px; }
  .pcard{
    position:relative;
    background:var(--card); border-radius:10px;
    border-right:3px solid var(--red);
    padding:8px 10px;
    display:flex; flex-direction:column;
    transition:border-color .2s;
  }
  .pcard.in-cart{ border-color:var(--gold); }
  .pcard-img{
    width:100%; height:78px; border-radius:8px; overflow:hidden; margin-bottom:6px;
    background:#161616; display:flex; align-items:center; justify-content:center; flex:0 0 auto;
  }
  .pcard-img img{ width:100%; height:100%; object-fit:cover; display:block; }
  .pcard-img svg{ width:26px; height:26px; stroke:rgba(255,255,255,.35); fill:none; stroke-width:1.6; }
  .pname{
    font-size:12.5px; font-weight:bold; color:#fff; line-height:1.2;
    display:-webkit-box; -webkit-line-clamp:2; line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
  }
  .pcat-tag{
    font-size:9px; color:var(--gold); margin-top:2px; opacity:.85;
  }
  .prow{ margin-top:auto; padding-top:6px; display:flex; align-items:center; justify-content:space-between; }
  .price{ color:var(--gold); font-weight:800; font-size:13px; }
  .addbtn{
    width:28px; height:28px; border-radius:50%; background:var(--gold); color:#000;
    border:none; font-size:16px; font-weight:900; cursor:pointer;
    display:flex; align-items:center; justify-content:center;
  }
  .cardqty{ display:flex; align-items:center; gap:6px; }
  .addbtn.minusbtn{ background:rgba(255,255,255,.1); color:var(--gold); border:1.5px solid rgba(201,162,75,.5); }
  .qty-badge{
    position:absolute; top:-6px; left:-6px;
    background:var(--red); color:#fff; font-size:11px; font-weight:bold;
    min-width:20px; height:20px; padding:0 4px; border-radius:12px;
    display:flex; align-items:center; justify-content:center;
  }
  .note-badge{
    position:absolute; top:-6px; right:-6px;
    width:22px; height:22px; border-radius:50%;
    border:1px solid var(--gold); background:var(--card);
    display:flex; align-items:center; justify-content:center; font-size:11px; color:var(--gold);
    cursor:pointer;
  }
  .note-badge.has-note{ background:var(--gold); color:#000; }

