/* ============================================================
   Starland — منوی عمومی
   هویت بصری جدید: تک‌رنگ (مشکی روی سفید)، مینیمال و مدرن
   ============================================================ */
:root {
  --paper: #fafaf8;
  --paper-2: #f2f2ef;
  --ink: #121212;
  --ink-2: #2c2c2c;
  --text: #1c1c1c;
  --muted: #8b8b86;
  --line: #e4e4df;
  --line-dark: #c9c9c2;
  --shadow: 0 10px 30px rgba(18, 18, 18, 0.07);
  --radius: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  font-family: "Vazirmatn", system-ui, Tahoma, sans-serif;
  background: var(--paper);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- هدر / Hero ---------- */
.hero {
  text-align: center;
  padding: 56px 20px 40px;
  background: radial-gradient(90% 120% at 50% 0%, #ffffff 0%, var(--paper) 70%);
  border-bottom: 1px solid var(--line);
}
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
/* لوگو روی پس‌زمینه روشن — حذف زمینه سفید تصویر با blend */
.hero-logo {
  width: min(400px, 82vw);
  height: auto;
  mix-blend-mode: multiply;
}
.since {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 6px;
  color: var(--ink-2);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 6px 20px;
}

.hero-info-link {
  display: inline-block;
  margin-top: 24px;
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 22px;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}
.hero-info-link:hover {
  color: var(--ink);
  border-color: var(--ink);
  background: rgba(0, 0, 0, 0.03);
}

/* ---------- نوار دسته‌بندی ---------- */
.cat-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.cat-nav-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 16px;
  max-width: 920px;
  margin: 0 auto;
  scrollbar-width: none;
}
.cat-nav-inner::-webkit-scrollbar {
  display: none;
}
.cat-pill {
  white-space: nowrap;
  flex: 0 0 auto;
  padding: 8px 18px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line-dark);
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: 0.25s;
  filter: grayscale(1);
}
.cat-pill:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.cat-pill.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* ---------- منو ---------- */
.menu {
  max-width: 920px;
  margin: 0 auto;
  padding: 34px 16px 10px;
}
.cat-section {
  margin-bottom: 46px;
  scroll-margin-top: 84px;
}
.cat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.cat-icon {
  font-size: 22px;
  filter: grayscale(1);
}
.cat-header h2 {
  font-size: 22px;
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}
.cat-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--ink) 0 36px, var(--line) 36px);
}

.item-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 680px) {
  .item-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.item-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  min-height: 92px;
}
.item-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-dark);
  box-shadow: var(--shadow);
}

/* بند انگشتی مربعی سمت راست (RTL) */
.item-thumb {
  flex: 0 0 84px;
  width: 84px;
  height: 84px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper-2);
  position: relative;
  cursor: zoom-in;
}
.item-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(18, 18, 18, 0.08);
}
.item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: 0.4s;
}
.item-card:hover .item-thumb img {
  transform: scale(1.07);
}

.item-body {
  flex: 1;
  min-width: 0;
}
.item-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.item-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  flex: 0 1 auto;
  min-width: 0;
}
.dots {
  flex: 1;
  min-width: 16px;
  border-bottom: 1px dotted var(--line-dark);
  transform: translateY(-4px);
}
.item-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}
.item-price small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.item-desc {
  margin-top: 5px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.empty-note {
  grid-column: 1/-1;
  text-align: center;
  color: var(--muted);
  padding: 24px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px dashed var(--line-dark);
}

/* ---------- فوتر ---------- */
.site-footer {
  margin-top: 40px;
  text-align: center;
  color: #eee;
  background: #0e0e0e;
  padding: 46px 20px 30px;
}
/* لوگوی انگلیسی: معکوس‌سازی سیاه/سفید + حذف زمینه با blend روی پس‌زمینه تیره */
.foot-logo {
  width: min(280px, 72vw);
  height: auto;
  /* contrast پس از invert زمینه خاکستری روشن لوگو را کاملاً سیاه می‌کند تا در blend محو شود */
  filter: invert(1) contrast(1.5);
  mix-blend-mode: screen;
}
.foot-address {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-top: 18px;
  color: #b9b9b4;
}
.foot-hours {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-top: 8px;
  color: #b9b9b4;
}
.foot-phones {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}
.foot-phones a {
  display: inline-flex;
  align-items: center;
  color: #f4f4f2;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 7px 18px;
  transition: 0.25s;
}
.foot-phones a:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.foot-insta {
  display: inline-flex;
  margin-top: 16px;
  color: #f4f4f2;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 2px;
  transition: 0.25s;
}
.foot-insta:hover {
  border-color: #fff;
}
.foot-icon {
  width: 16px;
  height: 16px;
  margin: 0 6px;
}
.foot-map {
  margin: 16px auto 0;
}
.foot-map iframe {
  display: block;
  margin: 0 auto;
  border: 0;
  width: 100%;
  max-width: 320px;
  height: 150px;
}
.foot-map-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: #8f8f8a;
  text-decoration: underline;
}
.foot-note {
  margin-top: 18px;
  font-size: 13px;
  color: #8f8f8a;
}
.admin-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 12px;
  color: #6d6d68;
  text-decoration: none;
  opacity: 0.8;
}
.admin-link:hover {
  opacity: 1;
  color: #fff;
}

/* ---------- لایت‌باکس (نمایش تصویر در اندازه اصلی) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s;
  padding: 24px;
  cursor: zoom-out;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  transform: scale(0.94);
  transition: transform 0.25s;
  cursor: default;
}
.lightbox.open img {
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}
.lightbox-caption {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  text-align: center;
  color: #f4f4f2;
  font-size: 15px;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
