/* novin-home — هدر دو ردیف + موج اسلایدر + محصولات صفحه اول */

/* ===================== HEADER ===================== */
/* ردیف اول: تلفن و شبکه‌ها — روشن */
.site-top {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

.top-bar {
  background: #fff;
  border-bottom: 1px solid #e8ecf0;
}

.top-bar-phones a {
  color: var(--ink, #333);
  font-weight: 600;
}

.top-bar-phones a i {
  color: var(--blue-dark, #000032);
}

.top-bar-phones a:hover {
  color: var(--blue, #008EDA);
}

.top-bar-social a {
  color: var(--ink-soft, #666);
}

.top-bar-social a:hover {
  color: var(--blue, #008EDA);
  background: var(--blue-pale, #E8F4FC);
}

/* ردیف دوم: منو و جستجو — سرمه‌ای */
.site-header {
  background: var(--blue-dark, #000032);
  backdrop-filter: none;
  border-bottom: 4px solid #17355C;
}

.desktop-nav .nav-link {
  color: rgba(255, 255, 255, .95);
}

.desktop-nav .nav-link:hover,
.desktop-nav .nav-link:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, .1);
}

.submenu-caret {
  color: rgba(255, 255, 255, .72);
}

.nav-toggle span {
  background: #fff;
}

.header-search__form {
  background: rgba(255, 255, 255, .14);
  border-color: transparent;
}

.header-search__form:focus-within {
  background: rgba(255, 255, 255, .2);
  border-color: rgba(255, 255, 255, .28);
  box-shadow: 0 0 0 3px rgba(0, 142, 218, .25);
}

.header-search__icon {
  color: rgba(255, 255, 255, .72);
}

.header-search__input {
  color: #fff;
}

.header-search__input::placeholder {
  color: rgba(255, 255, 255, .58);
}

.header-search-trigger {
  color: #fff;
  background: rgba(255, 255, 255, .1);
}

.header-search-trigger:hover,
.header-search-trigger:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, .18);
}

.brand-text strong {
  color: #fff;
}

.brand-text em {
  color: rgba(255, 255, 255, .72);
}

body.is-scrolled .site-top {
  box-shadow: 0 4px 20px rgba(0, 0, 0, .12);
}

/* ===================== HERO WAVE ===================== */
.hero-banner {
  overflow: visible;
  margin-bottom: 0;
  border-bottom: none;
  background: transparent;
}

.hero-banner__slider {
  position: relative;
  z-index: 1;
  background: transparent;
}

.hero-banner__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  z-index: 3;
  line-height: 0;
  pointer-events: none;
}

.hero-banner__wave svg {
  display: block;
  width: 100%;
  height: clamp(52px, 7.5vw, 96px);
}

.hero-banner__dots {
  z-index: 4;
}

.hero-banner__dot {
  background: rgba(255, 255, 255, .45);
}

.hero-banner__dot.is-active {
  background: #fff;
}

/* ===================== محصولات صفحه اول ===================== */
.home-featured-products {
  padding-block: 40px 48px;
  margin-top: -2px;
  background:
    linear-gradient(180deg, #fff 0%, #fff 88%, #f6f8fb 100%);
}

.home-featured-products__head {
  text-align: center;
  padding-bottom: 24px;
  margin-bottom: 4px;
}

.home-featured-products__head h2 {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.38rem);
  font-weight: 800;
  color: var(--blue-dark, #000032);
}

.home-featured-products__head h2 span {
  display: inline-block;
  padding-bottom: 10px;
  border-bottom: 4px solid var(--blue-dark, #000032);
}

.home-featured-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-featured-swiper {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding-block: 6px 28px;
}

.home-featured-swiper .swiper-slide {
  height: auto;
  display: flex;
}

.home-featured-nav {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--blue, #008EDA);
  background: #fff;
  color: var(--blue, #008EDA);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(0, 142, 218, .12);
}

.home-featured-nav:hover {
  background: var(--blue, #008EDA);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 142, 218, .28);
}

.home-featured-nav.swiper-button-disabled {
  opacity: .35;
  pointer-events: none;
}

.home-featured-pagination {
  bottom: 0 !important;
}

.home-featured-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #c5d4e0;
  opacity: 1;
  transition: transform .2s, background .2s;
}

.home-featured-pagination .swiper-pagination-bullet-active {
  background: var(--blue, #008EDA);
  transform: scale(1.2);
}

.home-product-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border: 1px solid #e3e8ee;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 10px rgba(0, 0, 50, .05);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.home-product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 142, 218, .55);
  box-shadow: 0 14px 32px rgba(0, 142, 218, .18);
}

.home-product-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  height: 210px;
  padding: 16px;
  background: linear-gradient(180deg, #fafcfd 0%, #fff 100%);
}

.home-product-card__media img {
  max-width: 94%;
  max-height: 178px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform .3s ease;
}

.home-product-card:hover .home-product-card__media img {
  transform: scale(1.03);
}

.home-product-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--blue, #008EDA);
  font-size: 2.4rem;
  opacity: .35;
}

.home-product-card__body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 12px 16px;
  border-top: 1px solid #eef2f6;
  background: #fff;
}

.home-product-card__title {
  margin: 0;
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.65;
  text-align: center;
  color: var(--blue, #008EDA);
}

@media (min-width: 992px) {
  .home-featured-nav {
    display: none;
  }

  .home-featured-swiper {
    padding-bottom: 8px;
  }

  .home-featured-pagination {
    display: none;
  }
}

@media (max-width: 991px) {
  .home-featured-shell {
    gap: 6px;
  }

  .home-featured-nav {
    width: 36px;
    height: 36px;
  }

  .home-product-card__media {
    min-height: 170px;
    height: 180px;
  }

  .home-product-card__title {
    font-size: .82rem;
  }
}

@media (max-width: 520px) {
  .home-featured-products {
    padding-block: 32px 40px;
  }

  .home-product-card__media {
    min-height: 200px;
    height: 210px;
  }
}
