/**
 * Cakeon Delivery - CSS Mobile-First
 * Design: Header laranja, bottom nav 100%, cards com bordas suaves.
 */

/* ==============================
   Reset & Base
   ============================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #C1440E;
    --primary-dark: #9A360B;
    --primary-light: #FFF0EB;
    --primary-bg: #C1440E;
    --accent: #D4730E;
    --text: #1a1a2e;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --bg: #F5F5F5;
    --white: #ffffff;
    --border: #e5e7eb;
    --border-light: #f0f0f0;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --card-img-bg: #FDEBD0;
    --radius: 14px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --transition: 0.2s ease;
    --bottom-nav-h: 64px;
    --verde-escuro: #5F9EA0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    padding-bottom: calc(var(--bottom-nav-h) + 12px);
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

.text-center { text-align: center; }
.inline-form { display: inline; }

/* ==============================
   Container
   ============================== */
.container {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ==============================
   Top Header (laranja - home only)
   ============================== */
.top-header {
    background: #fff;
    color: #777;
    padding: 1.25rem 1rem 1rem;
}

.top-header-inner {
    max-width: 640px;
    margin: 0 auto;
}

.empresa-contatos {
    margin-top: 12px;
    display: flex;
    gap: 10px;
}

.empresa-btn {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--verde-escuro);
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}

.empresa-btn-outline {
    background: #fff;
    border: 1px solid var(--verde-escuro);
    color: var(--verde-escuro);
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.3);
}

.brand-text { flex: 1; }

.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #696969;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.8125rem;
    color: #696969;
    font-weight: 400;
    margin-top: 0.125rem;
}

.address-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(95,158,160,0.15);
    border: 1px solid rgba(95,158,160,0.2);
    border-radius: 100px;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    color: var(--verde-escuro);
}
.address-bar svg { flex-shrink: 0; opacity: 0.9; }

/* ==============================
   Inner Page Header (seta + titulo)
   ============================== */
.inner-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.inner-header-inner {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    min-height: 52px;
}

.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text);
    transition: background var(--transition);
    flex-shrink: 0;
}
.back-btn:hover { background: var(--bg); color: var(--text); }

.inner-header-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==============================
   Bottom Navigation - FULL WIDTH
   ============================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--bottom-nav-h);
    background: var(--white);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
}

.bottom-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    max-width: 480px;
    height: 100%;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1;
    height: 100%;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
    position: relative;
    -webkit-tap-highlight-color: transparent;
}
.bottom-nav-item svg { transition: color var(--transition); }
.bottom-nav-item:hover,
.bottom-nav-item.active { color: var(--primary); }
.bottom-nav-item:hover svg,
.bottom-nav-item.active svg { stroke: var(--primary); }
.bottom-nav-item.active span:last-child { font-weight: 700; }

.bottom-nav-icon-wrap {
    position: relative;
    display: inline-flex;
}

.bottom-nav-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.5625rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ==============================
   Main
   ============================== */
.main {
    flex: 1;
    padding-top: 1.25rem;
    padding-bottom: 1.5rem;
}

/* ==============================
   Typography
   ============================== */
.page-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    color: var(--text);
}

.section-title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.text-muted { color: var(--text-muted); }

/* ==============================
   Alerts
   ============================== */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    margin: 0.75rem 0;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
}
.alert-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.alert-error   { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert-info    { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.alert-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }

/* ==============================
   Cardapio Cards (Home)
   ============================== */
.cardapio-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cardapio-card {
    display: block;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    color: inherit;
    transition: box-shadow var(--transition), transform var(--transition);
}
.cardapio-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: inherit;
}

.cardapio-card-img {
    width: 100%;
    height: 180px;
    background: var(--card-img-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.cardapio-card-img img { width: 100%; height: 100%; object-fit: cover; }

.cardapio-card-initial {
    font-size: 3.5rem;
    font-weight: 800;
    color: rgba(160, 82, 45, 0.35);
    user-select: none;
}

.cardapio-card-body { padding: 1rem 1rem 1.125rem; }

.cardapio-card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.cardapio-card-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 0.625rem;
}

.cardapio-card-tags { display: flex; flex-wrap: wrap; gap: 0.375rem; }

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    border-radius: 100px;
    font-size: 0.6875rem;
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text);
}
.tag svg { opacity: 0.6; }
.tag-delivery { color: var(--primary); border-color: var(--primary-light); background: var(--primary-light); }

