: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;
  }
}
main .page-title {
  font-size: 6rem;
  color: var(--highlight-color);
  margin-top: 4rem;
  text-align: center;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  padding: 4rem;
}

.product-card {
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.product-image-container {
  position: relative;
  width: 100%;
  height: 200px;
  background: #f7fafc;
}

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

.product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.share-options {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.product-image-container:hover .share-options,
.share-options.active {
  opacity: 1;
  pointer-events: all;
}

.share-button {
  background: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
}

.share-button:hover {
  transform: scale(1.1);
  background-color: #f0f0f0;
}

.share-button img {
  width: 20px;
  height: 20px;
}

.product-info {
  padding: 1rem;
}

.product-category {
  font-size: 1.2rem;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.product-name {
  font-size: 2.1rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.product-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 1rem;
}

.product-info a {
  display: block;
  text-align: center;
  text-decoration: none;
}

.product-button {
  width: 100%;
  background-color: var(--background-color);
  color: white;
  border: none;
  border-radius: 0.25rem;
  font-weight: 500;
  font-size: 1.6rem;
  cursor: pointer;
  transition: background-color 0.2s;
  margin: 0.5rem 0;
  padding: 0.5rem 1rem;
}

.product-button:hover {
  background-color: var(--highlight-color);
}

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