/* mesa-v1.css - Layout Mobile-First para Pedido Mesa */

/* ===== VARIABLES ===== */
:root {
    --primary: #FF5722;
    --primary-dark: #E64A19;
    --primary-light: #FFCCBC;
    --success: #4CAF50;
    --danger: #F44336;
    --warning: #FF9800;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 2px 8px rgba(0,0,0,0.12);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: 0.2s ease;
}

/* ===== RESET & BASE ===== */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--gray-50);
    color: var(--gray-900);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* ===== ENTRAR PAGE ===== */
.entrar-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
}

.entrar-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 32px 24px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.entrar-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.entrar-card h1 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--gray-900);
}

.entrar-card p {
    font-size: 14px;
    color: var(--gray-600);
    margin: 0 0 24px;
}

.mesa-badge-lg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 24px;
}

.mesa-badge-lg .material-icons {
    font-size: 20px;
}

.entrar-card .form-label {
    display: block;
    text-align: left;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--gray-700);
}

.entrar-card .form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 16px;
    margin-bottom: 16px;
    transition: border-color var(--transition);
}

.entrar-card .form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.entrar-card .btn-primary {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background var(--transition);
}

.entrar-card .btn-primary:hover {
    background: var(--primary-dark);
}

/* ===== STICKY HEADER (aparece ao rolar) ===== */
/* ===== STICKY HEADER ===== */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.sticky-header.visible {
    transform: translateY(0);
}

.sticky-header-content {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    gap: 12px;
}

.sticky-header-logo {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

.sticky-header-logo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.sticky-header-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sticky-header-cliente {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-header-mesa {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
}

.sticky-header-search {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.sticky-header-search:hover {
    background: var(--gray-200);
}

.sticky-header-search .material-icons {
    font-size: 20px;
    color: var(--gray-600);
}

/* ===== HEADER ===== */
.mesa-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    box-shadow: var(--shadow-sm);
}

.mesa-header-content {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
}

.mesa-header-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.mesa-header-info {
    flex: 1;
}

.mesa-header-name {
    font-weight: 600;
    font-size: 15px;
    margin: 0;
}

.mesa-badge-sm {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.mesa-badge-sm .material-icons {
    font-size: 14px;
}

.mesa-header-actions {
    display: flex;
    gap: 8px;
}

.mesa-header-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-100);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    color: var(--gray-700);
    position: relative;
    transition: background var(--transition);
}

.mesa-header-btn:hover {
    background: var(--gray-200);
}

.mesa-header-btn .material-icons {
    font-size: 22px;
}

.mesa-header-btn .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)) 12px;
    z-index: 100;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 10px 14px;
    color: white;
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, #E64A19 100%);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-width: 68px;
    box-shadow: 0 3px 10px rgba(255, 87, 34, 0.3);
}

.bottom-nav-item .material-icons {
    font-size: 26px;
}

.bottom-nav-item .bottom-nav-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.bottom-nav-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 87, 34, 0.4);
}

.bottom-nav-item:active {
    transform: scale(0.95);
}

.bottom-nav-item.sacola-btn {
    background: linear-gradient(135deg, #43A047 0%, #2E7D32 100%);
    box-shadow: 0 3px 10px rgba(67, 160, 71, 0.3);
}

.bottom-nav-item.sacola-btn:hover {
    box-shadow: 0 6px 16px rgba(67, 160, 71, 0.4);
}

.bottom-nav-item.active {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.5);
}

.bottom-nav-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 22px;
    height: 22px;
    background: #EF4444;
    color: white;
    font-size: 11px;
    font-weight: 800;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

.bottom-nav-item .badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 22px;
    height: 22px;
    background: #EF4444;
    color: white;
    font-size: 11px;
    font-weight: 800;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

