/*tajawal font */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&display=swap');

*{
font-family:"Cairo", sans-serif; 
text-decoration: none;
list-style: none;
margin: 0;
padding: 0;
text-decoration: none;
color: black;
border: none;
 box-sizing: border-box;
}
html{
  scroll-behavior: smooth;
}

:root {
      
         --background-primary:#f5d9cd;
          --background-secondary:rgba(255, 255, 255, 0.35);
         --primary-color: #d4a373; 
        --secondary-color: #faedcd;
        --accent-color: #faba8c; 
        --text-color: #ab7d3adc;
        --light-text: #777;
        --white: #ffffff;
        --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        --transition: all 0.3s ease;
       
      }
body{
height: 100vh;
 background-color: var(--background-primary); /* اللون الوردي الأساسي */
  background-image: repeating-linear-gradient(
    to right,
    transparent         0px,
    transparent         40px,   /* عرض الشريط الشفاف */
    var(--background-secondary)  40px,
    var(--background-secondary) 80px  /* عرض الشريط الأبيض */
  );
  background-size: 80px 100%;
  min-height: 100vh;
}




nav{
    position: fixed;
    top: 10px;
    left: 0;
    right: 0;
    margin:0 auto;
    width: 90%;
    height: 80px;
    padding: 25px 40px;
    background: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 97;
    box-shadow: 0 2px 15px #d4a373a2;
    border: 1px solid var(--primary-color);
    border-radius: 15px;
    box-sizing: border-box;
    overflow: hidden;
}

nav .nav-list{
    display: flex;
    gap: 20px;
    position:fixed;
}

.nav-list-second{
  opacity: 1;
  visibility: visible;
}

nav li a {
    font-size: 20px;
    font-weight: 400;
    color:var(--text-color);
    transition: 0.2s;
    position: relative;
    color: var(--primary-color);
}

nav li a:hover {
    cursor: pointer;
    color:var(--primary-color);
}
nav .nav-icon{
    position: absolute;
    left: 50px;
}

nav li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;              
  width: 100%;
  height: 2px;
  background-color: var(--primary-color); 
  transform: scaleX(0);
  transform-origin: right; 
  transition: transform 0.3s ease;
}

nav li a:hover::after {
  transform: scaleX(1);
}
.menuBtn{
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility:hidden;
}
.menuBtn i{
 color: var(--primary-color);
 position: absolute;
 right: 30px;
 font-size: 30px;
 transition: 0.3s;
}
.menuBtn i:hover{
  cursor: pointer;
  scale: 1.1;
}
.logo{
position: absolute;
display:flex;
justify-content: center;
align-items: center;
right: 30px;
top: -18px;
}
.logoImg{
  width: 120px;
  height: auto;
  border-radius: 20%;
}

.open{
     opacity: 1;
    visibility: visible;
}
.nav-icon{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}
.nav-icon i,.fa-arrow-right-from-bracket {
    font-size: 30px;
    color: var(--primary-color);
     transition: 0.3s;
}
.nav-icon i:hover,.fa-arrow-right-from-bracket:hover{
    cursor: pointer;   
    scale: 1.2;
}



.switch .container {
  --color: var(--primary-color);
  --size: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  cursor: pointer;
  font-size: var(--size);
  user-select: none;
  fill: var(--color);
}

.switch .container .moon {
  position: absolute;
  animation: keyframes-fill .5s;
}

.switch .container .sun {
  position: absolute;
  display: none;
  animation: keyframes-fill .5s;
}


.switch .container input:checked ~ .moon {
  display: none;
}

.switch .container input:checked ~ .sun {
  display: block;
}

.switch .container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}


@keyframes keyframes-fill {
  0% {
    transform: rotate(-360deg) scale(0);
    opacity: 0;
  }

  75% {
    transform: rotate(25deg);
  }
}

.toast{
  position: fixed;
  top: 120px;
  right: -320px;

  display: flex;
  align-items: center;
  gap: 10px;

  background:var(--primary-color) ;

  padding: 14px 18px;
  border-radius: 14px;

  font-family: sans-serif;
  font-weight: bold;

  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
  backdrop-filter: blur(10px);

  opacity: 0;
  z-index: 9999;

  transition: all 0.5s ease;
}
.toast span{
  color:var(--secondary-color)
}

.toast.show{
  right: 20px;
  opacity: 1;
  animation: bounceIn 0.6s ease;
}