/* ==============================
   Menu Items (cardapio show)
   ============================== */
.section-nav {
    display: flex;
    overflow-x: auto;
    gap: 0.375rem;
    padding: 0.5rem 0;
    margin: 0.75rem 0 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.section-nav::-webkit-scrollbar { display: none; }

.section-nav-link {
    white-space: nowrap;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.section-nav-link:hover,
.section-nav-link.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.menu-section { margin-bottom: 1.5rem; }
.section-desc { color: var(--text-muted); font-size: 0.8125rem; margin-bottom: 0.75rem; }

.item-list { display: flex; flex-direction: column; gap: 0.625rem; }

.item-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: inherit;
    transition: box-shadow var(--transition);
}
.item-card:hover { box-shadow: var(--shadow-md); color: inherit; }

.item-info { flex: 1; min-width: 0; }
.item-name { font-size: 0.9375rem; font-weight: 600; margin-bottom: 0.125rem; }
.item-desc { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.25rem; line-height: 1.4; }
.item-price { font-size: 0.9375rem; font-weight: 700; color: var(--primary); }

.item-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--card-img-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}
.item-img img { width: 100%; height: 100%; object-fit: cover; }
.item-img-initial { font-size: 1.5rem; font-weight: 700; color: rgba(160,82,45,0.35); }

/* ==============================
   Produto Detail
   ============================== */
.produto-banner {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 220px;
    background: var(--card-img-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.produto-banner img { width: 100%; height: 100%; object-fit: cover; }
.produto-banner-initial {
    font-size: 4.5rem;
    font-weight: 800;
    color: rgba(160, 82, 45, 0.3);
    user-select: none;
}

.produto-content {
    padding-top: 1.25rem;
    margin-bottom: 1rem;
}

.produto-name { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.25rem; }
.produto-desc { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 0.375rem; line-height: 1.5; }
.produto-price { font-size: 1.125rem; font-weight: 700; color: var(--primary); }

.produto-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-bottom: 5rem;
}

/* Complemento Sections */
.compl-section {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
}

.compl-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.375rem;
    padding: 0.875rem 1rem;
    background: var(--bg);
}
.compl-section-title { font-size: 0.9375rem; font-weight: 700; }
.compl-section-rule { font-size: 0.75rem; color: var(--text-muted); }

.compl-options { display: flex; flex-direction: column; }

.compl-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    cursor: pointer;
    transition: background var(--transition);
    border-bottom: 1px solid var(--border-light);
    position: relative;
}
.compl-option:last-child { border-bottom: none; }
.compl-option:hover { background: #fefbf8; }

.compl-option .compl-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.compl-option-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.compl-option-circle::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    transition: background var(--transition);
}

.compl-option:not(.compl-option-radio) .compl-option-circle { border-radius: 4px; }
.compl-option:not(.compl-option-radio) .compl-option-circle::after { border-radius: 2px; }

.compl-option .compl-input:checked ~ .compl-option-circle { border-color: var(--primary); }
.compl-option .compl-input:checked ~ .compl-option-circle::after { background: var(--primary); }

.compl-option:has(.compl-input:checked) {
    background: var(--primary-light);
}

.compl-option-name { font-size: 0.875rem; flex: 1; }
.compl-option-price { font-size: 0.8125rem; color: var(--primary); font-weight: 500; }

.obs-section .compl-section-title { margin-bottom: 0.5rem; }

/* Botao fixo adicionar */
.produto-add-bar {
    position: fixed;
    bottom: var(--bottom-nav-h);
    left: 0;
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg);
    z-index: 100;
}
.produto-add-bar .btn {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
}

/* ==============================
   Cart (Carrinho)
   ============================== */
.cart-items { display: flex; flex-direction: column; gap: 0.75rem; }

.cart-item-card {
    display: flex;
    gap: 0.75rem;
    background: var(--white);
    border-radius: var(--radius);
    padding: 0.875rem;
    box-shadow: var(--shadow);
}

