:root { --page:#f4efec; --sheet:#fdfbf9; --ink:#4a2f31; --ink2:#7d6b69; --hair:#e8e0db; --card:#fbf3e8; --cardb:#efdcc0; --btn:#4a3532; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--page); }
body { font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", "Noto Sans Arabic", system-ui, -apple-system, Arial, sans-serif; color: var(--ink); line-height: 1.6; -webkit-text-size-adjust: 100%; }
.sheet { max-width: 720px; margin: 0 auto; padding: 24px 20px 40px; background: var(--sheet); min-height: 100vh; }
@media (min-width: 760px) { .sheet { margin-block: 24px; min-height: 0; border-radius: 24px; padding: 32px; } }
a { color: inherit; }
h1 { margin: 16px 0 6px; font-size: 30px; line-height: 40px; font-weight: 500; }
h2 { margin: 24px 0 12px; font-size: 22px; line-height: 30px; font-weight: 500; }
h3 { margin: 12px 0 0; font-size: 18px; line-height: 26px; font-weight: 600; }
p { margin: 8px 0; }
.intro { color: var(--ink); margin: 0 0 8px; }
.hero { display: flex; justify-content: space-between; align-items: flex-end; min-height: 200px; margin-bottom: 8px; padding: 12px 16px; border-radius: 20px; background-size: cover; background-position: center; }
.logo { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-block: 8px 20px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; gap: 6px; min-height: 132px; padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--cardb); color: var(--ink); text-decoration: none; overflow: hidden; }
.cardpic { display: block; width: calc(100% + 32px); height: 108px; margin: -16px -16px 4px; object-fit: cover; max-width: none; }
.icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; }
.ctitle { font-weight: 600; font-size: 16px; line-height: 22px; }
.chint { color: var(--ink2); font-size: 12px; line-height: 18px; }
.note { margin: 12px 0; padding: 4px 14px; border-inline-start: 2px solid var(--hair); }
.note strong { display: block; margin-top: 8px; }
.list { display: flex; flex-direction: column; gap: 12px; margin-block: 8px 16px; }
.item { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--cardb); }
.item strong { font-size: 16px; line-height: 24px; }
.item span { color: var(--ink2); }
.group { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 12px; background: var(--btn); color: #fff; text-decoration: none; font-size: 15px; }
.item .btn { margin-top: 6px; color: #fff; }
.btn.secondary { background: transparent; color: var(--ink); border: 1px solid var(--hair); }
.closing { margin: 24px 0 0; color: var(--ink2); }
.credits { margin: 16px 0 0; color: var(--ink2); font-size: 11px; line-height: 18px; }
.credits a { text-decoration: underline; }
.back { margin-top: 8px; }

.trust { margin: 0 0 12px; color: var(--ink2); font-size: 14px; }
.contact { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.contact .btn { flex: 1 1 140px; }
.btn.wa { background: #1f7a4d; }
.sell { margin: 12px 0; padding: 16px; border-radius: 16px; background: #eaf4ee; border: 1px solid #cfe5d8; }
.sell p { margin: 4px 0 12px; color: var(--ink2); }

.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.cat { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 76px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--cardb); color: var(--ink); text-decoration: none; }
.cat.empty { background: transparent; border-style: dashed; }
.cat .ctitle { font-size: 15px; line-height: 22px; }
.grid .card:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 0; } .grid .card:last-child:nth-child(odd) .cardpic { height: 140px; }

/* ===== v3: الأقسام الفرعية ===== */
.cbadge { align-self: flex-start; margin-top: 2px; padding: 2px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--cardb); color: var(--ink2); font-size: 11px; }
.cat { position: relative; padding-inline-start: 44px; }
.cat .cdot { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--tint, #7a8a3e); color: #fff; }
.cat.empty .cdot { background: transparent; color: var(--tint, #7a8a3e); border: 1px dashed var(--tint, #7a8a3e); }
.cat.empty .ctitle { color: var(--ink2); }
