* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Space Grotesk", serif;
  font-optical-sizing: auto;
  font-style: normal;
}

body {
  margin: 0;
  padding: 0;
}

.storeCurrency {
  direction: rtl; 
  display: inline-block;
  text-decoration: none;
}

/* .loader-div {
  width: 100%;
  height: 100vh;
  position: fixed;
  background: rgba(0, 0, 0, 0.2);
  z-index: 100; 
  display: none;
} */


.loader {
  width: 64px;
  height: 64px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  background-color: rgba(0, 0, 0, 0.5);
  overflow: hidden;
  z-index: 50;
  display: none;
}

.loader:after {
  content: '';
  position: absolute;
  inset: 8px;
  margin: auto;
  background: #555;
}

.loader:before {
  content: '';
  position: absolute;
  inset: -15px;
  margin: auto;
  background: var(--additional-Color);
  animation: diamondLoader 2s linear infinite;
}

@keyframes diamondLoader {
  0%  ,10% {
    transform: translate(-64px , -64px) rotate(-45deg)
  }
  90% , 100% {
    transform: translate(0px , 0px) rotate(-45deg)
  }
}

.loader.running {
  display: inline-block; 
}

/* .loader.running::before,
.loader.running::after {
} */




#snackbar {
  visibility: hidden;
  min-width: 250px;
  background-color: #d0473e;
  color: #ffffff;
  text-align: center;
  font-weight: 500;
  border-radius: 2px;
  padding: 1rem;
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 100%);
  opacity: 0;
  z-index: 100;
  transition: transform 0.5s ease, opacity 0.5s ease;
  -webkit-transition: transform 0.5s ease, opacity 0.5s ease;
}

#snackbar.show {
  visibility: visible; 
  transform: translate(-50%, -30%);
  opacity: 1;
}






/* ! navbar section */
#navbar-section {
  width: 100vw;
  position: fixed;
  top: 0;
  z-index: 11;
  padding: 0.75rem;
  background-color: transparent;
  transition: top 0.5s ease;
}

#navbar-section nav {
  width: 70%; 
  height: 3.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: auto;
}

#logo {
  width: max-content;
  height: 100%;
  margin-left: 2rem;
  cursor: pointer;
  position: relative;
}

#logo a {
  text-decoration: none;
}

#logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* display: block; */
}

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

.logo-text {
  font-weight: 600;
  color: var(--color-Header);
  font-size: 1.5rem;
  line-height: 2rem;
}

#nav-items {
  display: flex;
  column-gap: 3rem;
}

#nav-items a {
  color: var(--color-Header);
  font-weight: 500;
  text-decoration: none;
  text-transform: capitalize;
  transition: color 0.3s ease, text-decoration 0.3s ease; 
  position: relative;
}

#nav-icons{
  display: flex;
  column-gap: 0.5rem;
  margin-right: 2rem;
}

#nav-icons svg {
  width: 24px;
  height: 24px;
  position: relative;
  display: block;
  cursor: pointer;
}

#search {
  position: relative;
  display: inline-block;
}


#search .close-search-icon.hidden{
  display: none;
}

#search .search-icon.hidden{
  display: none;
} 

.search-input {
  width: 0;
  height: 1.75rem;
  border: 0.125rem solid var(--additional-Color);
  border-radius: 1.25rem;
  padding: 0 0.625rem;
  opacity: 0;
  position: absolute;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  transition: width 0.4s ease, opacity 0.4s ease;
  background-color: transparent;
  color: var(--color-Header);
  outline: none;
  font-size: 1rem;
  box-sizing: border-box;
}

.search-input::placeholder {
  color: #999;
}

#search.active .search-input {
  width: 12.5rem; 
  opacity: 1;
}

#search.active .close-search-icon path{
  stroke: var(--additional-Color);
}

#nav-items a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--additional-Color);
  transition: width 0.4s ease;
}

#nav-items a:hover::after {
  width: 100%;
}

#nav-items a.active::after {
  width: 100%;
}

#nav-items a:hover {
  color: var(--additional-Color);
}

#nav-items a:active,
#nav-items a.active { 
  color: var(--additional-Color);
}

/* #nav-items.hidden {
  display: none;
} */

/*-----------------------------------------------------------*/
#menu-icon {
  display: none;
  width: 25px;
  height: 25px;
}

#menu-panel {
  position: fixed;
  top: 0;
  left: 0; 
  width: 20rem; 
  height: 100%;
  background-color: #ffffff;
  box-shadow: 0.25rem 0 0.5rem rgba(0, 0, 0, 0.1);
  transform: translateX(-100%); 
  transition: transform 0.5s ease-in-out;
  z-index: 30;
  display: flex;
  flex-direction: column;
}

#menu-panel.open {
  transform: translateX(0);
}

#menu-panel.hidden {
  display: none;
}

#menu-header {
  padding: 0.8rem;
  height: 5.4rem;
  border-bottom: 1px solid var(--color-Header);
  display: flex;
  align-items: center;
}

