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

:root{
  --bg:#0a0a0a;
  --header:#111;
  --card:#171717;
  --card2:#202020;
  --gold:#d8b72f;
  --gold2:#f0cc44;
  --text:#f5f5f5;
  --muted:#b8b8b8;
  --border:#2a2a2a;
}

html{
  scroll-behavior:smooth;
}

body{
  background:var(--bg);
  color:var(--text);
  font-family:'Poppins', sans-serif;
}

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

button{
  font-family:inherit;
}

/* HEADER */

.header{
  background:var(--header);
  min-height:82px;
  padding:0 5%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  border-bottom:1px solid #222;
  position:sticky;
  top:0;
  z-index:100;
  transition:.3s;
}

.logo img{
  width:70px;
  display:block;
  transition:.3s;
}

.search-box{
  flex:1;
  display:flex;
  justify-content:center;
}

.search-box input{
  width:430px;
  max-width:100%;
  background:#1a1a1a;
  color:white;
  border:1px solid #2e2e2e;
  border-radius:40px;
  padding:13px 22px;
  outline:none;
  font-size:15px;
}

.search-box input:focus{
  border-color:var(--gold);
}

.header-actions{
  display:flex;
  align-items:center;
  gap:14px;
}

.cart-button,
.favorite-link,
.hero-btn{
  background:var(--gold);
  color:#000;
  border:none;
  padding:13px 24px;
  border-radius:40px;
  font-weight:800;
  cursor:pointer;
  transition:.3s;
}

.favorite-link{
  background:#1b1b1b;
  color:white;
  border:1px solid #303030;
}

.cart-button:hover,
.favorite-link:hover,
.hero-btn:hover{
  background:var(--gold2);
  color:#000;
  transform:translateY(-2px);
}


/* TOP BAR */

.top-bar{
  background:#000;
  color:var(--muted);
  display:flex;
  justify-content:center;
  gap:40px;
  padding:9px 20px;
  font-size:13px;
}

/* FILTROS */

.category-menu,
.availability-filter{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  padding:18px 8%;
}

.availability-filter p{
  color:var(--muted);
  font-weight:700;
}

.filter-btn,
.availability-btn{
  background:#1b1b1b;
  color:white;
  border:1px solid #303030;
  padding:11px 22px;
  border-radius:40px;
  cursor:pointer;
  font-weight:600;
}

.filter-btn.active,
.availability-btn.active,
.filter-btn:hover,
.availability-btn:hover{
  background:var(--gold);
  color:#000;
  border-color:var(--gold);
}

/* HERO */

.hero{
  width:86%;
  margin:55px auto 70px;
  display:grid;
  grid-template-columns:1fr 1.2fr;
  gap:55px;
  align-items:center;
}

.hero-text h1{
  font-size:62px;
  line-height:1.08;
  margin-bottom:22px;
}

.hero-text p{
  color:var(--muted);
  font-size:20px;
  line-height:1.6;
  margin-bottom:30px;
}

.hero-banner img{
  width:100%;
  border-radius:26px;
  display:block;
}

/* SEÇÕES */

.products{
  width:86%;
  margin:55px auto;
}

.section-title{
  text-align:center;
  margin:25px 0 32px;
}

.section-title h2{
  font-size:42px;
  letter-spacing:-1px;
  margin-bottom:8px;
}

.section-title p{
  color:var(--muted);
  font-size:17px;
}

/* GRID */

.products-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(260px, 280px));
  justify-content:center;
  gap:32px;
}

.product-card{
  position:relative;
  background:var(--card);
  border:1px solid #242424;
  border-radius:22px;
  overflow:hidden;
  transition:.3s;
}

.product-card:hover{
  transform:translateY(-6px);
  border-color:#444;
}

.product-card img{
  width:100%;
  height:320px;
  object-fit:cover;
  display:block;
}

.product-info{
  padding:22px;
}

.product-info h3{
  font-size:21px;
  margin-bottom:12px;
}

.product-category{
  display:inline-block;
  background:var(--gold);
  color:#000;
  font-size:12px;
  font-weight:800;
  padding:7px 12px;
  border-radius:30px;
  margin:0 6px 10px 0;
}

.price{
  font-size:25px;
  font-weight:800;
  margin:18px 0 22px;
}

