/* ============================================================
   منصوری موتورز — Premium RTL Automotive Design System
   Ultra-luxury dark automotive aesthetic
   ============================================================ */

/* ============================================================
   @font-face — Vazirmatn (self-hosted woff2)
   ============================================================ */

@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   CSS Custom Properties (Design Tokens)
   ============================================================ */

:root {
  /* Colors */
  --bg-base:        #0e0e0e;
  --bg-surface:     #121212;
  --bg-elevated:    #181818;
  --bg-overlay:     rgba(14, 14, 14, 0.92);

  --gold:           #c9a84c;
  --gold-muted:     rgba(201, 168, 76, 0.12);
  --gold-soft:      rgba(201, 168, 76, 0.08);
  --gold-border:    rgba(201, 168, 76, 0.15);
  --gold-border-hover: rgba(201, 168, 76, 0.35);
  --buy-green:      #16a34a;
  --buy-green-hover:#22c55e;

  --text-primary:   #ffffff;
  --text-body:      #aaaaaa;
  --text-dim:       #666666;
  --text-muted-val: #888888;

  /* Radius */
  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      22px;

  /* Shadows */
  --shadow-base:    0 1px 2px rgba(201, 168, 76, 0.05),
                    0 8px 24px rgba(0, 0, 0, 0.3),
                    0 24px 64px rgba(0, 0, 0, 0.4);
  --shadow-hover:   0 2px 4px rgba(201, 168, 76, 0.08),
                    0 12px 32px rgba(0, 0, 0, 0.45),
                    0 32px 80px rgba(0, 0, 0, 0.5);
  --shadow-glow:    0 0 0 1px rgba(201, 168, 76, 0.2),
                    0 0 24px rgba(201, 168, 76, 0.08);

  /* Transitions */
  --trans-fast:     0.15s ease;
  --trans-base:     0.2s ease;
  --trans-slow:     0.35s ease;

  /* Spacing */
  --section-pad:    clamp(72px, 12vw, 140px);
  --container-max:  1200px;
  --container-pad:  24px;

  /* Navigation */
  --nav-height:     72px;
}

/* ============================================================
   Base Reset + RTL
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Vazirmatn', sans-serif;
  direction: rtl;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 2;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(201, 168, 76, 0.25);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: rgba(201, 168, 76, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(201, 168, 76, 0.55);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: 'Vazirmatn', sans-serif;
}

input,
textarea,
select {
  font-family: 'Vazirmatn', sans-serif;
}

/* ============================================================
   Navigation (.nav)
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(14, 14, 14, 0.92);
  border-bottom: 1px solid rgba(201, 168, 76, 0.08);
  transition: background var(--trans-base);
}

.nav.scrolled {
  background: rgba(14, 14, 14, 0.98);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--gold);
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo svg,
.nav-logo img {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 300;
  color: #cccccc;
  transition: color var(--trans-base);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: #ccc;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background var(--trans-base);
}

.nav-toggle:hover {
  background: var(--gold-muted);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #ccc;
  transition: transform var(--trans-slow), opacity var(--trans-base);
}

/* ============================================================
   Buttons — Global
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: 'Vazirmatn', sans-serif;
  cursor: pointer;
  transition: all var(--trans-base);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: #0e0e0e;
  border-radius: var(--radius-lg);
  border: none;
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.5);
  border-radius: var(--radius-lg);
}

.btn-outline:hover {
  background: var(--gold-muted);
  border-color: var(--gold);
  transform: translateY(-1px);
}

/* Nav-specific buttons */
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(201, 168, 76, 0.4);
  color: var(--gold);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  font-family: 'Vazirmatn', sans-serif;
  transition: all var(--trans-base);
}

.btn-ghost:hover {
  background: var(--gold-muted);
  border-color: rgba(201, 168, 76, 0.7);
}

.btn-gold {
  background: var(--buy-green);
  color: #ffffff;
  padding: 10px 24px;
  border-radius: var(--radius-lg);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: 'Vazirmatn', sans-serif;
  transition: all var(--trans-base);
}

.btn-gold:hover {
  background: var(--buy-green-hover);
  transform: translateY(-1px);
}