.cart-thumb {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--card-img-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb-initial { font-size: 1.25rem; font-weight: 700; color: rgba(160,82,45,0.4); }

.cart-item-body { flex: 1; min-width: 0; }

.cart-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.cart-item-name { font-size: 0.9375rem; font-weight: 600; margin-bottom: 0.125rem; }
.cart-item-variant { font-size: 0.75rem; color: var(--text-muted); }
.cart-item-obs { font-size: 0.6875rem; color: var(--text-light); margin-top: 0.125rem; }

.cart-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.cart-item-total { font-size: 0.9375rem; font-weight: 700; color: var(--primary); }

/* Qty Controls */
.qty-control-inline { display: flex; align-items: center; gap: 0; }

.qty-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}

.qty-minus { background: var(--bg); color: var(--text-muted); }
.qty-minus:hover { background: var(--border); }
.qty-plus { background: var(--primary); color: var(--white); }
.qty-plus:hover { background: var(--primary-dark); }
.qty-value { width: 28px; text-align: center; font-weight: 600; font-size: 0.875rem; }

/* Cart Summary */
.cart-summary-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1rem;
    margin-top: 1rem;
    box-shadow: var(--shadow);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.375rem 0;
    font-size: 0.875rem;
}
.summary-label { color: var(--text-muted); }
.summary-value { font-weight: 500; }

.summary-total {
    font-weight: 700;
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
    margin-top: 0.375rem;
}
.summary-total .summary-label { color: var(--text); font-weight: 700; }
.total-value { color: var(--primary); font-size: 1.0625rem; }

/* Cart Bottom Actions */
.cart-bottom-actions { margin-top: 1.5rem; padding-bottom: 0.5rem; }

.btn-link-muted {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.875rem;
    padding: 0.75rem;
    display: block;
    width: 100%;
    text-align: center;
    transition: color var(--transition);
}
.btn-link-muted:hover { color: var(--danger); text-decoration: underline; }

/* ==============================
   Buttons
   ============================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    font-family: inherit;
}

.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); }

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-block { width: 100%; }
.btn-lg { padding: 1rem 1.5rem; font-size: 1rem; border-radius: var(--radius); }

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--text-light);
    transition: color var(--transition);
}
.btn-remove:hover { color: var(--danger); }

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.875rem;
    padding: 0.5rem;
}
.btn-link:hover { text-decoration: underline; }

/* ==============================
   Forms
   ============================== */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: 0.8125rem; font-weight: 500; margin-bottom: 0.375rem; color: var(--text-muted); }
.form-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.375rem; }

.form-control {
    width: 100%;
    padding: 0.75rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--white);
    color: var(--text);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

textarea.form-control { resize: vertical; }
select.form-control { appearance: auto; }

/* OTP Input */
.otp-input {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
    font-weight: 700;
}

/* ==============================
   Auth (Login)
   ============================== */
.auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0 1rem;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

.auth-icon-wrap { margin-bottom: 1.25rem; }
.auth-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-heading {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.375rem;
    color: var(--text);
}

.auth-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.auth-form { width: 100%; }

/* ==============================
   Agendamento
   ============================== */
.agendamento-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ag-section-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
}

/* Type cards (Retirada / Delivery) */
.ag-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.ag-type-card {
    cursor: pointer;
    display: block;
}
.ag-type-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.ag-type-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 1.25rem 0.75rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
    text-align: center;
    background: var(--white);
}

.ag-type-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ag-type-body svg { color: var(--text-muted); transition: color var(--transition); }
.ag-type-label { font-weight: 600; font-size: 0.9375rem; color: var(--text); }
.ag-type-desc { font-size: 0.75rem; color: var(--text-muted); }

.ag-type-card input[type="radio"]:checked + .ag-type-body {
    border-color: var(--primary);
    background: var(--primary-light);
}
.ag-type-card input[type="radio"]:checked + .ag-type-body svg { color: var(--primary); }
.ag-type-card input[type="radio"]:checked + .ag-type-body .ag-type-label { color: var(--primary); }

/* Time slots grid */
.time-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.time-slot {
    cursor: pointer;
    display: block;
}
.time-slot input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.time-slot-label {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.75rem 0.5rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text);
    transition: all var(--transition);
    background: var(--white);
    min-height: 48px;
}
.time-slot-label:hover { border-color: rgba(193,68,14,0.3); }

