:root {
  --background-color: #02474c;
  --highlight-color: #1c7f94;
}

h5 {
  line-height: 1.5;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

*::-webkit-scrollbar {
  width: 0;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: transparent;
  border: none;
}

html {
  font-family: "Roboto", sans-serif;
  font-size: 62.5%;
  line-height: 1.5;
}

body {
  background-image: linear-gradient(160deg, #ffffff 0%, #f5f8f9 100%);
}

main {
  width: 100%;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin: 2rem 0;
}

.loader-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 999;
}

.loader {
  border: 8px solid #f3f3f3;
  border-top: 8px solid var(--highlight-color);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 0.5s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
header {
  width: 100vw;
  height: 10vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: white;
}

.brand {
  height: 95%;
  font-size: 3rem;
  padding: 0 2rem;
}

.brand .logo {
  height: 100%;
}

.brand .logo:hover {
  opacity: 0.8;
}

.menu {
  display: flex;
  height: 100%;
  position: fixed;
  top: 0;
  left: -50%;
  background: #f8f6f3;
  z-index: 5;
  transition: left 0.3s ease-in-out;
}

.menu ul {
  height: 100%;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 300;
  background-color: var(--background-color);
  padding: 2rem;
}

.menu ul a {
  color: #f8f6f3;
  text-decoration: none;
  padding: 2rem;
  transition: all 0.3s ease;
}

.menu ul a:hover {
  color: var(--highlight-color);
  text-decoration-line: underline;
}

#menu-toggle {
  display: block;
  background: transparent;
  border: none;
  color: var(--highlight-color);
  font-size: 2.5rem;
  padding: 1rem;
}

#menu-toggle:hover {
  cursor: pointer;
}

@media screen and (min-width: 615px) {
  header {
    height: 15vh;
  }
  .brand {
    padding: 0 2rem;
  }
}
@media screen and (min-width: 800px) {
  #menu-toggle {
    display: none;
  }
  .menu {
    display: flex;
    height: 100%;
    position: static;
    background: transparent;
  }
  .menu ul {
    flex-direction: row;
    background-color: transparent;
  }
  .menu ul a {
    color: #333;
  }
}
#highlights {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  text-align: center;
  color: white;
  background: var(--background-color);
}

.highlight {
  padding: 2rem;
}

#highlights .highlight .icon {
  font-size: 3rem;
}

#highlights .highlight h3 {
  font-size: 2rem;
}

#highlights .highlight p {
  font-size: 1.4rem;
}

@media screen and (min-width: 615px) {
  #highlights {
    flex-direction: row;
  }
  .highlight {
    padding: 2rem;
  }
  #highlights .highlight .icon {
    font-size: 4rem;
  }
  #highlights .highlight h3 {
    font-size: 2rem;
  }
  #highlights .highlight p {
    font-size: 1.6rem;
  }
}
main {
  text-align: center;
}

.product_card .add-to-cart {
  font-size: 1.4rem;
  color: white;
  background-color: var(--highlight-color);
  border-radius: 1rem;
  margin-left: 1rem;
  padding: 1rem;
}

.product_card .add-to-cart:hover {
  background-color: var(--background-color);
}

#entry_point {
  text-align: center;
  margin: 4rem 0;
}

#entry_point .container {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
}

#entry_point .container img {
  max-width: 90%;
  margin: 4rem 0;
}

.container .info {
  padding: 0 2rem;
}

.info .title {
  font-size: 3.6rem;
  line-height: 1.2;
}

.info .subtitle {
  font-size: 1.7rem;
  font-weight: 400;
}

.info .text {
  font-size: 1.6rem;
  font-weight: 100;
  line-height: 1.8;
  margin: 3rem 0;
}

.shop-now_btn {
  font-size: 2rem;
  color: white;
  background: var(--highlight-color);
  border: none;
  border-radius: 1rem;
  padding: 2rem 4rem;
  text-decoration: none;
}

