

* {
  box-sizing: border-box;
}
@font-face {
  font-family: 'Yekan';
	src:url( 'fonts/yekan/Yekan.eot' );
	src: url( 'fonts/yekan/Yekan.eot?#iefix' ) format( 'embedded-opentype' ),
		url( 'fonts/yekan/Yekan.woff2' ) format( 'woff2' ),
		url( 'fonts/yekan/Yekan.woff' ) format( 'woff' ),
		url( 'fonts/yekan/Yekan.ttf' ) format( 'truetype' ),
		url( 'fonts/yekan/Yekan.svg#Yekan' ) format( 'svg' );
	font-weight: normal;
	font-style: normal;
}
body {
    direction: rtl;
  font-family: Yekan,Arial, Helvetica, sans-serif; 
  background-color: whitesmoke;
  color: #6f421e;
 
  margin: 0px;
  
}

/* Style the header */
header {
 
  background-color: red;
  


  margin: 0px;
  overflow: auto;
  
}

.menu{
  width: 100%;
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #27ae60;
  position: -webkit-sticky; /* Safari */
  position: sticky;
  top: 0;
  z-index: 2;
}

/* Create two columns/boxes that floats next to each other */
nav {
 
  width: 100%;
  /* height: 300px; only for demonstration, should be removed */
  
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #27ae60;
  position: -webkit-sticky; /* Safari */
  position: sticky;
  top: 0;
 

  
}

/* Style the list inside the menu */
 nav ul {
 
  padding: 0;
  margin: 0;



}

nav  ul li{
display: inline;
float: right;

}
li a {
  display: block;
  color: white;
  text-align: center;
  /*padding: 14px 16px;*/
  padding: 10px ;
  text-decoration: none;
}
li a:hover {
  background-color: silver;
}

  

/* Clear floats after the columns */
section::after {
  content: "";
  display: table;
  clear: both;
}

/* Style the footer */
footer {
  background-color: #cccccc;
  padding: 10px;
  text-align: center;
  color: #6f421e;
}



.grid-container {

    direction: ltr;
  display: grid;
  grid-template-columns: auto auto auto auto auto auto auto auto ;
  gap: 10px;
  background-color:azure;
  padding:10px;
   overflow: hidden;
}

.grid-container > div {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid black v ;
  
  text-align: center;
  font-size: 120%;
 
}

.grid-container-nav{
  direction: ltr;
  display: grid;
  grid-template-columns: auto auto;
  gap: 10px;
  background-color: #27ae60;
  padding:0px;
  margin: 0px;
   overflow: hidden;
}
.grid-container-nav > div {
  /* background-color: rgba(255, 255, 255, 0.02); */
  /* border: 1px solid black v ; */
  /* text-align: center; */
  font-size: 160%;
  color: whitesmoke;
 
}
.grid-container-nav-mobile{
  direction: ltr;
  display: grid;
  grid-template-columns: auto auto;
  gap:10px;
  background-color: #27ae60;
  padding:0px;
  margin: 0px;
   overflow: hidden;
  
}
.grid-container-nav-mobile > div {
  font-size: 140%;
 color: whitesmoke;
}

.itemsearch {
  grid-column: 6 / 8;
}
/*
.logo{
background-image: url(img/logo1.png);
background-repeat: no-repeat;
height:100% ;
}
*/

#form {
  background-color:#218c74;
  width: 90%;
  height: 70%;
  border-radius: 5px;
  display: flex;
  flex-direction: row;
  float: right;
  align-items: center;

}
#form input {
  all: unset;
  font: 16px system-ui;
  color: #fff;
  height: 100%;
  width: 100%;
  padding: 6px 10px ;
}
::placeholder {
  color: #fff;
  opacity: 0.7;
}

#form button {
  all: unset;
  cursor: pointer;
  width: 37px;
  height: 37px;
  
}


svg {
  color: white;
  fill: currentColor;
  width: 100%;
  height: 100%;
  padding: 5px;
}


#contactus {

  grid-column: 3/6;
  /* background-color: #218c74; */
  background-color: whitesmoke;
  color:#218c74; 
  border: 1px solid ;
  border-radius: 5px;
  padding: 7px 5px 5px 5px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  margin: 0px ;
  /*margin: 4px 2px;*/
  cursor: pointer;
  box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.2);
  font-size: 0.7em; 
  height: 77%;

}

#contactus:hover{
  box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.3);


}
.contactus{

margin-top: 10px;

}
@media screen and (max-width: 670px) {

  .contactus{

  }
  #contactus {
    height: 62%;
    font-size: 0.5em;

  }
}



