:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #151922;
  --muted: #6f7887;
  --line: #e4e8ef;
  --blue: #1668c0;
  --yellow: #ffc845;
  --red: #d13f3f;
  --green: #128c4a;
  --radius: 24px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Tahoma, Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 18px; }
.site-header { background: rgba(255,255,255,.86); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 20px; }
.brand img { width: 46px; height: 46px; object-fit: contain; border-radius: 12px; }
.branch-pill { background: #eef5ff; color: var(--blue); padding: 9px 14px; border-radius: 999px; font-size: 14px; }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 42px; padding-bottom: 30px; }
.eyebrow { color: var(--blue); font-weight: 800; margin: 0 0 8px; }
h1 { font-size: clamp(32px, 6vw, 58px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -1px; }
.hero p, .lead { color: var(--muted); font-size: 18px; line-height: 1.8; max-width: 760px; }
.admin-link, .whatsapp, .secondary { display: inline-flex; align-items: center; justify-content: center; border-radius: 16px; padding: 14px 18px; font-weight: 800; border: 1px solid transparent; }
.admin-link { background: var(--text); color: white; white-space: nowrap; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; padding-bottom: 56px; }
.product-card, .product-visual, .product-info-panel, .price-option, .empty-state { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 35px rgba(15, 23, 42, .06); }
.product-card { overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 18px 45px rgba(15, 23, 42, .09); }
.image-wrap { height: 210px; background: #eef1f5; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 18px; }
.product-body h2 { font-size: 20px; margin: 0 0 8px; }
.product-body p { color: var(--muted); margin: 0 0 14px; min-height: 24px; }
.product-body strong { color: var(--red); }
.detail-layout { display: grid; grid-template-columns: .95fr 1.05fr; gap: 22px; padding-top: 34px; }
.product-visual { min-height: 470px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-visual img { width: 100%; height: 100%; max-height: 600px; object-fit: cover; }
.no-image { color: var(--muted); font-size: 22px; }
.product-info-panel { padding: 30px; }
.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.spec-grid div { background: #f8fafc; border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.spec-grid span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.spec-grid strong { font-size: 17px; }
.price-section { padding-top: 28px; padding-bottom: 60px; }
/* بعد مسح QR (#prices): تمرير يترك مساحة تحت الهيدر الثابت */
#prices { scroll-margin-top: 92px; outline: none; }
#prices:focus-visible { box-shadow: 0 0 0 3px rgba(22, 104, 192, 0.35); border-radius: var(--radius); }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-title h2 { margin: 0; font-size: 30px; }
.section-title p { margin: 0; color: var(--muted); }
.prices-list { display: grid; gap: 14px; }
.price-option { padding: 18px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.price-option.featured { border-color: rgba(22,104,192,.35); background: #f5faff; }
.price-option.disabled { opacity: .56; }
.price-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.price-title-row h3 { margin: 0; font-size: 22px; }
.badge { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: var(--yellow); font-size: 12px; font-weight: 800; }
.badge.muted { background: #e9edf3; color: var(--muted); }
.price-copy p { color: var(--muted); line-height: 1.7; margin: 8px 0 0; }
.mini-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.mini-meta span { background: #f3f5f8; color: var(--muted); border-radius: 999px; padding: 6px 10px; font-size: 13px; }
.price-number { text-align: left; min-width: 220px; }
.price-number del { display: block; color: var(--muted); margin-bottom: 4px; }
.price-number strong { display: block; color: var(--red); font-size: 32px; }
.price-number span { color: var(--muted); }
.actions-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.whatsapp { background: var(--green); color: white; }
.secondary { background: white; border-color: var(--line); color: var(--text); }
.footer-note { color: var(--muted); margin-top: 18px; }
.empty-state { padding: 32px; color: var(--muted); grid-column: 1/-1; }
@media (max-width: 780px) {
  .hero, .section-title { display: block; }
  .admin-link { margin-top: 14px; }
  .detail-layout { grid-template-columns: 1fr; }
  .product-visual { min-height: 310px; }
  .spec-grid { grid-template-columns: 1fr; }
  .price-option { grid-template-columns: 1fr; }
  .price-number { text-align: right; min-width: auto; }
}