/* ===== CATEGORY NAV ===== */
.category-nav {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 12px 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    background: white;
    position: sticky;
    top: 64px;
    z-index: 50;
    border-bottom: 1px solid var(--gray-200);
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.category-chip {
    flex-shrink: 0;
    padding: 10px 18px;
    background: var(--gray-100);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    scroll-snap-align: start;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    color: var(--gray-700);
}

.category-chip:active {
    transform: scale(0.95);
}

.category-chip.active {
    background: var(--primary);
    color: white;
}

/* ===== SECTION TITLE ===== */
.section-title {
    padding: 20px 16px 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== PRODUCTS LIST ===== */
.products-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 16px 100px;
}

/* ===== PRODUCT CARD ===== */
.product-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: box-shadow var(--transition);
    position: relative;
    padding: 12px;
    gap: 12px;
}

.product-card:active {
    background: var(--gray-50);
}

.product-card-body {
    flex: 1;
    min-width: 0;
    padding: 0;
    order: 1;
}

.product-card-img {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 10px;
    object-fit: cover;
    background: var(--gray-100);
    order: 2;
}

.product-card-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    color: #1F2937;
}

.product-card-desc {
    font-size: 14px;
    font-weight: 400;
    color: #6B7280;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-card-price {
    color: #111;
    font-weight: 700;
    font-size: 17px;
    margin-top: 0;
}

.product-card.esgotado {
    opacity: 0.6;
    cursor: not-allowed;
}

.badge-esgotado {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 9px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 10px;
    z-index: 5;
    text-transform: uppercase;
}

/* ===== BOTTOM SHEET ===== */
.bottom-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.bottom-sheet-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-height: 92vh;
    z-index: 1050;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bottom-sheet.show {
    transform: translateY(0);
}

.bottom-sheet-handle {
    width: 40px;
    height: 4px;
    background: var(--gray-300);
    border-radius: 2px;
    margin: 12px auto;
    flex-shrink: 0;
}

.bottom-sheet-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.bottom-sheet-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 120px;
}

.bottom-sheet-image {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    background: var(--gray-100);
}

.bottom-sheet-header {
    padding: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.bottom-sheet-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.bottom-sheet-desc {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 8px;
}

.bottom-sheet-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.bottom-sheet-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: white;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

/* ===== MODIFIER GROUP ===== */
.modifier-group {
    padding: 16px;
    border-bottom: 8px solid var(--gray-100);
}

.modifier-group-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 8px;
}

.modifier-group-title {
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.modifier-group-badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 12px;
    background: var(--gray-200);
    color: var(--gray-700);
    flex-shrink: 0;
}

.modifier-group-badge.required {
    background: var(--primary);
    color: white;
}

.modifier-item {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
}

.modifier-item:last-child {
    border-bottom: none;
}

.modifier-item input[type="radio"],
.modifier-item input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-right: 14px;
    accent-color: var(--primary);
    cursor: pointer;
}

.modifier-item-info {
    flex: 1;
    min-width: 0;
}

.modifier-item-name {
    font-size: 15px;
    font-weight: 500;
}

.modifier-item-price {
    font-size: 14px;
    color: var(--gray-600);
    flex-shrink: 0;
    margin-left: 8px;
}

.modifier-item-price.add {
    color: var(--primary);
    font-weight: 500;
}

/* ===== OBSERVATIONS ===== */
.observations-section {
    padding: 16px;
}

.observations-label {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.observations-textarea {
    width: 100%;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 12px;
    font-size: 14px;
    resize: none;
    min-height: 80px;
    font-family: inherit;
}

.observations-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* ===== QUANTITY SELECTOR ===== */
.quantity-section {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border-top: 1px solid var(--gray-200);
}

.quantity-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:disabled {
    border-color: var(--gray-300);
    color: var(--gray-300);
    cursor: not-allowed;
}

.quantity-value {
    font-size: 22px;
    font-weight: 700;
    min-width: 50px;
    text-align: center;
}

/* ===== ADD TO CART BUTTON ===== */
.add-to-cart-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.add-to-cart-btn:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
}

/* ===== SACOLA PAGE ===== */
/* ===== SACOLA - DESIGN MODERNO ===== */
.sacola-container {
    min-height: 100vh;
    padding-bottom: 260px;
    background: #F8F9FA;
}

.sacola-header {
    display: flex;
    align-items: center;
    padding: 16px;
    background: white;
    border-bottom: 1px solid var(--gray-100);
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.sacola-back {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--gray-700);
    transition: all 0.2s;
}

