/* ===== پایه ===== */
@font-face {
  font-family: barbod;
  src: url(media/vazir/Vazir-Black.woff);
}
* { box-sizing: border-box; }
:root {
  --bg: #0a0a0a;
  --bg-soft: #121212;
  --text: #ffffff;
  --muted: #cfcfcf;
  --accent: #34d399;
  --border: rgba(255,255,255,.12);
}
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: barbod;
}

.container {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 16px;
}

/* ===== هدر ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 64px;
  backdrop-filter: blur(10px);
  background: rgba(18,18,18,.55);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ===== لوگو ===== */
.logo {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -.02em;
  color: #fff;
  text-decoration: none;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  transform: translateX(80px);
  opacity: 0;
  transition: transform .8s cubic-bezier(.2,.8,.2,1), opacity .8s;
}
.logo span { color: #FF0000; }

/* ===== منو ===== */
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

/* افکت از بالا به پایین برای همه آیتم‌ها */
.nav-link {
  color: #fff;
  text-decoration: none;
  font-size: .98rem;
  transform: translateY(-28px);
  opacity: 0;
  transition:
    transform .7s cubic-bezier(.2,.8,.2,1),
    opacity .7s cubic-bezier(.2,.8,.2,1),
    scale .2s ease,
    color .2s ease;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background-color: #FF0000;
  transition: width .3s ease;
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { scale: 1.08; color: #FF0000; }

body.loaded .logo { transform: translateX(0); opacity: 1; }
body.loaded .nav-link { transform: translateY(0); opacity: 1; }

.nav-link:nth-child(1) { transition-delay: .10s; }
.nav-link:nth-child(2) { transition-delay: .18s; }
.nav-link:nth-child(3) { transition-delay: .26s; }
.nav-link:nth-child(4) { transition-delay: .34s; }
.nav-link:nth-child(5) { transition-delay: .42s; }
.nav-link:nth-child(6) { transition-delay: .50s; }
.nav-link:nth-child(7) { transition-delay: .58s; }


/* ===== همبرگر ===== */
.hamburger {
  display: none;
  background: transparent;
  color: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 1.3rem;
  transition: background .2s;
}
.hamburger:hover { background: rgba(255,255,255,.1); }

/* ===== ریسپانسیو منو ===== */
@media (max-width: 800px) {
  .logo { transform: translateX(0); opacity: 1; }
  .hamburger { display: inline-flex; align-items: center; }
  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    right: 0; left: 0;
    background: rgba(12,12,12,.97);
    backdrop-filter: blur(14px);
    padding: 16px;
    border-bottom: 1px solid var(--border);
    z-index: 49;
    width: 100%;
    align-items: flex-end;
    gap: 0;
  }
  .nav.open { display: flex; }
  .nav-link {
    transform: translateY(0) !important;
    opacity: 1 !important;
    padding: 12px 8px;
    width: 100%;
    text-align: right;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
    transition-delay: 0s !important;
  }
  .nav-link:last-child { border-bottom: none; }
}

/* ===== صفحات داخلی ===== */
.page-main {
  padding-top: 96px;
  padding-bottom: 72px;
  min-height: 80vh;
}
.page-title {
  margin: 8px 0 18px;
  font-size: clamp(24px, 3.6vw, 36px);
  font-weight: 900;
}
.breadcrumbs {
  color: var(--muted);
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumbs a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,.35);
}

/* ===== گرید محصولات ===== */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) { .product-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1100px) { .product-grid { grid-template-columns: repeat(3,1fr); } }

/* ===== کارت محصول ===== */
.product-mini {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  transition:
    transform .3s ease,
    box-shadow .3s ease,
    border-color .3s ease;
}
.product-mini:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(255,0,0,.15);
  border-color: rgba(255,0,0,.3);
}
.product-mini .card-media {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.product-mini .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-mini:hover .card-media img { transform: scale(1.07); }

.product-mini .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  gap: 8px;
}

/* ===== بج ===== */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  font-size: .85rem;
  text-decoration: none;
  color: #fff;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
  white-space: nowrap;
}
.badge:hover {
  color: #FF0000;
  border-color: rgba(255,0,0,.4);
  background: rgba(255,0,0,.08);
}

/* ===== افکت reveal اسکرول ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ===== فوتر ===== */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  color: #d7d7d7;
  padding: 28px 0;
  text-align: center;
}


/* ===== ریسپانسیو منو ===== */
@media (max-width: 800px) {
  .nav { display: none; }
  .hamburger { display: inline-flex; background: transparent; color: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 6px 10px; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 64px; right: 0; left: 0;
    background: rgba(18,18,18,.95);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    z-index: 49;
  }
  .nav.open a { transform: translateY(0); opacity: 1; }
}

/* ===== صفحات داخلی ===== */
.page-main { padding-top: 96px; padding-bottom: 72px; min-height: 80vh; }
.page-title { margin: 8px 0 18px; font-size: clamp(24px,3.6vw,36px); font-weight: 900; }
.breadcrumbs { color: var(--muted); font-size: .9rem; display:flex; align-items:center; gap:8px; }
.breadcrumbs a { color: #fff; text-decoration: none; border-bottom: 1px dashed rgba(255,255,255,.35); }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card.padded { padding: 16px; }
.badge { display:inline-block; padding:4px 10px; border-radius:999px; border:1px solid var(--border); background: rgba(255,255,255,.06); font-size:.85rem }
.table { width:100%; border-collapse: collapse; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: start; }
.kv { display:grid; grid-template-columns: 140px 1fr; gap:10px; }
.contact-wrap { display:grid; gap:20px; grid-template-columns: 1fr; }
@media (min-width: 900px){ .contact-wrap { grid-template-columns: 1.2fr .8fr; } }
.form-group { display:flex; flex-direction: column; gap:8px; }
.input, .textarea { background: rgba(255,255,255,.06); border:1px solid var(--border); color:#fff; border-radius:12px; padding:12px 14px; font-size:1rem; }
.textarea { min-height: 140px; resize: vertical; }
.button { background: var(--accent); color:#0b0b0b; border:none; border-radius:12px; padding:12px 18px; font-weight:800; cursor:pointer; }
.info { color: var(--muted); font-size: .95rem; line-height:1.9; }
.hero-lite { margin-top: 24px; padding: 18px; border-radius: 16px; border:1px solid var(--border); background: rgba(255,255,255,.04); }
.category-chip { display:inline-flex; align-items:center; gap:8px; padding:6px 10px; border:1px solid var(--border); border-radius:999px; background: rgba(255,255,255,.06); }
.filters { display:flex; flex-wrap:wrap; gap:10px; margin: 10px 0 18px; }
.product-grid { display:grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 720px){ .product-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1100px){ .product-grid { grid-template-columns: repeat(3,1fr); } }
.product-mini { border:1px solid var(--border); border-radius:16px; overflow:hidden; background: rgba(255,255,255,.04); }
.product-mini .meta { display:flex; align-items:center; justify-content:space-between; padding:10px 12px; }
.lead { font-size: 1.05rem; color: #e9e9e9; }
.map { width:100%; height: 280px; border:1px solid var(--border); border-radius: 14px; overflow:hidden; background: #222; display:grid; place-items:center; color:#999; }
.notice { padding: 12px 14px; border-radius: 12px; border:1px solid var(--border); background: rgba(52,211,153,.12); }

.badge {
  text-decoration: none;
  color: white;
}
.badge {
  text-decoration: none;
  color: white;
}
.badge:hover {
  text-decoration: none;
  color: rgb(255, 0, 0) ;
  transition:all 300ms linear;
  text-shadow: #ffffff 10px 10px 10px 10px;
}
