/* =====================
   GLOBAL
===================== */
body {
  margin: 0;
  font-family: Tahoma, Arial, sans-serif;
  direction: rtl;
  background: #f9f9f9;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =====================
   HEADER
===================== */
.header {
  background: #0a3d62;
  color: #fff;
  padding: 15px 0;
  position: relative;   /* مهم */
  z-index: 10000;       /* مهم */
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.logo a {
  font-size: 22px;
  font-weight: bold;
  color: #fff;
}

/* NAV داخل الهيدر فقط */
.header .nav {
  position: static;   /* يمنع نزولها فوق الهيرو */
}

.header .nav a {
  margin-right: 15px;
  color: #fff;
  font-size: 16px;
  display: inline-block;
}

.header .nav a:hover {
  text-decoration: underline;
}


/* =====================
   PAGE TITLE (NEW)
===================== */
.page-title {
  background: #0a3d62;
  padding: 35px 0;
  color: #fff;
  text-align: center;
}

.page-title h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
}

/* =====================
   HERO
===================== */
.hero {
  background:
    linear-gradient(
      rgba(10,61,98,0.75),
      rgba(10,61,98,0.9)
    ),
    url("/wadi-elnile/images/banner.jpg") center/cover no-repeat;
  color: #fff;
  padding: 120px 0;
  text-align: center;
}

.hero-content {
  max-width: 820px;
  margin: auto;
}

.hero h1 {
  font-size: 44px;
  font-weight: 900;
  margin-bottom: 18px;
  line-height: 1.3;
  text-shadow: 0 4px 14px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 20px;
  line-height: 1.9;
  margin-bottom: 32px;
  color: #f2f2f2;
  text-shadow: 0 3px 10px rgba(0,0,0,0.45);
}

/* =====================
   BUTTONS
===================== */
.btn {
  display: inline-block;
  padding: 14px 38px;
  background: #0a3d62;
  color: #fff;
  border-radius: 8px;
  font-size: 17px;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background: #06406b;
  transform: translateY(-2px);
}

.btn.white {
  background: #fff;
  color: #0a3d62;
}

/* =====================
   SECTIONS
===================== */
.section {
  padding: 70px 0;
}

.section.dark {
  background: #f1f1f1;
}

.section-title {
  text-align: center;
  margin-bottom: 45px;
  font-size: 30px;
  font-weight: bold;
  color: #000;
}

/* =====================
   PRODUCTS GRID
===================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background: #fff;
  padding: 22px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.14);
}

.product-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.product-card h3 {
  margin: 18px 0 8px;
  font-size: 21px;
  color: #000;
}

.product-card p {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.product-card strong {
  display: block;
  margin: 12px 0 18px;
  font-size: 18px;
  color: #0a3d62;
}

/* =====================
   PRODUCT DETAILS SLIDER
===================== */
.product-slider {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin-bottom: 25px;
}

.product-slider img {
  flex: 0 0 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
  scroll-snap-align: start;
}

/* =====================
   FOOTER
===================== */
.footer {
  background: #222;
  color: #fff;
  padding: 35px 0;
  margin-top: 60px;
}

.footer-flex {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-bottom {
  text-align: center;
  margin-top: 25px;
  font-size: 14px;
  color: #ccc;
}

/* =====================
   WHATSAPP BUTTON
===================== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 28px;
  line-height: 56px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  z-index: 9999;
  transition: transform 0.2s ease, background 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.12);
  background-color: #1ebe5d;
}

/* =====================
   RESPONSIVE (MOBILE)
===================== */
@media (max-width: 768px) {
  .container {
    width: 95%;
  }

  .header-flex,
  .footer-flex {
    flex-direction: column;
    text-align: center;
  }

  .nav a {
    display: block;
    margin: 10px 0;
  }

  .hero {
    padding: 90px 0;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero p {
    font-size: 16px;
  }

  .product-card img {
    aspect-ratio: 4 / 3;
  }

  .product-slider img {
    max-height: 260px;
  }
}

/* =====================
   SLIDER (FIXED - NO CONFLICT WITH HEADER NAV)
===================== */
.slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto 30px;
  overflow: hidden;
  border-radius: 14px;
}

.slides {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
}

.slide img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

/* arrows (renamed from .nav to .slider-nav) */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  font-size: 32px;
  padding: 6px 14px;
  cursor: pointer;
  z-index: 5;
}

.slider-nav.prev { right: 10px; }
.slider-nav.next { left: 10px; }

/* dots */
.dots {
  text-align: center;
  margin-top: 10px;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  margin: 5px;
  cursor: pointer;
}

.dot.active {
  background: #0a3d62;
}

/* mobile */
@media (max-width: 768px) {
  .slide img {
    height: 260px;
  }
}
/* ====== Admin Login ====== */
.login-form {
  width: 100%;
  max-width: 380px;
  margin: 60px auto;
  padding: 22px;
  border: 1px solid #eee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.login-form input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 16px;
  outline: none;
}

.login-form input:focus {
  border-color: #0a3d62;
}

.login-form button {
  width: 100%;
  padding: 12px 14px;
  margin-top: 10px;
  border: 0;
  border-radius: 10px;
  background: #0a3d62;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.login-form button:hover {
  opacity: 0.95;
}

/* موبايل */
@media (max-width: 768px) {
  .login-form {
    margin: 24px auto;
    padding: 18px;
    border-radius: 12px;
  }
}

/* ===== LOGIN PAGE ===== */
.login-wrapper{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #f6f7fb;
}

.login-form{
  width: 100%;
  max-width: 420px;
  background: #fff;
  padding: 30px 25px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.login-title{
  text-align: center;
  margin-bottom: 25px;
  font-size: 22px;
  font-weight: bold;
}

.login-form input{
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 15px;
}

.login-form input:focus{
  outline: none;
  border-color: #0a3d62;
}

.login-form button{
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: #0a3d62;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.login-form button:hover{
  opacity: .9;
}

/* رسالة الخطأ */
.login-error{
  background: #ffe8e8;
  color: #b00020;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  font-size: 14px;
  margin-bottom: 15px;
}

/* موبايل */
@media (max-width: 480px){
  .login-form{
    padding: 25px 20px;
  }
  .login-title{
    font-size: 20px;
  }
}
