
/* 
    6. Categories css
*/
.categories__card {
  background: var(--bg-offwhite-color);
  border-radius: 5px;
  transition: var(--transition);
  height: 100%;
}

.categories__card:hover {
  background: var(--secondary-color);
}

.categories__card:hover .categories__icon {
  color: var(--text-white-color);
}

.categories__card:hover .categories__title {
  color: var(--text-white-color);
}

.categories__card:hover .categories__subtitle {
  color: var(--text-white-color);
}

.categories__card--link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 1.2rem;
}

@media only screen and (min-width: 1200px) {
  .categories__card--link {
    padding: 1.5rem;
  }
}

.categories__icon {
  margin-bottom: 1.2rem;
}

.categories__title {
  font-size: 1.5rem;
  line-height: 2.4rem;
  font-family: var(--rubik-fonts);
  margin-bottom: 0.6rem;
  transition: var(--transition);
}

.categories__subtitle {
  font-size: 1.1rem;
  line-height: 1.6rem;
  font-family: var(--rubik-fonts);
  color: var(--foreground-sub-color);
}



/* ===== Modern Model Selector - Compact Chips ===== */
.hero-model-grid {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.hero-model-card {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.35);
  border-radius: 10px;
  padding: 9px 16px;
  min-width: 88px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  color: #94a3b8;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;

  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.hero-model-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #f1f5f9;
}

.hero-model-card:focus-visible {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.28);
}

.hero-model-card__indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #475569;
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

/* ===== Active state: کاملاً مشخص ===== */
.hero-model-card.is-active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow:
    0 0 0 2px rgba(37, 99, 235, 0.35),
    0 8px 20px rgba(37, 99, 235, 0.35);
}

.hero-model-card.is-active .hero-model-card__indicator {
  background: #ffffff;
  transform: scale(1.06);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .hero-model-grid {
    gap: 6px;
    max-width: 100%;
    margin-bottom: 1.6rem;
  }

  .hero-model-card {
    padding: 8px 12px;
    font-size: 0.76rem;
    min-width: 76px;
    border-radius: 9px;
  }

  .hero-model-card__indicator {
    width: 6px;
    height: 6px;
  }
}





/* Hero Section Main Container */

.hero-parts-scene {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--primary-color); /* استفاده از رنگ درخواستی */
  padding: 20px 0;
  
  /* افکت شیشه‌ای با عمق مناسب */
  backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 -20px 40px rgba(0,0,0,0.2);
}

/* 2. گرادینت محیطی (نور ملایم) */
.hero-parts-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(56, 189, 248, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
  pointer-events: none;
}


.hero-parts-scene__layout {
  position: relative;
  z-index: 1;
  width: min(1300px, 92vw); /* کمی کوچک‌تر برای دید بهتر */
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 0.7fr; /* فضای متن بیشتر شد */
  gap: 3rem;
  align-items: center;
  min-height: 380px; /* کاهش ارتفاع */
  height: 80vh; /* مهم: ارتفاع را بر اساس ویوپورت تنظیم می‌کنیم */
  max-height: 500px; /* سقف ارتفاع برای مانیتورهای خیلی بزرگ */
}

.hero-parts-scene__copy {
  max-width: 40rem;
  position: relative;
  z-index: 2;
  align-self: start;
  padding-top: 0.25rem;
  padding-left: 2rem;
}

.hero-parts-scene__subtitle {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: #94a3b8;
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.8;
}

.hero-parts-scene__title {
  margin: 0 0 0.9rem;
  color: #f8fafc;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1.1;
}

.hero-parts-scene__desc {
  margin: 0 0 1.8rem;
  max-width: 36ch;
  color: #cbd5e1;
  font-size: 1.18rem;
  font-weight: 400;
  line-height: 2;
}

.hero-parts-scene__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Stage - محیط 3D */
.hero-parts-scene__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 500px;
  margin-left: auto;
  isolation: isolate;
  perspective: 1400px;
  transform-style: preserve-3d;
  margin-top: -60px;
}

.hero-parts-scene__ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 8px;
}

.hero-parts-scene__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.22;
  mask-image: radial-gradient(circle at 50% 50%, #000 28%, transparent 82%);
}