.product-info button,
.product-info .hero-btn{
  width:100%;
  display:block;
  text-align:center;
  background:var(--gold);
  color:#000;
  border:none;
  padding:14px;
  border-radius:14px;
  font-weight:800;
  cursor:pointer;
}

/* FAVORITOS */

.favorite-btn{
  position:absolute;
  top:14px;
  right:14px;
  width:42px;
  height:42px;
  border-radius:50%;
  border:none;
  background:rgba(0,0,0,.68);
  color:#fff;
  font-size:22px;
  cursor:pointer;
  z-index:20;
  transition:.3s;
}

.favorite-btn:hover,
.favorite-btn.favorited{
  background:var(--gold);
  color:#000;
}

/* MODAL */

.modal{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.8);
  z-index:999;
  justify-content:center;
  align-items:center;
  padding:20px;
}

.modal.active{
  display:flex;
}

.modal-content{
  width:920px;
  max-width:100%;
  max-height:90vh;
  overflow-y:auto;
  background:#151515;
  border:1px solid #2c2c2c;
  border-radius:26px;
  padding:28px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:34px;
  position:relative;
}

.close-modal{
  position:absolute;
  top:16px;
  right:22px;
  background:none;
  border:none;
  color:white;
  font-size:32px;
  cursor:pointer;
  z-index:5;
}

.modal-img > img{
  width:100%;
  max-height:390px;
  object-fit:cover;
  border-radius:20px;
  display:block;
}

.miniaturas{
  display:flex;
  gap:12px;
  margin-top:14px;
}

.miniaturas img{
  width:72px;
  height:72px;
  object-fit:cover;
  border-radius:12px;
  cursor:pointer;
  border:2px solid transparent;
}

.miniaturas img.active-thumb{
  border-color:var(--gold);
}

.modal-info h2{
  font-size:31px;
  margin-bottom:8px;
}

.modal-info p{
  color:var(--muted);
  margin-bottom:18px;
}

.modal-info h3{
  margin:18px 0 10px;
}