.sacola-back:hover {
    background: var(--gray-200);
    transform: scale(1.05);
}

.sacola-header h1 {
    flex: 1;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--gray-900);
}

.sacola-content {
    padding: 16px;
}

.sacola-itens {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Card do Produto */
.sacola-card {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.sacola-card-img {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--gray-100);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sacola-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sacola-card-img .material-icons {
    font-size: 32px;
    color: var(--gray-400);
}

.sacola-card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sacola-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.sacola-card-nome {
    font-weight: 700;
    font-size: 15px;
    color: var(--gray-900);
    line-height: 1.3;
}

.sacola-card-trash {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--gray-400);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
    flex-shrink: 0;
    margin: -4px -4px 0 0;
}

.sacola-card-trash:hover {
    background: #FEE2E2;
    color: #EF4444;
}

.sacola-card-trash .material-icons {
    font-size: 20px;
}

.sacola-card-adicionais {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sacola-card-adicionais span {
    font-size: 12px;
    color: var(--gray-500);
}

.sacola-card-obs {
    font-size: 12px;
    color: var(--gray-500);
    font-style: italic;
}

.sacola-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 8px;
}

.sacola-card-preco {
    font-weight: 700;
    font-size: 17px;
    color: var(--primary);
}

/* Controles de Quantidade */
.sacola-card-qty {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--gray-100);
    border-radius: 10px;
    padding: 4px;
}

.sacola-card-qty button {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.sacola-card-qty button:hover {
    background: var(--primary);
    color: white;
}

.sacola-card-qty button:active {
    transform: scale(0.95);
}

.sacola-card-qty button .material-icons {
    font-size: 20px;
}

.sacola-card-qty > span {
    font-weight: 700;
    font-size: 16px;
    min-width: 32px;
    text-align: center;
    color: var(--gray-900);
}

/* Observacao */
.sacola-obs {
    background: white;
    padding: 16px;
    border-radius: 16px;
    margin-top: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.sacola-obs label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
    color: var(--gray-700);
}

.sacola-obs textarea {
    width: 100%;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 14px;
    font-size: 14px;
    resize: none;
    background: var(--gray-50);
    transition: all 0.2s;
}

.sacola-obs textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.1);
}

/* Footer Fixo */
.sacola-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 16px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    background: white;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sacola-resumo-box {
    padding: 16px;
    background: var(--gray-50);
    border-radius: 12px;
}

.sacola-resumo-linha {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sacola-resumo-linha > span:first-child {
    font-size: 14px;
    color: var(--gray-600);
}

.sacola-resumo-valor {
    font-size: 22px;
    font-weight: 800;
    color: var(--gray-900);
}

.sacola-add-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.sacola-add-more:hover {
    opacity: 0.8;
}

.sacola-add-more .material-icons {
    font-size: 20px;
}

.sacola-btn-confirmar {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, #E65100 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(230, 81, 0, 0.35);
    transition: all 0.2s;
}

.sacola-btn-confirmar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(230, 81, 0, 0.45);
}

.sacola-btn-confirmar:active {
    transform: translateY(0);
}

.sacola-btn-confirmar:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.sacola-btn-confirmar .material-icons {
    font-size: 22px;
}

/* Sacola Vazia */
.sacola-vazia {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
    min-height: 60vh;
}

.sacola-vazia .material-icons {
    font-size: 88px;
    color: var(--gray-200);
    margin-bottom: 24px;
}

.sacola-vazia p {
    color: var(--gray-500);
    margin-bottom: 28px;
    font-size: 16px;
}

.sacola-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border: 2px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
}

.sacola-btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* ===== MEUS PEDIDOS PAGE - REDESIGN ===== */
.pedidos-page {
    min-height: 100vh;
    background: #F5F5F5;
    padding-bottom: 100px;
}

.pedidos-status-header {
    padding: 20px 16px 24px;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, #E64A19 100%);
    color: white;
}

.pedidos-status-header.status-autorizado {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}

