*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Inter',sans-serif;
}

html{
  scroll-behavior:smooth;
}

body{
  background:#0f172a;
  color:#e2e8f0;
}

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

img{
  max-width:100%;
  display:block;
}

/* ========================= */
/* HEADER */
/* ========================= */

header{
  background:#0f172a;
  color:white;
  padding:20px 5%;
  position:sticky;
  top:0;
  z-index:1000;
  box-shadow:0 2px 10px rgba(0,0,0,0.1);
}

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

.top-bar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:20px;
}

.logo{
  font-size:28px;
  font-weight:700;
  color:#38bdf8;
}

/* ========================= */
/* MENU */
/* ========================= */

nav{
  display:flex;
  gap:25px;
}

nav a{
  color:#e2e8f0;
  font-weight:500;
  transition:0.3s;
}

nav a:hover{
  color:#38bdf8;
}

/* ========================= */
/* BUSCA */
/* ========================= */

.search-box{
  display:flex;
  background:white;
  border-radius:10px;
  overflow:hidden;
  width:300px;
}

.search-box input{
  border:none;
  padding:12px;
  flex:1;
  outline:none;
  font-size:15px;
}

.search-box button{
  border:none;
  background:#0ea5e9;
  color:white;
  padding:0 20px;
  cursor:pointer;
  font-weight:600;
  transition:0.3s;
}

.search-box button:hover{
  background:#0284c7;
}

/* ========================= */
/* CARRINHO */
/* ========================= */

.cart-icon{
  position:relative;
  font-size:28px;
  color:white;
  display:flex;
  align-items:center;
}

.cart-count{
  position:absolute;
  top:-8px;
  right: -10px;
  background:#ef4444;
  color:white;
  width:20px;
  height:20px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:700;
}

.quantity-input{
  width: 70px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-left: 10px;
}

.customer-input{
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  margin: 20px 0;
  font-size: 15px;
}

/* ========================= */
/* HERO */
/* ========================= */

.hero{
  background:linear-gradient(135deg,#0f172a,#1e293b);
  color:white;
  padding:80px 5%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:40px;
}

.hero-text{
  max-width:600px;
}

.hero-text h1{
  font-size:52px;
  line-height:1.1;
  margin-bottom:20px;
}

.hero-text p{
  font-size:18px;
  color:#cbd5e1;
  margin-bottom:30px;
  line-height:1.7;
}

.hero-text a{
  display:inline-block;
  background:#0ea5e9;
  color:white;
  padding:16px 30px;
  border-radius:10px;
  font-weight:600;
  transition:0.3s;
}

.hero-text a:hover{
  background:#0284c7;
  transform:translateY(-2px);
}

.hero img{
  width:420px;
}

/* ========================= */
/* TITULOS */
/* ========================= */

.section-title{
  font-size:32px;
  margin-bottom:35px;
  color:#0f172a;
}

/* ========================= */
/* CATEGORIAS */
/* ========================= */

.categories{
  padding:70px 5%;
}

.category-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:20px;
}

.category-card{
  background:#1e293b;
  border-radius:18px;
  padding:35px 20px;
  text-align:center;
  transition:0.3s;
  box-shadow:0 5px 15px rgba(14,165,233,0.15);
}

.category-card:hover{
  transform:translateY(-5px);
}

.category-card h3{
  color:white;
  font-size:20px;
}

/* ========================= */
/* PRODUTOS */
/* ========================= */

.container{
  padding:70px 5%;
}

.grid-produtos{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:25px;
}

.produto{
  background:white;
  border-radius:16px;
  padding:15px;
  text-align:center;
  box-shadow:0 5px 20px rgba(0,0,0,0.08);
  transition:0.3s;
  overflow:hidden;
}

.produto:hover{
  transform:translateY(-5px);
  box-shadow:0 10px 25px rgba(0,0,0,0.12);
}

.produto img{
  width:100%;
  height:230px;
  object-fit:cover;
  border-radius:12px;
}

.produto h3{
  margin:15px 0 10px;
  font-size:20px;
  color:#0f172a;
}