.time-slot input[type="radio"]:checked + .time-slot-label {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.time-slot.disabled .time-slot-label {
    opacity: 0.45;
    cursor: not-allowed;
    color: var(--text-light);
}

.ag-actions {
    padding-top: 0.25rem;
}

/* ==============================
   Checkout
   ============================== */
.checkout-layout { display: flex; flex-direction: column; gap: 1rem; margin-top: 0.75rem; }

.checkout-summary,
.checkout-client,
.checkout-action {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.checkout-items { display: flex; flex-direction: column; gap: 0.625rem; margin-bottom: 1rem; }
.checkout-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid var(--border-light);
}
.checkout-item:last-child { border-bottom: none; padding-bottom: 0; }
.checkout-item-qty { font-weight: 600; color: var(--primary); min-width: 24px; }
.checkout-item-info { flex: 1; }
.checkout-item-name { font-weight: 500; font-size: 0.875rem; }
.checkout-item-compls, .checkout-item-obs { display: block; font-size: 0.75rem; color: var(--text-muted); }
.checkout-item-price { font-weight: 600; font-size: 0.875rem; }

.checkout-delivery {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    margin-bottom: 1rem;
}
.delivery-info { display: flex; justify-content: space-between; font-size: 0.8125rem; padding: 0.125rem 0; }
.delivery-label { font-weight: 500; }

.checkout-totals { border-top: 1px solid var(--border); padding-top: 0.75rem; }
.checkout-note { font-size: 0.75rem; color: var(--text-muted); text-align: center; margin-top: 0.75rem; }
.client-info { font-size: 0.875rem; }
.client-info p { margin-bottom: 0.125rem; }

/* ==============================
   Confirmation
   ============================== */
.confirmation-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    text-align: center;
}

.confirmation-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow);
    max-width: 440px;
    width: 100%;
}

.confirmation-icon { margin-bottom: 1rem; }
.confirmation-success .confirmation-icon svg { color: var(--success); }
.confirmation-pending .confirmation-icon svg { color: var(--warning); }
.confirmation-error .confirmation-icon svg   { color: var(--danger); }

.confirmation-title { font-size: 1.375rem; font-weight: 700; margin-bottom: 0.5rem; }
.confirmation-text { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; }
.confirmation-details {
    background: var(--bg);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    margin-top: 1rem;
    font-size: 0.875rem;
}
.confirmation-details p { margin-bottom: 0.25rem; }

.confirmation-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.5rem;
    width: 100%;
    max-width: 440px;
}

/* ==============================
   Orders
   ============================== */
.orders-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.75rem; }

.order-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
    color: inherit;
    display: block;
    transition: box-shadow var(--transition);
}
.order-card:hover { box-shadow: var(--shadow-md); color: inherit; }

.order-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.order-id { font-weight: 700; font-size: 0.9375rem; }

.status-badge {
    display: inline-block;
    padding: 0.125rem 0.625rem;
    border-radius: 100px;
    font-size: 0.6875rem;
    font-weight: 600;
}
.status-pendente  { background: #fef3c7; color: #92400e; }
.status-andamento { background: #dbeafe; color: #1e40af; }
.status-concluido { background: #ecfdf5; color: #065f46; }
.status-cancelado { background: #fef2f2; color: #991b1b; }

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.375rem;
    font-size: 0.8125rem;
}
.order-delivery { color: var(--text-muted); }
.order-total { font-weight: 700; color: var(--primary); font-size: 0.9375rem; }

/* ==============================
   Order Detail
   ============================== */
.detail-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    margin-bottom: 0.75rem;
}
.detail-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

.detail-row { display: flex; justify-content: space-between; font-size: 0.875rem; padding: 0.375rem 0; }
.detail-label { color: var(--text-muted); }

.detail-item { padding: 0.625rem 0; border-bottom: 1px solid var(--border-light); }
.detail-item:last-child { border-bottom: none; }
.detail-item-header { display: flex; justify-content: space-between; font-size: 0.875rem; }
.detail-item-price { font-weight: 600; }
.detail-item-compls { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.25rem; }
.detail-item-obs { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }
.detail-totals { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--border); }

/* ==============================
   Reviews / Stars
   ============================== */
.review-wrapper { display: flex; justify-content: center; padding: 1rem 0; }
.review-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow);
    max-width: 440px;
    width: 100%;
}
.review-form { display: flex; flex-direction: column; gap: 1rem; }

