:root {
  --fd-blue: #e8ae0e;
  --fd-dark: #333;
  --fd-light-gray: #f5f5f5;
  --fd-white: #fff;
  --fd-red: #db4437;
  --fd-facebook: #4267b2;
  --fd-google: #4285f4;
  --transition: 0.3s all ease;
  --shadow: 0px 0px 10px rgba(0, 0, 0, 0.25);
}

/* Works on Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;

}
p {
    margin: 0;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--fd-blue);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--fd-blue);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Cairo", "Arial", "Helvetica Neue", Helvetica, sans-serif;
  scroll-behavior: smooth;
  /* overscroll-behavior: contain; */
}

body {
  background-color: var(--fd-white);
  color: var(--fd-dark);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

footer {
  margin-top: auto;
}


@media (max-width:480px) {
  footer {
    display: none !important;
  }
}

a {
  text-decoration: none;
  color: var(--fd-dark);
}

.content-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 50px;
}

/* ! NAVBAR */
.header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 10px 50px;
  background: var(--fd-blue) !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color 0.3s, box-shadow 0.3s;
  overflow: visible !important;
}

.header.scrolled {
  background: var(--fd-blue) !important;
  border-bottom: none !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header .nav-links a {
  color: white !important;
  font-weight: 700;
}

.header .nav-links a:hover {
  color: #ffe0b2 !important;
}

.header .lang-btn {
  background: white !important;
  border: none !important;
  color: var(--fd-dark) !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header .lang-btn:hover {
  background: #f5f5f5 !important;
  transform: scale(1.05);
}

.header .icon-btn {
  background-color: white !important;
  border: none !important;
  color: var(--fd-dark) !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header .icon-btn:hover {
  background-color: #f5f5f5 !important;
  transform: scale(1.05);
}



/* !NUMBER OF CART ITEMS  */
#cartItemsNumber {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: var(--fd-red);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.9rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  transform: translate(25%, 25%);
}

/* ! CART ICON CLASS */
#cartIcon {
  position: relative;
  isolation: isolate;
}

/* ! SEARCH INPUT WRAPPER (HOMEPAGE) */


/*! MAP LOCATION BTN  (HOMEPAGE) */

/*! MAP LOCATION SEARCH BTN  (HOMEPAGE) */




/* ! MAP POPUP (GLOBAL) */
#mapModal {
  display: flex;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  z-index: 9999;
  flex-direction: column;
  padding-inline: 25px;
  padding-block: 25px;
  transition: 0.3s all ease;
}

/* ! MAP TOGGLE VISIBILITY CLASS (GLOBAL) */
#mapModal.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}



#mapModal.is-visible #map-figure {
  scale: 1;
}

/* ! MAP WRAPPER (GLOBAL) */

#map-figure {
  scale: 0.9;
  transition: var(--transition);
  width: 100%;
  max-width: 700px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* ! MAP LEAFLET HOLDER (USER LOCATION)*/
#map-shower {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}


.map-content {
  width: 100%;
  background: #fff;
  position: relative;
  height: 60vh;
  max-height: 700px;
  /* border-bottom-left-radius: 10px; */
  /* border-bottom-right-radius: 10px; */
  box-sizing: border-box;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-top: 0;
  overflow: hidden;
}

/*! MAP FORM (USER LOCATION)*/
#locationDetails {
  background-color: white;
  width: 100%;
  min-height: 60vh;
  padding: 25px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;

  .dataField {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 0.5rem;
  }
}

/*! FORM CONTENT WRAPPER (USER LOCATION)  */
.locationDataField {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.5rem;

  input,
  select,
  textarea {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    resize: none;
    max-height: 250px;
    /*direction: rtl;*/
  }

  /*! FORM CONTENT INPUT HOLDER (PHONE NUMBER INPUT)  (USER LOCATION)  */

  .inputHolder {
    position: relative;
    isolation: isolate;
    border-radius: 0.5rem;
    cursor: auto !important;
    max-width: none;

    input {
      /*direction: ltr;*/
      width: 100%;
      padding-left: 4rem;
      cursor: auto !important;
    }
  }

  /* !ICON IN INPUT HOLDER (NOT IMPORTANT) */
  .egyptNum {
    position: absolute;
    left: 1rem;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    bottom: 0;
    margin: auto;
  }

  /* ! RADIO BUTTONS WRAPPER (IN FORM) (USER LOCATION) */
  .gender-selection {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  /* ! RADIO BUTTON */
  .gender-btn {
    padding: 0.25rem 1rem;
    width: 100%;
    font-size: 0.8rem;
    flex-direction: column;
    display: flex;
    align-items: center;
    border-radius: 0.5rem !important;

    i {
      font-size: 0.75rem;
    }
  }
}

/* ! CLOSE BUTTON OF ANYTHING (GLOBAL) */
.close {
  position: absolute;
  top: 0px;
  right: 8px;
  font-size: 40px;
  cursor: pointer;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: 0.3s color ease;

  &:hover {
    color: red;
  }
}

/* ! MAP POPUP TITLE (GLOBAL) */
.map-title {
  background-color: #f8f9fa;
  position: relative;
  z-index: 1000;
  width: 100%;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  display: block;
  padding-block: 6px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  right: 0;
  left: 0;
  font-size: 1rem;

  text-align: center;
}

/* ! LEAFLET */


/* !PIN */
#center-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  background: url("pin.png") no-repeat center / contain;
  transform: translate(-50%, -100%);
  /* shifts pin to look natural */
  pointer-events: none;
}

/* Text under map */
/* ! CONFIRM RED BUTTON IN MAP POPUP (GLOBAL)*/
#confirmLocationBtn {
  /* position: absolute; */
  bottom: 15px;
  left: 50%;
  /* transform: translateX(-50%); */
  padding: 8px 15px;
  background: #db4437;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  z-index: 1000;
  transition: var(--transition);

  &:hover {
    background-color: red;
  }
}

/* ! BUTTON TO CHOOSE LOCATION BEFORE OPENING FORM (USER LOCATION)   */
#setLocationBtn {
  padding: 8px 15px;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  z-index: 1000;
  border: 2px solid var(--fd-blue);
  width: fit-content;
  transition: var(--transition);
  margin: 0;
}

/* ! NOT IMPORTANT */
#map-center-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1000;
  pointer-events: none;
}

/* ! NOT IMPORTANT */

#map-center-indicator .pin {
  width: 20px;
  height: 20px;
  background: red;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
}

/* ! NOT IMPORTANT */

#map-center-indicator .pin::after {
  content: "";
  position: absolute;
  height: 8px;
  width: 2px;
  background-color: red;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
}

