/* ========================================
   Apresentação da loja
======================================== */

.hero {
  padding: 60px 20px 45px;
  text-align: center;
}

.hero-label {
  display: block;
  color: var(--accent-text);
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.hero h1 {
  font-size: 38px;
  color: var(--primary);
  margin-bottom: 15px;
}

.hero p {
  max-width: 650px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

/* ========================================
   Catálogo
======================================== */

.catalog {
  padding-top: 20px;
  padding-bottom: 60px;
}

.catalog h2 {
  font-size: 26px;
  color: var(--primary);
  margin-bottom: 25px;
}

/* ========================================
   Organização dos produtos
======================================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* ========================================
   Card do produto
======================================== */

.product-card {
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 61, 36, 0.1);
}

/* ========================================
   Ilustração do produto
======================================== */

.product-image {
  position: relative;
  height: 180px;
  background-color: #e5ede3;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary);
}

/* Indicador de desconto na ilustração */

.product-image .discount-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  border-radius: 5px;
  background-color: var(--primary);
  color: var(--white);
  font-size: 14px;
  font-weight: bold;
}

.product-image svg {
  width: 140px;
  height: 100px;
}

/* ========================================
   Informações do produto
======================================== */

.product-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 15px;
  padding: 25px;
}

.product-category {
  color: var(--accent-text);
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-content h3 {
  color: var(--primary);
  font-size: 20px;
  line-height: 1.4;
}

.product-description {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  flex: 1;
}

/* ========================================
   Preços e descontos
======================================== */

.product-pricing {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 10px;
}

.product-pricing .original-price {
  color: var(--muted);
  font-size: 15px;
  font-weight: normal;
  text-decoration: line-through;
}

.product-price {
  color: var(--primary);
  font-size: 26px;
  font-weight: bold;
  margin: 0;
}

.buy-button {
  display: block;
  text-align: center;
}

/* ========================================
   Responsividade
======================================== */

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 32px;
  }
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 35px 15px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 15px;
  }

  .product-content {
    padding: 20px;
  }

  .catalog {
    padding-bottom: 35px;
  }
}

/* Janela de aviso de autenticação */

.login-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  width: 90%;
  max-width: 420px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background-color: var(--white);
  color: var(--text);
  box-shadow: 0 10px 35px rgba(0, 61, 36, 0.2);
}

.login-modal::backdrop {
  background-color: rgba(0, 0, 0, 0.45);
}

.login-modal-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: center;
}

.login-modal-content h2 {
  color: var(--primary);
  font-size: 24px;
}

.login-modal-content p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.login-modal-content .btn-primary {
  display: block;
  text-align: center;
}

.btn-secondary {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  background-color: transparent;
  color: var(--primary);
  font-size: 14px;
  font-weight: bold;
}

.btn-secondary:hover {
  background-color: #e5ede3;
}
