body {
    margin: 0;
    font-family: sans-serif;
    background-color: #f0f0f0;
  }

  /* Header */
  .header {
    background-color: #00385c;
    padding: 10px 15px;
    display: flex;
    align-items: center;
  }

  .logo {
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin-right: 10px;
  }

  .search-bar {
    flex: 1;
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 20px;
    padding: 5px 10px;
  }

  .search-bar i {
    color: gray;
    font-size: 18px;
    margin-right: 8px;
  }

  .search-bar input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 16px;
    padding: 8px 0;
  }

  /* Bottom Navigation */
  .bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #00385c;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 15px 0;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
  }

  .nav-item {
    color: white;
    font-size: 24px;
    transition: color 0.3s;
  }

  .nav-item.active i {
    color: #7bc8f6;
  }

  .nav-item i {
    display: block;
  }

  .nav-item:hover {
    color: #7bc8f6;
  }

  /* محتوى الصفحة */
  .content {
    padding: 20px;
    margin-bottom: 100px; /* مساحة لتفادي تغطية التذييل */
  }

  .product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .product-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 15px;
    text-align: center;
  }

  .product-card img {
    width: 100%;
    height: 170px;
    object-fit: contain;
    border-radius: 10px;
    margin-top: 20px;
  }

  .badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #4CAF50;
    color: white;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
  }

  .fav {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    line-height: 32px;
    font-size: 18px;
    color: #444;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    cursor: pointer;
  }

  .fav:hover {
    color: red;
  }

  .product-card h4 {
    margin: 10px 0 5px;
    font-weight: bold;
  }

  .product-card .desc {
    font-size: 14px;
    color: #444;
    margin-bottom: 10px;
  }

  .product-card .price {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    margin-bottom: 15px;
  }

  .product-card button {
    background-color: #003f66;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-size: 15px;
    width: 100%;
    cursor: pointer;
  }

  .product-card button:hover {
    background-color: #005a99;
  }


  .cart-icon {
position: relative;
}

.cart-count {
position: absolute;
top: -8px;
right: -10px;
background-color: red;
color: white;
font-size: 12px;
padding: 2px 6px;
border-radius: 50%;
font-weight: bold;
animation: none;
transition: transform 0.2s;
}

.cart-icon.shake {
animation: shake 0.4s;
}

@keyframes shake {
0% { transform: translate(0, 0); }
25% { transform: translate(-2px, 2px); }
50% { transform: translate(2px, -2px); }
75% { transform: translate(-2px, 2px); }
100% { transform: translate(0, 0); }
}
#hagg {
  text-decoration: line-through;
}
    .content {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;  /* إضافة المسافة بين العناصر بشكل عام */
    padding: 20px;
}

.product-card {
    width: calc(50% - 20px); /* يعرض عنصرين في الصف */
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
    box-sizing: border-box;
    position: relative;
    margin-bottom: 20px;
}


.product-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin-bottom: 10px;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: red;
    color: white;
    padding: 5px;
    font-size: 14px;
}

.product-card form button {
    padding: 10px 20px;
    background-color: #f44336;
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
}

.product-card form button:hover {
    background-color: #d32f2f;
}

h4, .desc, .price {
    margin: 10px 0;
}


#imgheed{ 
width: 150px;
margin-left: auto;
}

.header {
  position: relative; /* تأكد من أن الـ div هي التي تتحكم في الظل */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  background-color: #ffffff;
}

.bottom-nav{
  background-color:rgb(255, 255, 255);
}

.bottom-nav i {
  color:rgba(49, 105, 236, 0.76); 
}

.bottom-nav .nav-item.active i {
  color: #0b1892; 
}
.slider {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
  z-index: 1;
}

.prev { left: 10px; }
.next { right: 10px; }


.categories {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

.category {
  text-align: center;
  cursor: pointer;
}

.category img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ccc;
  transition: 0.3s;
}

.category img:hover {
  border-color: #333;
  transform: scale(1.05);
}

.category p {
  margin-top: 8px;
  font-weight: bold;
}

.product-card{
  border-radius: 0px;
}



.product-card {
  width: calc(50% - 10px); /* عرض العنصر نصف المساحة مع فرق صغير */
  border: 1px solid #ddd;
  padding: 15px;
  text-align: center;
  box-sizing: border-box;
  position: relative;
  margin-bottom: 20px;
}

#texofeer{ 

  text-align: right;
  margin-right: 10px;
  font-size: 22px;
}