.button {
  background-color: #218c74;
  border: none;
  border-radius: 5px;
  color: white;
  padding: 2px 10px 2px 10px;
  text-align: center;
  font-family: Yekan,Arial, Helvetica, sans-serif; 
  text-decoration: none;
  display: inline-block;
  height: 70%;
  
  margin-top: 10px;
  /*margin: 4px 2px;*/
  cursor: pointer;
  /* font-size: 17px; */
  font-size: 0.8em;
  

  box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.2);

}
.button:hover{


  box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.3);

}

.overlay{
  display: none;
  height: 100%;
  width: 50%;
  position: fixed;
  z-index: 3;
  top: 0;
  left: 0;
  background-color: #111;
  opacity: 0.9;
  overflow-x: hidden;
  padding-top: 60px;
}




.sidenav {
  display: none;
  height: 100vh;
  /*width: 250px;*/
  width: 50%;
  position: fixed;
  z-index: 3;
  top: 0;
  right: 0;
  background-color: azure ;
  overflow-x: hidden;
  padding-top: 60px;
  
}

.sidenav a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: #818181;
  display: block;
  direction: rtl;
}

.sidenav a:hover {
  color: #f1f1f1;
}

.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;

}
.bgmenu{
background-image: url(../img/element/bgmenu5.png);

    width: 100%; /* پهنای کامل برای تطبیق با اندازه صفحه */
    height: 40vh; /* ارتفاع 50 درصد از ارتفاع صفحه */
  
    background-size: contain; /* تصویر درون div کاملاً فیت می‌شود */
    background-position: center; /* مرکز تصویر */
    background-repeat: no-repeat;



 /* background-size: cover; /* تصویر کاملاً فیت می‌شود */
    /* background-position: center; /*تصویر در وسط قرار می‌گیرد */
    /* background-repeat: no-repeat; /*از تکرار جلوگیری می‌کند */
  
 }

div.scroll-container {
  background-color:#ecf0f1 ;
  overflow: auto;
  white-space: nowrap;
 padding-top: 10px;
 padding-left: 12px;
 
}

div.scroll-container img {
  padding-right: 20px;
  
  width: 100px;
  
 
}

@media screen and (max-height: 450px) {
  .sidenav {padding-top: 15px;}
  .sidenav a {font-size: 18px;}
}




div.mobilehide{

}


div.mobileshow, .mobileshow {
content-visibility: hidden;


}

@media screen and (max-width: 670px) {


  div.mobilehide , .mobilehide{

/*display: none;*/
content-visibility: hidden;
  }

  div.mobileshow, .mobileshow{
content-visibility: visible;
 }


  
}


/* Slideshow container */
.slideshow-container {
  /*max-width: 1000px;*/
  position: relative;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
  display: none;
}
.mySlidesmobile {
  display: none;
}


/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}
.prev{
 right: 0;
}

/* Position the "next button" to the right */
.next { 
  left: 0;
  
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height:10px;
  width: 10px;
  margin: 0px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}
  







/*---------- Cart Item -------------------- */
.cart-item {
  direction: ltr;
  display: grid;
  align-items: center;
  grid-template-columns: auto 1fr auto;
  grid-column-gap: 1.5rem;
  margin: 1.5rem 0;
}
.cart-item img {
  width: 95px;
  height: 95px;
}

.cart-item-sumary img {
  width: 50px;
  height: 50px;
}
.cart-item h4 {
  font-size: 0.80rem;
  text-transform: capitalize;
  letter-spacing: var(--mainSpacing);
}
.cart-item h5 {
  margin: 0.4rem 0;
  letter-spacing: var(--mainSpacing);
}
.item-amount {
  text-align: center;
  font-size: 25px;
}
.item-amount-sumary{
  text-align: center;
  font-size: 15px;
}
.remove-item {
  color: grey;
  cursor: pointer;
}
.fa-chevron-up,
.fa-chevron-down {
 
  /* color: var(--primaryColor); */
  cursor: pointer;
  font-size:20px;
   text-align: center;
   padding: 0;
   margin: 0;
 
   border-radius: 50%;
   display: inline-block;
   align-content: center;
   width: 40px;
   height: 40px;

}
.fa-chevron-up{
  background-color:rgba(72, 255, 40, 0.3);
  color: green;
}
.fa-chevron-down {
  background-color:rgba(255, 0, 0, 0.3);
color: rgb(255, 255, 255);
}


.cart-total{
  margin: 5px;

}
/*---------- End of Cart Item -------------------- */


.numberOfCart{
  text-align: center;
  padding: 0;
  height: 20px;
  width: 20px;
  margin: 0;
  background-color:rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: inline-block;
font-size: x-small;
color: whitesmoke;

-webkit-animation: blinker2 0.6s infinite;
  animation: blinker 1.9s infinite;
}
.numberOfCart_mobile{
  text-align: center;
  padding: 0;
  height: 20px;
  width: 20px;
  margin: 0;
  background-color:rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: inline-block;
  font-size: x-small;
  color: whitesmoke;

  -webkit-animation: blinker2 1.9s infinite;
  animation: blinker 1.9s infinite;

}

 
 @keyframes blinker{  
  from {
    color: #ffffff;
     }
  to {
color: rgb(255, 166, 0);
     }

}
 