.produto p{
  color:#64748b;
  margin-bottom:15px;
}

.produto span{
  display:block;
  font-size:24px;
  font-weight:700;
  color:#0ea5e9;
  margin-bottom:18px;
}

.btn-adicionar{
  width:100%;
  border:none;
  background:#0ea5e9;
  color:white;
  padding:14px;
  border-radius:10px;
  font-weight:600;
  cursor:pointer;
  transition:0.3s;
}

.btn-adicionar:hover{
  background:#0284c7;
}

.paginacao{
  display:flex;
  justify-content:center;
  gap:10px;
  margin:40px 0;
  flex-wrap:wrap;
}

.paginacao button{
  padding:10px 16px;
  border:none;
  background:#111;
  color:#fff;
  border-radius:8px;
  cursor:pointer;
  transition:0.3s;
}

.paginacao button:hover{
  opacity:0.8;
}

.paginacao button.ativo{
  background:#0d6efd;
}

/* ========================= */
/* VANTAGENS */
/* ========================= */

.advantages{
  background:white;
  padding:70px 5%;
}

.adv-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:25px;
}

.adv-card{
  background:#f8fafc;
  border-radius:16px;
  padding:35px 25px;
  text-align:center;
}

.adv-card h3{
  margin-bottom:15px;
  color:#0f172a;
}

.adv-card p{
  color:#64748b;
  line-height:1.6;
}

/* ========================= */
/* FOOTER */
/* ========================= */

footer{
  background:#1e293b;
  color:#cbd5e1;
  padding:60px 5%;
  margin-top:40px;
}

.footer-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:35px;
}

footer h3{
  color:white;
  margin-bottom:15px;
}

footer p{
  line-height:1.8;
}

.copyright{
  margin-top:40px;
  padding-top:20px;
  border-top:1px solid rgba(255,255,255,0.1);
  text-align:center;
  font-size:14px;
}

/* ========================= */
/* BOTÃO VOLTAR */
/* ========================= */

.back-btn{
  background:#1e293b;
  color:white;
  padding:12px 20px;
  border-radius:10px;
  font-weight:300;
  transition:0.3s;
}

.back-btn:hover{
  background:#334155;
}

/* ========================= */
/* CARRINHO */
/* ========================= */

.cart-container{
  width:90%;
  max-width:1300px;
  margin:50px auto;
}

.cart-top{
  margin-bottom:35px;
}

.cart-top h1{
  font-size:42px;
  color:#0f172a;
  margin-bottom:10px;
}

.cart-top p{
  color:#f3f3f3;
}

.cart-layout{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:30px;
  align-items:flex-start;
}

.cart-products{
  display:flex;
  flex-direction:column;
  gap:35px;
}

.cart-item{
  background:white;
  border-radius:25px;
  margin-bottom: 25px;
  padding:20px;
  display:flex;
  gap: 20px;
  align-items:center;
  box-shadow:0 5px 20px rgba(0,0,0,0.08);
}

.cart-image{
  width:120px;
  height:120px;
  border-radius:16px;
  overflow:hidden;
  background:#f8fafc;
}

.cart-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.cart-info{
  flex:1;
}

.cart-info h3{
  font-size:24px;
  margin-bottom:10px;
  color:#1e293b;
}

.cart-price{
  font-size:22px;
  color:#0ea5e9;
  font-weight:700;
  margin-bottom:18px;
}

.quantity-box{
  display:inline-block;
  background:rgb(89, 109, 131);
  padding:10px 14px;
  border-radius:10px;
  font-weight:600;
}

.cart-actions{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  min-width: 120px;
  gap:20px;
}

.item-total{
  font-size:24px;
  font-weight:800;
  color:#1e293b;
}

.cart-actions button{
  border:none;
  background:#ef4444;
  color:white;
  padding:12px 20px;
  border-radius:10px;
  cursor:pointer;
  font-weight:700;
  transition:0.3s;
}

.cart-actions button:hover{
  background:#dc2626;
}

/* ========================= */
/* RESUMO */
/* ========================= */

