/* فونت یکان از CDN */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #F5F7FA;
  --white:        #FFFFFF;
  --dark:         #131C26;
  --blue:         #1A4A8A;
  --blue-light:   #2560B0;
  --blue-pale:    #E8F0FA;
  --orange:       #E06B1A;
  --orange-light: #F08030;
  --muted:        #6A7A8E;
  --border:       #DDE4EF;
  --header-h:     68px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--dark);
  overflow-x: hidden;
  font-size: 14px;
  line-height: 1.6;
}

/* =====================================================
   TOP BAR
===================================================== */
.topbar {
  background: var(--blue);
  color: #fff;
  font-size: 0.78rem;
  padding: 0.45rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: #FFB347; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar-links { display: flex; gap: 1.5rem; }

/* =====================================================
   HEADER
===================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  height: var(--header-h);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 1.5rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 42px; height: 42px;
  background: var(--blue);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.logo-mark::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  background: var(--orange);
  border-radius: 4px;
  transform: rotate(15deg);
  top: 12px; left: 11px;
}
.logo-text strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.2;
}
.logo-text span {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
}

/* =====================================================
   DESKTOP NAV
===================================================== */
.desk-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: stretch;
}
.desk-nav > ul {
  list-style: none;
  display: flex;
  align-items: stretch;
  margin: 0; padding: 0;
}
.desk-nav > ul > li {
  position: relative;
  display: flex;
  align-items: stretch;
}
.desk-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0 1.1rem;
  height: var(--header-h);
  color: var(--dark);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.desk-nav > ul > li:hover > a {
  color: var(--blue);
  border-bottom-color: var(--orange);
}
.nav-arrow {
  font-size: 0.5rem;
  color: var(--muted);
  transition: transform 0.2s, color 0.2s;
}
.desk-nav > ul > li:hover > a .nav-arrow {
  transform: rotate(180deg);
  color: var(--orange);
}

/* Dropdown */
.desk-nav .dropdown {
  position: absolute;
  top: calc(var(--header-h) - 1px);
  right: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--orange);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s, transform 0.22s, visibility 0.22s;
  z-index: 500;
}
.desk-nav > ul > li:hover > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-list { list-style: none; padding: 0.5rem 0; }
.dropdown-list li { position: relative; }
.dropdown-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.2rem;
  color: var(--dark);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.dropdown-list a:hover { background: var(--blue-pale); color: var(--blue); }
.sub-arrow { font-size: 0.5rem; color: var(--muted); }

/* Sub-dropdown level 2 */
.desk-nav .sub-dropdown {
  position: absolute;
  top: 0;
  right: calc(100% + 2px);
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--orange-light);
  border-radius: 12px 0 12px 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 600;
}
.has-sub:hover > .sub-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.dropdown-divider { height: 1px; background: var(--border); margin: 0.4rem 0; }

/* Multi-column dropdown when items > 5 */
.dropdown.dropdown-multi-col {
  min-width: 420px;
}
.dropdown.dropdown-multi-col .dropdown-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.dropdown.dropdown-multi-col .dropdown-list li {
  border-bottom: 1px solid var(--border);
}
.dropdown.dropdown-multi-col .dropdown-list li:nth-last-child(-n+2) {
  border-bottom: none;
}


/* Mega dropdown */
.desk-nav .mega-dropdown {
  position: absolute;
  top: calc(var(--header-h) - 1px);
  right: -200px;
  width: 680px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--orange);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s, transform 0.22s, visibility 0.22s;
  z-index: 500;
}
.desk-nav > ul > li:hover > .mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 1.5rem;
  gap: 0;
}
.mega-col { padding: 0 1rem; }
.mega-col:not(:last-child) { border-left: 1px solid var(--border); }
.mega-col-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.mega-links { list-style: none; }
.mega-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  color: var(--dark);
  text-decoration: none;
  font-size: 0.83rem;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.mega-links a:hover { background: var(--blue-pale); color: var(--blue); }
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: background 0.15s;
}
.mega-links a:hover .dot { background: var(--orange); }
.mega-banner {
  background: linear-gradient(135deg, var(--blue), var(--orange));
  border-radius: 10px;
  padding: 1rem;
  color: white;
  margin-top: 1rem;
}
.mega-banner h4 { font-size: 0.88rem; font-weight: 700; margin-bottom: 0.3rem; }
.mega-banner p { font-size: 0.75rem; opacity: 0.85; }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.header-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0 0.8rem;
  height: 40px;
  width: 200px;
  transition: border-color 0.2s;
}
.header-search:focus-within { border-color: var(--blue); }
.header-search input {
  border: none;
  background: none;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  font-size: 0.83rem;
  color: var(--dark);
  outline: none;
  width: 100%;
}
.header-search input::placeholder { color: var(--muted); }
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: var(--dark);
  transition: all 0.2s;
  position: relative;
}
.icon-btn:hover { background: var(--blue-pale); border-color: var(--blue); }
.cart-count {
  position: absolute;
  top: -6px; left: -6px;
  background: var(--orange);
  color: white;
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-consult {
  background: var(--orange);
  color: white;
  border: none;
  padding: 0.55rem 1.2rem;
  border-radius: 8px;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-consult:hover { background: var(--blue); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  display: block;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================
   MOBILE MENU DRAWER
===================================================== */
.mob-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1997;
}
.mob-overlay.visible { display: block; }

.main-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 88vw);
  height: 100dvh;
  background: #fff;
  z-index: 1998;
  display: flex;
  flex-direction: column;
  transition: right 0.32s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -6px 0 40px rgba(0,0,0,0.18);
  overflow: hidden;
}
.main-nav.is-open { right: 0; }