.cartoverlay{
  display: none;
  height: 100%;
  
  width: 65%;
  position: fixed;
  z-index: 3;
  top: 0;
  right: 0;
  background-color: #111;
  opacity: 0.8;
  overflow-x: hidden;
  padding-top: 60px;


}

.cart-menu {
  display: none;
  height: 100%;
  /* width: 600px; */
  width: 35%;
  position: fixed;
  z-index: 2;
  top: 0;
  left: 0;
  background-color:azure ;
  overflow-x: hidden;
  padding-top: 60px;
  
}
@media screen and (max-width: 670px) {

  .cartoverlay{
    width: 20%;
  }

.cart-menu {

  width: 80%;
}


}

.emptyshoppingcart{

background-image: url(../img/element/emptyshoppingcart6.jpg);

    width: 100%; /* پهنای کامل برای تطبیق با اندازه صفحه */
    height: 50vh; /* ارتفاع 50 درصد از ارتفاع صفحه */
  
    background-size: contain; /* تصویر درون div کاملاً فیت می‌شود */
    background-position: center; /* مرکز تصویر */
    background-repeat: no-repeat;



 /* background-size: cover; /* تصویر کاملاً فیت می‌شود */
    /* background-position: center; /*تصویر در وسط قرار می‌گیرد */
    /* background-repeat: no-repeat; /*از تکرار جلوگیری می‌کند */
}



 



.closebtn {
  text-decoration: none;
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  /* margin-left: 50px; */
  cursor: pointer;

}