/* ============================================================
   Mobile Menu Overlay
   ============================================================ */

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg-base);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform var(--trans-slow);
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-inner {
  padding: 80px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100vh;
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  left: 20px;
  background: transparent;
  border: none;
  color: #888;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  transition: color var(--trans-base);
}

.mobile-menu-close:hover {
  color: var(--gold);
}

.mobile-menu-link {
  font-size: 1.3rem;
  font-weight: 300;
  color: #cccccc;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color var(--trans-base);
  display: block;
}

.mobile-menu-link:hover {
  color: var(--gold);
}

.mobile-menu-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ============================================================
   Hero (.hero)
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #0e0e0e;
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: none;
}

@keyframes heroZoom {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.05); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(14, 14, 14, 0) 25%,
    rgba(14, 14, 14, 0.65) 60%,
    rgba(14, 14, 14, 0.92) 100%
  );
  z-index: 1;
}

.hero-content {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 55%;
  padding: 0 clamp(24px, 5vw, 80px) 0 0;
  z-index: 2;
}

.hero-eyebrow {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.hero-brand-mark {
  width: clamp(64px, 8vw, 96px);
  height: clamp(64px, 8vw, 96px);
  display: block;
  margin: 18px 0 4px;
  border-radius: var(--radius-sm);
  box-shadow:
    0 0 0 1px rgba(201, 168, 76, 0.38),
    0 0 24px rgba(201, 168, 76, 0.28),
    0 14px 34px rgba(0, 0, 0, 0.42);
  filter: drop-shadow(0 0 14px rgba(201, 168, 76, 0.32));
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 300;
  line-height: 1.25;
  color: #fff;
  margin: 16px 0 12px;
}

.hero-sub {
  font-size: 1rem;
  color: #aaaaaa;
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   Stats Strip (.stats-strip)
   ============================================================ */

.stats-strip {
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  position: relative;
  z-index: 3;
}

.stats-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 40px var(--container-pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  text-align: center;
  padding: 24px 16px;
  border-right: 1px solid rgba(201, 168, 76, 0.15);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--gold);
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: #888;
  margin-top: 8px;
  font-weight: 300;
  line-height: 1.6;
}

/* ============================================================
   Section Structure (.section)
   ============================================================ */

.section {
  padding: var(--section-pad) 0;
}

.section-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section-header {
  margin-bottom: 48px;
}

.section-eyebrow {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 500;
  text-align: right;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.3;
}

.section-title::after {
  display: block;
  content: '';
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin-top: 12px;
  /* RTL: block starts at inline-start (right) — no auto needed */
}

/* ============================================================
   Featured Cars (.cars-grid)
   ============================================================ */

.cars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.car-card {
  background: var(--bg-elevated);
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

.car-card:hover {
  border-color: var(--gold-border-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.car-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.car-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.car-card:hover .car-card-img img {
  transform: scale(1.04);
}

.car-card-body {
  padding: 20px;
}

.car-card-cat {
  font-size: 0.7rem;
  color: rgba(201, 168, 76, 0.7);
  font-weight: 300;
  text-transform: uppercase;
}

.car-card-name {
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  margin: 6px 0 8px;
  line-height: 1.5;
}

.car-card-meta {
  font-size: 0.8rem;
  color: #888;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.car-card-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: 12px;
}

.car-card-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--gold);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  transition: gap var(--trans-base);
}

.car-card-link:hover {
  gap: 8px;
}

/* ============================================================
   Services Section (.services-section)
   ============================================================ */

.services-section {
  background: var(--bg-surface);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(201, 168, 76, 0.03) 0px,
    rgba(201, 168, 76, 0.03) 1px,
    transparent 1px,
    transparent 16px
  );
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.service-tile {
  background: rgba(255, 255, 255, 0.025);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(201, 168, 76, 0.06);
  transition: all var(--trans-base);
}

.service-tile:hover {
  background: rgba(201, 168, 76, 0.06);
  border-color: rgba(201, 168, 76, 0.2);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-name {
  font-size: 1.05rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.4;
}

.service-desc {
  font-size: 0.85rem;
  color: #888;
  line-height: 1.9;
}

/* ============================================================
   Parts Preview (.parts-section)
   ============================================================ */

.parts-section {
  background: var(--bg-base);
}

.parts-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.part-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  background: var(--bg-elevated);
  border-bottom: 1px solid rgba(201, 168, 76, 0.06);
  transition: border-color var(--trans-base);
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.part-row:nth-child(even) {
  background: var(--bg-surface);
}

.part-row:hover {
  border-color: rgba(201, 168, 76, 0.2);
}

.part-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.part-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.part-row:hover .part-img img {
  transform: scale(1.04);
}

.part-body {
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.part-cat {
  font-size: 0.7rem;
  color: var(--gold);
  font-weight: 300;
  text-transform: uppercase;
}

.part-name {
  font-size: 1.1rem;
  color: #fff;
  font-weight: 500;
  line-height: 1.5;
}

.part-price {
  font-size: 1.2rem;
  color: var(--gold);
  font-weight: 700;
}

.part-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--gold);
  transition: gap var(--trans-base);
  width: fit-content;
}

.part-link:hover {
  gap: 8px;
}

/* ============================================================
   News Strip (.news-section)
   ============================================================ */

.news-section {
  background: var(--bg-surface);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(201, 168, 76, 0.1);
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(201, 168, 76, 0.25);
}

.news-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card-img img {
  transform: scale(1.04);
}

.news-card-body {
  padding: 24px;
}

.news-card-date {
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: 8px;
  display: block;
}

.news-card-title {
  font-size: 1rem;
  color: #fff;
  font-weight: 500;
  line-height: 1.6;
}

.news-card-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--gold);
  margin-top: 12px;
  transition: gap var(--trans-base);
  width: fit-content;
}

