
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Arial', sans-serif;
        }
        
   
        body {
            background-color: #f5f5f5;
        }
        
            
        

        .banner-container {
            width: 100%;
            overflow: hidden;
            position: relative;
            height: 400px;
        }
            
        
        
        .banner-slider {
            display: flex;
            transition: transform 0.5s ease;
            height: 100%;
        }
        
        .banner-slide {
            min-width: 100%;
            height: 100%;
        }
        
        .banner-slide img {
            width: 100%;
            height: 100%;
            object-fit: fill;
        }
    
        /* قسم الأقسام */
        .categories-container {
            padding: 20px;
            background-color: #fff;
            margin: 20px 0;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        
        .categories-title {
            text-align: center;
            margin-bottom: 20px;
            color: #333;
            font-size: 24px;
        }
        
        .categories-scroll {
            overflow-x: auto;
            white-space: nowrap;
            padding: 10px 0;
            scrollbar-width: none; /* لإخفاء شريط التمرير في Firefox */
        }
        
        .categories-scroll::-webkit-scrollbar {
            display: none; /* لإخفاء شريط التمرير في Chrome/Safari */
        }
        
        .categories {
            display: inline-flex;
            gap: 15px;
        }
        
        .category {
            display: inline-block;
            width: 80px;
            height: 100px;
            border-radius: 10px;
            overflow: hidden;
            position: relative;
            cursor: pointer;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .category:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        }
        
        .category img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .category-name {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0,0,0,0.6);
            color: white;
            padding: 5px;
            text-align: center;
            font-size: 14px;
        }/* قسم المنتجات */
.products-container {
    padding: 15px;
    max-width: 1500px;
    margin: 0 auto;
}

.products-title {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 أعمدة في الشاشات الكبيرة */
    gap: 20px;
    padding: 10px;
    justify-items: center;
}


.product-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: 700px;
    width: 100%;
    max-width: 280px;
    cursor: pointer;
    direction: rtl;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    filter: drop-shadow(0 8px 10px rgba(0,0,0,0.15));
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-bottom: 2px solid #e1e8f0;
    border-radius: 12px 12px 0 0;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-image {
    width: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 5px 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-name-price {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.product-name {
    font-weight: 700;
    font-size: 16px;
    color: #1a202c;
    margin-bottom: 6px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}




.product-description {
    color: #4a5568;
    font-size: 14px;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}



.action-btn {
    padding: 10px 14px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s ease;
    background-color: #2d3748;
    color: #e2e8f0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background-color: #38a169;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 15px;
    }

    .product-image-container {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
    }

    .product-image-container {
        height: 140px;
    }

    .product-card {
        max-width: 250px;
    }
}
@media (max-width: 380px) {

  .products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 10px;
    justify-items: stretch; /* مهم */
  }


  .categories-container {
    background-color: #fff;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }

  .category {
    display: inline-block;
    width: 70px;
    height: 70px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
}
  
   
    .product-card {
        height: 350px;
        width: 100%;
    }
    
   .product-card .product-info .product-description{
      height:7px;
    }
    
    .product-image {
        height: 20px;
    }
     .product-card .product-image-container {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
}
    
    .product-image-container .product-image {
      height:150px;
    }
}
@media(max-width:350px){
     .banner-container {
            width: 100%;
            overflow: hidden;
            position: relative;
            height: 370px;
        }
        
}

  .notification {
  background-color: #31bc31ff;
  padding: 15px;
  color:#ffffff;
  border: 1px solid #f3f5f6ff;
  border-radius:5px 5px 30px 30px;
  margin: 10px auto;
  width: 90%;
  text-align: center;
}
.notification button{
  background-color:#ffffff;
  border-radius:20px;
  color:#333;
  border:none;
  transition:0.4s;

}
.notification button:hover{
transform:scale(1.1);
transition:0.4s;
}

.add-btn{
background-color:#223134;
border-radius:15px 15px 15px 15px;
border-style:none;
color:#ffff;
padding:7px;
margin-bottom:10px;

}
.add-btn:hover{
  cursor:pointer;

}

  /* تنسيق الزر */
  .buy-btn {
      background-color: green;
      color: white;
      padding: 10px 20px;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      font-size: 16px;
  }

  /* تنسيق النافذة المنبثقة */
  .modal {
      display: none;
      position: fixed;
      z-index: 1000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      justify-content: center;
      align-items: center;
  }

  /* تنسيق المحتوى الداخلي للنافذة */
  .modal-content {
      background: white;
      padding: 20px;
      border-radius: 10px;
      text-align: center;
      width: 90%;
      max-width: 350px;
      box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  }

  /* تنسيق الأزرار داخل النافذة */
  .modal-btn {
      background-color: green;
      color: white;
      padding: 10px;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      width: 100%;
      margin-top: 10px;
  }

  .modal-btn.register {
      background-color: blue;
  }

  /* زر الإغلاق */
  .close {
      color: red;
      font-size: 20px;
      cursor: pointer;
      float: right;
  }
  .idStyle{
   display:none;

  }
  .search-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    max-width: 400px;
    margin: 0 auto;
}
.search-input {
  background-color: #e2ededff;
  flex: 1;
  height: 40px;
  color: #333;
  padding: 10px 15px;
  border: 2px solid black;
  border-radius: 5px;
  font-size: 14px;
}
.search-input:hover {
 cursor: pointer;
}