.pedidos-status-header.status-preparando {
    background: linear-gradient(135deg, #FFC107 0%, #FFA000 100%);
}

.pedidos-status-header.status-pronto {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
}

.pedidos-status-header.status-entregue {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
}

.pedidos-status-header.status-vazio {
    background: linear-gradient(135deg, #9E9E9E 0%, #757575 100%);
}

.pedidos-back-btn {
    position: absolute;
    left: 12px;
    top: 12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.2s;
}

.pedidos-back-btn:hover {
    background: rgba(255,255,255,0.3);
}

.pedidos-status-content {
    padding-top: 8px;
}

.pedidos-status-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 8px;
}

.pedidos-status-header h1 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px;
}

.pedidos-status-header p {
    font-size: 13px;
    opacity: 0.9;
    margin: 0;
}

.pedidos-body {
    padding: 16px;
}

.pedidos-loading {
    text-align: center;
    padding: 60px 20px;
}

.pedidos-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.pedidos-loading p {
    color: var(--gray-500);
    font-size: 14px;
}

.pedidos-empty {
    text-align: center;
    padding: 60px 24px;
    background: white;
    border-radius: 16px;
    margin-top: 20px;
}

.pedidos-empty .material-icons {
    font-size: 72px;
    color: var(--gray-300);
    margin-bottom: 16px;
}

.pedidos-empty h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 8px;
}

.pedidos-empty p {
    font-size: 14px;
    color: var(--gray-500);
    margin: 0 0 24px;
}

.pedidos-empty-btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
}

.pedidos-empty-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
}

/* Pedido Card */
.pedido-card {
    background: white;
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    overflow: hidden;
}

.pedido-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
}

.pedido-numero {
    font-weight: 700;
    font-size: 15px;
    color: var(--gray-900);
}

.pedido-hora {
    font-size: 13px;
    color: var(--gray-500);
}

/* Item Card */
.pedido-item-card {
    padding: 16px;
    border-bottom: 1px solid var(--gray-100);
}

.pedido-item-card:last-child {
    border-bottom: none;
}

.pedido-item-main {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
}

.pedido-item-card .pedido-item-img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pedido-item-card .pedido-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pedido-item-card .pedido-item-img .material-icons {
    font-size: 26px;
    color: var(--gray-400);
}

.pedido-item-card .pedido-item-info {
    flex: 1;
    min-width: 0;
}

.pedido-item-card .pedido-item-nome {
    font-weight: 700;
    font-size: 14px;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.pedido-item-card .pedido-item-obs {
    font-size: 12px;
    color: var(--gray-500);
    font-style: italic;
    margin-bottom: 6px;
}

.pedido-item-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.pedido-item-status .status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse-status 2s infinite;
}

.pedido-item-status.status-autorizado {
    background: #FFF3E0;
    color: #E65100;
}

.pedido-item-status.status-autorizado .status-indicator {
    background: #FF9800;
}

.pedido-item-status.status-preparando {
    background: #FFF8E1;
    color: #F57F17;
}

.pedido-item-status.status-preparando .status-indicator {
    background: #FFC107;
}

.pedido-item-status.status-pronto {
    background: #E8F5E9;
    color: #2E7D32;
}

.pedido-item-status.status-pronto .status-indicator {
    background: #4CAF50;
}

.pedido-item-status.status-entregue {
    background: #E3F2FD;
    color: #1565C0;
}

.pedido-item-status.status-entregue .status-indicator {
    background: #2196F3;
    animation: none;
}

.tempo-estimado {
    margin-left: 6px;
    opacity: 0.8;
}

@keyframes pulse-status {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Timeline */
.pedido-timeline {
    padding: 0 4px;
}

.timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.timeline-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.timeline-dot .material-icons {
    font-size: 14px;
    color: white;
}

.timeline-step.completed .timeline-dot {
    background: var(--success);
}

.timeline-step.current .timeline-dot {
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 87, 34, 0.2);
}