#menu-header h2 {
  flex: 1;
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0;
  text-align: center;
  color: var(--color-Header);
}

.menu-close-icon {
  padding: 0 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}

#menu-body {
  height: 100%;
  text-align: start;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  /* justify-content: space-between; */
  align-items: center;
  row-gap: 1rem;
}

#menu-body a {
  width: 80%;
  padding: 0.5rem 0;
  position: relative;
  color: var(--color-Header);
  border-bottom: 1px solid #999;
  text-decoration: none;
}

#menu-body div {
  width: 80%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#menu-body div a {
  color: var(--white-text);
}

#menu-panel .popup-btn:hover {
  background-color: #ffffff;
  color: var(--color-Header);
}


/*-----------------------------------------------------------*/

.icon path {
  stroke: var(--color-Header);
  transition: stroke 0.3s ease;
}  

#nav-icons .icon:hover path {
  stroke: var(--additional-Color);
}
#nav-icons .icon:active path {
  stroke: var(--additional-Color);
}

#user-account {
  position: relative;
}

.popup {
  position: absolute;
  top: 2.5rem; 
  left: 50%; 
  transform: translateX(-50%);
  background-color: #ffffff;
  border: 1px solid #555555; 
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1); 
  padding: 10px; 
  display: flex;
  flex-direction: column;
  width: 10rem; 
  border-radius: 6px; 
  transition: all 0.3s ease-in-out;
  z-index: 10;
}

.popup.hidden {
  display: none;
}

.popup-btn {
  padding: 0.5rem; 
  margin: 0.5rem 0; 
  background-color: var(--additional-Color);
  color: var(--white-text);
  border: 1px solid var(--additional-Color);
  cursor: pointer;
  border-radius: 0.3rem; 
  transition: background-color 0.3s ease;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  text-align: center;
}

.popup-btn:hover {
  background-color: #ffffff;
  color: var(--color-Header);
}

.popup::before {
  content: "";
  position: absolute;
  top: -0.625rem; 
  left: 50%;
  transform: translateX(-50%);
  border-left: 0.625rem solid transparent; 
  border-right: 0.625rem solid transparent; 
  border-bottom: 0.625rem solid #555555; 
  z-index: 9;
}

/* wishlist */
#wishlist, #shopping-cart {
  position: relative;
}

.cart-qty {
  border-radius: 50%;
  width: 1rem;
  height: 1rem;
  padding: 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--white-text);
  background-color: var(--additional-Color);
  position: absolute;
  top: -4px;
  left: 13px;
}

.cart-qty.hidden {
  display: none;
}

/* shopping cart panel */
.cart-panel {
  position: fixed;
  top: 0;
  right: 0; 
  width: 25rem; 
  height: 100vh;
  background-color: #ffffff;
  box-shadow: -0.25rem 0 0.5rem rgba(0, 0, 0, 0.1);
  transform: translateX(100%); 
  transition: transform 0.5s ease-in-out;
  z-index: 30;
  display: flex;
  flex-direction: column;
}

#cart-panel.open {
  transform: translateX(0);
}

.cart-panel.hidden {
  display: none;
}

.cart-header {
  padding: 0.8rem;
  height: 5.4rem;
  border-bottom: 1px solid #555555;
  display: flex;
  align-items: center;
}

.cart-header h2 {
  flex: 1;
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0;
  text-align: center;
}

.close-icon {
  padding: 0 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}

.cart-body {
  height: 100%;
  position: relative;
}

.cart-contents {
  height: 100%;
  max-height: 73%;
  text-align: center;
  margin-right: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow-y: auto;
}

.cart-contents::-webkit-scrollbar {
  width: 5px;
}

.cart-contents::-webkit-scrollbar-thumb {
  background-color: #777777; 
  border-radius: 2px;
}

.cart-contents::-webkit-scrollbar-track {
  background-color: #dddddd; 
  border-radius: 2px;
}

.cart-empty-state {
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.empty-cart-img {
  width: 100%; 
  margin-bottom: 1rem;
}

.empty-text {
  font-size: 1.25rem;
  font-weight: bold;
  text-align: center;
  color: var(--color-Header);
}

.suggestion-text {
  font-size: 1rem;
  text-align: center;
  color: var(--text-color);
  margin-top: 0.5rem;
}

.cart-item {
  width: 100%;
  padding: 1rem;
  margin: 5px 0;
  display: flex;
  justify-content: space-between;
  column-gap: 1rem;
  border-bottom: 1px solid #ddd; 
}

.cart-item-img {
  width: 5rem;
  height: 5rem;
  position: relative;
}

.item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-info-total {
  display: flex;
  justify-content: space-between;
  padding: 0 0.5rem;
}

.item-name {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-Header);
  text-decoration: none;
  cursor: pointer;
}

.item-price {
  color: var(--text-color);
}

.item-variants {
  font-size: 1rem;
  color: var(--text-color);
  text-transform: uppercase;
}

.delete-item {
  width: 2rem;
  height: 2rem;
  position: absolute;
  top: -0.8rem;
  left: -0.8rem;
  padding: 0.6rem;
  border-radius: 50%;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 30;
  cursor: pointer;
}