/* ! NOT IMPORTANT */

#deliverToText {
  margin-top: 10px;
  background: white;
  padding: 8px 12px;
  text-align: center;
  border-radius: 5px;
  font-size: 13px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

#suggestionsBox li:hover,
.map-title ul li:hover {
  background: #f0f0f0;
}

.no-result {
  color: #777;
  cursor: default;
}

.search-container {
  position: relative;
  /* So autocomplete is positioned under the input */
  overflow: visible !important;
  /* Ensure it's not clipped */
}

#suggestionsBox {
  position: absolute;
  top: calc(100% + 10px);
  /* Just under the input box */
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  z-index: 9999;
  max-height: 220px;
  border-radius: 0.5rem;
  overflow-y: auto;
  display: none;
  /* Will turn to block in JS */
  list-style: none;
  padding: 0;
  margin: 0;
}

#suggestionsBox li {
  padding: 8px;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid #eee;
}

#suggestionsBox li:hover {
  background: #f5f5f5;
}

.current-location-btn {
  bottom: 15px;
  right: 15px;
  background: #007bff;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
  z-index: 9999;
}

.current-location-btn:hover {
  background: #ff6b00;
}


/* ! MAP BUTTONS WRAPPER (BOTTOM BUTTONS CURRENT LOCATION AND CONFIRM LOCATION) (GLOBAL) */
.mapBtns {
  background-color: #f8f9fa;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 0;
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;

  width: 100%;
}

/* ! SEARCH BOX IN MAP (GLOBAL) */
.map-search-box {
  display: flex;
  gap: 8px;
  width: 100%;
  padding: 10px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-top: 0;
  position: relative;
  z-index: 9999;
}

/* ! SEARCH BOX INPUT IN MAP (GLOBAL) */

#map-search-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  outline: none;
}

/* ! SEARCH BOX SEARCH BUTTON IN MAP (GLOBAL) */

#map-search-btn {
  padding: 8px 12px;
  background: var(--fd-blue);
  color: #1a1a1a;
  border: none;
  border-radius: 4px;
  cursor: pointer;

  i {
    scale: 1.5;
  }
}

.map-title ul {
  top: calc(100% + 70px);
  border-radius: 0.5rem;
}

.hidden {
  display: none;
}

/* ROUTE HEADER IN EACH PAGE  (GLOBAL) */
.route {
  display: flex;
  column-gap: 1rem;
  flex-wrap: wrap;
  align-items: baseline;
  color: #777;

  i {
    color: var(--fd-blue);
    scale: 1.125;
  }

  a {
    color: black !important;
  }
}

/* SUBMIT BUTTON STYLE (GLOBAL) */
button[type="submit"],
.submit {
  background-color: var(--fd-blue) !important;
  color: white;
  font-size: 1rem !important;
  max-width: 250px;
  justify-content: center;
  display: flex;
  align-items: center;
  width: 100%;
  margin: auto;
  border: 2px solid transparent;
  transition: var(--transition);
  border-radius: 0.5rem;

  &:hover {
    border-color: var(--fd-blue) !important;
    background-color: transparent !important;
    color: var(--fd-blue) !important;
  }
}

.custom-item .addToCart {
  pointer-events: none;
}

/* CHECKBOX STYLE (GLOBAL) */
input[type="checkbox"] {
  width: fit-content;
  scale: 1.35;
  max-width: 50px !important;
  accent-color: var(--fd-blue);
}

/* ! NAVIGATION BUTTONS OF ANY PAGE TO SLIDE PRODUCTS NEXT AND PREV (GLOBAL) */
.shopNavBtns {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
  width: 100%;
  gap: 1rem;

  #shopNavLeft,
  #shopNavRight {
    background-color: #f8f9fa;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    border-radius: 0.25rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.25rem 0.75rem;
    transition: var(--transition);

    &:hover {
      border-color: transparent;
      background-color: var(--fd-blue);
      color: white;
    }
  }
}


/* ! NAVIGATION BUTTONS OF ANY PAGE TO SLIDE PRODUCTS NEXT AND PREV BUT NUMBERED (GLOBAL) */
/* ! (1,2,3,4,....maxNumber) */

#shopNavNums {
  display: flex;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  overflow: hidden;
  align-items: center;

  button {
    border: none;
    padding: 0.75rem;
    font-size: 1rem;
    transition: var(--transition);

    &:hover {
      border-color: transparent;
      background-color: var(--fd-blue);
      color: white;
    }
  }

  button.active {
    border-color: transparent;
    background-color: var(--fd-blue);
    color: white;
  }
}

/* Page buttons (numbers) */
#shopNavNums button.page-btn {
  border: none;
  background: white;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

/* Active page (highlighted) */
#shopNavNums button.page-btn.active {
  background-color: var(--fd-blue);
  color: white;
}

/* Dots (...) — disabled ALWAYS */
#shopNavNums button.dots {
  border: none;
  background: transparent;
  padding: 0.75rem 1rem;
  color: gray;
  cursor: default;
}

/* Hover effect on normal page buttons */
#shopNavNums button.page-btn:hover:not(.active) {
  background-color: var(--fd-blue);
  color: white;
}




/* ! USER DASHBOARD SECTION (GLOBAL IN ANY PAGE OF DASHBOARD)  */
section#userDashboard {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-inline: 25px;
}

/* ! ANY INPUT FIELD WRAPPER (GLOBAL IN ANY PAGE OF DASHBOARD)   */
.userProfileField {
  padding: 25px;
  padding-top: calc(120px + var(--safe-area-inset-top, 0px));
  max-width: 1024px;
  width: 100%;
  margin-inline: auto;
  box-shadow: var(--shadow);
  border-radius: 0.5rem;
}

/* ! HEADING TITLE (GLOBAL IN ANY PAGE OF DASHBOARD)   */
.profile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 2rem;
  font-weight: bold;
}

.profile-head i {
    cursor: pointer;
    font-size: 1.75rem;
    transition: 0.5s color ease, 0.5s transform ease;
    display: none;
}

.profile-head i:hover {
    color: var(--fd-blue);
    transform: rotate(180deg);
}

.profile-head.active i {
    transform: rotate(180deg);
    color: var(--fd-blue);
}

/* ! FORM WRAPPER GRID IN (USER INFORMATION)  */
.profileContainer {
  display: grid;
  grid-template-columns: 20% 80%;
  margin-top: 20px;
  padding: 25px 0px;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
}

