html,
body {
  overflow-x: hidden;
}

/* ================= NAVBAR (INDEX STYLE) ================= */

.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;
  gap: 12px;
  flex-wrap: wrap;
}

/* logo */
.logo {
  width: auto; /* بدل 11% */
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* links */
.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; /* بدل 1rem */
}

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

/* hover من غير ما يزق */
.navbar ul li a:hover {
  color: #000000;
  background-color: #ffffff;
}

/* right side */
.login-container {
  display: flex;
  align-items: center;
  width: auto; /* بدل 17% */
  gap: 8px;
}

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

.login-container i:hover {
  background-color: #fff;
  color: #000000;
  border-radius: 20px;
  border: 2px solid rgb(255, 255, 255);
}

.login-btn,
.register-btn {
  margin-left: 0;
  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;
  border: 2px solid #ffffff;
}

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

  .navbar ul {
    flex-direction: column;
    width: 100%;
    flex: unset;
    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: 20px;
  font-size: 40px;
  font-family: "Dancing Script", cursive;
  font-weight: bold;
}

.image-gallery {
  width: 70%;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.splide__pagination {
  counter-reset: pagination-num;
  bottom: 15px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.splide__pagination__page:before {
  counter-increment: pagination-num;
  content: counter(pagination-num);
  color: #fff;
  background-color: #000000;
  font-weight: bold;
  font-size: 14px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition:
    transform 0.3s,
    background-color 0.3s;
}

.splide__pagination__page.is-active:before {
  background-color: #9b9898;
  transform: scale(1.2);
}

#image-slider img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.4s,
    box-shadow 0.4s;
}

#image-slider img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

#image-slider {
  width: 70%;
  margin: 40px auto;
}



/* ===== Slider full width on mobile ===== */
@media (max-width: 576px) {
  .image-gallery {
    width: 96% !important;
  }

  #image-slider,
  #image-slider.splide {
    width: 100% !important;
    margin: 20px auto !important;
  }

  #image-slider .splide__track,
  #image-slider .splide__list,
  #image-slider .splide__slide {
    width: 100% !important;
  }
}

/* ================= PROMO BAR (PRO) ================= */

.promo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #111827;
  color: #fff;

  width: 75%;
  margin: 20px auto;
  border-radius: 10px;

  padding: 14px 18px; /* بدل height */
  gap: 18px;
}

.promo-box {
  display: flex;
  align-items: center;
  gap: 12px;

  flex: 1; /* يخلي الثلاثة متساويين */
  justify-content: center;

  padding: 10px 8px;
  border-radius: 10px;

  transition:
    transform 0.25s ease,
    background-color 0.25s ease;
}

.promo-box:hover {
  transform: translateY(-3px);
  background-color: rgba(255, 255, 255, 0.06);
}

.promo-item {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  max-width: 220px; /* يمنع التكسير الوحش */
}

.promo-bar i {
  color: #f97316;
  font-size: 28px;
  transition: transform 0.25s ease;
}

.promo-box:hover i {
  transform: scale(1.12);
}

/* الفواصل في الديسكتوب */
.promo-box:not(:last-child) {
  border-right: 2px solid #f97316;
}

/* ================= TABLET ================= */
@media (max-width: 992px) {
  .promo-bar {
    width: 90%;
  }

  .promo-item {
    font-size: 15px;
    max-width: 260px;
  }

  .promo-bar i {
    font-size: 26px;
  }
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .promo-bar {
    flex-direction: column;
    align-items: stretch;
    width: 92%;
    padding: 14px;
    gap: 12px;
  }

  .promo-box {
    justify-content: flex-start;
    padding: 12px 10px;
  }

  /* نشيل الفاصل العمودي ونحط فاصل أفقي */
  .promo-box:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid rgba(249, 115, 22, 0.7);
    padding-bottom: 14px;
  }

  .promo-item {
    text-align: left;
    max-width: 100%;
    font-size: 15px;
  }

  .promo-bar i {
    font-size: 24px;
  }
}

/* ================= VERY SMALL ================= */
@media (max-width: 420px) {
  .promo-item {
    font-size: 14px;
  }
}

/* ================= IMAGES SECTION (3 images) ================= */

.images-container {
  width: min(1200px, 90%);
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  position: static;
  height: auto;
}

.Women,
.Men,
.Check-Out {
  position: static !important;
  width: 100% !important;
  height: 320px !important;
  object-fit: cover;
  border-radius: 15px;
  cursor: pointer;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.Women:hover,
.Men:hover,
.Check-Out:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

@media (max-width: 992px) {
  .images-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .Women,
  .Men,
  .Check-Out {
    height: 280px !important;
  }
}

@media (max-width: 576px) {
  .images-container {
    grid-template-columns: 1fr;
  }

  .Women,
  .Men,
  .Check-Out {
    height: 230px !important;
  }
}

h2 {
  text-align: center;
  margin: 40px;
  font-size: 50px;
}

h2:hover {
  text-decoration: underline;
}

#image-slider,
#product-slider {
  width: 70%;
  margin: 40px auto;
}

.product-card {
  text-align: center;
  background: #fff;
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.4s,
    box-shadow 0.4s;
}

.product-card img {
  width: 100%;
  border-radius: 12px;
}

.product-card:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.product-card p {
  margin-top: 10px;
  font-weight: bold;
  font-size: 28px;
  flex-wrap: wrap;
}

.product-card span {
  color: #f97316;
  font-weight: bold;
}

.img-box {
  position: relative;
  overflow: hidden;
}

.img-box img {
  width: 100%;
  display: block;
  transition: 0.4s ease;
}

.hover-img {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

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

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

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

/* ================= 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%;
  }
}
