/* ===== الواجهة الجديدة: فاتح عصري ===== */
:root{
  --primary:#2347E8; --primary-dark:#1a38c0; --ink:#0F172A; --muted:#4B5668;
  --line:#E3E8F2; --bg:#F4F6FB; --footer-bg:#0F172A; --footer-bg-2:#1a2438; --footer-text:#C9D0DE;
  --amber:#FFC83D; --navy:#0F1B4D; --tint:#E8EDFF;
}
body, button, input, select, textarea{ font-family:'IBM Plex Sans Arabic','Segoe UI',Tahoma,sans-serif; }
body{ background:var(--bg); color:var(--ink); }

/* الهيدر */
.site-header{ box-shadow:none; border-bottom:1px solid var(--line); }
.site-header .header-inner{ padding:12px 16px; }
.icon-btn{ width:44px; height:44px; border-radius:12px; border:1px solid var(--line); background:#fff; }
.header-icons{ gap:8px; }
.badge{ background:var(--amber); color:var(--ink); font-weight:800; top:-6px; left:-6px; min-width:20px; height:20px; }
.brand-logo .brand-icon{ width:42px; height:42px; display:flex; align-items:center; justify-content:center; background:var(--primary); box-shadow:none; border-radius:12px; }
.brand-logo .brand-icon svg{ width:23px; height:23px; }
.brand-logo .brand-name{ font-size:17px; }

/* أزرار */
.btn-primary{ background:var(--primary); box-shadow:none; border-radius:12px; font-weight:700; }
.btn-primary:hover{ background:var(--primary-dark); box-shadow:none; transform:none; }
.btn-primary:focus-visible, .btn-secondary:focus-visible, a:focus-visible, button:focus-visible{ outline:3px solid #9DB0FF; outline-offset:2px; }
.btn-primary:disabled{ background:#AEB8CE; }
.btn-secondary{ border-radius:12px; }

/* شريط العنوان للصفحات الداخلية */
.page-title-band{ background:var(--navy); }

/* الرئيسية: بحث ثم عرض */
.store-hero{ background:#fff; color:var(--ink); text-align:right; padding:22px 16px 18px; border-bottom:1px solid var(--line); }
.store-hero h1{ font-size:22px; line-height:1.6; margin:0 0 6px; max-width:1100px; }
.store-hero p{ color:var(--muted); font-size:14px; margin:0; max-width:1100px; }
.hero-search{ margin:14px 0 0; max-width:560px; }
.hero-search input{ background:var(--bg); border:1px solid var(--line); height:48px; padding:0 14px; }
.hero-search button{ height:48px; min-width:84px; padding:0 20px; }
.store-wrap{ padding-top:18px; }
.trust-row div{ border-radius:14px; }

.offer{ background:var(--navy); box-shadow:none; border-radius:16px; }
.offer .tag{ background:var(--amber); color:var(--ink); }
.offer h2{ font-size:22px; }
.offer p{ color:#C9D3F5; }
.offer .offer-price b{ color:var(--amber); font-size:36px; }
.offer .offer-price s{ color:#AEBBEB; }
.btn-offer{ background:#fff; color:var(--navy); border-radius:12px; min-height:48px; }

/* الأقسام: ألوان مختلفة للأيقونات */
.cat-grid{ grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); }
.cat-card{ border-radius:16px; box-shadow:0 4px 14px rgba(15,23,42,.05); padding:16px 8px; }
.cat-card:hover{ box-shadow:0 8px 20px rgba(15,23,42,.09); }
.cat-card .ico{ width:44px; height:44px; border-radius:12px; }
.cat-card:nth-child(4n+1) .ico{ background:#E8EDFF; color:#2347E8; }
.cat-card:nth-child(4n+2) .ico{ background:#FFF1D0; color:#8A5A00; }
.cat-card:nth-child(4n+3) .ico{ background:#DDF5EA; color:#0B6B4A; }
.cat-card:nth-child(4n) .ico{ background:#FDE6EE; color:#A3174F; }
.cat-card small{ color:var(--muted); }

/* بطاقات المنتجات */
.grid{ grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); }
.pcard{ border-radius:16px; box-shadow:0 4px 14px rgba(15,23,42,.06); }
.pcard .thumb{ background:var(--tint); height:112px; }
.grid > .pcard:nth-child(4n+2) .thumb{ background:#FFF1D0; color:#8A5A00; }
.grid > .pcard:nth-child(4n+3) .thumb{ background:#DDF5EA; color:#0B6B4A; }
.grid > .pcard:nth-child(4n) .thumb{ background:#FDE6EE; color:#A3174F; }
.pcard h3, .pcard .desc, .pdetail h2, .cl-info strong{ unicode-bidi:plaintext; }
.pcard h3{ font-size:15.5px; }
.pbadge{ background:var(--amber); color:var(--ink); }
.price b{ color:var(--ink); }
.price s{ color:#6B7586; }

/* الفلاتر والشرائح */
.chip.active{ background:var(--primary); border-color:var(--primary); }
.filter-bar input[type=search], .filter-bar select{ border-radius:12px; border:1px solid var(--line); }

/* إشعار: أسفل الشاشة حتى لا يغطي العناوين */
.toast{ top:auto; bottom:84px; border-radius:14px; }

/* الفوتر */
.site-footer{ background:var(--footer-bg); }
.pay-badges span{ border-radius:8px; }

/* جوال */
@media (max-width:640px){
  .grid{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .pcard .thumb{ height:96px; }
  .cat-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
  .cat-card small{ display:none; }
  .store-hero h1{ font-size:20px; }
  .offer{ padding:20px; }
}
@media (max-width:640px){
  .trust-row{ grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
  .trust-row div{ padding:10px 8px; text-align:center; }
  .trust-row strong{ font-size:12.5px; margin:0; }
  .trust-row span{ display:none; }
}
/* الجوال: الجزء العلوي مثل التصميم — بحث مباشر بدون عنوان كبير */
@media (max-width:640px){
  .store-hero{ background:var(--bg); border-bottom:0; padding:14px 16px 0; }
  .store-hero h1, .store-hero p{ display:none; }
  .hero-search{ margin:0; max-width:none; }
  .hero-search input{ background:#fff; }
  .store-wrap{ padding-top:14px; }
  .trust-row div{ display:flex; align-items:center; justify-content:center; min-height:52px; }
}