/* ! UL NAVIGATION OF USER DASHBOARD (SHOWS USER INFO / USER LOCATIONS / USER TALABAT PAY / USER CART) */
.profileSettings {
  list-style-type: none;
  border-left: 1px solid rgba(0, 0, 0, 0.2);
  height: fit-content;
position: sticky;
    top: 100px;}

.profileSettings li {
    padding: 10px;
    transition: 0.3s color ease;
}

.profileSettings li:hover a {
    color: var(--fd-blue);
}

.profileSettings li a {
    transition: inherit;
}

.profileSettings li.active {
  a {
    color: var(--fd-blue);
  }

  border-right: 2px solid var(--fd-blue);
}

.route {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  color: #777;

  i {
    color: var(--fd-blue);
    scale: 1.125;
  }

  a {
    color: black !important;
  }
}



button[type="submit"] {
  background-color: var(--fd-blue) !important;
  color: white;
  font-size: 1rem !important;
  max-width: 250px;
  width: 100%;
  margin: auto;
  border-width: 2px;
  transition: var(--transition);
  border-color: transparent !important;

  &:hover {
    border-color: var(--fd-blue) !important;
    background-color: transparent !important;
    color: var(--fd-blue) !important;
  }
}


.editBtns {
  align-items: center;
  flex-wrap: wrap;
  display: flex;
  gap: 1rem;
}

.gender-btn {
  padding: 10px 68px;
  border: 1px solid #ccc;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.gender-btn:last-child {
  border-radius: 0;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.gender-btn:hover {
  background-color: #f0f0f0;
}

input[type="radio"]:checked+label {
  background-color: var(--fd-blue);
  color: white;
  border-color: var(--fd-blue);
}

input[type="radio"] {
  width: 150px;
}

/* BIRTHDAY INPUT (USER INFORMATION) */
.birthday {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 300px;

  svg {
    position: absolute;
    left: 0.5rem;
    top: 0.5rem;
    width: 14px;
  }
}

/* GLOBAL */
.inputHolder {
  position: relative;
  width: 100%;
  border-radius: 0.25rem;
  max-width: 300px;
  isolation: isolate;
  background-color: #e9ecef;
  overflow: hidden;

  input {
    /* cursor: not-allowed; */
    color: rgb(74, 71, 71);

    &:focus {
      outline: none;
    }
  }
}

.labelTag {
  font-size: 1.5rem;
  color: var(--fd-blue);
}

/*  GLOBAL WRAPPER OF INPUTS IN GRIDS */
.dataField {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1rem;
}

/* DATA POPUP (USER INFORMATION) CHANGES PASSWORD AND EMAIL */
#dataEditorPopup {
  position: fixed;
  background-color: rgba(0, 0, 0, 0.5);
  min-height: 100vh;
  width: 100%;
  display: flex;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  inset: 0;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: var(--transition);
  padding-inline: 50px;
  padding-block: 25px;
}

#dataEditorPopup.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* DATA POPUP (USER INFORMATION) WRAPPER */
#dataEditorPopup .dataEditContainer {
  height: fit-content;
  width: 100%;
  max-height: 600px;
  max-width: 700px;
  scale: 0.9;
  transition: var(--transition);
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.7);
  box-shadow: var(--shadow);
  border-radius: 0.5rem;
  overflow: hidden;
}

#dataEditorPopup.is-visible .dataEditContainer {
  scale: 1;
}

/* DATA POPUP (USER INFORMATION) TITLE */

.editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  background-color: rgba(220, 220, 220, 0.6);
  color: var(--fd-blue);
}

/* GLOBAL */
.dataEditContainer {
  padding-inline: 10px;
  padding-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 1rem;

  input {
    width: 100%;
    max-width: 300px;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.5);
    padding: 0.25rem 1rem;
  }

  .password-input-wrapper {
    width: 100%;
    max-width: 300px;
    position: relative;
    isolation: isolate;
  }

  .showPassword {
    position: absolute;
    left: 0;
  }

  label {
    min-width: 178px;
  }

  button {
    outline: 0;
    border-radius: 2rem;
    width: 150px;
    padding-block: 0.35rem !important;
  }
}

/* CANCEL BUTTON IN EDIT POPUP    */
#removeFormChange {
  background-color: transparent;
  border: 1px solid rgba(0, 0, 0, 0.5);
  transition: var(--transition);
  border-top: 1px solid rgba(0, 0, 0, 0.5);

  &:hover {
    background-color: var(--fd-blue);
    color: white;
    border-color: transparent;
  }
}

#sendChange {
  margin: 0;
}

/* BUTTON OF APPLYING STYLES USING THE DATA EDIT POPUP (USER INFORMATION) */
.submitEdit {
  display: flex;
  position: relative;
  isolation: isolate;
  padding-block: 25px;
  justify-content: end;
  align-items: center;
  gap: 0.5rem;
}

.submitEdit::after {
  content: "";
  position: absolute;
  top: 10px;
  background-color: rgba(0, 0, 0, 0.2);
  width: 100%;
  height: 1px;
}


/* (USER LOCATIONS) EMPTY DIV WHEN NO LOCATIONS ARE THERE STATE */
#emptyLocations {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 1.25rem;
  min-height: 300px;
  color: #777;

  i {
    font-size: 3rem;
    position: relative;
  }

  i::after {
    content: "";
    border-radius: 8px;
    rotate: 45deg;
    inset: 0;
    margin: auto;
    width: 8px;
    height: calc(100% + 24px);
    background: linear-gradient(to right, #777 50%, white 50%);
    position: absolute;
  }

  button {
    background-color: var(--fd-blue);
    color: white;
    padding: 0.5rem 1rem;
    outline: 0;
    font-size: 1rem;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    transition: var(--transition);

    &:hover {
      background-color: transparent;
      color: var(--fd-blue);
      border-color: currentColor;
    }
  }
}



#cartShower {
  position: fixed;
  bottom: 0;
  color: white;
  left: 0;
  width: 100%;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 50px;
  z-index: 100;
  background-color: var(--fd-dark);

  .submit {
    margin: 0;
    justify-content: center;
    text-align: center;
  }


}

.submit {
  display: flex;
  overflow: hidden;

  a {
    color: white;
    font-weight: bold;
    transition: inherit;
    width: 100%;
  }

  &:hover {
    a {
      color: var(--fd-blue);
    }
  }


}

#totalPayAmount {
  white-space: nowrap;
  font-size: 1rem;
}




#shoppingCart:not(#openedShopFoods #shoppingCart) {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  inset: 0;
  display: flex;
  overflow-y: auto;
  justify-content: center;
  align-items: center;
  margin: auto;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: 0.5s all ease;
  pointer-events: none;

  #closeCartBtn {
    display: flex !important;
  }
}

