/* Reset e configurações base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== ESTILOS DO CARDÁPIO DIGITAL ===== */

/* Indicador de Mesa */
.table-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #e53e3e;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #e53e3e;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal de Mesa */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.modal-large {
    max-width: 600px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    margin: 0;
}

.close-button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.table-input {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

/* Header do Restaurante */
.header {
    background: white;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.restaurant-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.restaurant-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

/* Navegação de Categorias */
.categories-nav {
    background: white;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.categories-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.categories-container::-webkit-scrollbar {
    display: none;
}

.category-btn {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.category-btn:hover {
    border-color: #e53e3e;
}

.category-btn.active {
    background: #e53e3e;
    color: white;
    border-color: #e53e3e;
}

/* Container de Itens */
.menu-container {
    padding: 20px;
    padding-bottom: 100px;
}

.menu-item-card {
    background: white;
    border-radius: 12px;
    margin-bottom: 15px;
    padding: 15px;
    display: flex;
    gap: 15px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.menu-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.item-info {
    flex: 1;
}

.item-info h3 {
    margin-bottom: 5px;
    color: #333;
}

.item-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-price {
    font-size: 18px;
    font-weight: bold;
    color: #e53e3e;
}

.item-time {
    color: #666;
    font-size: 14px;
}

/* Carrinho Fixo */
.cart-fixed {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
}

.cart-button {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(229,62,62,0.4);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Modal de Item */
.item-modal-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.item-modal-description {
    color: #666;
    margin-bottom: 15px;
}

.item-modal-price {
    font-size: 24px;
    font-weight: bold;
    color: #e53e3e;
    margin-bottom: 20px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.quantity-selector button {
    width: 40px;
    height: 40px;
    border: 2px solid #e53e3e;
    background: white;
    color: #e53e3e;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.quantity-selector button:hover {
    background: #e53e3e;
    color: white;
}

.quantity-selector span {
    font-size: 24px;
    font-weight: bold;
    min-width: 40px;
    text-align: center;
}

.observations-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    min-height: 80px;
    margin-bottom: 20px;
    font-family: inherit;
}

/* Botões */
.btn-primary {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #c53030;
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

/* Carrinho Modal */
.cart-items {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.cart-item-info h4 {
    margin-bottom: 5px;
}

.cart-item-obs {
    font-size: 12px;
    color: #666;
    font-style: italic;
    margin: 5px 0;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-item-total {
    font-weight: bold;
    color: #e53e3e;
}

.btn-remove {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
}

.cart-footer {
    border-top: 2px solid #e0e0e0;
    padding-top: 20px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    margin-bottom: 20px;
}

/* Notificação */
.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: #48bb78;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 10000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Tela de Em Breve (Delivery) */
.coming-soon-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.coming-soon-content {
    background: white;
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.coming-soon-content h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

.coming-soon-content p {
    font-size: 18px;
    color: #666;
    margin-bottom: 15px;
}

.coming-soon-subtitle {
    font-size: 16px;
    color: #999;
    margin-bottom: 40px !important;
}

.coming-soon-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.feature-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.feature-icon {
    font-size: 32px;
}

/* Tela de Erro */
.error-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.error-screen h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.error-screen p {
    font-size: 18px;
    color: #666;
}

.no-items {
    text-align: center;
    color: #999;
    padding: 40px;
}

/* Responsivo */
@media (max-width: 768px) {
    .restaurant-logo {
        width: 60px;
        height: 60px;
    }
    
    .menu-item-card {
        flex-direction: column;
    }
    
    .item-image {
        width: 100%;
        height: 150px;
    }
    
    .coming-soon-features {
        grid-template-columns: 1fr;
    }
}

/* ===== FIM ESTILOS DO CARDÁPIO DIGITAL ===== */

/* Esconder scrollbars em todos os navegadores */
* {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE e Edge */
}

*::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
    width: 0;
    height: 0;
}
html {
    overflow-x: hidden;
    overflow-y: hidden;
    height: 100%;
}

body {
    overflow: hidden;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Container principal */
.app-container {
    display: flex;
    height: 100%;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 200px;
    background-color: #fff;
    border-right: 1px solid #e0e0e0;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    padding: 0 20px 30px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.logo-icon {
    font-size: 24px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* Menu de navegação */
.nav-menu {
    padding: 0 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 5px;
    border: none;
    background: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.2s ease;
    text-align: left;
}

.nav-item:hover {
    background-color: #f8f9fa;
    color: #333;
}

.nav-item.active {
    background-color: #e53e3e;
    color: white;
}

.nav-item.active:hover {
    background-color: #c53030;
}

.nav-icon {
    margin-right: 10px;
    font-size: 16px;
}

/* Botão flutuante do carrinho */
.floating-cart-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #e53e3e;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.floating-cart-button:hover {
    background-color: #c53030;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4);
}

.floating-cart-button .cart-icon {
    font-size: 24px;
}

.floating-cart-button .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #fff;
    color: #e53e3e;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    border: 2px solid #e53e3e;
}



/* Conteúdo principal */
.main-content {
    flex: 1;
    margin-left: 200px;
    background-color: #fff;
    overflow-y: auto;
    height: 100%;
}

/* Header de navegação */
.header-nav {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.category-tabs {
    display: flex;
    gap: 0;
}

.tab-item {
    padding: 15px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    position: relative;
}

.tab-item:hover {
    color: #e53e3e;
}

.tab-item.active {
    color: #e53e3e;
    border-bottom-color: #e53e3e;
    font-weight: 500;
}

/* Navegação de subcategorias */
.subcategory-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    padding-top: 10px;
}

.subcategory-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #666;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.subcategory-button:hover {
    border-color: #e53e3e;
    color: #e53e3e;
    background-color: #fef5f5;
}

.subcategory-button.active {
    border-color: #e53e3e;
    background-color: #e53e3e;
    color: white;
}

.subcategory-count {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
    min-width: 18px;
    text-align: center;
}

.subcategory-button.active .subcategory-count {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Área de conteúdo */
.content-area {
    padding: 30px;
}

.category-header {
    margin-bottom: 30px;
    margin-top: 10px;
}

.category-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #e53e3e;
    margin-bottom: 8px;
}

.category-header p {
    font-size: 16px;
    color: #666;
}

/* Grid de produtos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.product-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #e53e3e;
}

/* Mobile Header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    z-index: 10001;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-menu-btn {
    background: #e53e3e;
    border: none;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn span {
    width: 20px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-logo-icon {
    font-size: 20px;
}

.mobile-logo-text {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Modal de detalhes do produto */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10002;
    overflow-y: auto;
}

.product-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.product-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.product-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 24px;
}

.close-product-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-product-modal:hover {
    color: #e53e3e;
}

.product-modal-body {
    padding: 20px;
}

.product-modal-image {
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.product-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-modal-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-modal-price {
    font-size: 24px;
    font-weight: 600;
    color: #e53e3e;
}

.product-extras h4,
.product-observations h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
}

.extras-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.extra-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.extra-item:hover {
    border-color: #e53e3e;
    background-color: #fef5f5;
}

.extra-item.selected {
    border-color: #e53e3e;
    background-color: #e53e3e;
    color: white;
}

.extra-item label {
    cursor: pointer;
    margin-left: 8px;
}

.extra-price {
    font-weight: 600;
    color: #e53e3e;
}

.extra-item.selected .extra-price {
    color: white;
}

.product-observations textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
}

.product-quantity {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-controls button {
    width: 35px;
    height: 35px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: #e53e3e;
    transition: all 0.2s ease;
}

.quantity-controls button:hover {
    background-color: #e53e3e;
    color: white;
    border-color: #e53e3e;
}

.quantity-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-controls button:disabled:hover {
    background: white;
    color: #e53e3e;
    border-color: #e0e0e0;
}

#product-quantity-value {
    font-size: 18px;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.product-modal-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.modal-total {
    font-size: 20px;
    color: #333;
}

.add-to-cart-modal {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

.add-to-cart-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4);
}

/* Modal do carrinho */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10002;
    overflow-y: auto;
}

.cart-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cart-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.cart-header h3 {
    margin: 0;
    color: #333;
    font-size: 24px;
}

.close-cart {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-cart:hover {
    color: #e53e3e;
}

.cart-items {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
}

.cart-item-name {
    font-weight: 600;
    color: #333;
    font-size: 16px;
    flex: 1;
}

.cart-item-price {
    color: #e53e3e;
    font-weight: 600;
    white-space: nowrap;
    margin-right: 10px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-quantity button {
    width: 28px;
    height: 28px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #e53e3e;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.cart-item-quantity button:hover {
    background-color: #e53e3e;
    color: white;
    border-color: #e53e3e;
}

.cart-item-quantity span {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.cart-item-remove {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.cart-item-remove:hover {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 3px 10px rgba(255, 68, 68, 0.3);
}

.cart-item-remove:active {
    transform: scale(0.9) rotate(10deg);
}

/* Extras e observações no carrinho */
.cart-item-extras,
.cart-item-observations {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

/* Responsividade */
@media (max-width: 1024px) and (min-width: 769px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .mobile-header {
        display: flex;
    }

    .sidebar {
        left: -250px;
        width: 250px;
        top: 60px;
        height: calc(100vh - 60px);
        z-index: 9999;
        transition: left 0.3s ease;
    }

    .sidebar.active {
        left: 0;
    }

    .main-content {
        margin-left: 0;
        padding-top: 60px;
        height: 100vh;
        overflow-y: auto;
    }

    .floating-cart-button {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }

    .floating-cart-button .cart-icon {
        font-size: 22px;
    }

    .floating-cart-button .cart-count {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }

    .product-modal-content {
        margin: 10px;
        max-height: 95vh;
        max-width: calc(100vw - 20px);
        overflow-x: hidden;
    }

    .product-modal-header {
        padding: 15px;
    }

    .product-modal-header h3 {
        font-size: 18px;
        line-height: 1.3;
        max-width: calc(100% - 40px);
    }

    .product-modal-body {
        padding: 15px;
        max-width: 100%;
        overflow-x: hidden;
    }

    .product-modal-image {
        height: 200px;
        margin-bottom: 15px;
        border-radius: 12px;
    }

    .product-modal-info {
        gap: 15px;
    }

    .product-modal-footer {
        padding: 15px;
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .add-to-cart-modal {
        width: 100%;
        padding: 15px;
        font-size: 16px;
    }

    .cart-content {
        margin: 10px;
        max-width: calc(100vw - 20px);
    }

    .cart-header {
        padding: 15px;
    }

    .cart-items {
        padding: 15px;
    }

    .cart-footer {
        padding: 15px;
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .checkout-button {
        width: 100%;
        padding: 15px;
        font-size: 16px;
    }

    .header-nav {
        padding: 0 15px;
    }

    .content-area {
        padding: 20px 15px;
    }

    .category-header h2 {
        font-size: 24px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .product-card {
        display: flex;
        flex-direction: row;
        height: auto;
        min-height: 120px;
    }

    .product-image {
        width: 120px;
        height: 120px;
        flex-shrink: 0;
    }

    .product-info {
        padding: 15px;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .product-title {
        font-size: 16px;
        margin-bottom: 5px;
    }

    .product-description {
        font-size: 13px;
        margin-bottom: 10px;
        line-height: 1.4;
    }

    .product-price {
        font-size: 18px;
        margin-top: auto;
    }

    .subcategory-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
        scrollbar-width: none !important; /* Firefox */
        -ms-overflow-style: none !important; /* IE e Edge */
    }

    .subcategory-nav::-webkit-scrollbar {
        display: none !important; /* Chrome, Safari, Opera */
        width: 0 !important;
        height: 0 !important;
    }

    .subcategory-button {
        flex-shrink: 0;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .product-card {
        min-height: 100px;
    }

    .product-image {
        width: 100px;
        height: 100px;
    }

    .product-info {
        padding: 12px;
    }

    .product-title {
        font-size: 15px;
    }

    .product-description {
        font-size: 12px;
    }

    .product-price {
        font-size: 16px;
    }

    .mobile-logo-text {
        display: none;
    }

    .content-area {
        padding: 15px 10px;
    }

    .category-header h2 {
        font-size: 20px;
    }

    .category-header p {
        font-size: 14px;
    }
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.cart-total {
    font-size: 20px;
    color: #333;
}

.checkout-button {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

.checkout-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4);
}

/* Seção QR Code */
.qr-code-section {
    position: absolute;
    bottom: 20px;
    left: 10px;
    right: 10px;
}

.qr-code-button {
    width: 100%;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.qr-code-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.qr-icon {
    margin-right: 8px;
    font-size: 18px;
}


/* Modal QR Code */
.qr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    overflow-y: auto;
}

.qr-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.qr-modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.qr-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.qr-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
}

.close-qr-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-qr-modal:hover {
    color: #e53e3e;
}

.qr-modal-body {
    padding: 20px;
    text-align: center;
}

.qr-modal-body p {
    margin-bottom: 20px;
    color: #666;
}

#qr-code-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.qr-url {
    font-size: 12px;
    color: #888;
    word-break: break-all;
    margin: 15px 0;
}

.download-qr-button {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    margin-top: 15px;
}

.download-qr-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* Overlay da sidebar para mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.sidebar-overlay.active {
    display: block;
    position: fixed;
    width: 100%;
}




/* ========== ESTILOS PARA SISTEMA DE IDENTIFICAÇÃO DE MESA ========== */

/* Indicador de mesa no header mobile */
.table-indicator {
    display: none;
    align-items: center;
    gap: 5px;
    background-color: #e53e3e;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.table-indicator span {
    font-size: 14px;
}

/* Seção de informação da mesa na sidebar */
.table-info-section {
    padding: 15px 10px;
    margin: 15px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.table-info-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    padding: 12px 15px;
    border-radius: 10px;
    color: white;
}

.table-info-icon {
    font-size: 24px;
}

.table-info-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.table-info-label {
    font-size: 11px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-info-number {
    font-size: 20px;
    font-weight: 700;
}

/* Botões na sidebar */
.qr-code-section {
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qr-code-button,
.table-config-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 15px;
    border: none;
    background-color: #f8f9fa;
    color: #333;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.qr-code-button:hover,
.table-config-button:hover {
    background-color: #e9ecef;
    transform: translateY(-1px);
}

.qr-icon,
.config-icon {
    font-size: 16px;
}

/* Informação da mesa no carrinho */
.cart-table-info {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #f8f9fa;
    padding: 12px;
    margin: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #e53e3e;
    flex-shrink: 0;
}

.cart-table-icon {
    font-size: 20px;
}

.cart-table-text {
    font-size: 14px;
    color: #666;
}

.cart-table-text strong {
    color: #e53e3e;
    font-size: 16px;
}

/* Modal de configuração de mesa */
.table-config-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.table-config-modal.active {
    display: flex;
}

.table-config-content {
    background-color: white;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

.table-config-header {
    padding: 25px;
    border-bottom: 1px solid #e0e0e0;
}

.table-config-header h3 {
    font-size: 20px;
    color: #333;
    margin: 0;
}

.table-config-body {
    padding: 25px;
}

.table-config-body p {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.table-number-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.table-number-input-group label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.table-number-input-group input[type="number"] {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
}

.table-number-input-group input[type="number"]:focus {
    outline: none;
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.table-config-note {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
    color: #856404;
    margin-top: 15px;
}

.table-config-footer {
    padding: 20px 25px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
}

.save-table-config {
    padding: 12px 30px;
    background-color: #e53e3e;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.save-table-config:hover {
    background-color: #c53030;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

/* Botão de gerar QR Code */
.generate-qr-button {
    padding: 12px 24px;
    background-color: #e53e3e;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.generate-qr-button:hover {
    background-color: #c53030;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

/* Ajustes no modal de QR Code */
.qr-modal-body p:first-child {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

#qr-code-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    min-height: 200px;
}

.qr-url {
    word-break: break-all;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    font-size: 12px;
    color: #666;
    margin: 15px 0;
    text-align: center;
}

/* Responsivo para mobile */
@media (max-width: 768px) {
    .table-indicator {
        display: flex;
        font-size: 11px;
        padding: 5px 10px;
        right: 10px;
    }
    
    .table-indicator span {
        font-size: 12px;
    }
    
    .table-config-content {
        width: 95%;
        margin: 0 10px;
    }
    
    .table-config-header,
    .table-config-body,
    .table-config-footer {
        padding: 20px;
    }
}

/* Animação do modal */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== FIM DOS ESTILOS PARA SISTEMA DE IDENTIFICAÇÃO DE MESA ========== */




/* ========== MODAIS DE AUTENTICAÇÃO ========== */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10002;
    overflow-y: auto;
}

.auth-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.auth-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.auth-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
}

.close-auth-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-auth-modal:hover {
    color: #e53e3e;
}

.auth-modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.auth-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
    margin-top: 10px;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4);
}

.auth-switch {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

.auth-switch a {
    color: #e53e3e;
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}




/* ========== SEÇÃO DELIVERY ========== */
.delivery-section {
    padding: 15px 10px;
    border-top: 1px solid #e0e0e0;
    margin-top: 15px;
}

.delivery-user-info {
    margin-bottom: 15px;
}

.delivery-login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 15px;
    border: none;
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

.delivery-login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4);
}

.user-icon {
    font-size: 18px;
}

.delivery-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.delivery-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 15px;
    border: none;
    background: white;
    color: #333;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: left;
}

.delivery-menu-item:hover {
    background-color: #f8f9fa;
    transform: translateX(3px);
}

.delivery-icon {
    font-size: 16px;
}

.delivery-user-logged {
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.delivery-user-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 5px;
}

.delivery-user-email {
    font-size: 12px;
    color: #666;
}

.delivery-logout-button {
    margin-top: 10px;
    width: 100%;
    padding: 8px;
    border: 1px solid #e0e0e0;
    background: white;
    color: #666;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.delivery-logout-button:hover {
    background-color: #f8f9fa;
    border-color: #e53e3e;
    color: #e53e3e;
}




/* ========== PAGE MODALS (FULL SCREEN) ========== */
.page-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10002;
    overflow-y: auto;
}

.page-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.page-modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.page-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 24px;
}

.close-page-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-page-modal:hover {
    color: #e53e3e;
}

.page-modal-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

/* ========== ENDEREÇOS ========== */
.add-address-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
    margin-bottom: 20px;
}

.add-address-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4);
}

.addresses-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.address-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.address-card:hover {
    border-color: #e53e3e;
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.1);
}

.address-card.main {
    border-color: #e53e3e;
    background: linear-gradient(135deg, rgba(229, 62, 62, 0.05) 0%, rgba(197, 48, 48, 0.05) 100%);
}

.address-main-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e53e3e;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.address-info {
    margin-bottom: 10px;
}

.address-street {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.address-details {
    font-size: 14px;
    color: #666;
}

.address-actions {
    display: flex;
    gap: 10px;
}

.address-action-button {
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.address-action-button:hover {
    background: #f8f9fa;
}

.address-action-button.delete {
    color: #e53e3e;
    border-color: #e53e3e;
}

.address-action-button.delete:hover {
    background: #e53e3e;
    color: white;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* ========== FAVORITOS ========== */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.favorite-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.favorite-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.favorite-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
    z-index: 10;
}

.favorite-remove:hover {
    background: #e53e3e;
    transform: scale(1.1);
}

/* ========== PEDIDOS ========== */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
}

.order-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.order-id {
    font-weight: 600;
    color: #333;
}

.order-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.order-status.pending {
    background: #fff3cd;
    color: #856404;
}

.order-status.preparing {
    background: #cfe2ff;
    color: #084298;
}

.order-status.ready {
    background: #d1e7dd;
    color: #0f5132;
}

.order-status.completed {
    background: #d1e7dd;
    color: #0f5132;
}

.order-items {
    margin-bottom: 15px;
}

.order-item {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-total {
    font-weight: 600;
    font-size: 18px;
    color: #e53e3e;
}

.order-date {
    font-size: 12px;
    color: #999;
}

/* ========== CHECKOUT ========== */
.checkout-content {
    max-width: 600px;
}

.checkout-section {
    margin-bottom: 25px;
}

.checkout-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

.delivery-type-options,
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-option:hover {
    border-color: #e53e3e;
    background: #fef5f5;
}

.radio-option input[type="radio"] {
    margin-right: 10px;
}

.radio-option input[type="radio"]:checked + .radio-label {
    font-weight: 600;
    color: #e53e3e;
}

.radio-label {
    font-size: 14px;
    color: #333;
}

.checkout-total {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 20px;
}

.checkout-submit-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

.checkout-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4);
}

#change-section input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.empty-state-text {
    font-size: 16px;
}




/* ========== BOTÃO DE FAVORITO NO CARD ========== */
.product-card {
    position: relative;
}

.product-favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-favorite-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.product-favorite-btn.active {
    background: #ffe6e6;
}


/* ========== ESTILOS PARA NOTIFICAÇÕES PERSONALIZADAS ========== */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.custom-notification {
    padding: 10px 14px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    min-width: 200px;
    max-width: 280px;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
}

/* Ícones das notificações */
.custom-notification::before {
    content: '';
    font-size: 16px;
    flex-shrink: 0;
}

.custom-notification.info {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
}

.custom-notification.info::before {
    content: 'ℹ️';
}

.custom-notification.success {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
}

.custom-notification.success::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-weight: bold;
    font-size: 11px;
}

.custom-notification.error {
    background: linear-gradient(135deg, #F44336 0%, #D32F2F 100%);
}

.custom-notification.error::before {
    content: '✕';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-weight: bold;
    font-size: 11px;
}

.custom-notification.warning {
    background: linear-gradient(135deg, #FFC107 0%, #FFA000 100%);
    color: #000;
}

.custom-notification.warning::before {
    content: '⚠️';
}

/* Responsividade para mobile */
@media (max-width: 768px) {
    #notification-container {
        top: 70px;
        right: 10px;
        left: auto;
        gap: 6px;
    }
    
    .custom-notification {
        min-width: 180px;
        max-width: 240px;
        padding: 8px 12px;
        font-size: 12px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.15);
        border-radius: 6px;
        gap: 6px;
    }
    
    .custom-notification::before {
        font-size: 14px;
    }
    
    .custom-notification.success::before,
    .custom-notification.error::before {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    #notification-container {
        top: 65px;
        right: 8px;
    }
    
    .custom-notification {
        min-width: 160px;
        max-width: 220px;
        padding: 7px 10px;
        font-size: 11px;
        gap: 5px;
    }
    
    .custom-notification::before {
        font-size: 13px;
    }
    
    .custom-notification.success::before,
    .custom-notification.error::before {
        width: 14px;
        height: 14px;
        font-size: 9px;
    }
}

/* Animação de entrada melhorada */
@keyframes notificationSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.custom-notification {
    animation: notificationSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
/* ========== FIM DOS ESTILOS PARA NOTIFICAÇÕES PERSONALIZADAS ========== */



/* Estilos para o Modal de Pedidos */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 10003; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.5); /* Black w/ opacity */
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.modal-header h3 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.close-modal {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: #e53e3e;
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px; /* Para evitar que o scrollbar sobreponha o conteúdo */
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
}

.order-id {
    font-weight: 600;
    color: #e53e3e;
    font-size: 16px;
}

.order-status {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.order-status.pending {
    background-color: #ffc107; /* Amarelo */
}

.order-status.preparing {
    background-color: #2196f3; /* Azul */
}

.order-status.ready {
    background-color: #4caf50; /* Verde */
}

.order-status.delivering {
    background-color: #ff9800; /* Laranja */
}

.order-status.completed {
    background-color: #607d8b; /* Cinza azulado */
}

.order-status.cancelled {
    background-color: #f44336; /* Vermelho */
}

.order-items {
    margin-bottom: 10px;
}

.order-item {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px dashed #eee;
    margin-top: 10px;
}

.order-total {
    font-weight: 700;
    font-size: 18px;
    color: #333;
}

.order-date {
    font-size: 12px;
    color: #888;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.empty-state-text {
    font-size: 18px;
    line-height: 1.5;
}

/* Responsividade para modais */
@media (max-width: 768px) {
    .modal-content {
        margin: 10px;
        max-width: calc(100vw - 20px);
    }

    .modal-header h3 {
        font-size: 20px;
    }
}




/* ========== CORREÇÃO DEFINITIVA DO SCROLL DO CARRINHO ========== */
/* COLE ESTE CÓDIGO NO FINAL DO styles.css E SUBSTITUA AS REGRAS EXISTENTES */

/* Remover overflow do cart-items original */
.cart-items {
    padding: 20px;
    flex: unset !important;
    overflow-y: visible !important;
    overflow: visible !important;
}

/* Ajustar estrutura do modal */
.cart-modal .cart-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Header fixo */
.cart-modal .cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0 !important;
    background: white;
    z-index: 10;
}

/* Área scrollável */
.cart-scrollable-content {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    min-height: 0 !important;
    max-height: 100% !important;
}

/* Garantir que o conteúdo interno seja visível */
.cart-scrollable-content > * {
    flex-shrink: 0;
}

/* Footer fixo */
.cart-modal .cart-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-shrink: 0 !important;
    background: white;
    z-index: 10;
}

/* Seção de Checkout no Carrinho */
.cart-checkout-section {
    padding: 20px;
    border-top: 2px solid #e0e0e0;
    background-color: #f8f9fa;
    flex-shrink: 0;
}

.cart-checkout-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #e0e0e0, transparent);
    margin-bottom: 20px;
}

.cart-checkout-group {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.cart-checkout-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cart-checkout-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-checkout-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-radio-option {
    display: flex;
    align-items: center;
    padding: 12px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-radio-option:hover {
    border-color: #e53e3e;
    background-color: #fef5f5;
    transform: translateX(2px);
}

.cart-radio-option input[type="radio"] {
    margin: 0;
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #e53e3e;
    cursor: pointer;
}

.cart-radio-option input[type="radio"]:checked + .cart-radio-label {
    font-weight: 600;
    color: #e53e3e;
}

.cart-radio-label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    user-select: none;
    flex: 1;
}

.cart-checkbox-option {
    display: flex;
    align-items: center;
    padding: 10px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-checkbox-option:hover {
    border-color: #e53e3e;
    background-color: #fef5f5;
}

.cart-checkbox-option input[type="checkbox"] {
    margin: 0;
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #e53e3e;
    cursor: pointer;
}

.cart-checkbox-label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    user-select: none;
}

.cart-info-text {
    font-size: 13px;
    color: #666;
    margin: 10px 0;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #e53e3e;
}

.cart-select {
    width: 100%;
    padding: 12px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e53e3e' width='18px' height='18px'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
    padding-right: 40px;
}

.cart-select:focus {
    outline: none;
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.cart-select:hover {
    border-color: #e53e3e;
}

.cart-add-address-btn {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background: white;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    color: #e53e3e;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-add-address-btn:hover {
    border-color: #e53e3e;
    background-color: #fef5f5;
    transform: translateY(-1px);
}

.cart-input-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
}

.cart-input {
    width: 100%;
    padding: 12px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    transition: all 0.2s ease;
}

.cart-input:focus {
    outline: none;
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.cart-input::placeholder {
    color: #999;
}

/* Estado selecionado dos radio buttons */
.cart-radio-option:has(input[type="radio"]:checked) {
    border-color: #e53e3e;
    background-color: #fef5f5;
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.15);
}

/* Estado selecionado do checkbox */
.cart-checkbox-option:has(input[type="checkbox"]:checked) {
    border-color: #e53e3e;
    background-color: #fef5f5;
}

/* Animação suave */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-checkout-section {
    animation: slideDown 0.3s ease;
}

/* Responsividade */
@media (max-width: 768px) {
    .cart-modal .cart-content {
        margin: 10px;
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
    }

    .cart-modal .cart-header {
        padding: 15px;
    }

    .cart-items {
        padding: 15px;
    }

    .cart-modal .cart-footer {
        padding: 15px;
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .checkout-button {
        width: 100%;
        padding: 15px;
        font-size: 16px;
    }
    
    .cart-checkout-section {
        padding: 15px;
    }
    
    .cart-checkout-title {
        font-size: 15px;
    }
    
    .cart-radio-option,
    .cart-checkbox-option {
        padding: 10px;
    }
    
    .cart-radio-label,
    .cart-checkbox-label {
        font-size: 13px;
    }
    
    .cart-select {
        padding: 10px;
        font-size: 13px;
    }
    
    .cart-input {
        padding: 10px;
        font-size: 13px;
    }
}


/* tornar os cards de pedido clicáveis */
.orders-list .order-card {
    cursor: pointer;
}

/* estilos do modal de detalhes (reaproveita classes page-modal/page-modal-content) */
.order-detail-content {
    max-width: 700px;
    width: 100%;
}

#order-detail-container {
    padding: 10px 0 20px 0;
    font-size: 14px;
    color: #444;
}

.order-detail-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    align-items: center;
}

.order-detail-section {
    margin: 12px 0;
    padding: 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #eee;
}

.order-detail-items .order-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed #f0f0f0;
}

.order-detail-items .order-detail-item:last-child {
    border-bottom: none;
}

.order-detail-item .order-item-extras {
    margin-top: 6px;
    font-size: 13px;
    color: #777;
}

.order-detail-addr {
    font-size: 14px;
    color: #555;
}

.order-total-line {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:12px;
    font-weight:700;
    font-size:16px;
}

/* Forçar modal de detalhes acima dos outros modais */
#order-detail-modal {
  z-index: 10010; /* maior que 10002 (z-index padrão .page-modal no seu CSS) */
}

#order-detail-modal .page-modal-content {
  position: relative; /* garante contexto para z-index do content */
  z-index: 10011;
}