.toast.hide{
  right: -320px;
  opacity: 0;
}


@keyframes bounceIn {
  0%{
    transform: translateX(50px);
    opacity: 0;
  }
  60%{
    transform: translateX(-10px);
    opacity: 1;
  }
  100%{
    transform: translateX(0);
  }
}

.icon{
  font-size: 20px;
}


.cart-span{
  color: var(--secondary-color);
}
.title{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin:0px 0 50px 0;
  padding-top: 100px;
}
.title h2{
font-size: 40px;
color: var(--primary-color);
font-weight: bolder;
text-shadow: 5px 4px 6px rgba(0, 0, 0, 0.097);
border-left: var(--primary-color) 2px solid ;
padding: 0 5px;

}
.title h3{
font-size: 20px;
color: var(--light-text);
font-weight: 400;
border-bottom: 2px var(--primary-color) solid;
padding-bottom: 5px;
}



    
    .dark{
  --primary-color: #e6b980;      
  --secondary-color: #1e1e1e;   
 --accent-color: #faba8c;    
  --text-color: #f5f5f5;        
  --light-text: #bbbbbb;        
  --white: #2a2a2a;            
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.6); 
  --background-primary:#282625;
  --background-secondary:#2a2a2a;
}


      .container {
        max-width: 1200px;
        margin:  20px;

      }

      .products-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 30px;
        position: relative;
        border-top: 4px solid var(--secondary-color);
        border-radius: 10px 0;
        padding-top: 12px;
        margin-bottom: 20px;
      }
      .grid-span{
        background-color: var(--secondary-color);
        font-weight: 700;
        padding: 0 10PX 0 30PX;
        color: var(--primary-color);
        border-radius: 10px 10PX 0 0;
        
      }
      .products-span{
        text-align: center;
         position: absolute;
         top: -50px;
         left: 0px;
         background-color: var(--primary-color);
         color: var(--secondary-color);
          font-size: 17px;
          font-weight: 600;
          padding: 10px 12px 30px 7px;
          border-radius:10px 10px 10px 0px ;
       box-shadow: 0 2px 15px rgba(0, 0, 0, 0.206);
       transition: 0.3s ease-in-out;
      }
       .products-span:hover{
        transform: translateY(-10px);
       }


      .product-card {
        
        background: var(--white);
        border-radius: 20px;
        overflow: hidden;
        box-shadow: var(--shadow);
        transition: var(--transition);
        position: relative;
        border: 1px solid transparent;
      }





      .product-card:hover {
        transform: translateY(-10px);
        border-color: var(--secondary-color);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
      }


      .product-image {
        position: relative;
        overflow: hidden;
        max-height: 100%;
        height: 300px;
        background-color: #f1f1f1;
      
      }

      .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
        display: block;
      }

      .product-card:hover .product-image img {
        transform: scale(1.1); /* تأثير تكبير الصورة */
      }


      .product-card:hover  {
        bottom: 0; 
      }

      .product-details {
        padding: 20px;
        text-align: center;
          background-color: var(--secondary-color);
      }

      .category-product {
        font-size: 0.85rem;
        color: var(--light-text);
        text-transform: uppercase;
        letter-spacing: 1px;
        display: block;
      }

      .product-title {
        font-size: 1.7rem;
        font-weight: 700;
        color: var(--primary-color);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .product-description {
        font-size: 1.2rem;
        color: var(--light-text);
        margin-bottom: 5px;
        line-height: 1.5;
        height: 40px; /* تحديد ارتفاع لسطرين تقريباً */
        overflow: hidden;
      }

 
   
      .price-box {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-bottom: 15px;
      }

      .current-price {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--accent-color);
      }

      .add-to-cart-btn {
        width: 100%;
        padding: 12px;
        background: var(--primary-color);
        color: var(--secondary-color);
        border: none;
        border-radius: 10px;
        font-weight: 600;
        font-size: 17px;
        cursor: pointer;
        transition: var(--transition);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: 0.3s;
      }
      
      .add-to-cart-btn i{
        scale: 1.4;
        color: var(--secondary-color);
      }
      .add-to-cart-btn:hover{
        cursor: pointer;
        background-color: var(--secondary-color);
        color: var(--primary-color);
      }


      .skeleton-card {
  border-radius: 5px;
  background: linear-gradient(
    90deg,
    #eeeeee 25%,
    #dddddd 50%,
    #eeeeee 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skelaton-title,.skelaton-price{
  width: 150px;
  height: 20px;
 margin: 7px auto;

}
.skelaton-price{
  width: 100px;
}
.skelaton-button,.skelaton-button i{
color: var(--primary-color);
}



       .footer {
        color: var(--text-color);
        padding: 60px 0 20px;
        font-family: 'Tajawal', sans-serif;
        border-top: 5px solid var(--primary-color); 
        
    }
    .footer p{
      color: var(--text-color);
    }
    .footer-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .footer-col {
        flex: 1;
        min-width: 250px;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .footer-col h4 {
        font-size: 18px;
        color: var(--primary-color); 
        margin-bottom: 20px;
        font-weight: bold;
        position: relative;
    }

    .footer-col ul {
        padding: 0;
    }

    .footer-col ul li {
        margin-bottom: 10px;
    }

    .footer-col ul li a {
        color: var(--text-color);
        font-weight: 800;
        text-decoration: none;
        transition: 0.3s;
    }
    .footer-col ul li ,.footer-col ul li i{
    color: var(--text-color);
    }

    .footer-col ul li a:hover {
        color: var(--primary-color);
        padding-right: 5px;
    }

    .social-links a {
        display: inline-block;
        height: 40px;
        width: 40px;
        background-color: var(--white);
        margin-left: 10px;
        text-align: center;
        line-height: 40px;
        border-radius: 50%;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        transition: 0.3s;
        
    }
    .social-links a i{
      color: var(--text-color);
  
    }

    .social-links a:hover {
        background-color: var(--primary-color);
        color: var(--white);
    }

    .footer-bottom {
        text-align: center;
        padding-top: 20px;
        border-top: 1px solid var(--clouds-color);
        font-size: 14px;
    }

    .scrollup{
      height: 40px;
      width: 40px;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      box-shadow: 5px 4px 6px rgba(0, 0, 0, 0.167);
      font-size: 30px;
      background-color: var(--primary-color);
      position: fixed;
      bottom:20px;
      right: 20px;
      cursor: pointer;
      transition: 0.3s;
      opacity: 0;
      visibility: hidden;
    }
    .scrollup i{
    color: var(--white);
    }
    .scrollup:hover{
      cursor: pointer;
      background-color: var(--white);
    }
    .scrollup i:hover{
      color:var(--primary-color);
    }
    .scrool-open{
      opacity: 1;
      visibility: visible;
    }
    
    .cart-section{
      background-color:#4a4a4a87;
      backdrop-filter: blur(5px);
      height: 100vh;
      width: 100%;
      position:fixed;
      top: 0;
      left: 0;
      z-index: 98;
      opacity: 0;
      visibility: hidden;
      transition: 0.3s ease-in-out;
    }
    .cart-section-open{
      opacity: 1;
      visibility: visible;
    }
.fa-arrow-right-from-bracket{
  position: fixed;
  top: 30px;
  left: 50px;
  font-size: 30px;
  cursor: pointer;
  color: var(--secondary-color);

}
.cart-section{
  overflow-y: auto;
}
.cart{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: 80PX auto;
}
.overflow{ 
  overflow: hidden;
}
.product-cart{
  background-color:transparent;
  backdrop-filter: blur(10px);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin: 10px 0;
  padding: 20px 0;
  padding-inline: 20px;
  transition: 0.3s;
  
}
.last-one{
  order: 999;
}
.product-cart .product-img{
  width: 120px;
  height: 140px;
}
.product-cart:hover{
  border: 1px solid var(--accent-color);
  transform: translateX(-5px);
}
.product-cart .product-img img{
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 10px;
  transition:0.3s ease;
}
.product-cart .product-img img:hover{
  cursor: pointer;
  box-shadow: 0 5px 60px var(--secondary-color);
}
.product-quantity{
  display: flex;
  gap: 10px;
}
.product-quantity .add{
  display: flex;
  gap: 10px;
}
.product-quantity span{
  font-size: 20px;
  text-align: center;
  background-color:#faedcd31;
  width: 40px;
  border-radius:10px;
  color: var(--secondary-color);
}
.product-quantity button{
  width: 40px;
  font-size: 20px;
  background-color: var(--secondary-color);
  cursor: pointer;
  transition: 0.3s;
  border-radius: 10px;
  color: var(--primary-color);
}
.product-quantity button:hover{
  color: var(--accent-color);
}
.product-quantity i{
  font-size: 30px;
  cursor: pointer;
  color: var(--primary-color);
  transition: 0.2s;
}
.product-quantity i:hover{
  transform: rotate(-15deg);
  scale: 1.3;
  color:var(--secondary-color);
}
.product-quantity .delete{
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline-start: 10px;
}
.product-description{
display: flex;
flex-direction:column;
gap: 10px;
height: 100%;
}
.product-description h2{
font-size: 22px;
font-weight: bolder;
color: var(--primary-color);
}
.product-description h3{
font-size: 18px;
font-weight: 400;
color: var(--secondary-color);
}
.product-price{
  display: flex;
  flex-direction: column;
}
.product-price p{
display: flex;
justify-content: space-between;
color: var(--primary-color);
font-size: 20px;
font-weight: 400;
}
.product-price span{
  color: var(--secondary-color);
  font-size: 18px;
  font-weight:bold;
}

.total{
  background-color:#333;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction:column;
  gap: 10px;
  padding: 10px;
  background-color:#4a4a4a87;
  backdrop-filter: blur(5px);
  border-radius: 10px;
  transition: 0.2s;
}
.total:hover{
  border: 1px solid var(--accent-color);
}

.total p{
  width: 100%;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  font-size: 20px;
color: var(--primary-color);
}
.total span{
  color: var(--secondary-color);
}
.total .total-button{
  display: flex;
  gap: 20px;
}
.total .total-button button{
width: 150px;
height: 30px;
border-radius: 10px;
text-align: center;
font-size: 15px;
cursor: pointer;
color: var(--primary-color);
background-color: var(--secondary-color);
transition: 0.3s;
}
.total .total-button button:hover{
color: var(--secondary-color);
background-color: var(--primary-color);
}
.fa-shopping-basket{
  position: relative;
}
.fa-shopping-basket .cart-span{
  position: absolute;
  top: -11px;
  right: -11px;
  font-size: 21px;
  background-color: var(--primary-color);
 display: flex;
 justify-content: center;
 align-items: center;
 font-weight: 400;
  border-radius: 50%;
  width: 25px;
  height: 25px;
}

.checkOut{
      background-color:#4a4a4a87;
      backdrop-filter: blur(5px);
      height: 100vh;
      width: 100%;
      position: fixed;
      display: flex;
      align-items: center;
      justify-content: center;
      top: 0;
      left: 0;
      z-index: 99;
      opacity: 0;
      visibility: hidden;
      transition: 0.3s ease-in-out;
}
.checkOutOpen{
  opacity: 1;
   visibility: visible;
}
.hidden{
  opacity: 0;
  visibility: 0;
}
.checkOut .container{
  background-color:#4a4a4a3f;
  backdrop-filter: blur(5px);
  display:flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  border-radius: 10px;
  border: 1px var(--white) solid;
  transition: 0.3s;
   box-shadow: 0 10px 40px rgba(0, 0, 0, 0.304)
}
.checkOut .container:hover{
  border-color: var(--accent-color);
   box-shadow: 0 2px 5px var(--accent-color);
}
.lName,.fName,.phone{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#phone{
  text-align: center;
}
.checkOut input{
  width: 300px;
  height: 40px;
  border-radius: 10px;
  padding: 5px 20px;
  text-align: center;
  background-color: var(--secondary-color);
  margin: 5px 0;
  font-size: 20px;
  color: var(--primary-color);
}
.checkOut label{
  font-size: 20px;
  color: var(--primary-color);
}
.localisation{
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.localisation select,.formBtn button{
  background-color: transparent;
  backdrop-filter: blur(30px);
  color: var(--primary-color);
  font-size: 15px;
  border: 1px solid var(--secondary-color);
  border-radius: 10px;
  padding: 5px 10px;
  width: 47%;
  margin: 15px 0;
  cursor: pointer;
  transition: 0.3s;
}
.formBtn{
  display: flex;
  justify-content: space-between;
align-items: center;
}
.formBtn button:hover{
  background-color: var(--primary-color);
  color: var(--secondary-color);
  scale: 1.1;
}

.OrderDone,.OrderFailed{
  height: 100vh;
  width: 100%;
  position: fixed;
  top: 0;
  right: 0;
  left: 0; 
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
   opacity: 0;
   visibility: hidden;
}
.OrderDone .DoneContiner,.FailedContiner{
height: 200px;
width: 200px;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
background-color:transparent;
backdrop-filter: blur(10px);
border-radius: 10px;
position: relative;
transition: 0.3s ease-in-out;
}
.OrderDone .DoneContiner h3,.FailedContiner h3{
 margin-top: 40px;
 color:#28a745;;
 font-size: 20px;
 font-weight: 600;
}
.OrderDone .DoneContiner i,.FailedContiner i{
  color:#28a745;
  font-size: 60px;
  position: absolute;
  top: 30px; 
}
.OrderDoneOpen{
  opacity: 1;
  visibility: visible;
}
.FailedContiner h3, .FailedContiner i{
 color: #e63946;
}
.cards{
  display: flex;
  justify-content: center;
  align-items: center;
  gap:20px;
  width: 100%;
  flex-wrap: wrap;
  margin-bottom: 65px;
}
.card{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  background-color: var(--secondary-color);
  padding: 20px;
  height: 150px;
  width: 150px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transform: scale(0.8) translateX(60px);
  transition:  0.6s ease;
  opacity: 0; 
}
.show-card{
  transform: scale(1) translateX(0);
  opacity: 1;
}

.card i{
  font-size: 30px;
  color: var(--primary-color);
}
.card h3,.card span{
  color: var(--primary-color);
  font-size: 15px;
}
.card:hover,.card:focus{
  scale: 1.1;
  transform: translateY(-10px);
}

.categorySwiper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  padding: 20px;
  background-color: #faedcd70;
  border: 1px var(--secondary-color) solid;
  border-radius: 10px;
  width: 120px;
  transition: 0.2s;
}
.categorySwiper:hover,.categorySwiper:focus{
  background-color: var(--secondary-color);
  cursor: pointer;
}
.categorySwiper i{
  font-size: 30px;
  color: var(--primary-color);
}
.categorySwiper h3{
  font-size: 18px;
  color: var(--primary-color);
}
.swiper-pagination{
      color: var(--primary-color) !important;
      bottom: 0px  !important;
    }

.swiper-pagination-bullet-active {
  background-color: var(--primary-color) !important;
    }
.mySwiper .categoryTitle{
  font-size: 25px;
  width: 250px;
  color: var(--primary-color);
  background-color: #faedcd5e;
  border-radius: 10px;
  margin: 20px;
  text-align: center;
  box-shadow: 0 0 20px rgba(128, 128, 128, 0.2);
}




@media(min-width:930px){
  .categorySwiper{
    width: 290px !important;
  }
}

@media(min-width:750px){
  .categorySwiper{
    width: 230px ;
  }
}
@media(min-width:600px){
  .categorySwiper{
    width: 170px ;
  }
}



@media(max-width:630px){
.menuBtn{
  opacity: 1;
  visibility:visible;
}
.logo{
  right: 35%;
 
}

.nav-list{
  background-color: var(--secondary-color);
  width: 200px;
  height: 100vh;
  padding: 10px 50px 15px 0px;
  right: -500px;
  top: 90px;
  flex-direction: column;
  box-shadow: var(--shadow);
  border: 1px solid var(--primary-color);
  border-top: none;
  border-radius: 15px ;
  transition: 0.4s ease;
}

.nav-list-second{
right: 30px;
}

}


@media(max-width:498px){
nav .nav-icon{
    position: absolute;
    left: 20px;
}

}


@media(max-width:580px){
.product-cart{
  margin: 10px 0;
  padding: 7px;
}
.product-description h2{
 display: none;
  } 
.product-cart .product-img{
  width: 100px;
  height: 120px;

}

.product-quantity i{
  font-size: 25px;
}

.product-price span{
  font-size: 18px;
}

}


@media(max-width:520px){


.product-cart .product-img{
  width: 70px;
  height: 80px;
}

.product-quantity{
  gap:5px;
}
.product-quantity .add{
  gap: 5px;
}
.product-quantity span{
  width: 30px;
}
.product-quantity button{
  width: 30px;
}
.product-quantity i{
  font-size: 20px;
}
.product-price p{
font-size: 15px;

}
.product-price span{
  font-size: 14px;
}

}

@media(max-width:400px){

.product-quantity{
  gap:0px;
}
.product-price p{
  flex-direction: column;
}
.categorySwiper{
  width: 100px;
}
.logo{
  top: 13px;
}
.logoImg{
   width: 50px;
}
}
 
@media(min-width:1250px){
  body{
    display: flex;
    justify-content: center;
  }
 
}