#shoppingCart.is-visible {
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;

  #cartHolder {
    scale: 1 !important;
    opacity: 1 !important;
  }
}


#cartHolder:not(#openedShopFoods #shoppingCart #cartHolder) {
  scale: 0.9;
  transition: 0.5s all ease;
  opacity: 0;
}

.cart-toast-3d {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(145deg, var(--fd-blue), #ff7043);
  color: #fff;
  font-weight: bold;
  padding: 12px 20px;
  border-radius: 10px;
  user-select: none;
  font-size: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transform: perspective(500px) rotateX(90deg) scale(0.5);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.5s ease;
  z-index: 9999;
}

.cart-toast-3d.show {
  transform: perspective(500px) rotateX(0deg) scale(1);
  opacity: 1;
}

#openedShopFoods {
  padding-top: 125px;
  padding-inline: 25px;
  /* padding-bottom: 50px; */
  position: relative;
  /* isolation: isolate; */
  margin: auto;
  max-width: 1140px;
  width: 100%;

  h2 {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
    line-height: 1.2;
  }

  #filterIcon {
    display: none;
  }

  .inputHolder {
    max-width: 100%;
  }
}

.availableShop {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  /* border-bottom: 1px solid rgba(0, 0, 0, 0.1); */
  padding: 1rem;
  transition: var(--transition);

  img {
    width: 120px;
    height: 120px;
    aspect-ratio: 1;
    object-position: center;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
  }

  &:hover {
    background-color: #f8f9fa;

    .availableShopName {
      color: var(--fd-blue);
    }
  }
}

.shopDelivery {
  display: flex;
  column-gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  align-items: center;
  white-space: nowrap;
}

.shopPayMethods {
  display: flex;
  gap: 1rem;
  align-items: center;
  /* width: fit-content; */
  margin-top: 0.5rem;

  img {
    width: 40px;
    object-fit: contain;
    height: 30px;
    border-radius: 0 !important;
    border: none !important;
  }
}

.availableShopDesc {
  display: flex;
  flex-direction: column;
  gap: 9px
}

.availableShopName,
.shopFoods {
  line-height: 1.5;
  margin-bottom: 0.5rem;
  transition: var(--transition);
}



.shopRating {
  display: flex;
  gap: 0.25rem;
  font-size: 0.9rem;
  align-items: baseline;

  i {
    color: var(--fd-blue);
  }
}



#shopListsOptions {
  display: none;
  margin-block: 25px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-inline: 0.5rem;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 1rem;
  box-sizing: border-box;
  list-style: none;

  li {
    display: flex;
    gap: 0.5rem;
    text-align: center;
    flex-basis: 25%;
    position: relative;
    font-weight: bold;
    justify-content: center;
    white-space: nowrap;
    align-items: center;
    cursor: pointer;
    padding-bottom: 0.5rem;
    transition: var(--transition);
    font-size: 1.25rem;

    i {
      font-size: 1.5rem;
      color: var(--fd-blue);
    }

    &:hover {
      color: var(--fd-blue);
    }

  }
}



#shopLists li.active {
  color: var(--fd-blue);
  border-color: var(--fd-blue);

  &:after {
    content: '';
    background-color: transparent;
    z-index: -1;
    border-bottom: 5px solid var(--fd-blue);
    width: 100%;
    height: 100%;
    clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
    position: absolute;
    bottom: 0;
    left: 0;
  }
}



#openedShopFoods {
  .inputHolder {
    position: relative;
    width: 100%;
    isolation: isolate;

    .showPassword {
      color: #444 !important;
    }

    input {
      padding: 0.5rem 1rem;
      border-radius: 0.25rem;
      border: 1px solid rgba(0, 0, 0, 0.1);
      width: 100%;
    }

    .showPassword {
      position: absolute;
      left: 0;
      top: 0;
      height: fit-content;
      font-size: 1.25rem;
      bottom: 0;
      margin: auto;
    }
  }
}

#shopGrid {
  display: grid;
  grid-template-columns: 65% 35%;
  /* gap: 1rem; */
}

#shopFoodLists {
  display: grid;
  grid-template-columns: 30% 65%;
  gap: 1rem;
}

#foodListsNav {
  display: flex;
  flex-direction: column;
  position: sticky;
  max-height: 450px;
  overflow-y: auto;
  top: 100px;
  line-height: 1.2;
  height: fit-content;
  border-radius: 0.25rem;
  padding: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.1);

  .foodNavLinks {
    display: flex;
    flex-direction: column;

    a {
      padding: 1rem 0.5rem;
      transition: var(--transition);

      &:hover {
        background-color: #f8f9fa;
        color: var(--fd-blue);
      }
    }
  }
}


#foodListsHolder {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.foodListTitle {
  background-color: white;
  padding: 0.5rem;

  i {
    transition: var(--transition);
    cursor: pointer;

    &:hover {
      rotate: 180deg;

      color: var(--fd-blue);

    }
  }


}

.foodListTitle.active {
  i {
    color: var(--fd-blue);
    rotate: 180deg;
  }
}

.foodDrowdown {
  display: flex;
  flex-direction: column;
  list-style: none;
  gap: 1rem;
  transition: all 1000ms linear(0,
      0.012 0.9%,
      0.05 2%,
      0.411 9.2%,
      0.517 11.8%,
      0.611 14.6%,
      0.694 17.7%,
      0.765 21.1%,
      0.824 24.8%,
      0.872 28.9%,
      0.91 33.4%,
      0.939 38.4%,
      0.977 50.9%,
      0.994 68.4%,
      1);
  transform-origin: bottom;
  interpolate-size: allow-keywords;
overflow: initial;
  height: auto;
}

.foodDrowdown.active {
  height: 0 !important;
  padding: 0 !important;
  overflow: hidden;
}

@media (max-width:480px) {
  .foodDrowdown.active{
    display: grid !important;
  }
}
.foodList {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}



.foodItem {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  column-gap: 1rem;
  row-gap: 4px;
  padding: 1rem 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.1);
  /* border-top: 0px !important; */

  &:hover {
    background-color: #f8f9fa;

    .foodName {
      color: var(--fd-blue);
    }
  }
}

.foodItem.custom-item{
  border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
}
@media(min-width:480px){
  .foodItem.custom-item{
    grid-column:span 2 ;
  }
}
.foodImage {
  display: flex;
  min-width: 80px;
  max-width: 80px;
  height: 80px;
  border-radius: 0.25rem;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.1);

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1;
    border-radius: inherit;
  }
}

