/* منيو دراي بتر في مهرجان تلال الجبيل: الوان الشعار، كريمي وبني */
:root {
  --h-brown: #764E37;
  --h-brown-dark: #5E3D2A;
  --h-cream: #F8EFE0;
  --h-paper: #FFFDF8;
  --h-ink: #3B2619;
  --h-muted: #7A6352;
  --h-wheat: #C9A27A;
  --h-wheat-soft: #E4CFAF;
  --h-line: #F1E6D3;
  --h-red: #9A4A42;
}
* , *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--h-cream); color: var(--h-ink); font-family: 'Beiruti', 'Segoe UI', Tahoma, sans-serif; -webkit-tap-highlight-color: transparent; }
button, input { font-family: inherit; }
.hills-wrap { max-width: 520px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--h-cream); }
.h-title { font-family: 'Fustat', 'Beiruti', sans-serif; }

/* ---------- الهيرو ---------- */
.hills-hero { position: relative; overflow: hidden; background: var(--h-brown); color: var(--h-cream); padding: 40px 24px 32px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.hills-hero .wm { position: absolute; pointer-events: none; }
.hills-hero .wm-a { width: 380px; left: -150px; top: -90px; opacity: 0.09; }
.hills-hero .wm-b { width: 240px; right: -100px; bottom: -80px; opacity: 0.08; }
.hills-lang { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 1; min-height: 36px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid rgba(248, 239, 224, 0.5); color: var(--h-cream); font-size: 14px; font-weight: 600; text-decoration: none; background: rgba(0, 0, 0, 0.08); }
.hills-lang:hover { background: rgba(0, 0, 0, 0.18); }
.hills-hero .logo { position: relative; width: 190px; height: auto; }
.hills-hero .where { position: relative; margin: 4px 0 0; font-size: 17px; font-weight: 500; }
.hills-hero .chips { position: relative; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.hills-hero .chips span { border: 1px solid rgba(248, 239, 224, 0.42); border-radius: 999px; padding: 5px 14px; font-size: 13px; }

/* ---------- التبويبات ---------- */
.hills-tabs { position: sticky; top: 0; z-index: 5; background: var(--h-cream); border-bottom: 1px solid var(--h-wheat-soft); padding: 12px 16px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.hills-tabs::-webkit-scrollbar { display: none; }
.hills-tabs a { flex-shrink: 0; text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; font-size: 15px; font-weight: 600; background: var(--h-paper); color: var(--h-ink); border: 1px solid var(--h-wheat-soft); transition: background-color .2s, color .2s; }
.hills-tabs a.on { background: var(--h-brown); color: var(--h-cream); border-color: var(--h-brown); }

/* ---------- الاقسام ---------- */
.hills-main { padding: 6px 20px 32px; display: flex; flex-direction: column; gap: 26px; }
.hills-sec { scroll-margin-top: 70px; display: flex; flex-direction: column; }
.hills-sec-head { display: flex; align-items: center; gap: 10px; padding: 22px 0 12px; }
.hills-sec-head img { width: 30px; height: auto; }
.hills-sec-head h2 { margin: 0; font-size: 22px; font-weight: 700; color: var(--h-brown-dark); }
.hills-sec-head .rule { flex-grow: 1; height: 1px; background: var(--h-wheat); }
.hills-sec-head .count { font-size: 13px; color: var(--h-muted); }
.hills-card { background: var(--h-paper); border-radius: 16px; padding: 4px 16px; box-shadow: 0 1px 0 var(--h-wheat-soft); }
.hills-row { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 0; }
.hills-row + .hills-row { border-top: 1px solid var(--h-line); }
.hills-row.out { opacity: 0.55; }
.hills-row .thumb { width: 60px; height: 60px; flex-shrink: 0; border-radius: 12px; object-fit: cover; background: var(--h-line); display: block; }
.hills-row .nm { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hills-row .nm span:first-child { font-size: 17px; font-weight: 500; }
.hills-row.out .nm span:first-child { text-decoration: line-through; }
.hills-row .nm .sold { font-size: 13px; color: var(--h-red); font-weight: 600; }
.hills-row .lead { flex-grow: 1; min-width: 12px; border-bottom: 1.5px dotted var(--h-wheat); transform: translateY(4px); }
.hills-row .pr { display: inline-flex; align-items: center; gap: 4px; font-size: 17px; font-weight: 700; white-space: nowrap; direction: ltr; color: var(--h-brown-dark); }
.sar { width: 0.72em; height: 0.82em; fill: currentColor; }
.hills-empty { text-align: center; color: var(--h-muted); padding: 60px 0; font-size: 16px; }

/* ---------- الفوتر ---------- */
.hills-foot { margin-top: auto; position: relative; overflow: hidden; background: var(--h-brown); color: var(--h-cream); padding: 30px 24px 32px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.hills-foot .wm { position: absolute; width: 220px; left: -80px; bottom: -70px; opacity: 0.08; pointer-events: none; }
.hills-foot .logo { position: relative; width: 110px; height: auto; }
.hills-foot a { position: relative; color: var(--h-cream); font-size: 14px; }

/* تكبير صورة الصنف */
.hills-row .thumb-btn { padding: 0; border: 0; background: none; cursor: zoom-in; flex-shrink: 0; border-radius: 12px; line-height: 0; }
.hills-row .thumb-btn:focus-visible { outline: 2px solid var(--h-wheat); outline-offset: 2px; }
.hills-zoom { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 56px 16px 24px; background: rgba(30, 20, 13, 0.97); animation: hills-zoom-in 0.18s ease-out; cursor: zoom-out; }
.hills-zoom[hidden] { display: none; }
.hills-zoom .big { max-width: 100%; max-height: calc(100dvh - 160px); width: auto; height: auto; object-fit: contain; border-radius: 16px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4); }
.hills-zoom .cap { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(100%, 480px); color: var(--h-cream); font-size: 18px; font-weight: 600; }
.hills-zoom .cap .pr { display: inline-flex; align-items: center; gap: 4px; color: var(--h-wheat-soft); direction: ltr; white-space: nowrap; }
.hills-zoom .x { position: absolute; top: 12px; inset-inline-end: 12px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: var(--h-cream); cursor: pointer; }
@keyframes hills-zoom-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hills-zoom { animation: none; } }

/* ================= صفحة التحكم ================= */
.ha-head { background: var(--h-brown); color: var(--h-cream); padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 14px; }
.ha-head .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ha-head .logo { width: 84px; height: auto; margin-bottom: 4px; display: block; }
.ha-head h1 { margin: 0; font-size: 21px; font-weight: 700; }
.ha-head .acts { display: flex; gap: 8px; }
.ha-ghost { color: var(--h-cream); background: transparent; border: 1px solid rgba(248, 239, 224, 0.4); border-radius: 10px; min-height: 44px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; text-decoration: none; cursor: pointer; }
.ha-stats { display: flex; gap: 8px; }
.ha-stats div { flex: 1; background: rgba(248, 239, 224, 0.1); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.ha-stats b { font-size: 20px; }
.ha-stats span { font-size: 13px; color: #EADBC4; }

.ha-main { padding: 16px 16px 130px; display: flex; flex-direction: column; gap: 12px; }
.ha-sec { background: var(--h-paper); border: 1px solid var(--h-wheat-soft); border-radius: 16px; overflow: hidden; }
.ha-sec-toggle { width: 100%; border: 0; background: transparent; color: var(--h-ink); min-height: 60px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; text-align: right; cursor: pointer; }
.ha-sec-toggle .t { display: flex; flex-direction: column; gap: 2px; }
.ha-sec-toggle .t b { font-size: 18px; }
.ha-sec-toggle .t span { font-size: 13px; color: var(--h-muted); }
.ha-sec-toggle svg { transition: transform .2s; }
.ha-sec-toggle[aria-expanded='true'] svg { transform: rotate(180deg); }
.ha-icon { width: 40px; height: 40px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--h-muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.ha-icon:hover { background: var(--h-cream); }
.ha-icon:disabled { opacity: 0.3; cursor: default; background: transparent; }
.ha-icon.danger { color: var(--h-red); }

.ha-items { border-top: 1px solid var(--h-cream); }
.ha-item { padding: 12px 14px; border-bottom: 1px solid var(--h-line); display: flex; flex-direction: column; gap: 10px; }
.ha-item.off { background: #FAF4EA; }
.ha-item.off .ha-name { opacity: 0.55; }
.ha-item-row { display: flex; align-items: center; gap: 10px; }
.ha-photo { position: relative; flex-shrink: 0; width: 56px; height: 56px; border-radius: 12px; border: 1.5px dashed #B99877; background: #FBF5EA; color: #8A6A50; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; padding: 0; }
.ha-photo:focus-within { outline: 2px solid var(--h-brown); outline-offset: 2px; }
.ha-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.ha-photo img { width: 100%; height: 100%; object-fit: cover; }
.ha-photo.has { border-style: solid; border-color: var(--h-wheat-soft); }
.ha-photo .busy { position: absolute; inset: 0; background: rgba(248, 239, 224, 0.88); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--h-ink); }
.ha-name { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ha-input { width: 100%; height: 40px; border: 1px solid #D9C4A4; border-radius: 10px; padding: 0 10px; font-size: 16px; color: var(--h-ink); background: #FFFFFF; }
.ha-input:focus { outline: 2px solid var(--h-brown); outline-offset: 0; border-color: var(--h-brown); }
.ha-input.en { height: 36px; font-size: 15px; color: var(--h-muted); direction: ltr; }
.ha-field { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--h-muted); white-space: nowrap; }
.ha-field .ha-input { flex-grow: 1; }
.ha-price { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--h-muted); }
.ha-price .ha-input { width: 84px; height: 36px; font-size: 15px; direction: ltr; text-align: center; }
.ha-ctrls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ha-chip { min-height: 40px; padding: 0 12px; border-radius: 10px; font-size: 14px; font-weight: 600; border: 1px solid #D9C4A4; background: #FFFFFF; color: var(--h-muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.ha-chip.on-out { background: var(--h-red); border-color: var(--h-red); color: #FFFFFF; }
.ha-chip.on-hide { background: var(--h-ink); border-color: var(--h-ink); color: #FFFFFF; }
.ha-ctrls .sp { flex-grow: 1; }

.ha-add { width: 100%; min-height: 52px; border: 0; background: #FBF5EA; color: var(--h-brown); font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.ha-add.danger { color: var(--h-red); }
.ha-add-sec { min-height: 52px; border: 1.5px dashed #B99877; border-radius: 16px; background: transparent; color: var(--h-muted); font-size: 15px; font-weight: 600; cursor: pointer; }
.ha-qr { background: var(--h-paper); border: 1px solid var(--h-wheat-soft); border-radius: 16px; padding: 16px; display: flex; align-items: center; gap: 14px; }
.ha-qr img { width: 72px; height: 72px; border-radius: 8px; border: 1px solid var(--h-wheat-soft); background: #fff; }
.ha-qr .txt { flex-grow: 1; display: flex; flex-direction: column; gap: 4px; }
.ha-qr .txt b { font-size: 15px; }
.ha-qr .txt span { font-size: 13px; color: var(--h-muted); }
.ha-btn { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 0; background: var(--h-brown); color: var(--h-cream); font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.ha-btn:disabled { opacity: 0.5; cursor: default; }

.ha-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; background: rgba(248, 239, 224, 0.96); border-top: 1px solid var(--h-wheat-soft); padding: 12px 16px 16px; }
.ha-bar-in { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 6px; }
.ha-bar .ha-btn { min-height: 52px; font-size: 17px; font-weight: 700; border-radius: 14px; width: 100%; }
.ha-bar .note { font-size: 13px; color: var(--h-muted); text-align: center; min-height: 16px; }
.ha-bar .note.err { color: var(--h-red); font-weight: 600; }
.ha-bar .note.ok { color: var(--h-brown); font-weight: 600; }

.ha-login { flex-grow: 1; display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.ha-login-card { width: 100%; max-width: 380px; background: var(--h-paper); border: 1px solid var(--h-wheat-soft); border-radius: 20px; padding: 28px 22px; display: flex; flex-direction: column; gap: 14px; }
.ha-login-card h2 { margin: 0; font-size: 21px; }
.ha-login-card p { margin: 0; font-size: 14px; color: var(--h-muted); line-height: 1.7; }
.ha-login-card label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.ha-login-card .ha-input { height: 48px; font-size: 17px; direction: ltr; text-align: center; letter-spacing: 0.04em; }
.ha-login-card .ha-btn { min-height: 48px; }
.ha-login-card .err { color: var(--h-red); font-size: 14px; font-weight: 600; min-height: 18px; }
.ha-link { background: none; border: 0; color: var(--h-brown); font-size: 14px; text-decoration: underline; cursor: pointer; padding: 4px; }