.modal-options,
.sizes{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.modal-options button,
.sizes button{
  background:#202020;
  color:white;
  border:1px solid #333;
  padding:12px 18px;
  border-radius:40px;
  font-weight:700;
  cursor:pointer;
}

.modal-options button.active,
.sizes button.active{
  background:var(--gold);
  color:#000;
}

.modal-price{
  font-size:30px;
  font-weight:800;
  color:var(--gold) !important;
  margin:22px 0;
}

.quantity{
  display:flex;
  align-items:center;
  gap:18px;
}

.quantity button{
  width:42px;
  height:42px;
  border-radius:50%;
  border:none;
  background:var(--gold);
  color:#000;
  font-size:22px;
  font-weight:800;
  cursor:pointer;
}

.add-cart{
  width:100%;
  margin-top:24px;
  background:var(--gold);
  color:#000;
  border:none;
  padding:16px;
  border-radius:14px;
  font-weight:800;
  cursor:pointer;
}

/* PERSONALIZAÇÃO */

.personalizacao-box{
  margin-top:20px;
}

.personalizacao-box label{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  cursor:pointer;
}

.personalizacao-box input[type="checkbox"]{
  width:18px;
  height:18px;
  accent-color:var(--gold);
}

.personalizacao-campos{
  display:none;
  flex-direction:column;
  gap:10px;
  margin-top:12px;
}

.personalizacao-campos.active{
  display:flex;
}

.personalizacao-campos input{
  width:100%;
  background:#202020;
  border:1px solid #333;
  color:white;
  padding:13px;
  border-radius:12px;
  outline:none;
}

.personalizacao-campos input:focus{
  border-color:var(--gold);
}

/* PRODUTO.HTML */

.product-detail-container{
  width:88%;
  max-width:1200px;
  margin:45px auto;
}

.product-page{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:42px;
  align-items:start;
}

.product-gallery img{
  width:100%;
  max-height:520px;
  object-fit:cover;
  border-radius:24px;
  display:block;
}

.product-thumbs{
  display:flex;
  gap:12px;
  margin-top:16px;
}

.product-thumbs img{
  width:78px;
  height:78px;
  object-fit:cover;
  border-radius:12px;
  cursor:pointer;
  border:2px solid transparent;
}

.product-thumbs img.active{
  border-color:var(--gold);
}

.product-info-page h1{
  font-size:36px;
  margin:18px 0 16px;
}

.product-code{
  display:inline-block;
  background:var(--gold);
  color:#000;
  padding:9px 16px;
  border-radius:30px;
  font-weight:800;
}

.product-meta{
  color:var(--muted);
  margin-bottom:8px;
}

.product-price{
  font-size:32px;
  font-weight:800;
  color:var(--gold);
  margin:22px 0;
}

.product-message{
  background:#171717;
  border:1px solid #2c2c2c;
  border-radius:16px;
  padding:16px;
  margin:18px 0;
}

.product-message strong{
  color:var(--gold);
}

/* CARRINHO */

.cart-item{
  display:flex;
  gap:22px;
  background:var(--card);
  padding:20px;
  border-radius:20px;
  border:1px solid #252525;
  margin-bottom:20px;
  align-items:center;
}

.cart-item img{
  width:130px;
  height:130px;
  object-fit:cover;
  border-radius:14px;
}

.cart-info h3{
  margin-bottom:8px;
}

.cart-info p{
  color:var(--muted);
  margin-bottom:5px;
}

.cart-info button,
.cart-summary button{
  background:var(--gold);
  color:#000;
  border:none;
  padding:12px 18px;
  border-radius:12px;
  font-weight:800;
  cursor:pointer;
}

.cart-summary{
  text-align:center;
  margin-top:30px;
}

.cart-summary h2{
  margin-bottom:18px;
}

.clear-cart{
  margin-left:10px;
}

/* TOAST */

.toast{
  position:fixed;
  right:25px;
  bottom:25px;
  background:var(--gold);
  color:#000;
  padding:16px 24px;
  border-radius:14px;
  font-weight:800;
  opacity:0;
  pointer-events:none;
  transition:.3s;
  z-index:1000;
}

.toast.show{
  opacity:1;
  transform:translateY(-8px);
}

/* FOOTER */

.footer{
  background:#0f0f0f;
  text-align:center;
  padding:45px 20px;
  margin-top:70px;
  border-top:1px solid #222;
}

.footer h3{
  color:var(--gold);
  margin-bottom:8px;
}

.footer p{
  color:var(--muted);
  margin-top:6px;
}

/* UTIL */

.hidden{
  display:none !important;
}

/* RESPONSIVO */

@media(max-width:900px){
  .header{
    flex-direction:column;
    gap:16px;
    padding:18px 5%;
  }

  .header-actions{
    flex-wrap:wrap;
    justify-content:center;
  }

  .search-box{
    width:100%;
  }

  .search-box input{
    width:100%;
  }

  .hero{
    grid-template-columns:1fr;
    text-align:center;
    margin-top:40px;
  }

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

  .modal-content,
  .product-page{
    grid-template-columns:1fr;
  }

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

  .cart-item img{
    width:100%;
    height:260px;
  }

  .section-title h2{
    font-size:34px;
  }
}
/* ===== AJUSTE DE TAMANHO DOS CARDS E PRODUTO ===== */

.products-grid{
  grid-template-columns:repeat(auto-fill, minmax(220px, 240px));
  gap:24px;
}

.product-card img{
  height:250px;
}

.product-info{
  padding:16px;
}

.product-info h3{
  font-size:18px;
}

.price{
  font-size:21px;
  margin:14px 0 18px;
}

.product-category{
  font-size:11px;
  padding:6px 10px;
}

/* produto.html menor */
.product-detail-container{
  max-width:1050px;
  margin:28px auto;
}

.product-page{
  gap:32px;
}

.product-gallery img{
  max-height:420px;
}

.product-info-page h1{
  font-size:32px;
  margin:12px 0;
}

.product-price{
  font-size:28px;
  margin:16px 0;
}

.product-message{
  padding:13px;
  margin:14px 0;
}

.product-info-page h3{
  margin-top:12px;
}

.product-thumbs img{
  width:66px;
  height:66px;
}
/* ===========================
   MOBILE PREMIUM
=========================== */

@media (max-width:768px){

  .top-bar{
    display:none;
  }

  .header{
    min-height:auto;
    padding:16px 18px;
    flex-direction:column;
    gap:14px;
  }

  .logo img{
    width:82px;
  }

  .search-box{
    width:100%;
  }

  .search-box input{
    width:100%;
    padding:11px 18px;
    font-size:14px;
  }

  .header-actions{
    width:100%;
    justify-content:center;
    gap:10px;
  }

  .favorite-link,
  .cart-button{
    padding:11px 18px;
    font-size:14px;
  }

  .category-menu,
  .availability-filter{
    padding:14px 16px;
    gap:10px;
  }

  .filter-btn,
  .availability-btn{
    padding:10px 16px;
    font-size:14px;
  }

  .hero{
    width:92%;
    margin:28px auto 35px;
    display:block;
    text-align:center;
  }

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

  .hero-text p{
    font-size:16px;
    line-height:1.45;
    margin-bottom:20px;
  }

  .hero-btn{
    padding:12px 24px;
    font-size:15px;
  }

  .hero-banner{
    margin-top:24px;
  }

  .hero-banner img{
    border-radius:16px;
  }

  .products{
    width:94%;
    margin:32px auto;
  }

  .section-title{
    margin:18px 0 24px;
  }

  .section-title h2{
    font-size:34px;
  }

  .section-title p{
    font-size:15px;
  }

  .products-grid{
    grid-template-columns:repeat(2, 1fr);
    gap:14px;
  }

  .product-card{
    border-radius:16px;
  }

  .product-card img{
    height:165px;
  }

  .product-info{
    padding:12px;
  }

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

  .product-category{
    display:none;
  }

  .price{
    font-size:17px;
    margin:10px 0 12px;
  }

  .product-info button,
  .product-info .hero-btn{
    padding:10px;
    font-size:13px;
    border-radius:11px;
  }

  .favorite-btn{
    width:34px;
    height:34px;
    font-size:18px;
    top:10px;
    right:10px;
  }

  .modal-content{
    grid-template-columns:1fr;
    width:94%;
    padding:20px;
    gap:20px;
  }

  .modal-img > img{
    max-height:300px;
  }

  .modal-info h2{
    font-size:26px;
  }

  .modal-price{
    font-size:26px;
  }

  .product-page{
    grid-template-columns:1fr;
    gap:22px;
  }

  .product-gallery img{
    max-height:330px;
  }

  .product-info-page h1{
    font-size:28px;
  }

  .product-price{
    font-size:26px;
  }
}
#topBtn{
  display:none;
  position:fixed;
  right:20px;
  bottom:25px;
  width:48px;
  height:48px;
  border-radius:50%;
  border:none;
  background:var(--gold);
  color:#000;
  font-size:24px;
  font-weight:800;
  cursor:pointer;
  z-index:999;
}
.share-btn{
  width:100%;
  margin-top:12px;
  background:#202020;
  color:white;
  border:1px solid #333;
  padding:14px;
  border-radius:14px;
  font-weight:800;
  cursor:pointer;
}

