@font-face {
  font-family: myfont;
  src: url(../Fonts/EXPO\ ARABIC\ BOOK.TTF);
}

body {
  background-color: rgb(255, 255, 255);
  margin: 0 !important;
  padding: 0 !important;
  touch-action: manipulation; /* Disable double-tap zoom on mobile */
}

* {
  box-sizing: border-box;
  touch-action: manipulation; /* Disable double-tap zoom on all elements */
}

.box {
  max-width: calc(25% - 10px);
  height: 100%;
  color: rgb(0, 0, 0);
  border-radius: 10px;
  margin-bottom: 20px;
}

.box p {
  font-size: 20px;
  font-family: myfont;
  font-weight: 400;
  display: flex;
  max-width: 1240%;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
  margin: auto;
  margin-top: 10px;
}

.container-banners {
  max-width: 1240px;
  display: flex;
  justify-content: center;
  margin: auto;
  margin-top: 100px;
  padding: 2%;
}
.container-banners img {
  max-width: 100%;
  height: 100%;
  max-width: calc(100% - 0px);
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

.container {
  /*this for boxes conatiner */
  max-width: 1240px;
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
  margin: auto;
  flex-direction: row-reverse;
  margin-bottom: 50px;
  gap: 10px;
  padding: 2%;
}

@media (max-width: 980px) {
  /* Adjust for mobile screens */
  .box {
    flex: calc(50% - 10px);
    max-width: 50%;
    height: 100%;
  }

  .box p {
    font-size: 20px;
  }

  .slider-nav a {
    width: 12px !important;
    height: 12px !important;
  }

  .bottom {
    height: 550px !important;
  }

  .reviews {
    font-size: 70px !important;
  }
  .bottom-container {
    flex-direction: column;
    height: 550px !important;
    row-gap: 70px !important;
  }
}

.box:hover img {
  transform: scale(1.03);
  opacity: 1;
}
.box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.upper-headline {
  position: fixed;
  display: flex;
  justify-content: space-between;
  align-items: center;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  /* Removed: background-color: white; - now handled by theme.css */

  z-index: 1000;
}

.logo-link {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001; /* Ensure logo is above other elements */
  cursor: pointer;
  display: inline-block;
}

.logo {
  height: 45px;
  display: block;
  transition: opacity 0.2s ease;
}

.logo:hover,
.logo-link:hover .logo {
  opacity: 0.8; /* Add hover effect */
}

.Login-Container {
  width: 1240px;
  height: 70px;
  display: flex;
  margin: auto;
  justify-content: flex-start; /* Change from space-between */
  align-items: center;

  position: relative;
  gap: 15px; /* Add gap between items */
}

.log-in {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  padding: 0 18px;
  height: 36px;
  outline: none;
  border: none;
  border-radius: 10px;
  background-color: #000000;
  position: absolute;
  right: 35px;
  cursor: pointer;
  font-family: myfont;
  transition: opacity 0.2s ease;
}

.log-in:hover {
  opacity: 0.8;
}

.log-in:active {
  opacity: 0.65;
}

.log-in #login-icon {
  font-size: 14px;
  color: #ffffff;
}

.login-text1 {
  font-family: myfont;
  font-size: 14px;
  color: #ffffff;
  cursor: pointer;
  letter-spacing: 0.3px;
  font-weight: 500;
  margin: 0;
}

/* 3 dots header icon */
.fa-ellipsis-vertical {
  order: 0; /* Keep dots after cart */
  justify-content: start;
  font-size: 24;
  color: #000000;
  left: 10px;
  cursor: pointer;
}

.fa-cart-shopping {
  font-size: 22px;
  color: #000000;
  cursor: pointer;
  margin-right: 0;
  transition:
    transform 0.2s ease,
    color 0.2s ease;
  display: inline-block;
  transform-origin: center;
}

.fa-cart-shopping:hover {
  transform: scale(1.1);
  color: #333333;
}

/* Cart icon wrapper for badge positioning */
.cart-icon-wrapper {
  order: -1; /* Move to the beginning */
  position: relative;
  display: inline-block;
}

/* Cart badge styling */
.cart-badge {
  position: absolute;
  top: -8px;
  left: -8px;
  background-color: #ff0000;
  color: #ffffff;
  border-radius: 25%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  font-family: myfont;
  min-width: 20px;
  padding: 0;
}

