/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* VARIÁVEIS DE CORES */
:root {
  --rosa: #ff2f92;
  --amarelo: #ffde59;
  --verde: #00c896;
  --roxo: #7b2cff;
  --azul: #00c2ff;
  --escuro: #1a1a1a;
}

/* BASE */
body {
  font-family: "Poppins", Arial, sans-serif;
  background: linear-gradient(
    135deg,
    var(--amarelo),
    var(--rosa),
    var(--roxo)
  );
  background-attachment: fixed;
  color: #222;
}

/* HEADER */
.header {
  background: linear-gradient(
    90deg,
    var(--rosa),
    var(--roxo),
    var(--azul)
  );
  padding: 25px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.menu ul {
  display: flex;
  justify-content: center;
  gap: 30px;
  list-style: none;
  margin-bottom: 15px;
}

.menu a {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 1px;
  transition: transform 0.2s, color 0.2s;
}

.menu a:hover {
  transform: scale(1.1);
  color: var(--amarelo);
}

/* LOGO */
.logo h1 {
  text-align: center;
  font-size: 40px;
  color: #fff;
  text-shadow: 3px 3px 0 var(--roxo);
}

/* VIDEO */
.video-section {
  padding: 50px 20px;
  display: flex;
  justify-content: center;
}

.video-section iframe {
  width: 90%;
  max-width: 960px;
  height: 420px;
  border-radius: 16px;
  border: 6px solid var(--amarelo);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* MARCAS */
.brands {
  padding: 60px 20px;
  text-align: center;
}

.brands h2 {
  font-size: 32px;
  color: #fff;
  margin-bottom: 30px;
  text-shadow: 2px 2px var(--roxo);
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: 1000px;
  margin: auto;
}

.brand {
  background: linear-gradient(
    135deg,
    var(--azul),
    var(--verde)
  );
  padding: 35px;
  border-radius: 18px;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
}

.brand:hover {
  transform: translateY(-8px) rotate(-1deg);
}

/* PRODUTOS */
.products {
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.85);
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
}

.products h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
  color: var(--rosa);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: auto;
}

.product {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s;
}

.product:hover {
  transform: translateY(-10px);
}

.product img {
  width: 100%;
  border-radius: 15px;
  margin-bottom: 15px;
}

.product h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.product p {
  font-weight: bold;
  color: var(--verde);
  font-size: 18px;
}

/* BOTÃO COMPRAR */
.product button {
  margin-top: 15px;
  padding: 12px 25px;
  border-radius: 30px;
  border: none;
  background: linear-gradient(
    90deg,
    var(--rosa),
    var(--roxo)
  );
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.product button:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* RODAPÉ */
.footer {
  background: linear-gradient(
    90deg,
    var(--escuro),
    #000
  );
  color: #fff;
  padding: 50px 20px;
}

.footer-grid {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.footer h3 {
  margin-bottom: 15px;
  color: var(--amarelo);
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 6px;
}

.footer a {
  color: var(--rosa);
  text-decoration: none;
  font-weight: bold;
}

.footer a:hover {
  text-decoration: underline;
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .brands-grid {
    grid-template-columns: 1fr;
  }

  .menu ul {
    flex-wrap: wrap;
  }

  .logo h1 {
    font-size: 30px;
  }
}

.buy-button {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 25px;
  border-radius: 30px;
  background: linear-gradient(90deg, var(--rosa), var(--roxo));
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.buy-button:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}


/* =========================
   CARROSSEL MOBILE / TABLET
========================= */

/* MOBILE */
@media (max-width: 767px) {

  /* MARCAS */
  .brands-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 10px;
  }

  .brand {
    min-width: 85%;
    scroll-snap-align: center;
    flex-shrink: 0;
  }

  /* PRODUTOS */
  .products-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 15px;
  }

  .product {
    min-width: 85%;
    scroll-snap-align: center;
    flex-shrink: 0;
  }

  /* ESCONDER SCROLL BAR */
  .brands-grid::-webkit-scrollbar,
  .products-grid::-webkit-scrollbar {
    display: none;
  }
}

/* TABLET */
@media (min-width: 768px) and (max-width: 1023px) {

  .brands-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
  }

  .brand {
    min-width: 45%;
    scroll-snap-align: center;
  }

  .products-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 25px;
  }

  .product {
    min-width: 45%;
    scroll-snap-align: center;
  }

  .brands-grid::-webkit-scrollbar,
  .products-grid::-webkit-scrollbar {
    display: none;
  }
}

/* DESKTOP (VOLTA AO GRID NORMAL) */
@media (min-width: 1024px) {

  .brands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
  }

  .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    overflow: visible;
  }
}
