/* ===================================== */
/* VARIÁVEIS */
/* ===================================== */

:root{
--color-primary:#E84313;
--color-primary-dark:#C23A0F;
--color-white:#FFFFFF;
--color-bg:#111111;
}


/* ===================================== */
/* GLOBAL */
/* ===================================== */

body{
background:var(--color-bg);
color:white;
margin:0;
font-family:Arial, sans-serif;
}


/* ===================================== */
/* TOPO */
/* ===================================== */

.topbar{
background: var(--color-primary);
padding:12px 16px;
display:flex;
align-items:center;
justify-content:space-between;
position:sticky;
top:0;
z-index:999;
box-shadow:0 2px 10px rgba(0,0,0,0.4);
}


/*carrocel*/

.carousel-item img{
  height:100%;
  width:100%;
  object-fit:contain; /* ESSA LINHA RESOLVE */
  border-radius:20px;
}
.carousel-item{
height:160px;
object-fit:cover;
border-radius:20px;
} 



.carousel{
padding:0 10px;
}







/* ÍCONES */

.top-icon{
color:white;
font-size:22px;
text-decoration:none;
display:flex;
align-items:center;
gap:6px;
}

/* BADGE CARRINHO */

.top-icon span{
background:white;
color:var(--color-primary);
border-radius:50%;
padding:2px 7px;
font-size:12px;
font-weight:bold;
}

/* LOGO CENTRAL */

.logo{
position:absolute;
left:50%;
transform:translateX(-50%);
}

.logo img{
height:40px;
}


/* ===================================== */
/* BUSCA */
/* ===================================== */

.search-box{
padding:12px;
}

.search-box input{
border-radius:30px;
padding:12px 18px;
border:none;
outline:none;
box-shadow:0 2px 10px rgba(0,0,0,0.4);
}


/* ===================================== */
/* CATEGORIA */
/* ===================================== */

.category-title{
margin:20px 12px 10px;
font-size:18px;
font-weight:600;
}


/* ===================================== */
/* LISTA DE PRODUTOS */
/* ===================================== */

.products-scroll{
display:flex;
gap:14px;
overflow-x:auto;
padding:0 10px 12px;
scrollbar-width:none;
}

.products-scroll::-webkit-scrollbar{
display:none;
}

/* ===================================== */
/* CARD PRODUTO */
/* ===================================== */

.product-card{
flex:0 0 180px;
max-width:180px;
}

/* CARD */
.card{
border:none;
background:var(--color-white);
color:#000;
border-radius:16px;
overflow:hidden;
box-shadow:0 6px 20px rgba(0,0,0,0.35);
transition:all .25s ease;
display:flex;
flex-direction:column;
height:100%;
}

.card:hover{
transform:translateY(-5px);
box-shadow:0 12px 26px rgba(0,0,0,0.45);
}

/* ===================================== */
/* 🔥 IMAGEM PROFISSIONAL */
/* ===================================== */

/* CONTAINER */
.card-img-top{
width:100%;
height:140px;
background:#f2f2f2;

display:flex;
align-items:center;
justify-content:center;

border-radius:16px 16px 0 0;
}

/* IMAGEM */
.card-img-top img{
max-width:100%;
max-height:100%;
object-fit:contain; /* 🔥 NÃO CORTA NEM ESTICA */
}

/* ===================================== */
/* CORPO */
/* ===================================== */

.card-body{
padding:14px;
text-align:center;
display:flex;
flex-direction:column;
gap:8px;
}

/* NOME */

.product-name{
font-size:15px;
font-weight:600;
min-height:32px;
}

/* PREÇO */

.price{
color:var(--color-primary);
font-weight:bold;
font-size:16px;
}

/* ===================================== */
/* CONTROLE QUANTIDADE */
/* ===================================== */

.qty-control{
display:flex;
justify-content:center;
align-items:center;
gap:6px;
margin-bottom:10px;
}

.qty-btn{
width:32px;
height:32px;
border:none;
background:#f3f3f3;
border-radius:8px;
font-weight:bold;
cursor:pointer;
transition:.2s;
}

.qty-btn:hover{
background:#e5e5e5;
}

.qty-input{
width:45px;
height:32px;
text-align:center;
border:1px solid #ddd;
border-radius:8px;
font-weight:600;
}

/* ===================================== */
/* BOTÃO */
/* ===================================== */

.btn-add{
background:var(--color-primary);
border:none;
color:white;
font-weight:600;
padding:10px;
border-radius:10px;
width:100%;
font-size:14px;
cursor:pointer;
transition:.2s;
margin-top:auto;
}

.btn-add:hover{
background:var(--color-primary-dark);
transform:scale(1.03);
box-shadow:0 4px 12px rgba(0,0,0,0.3);
}

/* ===================================== */
/* RESPONSIVO */
/* ===================================== */

@media(max-width:768px){

.product-card{
flex:0 0 150px;
max-width:150px;

}

.card-img-top{
background-color:#FFF;
height:120px;
}

.product-name{
font-size:14px;
}

.price{
font-size:15px;
}

}


/*carrinho*/ 

/* ========================= */
/* CARD CARRINHO PROFISSIONAL */
/* ========================= */

.cart-item{
border-radius:16px;
background:#fff;
color:#000;
padding:12px;
box-shadow:0 6px 16px rgba(0,0,0,0.25);
}

/* LINHA */
.cart-row{
display:flex;
align-items:center;
gap:12px;
}
/* CONTAINER DA IMAGEM */
.cart-img{
width:auto;
height:70px;
border-radius:14px;
background-color:#FFF;
display:flex;
align-items:center;
justify-content:center;

padding:8px;
}

/* IMAGEM DENTRO */
.cart-img img{
    width:auto;
    height:70px;
    object-fit:contain;
}

/* INFO */
.cart-info{
flex:1;
display:flex;
flex-direction:column;
gap:4px;
}

.cart-info b{
font-size:14px;
}

.cart-info .price{
font-size:13px;
color:#E84313;
font-weight:bold;
}

/* DIREITA */
.cart-right{
display:flex;
flex-direction:column;
align-items:flex-end;
gap:6px;
}

/* ========================= */
/* BOTÕES */
/* ========================= */

/* BOTÕES + - */
.qty-btn{
width:30px;
height:30px;
border:none;
background:#E84313;
color:#fff;
border-radius:8px;
font-weight:bold;
cursor:pointer;
}

.qty-input{
width:40px;
height:30px;
text-align:center;
border:1px solid #ddd;
border-radius:8px;
}

/* REMOVER */
.btn-remove{
background:#E84313;
border:none;
color:white;
padding:6px 10px;
border-radius:8px;
cursor:pointer;
display:flex;
align-items:center;
justify-content:center;
}

/* HOVER */
.qty-btn:hover,
.btn-remove:hover{
background:#c7370f;
}

.btn-toggle{
background:none;
border:none;
color:#E84313;
font-weight:bold;
cursor:pointer;
}  



/* CARRINHO FLUTUANTE */
.floating-cart{
position:fixed;
bottom:20px;
left:50%;
transform:translateX(-50%);
background:#E84313;
color:white;
padding:12px 18px;
border-radius:30px;
display:flex;
align-items:center;
gap:12px;
box-shadow:0 6px 20px rgba(0,0,0,0.4);
z-index:9999;
animation:fadeIn .3s ease;
}

.floating-cart a{
color:white;
font-weight:bold;
text-decoration:none;
}

@keyframes fadeIn{
from{opacity:0; transform:translate(-50%,20px);}
to{opacity:1; transform:translate(-50%,0);}
}
