: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;
}

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

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

nav ul li {
  list-style: none;
}

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

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

main {
  margin: 40px;
  margin-top: 120px;
}

main h1 {
  font-size: 50px;
  font-family: var(--playfair-font);
  text-align: center;
}

thead {
  padding: 20px;
  background-color: #e5e5e5;
}

tbody tr {
  background-color: #f8f8f8;
}

.cart-table th:first-child {
  border-top-left-radius: 10px;
}

.cart-table th:last-child {
  border-top-right-radius: 10px;
}

tbody tr:last-child td:first-child {
  border-bottom-left-radius: 10px;
}

tbody tr:last-child td:last-child {
  border-bottom-right-radius: 10px;
}

tbody tr:last-child td {
  border-bottom: unset;
}

.cart-table {
  width: 100%; /* Tabela rozciąga się na całą dostępną szerokość */
  margin: 20px 0; /* Dodatkowy margines dla czytelności */
  border-collapse: separate;
  border-spacing: 0; /* Aby uniknąć niepotrzebnych odstępów między komórkami */
}

.cart-table th,
.cart-table td {
  text-align: left; /* Wyrównanie tekstu do lewej */
  padding: 8px; /* Padding dla komórek */
  border-bottom: 1px solid #ccc; /* Linia oddzielająca wiersze */
}

.delete-icon {
  cursor: pointer;
}

.delete-icon,
.product-image {
  vertical-align: middle; /* Wyrównanie obrazków wertykalnie do środka komórki */
  margin-right: 10px; /* Odstęp po prawej stronie ikon */
}

.product-image {
  width: 60px; /* Ustawienie szerokości obrazka produktu */
  height: auto; /* Zachowanie proporcji obrazka */
}

input[type="number"] {
  width: 60px; /* Szerokość pola numerycznego */
  padding: 5px; /* Padding pola */
  border: 1px solid #ccc; /* Obramowanie pola */
  margin: 0; /* Usunięcie domyślnego marginesu */
  text-align: center;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none; /* Ukrycie strzałek w Chrome, Safari */
}

input[type="number"] {
  -moz-appearance: textfield; /* Ukrycie strzałek w Firefox */
}

#summary {
  width: 300px;
}

#summary h2:nth-child(2) {
  background-color: #e5e5e5;
  padding: 10px;
  font-weight: 300;
}

#buy_button {
  background-color: var(--red-color);
  color: white;
  padding: 10px;
  width: 100%;
  font-size: 20px;
  border: none;
  cursor: pointer;
}

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: 1000px) {
  #brand {
    margin-left: 0;
  }

  #top_nav {
    flex-direction: column;
  }

  #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: 20px;
    margin-top: 150px;
  }
}