.btn {
  font-family: Yekan,Arial, Helvetica, sans-serif; 
  border: none;
  color: white;
  padding: 7px 14px;
  margin: 0px;
  font-size: 14px;
  cursor: pointer;
  
}
.btn.success{
width: 100%;
height: 55px;
}
.btn.danger{
  
}
.success {background-color: #04AA6D;} /* Green */
.success:hover {background-color: #46a049;}
.danger {background-color: #f44336;} /* Red */ 
.danger:hover {background: #da190b;}




.modal-overlay{

  display: none;
  height: 100%;
  width: 100%;
  position: fixed;
  z-index: 3;
  top: 0;
  right: 0;
  background-color: #111;
  opacity: 0.8;
  padding-top: 60px;
  overflow: auto; 


}


/* .modal{
  height: 100%;
  width:100%;
  top: 0;
  left: 0;
  z-index: 3;
background-color: aquamarine;
  display: none;
  position: fixed;
  justify-content: center;
  align-items: center;
opacity:1;
} */
/* .modal{

  position: fixed;
  justify-content: center;
  align-items: center;
  top: 50%;
 right:  50%;
  width: 500px;
  height: 500px;
  margin-top: -250px;
  margin-right: -250px;
  background-color: #218c74;
  border: 5px solid #da190b;
  border-radius: 5px;
z-index: 50;

} */


.modal-form{

  position: fixed;
  justify-content: center;
  align-items: center;
  top: 50%;
  right:  50%;
  width: 500px;
  height: 500px;
  margin-top: -250px;
  margin-right: -250px;
  background-color: azure;
  border: 2px solid #000000;
  border-radius: 5px;
  z-index: 4;
  display: none;

 
}
.modal-form .btn {
  font-family: Yekan,Arial, Helvetica, sans-serif; 
  border: none;
  color: black;
  padding: 7px 14px;
  margin: 0px;
  font-size: 14px;
  cursor: pointer;
  border: 2px solid #04AA6D;
  transition-duration: 0.7s;
  border-radius: 5px;

  
}
.modal-form .btn:hover{

  background-color: #04AA6D;
  color: white;
}
.modal-form .close{
border: 1px solid red;
cursor: pointer;
color: darkred;

background-color: #ecf0f1;

margin: 10px;
padding: 0px;
height: 35px;
width: 50px;

}


.error{

color: #ffffff;
/* background-color: #FFBABA; */
background-color:#fa7878;
border: 2px solid #000000;  
border-radius: 5px;
z-index: 5;
position: absolute;
top: 5%;
right: 5%;
display: none;
padding: 5px 20px 5px 20px;

}


#closediv {
  width: 35px;
  height: 35px;
  background-color: red;
  border: 1px solid black;
}

.closediv1 {
  height: 25px;
  width: 2px;
  margin-left: 12px;
  background-color: black;
  transform: rotate(45deg);
  Z-index: 1;
  display: inline;
}

.closediv2 {
  height: 25px;
  width: 2px;
  background-color: black;
  transform: rotate(90deg);
  Z-index: 2;
  display: inline-block;
}

.clos {
  /* transform:translateY(-50%); */
  z-index:1;
  width: 30px;
  height:30px;
  cursor:pointer;
background: rgb(232, 232, 232);
/* position:relative;   */
}

.clos span{
  position:absolute;
  width:80%;
  height:3px;
  left:10%;
  top:45%;
  background-color: rgb(250, 51, 51);
}

.clos:hover {
  background-color: rgb(250, 51, 51,0.5);
  .first{
  background-color: rgb(255, 255, 255);
  }
  .last{ 
  background-color: rgb(255, 255, 255);
  }
}

.first {
  transform:rotate(45deg);
}
.last {
  transform:rotate(-45deg);
}

.btninput{
  margin: 0px;
  all: unset;
  border-radius: 5px;
  border: 0.5px solid #04AA6D;
}
.btninput:focus{
  all: unset;
  border-radius: 5px;
  border: 2px solid #04AA6D ;
}




/* Add Zoom Animation */
.animate {
  -webkit-animation: animatezoom 0.6s;
  animation: animatezoom 0.6s
}

@-webkit-keyframes animatezoom {
  from {-webkit-transform: scale(0)} 
  to {-webkit-transform: scale(1)}
}
  
@keyframes animatezoom {
  from {transform: scale(0)} 
  to {transform: scale(1)}
}

@media screen and (max-width: 670px) {

.modal-form{
  top: 45%;
  right:  50%;
  width: 95%;
  height: 80%;
  margin-top: -50%;
  margin-right: -47.5%;
}
  
}

/*   *****استایل صفحه پرداخت cart.php  ****   */

.row {
  display: -ms-flexbox; /* IE10 */
  display: flex;
  -ms-flex-wrap: wrap; /* IE10 */
  flex-wrap: wrap;
  margin: 0px;
}

.col-25 {
  -ms-flex: 25%; /* IE10 */
  flex: 25%;
}

.col-50 {
  -ms-flex: 50%; /* IE10 */
  flex: 50%;
}

.col-75 {
  -ms-flex: 75%; /* IE10 */
  flex: 75%;
}

.col-25,
.col-50,
.col-75 {
  padding: 0 16px;
}

.container {
  background-color: #f2f2f2;
  padding: 5px 20px 15px 20px;
  border: 1px solid lightgrey;
  border-radius: 3px;
}

input[type=text], input[type=email], select{
  width: 100%;
  margin-bottom: 20px;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-family: Yekan;
  font-size: medium;
  text-align: center;
 
}

label {
  margin-bottom: 10px;
  display: block;
}

.icon-container {
  margin-bottom: 20px;
  padding: 7px 0;
  font-size: 24px;
}

.btn-checkout {
  background-color: #04AA6D;
  color: white;
  padding: 12px;
  margin: 10px 0;
  border: none;
  width: 100%;
  border-radius: 3px;
  cursor: pointer;
  font-family: Yekan;
  font-size: 17px;
}

.btn-checkout:hover {
  background-color: #45a049;

}

a {
  color: #2196F3;
}

hr {
  border: 1px solid lightgrey;
}

span.price {
  /* float: right;
  color: grey; */
}

/* Responsive layout - when the screen is less than 800px wide, make the two columns stack on top of each other instead of next to each other (also change the direction - make the "cart" column go on top) */
@media (max-width: 800px) {
  .row {
    flex-direction: column-reverse;
  }
  .col-25 {
    margin-bottom: 20px;
  }
}


/* ****پایان استایل صفحه cart.php  ***** */





.form-modal  input {


  
    all: unset;
  border-radius: 5px;
  border: 0.5px solid #04AA6D;
}


       .eye-icon {
          
            cursor: pointer;
        }

        .eye-icon.crossed {
            text-decoration: line-through;

        }





        /*******استایل پشتیبانی****/
  .delivery-support {
    display: flex;
    /* justify-content: space-around; */
    background-color: #f4f4f4;
    padding: 10px;
    text-align: center;
    justify-content: center;
    background-color: aliceblue;
     line-height: 1.5; /* فاصله کمتر بین خطوط */
}

@media screen and (max-width: 670px) {
.delivery-support  {
  flex-wrap: wrap; /* عناصر در صورت کمبود فضا به خط بعدی می‌روند */
    }
}
.item {
    width: 45%;
    margin-left: 5px;
    margin-right: 5px;
    padding: 10px;
    border: dotted;
    border-color: rgba(0, 0, 0, 0.1);

}
.item img {
    width: 60px;
    margin: 0px;
}
.item h3 {
    color: #8B4513;
    font-size: 18px;
}