:root {
  --bg: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --accent: #ff385c;
  --gold: #d4af37;
  --border: #e5e7eb;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Vazirmatn", "IRANSans", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

body.rtl { direction: rtl; text-align: right; }

a { color: inherit; }

.nav {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  z-index: 20;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}
.logo {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.3px;
}
.menu-toggle { display: none; }
.hamburger {
  width: 38px;
  height: 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}
.hamburger span {
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.nav-menu {
  position: absolute;
  top: 54px;
  right: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  display: none;
  flex-direction: column;
  gap: 10px;
  min-width: 180px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
.nav-menu a {
  text-decoration: none;
  font-weight: 600;
  color: var(--text);
}
.menu-toggle:checked ~ .nav-menu { display: flex; }

.hero {
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.65));
  background-size: cover;
  background-position: center;
  padding: 64px 6vw 72px;
  text-align: center;
}
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero-content h1 {
  font-size: clamp(28px, 5vw, 46px);
  margin: 0 0 12px;
  font-weight: 700;
}
.hero-content p {
  margin: 0 0 20px;
  color: #f3f4f6;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 32px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 30px rgba(255, 56, 92, 0.3);
}
.btn.ghost {
  border: 1px solid rgba(255,255,255,0.6);
  color: #fff;
  background: transparent;
}
.btn:active { transform: scale(0.98); }

.search-section {
  margin-top: -32px;
}
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}
.search-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.search-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #f9fafb;
  border: 1px solid #eef2f7;
  min-height: 56px;
}
.search-field label {
  font-size: 11px;
  color: var(--muted);
}
.search-field input,
.search-field select {
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--text);
}
.search-btn {
  border: none;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  min-height: 52px;
}

.section { padding: 32px 0; }
.section-head { margin-bottom: 16px; }
.section-head h2 { margin: 0; font-size: 20px; }

.cards-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}
.cards-scroll::-webkit-scrollbar { height: 8px; }
.cards-scroll::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 999px; }

.model-card {
  min-width: 220px;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  scroll-snap-align: start;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.model-card.promoted {
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.2);
}
.model-card:active { transform: scale(0.98); }
.model-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.model-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(212, 175, 55, 0.9);
  color: #1b1b1b;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
}
.model-badge.promoted {
  background: rgba(255, 200, 90, 0.95);
}
.model-meta { padding: 12px; }
.model-title { font-weight: 600; font-size: 14px; }
.model-sub { color: var(--muted); font-size: 12px; margin-top: 4px; }
.model-sub.secondary { font-size: 11px; color: #9ca3af; }
.model-sub.price { color: #1f2937; font-weight: 600; }
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.model-placeholder {
  height: 200px;
  display: grid;
  place-items: center;
  background: #f3f4f6;
  color: #9ca3af;
  font-size: 12px;
}

.why-grid {
  display: grid;
  gap: 12px;
}
.why-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}
.why-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 10px;
}
.why-card h3 { margin: 0 0 6px; font-size: 16px; }
.why-card p { margin: 0; color: var(--muted); font-size: 13px; }

.about p { margin: 0; color: var(--muted); }

.final-cta .cta-card {
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  text-align: center;
}
.final-cta h2 { margin: 0 0 14px; font-size: 22px; }

.footer {
  padding: 32px 0 48px;
  background: #f9fafb;
  border-top: 1px solid var(--border);
}
.footer h2 { margin-top: 0; }
.footer a { color: var(--accent); text-decoration: none; }
.footer .copyright { color: var(--muted); font-size: 12px; margin-top: 12px; }

.no-results { color: var(--muted); }
.pagination { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.page-link {
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}
.page-link.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

@media (min-width: 960px) {
  .nav-inner { padding: 14px 24px; }
  .nav-menu {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 20px;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
  }
  .hamburger { display: none; }

  .hero { text-align: right; padding: 80px 6vw 96px; }
  .hero-inner { margin: 0; }
  .hero-actions { flex-direction: row; justify-content: flex-start; }

  .search-card {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 16px;
  }
  .search-field { flex: 1 1 0; min-height: 56px; }
  .search-btn { min-height: 56px; padding: 12px 26px; }

  .why-grid { grid-template-columns: repeat(3, 1fr); }
}
