/* ===================================== */
/* VARIÁVEIS (estilo iFood) */
/* ===================================== */

:root{
--color-primary:#000000;
--color-primary-dark:#2A2A2A;
--color-primary-light:#4D4D4D;
--color-bg:#FFFFFF;
--color-bg-soft:#F6F6F6;
--color-text:#1B1B1B;
--color-text-muted:#6B6B6B;
--color-border:#EBEBEB;
--shadow-card:0 1px 4px rgba(0,0,0,0.08);
--shadow-card-hover:0 6px 16px rgba(0,0,0,0.14);
}


/* ===================================== */
/* GLOBAL */
/* ===================================== */

*{
box-sizing:border-box;
}

html{
scroll-behavior:smooth;
}

body{
background:var(--color-bg-soft);
color:var(--color-text);
margin:0;
font-family:'Nunito', Arial, sans-serif;
}


/* ===================================== */
/* TOPO */
/* ===================================== */

.topbar{
background:#000;
padding:14px 16px;
display:flex;
align-items:center;
justify-content:space-between;
position:sticky;
top:0;
z-index:999;
box-shadow:0 1px 6px rgba(0,0,0,0.15);
}


/*carrocel*/

.carousel-item img{
  height:100%;
  width:100%;
  object-fit:contain;
  border-radius:16px;
}
.carousel-item{
height:160px;
object-fit:cover;
border-radius:16px;
box-shadow:var(--shadow-card);
}

.carousel{
padding:12px 10px 0;
}

.carousel-promo-card{
display:flex;
align-items:center;
gap:14px;
height:160px;
background:var(--color-white);
border-radius:16px;
border:2px solid var(--color-primary);
box-shadow:var(--shadow-card);
padding:16px;
text-decoration:none;
color:var(--color-text);
overflow:hidden;
}

.carousel-promo-photo{
width:110px;
height:110px;
flex-shrink:0;
background:var(--color-bg-soft);
border-radius:12px;
display:flex;
align-items:center;
justify-content:center;
overflow:hidden;
}

.carousel-promo-photo img{
width:auto;
height:auto;
max-width:100%;
max-height:100%;
object-fit:contain;
border-radius:0;
}

.carousel-promo-info{
display:flex;
flex-direction:column;
gap:8px;
min-width:0;
}

.carousel-promo-name{
font-size:17px;
font-weight:800;
color:var(--color-text);
}

.carousel-promo-price{
font-size:15px;
font-weight:800;
color:var(--color-primary);
display:flex;
align-items:baseline;
gap:8px;
flex-wrap:wrap;
}

.carousel-promo-price s{
font-size:13px;
font-weight:600;
color:var(--color-text-muted);
}


/* ÍCONES */

.top-icon{
color:white;
font-size:22px;
text-decoration:none;
display:flex;
align-items:center;
gap:6px;
transition:opacity .2s ease;
}

.top-icon:hover{
opacity:.85;
}

.top-icons-group{
display:flex;
align-items:center;
gap:14px;
}

/* BADGE CARRINHO */

.top-icon span{
background:white;
color:var(--color-primary);
border-radius:50%;
padding:2px 7px;
font-size:12px;
font-weight:800;
}

/* LOGO CENTRAL */

.logo{
position:absolute;
left:50%;
transform:translateX(-50%);
}

.logo img{
height:42px;
}


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

.search-box{
padding:16px 12px 8px;
}

.search-box input{
width:100%;
border-radius:10px;
padding:13px 20px;
border:1px solid var(--color-border);
outline:none;
background:var(--color-bg);
color:var(--color-text);
font:inherit;
transition:box-shadow .2s ease, border-color .2s ease;
}

.search-box input::placeholder{
color:var(--color-text-muted);
}

.search-box input:focus{
border-color:var(--color-primary);
box-shadow:0 0 0 3px rgba(0,0,0,0.12);
}


/* ===================================== */
/* CATEGORIA */
/* ===================================== */

.category-title{
margin:24px 12px 12px;
font-size:18px;
font-weight:800;
letter-spacing:.01em;
color:var(--color-text);
display:flex;
align-items:center;
gap:10px;
}