/* هدر drawer */
.mob-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  height: 60px;
  background: var(--blue);
  flex-shrink: 0;
}
.mob-head .logo-text strong { color:#fff; font-size:0.95rem; }
.mob-head .logo-text span   { color:rgba(255,255,255,0.6); font-size:0.65rem; }
.mob-head .logo-mark { background:rgba(255,255,255,0.15); }
/* آیکون واتساپ/تماس در هدر موبایل */
.mob-header-icon {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  color: var(--dark);
  text-decoration: none;
  transition: background 0.2s;
  flex-shrink: 0;
}
.mob-header-icon:hover { background: var(--blue-pale); color: var(--blue); }
@media (max-width: 768px) {
  .mob-header-icon { display: flex; }
}

.mob-close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.mob-close:hover { background: rgba(255,255,255,0.25); }

/* سرچ موبایل */
.mob-search {
  padding: 0.8rem 1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.mob-search input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 8px 0 0 8px;
  padding: 0.55rem 0.8rem;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  background: white;
  width: 100%;
}
.mob-search input:focus { border-color: var(--blue); }
.mob-search form {
  display: flex;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.mob-search form input {
  border: none;
  border-radius: 0;
  padding: 0.55rem 0.8rem;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  flex: 1;
  width: 100%;
}
.mob-search form button {
  background: var(--blue);
  border: none;
  color: white;
  padding: 0 0.9rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
  flex-shrink: 0;
}
.mob-search form button:hover { background: var(--orange); }

/* لیست منو */
.mob-nav-list {
  flex: 1;
  overflow-y: auto;
  list-style: none;
  padding: 0.3rem 0 1rem;
}
.mob-nav-item { border-bottom: 1px solid var(--border); }

/* لینک ساده */
.mob-link {
  display: flex;
  align-items: center;
  padding: 0.85rem 1.2rem;
  color: var(--dark);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  border-right: 3px solid transparent;
  transition: all 0.15s;
}
.mob-link:hover {
  background: var(--blue-pale);
  color: var(--blue);
  border-right-color: var(--orange);
}

/* دکمه آیتم با زیرمنو */
.mob-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.2rem;
  background: none;
  border: none;
  border-right: 3px solid transparent;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  text-align: right;
  transition: all 0.15s;
}
.mob-toggle:hover,
.mob-toggle.is-open {
  background: var(--blue-pale);
  color: var(--blue);
  border-right-color: var(--orange);
}
.mob-arrow { flex-shrink:0; transition:transform 0.25s; color:var(--muted); }
.mob-toggle.is-open .mob-arrow {
  transform: rotate(180deg);
  color: var(--orange);
}

/* زیرمنو accordion */
.mob-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.mob-sub.is-open { max-height: 600px; }
.mob-sub-link {
  display: block;
  padding: 0.7rem 2rem;
  color: #555;
  text-decoration: none;
  font-size: 0.86rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all 0.15s;
  border-right: 3px solid transparent;
}
.mob-sub-link:hover {
  background: white;
  color: var(--blue);
  border-right-color: var(--orange);
  padding-right: 2.3rem;
}

/* فوتر drawer - تماس */
.mob-foot {
  padding: 0.8rem 1rem;
  border-top: 2px solid var(--border);
  flex-shrink: 0;
  background: var(--bg);
}
.mob-phone-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.8rem;
  background: var(--blue);
  color: white;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: background 0.2s;
  direction: ltr;
}
.mob-phone-btn:hover { background: var(--orange); }


/* =====================================================
   SLIDER
===================================================== */
.slider-section {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: var(--dark);
}
.slides-wrapper {
  position: relative;
  height: 100%;
  width: 100%;
}
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.slide.active {
  opacity: 1;
}
/* slide-1/2/3 fallback colors removed — background-image از HTML میاد */
.slide-1, .slide-2, .slide-3 { background-color: var(--dark); }

