/* ========== HEADER ========== */
.offer-header {
  background: #222240;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  padding: 10px 16px;
  width: 100vw;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: auto;
}

.header-container {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: center;
  width: 100%;
  gap: 800px;
  position: relative;
}

.offer-logo {
  max-height: 50px;
  height: 50px;
  width: auto;
  display: block;
  margin: 0 auto;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.side-menu-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  box-shadow: none;
  outline: none;
  display: flex;
  align-items: center;
}

.header-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  vertical-align: middle;
  transition: filter 0.15s;
  cursor: pointer;
}

.login-btn:hover .header-icon,
.side-menu-btn:hover .header-icon {
  filter: brightness(1.6) saturate(1.2);
}

/* زر الرجوع - دائماً يمين */
.back-arrow-btn {
  display: none; /* افتراضي مخفي */
  background: none;
  border: none;
  padding: 4px 2px;
  cursor: pointer;
  align-items: center;
  position: absolute;
  right: 16px;
  left: auto;
  z-index: 20;
}

@media (max-width: 900px) {
  .offer-header {
    position: fixed !important;
    top: 0;
    right: 0;
    left: 0;
    width: 100vw;
    z-index: 3000;
    background: #f8f8fc !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    height: 60px !important;
    gap: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
  }
  .header-container {
    width: 100%;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 0 !important;
    padding: 0 8px;
    height: 56px;
    position: relative;
  }
  .offer-logo {
    display: none !important;
  }
  .header-right {
    display: none !important;
  }
  .back-arrow-btn {
    display: flex !important;
    align-items: center;
    background: none;
    border: none;
    position: absolute;
    right: 16px;
    left: auto;
    z-index: 20;
  }
  body {
    padding-top: 60px !important;   /* أضف هذا السطر هنا */
  }
}


@media (max-width: 500px) {
  .offer-header {
    height: 50px !important;
    padding: 0 8px;
  }
  .header-container {
    height: 50px;
    padding: 0;
  }
  body {
    padding-top: 60px !important;
  }
}



/* ========== SIDENAV ========== */
.side-nav-drawer {
  position: fixed;
  top: 0;
  left: -290px;
  width: 240px;
  height: 100vh;
  background: #fff;
  box-shadow: 5px 0 24px #7a51e01f;
  z-index: 3200;
  transition: left 0.26s cubic-bezier(.6,0,.4,1);
  display: flex;
  flex-direction: column;
  padding: 16px 0 24px 12px;
  overflow-y: auto;
}
.side-nav-drawer.open {
  left: 0;
}

.side-nav-content a {
  color: #afafaf;
  text-decoration: none;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  padding: 8px 8px 8px 0;
  transition: color 0.18s, background 0.18s;
}
.side-nav-content a:hover,
.side-nav-content a.active {
  color: #9e67ff;
  background: #f5f0ff;
}

.side-nav-close {
  background: none;
  border: none;
  font-size: 31px;
  color: #8f8ff2;
  cursor: pointer;
  padding: 5px 14px 8px 0;
  margin-left: auto;
}

.side-nav-overlay {
  display: none;
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: #23234344;
  z-index: 3190;
}
.side-nav-drawer.open ~ .side-nav-overlay {
  display: block;
}

@media (max-width: 901px) {
  .side-nav-drawer, .side-nav-overlay {
    display: none !important;
  }
}
/* ========== SIDENAV ========== */
.side-nav-drawer {
  position: fixed;
  top: 0;
  left: -290px;
  width: 240px;
  height: 100vh;
  background: #fff;
  box-shadow: 5px 0 24px #7a51e01f;
  z-index: 3200;
  transition: left 0.26s cubic-bezier(.6,0,.4,1);
  display: flex;
  flex-direction: column;
  padding: 16px 0 24px 12px;
  overflow-y: auto;
}
.side-nav-drawer.open {
  left: 0;
}

.side-nav-content a {
  color: #afafaf;
  text-decoration: none;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  padding: 8px 8px 8px 0;
  transition: color 0.18s, background 0.18s;
}
.side-nav-content a:hover,
.side-nav-content a.active {
  color: #9e67ff;
  background: #f5f0ff;
}

.side-nav-close {
  background: none;
  border: none;
  font-size: 31px;
  color: #8f8ff2;
  cursor: pointer;
  padding: 5px 14px 8px 0;
  margin-left: auto;
}

.side-nav-overlay {
  display: none;
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: #23234344;
  z-index: 3190;
}
.side-nav-drawer.open ~ .side-nav-overlay {
  display: block;
}

