
html,
body {
  overflow-x: hidden;
}

/* ================= NAVBAR ================= */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #111827;
  border-radius: 10px;
  width: 95%;
  margin: 16px auto; /* بدل margin-left */
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.logo {
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  width: 50px;
  border-radius: 15px;
}

.navbar ul {
  display: flex;
  list-style: none;
  width: auto;              /* بدل 50% */
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.navbar ul li {
  margin-left: 0;
}

.navbar ul li a {
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  font-size: 1.2rem;
  padding: 10px 14px;
  border-radius: 10px;
  display: inline-block;
  transition: all 0.3s ease;
}

.navbar ul li a:hover {
  color: #000;
  background-color: #fff;
}

.login-container {
  display: flex;
  align-items: center;
  width: auto;
  gap: 8px;
}

.login-container i {
  font-size: 1.8rem;
  color: #ffffff;
  padding: 6px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.login-container i:hover {
  background-color: #fff;
  color: #000;
}

.login-btn,
.register-btn {
  padding: 0.5rem 1rem;
  background-color: #ffffff;
  color: #000000;
  border: 2px solid #ffffff;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.login-btn:hover,
.register-btn:hover {
  background-color: #000000;
  color: #ffffff;
}

/* ================= MOBILE NAVBAR ================= */

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .navbar ul {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-top: 10px;
  }

  .navbar ul li a {
    width: 100%;
  }

  .login-container {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .navbar ul li a {
    font-size: 1.05rem;
  }

  .login-container i {
    font-size: 1.6rem;
  }
}

/* ================= PAGE ================= */

h1 {
  text-align: center;
  margin: 30px;
  font-size: 40px;
  font-family: "Dancing Script", cursive;
  font-weight: bold;
}

.info-badge {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 0 20px;
}

.filter-container {
  width: 15%;
  min-width: 200px;
  flex-shrink: 0;
  align-self: flex-start;
  position: sticky;
  top: 20px;
}

.filter-by h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: bold;
}

hr {
  margin-bottom: 20px;
  border: none;
  border-top: 1px solid #ddd;
}

.filter-group {
  margin-bottom: 15px;
}

.filter-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
}

.filter-group select,
.filter-group input[type="range"] {
  width: 100%;
}

.filter-group input[type="checkbox"] {
  margin-right: 8px;
}
/* 
.imges-info {
  display: flex;
  flex-wrap: wrap;
  flex: 1;
  gap: 15px;
}

.imges-info h2 {
  flex-basis: 100%;
  margin-bottom: 20px;
  font-size: 2rem;
}

.container-imge {
  position: relative;
  width: calc(25% - 15px);
}

.imge-card {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  transition: 0.3s ease;
  background-color: #fff;
}

.imge-card img,
.hover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

.hover-img {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: 0.4s ease;
}

.imge-card:hover .hover-img {
  opacity: 1;
}

.imge-card:hover img:first-child {
  opacity: 0;
}

.imge-card:hover {
  transform: scale(1.05);
}

.price {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: bold;
}

.price span {
  color: #ffd700;
} */



.imges-info {
  display: flex;
  flex-wrap: wrap;
  flex: 1;
  gap: 15px;
}

.imges-info h2 {
  flex-basis: 100%;
  margin-bottom: 20px;
  font-size: 2rem;
}

.container-imge {
  position: relative;
  width: calc(25% - 15px);
}

/* ✅ Card */
.imge-card {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  border-radius: 18px;
  background-color: #fff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* ✅ Images */
.imge-card img,
.hover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

/* ✅ Hover image */
.hover-img {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

/* ✅ Hover effects */
.imge-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
}

.imge-card:hover .hover-img {
  opacity: 1;
}

.imge-card:hover img:first-child {
  opacity: 0;
}

/* ✅ Zoom بسيط للصورة مش للكارد */
.imge-card:hover img,
.imge-card:hover .hover-img {
  transform: scale(1.06);
}

/* ✅ Price Overlay */
.price {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
  font-weight: 600;

  width: min(85%, 240px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* ✅ Optional: خلي الـ overlay يطلع شوية على hover */
.imge-card:hover .price {
  transform: translateY(-2px);
}

/* ✅ Price highlight */
.price span {
  color: #ffd700;
  display: inline-block;
  margin-top: 4px;
}






/* ================= RESPONSIVE GRID ================= */

@media (max-width: 1400px) {
  .container-imge {
    width: calc(33.333% - 15px);
  }
}

@media (max-width: 1024px) {
  .container-imge {
    width: calc(50% - 15px);
  }
}

@media (max-width: 768px) {
  .info-badge {
    flex-direction: column;
  }

  .filter-container {
    width: 100%;
    position: static;
    margin-bottom: 20px;
  }

  .container-imge {
    width: calc(50% - 12px);
  }
}

@media (max-width: 480px) {
  .container-imge {
    width: 100%;
  }

  .imge-card {
    height: 260px;
  }
}

/* ================= FOOTER ================= */
footer {
  background-color: #111827;
  color: #fff;
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;

  margin-top: 150px;
  border-radius: 10px;
  flex-wrap: wrap;
  gap: 30px;
}

footer div {
  max-width: 350px;
}

footer h3 {
  font-size: 28px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

footer h3:hover {
  transform: translateY(-3px);
  color: #f97316;
}

footer p {
  font-size: 16px;
  margin: 10px 0;
  color: #d1d5db;
  line-height: 1.6;
}

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li {
  margin: 12px 0;
  color: #d1d5db;
}

footer ul li a {
  text-decoration: none;
  color: #d1d5db;
  font-size: 16px;
  transition: all 0.3s ease;
  display: inline-block;
}

footer ul li a:hover {
  padding-left: 8px;
  color: #f97316;
  transform: translateX(5px);
}

footer i {
  margin-right: 10px;
  color: #f97316;
  font-size: 18px;
}

/* Footer Responsive */
@media (max-width: 768px) {
  footer {
    padding: 40px 20px;
    text-align: center;
  }

  footer div {
    max-width: 100%;
  }
}

/* Mobile: تحت بعض */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .navbar ul {
    flex-direction: column;
    width: 100% !important;
    flex: unset;
    gap: 10px;
    margin-top: 10px;
  }

  .navbar ul li a {
    width: 100%;
  }

  .login-container {
    width: 100% !important;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .navbar ul li a {
    font-size: 1.05rem;
  }

  .login-container i {
    font-size: 1.6rem;
  }
}
