:root{
    --cor-principal: #00c853; /* Troque pela cor desejada */
}
*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Poppins',sans-serif;
}

body{
background:#0f0f0f;
color:#fff;
}

header{
position:sticky;
top:0;
z-index:100;
background:#161616;
border-bottom:1px solid #2a2a2a;
padding:12px;
}

.top{
display:flex;
align-items:center;
gap:10px;
}

.logo img{
height:45px;
border-radius:10px;
}

.search{
flex:1;
position:relative;
}

.search-icon{
position:absolute;
left:14px;
top:50%;
transform:translateY(-50%);
width:20px;
height:20px;
pointer-events:none;
}

.search input{
width:100%;
padding:12px 12px 12px 45px;
background:#222;
border:2px solid transparent;
border-radius:12px;
color:white;
outline:none;
font-size:14px;
transition:all .25s ease;
}

.search input:focus{
border-color:var(--cor-principal);
box-shadow:
0 0 0 4px rgba(0,200,83,.15),
0 0 20px rgba(0,200,83,.25);
}

.search input:focus + .search-icon,
.search:focus-within .search-icon{
stroke:#facc15;
}

.cart-btn{
background:var(--cor-principal);
border:none;
width:50px;
height:50px;
border-radius:14px;
cursor:pointer;
position:relative;
display:flex;
align-items:center;
justify-content:center;
transition:.3s;
}

.cart-btn:hover{
transform:scale(1.05);
}

.cart-btn svg{
width:24px;
height:24px;
}

.cart-count{
position:absolute;
top:-5px;
right:-5px;
background:#ff3b30;
color:white;
width:22px;
height:22px;
border-radius:50%;
font-size:12px;
display:flex;
align-items:center;
justify-content:center;
font-weight:bold;
}

.banner{
margin:15px;
border-radius:20px;
overflow:hidden;
}

.banner img{
width:100%;
display:block;
}

.categories{
display:flex;
gap:10px;
padding:0 15px 15px;
overflow:auto;
}

.categories::-webkit-scrollbar{
display:none;
}

.cat{
background:#1d1d1d;
padding:10px 15px;
border-radius:12px;
white-space:nowrap;
cursor:pointer;
transition:.3s;
}

.cat:hover{
background:var(--cor-principal);
color:black;
}



.card{
background:#181818;
border-radius:18px;
overflow:hidden;
box-shadow:0 5px 20px rgba(0,0,0,.3);
transition:.3s;

display:flex;
flex-direction:column;
}
.info h3{
word-break:break-word;
overflow-wrap:break-word;
}
.banner img{
width:100%;
height:auto;
display:block;
}
.card:hover{
transform:translateY(-5px);
}

.card img{
width:100%;
height:200px;
object-fit:cover;
}

.info{
padding:15px;
display:flex;
flex-direction:column;
flex:1;
}

.info h3{
font-size:16px;
margin-bottom:5px;
}

.info p{
color:#999;
font-size:14px;
}

.price{
font-size:22px;
font-weight:bold;
color:var(--cor-principal);
margin:10px 0;
}

.buy{
margin-top:auto;
width:100%;
padding:12px;
border:none;
background:var(--cor-principal);
color:black;
font-weight:700;
border-radius:10px;
cursor:pointer;
}

.cart{
position:fixed;
top:0;
right:-400px;
width:min(350px,100%);
height:100%;
background:#151515;
transition:.3s;
z-index:999;
padding:20px;
overflow:auto;
box-shadow:-5px 0 30px rgba(0,0,0,.4);
}

.cart.open{
right:0;
}
.cat.active{
background:var(--cor-principal);
color:black;
}
.cart-header{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:20px;
}

.close-cart{
background:#ff3b30;
border:none;
width:35px;
height:35px;
  border-radius:10px;
color:white;
cursor:pointer;
font-size:18px;
}

.cart-item{
background:#222;
padding:12px;
border-radius:12px;
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:10px;
}

.remove{
background:#ff3b30;
border:none;
color:white;
padding:6px 10px;
border-radius:8px;
cursor:pointer;
}

.total{
font-size:22px;
font-weight:bold;
margin-top:15px;
}

.zap-btn{
display:block;
margin-top:15px;
text-align:center;
padding:14px;
background:#25D366;
color:white;
text-decoration:none;
font-weight:bold;
border-radius:12px;
}

.toast{
position:fixed;
top:20px;
left:50%;
transform:translateX(-50%);
background:var(--cor-principal);
color:#fff;
padding:14px 18px;
border-radius:12px;
font-weight:600;
display:none;
z-index:9999;
box-shadow:0 10px 30px rgba(0,0,0,.4);
border-left:4px solid #1f1f1f;
animation:toastShow .3s ease;
}

