
.carrinho-flutuante {
position: fixed;
bottom: 80px;
right: 20px;
background: #03274a;
color: white;
padding: 12px 18px;
border-radius: 30px;
cursor: pointer;
font-size: 14px;
box-shadow: 0 6px 15px rgba(0,0,0,0.2);
z-index: 999;
transition: 0.3s;
}

.carrinho-flutuante:hover {
transform: scale(1.05);
}


.modal-carrinho {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.6);
z-index: 999;
}

.modal-carrinho.ativo {
display: flex;
align-items: center;
justify-content: center;
}


.modal-box {
position: relative;
background: white;
width: 90%;
max-width: 420px;
padding: 25px;
border-radius: 12px;
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
animation: fadeIn 0.3s ease;
}


.fechar-modal {
position: absolute;
top: 12px;
right: 15px;
font-size: 16px;
font-weight: bold;
color: #444;
cursor: pointer;
user-select: none;
width: 26px;
height: 26px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
background: #f1f5f9;
transition: 0.2s;
}

.fechar-modal:hover {
color: #c10101;
transform: scale(1.1);
}


.item-carrinho {
display: flex;
justify-content: space-between;
margin-bottom: 10px;
font-size: 14px;
}


.form input {
width: 100%;
margin: 6px 0;
padding: 10px;
border: 1px solid #ddd;
border-radius: 6px;
}

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


.produto {
display: flex;
flex-direction: column;
justify-content: space-between;
height: 100%;
min-height: 320px;
background: white;
padding: 15px;
border-radius: 12px;
transition: 0.3s;
}

.produto:hover {
transform: translateY(-4px);
box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}


.produto-img {
width: 100%;
height: 140px;
border-radius: 10px;
overflow: hidden;
background: #fff;
padding: 8px;

display: flex;
align-items: center;
justify-content: center;
}


.produto-img img {
width: 100%;
height: 100%;
object-fit: contain; /*NÃO CORTA*/
object-position: center;
max-width: 100%;
max-height: 100%;
}


.info-btn {
position: absolute;
top: 8px;
right: 8px;
background: rgba(0,0,0,0.6);
color: white;
width: 22px;
height: 22px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
cursor: pointer;
}


.produto h3 {
font-size: 16px;
margin-top: 8px;
}

.preco-unitario {
font-size: 13px;
color: #64748b;
margin-bottom: 5px;
}


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


.qtd-box {
display: flex;
align-items: center;
gap: 6px;
}

.qtd-box button {
width: 26px;
height: 26px;
border: none;
background:  #03274a;
color: white;
border-radius: 5px;
cursor: pointer;
font-size: 14px;
}


.subtotal {
font-weight: bold;
font-size: 14px;
color: #03274a;
}

.acoes {
display: flex;
gap: 8px;
}


.btn.add {
flex: 1;
background:#03274a;
font-size: 13px;
padding: 8px;
border: none;
color: white;
border-radius: 6px;
cursor: pointer;
}

.btn.add:hover {
background:#1a2f5f;
}

.btn.remove {
width: 38px;
background: #c10101;
padding: 8px;
border: none;
color: white;
border-radius: 6px;
cursor: pointer;
}

.btn.remove:hover {
background: #c10101;
}


.modal-info {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.6);
z-index: 999;
}

.modal-info.ativo {
display: flex;
align-items: center;
justify-content: center;
}

.modal-info-box {
position: relative;
background: white;
width: 90%;
max-width: 400px;
padding: 20px;
border-radius: 10px;
}


@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}


@media (max-width: 600px) {
.produto-img {
height: 120px;
}

.modal-box {
width: 95%;
padding: 20px;
}

.carrinho-flutuante {
bottom: 70px;
right: 15px;
font-size: 13px;
}
}
.selo-calibrado{
position:absolute;
top:6px;
left:6px;
width:50px !important;
height:auto !important;
z-index:10;
transform:rotate(-12deg);
}

.produto-img{
position:relative;
}

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