.cart-icon {
    position: relative;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary);
}
.cart-badge {
    position: absolute;
    top: -10px;
    right: -12px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
.user-greeting {
    font-weight: 500;
    margin-right: 0.5rem;
}
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('https://images.unsplash.com/photo-1555396273-367ea4eb4db5?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80') center/cover;
    color: white;
    padding: 5rem 1.5rem;
    text-align: center;
    border-radius: 0 0 50px 50px;
    margin-bottom: 2rem;
}
.hero h1 { font-size: 3rem; margin-bottom: 0.5rem; }
.hero p { font-size: 1.2rem; opacity: 0.9; }
.store-status {
    text-align: center;
    padding: 0.6rem;
    font-weight: 600;
}
.store-status.closed { background: #f6d3ce; color: var(--primary-dark); }
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding-bottom: 3rem;
}
.card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}
.card:hover { transform: translateY(-8px); }
.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.card-body {
    padding: 1.2rem;
}
.card-body h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}
.price {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.3rem;
    margin: 0.8rem 0;
}
.add-to-cart {
    width: 100%;
    justify-content: center;
}
/* Carrinho lateral (offcanvas) */
.cart-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: none;
}
.cart-panel {
    position: fixed;
    top: 0; right: 0;
    width: 380px;
    max-width: 90vw;
    height: 100%;
    background: var(--white);
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    z-index: 2001;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}
.cart-panel.active { transform: translateX(0); }
.cart-panel h2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}
.cart-items {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
}
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
}
.cart-item-details { display: flex; flex-direction: column; }
.remove-item { color: #e63946; cursor: pointer; }
.cart-total {
    font-size: 1.4rem;
    font-weight: bold;
    margin: 1rem 0;
    text-align: right;
}
.checkout-btn { width: 100%; justify-content: center; padding: 0.9rem; }
/* Etapa de checkout dentro do carrinho */
.fulfillment-choice {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1rem;
}
.fulfillment-choice label {
    flex: 1;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 0.7rem;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
}
.fulfillment-choice input { display: none; }
.fulfillment-choice input:checked + span {
    color: var(--primary);
}
.fulfillment-choice label:has(input:checked) {
    border-color: var(--primary);
    background: #fdf1ef;
}
.delivery-fields { display: none; margin-bottom: 1rem; }
.delivery-fields.active { display: block; }
.delivery-note {
    background: #fdf1ef;
    color: var(--secondary);
    font-size: 0.85rem;
    padding: 0.7rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.map-actions { margin-bottom: 0.6rem; }
.map-actions .btn { padding: 0.5rem 0.9rem; font-size: 0.85rem; }
.delivery-map {
    height: 200px;
    width: 100%;
    border-radius: 10px;
    margin-bottom: 0.4rem;
    background: #eee;
}
.order-success {
    text-align: center;
    padding: 2rem;
}
.order-success i {
    font-size: 4rem;
    color: #2ecc71;
    margin-bottom: 1rem;
}
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
}
/* Página do carrinho / meus pedidos */
.page-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}
.order-card {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}
.order-card .order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}
.order-status-badge {
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #eee;
    white-space: nowrap;
}
.order-status-badge.status-recebido { background: #e0f0ff; color: #1a6fb0; }
.order-status-badge.status-preparando { background: #fff3cd; color: #8a6100; }
.order-status-badge.status-pronto,
.order-status-badge.status-concluido { background: #d4f5dd; color: #1a7a3a; }
.order-status-badge.status-recusado,
.order-status-badge.status-cancelado { background: #f8d7da; color: #a33327; }
.order-status-badge.status-aguardando_aprovacao { background: #fdf1e5; color: #b0701a; }
.floating-cart {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    z-index: 1500;
    transition: transform 0.2s;
}
.floating-cart:hover { transform: scale(1.08); background: var(--primary-dark); }
.floating-cart .cart-badge { top: -6px; right: -6px; }
.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #25D366;
    color: white;
    border: none;
    padding: 0.6rem 1.1rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}
.whatsapp-link:hover { background: #1ebc59; }
@media (max-width: 600px) {
    .menu-grid { grid-template-columns: 1fr; gap: 1.2rem; }
    .page-card { padding: 1.2rem; }
    .fulfillment-choice { flex-direction: column; }
    .map-actions .btn { width: 100%; justify-content: center; }
    .cart-total { text-align: left; }
}
@media (max-width: 480px) {
    .hero { padding: 3rem 1rem; border-radius: 0 0 30px 30px; }
    .hero h1 { font-size: 1.6rem; }
    .hero p { font-size: 0.95rem; }
    .floating-cart { width: 52px; height: 52px; font-size: 1.3rem; bottom: 16px; right: 16px; }
    .delivery-map { height: 160px; }
    .order-card .order-header { flex-wrap: wrap; }
    .whatsapp-link { width: 100%; justify-content: center; }
}
