/* Reset e variáveis */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --bg-color: #d1aed8;
  --header-bg: #c396d6;
  --text-color: #333;
  --white: #ffffff;
  --highlight-color: #7f3fbf;
  --footer-bg: #3b0d54;
  --button-bg: #7f3fbf;
  --font-size-large: 1.2rem;
}
body {
  font-family: Arial, sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--header-bg);
  color: var(--white);
}
.logo {
  display: flex;
  align-items: center;
  font-size: var(--font-size-large);
  font-weight: bold;
}
.logo img {
  width: 40px;
  height: 40px;
  margin-right: 0.5rem;
}
nav a {
  margin: 0 1rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}
.header-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.login-btn,
.cart-btn {
  background-color: var(--button-bg);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  display: flex;
  align-items: center;
  font-weight: bold;
  border: none;
  cursor: pointer;
}
.cart-btn img {
  width: 35px;
  height: 35px;
}
.section-title {
  text-align: center;
  margin: 2rem 0;
  font-size: 1.5rem;
  color: var(--highlight-color);
}
.products {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 0 2rem 2rem;
}
.product {
  background-color: var(--header-bg);
  color: var(--white);
  width: 200px;
  padding: 1rem;
  text-align: center;
  border-radius: 8px;
  transition: transform 0.3s ease;
}
.product:hover {
  transform: translateY(-5px);
}
.product img {
  width: 100px;
  height: auto;
  margin-bottom: 1rem;
}
.product p {
  font-size: 0.9rem;
}
footer {
  background-color: var(--footer-bg);
  color: var(--white);
  display: flex;
  justify-content: space-around;
  padding: 2rem;
}
.contact-info,
.payment-methods {
  text-align: center;
}
.contact-info h3,
.payment-methods h3 {
  margin-bottom: 0.5rem;
}
.social-media img {
  width: 24px;
  margin: 0 0.5rem;
}
.payment-methods img {
  width: 24px;
  margin: 0 0.3rem;
}
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }
  nav {
    margin-top: 1rem;
  }
  .products {
    flex-direction: column;
    align-items: center;
  }
  .header-buttons {
    margin-top: 1rem;
  }
}
