@font-face {
  font-family: "IRANSansWeb";
  src: url("../fonts/IRANSansWeb(FaNum).eot");
  src: url("../fonts/IRANSansWeb(FaNum).eot?#iefix") format("embedded-opentype"),
    url("../fonts/IRANSansWeb(FaNum).ttf") format("truetype"),
    url("../fonts/IRANSansWeb(FaNum).woff") format("woff"),
    url("../fonts/IRANSansWeb(FaNum).woff2") format("woff2");
  font-style: normal;
  font-weight: normal;
}
:root {
  --color-primary: #518432;
  --color-light: #f8f8f8;
  --color-dark: #fafafa;
  --bs-gray: #6c757d;
  --bs-gray-dark: #343a40;
  --bs-gray-100: #f8f9fa;
  --bs-gray-200: #e9ecef;
  --bs-gray-300: #dee2e6;
  --bs-gray-400: #ced4da;
  --bs-gray-500: #adb5bd;
  --bs-gray-600: #6c757d;
}
html {
  scroll-behavior: smooth;
}

body {
  direction: rtl;
  color: #333;
  min-height: 1500px;
}

* {
  box-sizing: border-box;
  font-family: IRANSansWeb;
}
ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
a {
  color: #000;
  text-decoration: none;
}
img {
  max-width: 100%;
  max-height: 100%;
}
.mt-100{
  margin-top: 100px;
}
.mt-170{
  margin-top: 170px;
}
.box-shadow {
  box-shadow: 0 0 12px -2px #ddd;
}
.background-icon{
  display: inline-block;
  background: url('../images/text-pattern.jpg') center;
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}
.background-box{
  display: inline-block;
  background: url('../images/text-pattern.jpg') center center no-repeat;
}

.container {
  width: 75%;
  margin: 0 auto;
}

@media screen and (max-width: 1200px) {
  .container {
    width: 80%;
  }
}
@media screen and (max-width: 992px) {
  .container {
    width: 90%;
  }
}
@media screen and (max-width: 768px) {
  .container {
    width: 95%;
  }
}
@media screen and (max-width: 576px) {
  .container {
    width: 100%;
  }
}

/* End Basic CSS */

.navbar {
  height: 70px;
  background-color: var(--color-light);
  box-shadow: 0 7px 10px -10px #ddd;
  position:absolute;
  z-index: 1;
  width: 100%;
}
.sticky {
  animation: GoDown 0.5s ease-in-out forwards;
}

@keyframes GoDown {
  0% {
    top: -70px;
  }

  100% {
    box-shadow: 0 2px 10px -2px #ddd;
    position: fixed;
    top: 0;
    left: 0;
  }
}
/* Start Design Navbar */
.navbar-content {
  display: grid;
  grid-template-columns: 1fr 4fr 1fr;
  align-items: center;
  height: 70px;
}
.nav-items {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}
.nav-items .nav-item {
  padding:25px 15px;
}
.nav-items .nav-link {
  font-weight: 600;
}
.navbar-login-cart-search {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-search {
  display: flex;
}
.navbar-cart{
  cursor: pointer;
}
.navbar-search {
  margin-right: 5px;
}
.login-register {
  position: relative;
  width: 130px;
  height: 45px;
}
#navbar-login,
#navbar-register {
  position: absolute;
  top: 0;
  width: 65px;
  text-align: center;
  padding: 5px;
  line-height: 2;
  transition-duration: 0.5s;
}
#navbar-login {
  right: 5px;
  background-color: rgba(297, 197, 57, 0.4);
  border-radius: 0 15px 15px 0;
}
#navbar-login:hover {
  background-color: rgba(297, 197, 57, 0.5);
}
#navbar-register {
  left: 5px;
  background-color: #f9d25f;
  border-radius: 15px;
}
#navbar-register:hover {
  background-color: #f5c425;
}
/* Start Design Menu */
.mega-menu-products:hover .mega-submenu-products,
.mega-menu-articles:hover .mega-submenu-articles{
  visibility: visible;
  height: 350px;
}
.mega-submenu-products,
.mega-submenu-articles{
  position: absolute;
  top:70px;
  left:0;
  right: 0;
  height: 0;
  background-color: var(--color-light);
  visibility: hidden;
  overflow: hidden;
  transition:ease-in 0.7s;
  box-shadow: 0 7px 10px -10px var(--bs-gray-400);
  z-index: 1;
}
.mega-submenu-products-content{
  display: grid;
  grid-template-columns: 1fr 4fr;
  border-top:1px solid var(--bs-gray-200);
  height: 350px;
}
.mega-submenu-product-categories{
  border-left: 1px solid var(--bs-gray-200);
  border-right: 1px solid var(--bs-gray-200);
  padding-top: 10px;
}
.mega-submenu-product-categories > h4{
  margin:0 15px;
  padding: 10px;
  text-align: center;
}
.mega-submenu-product-categories-item{
  display: flex;
  align-items: center;
  transition-duration: 0.3s;
  margin:0 15px;
  border-bottom: 1px solid var(--bs-gray-200);
}
.mega-submenu-product-categories-item:last-child{
  border-bottom: none;
}

