@import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&display=swap");

h1 {
  font-family: 'Dancing Script', cursive;
}

/* ============================
   RESET & BASE
============================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: white;
  color: #222;
}

.container {
  width: 92%;
  max-width: 1250px;
  margin: auto;
}

/* ============================
     TÍTULO COM FAIXA
============================ */
.titulo {
  background-color: white;

  text-align: center;
  margin: 40px 0 30px;
  padding: 20px 0;
}

.titulo h1 {
  color: rgb(255, 0, 0);
  text-decoration: underline;
}

#change {
  color: white;
  font-size: 17px;
}

/* ============================
     TOPO
============================ */
header {
  background: #7771a3;
  padding: 14px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: #020202;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 2px;
  display: flex;
}

.icone {
  font-size: 26px;
  cursor: pointer;
}

/* ============================
     CARROSSEL
============================ */
.carrossel-area {
  position: relative;
  margin-bottom: 40px;
}

.carrossel {
  overflow: hidden;
  border-radius: 18px;
}

.slides {
  display: flex;
  transition: 0.4s ease;
}

.slide {
  min-width: 100%;
  padding: 22px;
  background: #fff;
  position: relative;
}

/* etiqueta de desconto */
.off-label,
.faixa-desconto {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #d60000;
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: bold;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
}

.slide-conteudo {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: center;
}

.slide-conteudo img {
  width: 300px;
  height: auto;
  border-radius: 12px;
}

.slide-dados h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.preco-antigo {
  color: #aaa;
  text-decoration: line-through;
  font-size: 0.9rem;
}

.preco-novo {
  padding-left: 10px;
  font-size: 1.4rem;
  font-weight: bold;
  color: #b37c2f;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}

.botoes {
  margin-top: 20px;
  display: flex;
  gap: 12px;
}

.btn {
  padding: 12px 20px;
  margin-top: 16px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 15px;
  border: none;
  transition: 0.2s;
}

.btn-verde {
  background: #2ecc71;
  color: #fff;
}

.btn-verde:hover {
  background: #25a45e;
}

.btn-mais {
  width: 100%;
  background: #d8c8a8;
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: bold;
  color: #5b472d;
  transition: 0.3s;
}

.btn-mais:hover {
  background: #b8a47d;
  color: #fff;
}

.setas {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.seta {
  background: #fff;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  font-size: 26px;
  transition: 0.2s;
}

.seta:hover {
  background: #f0f0f0;
}

/* ============================
     BUSCA
============================ */
.busca {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.busca input {
  width: 100%;
  max-width: 450px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #ccc;
  font-size: 16px;
  outline: none;
}

.busca input:focus {
  border-color: #888;
}

/* ============================
     GRID DE PRODUTOS
============================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
  margin-bottom: 50px;
}

.card {
  background: #fff;
  padding: 16px;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: 0.25s;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 12px;
}

.card h4 {
  font-size: 17px;
  margin-bottom: 10px;
  font-weight: 600;
}

/* ============================
     FAIXA "ESGOTADO"
============================ */
.card.esgotado::before {
  content: "ESGOTADO";
  position: absolute;
  top: 12px;
  left: -40px;
  background: #d60000;
  color: white;
  padding: 6px 40px;
  font-size: 15px;
  font-weight: bold;
  transform: rotate(-45deg);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
}

/* linha de botões */
.card .linha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.btn-mini-zap {
  width: 100%;
  background: #2ecc71;
  padding: 12px 20px;
  margin-top: 16px;
  border-radius: 30px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.btn-mini-zap:hover {
  background: #25a45e;
}

.btn-mini-mais {
  width: 100%;
  background: #d8c8a8;
  padding: 12px 20px;
  margin-top: 16px;
  border-radius: 30px;
  font-weight: bold;
  color: #5b472d;
  cursor: pointer;
  transition: 0.3s;
  text-align: center;
  text-decoration: none;
}

.btn-mini-mais:hover {
  background: #b8a47d;
  color: #fff;
}

small {
  padding-left: 20px;
}

/* ============================
     PAGINAÇÃO
============================ */
.paginacao {
  margin: 40px 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pagina {
  padding: 8px 12px;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: 0.2s;
}

.pagina:hover {
  background: #f0f0f0;
}

.pagina.ativa {
  background: #222;
  color: #fff;
}

/* ============================
     RESPONSIVIDADE
============================ */
@media (max-width: 820px) {
  .slide-conteudo {
    flex-direction: column;
    text-align: center;
  }

  .slide-conteudo img {
    width: 230px;
  }
  @media (max-width: 820px) {
    header a h1 {
      font-size: small;
      text-align: center;
    }
  }
}

@media (max-width: 480px) {
  .titulo h1 {
    font-size: 28px;
  }

  .slide {
    padding: 14px;
  }

  .seta {
    width: 34px;
    height: 34px;
    font-size: 22px;
  }
  @media (max-width: 820px) {
    header a h1 {
      font-size: small;
      text-align: center;
    }
  }
}