.timeline-step.current .timeline-dot .pulse {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.timeline-step.pending .timeline-dot {
    background: var(--gray-200);
}

.timeline-label {
    font-size: 10px;
    color: var(--gray-500);
    font-weight: 500;
}

.timeline-step.current .timeline-label {
    color: var(--primary);
    font-weight: 700;
}

.timeline-step.completed .timeline-label {
    color: var(--success);
}

.timeline-line {
    flex: 1;
    height: 3px;
    background: var(--gray-200);
    margin: 0 4px;
    margin-bottom: 18px;
}

.timeline-line.completed {
    background: var(--success);
}

/* Footer Fixo */
.pedidos-footer-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    background: white;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
    z-index: 100;
}

.pedidos-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--gray-50);
    border-radius: 12px;
    margin-bottom: 12px;
}

.pedidos-total span {
    font-size: 13px;
    color: var(--gray-600);
}

.pedidos-total strong {
    font-size: 20px;
    font-weight: 800;
    color: var(--gray-900);
}

.pedidos-actions {
    display: flex;
    gap: 10px;
}

.pedidos-btn-secondary,
.pedidos-btn-primary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.pedidos-btn-secondary {
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.pedidos-btn-secondary:hover {
    background: var(--primary-light);
}

.pedidos-btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #E64A19 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
}

.pedidos-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 87, 34, 0.4);
}

.pedidos-btn-secondary .material-icons,
.pedidos-btn-primary .material-icons {
    font-size: 20px;
}

/* ===== CONTA PAGE ===== */
.conta-container {
    padding-bottom: 100px;
}

.conta-header {
    display: flex;
    align-items: center;
    padding: 16px;
    background: white;
    border-bottom: 1px solid var(--gray-200);
    gap: 12px;
}

.conta-back {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--gray-700);
}

.conta-header h1 {
    flex: 1;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.conta-content {
    padding: 16px;
}

.conta-consumidor {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--primary-light);
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-weight: 500;
    color: var(--primary-dark);
}

.conta-consumidor .material-icons {
    font-size: 20px;
}

.conta-itens {
    background: white;
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
}

.conta-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
}

.conta-item:last-child {
    border-bottom: none;
}

.conta-item-nome {
    font-weight: 500;
}

.conta-item-preco {
    font-weight: 600;
}

.conta-adicional {
    display: flex;
    justify-content: space-between;
    padding: 4px 0 4px 16px;
    font-size: 13px;
    color: var(--gray-600);
}

.conta-resumo {
    background: white;
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
}

.conta-linha {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.conta-total {
    display: flex;
    justify-content: space-between;
    padding: 12px 0 0;
    border-top: 1px solid var(--gray-200);
    margin-top: 8px;
    font-size: 18px;
    font-weight: 700;
}

.conta-cpf {
    background: white;
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
}

.conta-cpf .form-label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 8px;
}

.conta-cpf .form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 16px;
}

.conta-pagamento {
    background: white;
    border-radius: var(--radius);
    padding: 16px;
}

.conta-pagamento h6 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 16px;
}

.conta-opcao-pagamento {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    text-align: left;
    transition: all var(--transition);
}

.conta-opcao-pagamento:hover {
    background: var(--gray-100);
    border-color: var(--primary);
}

.conta-opcao-pagamento .material-icons {
    font-size: 28px;
    color: var(--primary);
}

.conta-opcao-pagamento strong {
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
}

.conta-opcao-pagamento small {
    display: block;
    font-size: 12px;
    color: var(--gray-600);
}

/* ===== MODAL GARCOM ===== */
.modal-garcom {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1100;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.modal-garcom.show {
    display: flex;
}

.modal-garcom-content {
    background: white;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    width: 100%;
    max-width: 500px;
    padding: 24px;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.modal-garcom-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-garcom-header h5 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.modal-garcom-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-100);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.modal-garcom-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-garcom-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}

.modal-garcom-option:hover {
    background: var(--gray-100);
    border-color: var(--primary);
}

.modal-garcom-option .material-icons {
    font-size: 28px;
    color: var(--primary);
}

.modal-garcom-option span {
    font-size: 15px;
    font-weight: 500;
}

/* ===== MODAL REPETIR ===== */
.modal-repetir {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1100;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.modal-repetir.show {
    display: flex;
}

.modal-repetir-content {
    background: white;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

.modal-repetir-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
}

.modal-repetir-header h5 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.modal-repetir-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-100);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.modal-repetir-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}