@media (max-width: 901px) {
  .side-nav-drawer, .side-nav-overlay {
    display: none !important;
  }
}

/* ========== HEADER ========== */
.offer-header {
  background: #222240;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
}

.header-container {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: center;
  width: 100%;
  gap: 0 !important;
  justify-content: center !important;
}

.offer-logo {
  max-height: 50px;
  height: 50px;
  width: auto;
  display: block;
  margin: 0 auto;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.side-menu-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.header-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: filter 0.15s;
  cursor: pointer;
}

  flex: 3;
  margin-bottom: 0;
  flex-wrap: wrap;
}
.footer-links a {
  color: #fff;
  font-size: 12px;
  text-decoration: none;
  font-weight: 400;
  letter-spacing: .13px;
  padding: 4px 10px;
  border-radius: 6px;
  transition: color .18s, background .18s;
}
.footer-links a:hover {
  color: #a777fb;
  background: #fff1;
}

/* يسار: السوشيال */
.footer-social {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 0;
  margin-top: 0;
  flex: 1;
}
.footer-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition: filter 0.15s;
  cursor: pointer;
  display: block;
}
.footer-icon:hover {
  filter: brightness(1.2) saturate(1.4);
}


/* خط فاصل */
.footer-separator {
  border: none;
  border-top: 1.3px solid #fff;
  opacity: .43;
  margin: 10px auto 8px auto;
  width: 100%;
}

