/* =====================================================================
   store.css — صفحة المتجر (الكتب والألعاب) فقط  •  بعد site.css
   السلة + الإشعار من site.css (q-drawer / q-toast).
   ===================================================================== */

/* شريط الأدوات: العنوان النشط + العدّاد */
.store-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.store-toolbar__title { font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--c-ink); }
.store-toolbar__count { font-weight: 700; color: var(--c-muted); font-size: 15px; }
.store-toolbar__count b { color: var(--c-teal); font-weight: 800; }
.store-selectall { background: none; border: none; cursor: pointer; font-family: var(--font-body); font-weight: 800; font-size: 14px; color: var(--c-teal); padding: 0; }
.store-selectall:hover { color: var(--c-teal-d); }

/* شريط الأقسام (pills بأيقونات صور) */
.store-pills { display: flex; gap: 12px; flex-wrap: wrap; }
.store-pill {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: #fff; border: 1px solid var(--line); color: var(--c-body);
  font-family: var(--font-body); font-weight: 800; font-size: 14px;
  padding: 8px 16px 8px 8px; border-radius: var(--r-pill); transition: all .15s ease;
}
.store-pill:hover { border-color: var(--c-teal); color: var(--c-teal-d); }
.store-pill.is-active { background: var(--c-teal); border-color: var(--c-teal); color: #fff; }
.store-pill img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }

/* بطاقة المنتج */
.store-product { background: #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--sh-card-sm); display: flex; flex-direction: column; height: 100%; transition: transform .2s ease, box-shadow .2s ease; }
.store-product:hover { transform: translateY(-5px); box-shadow: var(--sh-card-hov2); }
.store-product__media { position: relative; height: 200px; overflow: hidden; }
.store-product__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.store-product:hover .store-product__media img { transform: scale(1.06); }
.store-product__body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.store-product__name { font-family: var(--font-head); font-weight: 700; font-size: 16.5px; margin: 0 0 6px; color: var(--c-ink); line-height: 1.5; }
.store-product__name:hover { color: var(--c-teal); }
.store-product__pricerow { display: flex; align-items: baseline; gap: 8px; margin: auto 0 16px; }
.store-product__add { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: var(--c-teal); color: #fff; border: none; cursor: pointer; font-family: var(--font-body); font-weight: 800; font-size: 14.5px; padding: 12px; border-radius: 12px; transition: background .15s; }
.store-product__add:hover { background: var(--c-teal-d); }

/* شارات المنتج */
.store-discount { position: absolute; top: 12px; right: 12px; background: var(--c-accent); color: #fff; font-weight: 800; font-size: 11.5px; padding: 5px 11px; border-radius: 14px; }
.store-tag { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.85); color: var(--c-teal-d); font-weight: 700; font-size: 11px; padding: 5px 10px; border-radius: 12px; backdrop-filter: blur(4px); box-shadow: 0 2px 8px rgba(8,46,42,.12); }
.store-priceold { font-size: 13px; color: #B7C4C0; font-weight: 600; text-decoration: line-through; }

/* لا توجد منتجات */
.store-empty { text-align: center; padding: 70px 20px; color: var(--c-muted-3); }
.store-empty b { display: block; font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--c-muted); margin-bottom: 8px; }

/* زر إتمام الطلب داخل درج السلة */
.store-checkout { width: 100%; background: var(--c-accent); color: #fff; border: none; cursor: pointer; font-family: var(--font-body); font-weight: 800; font-size: 16px; padding: 15px; border-radius: var(--r-md); box-shadow: 0 10px 22px rgba(247,148,30,.3); }
.store-checkout:hover { background: var(--c-accent-d); }
