:root {
  --black: #0d0c00;
  --white: #f2f2f2;
  --yellow: #f2bb16;
  --orange: #d99414;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: var(--white);
  color: var(--black);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background-color: var(--yellow);
  padding: 1em 2em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

#logo {
  height: 3em;
}

nav ul {
  display: flex;
  gap: 1em;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: var(--black);
  font-weight: bold;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--orange);
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2em;
  padding: 2em 1em;
  flex-wrap: wrap;
  text-align: center;
}

.text-side {
  max-width: 25em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.text-side h1 {
  font-size: 2rem;
  color: var(--orange);
  margin-bottom: 0.6em;
}

.image-side {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 80em;
  width: 100%;
  overflow: hidden;
}

.image-side img {
  width: 100%;
  max-width: 62.5em;
  height: auto;
  border-radius: 0.6em;
  box-shadow: 0 0 0.6em rgba(0, 0, 0, 0.1);
  animation: slide-in 1.5s ease-out forwards;
}

@keyframes slide-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15em, 1fr));
  gap: 2em;
  width: 100%;
  padding: 2em;
}

.products-grid article {
  background-color: var(--white);
  border: 1px solid #ccc;
  border-radius: 0.5em;
  padding: 1em;
  text-align: center;
  box-shadow: 0 0 0.5em rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.products-grid article:hover {
  transform: translateY(-0.3em);
}

.products-grid img {
  width: 100%;
  max-width: 40em;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.5em;
  margin-bottom: 0.5em;
}

.products-grid h2 {
  font-size: 1.25rem;
  color: var(--orange);
  margin-bottom: 0.3em;
}

.products-grid p {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.5em;
}

.products-grid button {
  background-color: var(--yellow);
  border: none;
  padding: 0.5em 1em;
  font-weight: bold;
  color: var(--black);
  border-radius: 0.3em;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.products-grid button:hover {
  background-color: var(--orange);
}


.cart {
  width: 90%;
  max-width: 60em;
  margin: 0 auto;
  padding: 2em 0;
  text-align: center;
}

.cart h1 {
  font-size: 2rem;
  color: var(--orange);
  margin-bottom: 1em;
}

.cart table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2em;
  font-size: 1rem;
}

.cart th,
.cart td {
  padding: 1em;
  border-bottom: 1px solid #ccc;
  text-align: center;
}

.cart th {
  background-color: var(--yellow);
  color: var(--black);
  font-weight: bold;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1em;
}

.cart-total p {
  font-size: 1.2rem;
  font-weight: bold;
}

.cart-total button {
  background-color: var(--yellow);
  border: none;
  padding: 0.8em 1.5em;
  border-radius: 0.3em;
  font-weight: bold;
  cursor: pointer;
  color: var(--black);
  transition: background-color 0.2s ease;
}

.cart-total button:hover {
  background-color: var(--orange);
}

.contact {
  width: 90%;
  max-width: 40em;
  margin: 0 auto;
  padding: 2em 0;
  text-align: center;
}

.contact h1 {
  font-size: 2rem;
  color: var(--orange);
  margin-bottom: 1em;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  text-align: left;
}

form label {
  font-weight: bold;
  color: var(--black);
}

form input,
form textarea {
  padding: 0.8em;
  border: 1px solid #ccc;
  border-radius: 0.3em;
  font-size: 1em;
  width: 100%;
}

form button {
  align-self: flex-start;
  background-color: var(--yellow);
  color: var(--black);
  font-weight: bold;
  padding: 0.8em 1.5em;
  border: none;
  border-radius: 0.3em;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

form button:hover {
  background-color: var(--orange);
}

.info {
  max-width: 60em;
  margin: 0 auto;
  padding: 2em;
  line-height: 1.6;
}

.info h1 {
  text-align: center;
  font-size: 2rem;
  color: var(--orange);
  margin-bottom: 1.5em;
}

.info article {
  margin-bottom: 2em;
}

.info h2 {
  font-size: 1.3rem;
  color: var(--yellow);
  margin-bottom: 0.5em;
}

.info p {
  font-size: 1em;
}

footer {
  background-color: var(--black);
  color: var(--white);
  text-align: center;
  padding: 1em;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .info,
  .contact,
  .cart {
    padding: 1em;
  }

  .info h1 {
    font-size: 1.5rem;
  }

  .info h2 {
    font-size: 1.1rem;
  }

  form button {
    align-self: center;
  }

  .cart-total {
    flex-direction: column;
    align-items: center;
  }

  .cart table {
    font-size: 0.9rem;
  }

  main {
    flex-direction: column;
    text-align: center;
  }

  .image-side img {
    max-width: 25em;
  }
}