.category-title::before{
content:"";
width:5px;
height:18px;
border-radius:3px;
background:var(--color-primary);
display:inline-block;
}


/* ===================================== */
/* LISTA DE PRODUTOS (estilo cardapio digital) */
/* ===================================== */

.product-list{
display:flex;
flex-direction:column;
gap:12px;
padding:0 12px 90px;
}

.product-item{
background:var(--color-bg);
color:var(--color-text);
border-radius:14px;
padding:14px;
box-shadow:var(--shadow-card);
border:1px solid var(--color-border);
display:flex;
flex-direction:column;
gap:12px;
transition:box-shadow .2s ease;
position:relative;
scroll-margin-top:90px;
}

.product-item-promo{
border:2px solid var(--color-primary);
}

.product-item-promo-tag{
position:absolute;
top:-10px;
left:14px;
background:var(--color-primary);
color:white;
font-size:11px;
font-weight:800;
letter-spacing:.04em;
text-transform:uppercase;
padding:4px 10px;
border-radius:999px;
box-shadow:0 2px 6px rgba(0,0,0,0.2);
}

.product-item-price-original{
color:var(--color-text-muted);
font-weight:600;
font-size:13px;
margin-right:6px;
}

.product-item:target{
animation:productTargetFlash 1.6s ease;
}

@keyframes productTargetFlash{
0%{box-shadow:0 0 0 4px rgba(0,0,0,0.35);}
100%{box-shadow:var(--shadow-card);}
}

.product-item:hover{
box-shadow:var(--shadow-card-hover);
}

.product-item-top{
display:flex;
gap:14px;
}

.product-item-photo{
width:96px;
height:96px;
flex-shrink:0;
background:var(--color-bg-soft);
border-radius:12px;
display:flex;
align-items:center;
justify-content:center;
overflow:hidden;
}

.product-item-photo img{
max-width:100%;
max-height:100%;
object-fit:contain;
}

.product-item-info{
flex:1;
min-width:0;
}

.product-item-name{
font-size:16px;
font-weight:800;
margin:0;
color:var(--color-text);
}

.product-item-desc{
font-size:13px;
color:var(--color-text-muted);
margin:4px 0 0;
line-height:1.4;
}

.product-item-price{
display:block;
color:var(--color-text);
font-weight:800;
font-size:15px;
margin:10px 0 0;
}

.product-item-actions{
display:flex;
align-items:center;
gap:10px;
}

.product-item-actions .qty-control{
margin-bottom:0;
}

.product-item-actions .btn-add{
width:auto;
flex:1;
margin-top:0;
}

/* CARD */
.card{
border:1px solid var(--color-border);
background:var(--color-bg);
color:var(--color-text);
border-radius:14px;
overflow:hidden;
box-shadow:var(--shadow-card);
transition:box-shadow .2s ease;
display:flex;
flex-direction:column;
height:100%;
}

.card:hover{
box-shadow:var(--shadow-card-hover);
}

/* IMAGEM PROFISSIONAL */

.card-img-top{
width:100%;
height:140px;
background:var(--color-bg-soft);
display:flex;
align-items:center;
justify-content:center;
border-radius:14px 14px 0 0;
}

.card-img-top img{
max-width:100%;
max-height:100%;
object-fit:contain;
}

.card-body{
padding:14px;
text-align:center;
display:flex;
flex-direction:column;
gap:8px;
}

.product-name{
font-size:15px;
font-weight:800;
min-height:32px;
}

.price{
color:var(--color-text);
font-weight:800;
font-size:16px;
}

/* ===================================== */
/* CONTROLE QUANTIDADE */
/* ===================================== */

.qty-control{
display:flex;
justify-content:center;
align-items:center;
gap:8px;
margin-bottom:10px;
background:var(--color-bg);
border:1px solid var(--color-primary);
padding:4px;
border-radius:10px;
}

.qty-btn{
width:30px;
height:30px;
border:none;
background:transparent;
color:var(--color-primary);
border-radius:8px;
font-weight:800;
cursor:pointer;
transition:.15s;
}

