/* CONFIGURAÇÕES GERAIS */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: #f4f4f4; padding-bottom: 100px; }

/* AJUSTE PARA IMPEDIR ZOOM NO IOS EM TODOS OS CAMPOS */
input, select, textarea { font-size: 16px !important; }

/* HEADER */
.main-header {
    width: 100%; height: 250px;
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), url('logo.png');
    background-size: cover; background-position: center;
    display: flex; justify-content: center; align-items: center; color: white; text-align: center;
}

/* CATEGORIAS */
.categories { 
    display: flex; overflow-x: auto; padding: 15px; gap: 10px; 
    background: #fff; position: sticky; top: 0; z-index: 10; 
    border-bottom: 1px solid #eee; 
}
.categories::-webkit-scrollbar { display: none; }
.category-btn { 
    padding: 10px 22px; border: none; border-radius: 25px; 
    background: #f0f0f0; font-weight: bold; cursor: pointer; 
    white-space: nowrap; transition: 0.2s; 
}
.category-btn.active { background: #111; color: #fff; }

/* TELA EM BREVE */
.coming-soon {
    grid-column: 1/-1;
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 20px;
    margin: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.coming-soon h2 { color: #333; margin-bottom: 10px; }
.coming-soon p { color: #666; }

/* PRODUTOS NA VITRINE */
.products { 
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 20px; padding: 20px; 
}
.product { 
    background: #fff; border-radius: 18px; overflow: hidden; 
    display: flex; flex-direction: column; box-shadow: 0 4px 12px rgba(0,0,0,0.08); 
}
.product img { 
    width: 100%; height: 230px; object-fit: contain; background-color: #fff; padding: 10px;
}
.product h3 { padding: 15px 15px 5px; font-weight: 800; font-size: 1.2rem; text-transform: uppercase; }
.product p { padding: 0 15px 15px; font-size: 0.9rem; color: #666; flex-grow: 1; line-height: 1.4; }

.product-footer { 
    padding: 15px; display: flex; justify-content: space-between; 
    align-items: center; border-top: 1px solid #f9f9f9; 
}
.product-footer span { font-size: 1.3rem; font-weight: 800; color: #27ae60; }

.select-btn {
    background: #27ae60; color: white; border: none;
    padding: 10px 20px; border-radius: 10px; font-weight: bold; cursor: pointer;
}

/* MODAL */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); z-index: 2000; justify-content: center; align-items: center;
}
.modal-content {
    background: white; width: 95%; max-width: 500px; max-height: 90vh;
    border-radius: 25px; overflow-y: auto; position: relative;
}
.close-modal {
    position: absolute; top: 15px; right: 15px; background: rgba(0,0,0,0.5);
    color: white; border: none; width: 35px; height: 35px; border-radius: 50%; cursor: pointer;
}
.modal-img-top { width: 100%; height: 220px; object-fit: cover; }
.modal-header-text { padding: 20px; }
.modal-base-price { color: #27ae60; font-weight: 800; font-size: 1.3rem; margin-top: 5px; }

/* LAYOUT ADICIONAIS */
.modal-options { padding: 0 20px 20px; }
.modal-options h3 { margin: 15px 0 10px; font-size: 1rem; text-transform: uppercase; border-bottom: 2px solid #f4f4f4; padding-bottom: 5px; }
.extra-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 10px; border-bottom: 1px solid #f9f9f9; cursor: pointer;
}
.extra-check { width: 20px; height: 20px; accent-color: #27ae60; margin-right: 10px; }
#modal-obs { width: 100%; height: 80px; margin-top: 10px; border: 1px solid #ddd; border-radius: 12px; padding: 12px; resize: none; font-size: 16px; }
.modal-footer { padding: 20px; }

/* CARRINHO */
.cart { 
    position: fixed; top: 0; right: -100%; width: 100%; max-width: 450px; 
    height: 100%; background: #f8f9fa; z-index: 100; transition: 0.4s; 
    display: flex; flex-direction: column; 
}
.cart.open { right: 0; }
.cart-header { padding: 20px; background: #111; color: white; display: flex; justify-content: space-between; align-items: center; }
.cart-scrollable-content { flex: 1; overflow-y: auto; padding: 15px; }

.cart-item-card { 
    background: #fff; padding: 15px; border-radius: 12px; 
    margin-bottom: 15px; border-left: 6px solid #27ae60; box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.cart-item-info { display: flex; justify-content: space-between; align-items: flex-start; }
.cart-item-price { color: #27ae60; font-weight: bold; }
.remove-item-btn { background: none; border: none; color: #e74c3c; font-weight: bold; cursor: pointer; margin-top: 10px; }

/* BOTÕES RODAPÉ SACCOLA - PADRONIZADOS E MENORES */
.cart-footer { padding: 12px 20px; background: #fff; border-top: 1px solid #eee; }
.clear-cart-btn, .finish-btn {
    width: 100%;
    border: none;
    border-radius: 35px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}
.clear-cart-btn {
    padding: 8px; 
    background: #e74c3c; 
    color: white;
    margin-bottom: 8px; 
    font-size: 0.85rem;
}
.finish-btn { 
    padding: 10px; 
    background: #27ae60; 
    color: white; 
    font-size: 0.95rem;
}

/* FEEDBACK (TOAST) */
.toast-msg {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    padding: 12px 25px; border-radius: 30px; color: white; font-weight: bold;
    z-index: 3000; animation: fadeInOut 2s ease-in-out forwards;
}
.toast-success { background-color: #2ecc71; }
.toast-error { background-color: #e74c3c; }

@keyframes fadeInOut {
    0% { opacity: 0; top: 0; }
    20% { opacity: 1; top: 20px; }
    80% { opacity: 1; top: 20px; }
    100% { opacity: 0; top: 0; }
}

.floating-cart { 
    position: fixed; bottom: 25px; right: 20px; width: 65px; height: 65px; 
    background: #111; color: white; border-radius: 50%; border: none; z-index: 99; 
}
#cart-count { position: absolute; top: 0; right: 0; background: #ff4500; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; }
.cart-section-card { background: #fff; padding: 15px; border-radius: 12px; margin-bottom: 15px; }
.cart-section-card input, .cart-section-card select { width: 100%; padding: 12px; margin-top: 8px; border: 1px solid #eee; border-radius: 8px; font-size: 16px; }
