@font-face {
  font-family: 'Quick';
  src: url('../fonts/Quicksand/Quicksand/static/Quicksand-Medium.ttf') format('woff2'),
    url('../fonts/Quicksand/Quicksand/static/Quicksand-Medium.ttf') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Monts';
  src: url('../fonts/Montserrat/static/Montserrat-Medium.ttf') format('woff2'),
    url('../fonts/Montserrat/static/Montserrat-Medium.ttf') format('woff');
  font-weight: normal;
  font-style: normal;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Quick', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

.session-message {
  position: fixed;
  bottom: 20px;
  left: 20px;
  padding: 18px 40px;
  background-color: rgb(255, 40, 40);
  color: white;
  border-radius: 5px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  z-index: 20;
  font-size: 13px;
}

body {
  transition: background-color 0.35s ease;
}


header {
  position: fixed;
  top: 0px;
  left: 0px;
  right: 0px;
  z-index: 200;
  display: grid;
  justify-content: space-between;
  align-items: center;
  transition: 0.35s ease;
}


.menu-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.menu-icon {
  height: 22px;
  width: 22px;
  object-fit: contain;
  filter: invert(1);
  transition: 0.3s ease;
}


body.dark .menu-icon {
  filter: invert(0);
}

@media (max-width: 1100px) {

  header {
    height: 70px;
    grid-template-columns: 1fr auto auto auto 0fr;
    padding: 10px 8px;
    gap: 12px;
    background-color: rgba(255, 255, 255, 0.65);
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  }

  .nav-search-container {
    position: fixed;
    height: 0vh;
    top: -200px;
    left: 0px;
    right: 0px;
    width: 100%;
    z-index: 100;
    display: flex;
    gap: 30px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    justify-content: flex-end;
    padding: 10px 10px 20px 10px;
    transition: 0.35s ease;
  }

  .nav-search-container.show-search-box {
    height: 100vh;
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
  }

  body.light .nav-search-container {
    background-color: white;
  }

  body.dark .nav-search-container {
    background-color: #333;
  }

  .desktop {
    display: none;
  }

  .toggle-search-button-container {
    display: flex;
    justify-content: flex-end;
    width: 100%;
  }

  .suggestions,
  .search-history-container {
    top: 40px;
    left: 0px;
    right: 0px;
    max-height: 89vh;
    border-bottom: solid #ddd 1.5px;
  }

  nav {
    display: none;
  }

  .nav-link {
    width: 100%;
  }

  .logo-image {
    height: 48px;
    width: 38px;
  }

  .registration-container {
    padding: 0px;
  }

  .dropdown-button-container {
    display: flex;
    cursor: pointer;
  }

  .registration-container-before {
    position: fixed;
    top: 78px;
    right: 10px;
    z-index: 20;
  }

  .profile-picture {
    height: 35px;
    width: 35px;
  }

  .header-button {
    margin-right: -10px;
  }

  .info-container {
    top: 60px;
    right: -10px;
  }

  .info-container {
    background-color: whitesmoke;
  }

  body.dark .info-container {
    background-color: #333;
    top: 60px;
    right: -10px;
  }

  .cart-button,
  .theme-button {
    border: solid rgb(149, 149, 149) 1px;
  }


  .theme-button {
    margin-right: -5px;
  }

  .nav-link-family {
    width: 100%;
    flex-direction: column;
  }

  .family-link-container {
    width: 100%;
    opacity: 1;
    padding-left: 20px;
    overflow: hidden;
    height: 0px;
    transition: 0.35s ease;
    gap: 15px;
  }

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

  .nav-link-container:hover .family-link-container {
    height: auto;
    padding-top: 10px;
  }

  .family-link:hover {
    background-color: rgb(231, 231, 219);
  }

  .family-link:active {
    background-color: rgba(231, 231, 219, 0.7);
  }

  body.dark .family-link:hover {
    background-color: rgb(60, 60, 60);
  }

  body.dark .family-link:active {
    background-color: rgba(51, 51, 51, 0.7);
  }

}



@media (min-width: 1100.1px) {

  header {
    grid-template-columns: auto 1fr auto auto auto auto;
    padding: 5px 5px 5px 15px;
    height: 72px;
    gap: 20px;
  }

  .nav-search-container {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .mobile {
    display: none;
  }

  .toggle-search-button-container {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  nav {
    align-items: center;
    display: flex;
    margin-left: 20px;
  }

  .logo {
    font-size: 15x;
  }

  .logo img {
    height: 35px;
  }

  .registration-container {
    padding: 0px 5px;
  }

  .dropdown-button-container {
    display: none;
  }

  .profile-picture {
    height: 36px;
    width: 36px;

  }

  .header-button {
    margin-right: -10px;
  }

  .info-container {
    top: 60px;
    right: -20px;
  }

  .info-container {
    background-color: rgba(255, 255, 255, 0.99);
  }

  body.dark .info-container {
    background-color: rgba(37, 37, 37, 0.99);
    top: 60px;
    right: -16px;
  }

  .toggle-search-button-container {
    padding: 0px 10px;
    max-width: 420px;
    width: 2%;
    transition: 0.3s ease;
  }

  .toggle-search-button-container.open {
    width: 100%;
  }

  .suggestions,
  .search-history-container {
    top: 110%;
    max-width: 360px;
    max-height: 310px;
    border: 1px solid #ddd;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    left: 8px;
  }


  .cart-button,
  .theme-button {
    border: 1px solid rgba(49, 49, 49, 0.495);
  }

  body.dark .cart-button,
  body.dark .theme-button {
    border: 1px solid rgba(203, 203, 203, 0.495);
  }

  .family-link-container {
    width: 190PX;
    border-radius: 5px;
    position: absolute;
    top: 40px;
    left: 8px;
    z-index: 10;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    border: solid rgba(255, 255, 245, 0.217) 1.5px;
    gap: 5px;
  }

  .nav-link-family {
    align-items: center;
  }

  .family-link-container {
    background-color: rgb(255, 255, 245);
  }

  body.dark .family-link-container {
    background-color: rgb(48, 48, 46);
  }

  .nav-link-container:hover .family-link-container {
    opacity: 1;
    pointer-events: all;
  }

  .family-link:hover {
    background-color: rgb(231, 231, 219);
  }

  .family-link:active {
    background-color: rgba(231, 231, 219, 0.7);
  }

  body.dark .family-link:hover {
    background-color: rgb(60, 60, 60);
  }

  body.dark .family-link:active {
    background-color: rgba(51, 51, 51, 0.7);
  }


  .family-link:first-child {
    border-radius: 5px 5px 0px 0px;
  }

  .family-link:last-child {
    border-radius: 0px 0px 5px 5px;
  }

}



#sidebar {
  z-index: 210;
}




.logo-container {
  display: flex;
  justify-content: left;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  color: black;
  text-decoration: none;
  justify-content: flex-start;
  gap: 4px;
  border-radius: 50px;
}

.logo-image {
  object-fit: contain;
}


nav {
  gap: 20px;
  justify-content: center;
}

.nav-link-container {
  display: flex;
  list-style: none;
  position: relative;
  transition: 0.3 ease;
}

.nav-link-container:hover::before {
  right: 0px;
}

.nav-link-container::before {
  content: '';
  position: absolute;
  top: 0px;
  bottom: -10px;
  left: 0px;
  transition: 0.3 ease;
}

.nav-link {
  text-decoration: none;
  color: black;
  font-size: 13px;
  padding: 5px 12px;
  border: solid rgba(0, 0, 0, 0) 1.5px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
  z-index: 2;
  transition: transform 0.25s ease;
}



.nav-link-family {
  display: flex;
  cursor: pointer;
  position: relative;
}



.nav-link-family:hover img,
.nav-link-container:hover img {
  transform: rotateZ(180deg);
}


.family-link-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.family-link {
  text-decoration: none;
  font-size: 13px;
  padding: 7px 15px;
}

.nav-link-family img {
  height: 20px;
  width: 20px;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.35s ease;
}


.toggle-search-button-container {
  gap: 5px;
  transition: 0.3s ease;
  position: relative;
}



.search-bar {
  height: 35px;
  width: 0%;
  display: flex;
  align-items: center;
  border-radius: 50px;
  transition: 0.25s;
}

.search-bar.open {
  width: 100%;
}

.search-box {
  height: 38px;
  width: 0%;
  border-radius: 50px;
  background-color: transparent;
  border: solid rgba(0, 0, 0, 0) 1.5px;
  pointer-events: none;
  transition: 0.25s ease;
  opacity: 0;
  text-indent: 10px;
  border: none !important;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
  outline: none;
  background-color: white;
}

.search-box.searching {
  width: 100%;
  padding-inline: 10px 40px;
  pointer-events: all;
  opacity: 1;
}

body.dark .search-box {
  background-color: #444;
}

.search-button {
  border-radius: 50%;
  padding: 5px;
  border: none;
  background-color: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -40px;
  opacity: 0;
  pointer-events: none;
}

.hide-close-button {
  display: none;
}

.search-button img {
  height: 18px;
  width: 18px;
  object-fit: contain;
  transition: 0.35s ease;
}


.toggle-search-button {
  height: 38px;
  min-width: 38px;
  max-width: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  cursor: pointer;
  transition: 0.35s ease;
  border-radius: 50px;
  overflow: hidden;
  border: none !important;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
  background-color: white;
}

body.dark .toggle-search-button {
  background-color: #444;
}


.search-icon {
  height: 18px;
  width: 18px;
  object-fit: contain;
  transition: 0.35s ease;
}


.cart-container,
.theme-button-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-button,
.theme-button {
  height: 35px;
  width: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
  background-color: transparent;
  cursor: pointer;
  transition: filter 0.25s ease, height 0.1s ease, width 0.1s ease, border 0.35s ease;
}

.cart-button {
  margin-right: -5px;
}

.dropdown-button-container {
  padding: 5px;
  flex-direction: column;
  gap: 4px;
  border: none;
  border-radius: 2px;
  background-color: transparent;
}

.dropdown-bar {
  width: 22px;
  height: 2px;
  background-color: black;
  border-radius: 2px;
}

body.dark .dropdown-bar {
  background-color: white;
}


body.dark .cart-button,
body.dark .theme-button {
  background-color: #333;
}

.cart-icon {
  height: 100%;
  width: 100%;
  object-fit: contain;
  transition: 0.35s ease;
}

.theme-button {
  position: relative;
}

.theme-button::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: solid rgba(51, 51, 51, 0) 6px;
  z-index: 1;
}

.cart-items-number {
  min-width: 5px;
  position: absolute;
  top: -8px;
  right: -5px;
  color: rgb(0, 0, 0);
  padding: 0px 4px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  border: solid rgb(249, 249, 249) 2px;
  transition: 0.35s ease;
  line-height: normal !important;
}

.registration-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.registration-container-before {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.registration-container-before .registration-button {
  padding: 10px 20px;
  border: none;
  border-radius: 50px;
  background-color: #333;
  color: rgb(255, 255, 237);
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  transition: 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.registration-button:hover {
  background-color: #000000;
  color: rgb(255, 255, 226);
  gap: 8px;
}

.registration-container-before .registration-button {
  transition-delay: 0.3s;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.registration-button:hover .registration-icon {
  width: 13px;
}

.registration-icon {
  width: 0px;
  height: 13px;
  object-fit: contain;
  transform: rotateZ(180deg);
  transition: 0.2s ease;
  margin-top: 2px;
}




/************************************************************************************************/
/* These are the styles for the profile picture. */
/***********************************************************************************************/


.profile-picture {
  object-fit: cover;
  border-radius: 50%;
  background-color: rgba(201, 201, 201, 0.6);
  cursor: pointer;
  border: solid #3333335b 1px;
  transition: 0.3s ease;
}

body.dark .profile-picture {
  border: solid #444 1px;
}


.header-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.header-button-title {
  content: 'Profile';
  position: absolute;
  top: 0px;
  z-index: -1;
  background-color: #3b3b3b;
  color: rgb(253, 253, 253) !important;
  border-radius: 5px;
  font-size: 11px;
  padding: 5px 10px;
  transition: 0.3s ease;
  opacity: 0;
  max-width: 0px;
  border: solid rgba(255, 255, 255, 0.2) 1px;
  overflow: hidden;
  pointer-events: none;
}

.user-info {
  display: flex;
  position: relative;
}

.profile-pic-container {
  width: 100%;
  height: 160px;
  overflow: hidden;
  border-radius: 20px 20px 0px 0px;
}

.profile-pic {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.info-container {
  width: 260px;
  height: 325px;
  max-height: 75vh;
  position: absolute;
  flex-direction: column;
  overflow-y: scroll;
  scrollbar-width: none;
  display: flex;
  justify-content: space-between;
  gap: 5px;
  border-radius: 20px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
  transition: 0.35s ease;
}



.info-container button img {
  transform: rotateZ(0deg);
  width: 13px;
}

.info-text-container {
  padding: 0px 10px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.info-container .registration-button {
  gap: 8px;
  flex: 1;
}

.favorites-registration-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

header .favorites-button {
  padding: 10px 20px;
  border: none;
  border-radius: 50px;
  color: rgb(65, 65, 65);
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  border: solid rgb(216, 216, 216) 1px;
  background-color: rgb(247, 247, 247);
}

header .favorites-button:hover {
  box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.1);
}

body.dark header .favorites-button:hover {
  background-color: #333;
}

body.dark header .favorites-button {
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  background-color: #444;
  color: rgba(255, 255, 237, 0.749);
  border: solid rgba(255, 255, 255, 0.1) 1px;
}


body.light .info-container .favorites-button img {
  filter: invert(1);
}

body.dark .settings-button img,
body.dark .logout-button img {
  filter: invert(1);
}

.info-container .registration-button {
  padding: 10px 20px;
  border: solid rgb(209, 209, 209) 1px;
  border-radius: 50px;
  background-color: rgb(241, 241, 241);
  color: rgb(35, 35, 35);
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  transition: 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-container .registration-button:hover {
  background-color: rgb(230, 230, 230);
}

body.dark .info-container .registration-button:hover {
  background-color: rgb(72, 72, 72);
}

body.dark .info-container .registration-button {
  color: rgba(255, 255, 249, 0.925);
  background-color: rgb(50, 50, 50);
  border: solid rgb(96, 96, 96) 1px;
}

.info-container .registration-button .registration-icon {
  filter: invert(0.8);
}


body.dark .info-container .registration-button .registration-icon {
  filter: invert(0.1);
}

.logout-button-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1px
}

.logout-button-container .settings-button {
  border-radius: 50px 2px 2px 50px;
  box-shadow: none;
  padding: 12px 20px;
}

.logout-button-container .settings-button img,
.favorites-button img {
  transition: 0.3s ease;
  height: 15px;
  width: 15px;
}

.logout-button-container .settings-button:hover img {
  height: 15px;
  width: 15px;
}

.logout-button-container .logout-button {
  border-radius: 2px 50px 50px 2px;
  box-shadow: none;
  padding: 12px 20px;
}

.info-container .username {
  max-width: 100%;
  text-align: center;
  font-size: 18px !important;
  margin-bottom: 10px;
  transition: 0.05s ease;
  word-wrap: break-word;
  word-break: break-all;
}

.info-container .email {
  font-size: 12px !important;
  text-align: center;
  transition: 0.05s ease;
}

body.dark .info-container .username,
body.dark .info-container .email {
  color: whitesmoke;
}












/*=========================================================================================*/
/* Code for the suggestions */
/*=========================================================================================*/



.suggestions {
  position: absolute;
  background: white;
  border-radius: 20px;
  width: 100%;
  overflow-y: auto;
  scrollbar-width: none;
  display: none;
  z-index: 1000;
  color: #333;
  font-size: 12px;
  text-align: center;
  padding: 5px;
  border: none;
}

body.dark .suggestions {
  background-color: #333;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.6);
}

.suggestions a {
  display: block;
  padding: 8px 8px 8px 12px;
  color: #333;
  text-decoration: none;
  font-size: 12px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  border-radius: 20px;
  margin-top: 5px;
  box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.15);
  background-color: white;
}

.suggestions a:hover {
  background: #f5f5f5;
}


body.dark .suggestions a {
  background-color: #5a5a5a;
  color: whitesmoke;
}

body.dark .suggestions a:hover {
  background-color: #6d6d6d;
}


.product-type {
  padding: 4px 10px;
  border-radius: 50px;
  color: #545454;
  box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2);
  background-color: rgb(255, 245, 245);
}

body.dark .product-type {
  background-color: rgb(123, 123, 123);
  color: rgb(255, 242, 224);
  box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.2);
}


.search-history-container {
  display: none;
  position: absolute;
  background: white;
  border-radius: 20px;
  width: 100%;
  overflow-y: auto;
  scrollbar-width: none;
  z-index: 200;
  color: #333;
  font-size: 12px;
  text-align: center;
  padding: 5px;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.dark .search-history-container {
  background-color: #333;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.6);
  color: whitesmoke;
}

.search-history-list {
  padding: 8px 0;
}

.search-history-item {
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s;
  border-radius: 20px;
  margin-top: 5px;
  background-color: white;
  box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.15);
  text-align: left;
  gap: 15px;
}

.search-history-item:hover {
  background-color: #f5f5f5;
}

body.dark .search-history-item {
  background-color: #5a5a5a;
  color: whitesmoke;
}

body.dark .search-history-item:hover {
  background-color: #6d6d6d;
}

.history-query {
  flex-grow: 1;
}

.delete-history-item {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 4px;
  margin-left: 8px;
  height: 15px;
  width: 15px;
  background-image: url("../images/icons/trash.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: invert(0.5);
}

.delete-history-item:hover {
  color: #ff4444;
    filter: invert(0.2);
}

body.dark .delete-history-item {
  filter: invert(0.9);
}

body.dark .delete-history-item:hover {
    filter: invert(1);
}

.clear-all-history {
  width: 100%;
  padding: 8px 16px;
  background: #f8f8f8;
  border: none;
  border-bottom: 1px solid #eee;
  color: #ff2828;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  margin-bottom: 5px;
  box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2);
}

.clear-all-history:hover {
  background: #f0f0f0;
}

body.dark .clear-all-history {
  background: #444;
  color: #ff8181;
  border-bottom: none;
}

body.dark .clear-all-history:hover {
  background: #555;
}

.history-empty-message {
  padding: 10px;
  text-align: center;
  color: #6e6e6e;
  font-size: 13px;
}

body.dark .history-empty-message {
  color: #ccc;
}


.no-results {
  padding: 7px;
  font-size: 13px;
}

body.dark .no-results {
  color: whitesmoke;
}


@media (min-width: 768px) {

  .header-button:hover .header-button-title,
  .cart-button:hover .header-button-title,
  .theme-button:hover .header-button-title {
    top: 45px;
    max-width: 100px;
    opacity: 1;
  }

}