/* ========= ROOTS ========== */

:root {
  color: #111;
}

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

html, body{
  overflow-x: hidden;
}
body {
  font-family: "Libre Franklin", sans-serif;
  background: #fff;
  color: #222;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ========= TOP BAR ========= */
.top-bar {
  background: #f83e60;
  color: #fff;
  font-size: 0.85rem;
  padding: 6px 0;
}

.top-bar .top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

/* ========= HEADER ========= */
header {
  color: #fff;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-container {
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3);
  background: linear-gradient(black, #2C2C2C);
}

.second-layer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 60px;
  padding-top: 10px;
}

/* SEARCH BAR */
.search-bar {
  flex: 1;
  max-width: 400px;
  margin: 0 20px;
  display: flex;
  border-radius: 25px;
  overflow: hidden;
}

.search-bar input {
  flex: 1;
  border: none;
  padding: 10px 15px;
  outline: none;
}

.search-bar button {
  background: #ff2850;
  border: none;
  padding: 10px 15px;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s;
}

.search-bar button:hover {
  background: #e0133a;
}

/* NAV */
nav {
  
  padding: 10px;
}

.nav-content ul{
  margin: auto;
}

.nav-content ul {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 0px 150px;
}

.nav-content a {
  color: #fff;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-content a:hover,
.nav-content a.active {
  color: #ff2850;
}

/* DROPDOWN */
.dropdown {
  position: relative;
  display: inline-block;
  padding-left: 15px;
}

ul.dropdown-menu {
  display: none;
  position: absolute;
  background-color: #2e2e2e;
  min-width: 200px;
  top: 100%;
  left: 0;
  padding: 10px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-menu li {
  padding: 8px 15px;
}

.dropdown-menu li a {
  color: #fff;
  display: block;
  text-decoration: none;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* CART */
.cart {
  position: relative;
  overflow: visible;
  z-index: 10001;
  margin-left: 10px;
}

.cart i {
  font-size: 1.4rem;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #ff2850;
  color: #fff;
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 50%;
}

/* REGISTER */
.cadastro {
  max-width: 200px;
  display: flex;
  gap: 10px;
}

.cadastro i {
  font-size: 1.4rem;
  align-content: center;
}

.cadastro span {
  font-size: 11px;
  display: block;
}

span.second-line {
  font-size: 14px;
  font-weight: bold;
}

/* MENU MOBILE */
.icons {
  display: none;
  align-items: center;
}

.icons button {
  background: none;
  border: none;
  font-size: 22px;
  color: white; 
  cursor: pointer;
  padding-left: 10px;
}

.icons button:hover {
  color: #f83e60;
  transition-duration: .4s;
}

.sidebar {
  position: fixed;
  top: 0; left: -250px;
  width: 250px;
  height: 100%;
  background: #111;
  color: #fff;
  transition: 0.3s;
  padding: 20px;
  z-index: 1000;
  list-style: none;
}

.sidebar li {
  padding: 20px;
}

.sidebar ul li {
  margin: 20px 0;
}

.sidebar.active {
  left: 0;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
}

/* Mobile */
@media (max-width: 768px) {
  .navbar {
    display: none;
  }
  .icons {
    display: flex;
    gap: 15px;
  }
}

/* ========= SLIDER ========= */
.slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.slide {
  min-width: 100%;
  position: relative;
}

.slide img {
  width: 1270px;
  height: 453px;
  display: block;
  object-fit: cover;
}

.texto-banner {
  position: absolute;
  bottom: 20%;
  left: 10%;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.texto-banner h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.texto-banner p {
  font-size: 1.2rem;
}

/* CONTROLES */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 10px;
  cursor: pointer;
  transition: background 0.3s;
}

.prev:hover,
.next:hover {
  background: rgba(0,0,0,0.8);
}

.prev { left: 10px; }
.next { right: 10px; }

/* INDICATORS */
.indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dot {
  height: 12px;
  width: 12px;
  background: #ddd;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: #ff2850;
}

/* ========= PROMO BLOCKS ========= */
.promo-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 40px 0;
}

.promo-image {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 250px;
  display: flex;
  align-items: flex-end;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.promo-image:hover {
  transform: scale(1.03);
}

.promo-content {
  background: rgba(0,0,0,0.6);
  padding: 15px;
  width: 100%;
  color: #fff;
}

.promo-content h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.promo-content p {
  margin-bottom: 10px;
}

.btn {
  background: #ff2850;
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.btn:hover {
  background: #e0133a;
}

/* ========= PRODUTOS ========= */
.produtos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  margin: 40px auto;
}

.produto {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  text-align: center;
  padding: 15px;
  transition: all 0.3s ease;
}

.produto:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.1);
}

.produto img {
  max-width: 100%;
  height: 200px;
  object-fit: contain;
  margin-bottom: 15px;
}

.preco-antigo {
  text-decoration: line-through;
  color: #888;
  margin-right: 8px;
}

.preco-novo {
  color: #ff2850;
  font-weight: bold;
}

.desconto {
  background: #ff2850;
  color: #fff;
  font-size: 0.8rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 5px;
}

.produto button {
  background: #ff2850;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  margin-top: 10px;
  cursor: pointer;
  transition: background 0.3s;
}

.produto button:hover {
  background: #e0133a;
}

/* ========= FOOTER ========= */
footer {
  background: #111;
  color: #fff;
  padding: 30px 0;
  margin-top: 40px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
  padding: 0px 0px 0px 100px;
}

.footer-links h4 {
  margin-bottom: 10px;
  color: #ff2850;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #bbb;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #fff;
}

.copy {
  text-align: center;
  font-size: 0.85rem;
  color: #aaa;
}

/* ========= RESPONSIVO ========= */
@media (max-width: 768px) {
  .search-bar {
    display: none;
  }

  .nav-content {
    display: none;
    flex-direction: column;
    gap: 10px;
    background: #111;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
  }

  .nav-content.active{
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .dropdown-menu.ativo{
    display: block;
    position: relative;
  }

  .promo-blocks {
    grid-template-columns: 1fr;
  }

  .slider {
    max-height: 60vh;
  }

  .slide img {
    object-fit: contain;
  }
}
