/* ===================================



   إخفاء الهيدر الأصلي
=================================== */
.store-header,
.site-header,
.main-header,
.main-nav-container,
.top-navbar,
header:not(.zain-custom-header) {
  display: none !important;
}

/* ===================================
   مساحة الصفحة تحت الهيدر
=================================== */
body {
  padding-top: 114px !important;
  padding-bottom: 0;

}

/* ===================================
   الهيدر الأساسي
=================================== */
.zain-custom-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 114px;
  background: #ffffff;
  z-index: 999999;
  border-top: 2px solid #9b78c5;
  border-bottom: 1px solid #f4eff8;
  direction: rtl;
}

/* ===================================
   الكونتينر الرئيسي
=================================== */
.zain-header-container {
  width: 100%;
  max-width: 1600px;
  height: 100%;
  margin: 0 auto;
  padding: 0 60px;
  display: grid;
  grid-template-columns: 322px 1fr 190px;
  align-items: center;
  box-sizing: border-box;
  direction: ltr;
}

/* ===================================
   شمال: زر الحجز + البحث + همبرجر
=================================== */
.zain-actions {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 15px;
  direction: ltr;
}

/* ===================================
   زر الحجز
=================================== */
.zain-book-btn {
  width: 245px;
  height: 58px;
  background: #9b7bc7;
  color: #ffffff !important;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: 0.25s ease;
}

.zain-book-btn:hover {
  background: #8d6dbb;
}

/* ===================================
   البحث
=================================== */
.zain-search {
  position: relative;
  display: flex;
  align-items: center;
}

.zain-search-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1.8px solid #9b7bc7;
  background: #ffffff;
  color: #9b7bc7;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.zain-search-btn span {
  width: 24px;
  height: 24px;
  border: 4px solid currentColor;
  border-radius: 50%;
  position: relative;
  display: block;
}

.zain-search-btn span::after {
  content: "";
  width: 13px;
  height: 4px;
  background: currentColor;
  position: absolute;
  right: -10px;
  bottom: -7px;
  transform: rotate(45deg);
  border-radius: 4px;
}

.zain-search-form {
  position: absolute;
  left: 74px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  opacity: 0;
  overflow: hidden;
  transition: 0.25s ease;
  z-index: 50;
}

.zain-search-form input {
  width: 230px;
  height: 46px;
  border: 1px solid #d8cbea;
  border-radius: 999px;
  padding: 0 18px;
  background: #ffffff;
  color: #2f2940;
  font-size: 14px;
  outline: none;
  direction: rtl;
  box-sizing: border-box;
}

.zain-search.active .zain-search-form {
  width: 240px;
  opacity: 1;
}

/* ===================================
   النص: القائمة
=================================== */
.zain-menu {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 43px;
  direction: rtl;
  white-space: nowrap;
}

.zain-menu a {
  color: #111111 !important;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  transition: 0.25s ease;
}

.zain-menu a:hover,
.zain-menu a.active {
  color: #9b7bc7 !important;
}

/* ===================================
   يمين: اللوجو
=================================== */
.zain-logo {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  direction: rtl;
}

.zain-logo a {
  display: flex;
  align-items: center;
  text-decoration: none !important;
}

.zain-logo img {
  width: 138px;
  height: auto;
  max-height: 75px;
  object-fit: contain;
  display: block;
}

/* ===================================
   زر الهمبرجر مخفي على الديسكتوب
=================================== */
.zain-mobile-menu-btn {
  display: none;
}

/* ===================================
   هيدر - شاشات متوسطة
=================================== */
@media (max-width: 1200px) {
  body {
    padding-top: 88px !important;
  }

  .zain-custom-header {
    height: 88px;
  }

  .zain-header-container {
    padding: 0 42px;
    grid-template-columns: 260px 1fr 150px;
  }

  .zain-book-btn {
    width: 195px;
    height: 46px;
    font-size: 15px;
  }

  .zain-search-btn {
    width: 48px;
    height: 48px;
  }

  .zain-search-btn span {
    width: 17px;
    height: 17px;
    border-width: 3px;
  }

  .zain-search-btn span::after {
    width: 10px;
    height: 3px;
    right: -8px;
    bottom: -5px;
  }

  .zain-menu {
    gap: 28px;
  }

  .zain-menu a {
    font-size: 15px;
  }

  .zain-logo img {
    width: 120px;
  }
}