.foodDetails {
  display: flex;
  align-items: center;
  column-gap: 1rem;
  row-gap: 4px;
}


.foodName {
  font-size: 0.8rem;
  transition: var(--transition);
}

.foodContent {
  opacity: 0.8;
  font-size: 0.8rem;
  text-wrap: balance;
  line-height: 1.2;
}

.foodNewPrice,
.foodOldPrice {
  white-space: nowrap;
  font-weight: bold;
}

.foodOldPrice {
  opacity: 0.8;
  text-decoration: line-through;
}
.swiper-wrapper:has(.upsell-card-new){
  max-height: 190px;
}

.addToCart {
  display: flex;
  justify-content: center;
  align-items: end;
  height: 100%;
  color: var(--fd-blue);
  font-size: 1.25rem;

  .addToCartBtn {
    height: fit-content;
    cursor: pointer;
    transition: var(--transition);

    &:hover {
      color: var(--fd-red);
      scale: 1.05;
    }
  }
}

.orderedItemsWrapper {
  overflow-x: hidden;
  overflow-y: auto;
  /* max-height: 280px; */
  padding-bottom: 1rem;
}
.addons-badge.suggestion-badge {
    background: #fffdf0;
    color: #d4a017;
    border: 1px dashed #ffc119;
    opacity: 0.9;
}

.addons-badge, .notes-badge {
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-weight: 600;
    cursor: pointer;
    min-height: 26px;
    transition: transform 0.2s, background 0.2s;
}
.addons-badge {
    font-size: 0.7rem;
    color: #ffc119;
    background: #fff9e6;
    padding: 1px 6px;
    border-radius: 4px;
    margin-top: 3px;
    display: inline-flex;
    width: fit-content;}


    .cartItemAmountHandlers {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 2px !important;
}
.cartItemAmountHandlers {
    background-color: white;
    padding: 0.125rem;
    font-size: 0.8rem;
    border-radius: 0.25rem;
    width: fit-content;
    height: fit-content;
    margin: 0;
    overflow: hidden;
    font-weight: bold;
    display: flex;
    align-items: center;
}
.cartItemAmountHandlers {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 4px;
    margin: 0;
    min-width: 85px;
    gap: 6px;}

#cartHolder {
  display: flex;
  flex-direction: column;
  border-radius: 0.5rem;
  overflow: hidden;
  max-width: 600px;
  width: 100%;
  position: sticky;
  isolation: isolate;
  top: 125px;
  height: fit-content;
}

#closeCartBtn {
  width: fit-content;
  right: initial;
  display: none;
  left: 10px;
}

.shoppingCartTitle {
  background-color: var(--fd-blue);
  color: white;

  padding: 0.5rem;
}

#sideCartOverlay{
position: fixed;
background-color: rgba(0, 0, 0, 0.3);
backdrop-filter: blur(4px);
inset: 0;
margin: auto;
width: 100%;
height: 100%;
z-index: 1000;
opacity: 0;
pointer-events: none;
visibility: hidden;
transition: var(--transition);
}

#sideCart{
position: absolute;
height: 100dvh;
width: 100%;
max-width: 550px;
background-color: #fff;
display: flex;
flex-direction: column;
transition: var(--transition);
bottom: 0;
box-shadow: -5px 0 15px rgba(0,0,0,0.1);
z-index: 1001;
#sideCartContent{
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
#inCartItems{
  flex: 1;
  display: flex !important;
  flex-direction: column;
  justify-content: start;
  padding: 0 !important;
  overflow: hidden;
}
.orderedItemsWrapper {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    padding-bottom: 0px;
}
#emptyCart{
  margin-block: auto !important;
  padding: 1.5rem;

}
.side-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--fd-blue);
    border-bottom: 1px solid #eee;

    h1 {
        font-size: 1.5rem;
        font-weight: 900;
        margin: 0;
        color: white;
        text-transform: uppercase;
        background: transparent;
    }

    .close-side-cart {
        background: #f8f9fa;
        border: none;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: var(--transition);
        color: #333;

        &:hover {
            background: #e9ecef;
            color: var(--fd-red);
            transform: rotate(90deg);
        }
    }
    }
    .side-cart-footer-container {
        margin-top: auto;
        border-top: 2px dashed rgba(0, 0, 0, 0.15);
        background: white;
        padding: 1.5rem;
        box-shadow: 0 -5px 15px rgba(0,0,0,0.05);

        .preDeliveryFeeAmount, .deliveryAmount, .afterDeliveryFeeAmount {
            margin-bottom: 0.75rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .totalAmount {
            font-size: 1.25rem;
            color: var(--fd-blue);
            font-weight: 800;
        }

        .confirmCartActions {
            /* margin-top: 1.5rem; */
            display: flex;
            gap: 1rem;

            .submit {
                flex: 1;
                background-color: var(--fd-blue);
                border-radius: 12px;
                height: 50px;
                display: flex;
                align-items: center;
                justify-content: center;
                transition: var(--transition);

                a {
                    color: white;
                    text-decoration: none;
                    font-weight: 700;
                    width: 100%;
                    text-align: center;
                }

                &:hover {
                    background-color: var(--fd-dark);
                    transform: translateY(-2px);
                }
            }

            #emptyCartBtn {
                width: 50px;
                height: 50px;
                border-radius: 12px;
                display: flex;
                align-items: center;
                justify-content: center;
                background: #fff0f0;
                color: #dc3545;
                border: 1px solid #fecaca;
                cursor: pointer;
                font-size: 1.5rem;
                transition: var(--transition);

                &:hover {
                    background: #dc3545;
                    color: white;
                }
            }
        }
    }
}


html[dir='rtl'] #sideCart{
  left: 0;
  transform: translateX(-100%);
}
html[dir='ltr'] #sideCart{
  right: 0;
  transform: translateX(100%);
}

#sideCartOverlay.openSideCart{
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  #sideCart{
    transform: translateX(0) !important;
  }
}


#emptyCart {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
  align-items: center;
                  margin-bottom: 0px !important;
  text-align: center;
  background-color: #f8f9fa;
  font-size: 1rem;
  padding: 2rem;
  font-weight: bold;
  line-height: 1.2;

  i {
    font-size: 5rem;
    color: #444;
  }
}


body:has(#openedShopFoods) #cartShower {
  position: fixed;
  bottom: 0;
  color: white;
  left: 0;
  width: 100%;
  display: none;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  z-index: 100;
  background-color: var(--fd-dark);

  .submit {
    margin: 0;
    justify-content: center;
    text-align: center;
  }


}