.shop-now_btn:hover {
  cursor: pointer;
  background: var(--background-color);
  transition: all 0.2s ease;
}

.section-title {
  font-size: 3rem;
}

.product_wrapper {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
}

.product_card {
  width: 70%;
}

.product_card img {
  width: 100%;
  height: 50%;
  object-fit: contain;
  margin-bottom: 2rem;
}

.product_card img:hover {
  opacity: 0.7;
}

.product_card .category {
  font-size: 1.6rem;
  color: #898989;
}

.product_card a {
  text-decoration: none;
  color: #000000;
}

.product_card h4 {
  font-size: 1.8rem;
  padding: 1rem;
}

.product_card .price {
  font-size: 1.7rem;
  color: #333333;
}

.cta {
  padding: 2rem 0;
}

.cta .container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  color: white;
  background-color: black;
  font-size: 2rem;
  text-align: center;
  padding: 2rem 1rem;
}

.shop-now_btn {
  font-size: 2rem;
  padding: 1rem 2rem;
}

.reviews_container {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  margin-bottom: 6rem;
}

.reviews_container .review {
  width: 95%;
  margin: 4rem 0;
}

.reviews_container .review p {
  font-size: 1.6rem;
  font-weight: 300;
  padding: 2rem 0;
}

.reviews_container .review .profile {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
}

.reviews_container .review .profile img {
  width: 5rem;
  border-radius: 50%;
  margin: 0 2rem;
}

@media screen and (min-width: 615px) {
  #entry_point .container {
    flex-direction: row;
  }
  #entry_point .container img {
    max-width: 50%;
  }
  .product_card {
    width: 40%;
  }
}
@media screen and (min-width: 800px) {
  .section-title {
    font-size: 4rem;
    margin: 4rem 0;
  }
  #entry_point {
    text-align: left;
    margin: 4rem;
  }
  .info .title {
    font-size: 5.2rem;
  }
  .product_card {
    width: 20%;
  }
  .cta .container {
    flex-direction: row;
    font-size: 3rem;
  }
  .shop-now_btn {
    padding: 2rem 4rem;
  }
  .reviews_container {
    flex-direction: row;
  }
  .reviews_container .review {
    width: 25%;
  }
}
footer {
  position: relative;
  bottom: 0;
  width: 100vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
  background-color: var(--background-color);
  font-size: 1.2rem;
  padding: 1rem;
}

footer .footer-brand {
  width: 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

footer .footer-brand img {
  width: 100%;
  max-width: 100px;
}

.social a {
  color: white;
  padding: 0.5rem;
}

.social a:hover {
  color: var(--highlight-color);
  opacity: 0.5;
}

footer .middle {
  width: 60%;
}

footer .project {
  width: 20%;
}

@media screen and (min-width: 800px) {
  footer {
    font-size: 2rem;
  }
}
.cart {
  position: fixed;
  top: 12rem;
  right: 2rem;
  background-color: var(--highlight-color);
  color: white;
  font-size: 2rem;
  padding: 2rem;
  border-radius: 2rem;
  cursor: pointer;
  transition: top 0.3s ease;
  z-index: 2;
}

.cart:hover {
  background-color: var(--background-color);
}

.cart.sticky {
  top: 2rem;
}

.modal {
  display: none;
  position: fixed;
  z-index: 3;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 95%;
}

.modal-content h2 {
  font-size: 2rem;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

#cart-content p {
  font-size: 2rem;
  color: #888;
}

/* Add styles for the cart table */
table {
  width: 100%;
  font-size: 1rem;
  border-collapse: collapse;
  margin-top: 20px;
}

th, td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

th {
  background-color: #f2f2f2;
}

/* Add styles for the remove button */
.remove-button {
  background-color: #e74c3c;
  color: #fff;
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.remove-button:hover {
  background-color: #c0392b;
}

/* Add styles for the checkout button */
.checkout-button {
  background-color: #28a745;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.checkout-button:hover {
  background-color: #218838;
}