.star-rating { display: flex; gap: 0.25rem; flex-direction: row-reverse; justify-content: flex-end; }
.star-label { cursor: pointer; }
.star-label input { display: none; }
.star-icon {
    font-size: 2rem;
    color: #d1d5db;
    transition: color var(--transition);
}
.star-icon.star-hover,
.star-icon.star-active,
.star-label input:checked ~ .star-icon { color: #f59e0b; }

/* Badges */
.badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 100px;
    font-size: 0.6875rem;
    font-weight: 600;
    background: var(--primary-light);
    color: var(--primary);
}
.badge-muted { background: #f3f4f6; color: var(--text-muted); }
.compl-tag {
    font-size: 0.6875rem;
    background: #f3f4f6;
    padding: 0.125rem 0.5rem;
    border-radius: 100px;
    color: var(--text-muted);
}

/* ==============================
   Empty State
   ============================== */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}
.empty-state svg { margin: 0 auto 1rem; }
.empty-state p { margin-bottom: 1rem; font-size: 0.9375rem; }

/* ==============================
   Account / Conta
   ============================== */
.account-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0 1.25rem;
}

.account-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 12px rgba(193, 68, 14, 0.3);
}

.account-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.account-email {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.account-form {
    margin-top: 0.5rem;
}

.account-form .form-group {
    margin-bottom: 1rem;
}

.form-group--pending .form-control {
    border-color: var(--warning);
    background: #FFFBEB;
}

.form-group--pending .form-label {
    color: var(--primary-dark);
}

.form-label-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--warning);
    color: var(--white);
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    margin-left: 0.35rem;
    vertical-align: middle;
}

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--danger);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.btn-logout:hover {
    background: #FEF2F2;
    color: var(--danger);
}

.pay-ok, .pay-partial, .pay-pending {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  display: inline-block;
}