/* Professional shake animation for cart icon */
@keyframes cartNotification {
  0% {
    transform: translateX(0) translateY(0) scale(1) rotate(0deg);
  }
  15% {
    transform: translateX(-4px) translateY(-2px) scale(1.1) rotate(-3deg);
  }
  30% {
    transform: translateX(4px) translateY(0) scale(1.05) rotate(3deg);
  }
  45% {
    transform: translateX(-3px) translateY(-1px) scale(1.08) rotate(-2deg);
  }
  60% {
    transform: translateX(3px) translateY(0) scale(1.05) rotate(2deg);
  }
  75% {
    transform: translateX(-2px) translateY(-1px) scale(1.03) rotate(-1deg);
  }
  90% {
    transform: translateX(1px) translateY(0) scale(1.01) rotate(0.5deg);
  }
  100% {
    transform: translateX(0) translateY(0) scale(1) rotate(0deg);
  }
}

.cart-shake {
  animation: cartNotification 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: center;
}

.fa-dolly {
  margin-left: 8px;
  cursor: pointer;
}
.fa-searchengin {
  margin-left: 10px;
}

.whyus {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1240px;
  margin: auto;
}

.reviews {
  font-size: 100px;
  margin: auto;
  font-family: myfont;
  color: #ff3838;
  margin-bottom: 20px;
}

.bottom {
  width: 100%;
  height: 250px;
  background-color: rgb(244, 244, 244);
  margin-bottom: 100px;
  display: flex;
  align-items: center;
}

.bottom-container {
  width: 1240px;
  height: 250px;
  display: flex;
  margin: auto;
  align-items: center;
  justify-content: center;
  gap: 25%;
}

.bi-rocket {
  font-size: 80px;
  color: #ff3838;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.rocket-conatiner p {
  font-size: 15px;
  font-family: myfont;
  display: flex;
  text-align: center;
}

.rocket-conatiner {
  width: 300px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.joystick-container {
  width: 300px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gift-conatiner {
  width: 300px;
  height: 250px;
  display: flex;
  align-items: center;
}

.bi-joystick {
  font-size: 80px;
  color: #ff3838;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.joystick-container p {
  font-size: 15px;
  color: rgb(0, 0, 0);
  font-family: myfont;
  text-align: center;
}

.bi-gift {
  font-size: 80px;
  color: #ff3838;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gift-conatiner p {
  font-size: 15px;
  font-family: myfont;
  color: rgb(0, 0, 0);
  text-align: center;
}

.popup-container {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: rgb(255, 255, 255);
  justify-content: center;
  z-index: 1000;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  flex-direction: column;
}

.info-container {
  width: 100%;
  height: 25%;
  background-color: #ffffff;
  border-radius: 40px;
}

.popup-auth {
  width: 100%;
  height: 75%;
  background-color: #ffffff;
  border-radius: 40px;
}

.close-btn {
  top: 25px;
  right: 25px;
  cursor: pointer;
  font-size: 20px;
  color: #000000;
  position: absolute;
}
.loginLogo {
  width: 50px;
  height: 40px;
  margin-top: 30px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.popup-auth-header {
  display: flex;
  width: 400px;
  height: 400px;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  flex-direction: column;
  gap: 30px;
  margin-top: 75px;
  align-items: center;
}

.LoginHEADER {
  font-family: myfont;
  font-size: 20px;
  font-weight: 500;
  color: #000000;
}

.email {
  width: 330px;
  height: 50px;
  background-color: #ffffff;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  border: 1px solid #a4a4a4;
  padding-left: 12px;
}

.email:focus {
  border-color: #131313;
  border-width: 2px;
  outline: none;
}

.password:focus {
  border-color: #131313;
  border-width: 2px;
  outline: none;
}

.password-container {
  width: 330px;
  height: 50px;
  position: relative;
}

#togglePassword,
#togglePassword-slash {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #666;
}

#togglePassword-slash {
  display: none;
}

.password {
  width: 330px;
  height: 50px;
  background-color: #ffffff;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  border: 1px solid #a4a4a4;
  padding-left: 12px;
}

.email::placeholder {
  font-family: myfont;
  font-size: 15px;
  color: #a4a4a4;
}

.password::placeholder {
  font-family: myfont;
  font-size: 15px;
  color: #a4a4a4;
}

#login-btn {
  width: 330px;
  height: 40px;
  background-color: #000000;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  border: none;
  position: absolute;
  top: 90%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  font-family: myfont;
  color: #ffffff;
  font-size: 17px;
}