.repetir-pedido {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
}

.repetir-pedido-header {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--gray-700);
}

.repetir-item {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-200);
}

.repetir-item:last-of-type {
    border-bottom: none;
}

.repetir-item-img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--gray-200);
}

.repetir-item-info {
    flex: 1;
}

.repetir-item-nome {
    font-size: 13px;
    font-weight: 500;
}

.repetir-item-preco {
    font-size: 12px;
    color: var(--gray-600);
}

.repetir-btn {
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* ===== CONTENT WRAPPER ===== */
.content-wrapper {
    padding-bottom: 80px;
}

/* ===== UTILITIES ===== */
.text-primary {
    color: var(--primary) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-danger {
    color: var(--danger) !important;
}

.text-muted {
    color: var(--gray-600) !important;
}

.text-center {
    text-align: center;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.me-2 {
    margin-right: 0.5rem;
}

.flex-grow-1 {
    flex-grow: 1;
}

.d-none {
    display: none !important;
}

.d-flex {
    display: flex !important;
}

/* ===== SAFE AREA (iOS) ===== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .bottom-nav {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .sacola-footer,
    .pedidos-footer,
    .bottom-sheet-footer {
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
    }
}

/* ===== LOADING SPINNER ===== */
.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ===== STORE HERO ===== */
.store-hero {
    position: relative;
    margin-bottom: 0;
}

.store-hero-banner {
    height: 140px;
    background-size: cover;
    background-position: center;
    background-color: var(--gray-300);
    position: relative;
}

.store-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.45) 100%);
}

.store-hero-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -36px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    background: white;
    z-index: 10;
}

.store-hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== STORE INFO CARD (COMPACTO) ===== */
.store-info-card {
    position: relative;
    background: white;
    margin: -20px 12px 0;
    padding: 44px 16px 14px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    text-align: center;
    z-index: 5;
}

.store-info-name {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--gray-900);
}

.store-info-cliente {
    font-size: 13px;
    color: var(--gray-500);
    margin: 0 0 10px;
}

.store-info-cliente strong {
    color: var(--primary);
    font-weight: 600;
}

.store-info-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.mesa-badge-compact {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 12px;
}

.mesa-badge-compact .material-icons {
    font-size: 14px;
}

.store-info-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
}

.store-info-status .status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.store-info-status .status-dot.open {
    background: var(--success);
}

.store-info-status .status-dot.closed {
    background: var(--danger);
}

.store-info-status.open {
    color: var(--success);
}

.store-info-status.closed {
    color: var(--danger);
}

.store-info-horario,
.store-info-whatsapp {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.store-info-horario:hover,
.store-info-whatsapp:hover {
    background: var(--gray-200);
    transform: scale(1.05);
}

.store-info-horario .material-icons {
    font-size: 18px;
    color: var(--primary);
}

.store-info-whatsapp .material-icons {
    font-size: 18px;
    color: #25D366;
}

.store-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gray-100);
    border-radius: 10px;
    padding: 10px 14px;
    margin: 0;
    cursor: pointer;
    transition: all 0.2s;
}

.store-search-box:hover {
    background: var(--gray-200);
}

.store-search-box .material-icons {
    font-size: 18px;
    color: var(--gray-500);
}

.store-search-box span:last-child {
    font-size: 13px;
    color: var(--gray-500);
}

/* ===== STORE INFO ACTIONS (LEGACY) ===== */
.store-info-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    justify-content: center;
}

.store-info-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F5F5F5;
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-800);
    cursor: pointer;
    transition: all var(--transition);
}

.store-info-btn:hover {
    background: #EBEBEB;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.store-info-btn:active {
    transform: scale(0.97);
}

.store-info-btn .material-icons {
    font-size: 18px;
    color: var(--primary);
}

/* ===== MESA BADGE ===== */
.mesa-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 14px;
    margin: 12px 0;
}

.mesa-badge .material-icons {
    font-size: 18px;
}

/* ===== STICKY HEADER MESA ===== */
.sticky-header-mesa {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
}

.sticky-header-mesa .material-icons {
    font-size: 14px;
}