.search-icon {
  background: none;
  border: none;
  color: #ffffffff;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  margin-left: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .search-container {
    max-width: 300px;
  }
  .search-input {
    height: 35px;
    font-size: 12px;
  }
  .search-icon {
   display: none;
  }
    .notification-slide.show {
  right: 3px;
}
}


  .search-container {
    max-width: 250px;
    margin-right: 20px;
  }
  .search-input {
    height: 30px;
    font-size: 11px;
    padding: 8px 12px;
  }
  .search-icon {
    font-size: 14px;
    padding: 5px;
    margin-left: 5px;
  }

 .product-item{
 transition : 0.3s;
  }
.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition : 0.3s;
        }



        
  .notification {
  background-color: #31bc31ff;
  padding: 15px;
  color:#ffffff;
  border: 1px solid #f3f5f6ff;
  border-radius:5px 5px 30px 30px;
  margin: 10px auto;
  width: 90%;
  text-align: center;
}
.notification button{
  background-color:#ffffff;
  border-radius:20px;
  color:#333;
  border:none;
  transition:0.4s;

}
.notification button:hover{
transform:scale(1.1);
transition:0.4s;
}
        
        #loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color:white;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
        }
        
        .dots-loader {
            display: flex;
            gap: 15px;
        }
        
        .dots-loader span {
            width: 20px;
            height: 20px;
            background-color: #9c9e98;
            border-radius: 50%;
            animation: blink 1.4s infinite ease-in-out both;
        }
        
        .dots-loader span:nth-child(2) {
            animation-delay: 0.2s;
        }
        
        .dots-loader span:nth-child(3) {
            animation-delay: 0.4s;
        }
        
        @keyframes blink {
            0%, 80%, 100% {
                opacity: 0;
                transform: scale(0.8);
            }
            40% {
                opacity: 1;
                transform: scale(1.2);
            }
        }
        .container img{
         margin:0px;

        }
        
.footer a {
  color: black;
  text-decoration: none;
  font-size: 14px;
  text-align: center;
  flex: 1;
  transition: 0.3s;
}

.footer a:hover {
  color: gold;
}

.footer i {
  font-size: 22px;
  display: block;
  margin-bottom: 4px;
}


.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 5px 0;
    z-index: 500;
    border-top: 2px solid rgba(102, 126, 234, 0.1);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.footer a {
    color: #4a5568;
    text-decoration: none;
    font-size: 0.9rem;
    text-align: center;
    flex: 1;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 10px;
}