.submit {
  display: flex;
  overflow: hidden;

  a {
    color: white;
    font-weight: bold;
    transition: inherit;
    width: 100%;
  }

  &:hover {
    a {
      color: var(--fd-blue);
    }
  }


}

#totalPayAmount {
  white-space: nowrap;
  font-size: 1rem;
}

#foodImageModal {
  width: 400px;
  height: 400px;
  background-color: white;
  position: fixed;
  z-index: 1000;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  opacity: 0;
  transform: translate(0, 0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#foodImageModal.show {
  opacity: 1;
  transform: translate(5px, 5px);
  /* small shift for smooth effect */
}

#foodImageModal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

#foodImageModal::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  background-color: white;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  rotate: 45deg;
  right: -16px;
  top: var(--arrow-top, 50%);
  aspect-ratio: 1;
  z-index: -1;
}

#inCartItems {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
  font-size: 1rem;
  background-color: white;
  margin-bottom: 0px !important;

  font-weight: bold;
  padding-bottom: 1rem;
  line-height: 1.2;
  border-top: 0 !important;
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
}

.orderedItem {
  display: flex;
  gap: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  text-align: center;
  padding:1rem 0.5rem;
  font-size: 0.75rem;
  align-items: center;
  justify-content: space-between;
  background-color: #fdfeff;
}

.removeCartItem {
  color: red;
  border-radius: 50%;
  width: 1rem;
  height: 1rem;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cartItemAmountHandlers {
  background-color: white;
  padding: 0.125rem;
  font-size: 0.8rem;
  border-radius: 0.25rem;
  width: fit-content;
  height: fit-content;
  margin: 0;
  overflow: hidden;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.increase,
.decrease {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.25rem;
  border: none;
  font-weight: bold;
  height: 30px;
  background-color: transparent;
  font-size: 0.75rem;
  border-radius: inherit;
  transition: var(--transition);
  color: var(--fd-blue);

  &:hover {
    background-color: var(--fd-blue);
    color: white;
  }
}

.increase {
  border-right: 1px solid rgba(0, 0, 0, 0.1);

}

.decrease {
  border-left: 1px solid rgba(0, 0, 0, 0.1);

}

.itemAmount {
  border-radius: inherit;
  padding: 0.25rem !important;
  user-select: none;
}

.removeCartItem,
.removeItem {
  color: red;
  border-radius: 50%;
  width: 1rem;
  height: 1rem;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cartShopLabel {
  /* padding-block: 0.5rem; */
  margin-inline: 0.5rem;
  padding-block: 1rem;
  font-weight: bold;
  text-align: center;
  font-size: 1.125rem;
}

#shopFloatingRating{
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: white;
  border-radius: 0.25rem;
  padding: 0.25rem;
  font-size: 0.75rem;
  font-weight: bold;
  width: 20px;
  text-align: center;
}

.preDeliveryFeeAmount,
.deliveryAmount,
.afterDeliveryFeeAmount {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-inline: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.9rem;

  p {
    display: flex;
    gap: 2px;
    align-items: center;
  }
}
.afterDeliveryFeeAmount{
  padding-block: 1rem !important;
}
.confirmCartActions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-inline: 1rem;

  .submit {
    margin: 0;
  }
}

#emptyCartBtn {
  background-color: red;
  border: 2px solid red;
  color: white;
  transition: var(--transition);
  border-radius: 0.25rem;
  font-size: 1.25rem;
  padding: 0rem 0.5rem;

  &:hover {
    background-color: transparent;
    color: red;
  }
}