.share-btn:hover{
  background:var(--gold);
  color:#000;
}
.modal-options button.disabled{
  opacity:.45;
  cursor:not-allowed;
}
.modal-options button.disabled{
  opacity:.45;
  cursor:not-allowed;
}
.modal-options button.disabled{
  opacity:.45;
  cursor:not-allowed;
}
/* ===== CABEÇALHO ESTILO NIKE - DESKTOP ===== */

.header {
  min-height: 82px;
  padding: 0 5%;
  display: grid;
  grid-template-columns: 90px 1fr 360px auto;
  align-items: center;
  gap: 24px;
}

.header .logo {
  display: flex;
  align-items: center;
}

.header .logo img {
  width: 70px;
}

.header .category-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 0;
  margin: 0;
}

.header .category-menu .filter-btn {
  background: transparent;
  border: none;
  padding: 10px 12px;
  border-radius: 0;
  white-space: nowrap;
  font-size: 14px;
}

.header .category-menu .filter-btn.active {
  background: transparent;
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
}

.header .search-box {
  width: 100%;
  display: flex;
  justify-content: center;
}

.header .search-box input {
  width: 100%;
  max-width: 360px;
}

.header .header-actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
}

.header .favorite-link,
.header .cart-button {
  width: auto;
  min-width: 54px;
  height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  border-radius: 999px;
}

.header .favorite-link span,
.header .cart-button span {
  font-size: 12px;
}
/* ===== BANNER DESKTOP SEM CORTE ===== */