.delete-item-svg {
  width: 12px !important; 
  height: 12px !important;
  pointer-events: none;
}

@supports (-moz-appearance: none) {
  #Vector {
    stroke-width: 3 !important; 
  }
}

.cart-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  position: absolute;
  row-gap: 1rem;
  left: 0;
  bottom: 0;
  padding: 1rem;
  background-color: #ffffff;
  z-index: 40;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1)
}

.cart-buttons {
  width: 100%;
  display: flex;
  column-gap: 1rem;
}

.cart-buttons div {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.cart-buttons a {
  flex: 1; 
  text-align: center; 
  text-decoration: none; 
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 2px;
  padding: 0.5rem; 
  border-radius: 5rem;
  border: 2px solid var(--text-color);
}

.cart-buttons a:first-child {
  color: var(--text-color);
}

.cart-buttons a:first-child:hover {
  background-color: var(--text-color);
  color: var(--white-text);
}

.cart-buttons a:last-child {
  background-color: var(--text-color) ;
  color: var(--white-text);
}

.cart-buttons a:last-child:hover {
  background-color: var(--white-text);
  color: var(--text-color);
}

.breadcrumb {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  font-size: 1rem;
}

.breadcrumb li {
  display: inline;
}

.breadcrumb li + li:before {
  content: "/";
  margin: 0 0.5rem;
  color: #555;
}

.breadcrumb a {
  text-decoration: none;
  color: var(--text-color);
}

.breadcrumb a:hover {
  color: var(--additional-Color); 
}

.empty-state {
  width: 70%;
  margin: 5rem auto;
  padding-top: 4rem;
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
  align-items: center;
  text-align: center;
  color: var(--title-color);
}

.empty-state p {
  padding: 1em 1.6em;
  width: 70%;
  margin: 0 auto;
  position: relative;
  background-color: #efefef;
  color: #333;
  border-left: .5em solid rgba(0,0,0,.15);
  font-size: 14px;
  line-height: 1.6em;
}

.empty-state img {
  width: 50%;
}

.empty-state h4 {
  font-size: 2rem;
}

.empty-state p {
  font-size: 1.25rem;
}



/* language selector */
.language-selector {
  position: relative;
  display: inline-block;
  margin-left: 0.5rem;
}

.language-custom-dropdown {
  display: flex;
  align-items: center;
  cursor: pointer;
  border-radius: 5px;
}

.arrow {
  width: 20px !important;
  height: 20px !important;
  transition: transform 0.3s ease;
}

.arrow.flip {
  transform: scaleY(-1); /* Flip the arrow horizontally */
}

.language-dropdown-options {
  width: max-content;
  padding: 10px;
  position: absolute;
  top: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff;
  border: 1px solid #555555;
  border-radius: 6px;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
  z-index: 1;
  transition: all 0.3s ease-in-out;
  display: none;
}

.language-dropdown-options div {
  padding: 5px 10px;
  cursor: pointer;
  line-height: 1.2;
}

.language-dropdown-options div:hover {
  background-color: #f2f2f2;
}
.show {
  display: block;
}

















/* ----------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------- */


/* 
   ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
   ┃ Description: Responsive design          ┃
   ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛  
*/



@media (max-width: 1600px) {
  #navbar-section nav {
    width: 80%;
  }
}



@media (max-width: 1440px) {
  #navbar-section nav {
    width: 90%;
    height: 3rem;
  }

  .empty-state {
    margin: 4.5rem auto;
    padding-top: 3rem;
  }
}



@media (max-width: 1366px) {
  .empty-state {
    margin: 5rem auto;
    padding-top: 2rem;
  }

  .empty-state p {
    width: 80%;
    font-size: 1.125rem;;
  }

  .empty-state img {
    width: 47%;
  }
}



@media (max-width: 1280px) {
  /* html {
    font-size: 15px;
  } */
}


@media (max-width: 1024px) {
  #menu-icon {
    display: inline-block;
  }


  #nav-items {
    display: none;
  }

  #user-account, #wishlist {
    display: none;
  }

  #logo {
    margin-left: 0;
  }

  #nav-icons {
    margin-right: 0;
  }

  #menu-header, .cart-header {
    height: 5rem;
  }

  .empty-state {
    width: 80%;
  }
}


@media (max-width: 768px) {
  .cart-panel {
    width: 20rem;
  }

  .suggestion-text {
    font-size: 0.875rem;
  }

  .empty-text {
    font-size: 1rem;
  }

  .cart-header, #menu-header {
    height: 4.5rem;
  }

  .search-input {
    background-color: white;
  }
}



@media (max-width: 640px) {
  .cart-panel {
    width: 20rem;
  }

  .empty-state p {
    font-size: 1rem;
  }

  .empty-state img {
    width: 67%;
  }

  .empty-state p {
    width: 100%;
  }
}


@media (max-width: 400px) {
  .cart-panel, #menu-panel {
    width: 100%;
  }
}