.hero-parts-scene__veil {
  position: absolute;
  inset: 1px;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 48%, rgba(56, 189, 248, 0.16), transparent 42%),
    radial-gradient(circle at 42% 58%, rgba(59, 130, 246, 0.10), transparent 52%);
  opacity: 0.9;
}

.hero-parts-scene__particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.45;
}

.hero-parts-scene__orbit {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  will-change: transform;
}

.hero-parts-scene__scene3d,
.hero-parts-scene__parts {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  
}

.hero-part {
  position: absolute;
  margin: 0;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: rotate(var(--part-rotate, 0deg));
  transform-origin: center center;
  will-change: transform, opacity, filter;
  user-select: none;
  pointer-events: none;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.hero-part img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 30px rgba(15, 23, 42, 0.38));
}
/* Responsive Breakpoints */
@media (max-width: 1200px) {
  .hero-parts-scene__layout {
    width: min(94vw, 1300px);
    gap: 2rem;
  }

  .hero-parts-scene__copy {
    padding-left: 1.5rem;
  }

  .hero-parts-scene__title {
    font-size: clamp(2rem, 3.6vw, 3.4rem);
  }

  .hero-parts-scene__desc {
    font-size: 1.08rem;
  }

  .hero-parts-scene__stage {
    max-width: 460px;
    margin-top: -46px;
  }
}

@media (max-width: 1024px) {
  .hero-parts-scene__layout {
    gap: 1.5rem;
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .hero-parts-scene__stage {
    margin-top: -38px;
  }
}

/* 991px and below */
@media (max-width: 991px) {
  .hero-parts-scene {
    padding: 16px 0;
  }

  .hero-parts-scene__layout {
    width: min(96vw, 1200px);
    grid-template-columns: 1fr;
    gap: 1.25rem;
    text-align: center;
    align-items: start;
    height: auto;
    min-height: unset;
    max-height: none;
    padding: 1.25rem 1rem 1.5rem;
  }

  .hero-parts-scene__copy {
    max-width: none;
    padding-left: 0;
    padding-top: 0;
    order: 1;
  }

  .hero-parts-scene__subtitle {
    font-size: 1rem;
    line-height: 1.7;
  }

  .hero-parts-scene__title {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.12;
    margin-bottom: 0.8rem;
  }

  .hero-parts-scene__desc {
    max-width: 42ch;
    margin: 0 auto 1.4rem;
    font-size: 1rem;
    line-height: 1.85;
  }

  .hero-parts-scene__stage {
    order: 2;
    width: min(100%, 420px);
    max-width: 420px;
    margin-right: auto;
    margin-left: auto;
    margin-top: -28px;
    transform: none;
  }
}

/* 767px and below */
@media (max-width: 767px) {
  .hero-parts-scene {
    padding: 14px 0;
  }

  .hero-parts-scene__layout {
    width: min(94vw, 100%);
    gap: 1rem;
    padding: 1rem 0.85rem 1.25rem;
  }

  .hero-parts-scene__subtitle {
    font-size: 0.95rem;
  }

  .hero-parts-scene__title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    line-height: 1.15;
  }

  .hero-parts-scene__desc {
    font-size: 0.98rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
  }

  .hero-parts-scene__stage {
    width: min(100%, 360px);
    max-width: 360px;
    margin-top: -18px;
    transform: none;
  }
}

/* 575px and below */
@media (max-width: 575px) {
  .hero-parts-scene__layout {
    width: min(92vw, 100%);
    padding: 0.9rem 0.75rem 1rem;
  }

  .hero-parts-scene__subtitle {
    font-size: 0.92rem;
    margin-bottom: 0.6rem;
  }

  .hero-parts-scene__title {
    font-size: clamp(1.55rem, 7vw, 2rem);
    line-height: 1.18;
    margin-bottom: 0.7rem;
  }

  .hero-parts-scene__desc {
    font-size: 0.95rem;
    line-height: 1.75;
    max-width: 34ch;
  }

  .hero-parts-scene__stage {
    width: min(100%, 320px);
    max-width: 320px;
    margin-top: -10px;
  }
}

/* 420px and below */
@media (max-width: 420px) {
  .hero-parts-scene__layout {
    padding: 0.75rem 0.65rem 0.9rem;
  }

  .hero-parts-scene__title {
    font-size: 1.45rem;
    line-height: 1.2;
  }

  .hero-parts-scene__desc {
    font-size: 0.92rem;
  }

  .hero-parts-scene__stage {
    width: min(100%, 280px);
    max-width: 280px;
    margin-top: -4px;
  }
}