@media (max-width: 1024px) {
  .content-container {
    padding: 0 20px;
  }

  .header {
    display: flex;
    justify-content: space-between;
  }

  .nav-links {
    display: none;
  }


  /* ** التعديل المطلوب لتقليل الطول ** */
  .hero-section {
    padding-bottom: 15px;
    /* تم تقليله من 60px في العرض الكبير */
    height: 550px;
    /* تم تقليله من 100vh لجعله أقل طولًا */
  }

  /* ** نهاية التعديل ** */
  .hero-section h1 {
    font-size: 28px;
  }

  .hero-section p {
    font-size: 18px;
  }

  .search-box {
    height: 60px;
    flex-wrap: nowrap;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: visible;
    padding: 0;
  }

  .search-box input {
    width: 100%;
    padding: 16px 25px 16px 125px;
    border-radius: 50px;
    border-bottom: none;
    font-size: 19px;
    height: 100%;
  }

  #location-btn,
  #final-search-btn {
    height: 50px;
    width: 50px;
    flex-grow: 0;
    padding: 0;
    font-size: 24px;
    border-radius: 50%;
    margin: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }

  #location-btn {
    left: 61px;
    background-color: var(--fd-dark);
  }

  #final-search-btn {
    left: 5px;
    background-color: var(--fd-blue);
  }

  .categories-section {
    padding: 30px 0;
  }

  .categories-section h2 {
    font-size: 26px;
    margin-bottom: 25px;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .category-card {
    min-height: 180px;
    padding: 20px;
  }

  .card-icon {
    width: 60px;
    height: 60px;
    font-size: 30px;
  }

  .cities-section {
    padding: 40px 0;
  }

  .cities-grid {
    background-image: url("map.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: var(--fd-white);
    gap: 15px;
  }

  .cities-grid::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 1;
    border-radius: 15px;
  }

  .city-card {
    /* إعادة استخدام ظل أضعف لتتناسب مع الشاشة الأصغر */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  }

  .footer-grid {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
  }

  .footer {
    padding: 30px 0;
  }

  /* .orderedItemsWrapper {
    max-height: 460px !important;
  } */

  #inCartItems {
    overflow: auto;
  }

  .userProfileField form {
    padding-inline: 0px !important;
  }

  .profileContainer {
    grid-template-columns: auto !important;

    .profileSettings {
      border: 1px solid rgba(0, 0, 0, 0.1) !important;
      border-top: 0 !important;
      justify-content: center;
      align-items: center;
      position: static !important;
      display: flex;
      flex-direction: column;
      height: 0;
      border-bottom-right-radius: 6px;
      border-bottom-left-radius: 6px;

      transition: all 1000ms linear(0,
          0.012 0.9%,
          0.05 2%,
          0.411 9.2%,
          0.517 11.8%,
          0.611 14.6%,
          0.694 17.7%,
          0.765 21.1%,
          0.824 24.8%,
          0.872 28.9%,
          0.91 33.4%,
          0.939 38.4%,
          0.977 50.9%,
          0.994 68.4%,
          1);
      transform-origin: bottom;
      interpolate-size: allow-keywords;
      overflow: hidden;
    }
  }

  .profileSettings.active {
    height: auto;
  }

  .profileContainer {
    border: none;
  }

  .profileSettings li.active {
    border-right: 0 !important;
    border-bottom: 2px solid var(--fd-blue);
    max-width: 200px;
  }

  .profile-head {
    background-color: #f8f9fa;
    margin-top: 10px;
    border-radius: 6px;
    padding-inline: 10px;

    i {
      display: block !important;
    }
  }

  .editBtns {
    min-width: 100%;
    justify-content: space-between;
    margin-top: 0.5rem;
  }

  .profileContainer {
    padding-block: 0;

    input:not[type="checkbox"],
    .inputHolder,
    .birthday {
      max-width: 100% !important;
    }
  }

  .dataField {
    gap: 0.5rem;
  }

  #selectedLocationShops {
    h2 {
      background-color: #f8f9fa;
      padding: 0.75rem 0.5rem;
      border-radius: 0.5rem;
    }
  }

  .selectedLocationFilters {
    grid-template-columns: 1fr !important;

    .inputHolder {
      max-width: 100% !important;
    }

    .filters {
      position: static !important;
      height: 0;
      padding-inline: 1rem;
      border-bottom-right-radius: 6px;
      border-bottom-left-radius: 6px;
      border: 1px solid transparent;
      border-top: 0;
      transition: all 1000ms linear(0,
          0.012 0.9%,
          0.05 2%,
          0.411 9.2%,
          0.517 11.8%,
          0.611 14.6%,
          0.694 17.7%,
          0.765 21.1%,
          0.824 24.8%,
          0.872 28.9%,
          0.91 33.4%,
          0.939 38.4%,
          0.977 50.9%,
          0.994 68.4%,
          1);
      transform-origin: bottom;
      interpolate-size: allow-keywords;
      overflow: hidden;
    }

    .submit {
      max-width: 250px;
      margin: auto;
    }
  }

  .border {
    margin-top: 0;
    margin-bottom: 1rem;
  }

  .selectedLocationCategories {
    padding-bottom: 1rem;
  }

  .filters.active {
    height: auto;
    border-color: rgba(0, 0, 0, 0.25);
  }

  #filterIcon {
    transition: var(--transition);
    cursor: pointer;
    display: flex !important;
    justify-content: center;
    align-items: center;

    &:hover {
      color: var(--fd-blue);
    }
  }

  #filterIcon.active {
    color: var(--fd-blue);
  }

  #shopGrid {
    grid-template-columns: 1fr !important;
  }

  #foodImageModal {
    display: none !important;
  }

  /* CART STYLES */
  body:has(#openedShopFoods) #cartShower {
    display: flex !important;
  }

  #openedShopFoods {
    #shoppingCart {
      position: fixed;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      z-index: 1000;
      inset: 0;
      display: flex;
      overflow-y: auto;
      justify-content: center;
      align-items: center;
      margin: auto;
      padding: 1rem;
      opacity: 0;
      visibility: hidden;
      transition: 0.5s all ease;
      pointer-events: none;

      #closeCartBtn {
        display: flex !important;
      }
    }

    #shoppingCart.is-visible {
      opacity: 1;
      pointer-events: auto;
      visibility: visible;

      #cartHolder {
        scale: 1 !important;
        opacity: 1 !important;
      }
    }


    #cartHolder {
      scale: 0.9;
      transition: 0.5s all ease;
      opacity: 0;
    }

  }


  .checkoutDetails .paymentDetails {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;

    #cartHolder {
      max-width: 100% !important;
      position: static !important;
    }
  }


}


@media(max-width: 768px) {
  .specialOrder {
    display: none !important;
  }

}


@media (max-width: 600px) {
  .modal-content {
    max-width: 320px;
    padding: 20px;
  }

  .close-btn {
    font-size: 20px;
  }

  .login-heading {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .social-buttons button {
    padding: 10px;
    font-size: 15px;
  }

  .line {
    margin: 10px 0 8px;
  }

  .login-form-row {
    padding: 6px 8px;
    margin-bottom: 8px;
  }

  .login-form-row input {
    font-size: 15px;
    padding: 3px 0;
  }

  .login-form-row i {
    font-size: 16px;
    margin-left: 8px;
  }

  .showPassword,
  .forgot-password {
    font-size: 13px;
  }

  .login-button {
    padding: 12px;
    font-size: 16px;
    margin: 10px 0 5px;
  }

  .register-text {
    font-size: 14px;
  }

  .login_form {
    padding: 25px !important;
  }

  #selectedLocationShops h2,
  .profile-head {
    font-size: 0.9rem !important;
  }

  #foodListsNav {
    display: none !important;
  }

  #shopFoodLists {
    grid-template-columns: 1fr !important;
  }

  #shopListsOptions li {
    font-size: 1rem !important;

    i {
      display: none;
    }
  }

  .availableShop {
    img {
      width: 120px !important;
      height: 120px !important;
    }

    .shopDelivery {
      font-size: 0.75rem !important;
    }

    .shopRating {
      font-size: 0.75rem;
    }

    .shopFoods {
      font-size: 0.8rem !important;
    }

    .availableShopName {
      font-size: 1rem !important;
    }
  }

  .shopPayMethods {
    img {
      width: 30px !important;
      height: 30px !important;
    }
  }

  #shoppingCart {
    padding: 0 !important;
  }

  #cartHolder,
  #inCartItems {
    height: 100% !important;
  }

  #cartHolder {
    border-radius: 0 !important;
  }
}

@media (max-width: 480px) {
  #confirmLocationBtn {
    left: 15px;
    transform: none;
  }

  #mapModal {
    padding-inline: 10px;
  }

  .map-content {
    max-height: 450px;
  }

  #location-btn,
  #final-search-btn {
    scale: 0.9;
    transform-origin: top;
  }

  .gender-selection:not(.locationDataField .gender-selection) {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
  }

  .gender-btn {
    border-radius: 0.5rem;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    width: 100% !important;
  }

  .gender-btn:last-child {
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
  }

  #userDashboard {
    padding-inline: 10px !important;
  }

  #dataEditorPopup {
    padding-inline: 10px;
  }

  #mapModal button {
    font-size: 0.8rem !important;
  }

  #shopsHolder {
    grid-template-columns: repeat(2, minmax(120px, 1fr)) !important;
  }

  .availableShop {
    align-items: center;
    /* flex-wrap: wrap; */
    justify-content: center;
        position: relative;
    padding-bottom: 4rem;
    /* padding-top: 0; */
    /* padding-inline: 0; */
    .shopFoods,.shopDelivery{
      font-size: 0.6rem !important;
    }

  }