.footer a:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.footer i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 5px;
}

    .footer a.active {
        color: #667eea;
        background: rgba(102, 126, 234, 0.1);
    }



    body {
      font-family: 'Segoe UI', sans-serif;
      background-color: #f5f5f5;
      min-height: 200vh;
      padding-bottom: 80px;
    }


    header {
      position: sticky;
      top: 0;
      background-color: #111;
      color: white;
      padding: 15px 30px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      z-index: 1001;
      transition: background-color 0.4s ease, box-shadow 0.4s ease;
    }

    header.scrolled {
      background-color: white;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .logo img {
      height: 70px;
      transition: filter 0.4s ease;
    }

    .nav-links {
      display: flex;
      gap: 20px;
    }

    .nav-links a {
      color: white;
      text-decoration: none;
      transition: color 0.4s ease;
      font-size:20px;
    }

    header.scrolled .nav-links a {
      color: black;
    }
    header.scrolled .search-icon{
      color: black;
    }
    header.scrolled  .trans {
      color: black;
    }

    .menu-btn {
      display: none;
      background-color: white;
      color: black;
      border: none;
      padding: 6px 6px;
      font-size: 18px;
      font-weight:bold;
      border-radius: 2px;
      cursor: pointer;
      transition: all 0.4s ease;
      z-index: 1002;
    }

    header.scrolled .menu-btn {
      background-color: black;
      color: white;
    }
    
.notification-slide {
  position: fixed;
  top: 20px;
  right: -400px;
  background-color: #fff;
  padding: 15px 20px;
  border-left: 5px solid #4CAF50;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  border-radius: 8px;
  width: 300px;
  transition: right 0.5s ease-in-out;
  z-index: 9999;
}

.notification-slide.show {
  right: 5px;
}
.notification-slide .close-btn {
  float: left;
  font-size: 22px;
  color: #ff4d4d;
  cursor: pointer;
  margin-right: 10px;
  transition: transform 0.3s, color 0.3s;
}
.notification-slide .close-btn:hover {
  color: #d00000;
  transform: scale(1.2);
}

    /* Sidebar menu */
    .sidebar {
      position: fixed;
      top:20;
      right: -260px;
      width: 200px;
      height: 100vh;
      background-color: #111;
      padding: 30px 20px;
      display: flex;
      flex-direction: column;
      gap: 20px;
      transition: right 0.4s ease, background-color 0.4s ease;
      z-index: 1000;
    }

    .sidebar a {
      color: white;
      text-decoration: none;
      font-size: 18px;
      border-bottom: 1px solid #333;
      padding-bottom: 8px;
      transition: color 0.4s ease;
    }

    .sidebar.show {
      right: 0;
    }

    .sidebar.light {
      background-color: white;
    }

    .sidebar.light a {
      color: black;
      border-bottom: 1px solid #ccc;
    }

    .overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0,0,0,0.5);
      display: none;
      z-index: 999;
      transition: opacity 0.4s ease;
    }

    .overlay.show {
      display: block;
    }

    @media (max-width: 768px) {
      .nav-links {
        display: none;
      }

      .menu-btn {
        margin-left: 20px;
        display: block;
              height: 25px;
              width: 25px;
              font-size:10px;
              justify-content:center;
              align-items:center;
              padding-left:8px;
              

      }
    
        .logo img {
      height: 30px;
      width: 30px;
      margin-right: 20px;
      transition: filter 0.4s ease;
    }
      
    header {
      height:50px;
      position: sticky;
      top: 0;
      background-color: #111;
      color: white;
      padding: 15px 30px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      z-index: 1001;
      transition: background-color 0.4s ease, box-shadow 0.4s ease;
    }
    }
    
    
  
        .scroll-arrow {
            background-color: #333;
            color: white;
            border: none;
            cursor: pointer;
            font-size: 16px;
            width: 40px;
            padding: 3px;
            height: 80px;
            display: flex;
            align-items: center;
            justify-content: center;
            user-select: none;
            transition: background-color 0.3s ease;
            border-radius: 5px;
            margin: 0 5px;
        }
        .scroll-arrow:active {
            background-color: #555;
        }
        .close-btn{
          border-radius:30px;
        }
        .product-image-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.product-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 0;
    cursor: grab;
}

.product-image.active {
    opacity: 1;
}

.product-image.dragging {
    transition: none;
    cursor: grabbing;
}
.add-point{
  color:#ffffff;
  background-color:#329f3bff;
  font-weight:bold;
  font-family:arial;
  display:flex;
  align-items:center;
  justify-content:center;
    animation:point 1.4s infinite ease-in-out both;
    height:50px;
}
.add-point p{
      animation:point 2.4s infinite ease-in-out both;

}
      @keyframes point{
        0%,80%,100%{font-size:19px;
          }
        40%{font-size:18px;


      }
    }

    @media (max-width: 290px) {
      header {
        padding: 5px 10px;
        height: 40px;
      }

      .logo img {
        height: 35px;
        width: 35px;
      }

      .search-container {
        max-width: 150px;
      }

      .search-input {
        height: 25px;
        font-size: 10px;
        padding: 5px 8px;
      }

      .search-icon {
        font-size: 12px;
        padding: 4px;
        margin-left: 3px;
      }

      .menu-btn {
        height: 20px;
        width: 20px;
        font-size: 8px;
        padding: 2px;
      }
    }