.DropDownMenu {
  display: none;
  width: 140px;
  min-height: 100px;
  background: rgb(255, 255, 255);
  justify-content: center;
  z-index: 1000;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  box-shadow: 0 1px 1dvi rgba(0, 0, 0, 0.2);
  padding: 15px;
}

.DropDownMenu ul {
  list-style: none;
  font-family: myfont;
  font-size: 17px;
  padding-left: 15px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.accountIcon {
  font-size: 15px;
  color: #cccccc;
  margin-right: 10px;
}

.OrderIcon {
  font-size: 15px;
  color: #cccccc;
  margin-right: 10px;
}

.questionIcon {
  font-size: 15px;
  color: #cccccc;
  margin-right: 10px;
}

.logoutIcon {
  font-size: 15px;
  color: #ff0000;
  margin-right: 10px;
}

.DropDownMenu ul li a {
  text-decoration: none;
  color: #000000;
}

.DropDownMenu ul li:nth-child(4) a {
  color: #ff0000;
}

.bi-heart {
  font-size: 15px;
  color: #cccccc;
  margin-right: 10px;
}

.email-error {
  position: absolute;
  top: 54%;
  left: 10%;
  font-family: myfont;
  font-size: 13px;
  color: #ff0000;
  display: none;
}

.popup-auth-otp {
  width: 100%;
  height: 75%;
  background-color: #ffffff;
  border-radius: 40px;
  display: none;
}

.login-text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 25px;
  font-family: myfont;
  font-size: 20px;
  font-weight: 500;
  color: #000000;
}

.otp-text {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 25px;
  font-family: myfont;
  font-size: 20px;
  font-weight: 500;
  color: #000000;
  text-align: center;
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  display: none;
  z-index: 999;
}

#overlay.dimmed {
  display: block;
}

.otp-input {
  width: 330px;
  height: 50px;
  background-color: #ffffff;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  border: 1px solid #a4a4a4;
  text-align: center;
}

.popup-auth-otp-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-top: 30%;
}

.otp-input:focus {
  border-color: #131313;
  border-width: 2px;
  outline: none;
}

.otp-input::placeholder {
  font-family: myfont;
  font-size: 15px;
  color: #a4a4a4;
  text-align: center;
  align-items: center;
}

.otp-btn {
  width: 330px;
  height: 40px;
  background-color: #ff3838;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  border: none;
  position: absolute;
  top: 90%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  font-family: myfont;
}

#loader img {
  width: 20%;
  height: 20%;
}

.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  visibility: hidden;
  justify-content: center;
  align-items: center;
  color: #000000;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 40px;
  z-index: 9999;
}

.user-menu-wrapper {
  position: absolute;
  right: 35px; /* Position at max right */
  display: none; /* Hidden by default, shown when logged in */
  z-index: 10;
}

.verifed-logged-in-user {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50px;
  background-color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  position: relative;
  overflow: visible;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: myfont;
  font-size: 16px;
  font-weight: 600;
  z-index: 10;
}

/* User dropdown menu */
.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0px);
  right: 0;
  width: 180px;
  height: auto;
  background-color: #000000;
  border: none;
  border-top: none;
  z-index: 1001;
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.user-dropdown.show {
  display: block;
}

.user-dropdown ul {
  list-style: none;
  font-family: myfont;
  font-size: 14px;
  padding: 6px 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.user-dropdown ul li {
  margin: 0;
  padding: 0;
}

.user-dropdown ul li a {
  display: flex;
  align-items: center;
  padding: 10px 18px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.2s ease;
  gap: 10px;
}

.user-dropdown ul li a:hover {
  background-color: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.user-dropdown ul li a i {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  width: 18px;
  text-align: center;
  transition: color 0.2s ease;
}

.user-dropdown ul li a:hover i {
  color: rgba(255, 255, 255, 0.9);
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 14px;
}

#logout-btn {
  color: #e03e3e !important;
}

#logout-btn i {
  color: #e03e3e !important;
}

#logout-btn:hover {
  background-color: rgba(224, 62, 62, 0.1) !important;
}