/* ===================================
   هيدر - موبايل
=================================== */
@media (max-width: 768px) {
  body {
    padding-top: 72px !important;
  }

  .zain-custom-header {
    height: 72px !important;
    border-top: 2px solid #9b78c5;
  }

  .zain-header-container {
    width: 100% !important;
    max-width: 100% !important;
    height: 72px !important;
    padding: 0 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    direction: rtl !important;
    box-sizing: border-box !important;
    position: relative !important;
  }

  .zain-logo {
    order: 1 !important;
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    margin-right: 0 !important;
  }

  .zain-logo img {
    width: auto !important;
    height: 48px !important;
    max-width: 115px !important;
    max-height: 52px !important;
    object-fit: contain !important;
  }

  .zain-actions {
    order: 2 !important;
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    direction: ltr !important;
    flex: 0 0 auto !important;
    margin-left: 0 !important;
  }

  .zain-mobile-menu-btn {
    width: 38px !important;
    height: 38px !important;
    border: 1.8px solid #9b7bc7 !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    gap: 4px !important;
    padding: 0 !important;
    cursor: pointer !important;
    position: absolute !important;
    right: 132px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 1000000 !important;
    margin: 0 !important;
  }

  .zain-mobile-menu-btn span {
    width: 17px !important;
    height: 2px !important;
    background: #9b7bc7 !important;
    border-radius: 3px !important;
    display: block !important;
    transition: 0.25s ease !important;
  }

  .zain-mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg) !important;
  }

  .zain-mobile-menu-btn.active span:nth-child(2) {
    opacity: 0 !important;
  }

  .zain-mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg) !important;
  }

  .zain-book-btn {
    width: 118px !important;
    height: 36px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 0 !important;
    white-space: nowrap !important;
  }

  .zain-search-btn {
    width: 36px !important;
    height: 36px !important;
    border-width: 1.8px !important;
  }

  .zain-search-btn span {
    width: 14px !important;
    height: 14px !important;
    border-width: 2px !important;
  }

  .zain-search-btn span::after {
    width: 7px !important;
    height: 2px !important;
    right: -5px !important;
    bottom: -4px !important;
  }

  .zain-menu {
    position: fixed !important;
    top: 72px !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    border-top: 1px solid #f1eef7 !important;
    border-bottom: 1px solid #f1eef7 !important;
    box-shadow: 0 12px 25px rgba(70, 45, 100, 0.08) !important;
    padding: 14px 18px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
    pointer-events: none !important;
    transition: 0.25s ease !important;
    z-index: 999998 !important;
  }

  .zain-menu.mobile-open {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }

  .zain-menu a {
    width: 100% !important;
    padding: 14px 8px !important;
    text-align: right !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-bottom: 1px solid #f3eef8 !important;
    box-sizing: border-box !important;
  }

  .zain-menu a:last-child {
    border-bottom: 0 !important;
  }

  .zain-search-form {
    left: 44px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }

  .zain-search-form input {
    width: 155px !important;
    height: 38px !important;
    font-size: 12px !important;
    padding: 0 14px !important;
  }

  .zain-search.active .zain-search-form {
    width: 165px !important;
    opacity: 1 !important;
  }
}

/* ===================================
   هيدر - موبايل صغير جدًا
=================================== */
@media (max-width: 430px) {
  .zain-header-container {
    padding: 0 10px !important;
  }

  .zain-logo img {
    max-width: 95px !important;
    height: 42px !important;
  }

  .zain-actions {
    gap: 6px !important;
  }

  .zain-book-btn {
    width: 104px !important;
    height: 34px !important;
    font-size: 10px !important;
  }

  .zain-mobile-menu-btn {
    right: 115px !important;
  }

  .zain-mobile-menu-btn,
  .zain-search-btn {
    width: 34px !important;
    height: 34px !important;
  }

  .zain-mobile-menu-btn span {
    width: 15px !important;
  }

  .zain-search-form {
    left: 41px !important;
  }

  .zain-search-form input {
    width: 135px !important;
    height: 36px !important;
  }

  .zain-search.active .zain-search-form {
    width: 145px !important;
  }
}