.slider-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.slider-btn:hover { background: rgba(255,255,255,0.3); }
.slider-btn.prev { right: 1.5rem; }
.slider-btn.next { left: 1.5rem; }
.slider-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}
.dot.active { width: 28px; border-radius: 4px; background: var(--orange); }

/* =====================================================
   TRUST STRIP
===================================================== */
.trust-strip { background: var(--blue); padding: 1.2rem 0; }
.trust-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.trust-item { display: flex; align-items: center; gap: 0.8rem; color: white; }
.trust-icon { font-size: 1.6rem; flex-shrink: 0; }
.trust-text strong { display: block; font-size: 0.85rem; font-weight: 700; }
.trust-text span { font-size: 0.73rem; opacity: 0.75; }

/* =====================================================
   SECTIONS COMMON
===================================================== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 4rem 0; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
}
.section-h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  position: relative;
  padding-right: 1rem;
}
.section-h2::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: var(--orange);
  border-radius: 2px;
}
.section-h2 em { font-style: normal; color: var(--blue); }
@media (max-width: 600px) {
  .section-h2 { font-size: 1.2rem; }
}
.see-all {
  color: var(--blue);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  border-bottom: 1.5px solid var(--orange);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color 0.2s;
}
.see-all:hover { color: var(--orange); }

/* =====================================================
   CATEGORIES
===================================================== */
.cats-section { background: var(--white); }
.cats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.cat-card {
  background: var(--bg);
  border-radius: 14px;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  color: var(--dark);
  border: 2px solid transparent;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
.cat-card:hover {
  border-color: var(--orange);
  background: white;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}
.cat-icon-wrap {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--orange));
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: transform 0.25s;
}
.cat-card:hover .cat-icon-wrap { transform: scale(1.1); }
.cat-name { font-size: 0.83rem; font-weight: 700; }
.cat-count { font-size: 0.72rem; color: var(--muted); }