/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .hero-part,
  .hero-parts-scene__grid,
  .hero-parts-scene__veil,
  .hero-parts-scene__particles,
  .hero-parts-scene__orbit {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}






/* home 3 search filter css - Modernized */
.search__filter--inner {
  /* زمینه سفید تمیز اما با یک گرادینت بسیار ملایمِ متمایل به آبیِ سرد */
  background: #ffffff;
  padding: 4rem 3rem;
  border-radius: 24px;
  
  /* ایجاد یک حاشیه دوبل: یک خط بسیار نازک به همراه درخشش */
  border: 1px solid rgba(15, 23, 42, 0.1);
  
  /* سایه حرفه‌ای با دو لایه برای ایجاد حس سنگینی و عمق */
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.15), 
              0 1px 4px rgba(15, 23, 42, 0.05);
  
  position: relative;
  overflow: hidden; /* برای کنترل افکت‌های داخلی */
}

/* اضافه کردن یک خط رنگی در بالا برای هویت برند (Secondary Color) */
.search__filter--inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color), #60a5fa);
}

/* استایل‌دهی به اینپوت‌ها برای هماهنگی با این باکس */
.search__filter--inner input {
  border: 1px solid var(--border-color) !important;
  border-radius: 12px !important;
  background: #f8fafc !important;
  transition: all 0.3s ease;
}

.search__filter--inner input:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

/* استایل دکمه جستجو */
.search__filter--inner button {
  background: var(--primary-color) !important;
  border-radius: 12px !important;
  font-weight: 600;
  transition: transform 0.2s, background 0.3s;
}

.search__filter--inner button:hover {
  background: var(--secondary-color) !important;
  transform: translateY(-2px);
}

/* افکت Glow در گوشه پایین سمت چپ */
.search__filter--inner::after {
  content: "";
  position: absolute;
  bottom: -80px; /* موقعیت پایین */
  left: -80px;   /* موقعیت چپ */
  width: 250px;  /* ابعاد نور */
  height: 250px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  pointer-events: none; /* مهم: این یعنی نور مانع کلیک روی دکمه‌ها نمی‌شود */
  z-index: 0;
}

/* برای اینکه اینپوت‌ها و دکمه‌ها روی نور قرار بگیرند */
.search__filter--inner form {
  position: relative;
  z-index: 1;
}


@media only screen and (min-width: 576px) {
  .search__filter--inner {
    padding: 3rem 2.5rem;
  }
}

@media only screen and (min-width: 1200px) {
  .search__filter--inner {
    padding: 3.3rem;
  }
}

.search__filter--form__style2 {
  gap: 2rem;
}

@media only screen and (min-width: 1200px) {
  .search__filter--form__style2 {
    gap: 3rem;
  }
}

@media only screen and (max-width: 991px) {
  .search__filter--form__style2 {
    flex-wrap: wrap;
  }
}

.search__filter--width {
  width: 100%;
  margin-bottom: 0;
}

@media only screen and (min-width: 400px) {
  .search__filter--width {
    width: 46%;
  }
}

@media only screen and (min-width: 576px) {
  .search__filter--width {
    width: 30.2%;
  }
}

@media only screen and (min-width: 768px) {
  .search__filter--width {
    width: 22.8%;
  }
}

@media only screen and (min-width: 992px) {
  .search__filter--width {
    width: 16.66%;
  }
}






/* ============================
   HOME SEARCH (INLINE VARIANT)
   ============================ */

.parts-search.home-search {
  width: 100%;
  max-width: 760px;
  margin: 30px auto;
  padding: 20px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

/* Grid layout */
.home-search .parts-search-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

/* Unified styling for input + select */
.home-search select,
.home-search .part-name-input {
  height: 46px;
  line-height: 46px;        /* مهم برای هماهنگی ارتفاع */
  width: 100%;
  padding: 0 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
  box-sizing: border-box;
  appearance: none;
  display: block;           /* مهم */
}

.home-search .part-name-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(253, 66, 85, 0.18);
}

/* Wrapper: باید هم‌ارتفاع input باشد */
.home-search .predictive-input-wrapper {
  position: relative;
  width: 100%;
  height: auto;             /* مهم */
  display: block;           /* مهم */
  box-sizing: border-box;
  grid-column: 2 / 3;
}