.cart-summary{
  background:rgb(89, 109, 131);
  border-radius:20px;
  padding:30px;
  box-shadow:0 5px 20px rgba(0,0,0,0.08);
  position:sticky;
  top:110px;
}

.cart-summary h2{
  font-size:28px;
  margin-bottom:30px;
}

.summary-row{
  display:flex;
  justify-content:space-between;
  margin-bottom:18px;
  color:#000000;
}

.summary-divider{
  width:100%;
  height:1px;
  background:#e2e8f0;
  margin:25px 0;
}

.summary-total{
  display:flex;
  justify-content:space-between;
  margin-bottom:30px;
}

.summary-total strong{
  color:#0ea5e9;
  font-size:30px;
}

.checkout-btn{
  width:100%;
  border:none;
  background:linear-gradient(135deg,#0ea5e9,#38bdf8);
  color:white;
  padding:18px;
  border-radius:14px;
  font-size:18px;
  font-weight:700;
  cursor:pointer;
  transition:0.3s;
}

.checkout-btn:hover{
  transform:translateY(-2px);
}

/* ========================= */
/* CARRINHO VAZIO */
/* ========================= */

.empty-cart{
  background:white;
  padding:60px 30px;
  border-radius:20px;
  text-align:center;
  box-shadow:0 5px 20px rgba(0,0,0,0.08);
}

.empty-cart img{
  width:140px;
  margin:0 auto 25px;
}

.empty-cart h2{
  margin-bottom:10px;
}

.empty-cart p{
  color:#64748b;
  margin-bottom:30px;
}

.shop-btn{
  display:inline-block;
  background:#0f172a;
  color:white;
  padding:15px 28px;
  border-radius:12px;
  font-weight:700;
  transition:0.3s;
}

.shop-btn:hover{
  background:#1e293b;
}

/* ========================= */
/* MENU HAMBÚRGUER */
/* ========================= */

.menu-btn{
  display:none;
  background:none;
  border:none;
  color:white;
  font-size:30px;
  cursor:pointer;
}

.header-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  width:100%;
}

/* ========================= */
/* MENU HAMBÚRGUER */
/* ========================= */

.menu-btn{
  display:none;
  background:none;
  border:none;
  color:white;
  font-size:30px;
  cursor:pointer;
}

.header-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

#mobileMenu{
  display:flex;
  gap:25px;
}

.search-box{
  width:100%;
  max-width:500px;
  margin-top:15px;
}

/* ========================= */
/* RESPONSIVO */
/* ========================= */

@media(max-width:900px){

  .cart-layout{
    grid-template-columns:1fr;
  }

  .cart-summary{
    position:static;
  }

}

@media(min-width:769px){

  #mobileMenu{
    display:flex !important;
    gap:25px;
  }

  .search-box{
    width:400px;
  }

}

@media(max-width:768px){

  .menu-btn{
    display:block;
  }

  #mobileMenu{
    display:none;
    flex-direction:column;
    width:100%;
    margin-top:15px;
    background:#1e293b;
    border-radius:12px;
    overflow:hidden;
  }

  #mobileMenu.ativo{
    display:flex;
  }

  #mobileMenu a{
    padding:15px;
    border-bottom:1px solid rgba(255,255,255,.08);
  }

  #mobileMenu a:last-child{
    border-bottom:none;
  }

  .search-box{
    width:100%;
    max-width:none;
  }

  .search-box input{
    font-size:14px;
  }

  .search-box button{
    padding:0 15px;
  }

  .cart-icon{
    font-size:28px;
  }

  .hero{
    padding:50px 5%;
    text-align:center;
  }

  .hero-text h1{
    font-size:34px;
  }

  .hero-text p{
    font-size:16px;
  }

  .hero img{
    width:280px;
  }

  .category-grid{
    grid-template-columns:1fr 1fr;
  }

  .grid-produtos{
    grid-template-columns:1fr;
  }

  .cart-item{
    flex-direction:column;
    text-align:center;
  }

  .cart-actions{
    align-items:center;
  }
}