      @font-face {
  font-family: 'farhang';
  src: url('../fonts/Farhang2-Regular.ttf') format('truetype');
  src: url('../fonts/Farhang2FaNum-Regular.ttf') format('truetype');
  src: 
  url('../fonts/Farhang2-Regular.woff2') format('woff2'),
  url('../fonts/Farhang2-Regular.woff') format('woff');
}

*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'farhang';
}

:root{
  --white : #fff;
  --red : #a1141d;
  --blue  : #063971;
  --yellow : #f5a614;
}

body {
  background-color: #faf9f5;
  font-family: 'farhang';
    user-select: none;
}

.d-none{
  display: none !important;
}
.d-flex{
  display: flex !important;
}

.body-inner{
  padding: 1rem 1rem 0 1rem;
}

header {
  display: flex;
  justify-content: start;
  align-items: center;
  margin-bottom: 2.5rem;
}

.menu-icon {
  font-size: 2.5rem;
  cursor: pointer;
  margin-left: 2rem;
  color: var(--yellow);
  cursor: pointer;
}

.logo {
  height: 50px;
}

.greeting {
  margin-bottom: 2rem;
}
     .greeting .red{
          color: var(--red) !important;
          font-size: 1.65rem;
      }
      .greeting .blue{
          color: var(--blue);
          font-size:1.2rem;
      }
.filters {
  display: flex;
  justify-content: space-between; 
  margin-bottom: 2rem;
  width: 100%;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.filters button { 
  padding: 0.3rem 0.5rem;
  border: none;
  font-size: 1.1rem;
  border: 1px solid var(--blue);
  background-color: var(--white);
  color: var(--blue);
  border-radius: 0.3rem;
  font-weight: bold;
  cursor: pointer;
  width: 30%;
} 

.filtersbuttonactive{
  border: 1px solid var(--red) !important;
  background-color: var(--red) !important;
  color: var(--white) !important;
}

.filters button:hover , .filters button:focus{
  border: 1px solid var(--red);
  background-color: var(--red);
  color: var(--white);
}



.slider {
  display: none;
  overflow-x: auto;
  white-space: nowrap;
  scroll-behavior: smooth;
  gap: 1rem;
  margin-bottom: 1rem;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;
}

.slider.active{
  display: flex;
}

.slider::-webkit-scrollbar {
  display: none;
}

#section2.active .slider-item-card-5{
  border: 1px solid var(--red);
}

.redborder{
border: 1px solid var(--yellow) !important;
color: var(--blue) !important;

}
.slider-item {
  padding: 0.5rem;
  border-radius: 0.3rem; 
  font-size: 1rem; 
  display: flex;
  align-items: center;
  color: rgb(71, 71, 71);
  cursor: pointer;
  border: 0.05px solid var(--white);
  white-space : nowrap;
}

.slider-item:hover , .slider-item:focus{
  border: 1px solid var(--red);
  
}

.slider-item img{
  height: 2rem;
  margin-left: 0.6rem;
}

.slider-item.activated{
  border: 1px solid var(--yellow);
}

.products {
  display: none; 
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.products.activated{
  display: flex;
}

.card { 
  margin-bottom: 2.5rem;
  width: 48%;
  border-radius: 1rem;
  padding: 0 0 1.5rem 0; 
  text-align: center;
  background-color: var(--white); 
  position: relative;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  cursor: pointer;
  height: 21rem;
}

.card:focus .card-inner h3, .card:hover .card-inner h3 , .card:focus .card-inner p, .card:hover .card-inner p , .card:focus .card-price span, .card:hover .card-price span{
  color: var(--red);
}

.card:focus .card-price span, .card:hover .card-price span{
  color: var(--blue);
}
/*
.card::before{
  content: " ";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  overflow: hidden;
  background-color: var(--blue);
  height: 30%;
  width: 100%;
  border-radius: 1rem 1rem 50% 50%;
}
*/

.card .image-container{
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 1rem;
  width: 100%;
  height: 11rem;
  box-shadow: rgba(255, 166, 0, 0.1)0px 2px;
}
.card .image-container.base-logo img{
    width: 90%;
}
.card img {
  width: 100%;
  height: auto;
  max-height: 100%;
  position: relative;
  background-color: var(--white);
  border-radius: 1rem;
  box-sizing: border-box;
}

.card-inner{
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: space-between;
  padding: 0.4rem 1rem;
  margin-top: 0.4rem;
  height: 7.1rem;
  }

.card-inner h3 {
  font-size: 1rem; 
  color: var(--blue);
  text-align: right;
  height: 4rem;
}

        .card-inner div{
            display:flex;
            height:3rem;
        }
.card-inner p {
  font-size: 0.8rem;
  color: var(--blue);
  text-align: right;
}
.card-price{
  width: 100%;
  padding: 0.5rem;
  display: flex;
  justify-content: end;
  align-items: center;
}
.card-price span{
  color: var(--blue);
  font-size: 0.9rem;
  width: 100%;
  text-align: left;
}

footer {
  text-align: center;
  font-size: 20px;
  background: url('../images/footer.jpg');
  background-size: cover;
  background-position-y: bottom;
  background-repeat: no-repeat;
  width: 100%;
  height: 17rem;
  display: flex;
  align-items: end;
  justify-content: start;
}
footer a{
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  padding : 0 1rem 1rem 0;
}

@media(min-width: 500px) {
  .products{
    justify-content: space-around;
  }
  .card{
    width: 42%;
  }
}
@media(min-width: 768px) {
  .body-inner{
    padding: 2rem;
  }
  
  .card{
    width: 32%;
  }
}

@media(min-width: 1024px) {
  .card{
    width: 23%;
    height: 22rem;
  }
  .card .image-container{
    height: 11rem;
  }
}