.hero-banner-full {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.hero-banner-full picture {
  display: block;
  width: 100%;
}

.hero-banner-full img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-buy-btn {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 2;

  background: #fff;
  color: #111;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.hero-buy-btn:hover {
  background: var(--gold);
}

@media(max-width:768px){

.hero-banner-full{

    height:calc(100vh - 120px);

    min-height:650px;

}

.hero-buy-btn{

    bottom:28px;

}

}
.header-icon {
    display: inline-block;
    flex-shrink: 0;
}

.favorite-link,
.cart-button {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Mantém o ícone e o número visíveis */
.header.compact .header-icon,
.header.compact #favCount,
.header.compact #cartCount {
    display: inline-block;
}
/* Cabeçalho permanece igual ao rolar */

.header.compact {
  min-height: 82px;
  padding: 0 5%;
}

.header.compact .logo img {
  width: 70px;
}

.header.compact .search-box {
  display: flex;
}

.header.compact .cart-button,
.header.compact .favorite-link {
  width: auto;
  min-width: auto;
  height: 44px;
  padding: 0 14px;
  font-size: 13px;
}
.top-bar {
  transition: opacity .25s ease, max-height .25s ease, padding .25s ease;
  overflow: hidden;
}

.top-bar.hidden-on-scroll {
  opacity: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}
/* =========================================
   CABEÇALHO MOBILE
========================================= */

@media (max-width: 768px) {

  .header {
    min-height: 72px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 58px 1fr;
    align-items: center;
    gap: 10px;
  }

  .header .logo img {
    width: 54px;
  }

  .header .category-menu {
    position: absolute;
    top: 72px;
    left: 0;
    z-index: 150;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 18px;
    background: #111;
    border-top: 1px solid #2a2a2a;
  }

  .header .category-menu.mobile-open {
    display: flex;
  }

  .header .category-menu .filter-btn {
    width: 100%;
    padding: 14px 10px;
    text-align: left;
    border-radius: 0;
    border-bottom: 1px solid #252525;
  }

  .header .category-menu .filter-btn.active {
    border-left: 3px solid var(--gold);
    border-bottom: 1px solid #252525;
  }

  .header .search-box {
    display: none;
  }

  .header .header-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-right: 6px;
}

  .header .favorite-link,
  .header .cart-button {
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border-radius: 50%;
  }

  .header .favorite-link span,
  .header .cart-button span {
    font-size: 11px;
  }

  .mobile-search-button,
  .mobile-menu-button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .mobile-search-button:hover,
  .mobile-menu-button:hover {
    background: #222;
  }
}
/* ==================================================
   CORREÇÃO DO CABEÇALHO — DESKTOP E MOBILE
================================================== */

/* Botões exclusivos do celular ficam escondidos no PC */
.mobile-search-button,
.mobile-menu-button {
    display: none;
}

/* Área dos botões do cabeçalho */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Favoritos e carrinho */
.favorite-link,
.cart-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
    text-decoration: none;
}

/* Ícones inseridos diretamente no HTML */
.header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Impede qualquer ícone duplicado criado pelo CSS */
.header .favorite-link::before,
.header .cart-button::before,
.header.compact .favorite-link::before,
.header.compact .cart-button::before {
    content: none !important;
    display: none !important;
}

/* O cabeçalho compacto não deve alterar o conteúdo */
.header.compact .header-icon,
.header.compact .header-text,
.header.compact #favCount,
.header.compact #cartCount {
    display: inline-flex;
}


/* ==================================================
   CELULAR
================================================== */

@media (max-width: 768px) {

    /* Mostra os botões exclusivos do celular */
    .mobile-search-button,
    .mobile-menu-button {
        display: flex;
        align-items: center;
        justify-content: center;
        border: 0;
        background: transparent;
        color: white;
        cursor: pointer;
        padding: 6px;
        font-size: 18px;
    }

    /* Esconde a pesquisa grande do computador */
    .search-container,
    .search-box,
    .header-search {
        display: none;
    }

    /* Esconde inicialmente as categorias */
    .category-menu {
        display: none;
    }

    /* Mostra as categorias quando o menu for aberto */
    .category-menu.mobile-open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 16px;
        background: #111;
        border-top: 1px solid #333;
        z-index: 1000;
    }

    .category-menu.mobile-open .filter-btn {
        width: 100%;
        padding: 12px;
        text-align: left;
    }

    .header {
        position: relative;
    }

    .header-actions {
        margin-left: auto;
        gap: 5px;
    }

    .favorite-link,
    .cart-button {
        padding: 8px 9px;
        font-size: 12px;
        gap: 3px;
    }

    .header-icon {
        font-size: 15px;
    }

    /* No celular, esconde as palavras para economizar espaço */
    .header-text {
        display: none;
    }

    #favCount,
    #cartCount {
        display: inline-block;
        font-size: 12px;
    }
}
/* =========================================
   CABEÇALHO FIXO NAS PÁGINAS INTERNAS
========================================= */