.pay-ok { background:#d1e7dd; color:#0f5132; }
.pay-partial { background:#fff3cd; color:#664d03; }
.pay-pending { background:#e2e3e5; color:#41464b; }

/* ==============================
   Responsive
   ============================== */
@media (min-width: 640px) {
    .container { padding: 0 0.75rem; }
    .page-title { font-size: 1.5rem; }
    .produto-banner { height: 280px; }
    .cardapio-card-img { height: 220px; }
    .top-header { padding: 1.5rem 1.5rem 1.25rem; }
}

@media (min-width: 768px) {
    .bottom-nav {
        border-radius: 16px 16px 0 0;
    }
    .produto-add-bar .btn {
        max-width: 640px;
    }
}



/* ==============================
   Card�pios - LISTA compacta (Home)
   ============================== */

.cardapio-list{
  display:flex;
  flex-direction:column;
  gap:.75rem;
}

.cardapio-card--list{
  display:flex;
  align-items:center;
  gap:.9rem;
  padding:.85rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.cardapio-card--list:hover{
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.cardapio-thumb{
  width:64px;
  height:64px;
  border-radius: 14px;
  background: var(--card-img-bg);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  overflow:hidden;
}

.cardapio-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.cardapio-thumb-initial{
  font-size:1.6rem;
  font-weight:800;
  color: rgba(160,82,45,.35);
  user-select:none;
}

.cardapio-info{
  flex:1;
  min-width:0;
}

.cardapio-info-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.5rem;
}

.cardapio-title{
  font-size:1rem;
  font-weight:700;
  color: var(--text);
  margin:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.cardapio-desc{
  font-size:.78rem;
  color: var(--text-muted);
  margin:.2rem 0 .45rem;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient: vertical;
  overflow:hidden;
}

.cardapio-meta{
display:flex;
  gap:.4rem;
  flex-wrap:wrap;
  margin-top:.35rem;
}

.chip{
  display:inline-flex;
  align-items:center;
  padding:.22rem .55rem;
  border-radius:999px;
  font-size:.68rem;
  font-weight:700;
  border:1px solid var(--border);
  background:#fff;
  color: var(--text);
}

.chip-delivery{
  border-color: rgba(193,68,14,.15);
  background: rgba(193,68,14,.08);
  color: var(--primary);
}

.chip-time{
  border-color: rgba(95,158,160,.25);
  background: rgba(95,158,160,.15);
  color: var(--verde-escuro);
}









/* ==============================
   P�gina do Card�pio - layout premium
   ============================== */

.main { padding-top: .75rem; }

/* HERO */
.menu-hero{
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 14px 14px 10px;
  margin-bottom: 12px;
}

.menu-hero-top{
  display:flex;
  align-items:flex-start;
  gap: 10px;
}

.menu-back{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(0,0,0,.04);
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--text);
  flex-shrink:0;
}

.menu-hero-text{ flex:1; min-width:0; }

.menu-hero-title{
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.2px;
  margin: 2px 0 4px;
  color: var(--text);
}

.menu-hero-sub{
  font-size: .84rem;
  color: var(--text-muted);
  margin: 0 0 10px;
  line-height: 1.35;
}

.menu-hero-tags{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill{
  display:inline-flex;
  align-items:center;
  padding: .28rem .65rem;
  border-radius: 999px;
  font-size: .70rem;
  font-weight: 800;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}

.pill-primary{
  border-color: rgba(193,68,14,.18);
  background: rgba(193,68,14,.08);
  color: var(--primary);
}

.pill-soft{
  border-color: rgba(95,158,160,.25);
  background: rgba(95,158,160,.12);
  color: var(--verde-escuro);
}

/* TABS */
.menu-tabs{
  display:flex;
  gap: 8px;
  overflow-x:auto;
  padding: 12px 2px 2px;
  margin-top: 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.menu-tabs::-webkit-scrollbar{ display:none; }

.menu-tab{
  white-space: nowrap;
  padding: .55rem .95rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  transition: all var(--transition);
}
.menu-tab:hover{ border-color: rgba(193,68,14,.25); }

.menu-tab.active{
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* SE��ES */
.menu-section{ margin: 14px 0 18px; }

.menu-section-head{
  margin: 6px 2px 10px;
}

.menu-section-title{
  font-size: 1.02rem;
  font-weight: 900;
  margin: 0 0 4px;
  color: var(--text);
}

.menu-section-desc{
  font-size: .80rem;
  color: var(--text-muted);
  margin: 0;
}

/* Itens - moderno */
.item-list{
  display:flex;
  flex-direction:column;
  gap:.75rem;
}

.menu-item{
  display:flex;
  align-items:center;
  gap:.85rem;
  padding:.80rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: inherit;
  transition: box-shadow var(--transition), transform var(--transition);
}

.menu-item:hover{
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  color: inherit;
}

.menu-item-thumb{
  width:68px;
  height:68px;
  border-radius: 16px;
  background: var(--card-img-bg);
  flex-shrink:0;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}

.menu-item-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.menu-item-initial{
  font-size:1.6rem;
  font-weight:800;
  color: rgba(160,82,45,.35);
  user-select:none;
}

.menu-item-info{
  flex:1;
  min-width:0;
}

.menu-item-name{
  font-size:.98rem;
  font-weight:800;
  color: var(--text);
  margin:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.menu-item-desc{
  font-size:.78rem;
  color: var(--text-muted);
  margin:.2rem 0 .45rem;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.menu-item-price{
  font-size:.95rem;
  font-weight:900;
  color: var(--primary);
}

.menu-item-action{
  width:32px;
  height:32px;
  border-radius: 12px;
  background: rgba(0,0,0,.04);
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--text-muted);
  flex-shrink:0;
}




/* ==============================
   LINKS - Ultra Compact Verde
   ============================== */

.links-wrapper {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-top: .7rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem .85rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(95,158,160,0.15);
  transition: all .18s ease;
}

.link-card:hover {
  background: rgba(95,158,160,0.06);
  border-color: rgba(95,158,160,0.35);
}

/* Ícone menor e mais discreto */
.link-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(95,158,160,0.12);
  color: var(--verde-escuro);
  font-weight: 700;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Texto mais refinado */
.link-title {
  font-size: .88rem;
  font-weight: 700;
  flex: 1;
  color: var(--text);
  letter-spacing: -.2px;
}

/* Seta minimal */
.link-arrow {
  font-size: .75rem;
  color: rgba(95,158,160,0.8);
  transition: transform .18s ease, color .18s ease;
}

.link-card:hover .link-arrow {
  transform: translateX(3px);
  color: var(--verde-escuro);
}

/* Destaque discreto no primeiro */
.link-card--highlight {
  background: rgba(95,158,160,0.08);
  border-color: rgba(95,158,160,0.4);
}