.news-card-link:hover {
  gap: 8px;
}

/* ============================================================
   About Section (.about-section)
   ============================================================ */

.about-section {
  background: var(--bg-base);
}

.about-section .section-inner {
  display: flex;
  align-items: center;
  gap: 64px;
}

.about-img-wrap {
  flex: 0 0 48%;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-glow);
  border: 1px solid rgba(201, 168, 76, 0.2);
}

.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.3;
}

.about-body {
  font-size: 1rem;
  color: #aaaaaa;
  line-height: 2.0;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}

.about-stat {
  padding: 20px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(201, 168, 76, 0.1);
}

.about-stat-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  display: block;
}

.about-stat-label {
  font-size: 0.8rem;
  color: #888;
  margin-top: 6px;
  font-weight: 300;
}

/* ============================================================
   CTA Banner (.cta-section)
   ============================================================ */

.cta-section {
  background: radial-gradient(ellipse at center, rgba(201, 168, 76, 0.08) 0%, transparent 70%), var(--bg-surface);
  text-align: center;
}

.cta-section .section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cta-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.3;
  max-width: 640px;
}

.cta-subtitle {
  font-size: 1rem;
  color: #aaaaaa;
  line-height: 2.0;
  max-width: 520px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   Footer (.footer)
   ============================================================ */

.footer {
  background: #0a0a0a;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
}

.footer-top {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 64px var(--container-pad) 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-tagline {
  font-size: 0.875rem;
  color: #888;
  line-height: 1.8;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.2);
  color: #888;
  transition: all var(--trans-base);
}

.footer-social a:has(span) {
  border-radius: 999px;
}

.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-muted);
}

.footer-nav h4 {
  font-size: 0.7rem;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.footer-nav ul a {
  font-size: 0.9rem;
  color: #888;
  transition: color var(--trans-base);
}

.footer-nav ul a:hover {
  color: var(--gold);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact h4 {
  font-size: 0.7rem;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: #888;
  line-height: 1.7;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gold);
}

.footer-bottom {
  padding: 20px var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  font-size: 0.75rem;
  color: #555;
}

/* ============================================================
   Forms
   ============================================================ */

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  color: #cccccc;
  margin-bottom: 8px;
  font-weight: 400;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  transition: border-color var(--trans-base), box-shadow var(--trans-base);
  outline: none;
  direction: rtl;
}