.header,
.header.compact {
  min-height: 82px;
  padding: 0 5%;
}

.header .search-box,
.header.compact .search-box {
  display: flex !important;
  width: 100%;
}

.header .search-box input,
.header.compact .search-box input {
  width: 100%;
  max-width: 360px;
}

.header .header-actions,
.header.compact .header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 10px;
}

.header .favorite-link,
.header .cart-button,
.header.compact .favorite-link,
.header.compact .cart-button {
  width: auto !important;
  min-width: auto !important;
  height: 44px !important;
  padding: 0 16px !important;

  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 5px;

  font-size: 13px !important;
  white-space: nowrap;
  border-radius: 999px;
}

.header .favorite-link span,
.header .cart-button span,
.header.compact .favorite-link span,
.header.compact .cart-button span {
  font-size: 13px !important;
}

.header.compact .logo img {
  width: 70px;
}
/* Cabeçalho específico da página do carrinho */
body:has(.cart-summary) .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body:has(.cart-summary) .header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
/* Cabeçalho específico da página do produto */
.header-produto {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-produto .header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
/* =========================================
   CORREÇÃO FINAL DO CABEÇALHO MOBILE
========================================= */

@media (max-width: 768px) {

  .header,
  .header.compact {
    position: sticky;
    top: 0;
    z-index: 200;

    width: 100%;
    min-height: 76px !important;
    padding: 8px 14px !important;

    display: grid !important;
    grid-template-columns: 62px 1fr !important;
    align-items: center !important;
    gap: 8px !important;

    background: #111;
  }

  /* Logo à esquerda */
  .header .logo,
  .header.compact .logo {
    width: 62px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .header .logo img,
  .header.compact .logo img {
    width: 58px !important;
    height: 58px;
    object-fit: contain;
    display: block;
  }

  /* A pesquisa grande desaparece no celular */
  .header .search-box,
  .header.compact .search-box {
    display: none !important;
  }

  /* Todos os ícones ficam juntos no canto direito */
  .header .header-actions,
  .header.compact .header-actions {
    grid-column: 2 !important;
    width: auto !important;
    margin: 0 0 0 auto !important;

    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;

    gap: 7px !important;
  }

  /* Lupa e menu */
  .mobile-search-button,
  .mobile-menu-button {
    flex: 0 0 42px;
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;
    background: #1b1b1b;
    color: #fff;
    font-size: 20px;
  }

  /* Favoritos e carrinho redondos */
  .header .favorite-link,
  .header .cart-button,
  .header.compact .favorite-link,
  .header.compact .cart-button {
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    padding: 0 !important;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 2px;

    overflow: hidden;
    border-radius: 50% !important;
    white-space: nowrap;

    font-size: 0 !important;
  }

  /* Um único coração */
  .header .favorite-link::before,
  .header.compact .favorite-link::before {
    content: "♥";
    font-size: 17px;
    line-height: 1;
  }

  /* Um único carrinho */
  .header .cart-button::before,
  .header.compact .cart-button::before {
    content: "🛒";
    font-size: 16px;
    line-height: 1;
  }

  /* Números dos contadores */
  .header .favorite-link span,
  .header .cart-button span,
  .header.compact .favorite-link span,
  .header.compact .cart-button span {
    font-size: 11px !important;
    line-height: 1;
  }

  /* Menu de categorias aberto */
  .header .category-menu {
    position: absolute !important;
    top: 76px !important;
    left: 0 !important;
    z-index: 210;

    width: 100% !important;
    margin: 0 !important;
    padding: 12px 16px 18px !important;

    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;

    background: #111;
    border-top: 1px solid #292929;
  }

  .header .category-menu.mobile-open {
    display: flex !important;
  }

  .header .category-menu .filter-btn {
    width: 100% !important;
    padding: 14px 12px !important;
    text-align: left !important;
    border-bottom: 1px solid #292929 !important;
  }
}
@media (max-width: 768px) {

  .header,
  .header.compact {
    width: 100%;
    min-height: 76px !important;
    padding: 8px 12px !important;

    display: grid !important;
    grid-template-columns: 58px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .header .logo,
  .header.compact .logo {
    width: 58px;
  }

  .header .logo img,
  .header.compact .logo img {
    width: 54px !important;
    height: 54px;
    object-fit: contain;
  }

  /* Barra de pesquisa visível no mobile */
  .header .search-box,
  .header.compact .search-box {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    justify-content: stretch !important;
  }

  .header .search-box input,
  .header.compact .search-box input {
    width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    padding: 0 14px !important;

    border-radius: 999px !important;
    font-size: 13px !important;
  }

  .header .header-actions,
  .header.compact .header-actions {
    width: auto !important;
    margin: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;

    gap: 5px !important;
  }

  .header .favorite-link,
  .header .cart-button,
  .header.compact .favorite-link,
  .header.compact .cart-button {
    flex: 0 0 39px !important;
    width: 39px !important;
    min-width: 39px !important;
    height: 39px !important;
    padding: 0 !important;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 2px !important;

    border-radius: 50% !important;
    overflow: hidden;
  }

  .header .header-text,
  .header.compact .header-text {
    display: none !important;
  }

  .header .header-icon,
  .header.compact .header-icon {
    display: inline !important;
    font-size: 14px !important;
    line-height: 1;
  }

  .header #favCount,
  .header #cartCount,
  .header.compact #favCount,
  .header.compact #cartCount {
    display: inline !important;
    font-size: 10px !important;
    line-height: 1;
  }

  .mobile-menu-button {
    flex: 0 0 39px;
    width: 39px !important;
    height: 39px !important;
    padding: 0 !important;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;
    background: #1b1b1b;
    color: #fff;
    font-size: 19px;
  }

  /* Garante que a lupa antiga não apareça */
  .mobile-search-button {
    display: none !important;
  }

  .header .category-menu {
    position: absolute !important;
    top: 76px !important;
    left: 0 !important;
    z-index: 210;

    width: 100% !important;
    margin: 0 !important;
    padding: 12px 16px 18px !important;

    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;

    background: #111;
    border-top: 1px solid #292929;
  }

  .header .category-menu.mobile-open {
    display: flex !important;
  }
}
@media (max-width: 768px) {

  .header,
  .header.compact {
    min-height: 66px !important;
    padding: 6px 8px !important;

    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 5px !important;
  }

  .header .logo,
  .header.compact .logo {
    width: 46px !important;
  }

  .header .logo img,
  .header.compact .logo img {
    width: 44px !important;
    height: 44px !important;
    object-fit: contain;
  }

  .header .search-box,
  .header.compact .search-box {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .header .search-box input,
  .header.compact .search-box input {
    width: 100% !important;
    min-width: 0 !important;
    height: 38px !important;
    padding: 0 11px !important;
    font-size: 12px !important;
  }

  .header .header-actions,
  .header.compact .header-actions {
    grid-column: 3 !important;
    width: auto !important;
    margin: 0 !important;

    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;

    gap: 3px !important;
  }

  .header .favorite-link,
  .header .cart-button,
  .header.compact .favorite-link,
  .header.compact .cart-button,
  .mobile-menu-button {
    flex: 0 0 34px !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    border-radius: 50% !important;
  }

  .header .header-icon,
  .header.compact .header-icon {
    font-size: 12px !important;
  }

  .header #favCount,
  .header #cartCount,
  .header.compact #favCount,
  .header.compact #cartCount {
    font-size: 9px !important;
  }

  .mobile-menu-button {
    font-size: 17px !important;
  }

  .header .category-menu {
    top: 66px !important;
  }
}
@media (max-width: 768px) {
  .header .header-text,
  .header.compact .header-text {
    display: none !important;
  }

  .header .header-icon,
  .header.compact .header-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 14px !important;
    line-height: 1;
  }

  .header #favCount,
  .header #cartCount,
  .header.compact #favCount,
  .header.compact #cartCount {
    display: inline !important;
    font-size: 10px !important;
    line-height: 1;
  }
}
/* Cabeçalho mobile da página do produto */
@media (max-width: 768px) {

  .header-produto .logo,
.header-produto.compact .logo{
    grid-column:1;
    margin:0 !important;
}

.header-produto .logo img,
.header-produto.compact .logo img{
    width:48px !important;
    height:48px !important;
}

  .header-produto,
.header-produto.compact {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    gap: 10px !important;

    min-height: 72px !important;
    padding: 8px 14px !important;
}

  .header-produto .logo,
  .header-produto.compact .logo {
    flex: 0 0 auto !important;
  }

  .header-produto .logo img,
  .header-produto.compact .logo img {
    width: 54px !important;
    height: 54px !important;
    object-fit: contain;
  }

  .header-produto .header-actions,
.header-produto.compact .header-actions {
    grid-column: 3;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;

    width: auto !important;
    margin: 0 !important;
    gap: 8px !important;
}

  .header-produto .favorite-link,
  .header-produto .cart-button,
  .header-produto.compact .favorite-link,
  .header-produto.compact .cart-button {
    width: auto !important;
    min-width: auto !important;
    height: 42px !important;
    padding: 0 11px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;

    border-radius: 999px !important;
    overflow: visible !important;
    white-space: nowrap !important;
  }

  .header-produto .header-text,
  .header-produto.compact .header-text {
    display: inline !important;
    font-size: 11px !important;
    font-weight: 700;
  }

  .header-produto .header-icon,
  .header-produto.compact .header-icon {
    display: inline-flex !important;
    font-size: 13px !important;
  }

  .header-produto #favCount,
  .header-produto #cartCount,
  .header-produto.compact #favCount,
  .header-produto.compact #cartCount {
    display: inline !important;
    font-size: 10px !important;
  }
}
@media (max-width: 768px) {
  .header-carrinho {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 14px !important;
  }

  .header-carrinho .logo {
    margin-right: auto !important;
  }

  .header-carrinho .header-actions {
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .header-carrinho .favorite-link {
    width: auto !important;
    min-width: auto !important;
    height: 42px !important;
    padding: 0 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    border-radius: 999px !important;
    overflow: visible !important;
    font-size: 12px !important;
  }

  .header-carrinho .favorite-link .header-icon,
  .header-carrinho .favorite-link .header-text,
  .header-carrinho .favorite-link #favCount {
    display: inline !important;
  }

  .header-carrinho .favorite-link .header-icon {
    font-size: 14px !important;
  }

  .header-carrinho .favorite-link .header-text {
    font-size: 12px !important;
    font-weight: 700;
  }

  .header-carrinho .favorite-link #favCount {
    font-size: 11px !important;
  }
}
/* Cabeçalho mobile do carrinho em uma única linha */
@media (max-width: 768px) {

  .header-carrinho,
  .header-carrinho.compact {
    width: 100%;
    min-height: 72px !important;
    padding: 8px 12px !important;

    display: grid !important;
    grid-template-columns: 54px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .header-carrinho .logo,
  .header-carrinho.compact .logo {
    grid-column: 1 !important;
    width: 54px !important;
    margin: 0 !important;
    justify-self: start !important;
  }

  .header-carrinho .logo img,
  .header-carrinho.compact .logo img {
    width: 50px !important;
    height: 50px !important;
    object-fit: contain;
    display: block;
  }

  .header-carrinho .header-actions,
  .header-carrinho.compact .header-actions {
    grid-column: 2 !important;
    width: auto !important;
    margin: 0 0 0 auto !important;

    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;

    gap: 7px !important;
  }

  .header-carrinho .favorite-link,
  .header-carrinho.compact .favorite-link {
    width: auto !important;
    min-width: auto !important;
    height: 40px !important;
    padding: 0 10px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;

    border-radius: 999px !important;
    overflow: visible !important;
    white-space: nowrap !important;
  }

  .header-carrinho .favorite-link .header-icon,
  .header-carrinho .favorite-link .header-text,
  .header-carrinho .favorite-link #favCount {
    display: inline !important;
  }

  .header-carrinho .favorite-link .header-icon {
    font-size: 13px !important;
  }

  .header-carrinho .favorite-link .header-text {
    font-size: 11px !important;
    font-weight: 700;
  }

  .header-carrinho .favorite-link #favCount {
    font-size: 10px !important;
  }

  .header-carrinho .hero-btn,
  .header-carrinho.compact .hero-btn {
    width: auto !important;
    min-width: auto !important;
    height: 40px !important;
    padding: 0 14px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    font-size: 12px !important;
    white-space: nowrap !important;
  }
}
/* 5 produtos por linha no desktop */
@media (min-width: 1100px) {
  .products {
    width: 96%;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
  }

  .products-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
  }

  .product-card {
    width: 100%;
  }
}