.status-badge{
  font-size: 0.5rem;
}

.availableShopDesc{
  gap: 4px;
}



  .trustBadge,
  .shopPayMethods {
    font-size: 0.6rem;
    white-space: nowrap;
        position: absolute;
    bottom: 0.8rem;
    right: 0.5rem;
}



  .addToCart {
    align-items: start !important;
    height: fit-content !important;
  }




  #cartShower {
    padding-inline: 1rem;
  }

  #totalPayAmount {
    font-size: 0.9rem;
  }



}


@media (max-width:360px){
     .pay-badge {
      font-size: 0.5rem !important;
     }


}


/* EN STYLES */
html[dir="ltr"],
html[lang="en"],
body[dir="ltr"] {
  .login-form-row {
    input {
      text-align: left;
    }

    i {
      margin-right: 10px;
    }
  }


  .profileSettings {
    border-left: 0 !important;
    border-right: 1px solid rgba(0, 0, 0, 0.1) !important;
  }

  .profileSettings li.active {
    border-right: 0 !important;
    border-left: 2px solid var(--fd-blue);
  }

  .profileContainer form {
    padding-right: 0;
    padding-left: 25px;
  }

  .gender-btn {
    border-radius: 0.5rem;
  }

  .birthday svg {
    left: initial;
    right: 0.5rem;
  }

  .route i {
    rotate: 180deg;
  }

  .locationDataField {

    input,
    select,
    textare {
      /*direction: ltr;*/
    }
  }

  .dataEditContainer form {
    .showPassword {
      left: initial;
      right: 1rem;
    }
  }
}

/* EN MEDIA */
html[dir="ltr"],
html[lang="en"],
body[dir="ltr"] {}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  padding: 1rem;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}


.modal-overlay.is-visible {
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

.modal-content {
  background-color: white;
  padding: 1rem;
  border-radius: 1rem;
  width: 100%;
  max-width: 450px;
}


.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--fd-dark);
  padding: 0;
  transition: color 0.2s;
}

.close-btn:hover {
  color: var(--fd-blue);
}

.login-heading {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 15px;
  text-align: center;
  color: var(--fd-dark);
}

.social-buttons button {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.social-buttons button:hover {
  opacity: 1;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-buttons .google {
  background-color: var(--fd-white);
  color: var(--fd-dark);
  border: 1px solid #ccc;
}

.social-buttons .google i {
  color: var(--fd-red);
  font-size: 18px;
}

.social-buttons .facebook {
  background-color: var(--fd-facebook);
  color: var(--fd-white);
  border: 1px solid var(--fd-facebook);
}

.social-buttons .instagram {
  background: #d6249f;
  background: radial-gradient(circle at 30% 107%,
      #fdf497 0%,
      #fdf497 5%,
      #fd5949 45%,
      #d6249f 60%,
      #285aeb 90%);
  color: var(--fd-white);
  border: 1px solid #d6249f;
}

.line {
  text-align: center;
  margin: 15px 0 10px;
  position: relative;
}

.line span {
  background-color: var(--fd-white);
  padding: 0 10px;
  font-size: 16px;
  font-weight: 500;
  position: relative;
  z-index: 10;
}

.line::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background-color: #ccc;
  transform: translateY(-50%);
  z-index: 5;
}

.login-form-row {
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  background-color: var(--fd-light-gray);
}

.login-form-row i {
  color: var(--fd-dark);
  font-size: 18px;
  margin-left: 10px;
}

.login-form-row input {
  border: none;
  outline: none;
  width: 100%;
  padding: 5px 0;
  background-color: transparent;
  font-size: 16px;
  text-align: right;
}

.password-input-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.showPassword {
  font-size: 14px;
  cursor: pointer;
  color: var(--fd-blue);
  font-weight: 700;
  padding-left: 10px;
}

.form-options {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 15px;
}

.forgot-password {
  font-size: 14px;
  color: var(--fd-blue);
  cursor: pointer;
  font-weight: 600;
}

.login-button {
  background-color: var(--fd-blue);
  color: var(--fd-white);
  padding: 14px;
  border: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.2s;
  margin: 10px 0 5px;
}

.login-button:hover {
  background-color: #ffa000;
}

a,
button {
  cursor: pointer;
}

.register-text {
  text-align: center;
  font-size: 16px;
  margin-top: 10px;
}

.register-text a {
  color: var(--fd-blue);
  font-weight: 700;
  transition: color 0.2s;
}

.register-text a:hover {
  color: #ffa000;
}


/* login page styles */
.login_form {
  min-height: calc(100vh - 100px);
  padding: 50px;
  padding-top: 125px;
  display: flex;
  justify-content: center;
  align-content: center;
}

.login_form .modal-body {
  width: 100%;
  max-width: 900px;
  display: flex;
  justify-content: center;
  align-items: center;

  >* {
    width: 100%;
  }
}
@media(max-width:480px){
  .login-form{
        padding-top: 50px !important;
        min-height: 100% !important;
        height: 100%;
  }
}

.invalid {
  border: 2px solid #e63946;
  background-color: #fff5f5;
}

html[dir="ltr"] {
  .login-form-row {
    input {
      text-align: left;
    }

    i {
      margin-right: 10px;
    }
  }
}

.invalid {
  border: 2px solid #e63946;
  background-color: #fff5f5;
}

.header i {
  pointer-events: none;
}

/* Tailwind compatibility styles for user wave SVG */
.relative {
  position: relative;
}
.block {
  display: block;
}
.w-\[calc\(100\%\+1\.3px\)\] {
  width: calc(100% + 1.3px);
}
.h-\[50px\] {
  height: 50px;
}

@media (min-width: 768px) {
  .md\:h-\[80px\] {
    height: 80px;
  }
}

.hidden {
  display: none !important;
}

@media (max-width: 575px) {
  .xs\:hidden {
    display: none !important;
  }
  .xs\:block {
    display: block !important;
  }
}

@media (min-width: 576px) {
  .hidden.xs\:block {
    display: none !important;
  }
}

.svg-wave {
  position: absolute;
  bottom: -40px; /* slightly overlap to avoid any tiny 1px line gaps */
  left: 0;
  width: 100%;
  height: 40px;
  transform: rotate(180deg);
  pointer-events: none;
  z-index: 99;
}

@media(max-width:480px){
  .svg-wave {
    
  }

}


