/* Homepage above-fold critical CSS. Keep small; structural only. */
@font-face {
  font-family: "IranSans";
  src: url("/web/styles/font/Farsi_numerals/webFonts/fonts/woff2/IRANSansWeb(FaNum).woff2") format("woff2"),
       url("/web/styles/font/Farsi_numerals/webFonts/fonts/woff/IRANSansWeb(FaNum).woff") format("woff");
  font-display: optional;
  font-style: normal;
  font-weight: 400;
}

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

html {
  direction: rtl;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex: 1;
  flex-direction: column;
  background-color: #f5f5f5;
  color: #333;
  font-family: IranSans, Tahoma, Arial, sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.5385;
  text-align: right;
}

body.navbar-top.sidebar-main-hidden.margin-top-1-9 {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

[v-cloak],
[hidden],
.d-none,
.modal:not(.show):not(.in) {
  display: none !important;
}

.page-content,
.content-wrapper,
#main-content {
  width: 100%;
}

.page-content {
  display: flex;
  flex-grow: 1;
}

.content-wrapper {
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: auto;
}

.container-fluid {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

.d-flex {
  display: flex !important;
}

.flex-column {
  flex-direction: column !important;
}

.align-items-center {
  align-items: center !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.w-100 {
  width: 100% !important;
}

.p-0 {
  padding: 0 !important;
}

.m-0 {
  margin: 0 !important;
}

.bg-white {
  background-color: #fff !important;
}

.navbar {
  align-items: center;
  display: flex;
  padding: 0.5rem 1rem;
  position: relative;
}

.navbar-expand-md {
  flex-flow: row nowrap;
  justify-content: flex-start;
}

.fixed-top {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
}

#topVue {
  contain: style;
  position: relative;
  z-index: 2050;
}

#navbar {
  z-index: 2060;
}

#navbar > .d-flex {
  width: 100%;
}

#navbar .width-6-rem {
  aspect-ratio: 189 / 150;
  width: 6rem !important;
  height: auto !important;
}

#navbar .search-dropdown-toggle + .dropdown-menu,
#navbar .search-dropdown-toggle ~ .dropdown-menu {
  z-index: 2070;
}

.shop-cart-price-slot {
  min-height: 1.25rem;
}

.home-hero-shell {
  background: #f4f6f8;
  padding: 18px 15px 12px;
}

.home-hero-grid {
  direction: ltr;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.65fr) minmax(360px, 0.95fr);
  margin: 0 auto;
  max-width: 1480px;
}

.home-hero-slider,
.home-featured-stack {
  direction: rtl;
  min-width: 0;
}

.home-hero-slider {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Reserve hero media before owl CSS/JS; only first slide visible to avoid CLS. */
.home-hero-slider .owl-carousel,
.home-hero-slider .owl-stage-outer,
.home-hero-slider .owl-stage,
.home-hero-slider .owl-item:first-child {
  width: 100%;
}

.home-hero-slider .owl-item:not(:first-child) {
  display: none !important;
}

.home-hero-slider .owl-carousel.owl-drag .owl-item {
  display: block !important;
}

.home-hero-frame {
  aspect-ratio: 16 / 7;
  background: #f8f9fb;
  border-radius: 14px;
  display: block;
  min-height: 360px;
  overflow: hidden;
  width: 100%;
}

.home-hero-slider img {
  aspect-ratio: 16 / 7;
  background: #f8f9fb;
  display: block;
  height: auto;
  min-height: 360px;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.home-benefits-strip {
  align-items: stretch;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 135px;
  overflow: hidden;
}

.home-featured-stack {
  display: grid;
  gap: 14px;
}

.home-feature-box {
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 16px;
  min-height: 245px;
  overflow: hidden;
  padding: 16px;
}

.home-banner-slider {
  margin: 0 auto;
  max-width: 1320px;
  padding: 16px 24px 20px;
}

.home-banner-slider .slider-style {
  aspect-ratio: 3 / 1;
  background: #f8f9fb;
  border-radius: 14px !important;
  display: block;
  height: auto !important;
  min-height: 280px;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

#campaignsContainer,
#groups1,
#groups2,
#groups3,
#groups4,
#groups5,
#groups6 {
  min-height: 0;
}

@media (max-width: 991.98px) {
  body.sidebar-main-hidden .sidebar.sidebar-main {
    display: none !important;
  }
}

@media (max-width: 1199.98px) {
  .home-hero-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-slider img,
  .home-hero-frame {
    min-height: 300px;
  }

  .home-banner-slider .slider-style {
    min-height: 240px;
  }
}

@media (min-width: 768px) {
  .d-md-flex {
    display: flex !important;
  }

  .align-items-md-center {
    align-items: center !important;
  }
}

@media (min-width: 992px) {
  #topVue {
    height: 11.4rem !important;
    min-height: 11.4rem !important;
    max-height: 11.4rem !important;
  }

  #navbar > .d-flex {
    height: 6.6rem !important;
    min-height: 6.6rem !important;
    max-height: 6.6rem !important;
  }

  #topVue .site-secondary-navbar {
    margin-top: 6.6rem !important;
    height: 4.8rem !important;
    min-height: 4.8rem !important;
    max-height: 4.8rem !important;
    box-sizing: border-box;
  }

  .d-lg-block {
    display: block !important;
  }

  .d-lg-flex {
    display: flex !important;
  }
}

@media (max-width: 767.98px) {
  .home-hero-shell {
    padding: 10px 0 0;
  }

  .home-hero-slider {
    gap: 10px;
    padding: 0 8px;
  }

  .home-hero-slider img,
  .home-hero-frame {
    aspect-ratio: 16 / 7;
    min-height: 0;
    max-height: 200px;
  }

  .home-featured-stack {
    padding: 0 8px 10px;
  }

  .home-feature-box {
    min-height: 0;
    padding: 12px;
  }

  .home-banner-slider {
    padding: 8px 12px 12px;
  }

  .home-banner-slider .slider-style {
    aspect-ratio: 16 / 7;
    min-height: 0;
    max-height: 180px;
  }
}