/* =====================================================
   PRODUCTS
===================================================== */
.products-section { background: var(--bg); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.product-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
  border-color: var(--orange);
}
.product-thumb {
  aspect-ratio: 1 / 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  overflow: hidden;
}
.t1 { background: linear-gradient(135deg, #0D2040, #1A4A8A); }
.t2 { background: linear-gradient(135deg, #3D1A05, #E06B1A); }
.t3 { background: linear-gradient(135deg, #0A1830, #2560B0); }
.t4 { background: linear-gradient(135deg, #3A1500, #F08030); }
.t5 { background: linear-gradient(135deg, #071530, #1A4A8A); }
.t6 { background: linear-gradient(135deg, #2A0E00, #C8501A); }
.t7 { background: linear-gradient(135deg, #050D20, #1A3A6A); }
.t8 { background: linear-gradient(135deg, #1A0800, #D06020); }

.badges {
  position: absolute;
  top: 0.7rem; right: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.badge {
  padding: 0.22rem 0.6rem;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
}
.badge-new  { background: var(--blue); color: white; }
.badge-sale { background: #C0392B; color: white; }
.badge-hot  { background: var(--orange); color: white; }

.product-fav {
  position: absolute;
  top: 0.7rem; left: 0.7rem;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: transform 0.2s;
}
.product-fav:hover { transform: scale(1.15); }

.product-info { padding: 1rem 1rem 1.2rem; flex: 1; display: flex; flex-direction: column; }
.product-name { font-weight: 700; font-size: 0.88rem; color: var(--dark); margin-bottom: 0.2rem; }
.product-compat { font-size: 0.75rem; color: var(--muted); margin-bottom: 0.6rem; }
.product-stars { font-size: 0.75rem; color: var(--orange); margin-bottom: 0.6rem; }
.product-stars span { color: var(--muted); }
.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.product-price { font-size: 1.05rem; font-weight: 700; color: var(--blue); }
.product-price small { font-size: 0.7rem; color: var(--muted); font-weight: 400; }
.old-price { font-size: 0.73rem; color: var(--muted); text-decoration: line-through; display: block; font-weight: 400; }

.btn-cart {
  background: var(--blue);
  color: white;
  border: none;
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.btn-cart:hover { background: var(--orange); transform: scale(1.1); }

/* =====================================================
   ARTICLES
===================================================== */
.articles-section { background: var(--white); }
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.article-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
  text-decoration: none;
  color: var(--dark);
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.09);
  border-color: var(--orange);
}
.article-thumb {
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
}
.art-1 { background: linear-gradient(135deg, #0D1A3A, #E06B1A); }
.art-2 { background: linear-gradient(135deg, #0D2A52, #2560B0); }
.art-3 { background: linear-gradient(135deg, #1A0A30, #E06B1A); }

.article-cat {
  position: absolute;
  bottom: 0.8rem; right: 0.8rem;
  background: var(--blue);
  color: white;
  padding: 0.22rem 0.7rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
}
.article-body { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; }
.article-meta { font-size: 0.72rem; color: var(--muted); margin-bottom: 0.5rem; display: flex; gap: 1rem; }
.article-title { font-weight: 700; font-size: 0.88rem; line-height: 1.6; color: var(--dark); margin-bottom: 0.5rem; }
.article-excerpt { font-size: 0.8rem; color: var(--muted); line-height: 1.7; flex: 1; }
.article-more { margin-top: 1rem; font-size: 0.78rem; font-weight: 700; color: var(--blue); }

/* =====================================================
   FOOTER
===================================================== */
footer { background: #131C26; color: rgba(255,255,255,0.65); padding: 3.5rem 0 0; }
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem 2.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo .logo-text strong { color: white; }
.footer-logo .logo-text span { color: rgba(255,255,255,0.4); }
.footer-desc { font-size: 0.83rem; line-height: 1.8; margin: 1rem 0 1.5rem; max-width: 280px; }
.footer-socials { display: flex; gap: 0.7rem; }
.social-link {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.07);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.2s;
}
.social-link:hover { background: var(--orange); }
.footer-col h4 { color: white; font-size: 0.88rem; font-weight: 700; margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.82rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--orange-light); }
.footer-contact { display: flex; flex-direction: column; gap: 0.7rem; }
.contact-item { display: flex; align-items: center; gap: 0.7rem; font-size: 0.82rem; }
.footer-phone { color: var(--orange-light) !important; font-size: 1.05rem !important; font-weight: 700; text-decoration: none; }
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}
.footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-bottom a:hover { color: var(--orange-light); }

/* =====================================================
   REVEAL ANIMATION
===================================================== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 1100px) {
  .cats-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .topbar { display: none; }
  .header-search { display: none; }
  .desk-nav { display: none !important; }
  .hamburger { display: flex; }
  .slider-section { height: 220px; }
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .section { padding: 2.5rem 0; }
  .container { padding: 0 1rem; }
  .trust-strip { padding: 1rem 0; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .section-h2 { font-size: 1.4rem; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   صفحات داینامیک — اضافه‌شده
============================================================ */

/* تصویر اصلی محصول در کارت */
.product-thumb { position:relative; overflow:hidden; }
.product-thumb img { width:100%; height:100%; object-fit:cover; transition:transform 0.4s; }
.product-card:hover .product-thumb img { transform:scale(1.05); }
.product-thumb-placeholder { font-size:3rem; display:flex; align-items:center; justify-content:center; height:100%; color:var(--border); }
.product-thumb-link { display:block; }
.product-name { text-decoration:none; color:var(--dark); font-weight:700; font-size:0.88rem; margin-bottom:0.2rem; display:block; }

/* اسلاید با تصویر واقعی */
.slide {
  background-size:cover;
  background-position:center;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:420px;
}
.slide-caption { display: none; }
.slide-btn {
  display:inline-block;
  background:var(--orange);
  color:white;
  padding:0.7rem 2rem;
  border-radius:8px;
  text-decoration:none;
  font-weight:700;
}

/* مقاله با تصویر واقعی */
.article-thumb {
  background-size:cover;
  background-position:center;
}

/* دسته با تصویر */
.cat-icon-wrap {
  background-size:cover;
  background-position:center;
}

/* صفحه محصول */
.old-price {
  text-decoration:line-through;
  color:var(--muted);
  font-size:0.85rem;
}

/* breadcrumb */
.breadcrumb { font-size:0.82rem; color:var(--muted); margin-bottom:1.5rem; }
.breadcrumb a { color:var(--muted); text-decoration:none; }
.breadcrumb a:hover { color:var(--blue); }

/* header scrolled */
header.scrolled { box-shadow:0 2px 20px rgba(0,0,0,0.12); }


/* =====================================================
   CAR MODELS GRID (صفحه اصلی)
===================================================== */
.cars-section { background: var(--bg); }

.cars-model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.car-model-card {
  background: var(--white);
  border-radius: 14px;
  padding: 1rem 0.8rem;
  text-align: center;
  text-decoration: none;
  color: var(--dark);
  border: 2px solid transparent;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.car-model-card:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.car-model-img {
  width: 90px;
  height: 70px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 0.2rem;
}
.car-model-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.car-model-card:hover .car-model-img img { transform: scale(1.08); }
.car-model-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
}
.car-model-brand {
  font-size: 0.72rem;
  color: var(--muted);
}
.car-model-count {
  font-size: 0.7rem;
  background: var(--blue-pale);
  color: var(--blue);
  padding: 2px 8px;
  border-radius: 20px;
}

@media (max-width: 480px) {
  .cars-model-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }
  .car-model-img { width: 70px; height: 55px; }
}