.mega-submenu-product-categories-item:hover .mega-submenu-product-categories-item-title a ,
.mega-submenu-product-categories-item.active .mega-submenu-product-categories-item-title a{
  color: var(--color-primary);
}
.mega-submenu-product-categories-item-image{
  width: 50px;
  padding: 5px;
}
.mega-submenu-product-categories-item-image img{
  height: auto;
}
.tab-content{
  display: none;
}
.tab-content.active{
  display: block;
}

.mega-submenu-products-list{
  position: relative;
  padding:20px 10px 10px;
  background-image: url('../images/Menu-Product-Categories/4.png');
  background-size: 36%;
  background-repeat: no-repeat;
  background-position: -55px 0;
}
.mega-submenu-products-list > h4{
  margin:0 20px;
}
.mega-submenu-products-items{
  display: flex;
  margin-top:10px;
}
.mega-submenu-products-items > li{
  width: 25%;
}
.mega-submenu-products-items > li > ul > li > a{
  font-weight: 500;
  padding:10px;
  display: block;
  margin-right:15px;
  font-size: 14px;
  transition-duration: 0.3s;
}.mega-submenu-products-items > li > ul > li:last-child > a{
  border-bottom: none;
}
.mega-submenu-products-items li a:hover{
  color: var(--color-primary);
}
.mega-submenu-products-all{
  position: absolute;
  bottom: 30px;
  right:230px;
  color: orange;
  font-weight: 500;
}
.mega-submenu-products-all i{
  padding-right: 5px;
  font-size: 12px;
}
.mega-submenu-articles-content{
  border-top:1px solid var(--bs-gray-200);
  height: 350px;
}

.mega-submenu-articles-items{
  display: flex;
  margin-top:10px;
}
.mega-submenu-articles-items > li{
  width: 25%;
}
.mega-submenu-articles-items > li > ul > li > a{
  font-weight: 500;
  padding:10px;
  display: block;
  margin-right:5px;
  font-size: 14px;
  transition-duration: 0.3s;
}.mega-submenu-articles-items > li > ul > li:last-child > a{
  border-bottom: none;
}
.mega-submenu-articles-items li a:hover{
  color: var(--color-primary);
}
.mega-submenu-articles-item{
  display: flex;
  align-items: center;
  margin:10px 0;
}

.mega-submenu-articles-item img{
  border:1px solid var(--bs-gray-200);
  border-radius: 7px;
  width: 50px;
  height: 50px;
  padding: 5px;
}

/* Start Design Search*/
#search-top-nav{
  height: 0;
  visibility: hidden;
  box-shadow: 0 7px 10px -10px #ddd;
  background-color: var(--color-light);
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  transition: ease-in 0.5s;
}
#search-top-nav.active{
  height: 400px;
  visibility: visible;
}
.search-top-nav-form{
  position: relative;
}
#search-top-nav .input-search{
  width: 100%;
  padding: 10px;
  border: none;
  background-color: transparent;
  border-bottom: 1px solid #ddd;
  outline: none;
}
.suggestion-list{
  max-height: 300px;
  overflow: hidden;
  /* border:1px solid #ddd; */
  border-radius: 5px;
  padding: 10px;
  border-top: none;
}
.close-search{
  position: absolute;
  top: 15px;
  left: 5px;
  cursor: pointer;
}
#collection{
  width: 0;
  height: 0;
  visibility: hidden;
}

/* Start Design Showcase */
#showcase{
  max-width: 100%;
  overflow: hidden;
  position: relative;
  height: calc(100vh - 70px);
  top:70px;
}
#slider{
  position: relative;
  right: 0;
  height: 100%;
  /* height: calc(100vh - 70px); */
}
.slide{
  /* height: calc(100vh - 70px); */
  height: 100%;
  float: right;
  position: relative;
}

.slide img{
  width: 100%;
  height: 100%;
  vertical-align: middle;
}