/* ===================================
   إخفاء الفوتر الأصلي
=================================== */
.store-footer,
.site-footer,
.main-footer,
.footer,
footer:not(.zain-custom-footer) {
  display: none !important;
}

/* ===================================
   الفوتر الجديد
=================================== */
.zain-custom-footer {
  background: #9680c2;
  padding: 70px 80px 50px;
  direction: rtl;
  color: #fff;
  font-family: inherit;
  overflow: hidden;
}

.zain-footer-container {
  max-width: 1150px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 70px;
}

.zain-footer-col {
  flex: 1;
}

.zain-footer-col h3 {
  color: #fff;
  font-size: 28px !important;
  font-weight: 700;
  margin-bottom: 32px;
}

.zain-footer-about {
  text-align: center;
}

.zain-footer-logo {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.zain-footer-logo img {
  max-width: 240px;
  height: auto;
  margin: 0 auto 22px;
  opacity: 0.95;
  display: block;
}

.zain-footer-about p {
  color: #fff;
  font-size: 20px !important;
  line-height: 1.8 !important;
  margin: 0 auto 28px;
  text-align: center;
}

.zain-footer-social {
  display: flex;
  gap: 28px;
  justify-content: center;
  align-items: center;
}

.zain-footer-social a {
  color: #fff;
  font-size: 22px;
  text-decoration: none;
  transition: 0.3s ease;
}

.zain-footer-links {
  text-align: center;
}

.zain-footer-links a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: 21px !important;
  margin-bottom: 24px;
  transition: 0.3s ease;
}

.zain-footer-contact {
  text-align: center;
}

.zain-footer-contact p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.8;
  color: #fff;
}

.zain-footer-contact p i {
  margin-left: 10px;
  font-size: 17px;
  color: #fff;
}

.zain-footer-contact .zain-address {
  max-width: 330px;
  margin-left: auto;
  margin-right: auto;
}

.zain-footer-links a:hover,
.zain-footer-social a:hover {
  opacity: 0.75;
}

/* ===================================
   فوتر - تابلت
=================================== */
@media (max-width: 1200px) {
  .zain-custom-footer {
    padding: 75px 0 65px;
  }

  .zain-footer-container {
    padding: 0 55px;
    gap: 55px;
  }

  .zain-footer-logo img {
    width: 250px;
  }

  .zain-footer-about p {
    font-size: 17px !important;
  }

  .zain-footer-links h3,
  .zain-footer-contact h3 {
    font-size: 24px !important;
  }

  .zain-footer-links a,
  .zain-footer-contact p {
    font-size: 17px !important;
  }
}

/* ===================================
   فوتر - موبايل
=================================== */
@media (max-width: 768px) {
  .zain-custom-footer {
    padding: 45px 20px;
    text-align: center;
  }

  .zain-footer-container {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
  }

  .zain-footer-col,
  .zain-footer-about,
  .zain-footer-links,
  .zain-footer-contact {
    width: 100%;
    max-width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .zain-footer-logo {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .zain-footer-logo img {
    display: block;
    max-width: 220px;
    width: 220px;
    height: auto;
    margin: 0 auto 22px;
  }

  .zain-footer-about p {
    max-width: 330px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    line-height: 2 !important;
    font-size: 13px !important;
  }

  .zain-footer-social {
    justify-content: center;
    width: 100%;
    gap: 24px;
  }

  .zain-footer-social a {
    font-size: 26px;
  }

  .zain-footer-links h3,
  .zain-footer-contact h3 {
    font-size: 20px !important;
    margin-bottom: 24px;
  }

  .zain-footer-links a,
  .zain-footer-contact p {
    font-size: 14px !important;
  }

  .zain-footer-contact .zain-address {
    max-width: 330px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ===================================
   فوتر - موبايل صغير
=================================== */
@media (max-width: 430px) {
  .zain-footer-logo img {
    width: 165px;
  }

  .zain-footer-about p {
    font-size: 14px !important;
  }

  .zain-footer-links h3,
  .zain-footer-contact h3 {
    font-size: 21px !important;
  }

  .zain-footer-links a,
  .zain-footer-contact p {
    font-size: 14px !important;
  }
}