@keyframes toastShow{
from{
opacity:0;
transform:translate(-50%,-15px);
}
to{
opacity:1;
transform:translate(-50%,0);
}
}
  .view-more{
color:var(--cor-principal);
font-size:12px;
margin-top:5px;
cursor:pointer;
display:inline-block;
font-weight:600;
transition:.3s;
}

.view-more:hover{
opacity:.8;
text-decoration:underline;
}

.modal{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,.75);
backdrop-filter:blur(8px);
display:none;
align-items:center;
justify-content:center;
padding:20px;
z-index:9999;
}

.modal.active{
display:flex;
}

.modal-box{
background:#181818;
border:1px solid #2d2d2d;
border-radius:20px;
padding:25px;
width:100%;
max-width:400px;
animation:popup .25s ease;
}

.modal-box h2{
margin-bottom:10px;
}

.modal-box p{
color:#bbb;
line-height:1.6;
}

.modal-close{
margin-top:20px;
widh:100%;
padding:12px;
border:none;
background:var(--cor-principal);
color:black;
font-weight:700;
border-radius:12px;
cursor:pointer;
}

@keyframes popup{
from{
opacity:0;
transform:scale(.9);
}
to{
opacity:1;
transform:scale(1);
}
}

@keyframes pulseCart{
0%{transform:scale(1);}
50%{transform:scale(1.3);}
100%{transform:scale(1);}
}
.cart-pulse{
animation:pulseCart .5s ease;
}

.grid{
display:grid;
gap:15px;
padding:15px;
grid-template-columns:repeat(6,1fr);
}


:root{
--notebook-cols:5;
--tablet-cols:2;
--mobile-cols:2;
}

/* Notebook */
@media (max-width:1400px){

.grid{
grid-template-columns:repeat(var(--notebook-cols),1fr);
}

}

/* Tablet */
@media (max-width:1024px){

.grid{
grid-template-columns:repeat(var(--tablet-cols),1fr);
gap:12px;
}

}
@media (max-width:600px){

.cart{
width:100%;
right:-100%;
}

}
/* Celular */
@media (max-width:600px){

.grid{
grid-template-columns:repeat(var(--mobile-cols),1fr);
gap:10px;
padding:10px;
}
.logo img{
height:38px;
}
.card{
border-radius:12px;
}

.card img{
height:130px;
}
.cart-btn{
flex-shrink:0;
}
.info{
padding:6px;
}

.info h3{
font-size:11px;
line-height:1.2;
margin-bottom:2px;
word-break:break-word;
}

.info p{
font-size:9px;
}

.price{
font-size:13px;
margin:4px 0;
}

.buy{
padding:7px;
font-size:9px;
border-radius:8px;
}

.view-more{
font-size:9px;
margin-top:2px;
}

}
/* ===== MELHORIAS 10/10 ===== */

/* Evita zoom estranho no iPhone */
input,
button,
select,
textarea{
font-size:16px;
}

/* Imagens nunca estouram */
img{
max-width:100%;
display:block;
}

/* Textos gigantes não quebram layout */
h1,h2,h3,h4,h5,h6,p,span,b{
overflow-wrap:anywhere;
}

/* Grid mais inteligente */
.grid{
align-items:stretch;
}

/* Cards sempre com mesma altura */
.card{
height:100%;
}

/* Botão sempre alinhado embaixo */
.info{
height:100%;
}

/* Carrinho melhor no celular */
@media (max-width:600px){

.cart{
width:100%;
right:-100%;
padding:15px;
}

.cart.open{
right:0;
}

.cart-item{
gap:10px;
align-items:flex-start;
}

.total{
font-size:18px;
}

.zap-btn{
padding:12px;
font-size:14px;
}

}

/* Celulares muito pequenos */
@media (max-width:380px){

:root{
--mobile-cols:1;
}

.logo img{
height:34px;
}

.search input{
padding:10px 10px 10px 40px;
font-size:13px;
}

.cart-btn{
width:44px;
height:44px;
}
  .card img{
height:120px;
}

.info h3{
font-size:10px;
}

.price{
font-size:12px;
}

.buy{
font-size:8px;
padding:6px;
}

}

/* Tablets grandes */
@media (min-width:768px) and (max-width:1024px){

:root{
--tablet-cols:3;
}

}

/* Desktop grande */
@media (min-width:1600px){

.grid{
grid-template-columns:repeat(6,1fr);
max-width:1800px;
margin:auto;
}

}

/* Scroll bonito */
::-webkit-scrollbar{
width:8px;
height:8px;
}

::-webkit-scrollbar-thumb{
background:var(--cor-principal);
border-radius:20px;
}

::-webkit-scrollbar-track{
background:#1a1a1a;
}

/* Hover mais suave */
.card,
.buy,
.cat,
.cart-btn{
transition:.25s ease;
}

/* Modal responsivo */
.modal-box{
max-height:90vh;
overflow:auto;
}

/* Toast nunca sai da tela */
.toast{
max-width:90%;
text-align:center;
}