.next-slide,
.prev-slide{
  position: absolute;
  top:45%;
  width: 50px;
  height: 50px;
  background-color: #fff;
  border: none;
  box-shadow: 0 0 5px 2px #ddd;
  color: #000;
  padding-top: 7px;
  cursor: pointer;
  visibility: hidden;
  transition-duration: 0.7s;
}
.next-slide{
  right:7%;
}
.prev-slide{
  left: 7%;
}
#showcase:hover .next-slide{
  visibility: visible;
  right: 3%;
}
#showcase:hover .prev-slide{
  visibility: visible;
  left: 3%;
}

.slide-content{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 13%;
}

.slide-content h2{
  font-size: 60px;
  color: var(--color-primary);
  margin: 0 0 20px 0;
}
.slide-content h3{
  font-size: 30px;
  margin: 0 0 20px 0;
}
/* Start Design Primary Button */
.primary-btn{
  display: inline-block;
  width: 180px;
  border: 2px solid #000;
  padding: 12px 30px;
  border-radius: 5px;
  background-color: transparent;
  transition-duration: 0.5s;
  box-shadow: 0 0 0 0 transparent inset;
}

.primary-btn:hover{
  box-shadow: 0 50px 0 0 var(--color-primary) inset;
  color: #fff;
}

/* Start Design Shopping Cart */
#shopping-cart{
  position: fixed;
  top:0;
  left:0;
  height: 100vh;
  width: 0;
  opacity: 0;
  background-color: #fff;
  padding-top: 50px;
  transition-duration: 0.5s;
  z-index: 1;
}
.shopping-cart-null{
  text-align: center;
}
.shopping-cart-null img{
  width: 120px;
}
#close-shopping-cart{
  position: absolute;
  top:20px;
  right:20px;
  cursor: pointer;
}
.visible-cart{
  opacity: 1 !important;
  width: 300px !important;
}

/* Start Design banner */
.banner-items {
  display: flex;
  gap: 20px;
}
.banner-item {
  position: relative;
}
.banner-item:hover {
  animation-name: wobble-horizontal;
  animation-duration: 0.7s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: 1;
}
.banner-item .banner-content {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 50px;
}
@keyframes wobble-horizontal {
  30% {
    transform: translateX(2px);
  }
  70% {
    transform: translateX(-2px);
  }
  100% {
    transform: translateX(0);
  }
}

/* Start Design Why Choose Us */
#why-us{
  display: flex;
  background-color: var(--color-light);
}
.why-us-image{
  width: 40%;
}
.why-us-image img{
  width: 100%;
  height: 100%;
}
.why-us-content{
  width: 60%;
  padding: 30px;
}
.why-us-content h2{
  border-bottom: 3px solid var(--color-primary);
  display: inline-block;
  padding-bottom: 10px;
}
.why-us-content p{
  margin-bottom: 40px;
}
.why-us-content .features{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.why-us-content .features .feature-item{
  width: 48%;
  display: flex;
  background-color: #fff;
  padding: 15px;
  margin-bottom: 40px;
  border-radius: 5px;
}
.feature-item-icon{
  padding-top: 10px;
  text-align: center;
}
.feature-item-text{
  padding: 0 15px;
}
.feature-item-text p{
  line-height: 1.7;
}

/* Start Design Latest articles */
#latest-articles h2{
  text-align: center;
}
#latest-articles .posts{
  display: flex;
  gap: 50px;
}
#latest-articles .posts .post{
  border: 1px solid #ddd;
  padding: 20px;
  width: 33.66%;
}
.post .post-image img{
  border-radius: 5px;
  transition-duration: 0.7s;
}
.post .post-image img:hover{
  transform: scale(1.02);
}
.post-mata{
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}
.post-mata i{
  color: var(--color-primary);
}
.view-comments span{
  margin-left: 10px;
}
#latest-articles .posts .post a:hover{
  color: var(--color-primary);
}
#latest-articles .posts .post p{
  line-height: 1.7;
  text-align: justify;
}
/* Start Design Footer */
.main-footer {
  background-image: url("../images/bg_footer.jpg");
  height: 350px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.footer-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-top: 120px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}
.socials-networks a {
  display: inline-block;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background-color: #fff;
  text-align: center;
  position: relative;
}
.socials-networks a i {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  margin: auto;
  color: #000;
  background: url("../images/text-pattern.jpg") center;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.main-footer p {
  text-align: center;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}
.scroll-to-top {
  position: fixed;
  display: inline-block;
  width: 50px;
  height: 50px;
  right: 30px;
  bottom: 30px;
  background: url("../images/text-pattern.jpg") center center no-repeat;
  text-align: center;
}
.scroll-to-top i {
  display: inline-block;
  width: 50px;
  height: 50px;
  padding-top: 17px;
  background-color: rgb(113, 166, 0, 0.6);
  color: #fff;
}