.qty-btn:hover{
background:rgba(0,0,0,0.1);
}

.qty-input{
width:44px;
height:30px;
text-align:center;
border:none;
background:transparent;
border-radius:8px;
font-weight:800;
color:var(--color-text);
}

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

.btn-add{
background:var(--color-primary);
border:none;
color:white;
font-weight:800;
padding:12px;
border-radius:10px;
width:100%;
font-size:14px;
letter-spacing:.01em;
cursor:pointer;
transition:.15s;
margin-top:auto;
}

.btn-add:hover{
background:var(--color-primary-dark);
}

.btn-add:active{
transform:scale(0.98);
}

.btn-add:disabled{
opacity:.6;
cursor:not-allowed;
}

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

@media(max-width:768px){

.product-item-photo{
width:80px;
height:80px;
}

.product-item-name{
font-size:15px;
}

.card-img-top{
height:120px;
}

.product-name{
font-size:14px;
}

.price{
font-size:15px;
}

}


/*carrinho*/

/* ========================= */
/* CARD CARRINHO PROFISSIONAL */
/* ========================= */

.cart-item{
border-radius:14px;
background:var(--color-bg);
color:var(--color-text);
padding:14px;
box-shadow:var(--shadow-card);
border:1px solid var(--color-border);
}

/* LINHA */
.cart-row{
display:flex;
align-items:center;
gap:12px;
}
/* CONTAINER DA IMAGEM */
.cart-img{
width:auto;
height:70px;
border-radius:12px;
background-color:var(--color-bg-soft);
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:var(--color-text-muted);
font-weight:700;
}

/* DIREITA */
.cart-right{
display:flex;
flex-direction:column;
align-items:flex-end;
gap:6px;
}

/* INPUTS BOOTSTRAP DENTRO DOS CARDS */
.form-control{
border-radius:10px !important;
border:1px solid var(--color-border) !important;
padding:12px 14px !important;
font:inherit;
color:var(--color-text);
}

.form-control:focus{
border-color:var(--color-primary) !important;
box-shadow:0 0 0 3px rgba(0,0,0,0.12) !important;
}

/* ========================= */
/* BOTÕES */
/* ========================= */

/* REMOVER */
.btn-remove{
background:var(--color-bg-soft);
border:none;
color:var(--color-primary);
padding:7px 11px;
border-radius:10px;
cursor:pointer;
display:flex;
align-items:center;
justify-content:center;
transition:.15s;
}

.btn-remove:hover{
background:var(--color-primary);
color:white;
}

.btn-toggle{
background:none;
border:none;
color:var(--color-primary);
font-weight:800;
cursor:pointer;
}

.btn-toggle:hover{
color:var(--color-primary-dark);
text-decoration:underline;
}

/* BARRA DE CARRINHO FIXA (estilo iFood) */
.floating-cart{
position:fixed;
bottom:0;
left:0;
right:0;
background:var(--color-primary);
color:white;
padding:14px 16px;
display:flex;
align-items:center;
justify-content:space-between;
gap:14px;
box-shadow:0 -2px 12px rgba(0,0,0,0.18);
z-index:9999;
animation:floatIn .3s ease;
font-weight:700;
}

.floating-cart-icon{
width:34px;
height:34px;
border-radius:50%;
background:rgba(255,255,255,0.2);
display:flex;
align-items:center;
justify-content:center;
font-size:16px;
flex-shrink:0;
}

.floating-cart-text{
font-size:14px;
white-space:nowrap;
flex:1;
text-align:left;
margin-left:10px;
}

.floating-cart a{
color:var(--color-primary);
font-weight:800;
text-decoration:none;
background:white;
padding:10px 18px;
border-radius:10px;
transition:.15s;
white-space:nowrap;
display:flex;
align-items:center;
gap:6px;
}

.floating-cart a:hover{
background:var(--color-bg-soft);
}

.floating-cart a::after{
content:"\203A";
font-size:16px;
line-height:1;
}

@keyframes floatIn{
from{opacity:0; transform:translateY(100%);}
to{opacity:1; transform:translateY(0);}
}