/* Suggestions */
.home-search .parts-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;   /* باعث هم‌عرض شدن با اینپوت */
  background: white;
  border-radius: 10px;
  border: 1px solid #ddd;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  max-height: 260px;
  overflow-y: auto;
  z-index: 20;
}

/* Submit button */
.home-search .search-button {
  height: 46px;
  border-radius: 10px;
  background: var(--primary-color);
  color: #fff;
  font-weight: 600;
  grid-column: 1 / -1;
}

.home-search .search-button:hover {
  background: var(--secondary-color);
}

/* Responsive */
@media (max-width: 768px) {
  .home-search .parts-search-form {
    grid-template-columns: 1fr;
  }
  .home-search .predictive-input-wrapper {
    grid-column: 1 / -1;
  }
}
.parts-suggest-link {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.parts-suggest-thumb {
  width: 45px;
  height: 45px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  border: 1px solid #eee;
}

.parts-suggest-info {
  flex-grow: 1;
  min-width: 0;
}

.parts-suggest-title {
  font-weight: 600;
  font-size: 14px;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.parts-suggest-sub {
  font-size: 11px;
  color: #6b7280;
  margin-top: 2px;
}




/* 
    8. Blog css
*/
.blog__section--inner {
  padding: 2px;
}

.view__all--link {
  font-size: 1.4rem;
  text-transform: uppercase;
  font-weight: 700;
  position: relative;
  line-height: 2rem;
}

@media only screen and (min-width: 576px) {
  .view__all--link {
    font-size: 1.6rem;
  }
}

.view__all--link::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 2px;
  background: var(--secondary-color);
  bottom: -13px;
  left: 0;
}

.blog__card {
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  transition: var(--transition);
  position: relative;
}

@media only screen and (min-width: 768px) {
  .blog__card {
    padding: 2rem;
  }
}

.blog__card::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background: linear-gradient(to top, #FCEEF2, #F5F5FE);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: -1;
}

.blog__card:hover {
  border-color: var(--secondary-color);
}

.blog__card:hover::before {
  opacity: 1;
  visibility: visible;
}

.blog__card:hover .blog__card--social {
  opacity: 1;
  visibility: visible;
}

.blog__card:hover .blog__card--social .social__share--icon {
  transform: scale(1);
}

.blog__card:hover .blog__card--thumbnail__img {
  transform: scale(1.06) rotate(2deg);
}

.blog__card--thumbnail {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
}

.blog__card--thumbnail__link {
  display: block;
  width: 100%;
}

.blog__card--thumbnail__img {
  width: 100%;
  
}

.blog__card--meta {
  font-size: 1.2rem;
  line-height: 2rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--foreground-sub-color);
  font-family: var(--inter-fonts);
  margin-bottom: 0.7rem;
}

.blog__card--meta__date {
  width: 5rem;
  height: 4.5rem;
  font-size: 1.3rem;
  font-weight: 600;
  background: var(--secondary-color);
  border-radius: 5px;
  color: var(--text-white-color);
  line-height: 1.7rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 12px;
  left: 12px;
}

@media only screen and (min-width: 768px) {
  .blog__card--meta__date {
    width: 6rem;
    height: 5rem;
    font-size: 1.5rem;
    line-height: 1.8rem;
  }
}

.blog__card--desc {
  color: var(--foreground-sub-color);
  margin-bottom: 1.2rem;
}

.blog__card--title {
  font-size: 1.7rem;
  line-height: 2.5rem;
  margin-bottom: 1rem;
}

@media only screen and (min-width: 480px) {
  .blog__card--title {
    font-size: 1.8rem;
    line-height: 2.6rem;
  }
}

@media only screen and (min-width: 1366px) {
  .blog__card--title {
    font-size: 2rem;
    line-height: 2.8rem;
    margin-bottom: 1.1rem;
  }
}

.blog__card--footer {
  gap: 2rem;
}

.blog__card--content {
  padding: 1.5rem 0 0;
}

.blog__card--btn__link {
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--inter-fonts);
}

.blog__card--btn__link svg {
  margin-left: 0.3rem;
  transform: scaleX(-1);
}


.blog__card--social {
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.blog__card--social .social__share--icon {
  transform: scale(0);
  transition: 0.5s;
}