/* ===== PRODUCTS HORIZONTAL (MAIS VENDIDOS) ===== */
.products-horizontal {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 0 16px 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.products-horizontal::-webkit-scrollbar {
    display: none;
}

.product-card-horizontal {
    flex-shrink: 0;
    width: 150px;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
}

.product-card-horizontal:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.product-card-horizontal:active {
    transform: scale(0.97);
}

.product-card-horizontal-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--gray-100);
}

.product-card-horizontal-body {
    padding: 10px 12px 12px;
}

.product-card-horizontal-body .product-card-name {
    min-height: auto;
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--gray-900);
}

.product-card-horizontal-body .product-card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

/* ===== PRICE OLD ===== */
.price-old {
    text-decoration: line-through;
    color: var(--gray-500) !important;
    font-weight: 400 !important;
    margin-right: 4px;
}

/* ===== BADGE PROMO ===== */
.badge-promo {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--success);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    z-index: 5;
    letter-spacing: 0.3px;
}

/* ===== SECTION HEADER ===== */
.section-header {
    padding: 24px 16px 12px;
}

.section-header .section-title {
    padding: 0;
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 700;
    color: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-icon {
    font-size: 20px;
}

.section-icon-img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: cover;
}

.section-subtitle {
    display: block;
    font-size: 14px;
    color: var(--gray-500);
    margin-top: 2px;
}

/* ===== CATEGORY BANNER HEADER ===== */
.category-banner-header {
    position: relative;
    width: 100%;
    margin-bottom: 16px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-left: 16px;
    margin-right: 16px;
    width: calc(100% - 32px);
}

.category-banner-title-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--primary);
    padding: 12px 16px;
    z-index: 2;
}

.category-banner-title-bar h2 {
    margin: 0;
    padding: 0;
    font-size: 18px;
    font-weight: 700;
    color: white;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-banner-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* ===== CATEGORY NAV V2 ===== */
.category-nav-v2 {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 10px 16px;
    margin-top: 0;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    background: white;
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.category-nav-v2::-webkit-scrollbar {
    display: none;
}

.category-chip-v2 {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    height: 34px;
    background: white;
    border: 1.5px solid var(--gray-200);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    scroll-snap-align: start;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--gray-600);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.category-chip-v2:hover {
    border-color: var(--gray-300);
    background: var(--gray-50);
}

.category-chip-v2:active {
    transform: scale(0.97);
}

.category-chip-v2.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    height: 38px;
    padding: 0 18px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
    transform: translateY(-1px);
}

.category-chip-icon {
    font-size: 14px;
}

.category-chip-img {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    object-fit: cover;
}

/* ===== CATEGORY SECTION ===== */
.category-section {
    scroll-margin-top: 56px;
}

/* ===== SEARCH OVERLAY ===== */
.search-overlay {
    position: fixed;
    inset: 0;
    background: white;
    z-index: 200;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.search-overlay.show {
    transform: translateY(0);
}

.search-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
    border-bottom: 1px solid var(--gray-200);
}

.search-back-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--gray-100);
    border-radius: 24px;
    padding: 10px 16px;
    gap: 8px;
}

.search-input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    outline: none;
}

.search-clear-btn {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    color: var(--gray-600);
    display: none;
}

.search-clear-btn.show {
    display: block;
}

.search-results {
    padding: 8px 0;
    overflow-y: auto;
    max-height: calc(100vh - 70px);
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
    cursor: pointer;
    transition: background var(--transition);
}

.search-result-item:active {
    background: var(--gray-100);
}

.search-result-img {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-weight: 500;
    font-size: 15px;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-price {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

.search-no-results {
    text-align: center;
    padding: 40px 16px;
    color: var(--gray-600);
}

.search-load-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    margin: 8px 0;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    cursor: pointer;
    transition: background var(--transition);
}

.search-load-more:hover {
    background: var(--gray-200);
}

.search-load-more:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.search-load-more .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--gray-300);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.search-result-item.esgotado {
    opacity: 0.6;
}

.search-result-item.esgotado .search-result-price {
    color: var(--danger) !important;
}
