/* ===== Behtyre - Professional Tire & Rim Shop ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange: #e11d48;
  --orange-dark: #ea580c;
  --black: #0a0a0a;
  --dark: #111111;
  --card: #1a1a1a;
  --gray: #222;
  --border: #2a2a2a;
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --white: #fff;
  --radius: 12px;
  --shadow: 0 10px 40px rgba(0,0,0,0.45);
  --tr: 0.25s ease;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Vazirmatn', system-ui, sans-serif;
  background: var(--black);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 8px; font-weight: 600; font-size: 0.95rem;
  font-family: inherit; border: none; cursor: pointer; transition: var(--tr);
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(249,115,22,0.4); }
.btn-outline { background: transparent; border: 2px solid var(--orange); color: var(--orange); }
.btn-outline:hover { background: var(--orange); color: var(--white); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(10,10,10,0.96); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; gap: 16px;
}
.logo-img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav a { font-size: 0.92rem; font-weight: 500; color: var(--muted); transition: var(--tr); }
.nav a:hover, .nav a.active { color: var(--orange); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.menu-toggle span { width: 22px; height: 2px; background: var(--white); }

/* Hero */
.hero {
  position: relative; min-height: 480px;
  display: flex; align-items: center; background: var(--dark); overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,0.93) 0%, rgba(10,10,10,0.5) 55%, rgba(10,10,10,0.25) 100%),
              url('images/hero-car.jpg') center right / cover no-repeat;
}
.hero-content { position: relative; z-index: 2; max-width: 540px; padding: 55px 0; }
.hero-content h1 {
  font-size: clamp(1.85rem, 4.2vw, 2.7rem); font-weight: 800; line-height: 1.3; margin-bottom: 14px;
}
.hero-content h1 span { color: var(--orange); }
.hero-content p { color: var(--muted); font-size: 1.05rem; margin-bottom: 26px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Categories */
.categories { padding: 36px 0; background: var(--black); }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 14px; text-align: center; transition: var(--tr);
}
.cat-card:hover { border-color: var(--orange); transform: translateY(-4px); }
.cat-card .icon { font-size: 1.9rem; margin-bottom: 8px; color: var(--orange); }
.cat-card h3 { font-size: 0.92rem; font-weight: 600; }

/* Section common */
.section { padding: 55px 0; }
.section-title { font-size: clamp(1.45rem, 3vw, 1.85rem); font-weight: 700; margin-bottom: 6px; text-align: center; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 32px; font-size: 0.98rem; }

/* Products */
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px;
}
.product-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: var(--tr); display: flex; flex-direction: column;
}
.product-card:hover {
  border-color: rgba(249,115,22,0.45); transform: translateY(-5px); box-shadow: var(--shadow);
}
.product-img { position: relative; aspect-ratio: 1; background: #151515; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-badge {
  position: absolute; top: 10px; right: 10px; background: var(--orange); color: white;
  font-size: 0.72rem; font-weight: 600; padding: 3px 9px; border-radius: 20px;
}
.product-body { padding: 15px; flex: 1; display: flex; flex-direction: column; }
.product-brand { font-size: 0.76rem; color: var(--orange); font-weight: 600; text-transform: uppercase; }
.product-body h3 { font-size: 0.95rem; font-weight: 600; margin: 4px 0 6px; line-height: 1.4; }
.product-meta { font-size: 0.84rem; color: var(--muted); margin-bottom: 8px; }
.product-price { font-size: 1.08rem; font-weight: 700; margin-bottom: 12px; margin-top: auto; }
.product-price del { font-size: 0.82rem; color: var(--muted); font-weight: 400; margin-left: 6px; }

/* Brands */
.brands-section { background: var(--dark); padding: 48px 0; }
.brands-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); gap: 12px; }
.brand-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 8px; text-align: center; transition: var(--tr);
}
.brand-item:hover { border-color: var(--orange); transform: translateY(-3px); }
.brand-item strong { display: block; font-size: 0.86rem; margin-bottom: 3px; }
.brand-item span { font-size: 0.74rem; color: var(--muted); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 20px; text-align: center; transition: var(--tr);
}
.service-card:hover { border-color: var(--orange); }
.service-card .icon { font-size: 2rem; color: var(--orange); margin-bottom: 10px; }
.service-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 0.9rem; }

/* Page hero */
.page-hero { padding: 45px 0 28px; background: var(--dark); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: 1.7rem; font-weight: 700; text-align: center; }
.page-hero p { text-align: center; color: var(--muted); margin-top: 6px; }

.content-box {
  max-width: 800px; margin: 0 auto; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px;
}
.content-box p { color: var(--muted); margin-bottom: 14px; text-align: justify; line-height: 1.9; }
.content-box p:last-child { margin-bottom: 0; }

/* Footer */
.footer {
  background: var(--dark); border-top: 1px solid var(--border);
  padding: 36px 0 22px; margin-top: 40px;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer-logo { height: 38px; }
.footer-brand-text { color: var(--muted); font-size: 0.88rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.footer-links a { font-size: 0.86rem; color: var(--muted); }
.footer-links a:hover { color: var(--orange); }
.enamad-wrap { margin: 8px 0; }
.enamad-wrap img { width: 105px; height: auto; display: block; margin: 0 auto; }
.copyright { font-size: 0.78rem; color: var(--muted); opacity: 0.75; }

/* Responsive */
@media (max-width: 900px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    background: var(--dark); flex-direction: column; padding: 14px 20px;
    gap: 12px; border-bottom: 1px solid var(--border);
  }
  .nav.open { display: flex; }
  .menu-toggle { display: flex; }
  .header-actions .btn { display: none; }
}
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
}