.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.form-control::placeholder {
  color: #555;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ============================================================
   Page Hero (.page-hero)
   ============================================================ */

.page-hero {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0 48px;
  overflow: hidden;
  background: var(--bg-surface);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* When page-hero has an inline background-image, add overlay via pseudo-element */
.page-hero[style*="background-image"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(14,14,14,0.55) 0%, rgba(14,14,14,0.88) 100%);
  z-index: 0;
}

/* Make hero-content/hero-sub/page-hero-content all stack above the overlay */
.page-hero .hero-content,
.page-hero .page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 var(--container-pad);
}

.page-hero .hero-sub {
  color: #aaa;
  font-size: 1rem;
  line-height: 1.9;
  margin-top: 8px;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(14,14,14,0.5) 0%, rgba(14,14,14,0.85) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 var(--container-pad);
}

.page-title {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  line-height: 1.3;
  text-align: center;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.8rem;
  color: #888;
  justify-content: center;
  margin-top: 12px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #888;
  transition: color var(--trans-base);
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb-sep {
  color: #555;
}

/* ============================================================
   Loading / Skeleton (admin)
   ============================================================ */

.skeleton {
  background: linear-gradient(90deg, #1a1a1a 25%, #222222 50%, #1a1a1a 75%);
  background-size: 400% 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.skeleton-text {
  height: 1em;
  border-radius: 4px;
  margin-bottom: 8px;
}

.skeleton-title {
  height: 1.6em;
  width: 60%;
  border-radius: 4px;
  margin-bottom: 12px;
}

.skeleton-img {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
}

/* ============================================================
   Utility Classes
   ============================================================ */

.text-gold   { color: var(--gold); }
.text-muted  { color: #888; }
.text-dim    { color: var(--text-dim); }
.text-center { text-align: center; }
.text-right  { text-align: right; }

.ltr {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.items-center { align-items: center; }
.gap-8        { gap: 8px; }
.gap-16       { gap: 16px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   Admin / Login (max 24px headings — non-negotiable)
   ============================================================ */

.admin-heading,
.login-heading {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}

/* ============================================================
   Animations & Transitions
   ============================================================ */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.fade-up {
  animation: fadeUp 0.6s ease forwards;
}

.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

/* ============================================================
   Responsive Breakpoints
   ============================================================ */

/* Tablet — 768px */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item {
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
  }

  .stat-item:nth-child(odd) {
    border-right: 1px solid rgba(201, 168, 76, 0.15);
  }

  .stat-item:nth-child(even) {
    border-right: none;
  }

  .cars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px var(--container-pad) 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .hero-content {
    width: 80%;
  }

  .about-section .section-inner {
    flex-direction: column;
    gap: 40px;
  }

  .about-img-wrap {
    flex: none;
    width: 100%;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
  }

  .part-row {
    grid-template-columns: 140px 1fr;
  }

  .part-body {
    padding: 24px 28px;
  }
}

/* Mobile — 480px */
@media (max-width: 480px) {
  .cars-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content {
    width: 90%;
    padding: 0 20px;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .part-row {
    grid-template-columns: 100px 1fr;
  }

  .part-body {
    padding: 20px;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   Shop — Category Filter Pills
   ============================================================ */

.shop-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.08);
}

.filter-pill {
  padding: 9px 22px;
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: var(--radius-lg);
  font-size: 0.85rem;
  color: #aaa;
  transition: all var(--trans-base);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--gold-muted);
  border-color: var(--gold);
  color: var(--gold);
}

/* ============================================================
   Product Detail Gallery
   ============================================================ */

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.product-gallery {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(201, 168, 76, 0.15);
  background: var(--bg-elevated);
}

.product-gallery-main {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: var(--bg-surface);
}

.product-thumb {
  width: 72px;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: border-color var(--trans-base);
  flex-shrink: 0;
}

.product-thumb.active,
.product-thumb:hover {
  border-color: var(--gold);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-info-cat {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-info-cat::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.product-info-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.4;
}

.product-info-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
}

.product-info-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(201, 168, 76, 0.1);
}

.product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
}

.product-meta-row dt {
  color: #888;
  font-weight: 300;
}

.product-meta-row dd {
  color: #fff;
  font-weight: 500;
}

.qty-control-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.qty-control-label {
  font-size: 0.875rem;
  color: #aaa;
  white-space: nowrap;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-elevated);
}

.qty-btn {
  background: transparent;
  border: none;
  color: var(--gold);
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background var(--trans-base);
  font-family: 'Vazirmatn', sans-serif;
}

.qty-btn:hover {
  background: var(--gold-muted);
}

.qty-input {
  width: 52px;
  text-align: center;
  background: transparent;
  border: none;
  border-right: 1px solid rgba(201, 168, 76, 0.15);
  border-left: 1px solid rgba(201, 168, 76, 0.15);
  color: #fff;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 1rem;
  padding: 8px 4px;
  -moz-appearance: textfield;
  outline: none;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ============================================================
   Cart Page
   ============================================================ */

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(201, 168, 76, 0.1);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  transition: border-color var(--trans-base);
}

.cart-item:hover {
  border-color: rgba(201, 168, 76, 0.25);
}

.cart-item-img {
  width: 100px;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-name {
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.5;
}

.cart-item-unit-price {
  font-size: 0.85rem;
  color: #888;
}

.cart-item-total {
  font-size: 1.05rem;
  color: var(--gold);
  font-weight: 700;
  margin-top: 4px;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.cart-remove-btn {
  background: transparent;
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: rgba(220, 53, 69, 0.7);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-family: 'Vazirmatn', sans-serif;
  transition: all var(--trans-base);
}

.cart-remove-btn:hover {
  background: rgba(220, 53, 69, 0.1);
  border-color: rgba(220, 53, 69, 0.6);
  color: #dc3545;
}

.cart-summary-box {
  background: var(--bg-elevated);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: var(--radius-md);
  padding: 24px;
  position: sticky;
  top: 96px;
}

.cart-summary-box h3 {
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 0.875rem;
  color: #aaa;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.cart-summary-row:last-of-type {
  border-bottom: none;
}

.cart-summary-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  margin-top: 4px;
  border-top: 1px solid rgba(201, 168, 76, 0.15);
}

.cart-summary-total-label {
  font-size: 0.95rem;
  color: #ccc;
  font-weight: 500;
}

.cart-summary-total-price {
  font-size: 1.3rem;
  color: var(--gold);
  font-weight: 700;
}

/* ============================================================
   Checkout Page
   ============================================================ */

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

.checkout-order-summary {
  background: var(--bg-elevated);
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-radius: var(--radius-md);
  padding: 24px;
  position: sticky;
  top: 96px;
}

.checkout-summary-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.checkout-summary-item:last-of-type {
  border-bottom: none;
}

.checkout-summary-thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.checkout-summary-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-summary-name {
  flex: 1;
  font-size: 0.875rem;
  color: #ccc;
  line-height: 1.5;
}

.checkout-summary-price {
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
}

/* ============================================================
   Nav cart badge
   ============================================================ */

.nav-cart-link {
  position: relative;
  display: flex;
  align-items: center;
  color: #ccc;
  transition: color var(--trans-base);
  padding: 6px;
  border-radius: var(--radius-sm);
}

.nav-cart-link:hover {
  color: var(--gold);
  background: var(--gold-muted);
}

.cart-badge {
  position: absolute;
  top: -2px;
  left: -2px;
  background: var(--gold);
  color: #0e0e0e;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

/* ============================================================
   Responsive — Shop + Cart + Checkout
   ============================================================ */

@media (max-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-order-summary {
    position: static;
    order: -1;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .add-car-grid-two,
  .add-car-grid-three {
    grid-template-columns: 1fr !important;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary-box {
    position: static;
  }

  .cart-item {
    grid-template-columns: 80px 1fr;
  }

  .cart-item-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .cart-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cart-item-img {
    width: 100%;
    height: 180px;
    aspect-ratio: unset;
  }
}

/* Small mobile — 390px (iPhone SE) */
@media (max-width: 390px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1px;
  }

  .hero-title {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
  }

  .nav-inner {
    padding: 0 16px;
  }

  .section-inner {
    padding: 0 16px;
  }
}