/* Expand button and show username on click (when active) */
.verifed-logged-in-user.active {
  width: 180px;
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  text-align: center;
  padding-left: 12px;
  border-bottom: none;
  gap: 8px;
  justify-content: center;
  background-color: #000000;
}

.verifed-logged-in-user::after {
  content: attr(data-username);
  display: none;
  white-space: nowrap;
  font-size: 14px;
  color: #ffffff;
}

/* Show username when button is active (clicked) */
.verifed-logged-in-user.active::after {
  display: inline-block;
  opacity: 1;
}

/* ==================== HEADER RESPONSIVE STYLES ==================== */

/* Tablet - 1024px and below */
@media screen and (max-width: 1024px) {
  .Login-Container {
    width: 95%;
    max-width: 900px;
    padding: 0 15px;
  }

  .log-in {
    right: 15px;
  }

  .user-menu-wrapper {
    right: 15px;
  }

  .verifed-logged-in-user.active {
    width: 170px;
  }

  .user-dropdown {
    width: 170px;
  }
}

/* Mobile - 768px and below */
@media screen and (max-width: 768px) {
  .upper-headline {
    height: 60px;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
  }

  .Login-Container {
    width: 100%;
    height: 60px;
    padding: 0 10px;
    gap: 10px;
  }

  .logo {
    height: 35px;
  }

  .log-in {
    padding: 0 14px;
    height: 32px;
    right: 10px;
    gap: 6px;
  }

  .login-text1 {
    font-size: 13px;
  }

  .log-in #login-icon {
    font-size: 13px;
  }

  .fa-cart-shopping {
    font-size: 20px;
  }

  .fa-ellipsis-vertical {
    font-size: 20px;
  }

  .cart-badge {
    width: 18px;
    height: 18px;
    min-width: 18px;
    font-size: 11px;
    top: -6px;
    left: -6px;
  }

  .user-menu-wrapper {
    right: 10px;
  }

  .verifed-logged-in-user {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }

  .verifed-logged-in-user.active {
    width: 160px;
  }

  .user-dropdown {
    width: 160px;
  }

  /* Popup adjustments for mobile */
  .popup-container {
    width: 90%;
    max-width: 350px;
    height: auto;
    min-height: 350px;
  }

  .popup-auth-header {
    width: 100%;
    max-width: 350px;
    height: auto;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .email,
  .password,
  .password-container,
  .otp-input {
    width: 100%;
    max-width: 290px;
  }

  #login-btn,
  .otp-btn {
    width: 100%;
    max-width: 290px;
  }

  /* Dropdown menu for mobile */
  .DropDownMenu {
    width: 130px;
    padding: 12px;
  }

  .DropDownMenu ul {
    font-size: 15px;
    gap: 20px;
    padding-left: 10px;
  }
}

/* Small Mobile - 480px and below */
@media screen and (max-width: 480px) {
  .upper-headline {
    height: 55px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
  }

  .Login-Container {
    height: 55px;
    padding: 0 8px;
    gap: 8px;
  }

  .logo {
    height: 30px;
  }

  .log-in {
    padding: 0 12px;
    height: 30px;
    right: 8px;
    gap: 5px;
  }

  .login-text1 {
    font-size: 12px;
  }

  .log-in #login-icon {
    font-size: 12px;
  }

  .fa-cart-shopping {
    font-size: 18px;
  }

  .fa-ellipsis-vertical {
    font-size: 18px;
  }

  .cart-badge {
    width: 16px;
    height: 16px;
    min-width: 16px;
    font-size: 10px;
    top: -5px;
    left: -5px;
  }

  .verifed-logged-in-user {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .verifed-logged-in-user.active {
    width: 150px;
  }

  .user-dropdown {
    width: 150px;
  }

  .popup-container {
    width: 95%;
    max-width: 320px;
    min-height: 320px;
    border-radius: 30px;
  }

  .popup-auth-header {
    gap: 25px;
    margin-top: 60px;
  }

  .LoginHEADER {
    font-size: 18px;
  }

  .email,
  .password,
  .password-container,
  .otp-input {
    height: 45px;
    max-width: 260px;
  }

  #login-btn,
  .otp-btn {
    height: 38px;
    max-width: 260px;
    font-size: 15px;
  }
}