/* الحقوق */
.footer-copy {
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  letter-spacing: 0.3px;
  margin-top: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.footer-date {
  direction: ltr;
  unicode-bidi: embed;
  margin: 0 0 0 6px;
  font-weight: 400;
}

/* تجاوب */
@media (max-width: 900px) {
  .footer-row {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    text-align: center;
  }
  .footer-logos, .footer-links, .footer-social {
    justify-content: center !important;
    margin-bottom: 5px;
  }
    .footer {
    padding-bottom: 100px;
  }
}

@media (max-width: 800px) {
  .footer-container { padding: 0 4vw; }
  .footer-logos { gap: 13px; }
  .footer-logo { height: 30px; }
  .footer-logo-second { height: 30px; }
  .footer-links { gap: 6px; }
  .footer-social { gap: 20px; }
  .footer-separator { width: 98%; }
  .footer-copy { font-size: 10px;}
}

@media (max-width: 600px) {
  .footer-row {
    gap: 5px;
  }
  .footer-links {
    gap: 6px;
    font-size: 11px;
  }
  .footer-links a {
    font-size: 10px !important;
    font-weight: 400 !important;
    padding: 10px 5px;
    letter-spacing: 0;
  }
}

/* ========== FOOTER2 ========== */
.footer2 {
  background: #f8f8fc;
  color: #fff;
  padding: 10px 0 10px 0;
  width: 100vw;
  box-sizing: border-box;
  margin-top: auto;
}
.footer-container2 {
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

/* الصف الجديد الذي يجمع الشعارات، الروابط، السوشيال */
.footer-row2 {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin-bottom: 3px;
  flex-wrap: wrap;
  direction: rtl; /* لترتيب صحيح بالعربي */
}

/* يمين: الشعارات */
.footer-logos2 {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 30px;
  margin-bottom: 0;
  flex: 1;
    padding-left: 25px;
    padding-right: 25px;
}
.footer-logo2 {
  height: 50px;
  display: block;
}
.footer-logo-second2 {
  height: 45px;
  opacity: 1;
}

/* وسط: الروابط */
.footer-links2 {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex: 3;
  margin-bottom: 0;
  flex-wrap: wrap;
}
.footer-links2 a {
  color: #fff;
  font-size: 12px;
  text-decoration: none;
  font-weight: 400;
  letter-spacing: .13px;
  padding: 4px 10px;
  border-radius: 6px;
  transition: color .18s, background .18s;
}
.footer-links2 a:hover {
  color: #a777fb;
  background: #fff1;
}

/* يسار: السوشيال */
.footer-social2 {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 0;
  margin-top: 0;
  flex: 1;
}
.footer-icon2 {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition: filter 0.15s;
  cursor: pointer;
  display: block;
}
.footer-icon2:hover {
  filter: brightness(1.2) saturate(1.4);
}


/* خط فاصل */
.footer-separator2 {
  border: none;
  border-top: 1.3px solid #fff;
  opacity: .43;
  margin: 10px auto 8px auto;
  width: 100%;
}

/* الحقوق */
.footer-copy2 {
  color: #838383;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  letter-spacing: 0.3px;
  margin-top: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.footer-date2 {
  direction: ltr;
  unicode-bidi: embed;
  margin: 0 0 0 6px;
  font-weight: 400;
}

/* تجاوب */
@media (max-width: 900px) {
  .footer-row2 {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    text-align: center;
  }
  .footer-logos2, .footer-links2, .footer-social2 {
    justify-content: center !important;
    margin-bottom: 5px;
  }
    .footer2 {
    padding-bottom: 100px;
  }
}

@media (max-width: 800px) {
  .footer-containe2r { padding: 0 4vw; }
  .footer-logos2 { gap: 13px; }
  .footer-logo2 { height: 55px; }
  .footer-logo2-second { height: 45px; }
  .footer-links2 { gap: 6px; }
  .footer-social2 { gap: 20px; }
  .footer-separator2 { width: 98%; }
  .footer-copy2 { font-size: 10px;}
    width: 27px;
    height: 27px;
    margin-bottom: 3px;
    display: block;
    filter: grayscale(70%) brightness(1.1);
    transition: filter 0.2s;
    /* pointer-events: none;  شيلها أيضًا */
  }

  .bottom-nav a.active,
  .bottom-nav a:hover {
    color: #9e67ff;
  }
  .bottom-nav a.active .bottom-nav-label,
  .bottom-nav a:hover .bottom-nav-label {
    color: #9e67ff;
    font-weight: bold;
  }
  .bottom-nav a.active .nav-icon,
  .bottom-nav a:hover .nav-icon {
    filter: grayscale(0%) brightness(1.15) drop-shadow(0 0 1px #9e67ff);
  }

  .bottom-nav a.login-nav-btn .nav-icon {
    width: 29px !important;
    height: 29px !important;
    filter: brightness(0) invert(1) !important;
    object-fit: contain;
    display: block;
  }
}

/* ========== SIDE NAV (SIDEBAR) ========== */
/* أخفِ القائمة الجانبية في الشاشات الصغيرة (مثل التطبيقات) */
.side-nav {
  display: none;
}

/* أظهرها فقط في الشاشات الكبيرة (ديسكتوب وأجهزة لوحية كبيرة) */
@media (min-width: 900px) {
  .side-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    background: #fff;
    border-right: 1px solid #f3f3fa;
    min-width: 95px;         /* حجم أنحف ومناسب أكثر */
    max-width: 130px;
    min-height: 100vh;       /* تغطي الطول */
    padding: 24px 10px 24px 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1100;
    box-shadow: 0 0 14px #eee5ff3a;
  }
  .side-nav a {
    color: #afafaf;
    text-align: right;
    text-decoration: none;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    transition: color 0.2s, background 0.18s;
    padding: 7px 8px 7px 0;
    border-radius: 12px 0 0 12px;
    min-width: 85px;
  }
  .side-nav .nav-icon {
    width: 24px;
    height: 24px;
    margin-left: 8px;
    filter: grayscale(70%) brightness(1.08);
    transition: filter 0.2s;
  }
  .side-nav-label {
    font-size: 15px;
    color: #afafaf;
    font-family: 'Almarai', sans-serif;
    transition: color 0.2s;
    font-weight: normal;
    line-height: 1.8;
  }
  .side-nav a.active,
  .side-nav a:hover {
    color: #9e67ff;
    background: #f5f0ff;
  }
  .side-nav a.active .side-nav-label,
  .side-nav a:hover .side-nav-label {
    color: #9e67ff;
    font-weight: bold;
  }
  .side-nav a.active .nav-icon,
  .side-nav a:hover .nav-icon {
    filter: grayscale(0%) brightness(1.15) drop-shadow(0 0 1px #9e67ff);
  }
}

/* اخفاء البوتوم ناف في الشاشات الكبيرة */
@media (min-width: 901px) {
  .bottom-nav {
    display: none !important;
  }
}
@media (max-width: 901px) {
  .side-nav {
    display: none !important;
  }
  .bottom-nav {
    display: flex;
  }
}


button, 
input[type="button"], 
input[type="submit"], 
a, 
.side-menu-btn, 
.login-btn {
  -webkit-tap-highlight-color: transparent; /* إخفاء التحديد الأزرق عند اللمس */
  outline: none;                            /* إخفاء البوردر عند التركيز */
  box-shadow: none !important;              /* إخفاء أي شادو */
}

button:focus, 
button:active, 
a:focus, 
a:active, 
input[type="button"]:focus, 
input[type="submit"]:focus,
input[type="button"]:active, 
input[type="submit"]:active,
.side-menu-btn:focus,
.side-menu-btn:active,
.login-btn:focus,
.login-btn:active {
  outline: none !important;
  box-shadow: none !important;
}

