:root {
  --bg: #faf7f2;
  --card: #ffffff;
  --ink: #1f1a14;
  --muted: #6f655a;
  --accent: #b5562b;
  --line: #ece5da;
  --tag: #f3ece2;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.45 "Inter", system-ui, sans-serif;
}
[dir="rtl"] body, html[dir="rtl"] { font-family: "Noto Kufi Arabic", "Inter", system-ui, sans-serif; }
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px 10px; max-width: 760px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
h1 { font-size: 1.4rem; margin: 0; }
.lang {
  flex: none; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem;
}
.note { max-width: 760px; margin: 0 auto; padding: 0 18px 6px; color: var(--muted); font-size: .92rem; }
.tabs {
  position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto;
  padding: 10px max(18px, calc((100% - 760px) / 2 + 18px)); background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none; padding: 7px 14px; border-radius: 999px; color: var(--muted);
  text-decoration: none; font-weight: 600; font-size: .92rem; background: var(--card); border: 1px solid var(--line);
}
.tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
main { max-width: 760px; margin: 0 auto; padding: 6px 14px 60px; }
h2 { font-size: 1.15rem; margin: 22px 4px 10px; }
.item {
  display: flex; gap: 12px; padding: 12px; margin-bottom: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
}
.item img { flex: none; width: 96px; height: 96px; object-fit: cover; border-radius: 10px; background: var(--tag); }
.info { flex: 1; min-width: 0; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
h3 { font-size: 1rem; margin: 0; }
.price { flex: none; font-weight: 700; color: var(--accent); white-space: nowrap; }
.info p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { font-size: .78rem; padding: 3px 9px; border-radius: 999px; background: var(--tag); color: var(--muted); }
.tag.so { background: #2b2620; color: #fff; }
.item.sold img, .item.sold h3, .item.sold .price, .item.sold p { opacity: .45; }
.item.sold .price { text-decoration: line-through; }
.empty { text-align: center; color: var(--muted); padding: 60px 10px; }
