:root {
  --lato-font: Lato, sans-serif;
  --playfair-font: Playfair Display, sans-serif;
  --red-color: #ef4444;
  --gray-h2-color: #78716c;
  --gray-bottom-nav-color: #c7c7c7;
  --gray-container-color: #fafaf9;
  --icons-bg-color: #fee2e2;
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--lato-font);
  color: black;
}

header {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: white;
  z-index: 99999;
}

#top_nav {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
}

.cart-count {
  position: absolute;
  background-color: var(--red-color);
  color: white;
  border-radius: 50%;
  padding: 5px 5px;
  font-size: 10px;
  font-weight: bold;
  width: 15px;
  height: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  top: -25px;
  right: -10px;
}

#brand {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-left: 20px;
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
}

nav ul {
  display: flex;
  flex-direction: row;
  margin-right: 20px;
  align-items: center;
}

nav ul li {
  list-style: none;
}

nav ul li a {
  text-decoration: none;
  color: black;
  cursor: pointer;
  margin: 10px;
  position: relative;
}

#top_nav nav ul li:nth-child(3) a {
  background-color: var(--red-color);
  padding: 15px 50px 15px 50px;
  color: white;
  border-radius: 8px;
}

#top_nav nav ul li:nth-child(4) a img {
  width: 30px;
  height: 30px;
}

#bottom_nav {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  background-color: var(--gray-bottom-nav-color);
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 260px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  top: 20px;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

#bottom_nav img {
  transform: rotate(-90deg);
  width: 15px;
  height: 15px;
  margin-right: 20px;
  margin-left: 5px;
}

#bottom_nav li {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

main {
  margin: 40px;
  margin-top: 120px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

#all_options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

main > h1 {
  font-size: 70px;
  font-family: var(--playfair-font);
  text-align: center;
  width: 100%;
  margin-bottom: 0;
}

main > h2 {
  width: 100%;
  text-align: center;
}

#search-container {
  position: relative;
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#search-container::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url("../img/icons/search.png");
  background-size: cover;
  z-index: 10;
}

#placeholder-search {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#search,
select {
  width: 100%;
  font-size: 20px;
  border-radius: 8px;
  padding: 10px;
  padding-left: 30px;
  border: 1px solid #e0e0e0;
}

select {
  padding-left: 10px;
  width: 50%;
  font-size: 15px;
}

#common {
  width: 100%;
}

#top {
  margin-top: 80px;
}

#top h1 {
  font-size: 50px;
  font-family: var(--playfair-font);
  margin: 0;
}

#bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.option {
  display: flex;
  flex-direction: column;
  max-width: 30vw;
  border: 1px solid #e7e5e4;
  border-radius: 20px;
  overflow: hidden;
  width: min-content;
  margin: calc(10vw / 4);
  transition: transform 0.5s ease-in-out;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  color: black;
}

.option:hover {
  transform: scale(1.05);
}

.option img {
  height: 21vw;
  width: auto;
  background-size: cover;
}

.option h3 {
  font-size: 20px;
  font-weight: 300;
  text-transform: uppercase;
  text-align: center;
  margin: 20px;
}

footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

footer nav {
  margin: 40px;
  border-bottom: 2px solid black;
  width: 90%;
  display: flex;
  justify-content: center;
}

footer nav ul {
  display: flex;
  flex-direction: row;
  font-size: 18px;
}

footer nav ul li {
  list-style: none;
}

footer nav ul li a {
  text-decoration: none;
  color: black;
}

#links_container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100vw;
}

#links_container .footer_links_container:nth-child(1) a {
  margin: 0 10px 0 10px;
}

.footer_links_container {
  margin: 0 20px 20px 20px;
}

.footer_links_container a {
  color: black;
  text-decoration: none;
}

#mobile-nav {
  display: none;
}

@media (max-width: 600px) {
  #brand {
    margin-left: 0;
  }

  #top_nav {
    flex-direction: column;
  }

  #top_nav nav ul li:nth-child(3) a {
    background-color: unset;
    padding: unset;
    color: black;
    border-radius: unset;
  }

  #desktop-menu {
    display: none;
  }

  #mobile-nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(10px);
  }

  #our_products_mobile {
    border: none;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    padding: 20px;
    color: black;
  }

  #mobile-nav ul {
    list-style-type: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 0;
    margin: 0;
  }

  #mobile-nav .dropdown {
    margin: 10px 0 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #mobile-nav .dropdown-content {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-out;
  }

  #mobile-nav .dropdown-content a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: black;
    background-color: #f9f9f9;
  }

  #mobile-nav .dropdown-content a:hover {
    background-color: #e9e9e9;
  }

  #mobile-nav .dropdown.active .dropdown-content {
    max-height: 500px !important;
    display: flex !important;
    flex-direction: column !important;
  }

  #bottom_nav img {
    margin-top: 0;
  }

  main {
    margin: 0;
    margin-top: 200px;
    text-align: center;
  }

  #search-container,
  select {
    width: 90%;
  }

  #bottom {
    flex-direction: column;
    width: 100vw;
  }

  .option img {
    width: 70vw;
    height: auto;
  }

  .option {
    max-width: unset;
  }
}
