/* ==========================================================
   SISTEMA DE DELIVERY ONLINE - LAYOUT ESTILO CARDÁPIO WEB
   Identidade Visual, Cards Verticais, Barra Inferior e Destaques
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --cw-primary: #6B21A8; /* Roxo elegante / marca */
    --cw-primary-hover: #581C87;
    --cw-primary-light: rgba(107, 33, 168, 0.08);
    
    --cw-green: #00A859; /* Verde oficial de preços do Cardápio Web */
    --cw-green-light: #E6F7ED;
    --cw-green-dark: #008746;
    
    --cw-bg: #F8FAFC;
    --cw-card-bg: #FFFFFF;
    --cw-border: #E5E7EB;
    --cw-border-light: #F3F4F6;
    
    --cw-text-main: #111827;
    --cw-text-navy: #1E293B;
    --cw-text-muted: #6B7280;
    --cw-text-light: #9CA3AF;
    
    --cw-badge-yellow: #FEF3C7;
    --cw-badge-yellow-text: #B45309;
    
    --cw-radius-sm: 8px;
    --cw-radius-md: 12px;
    --cw-radius-lg: 16px;
    --cw-radius-full: 9999px;
    
    --cw-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    --cw-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.08);
    
    --font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset e Estrutura Geral */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--cw-bg);
    color: var(--cw-text-main);
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 85px; /* Espaço para a barra inferior fixa do Cardápio Web */
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, textarea, select {
    font-family: inherit;
}

.cw-container {
    width: 100%;
    max-width: 540px; /* Largura mobile-first idêntica ao Cardápio Web */
    margin: 0 auto;
    padding: 12px 16px;
}

/* ==========================================================
   0. CABEÇALHO DO RESTAURANTE (CAPA, LOGO, LOCALIZAÇÃO IP)
   ========================================================== */
.cw-store-profile-card {
    background: #FFFFFF;
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius-md);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: var(--cw-shadow);
    text-align: center;
}

.cw-store-cover {
    position: relative;
    width: 100%;
    height: 150px;
    background: #E2E8F0;
    overflow: hidden;
}

.cw-store-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cw-store-profile-content {
    padding: 0 16px 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cw-store-logo-wrapper {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 3px solid #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    margin-top: -41px;
    margin-bottom: 8px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.cw-store-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cw-store-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--cw-text-navy);
    margin-bottom: 4px;
    line-height: 1.2;
}

.cw-store-location-row {
    font-size: 0.84rem;
    color: var(--cw-text-navy);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.cw-dot-separator {
    color: var(--cw-text-light);
    font-size: 0.75rem;
}

.cw-more-info-link {
    color: var(--cw-text-navy);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.cw-more-info-link:hover {
    color: var(--cw-primary);
    text-decoration: underline;
}

.cw-store-status-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--cw-green);
}

.cw-info-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--cw-border-light);
}

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

.cw-info-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--cw-primary-light);
    color: var(--cw-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.cw-info-title {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--cw-text-muted);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.cw-info-val {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--cw-text-navy);
}

/* ==========================================================
   1. CARD SUPERIOR DE TAXA E TEMPO DE ENTREGA (CARDÁPIO WEB)
   ========================================================== */
.cw-delivery-card {
    background: #FFFFFF;
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius-md);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: var(--cw-shadow);
    cursor: pointer;
    transition: all 0.2s ease;
}

.cw-delivery-card:hover {
    border-color: #CBD5E1;
}

.cw-delivery-top {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cw-delivery-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--cw-text-navy);
}

.cw-delivery-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #F1F5F9;
    color: #64748B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.cw-delivery-bottom {
    border-top: 1px dashed var(--cw-border);
    padding: 8px 14px;
    text-align: center;
    font-size: 0.82rem;
    color: var(--cw-text-muted);
    background: #FAFAFA;
}

.cw-green-highlight {
    color: var(--cw-green);
    font-weight: 700;
}

/* ==========================================================
   2. CARD DE CASHBACK / BENEFÍCIO (CARDÁPIO WEB)
   ========================================================== */
.cw-cashback-card {
    background: #FFFFFF;
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius-md);
    padding: 10px 14px;
    margin-bottom: 12px;
    box-shadow: var(--cw-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cw-cashback-header {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--cw-text-navy);
    white-space: nowrap;
    margin-bottom: 0;
}

.cw-cashback-header i {
    color: var(--cw-primary);
    font-size: 1rem;
}

.cw-cashback-text {
    font-size: 0.78rem;
    color: var(--cw-text-muted);
    line-height: 1.35;
    margin-bottom: 0;
    text-align: right;
}
}

/* ==========================================================
   3. BARRA DE CATEGORIAS & BUSCA (CARDÁPIO WEB)
   ========================================================== */
.cw-nav-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    position: sticky;
    top: 8px;
    z-index: 80;
}

.cw-category-select-btn {
    flex: 1;
    background: #FFFFFF;
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius-sm);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--cw-text-navy);
    cursor: pointer;
    box-shadow: var(--cw-shadow);
    transition: all 0.2s;
}

.cw-category-select-btn:hover {
    border-color: #CBD5E1;
}

.cw-search-btn {
    width: 42px;
    height: 42px;
    background: #FFFFFF;
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cw-text-navy);
    cursor: pointer;
    box-shadow: var(--cw-shadow);
    font-size: 15px;
    transition: all 0.2s;
}

.cw-search-btn:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
}

/* Menu Dropdown de Categorias */
.cw-category-dropdown {
    position: absolute;
    top: 48px;
    left: 0;
    right: 52px;
    background: #FFFFFF;
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius-md);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    padding: 8px;
    display: none;
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
}

.cw-category-dropdown.active {
    display: block;
}

.cw-category-option {
    padding: 10px 14px;
    border-radius: var(--cw-radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--cw-text-navy);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s;
}

.cw-category-option:hover {
    background: #F1F5F9;
    color: var(--cw-primary);
}

/* Campo de Busca Expansível */
.cw-search-input-box {
    display: none;
    margin-bottom: 14px;
}

.cw-search-input-box.active {
    display: block;
}

.cw-search-input {
    width: 100%;
    background: #FFFFFF;
    border: 1.5px solid var(--cw-border);
    border-radius: var(--cw-radius-sm);
    padding: 10px 14px;
    font-size: 0.9rem;
    outline: none;
    color: var(--cw-text-main);
    box-shadow: var(--cw-shadow);
}

.cw-search-input:focus {
    border-color: var(--cw-primary);
}

/* ==========================================================
   4. SEÇÃO DE DESTAQUES (CARROSSEL HORIZONTAL CARDÁPIO WEB)
   ========================================================== */
.cw-section-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--cw-text-navy);
    margin: 18px 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cw-destaques-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cw-destaques-scroll::-webkit-scrollbar {
    display: none;
}

/* Card Vertical do Cardápio Web */
.cw-product-card-vertical {
    flex: 0 0 200px;
    width: 200px;
    background: #FFFFFF;
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--cw-shadow);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.cw-product-card-vertical:hover {
    transform: translateY(-2px);
    box-shadow: var(--cw-shadow-hover);
}

.cw-card-media {
    width: 100%;
    height: 150px;
    position: relative;
    background: #F1F5F9;
    overflow: hidden;
}

.cw-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cw-product-card-vertical:hover .cw-card-media img {
    transform: scale(1.05);
}

.cw-card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.cw-card-badge-top {
    display: inline-block;
    background: var(--cw-badge-yellow);
    color: var(--cw-badge-yellow-text);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.cw-card-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--cw-text-navy);
    line-height: 1.25;
    margin-bottom: 4px;
    text-transform: uppercase;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cw-card-desc {
    font-size: 0.76rem;
    color: var(--cw-text-muted);
    line-height: 1.35;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cw-card-prices {
    margin-top: auto;
}

.cw-price-current {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--cw-green);
    display: block;
    margin-bottom: 2px;
}

.cw-price-bottom-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cw-price-old {
    font-size: 0.75rem;
    color: var(--cw-text-light);
    text-decoration: line-through;
    font-weight: 500;
}

.cw-badge-discount {
    background: var(--cw-green-light);
    color: var(--cw-green-dark);
    font-size: 0.68rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 4px;
}

/* ==========================================================
   5. LISTAGEM DE CATEGORIAS & PRODUTOS (LAYOUT VERTICAL / HORIZONTAL)
   ========================================================== */
.cw-category-section {
    margin-bottom: 24px;
    scroll-margin-top: 60px;
}

.cw-category-header-title {
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--cw-text-navy);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cw-grid-category {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 480px) {
    .cw-grid-category {
        grid-template-columns: 1fr 1fr;
    }
}

/* Card de Produto na Lista da Categoria */
.cw-product-card-list {
    background: #FFFFFF;
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--cw-shadow);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cw-product-card-list:hover {
    transform: translateY(-2px);
    box-shadow: var(--cw-shadow-hover);
}

/* ==========================================================
   6. BARRA DE NAVEGAÇÃO INFERIOR FIXA (APP BOTTOM BAR)
   ========================================================== */
.cw-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: #FFFFFF;
    border-top: 1px solid var(--cw-border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 120;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
}

.cw-nav-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #94A3B8;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s;
    background: none;
    border: none;
    padding: 6px 0;
    text-decoration: none;
}

.cw-nav-tab i {
    font-size: 19px;
    transition: transform 0.15s;
}

.cw-nav-tab:hover {
    color: var(--cw-primary);
}

.cw-nav-tab.active {
    color: var(--cw-primary);
}

.cw-nav-tab.active i {
    transform: scale(1.1);
}

/* Sacola Flutuante quando houver itens */
.cw-floating-bag-btn {
    position: fixed;
    bottom: 74px;
    left: 16px;
    right: 16px;
    max-width: 508px;
    margin: 0 auto;
    background: var(--cw-primary);
    color: #FFFFFF;
    border-radius: var(--cw-radius-md);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 25px rgba(107, 33, 168, 0.4);
    z-index: 110;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(150%);
}

.cw-floating-bag-btn.visible {
    transform: translateY(0);
}

.cw-floating-bag-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.95rem;
}

.cw-floating-bag-badge {
    background: #FFFFFF;
    color: var(--cw-primary);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
}

.cw-floating-bag-right {
    font-weight: 800;
    font-size: 1rem;
}

/* ==========================================================
   7. MODAIS E DRAWERS (ESTILO CARDÁPIO WEB)
   ========================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(4px);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-sheet {
    background: #FFFFFF;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    border-radius: 20px 20px 0 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
}

.modal-overlay.active .modal-sheet {
    transform: translateY(0);
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--cw-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: #FFFFFF;
    z-index: 10;
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--cw-text-navy);
}

.modal-close-btn {
    background: #F1F5F9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    cursor: pointer;
    font-size: 18px;
}

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

.modal-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--cw-border);
    background: #FFFFFF;
    position: sticky;
    bottom: 0;
}

/* Formulários */
.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--cw-text-navy);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--cw-radius-sm);
    border: 1.5px solid var(--cw-border);
    background: #FFFFFF;
    color: var(--cw-text-main);
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: var(--cw-primary);
}

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

.btn-primary {
    width: 100%;
    padding: 13px 20px;
    border-radius: var(--cw-radius-sm);
    background: var(--cw-primary);
    color: #FFFFFF;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: var(--cw-primary-hover);
}

.btn-secondary {
    width: 100%;
    padding: 11px 16px;
    border-radius: var(--cw-radius-sm);
    background: #F8FAFC;
    color: var(--cw-text-navy);
    border: 1px solid var(--cw-border);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Seletor de Quantidade */
.qty-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius-sm);
    background: #F8FAFC;
    padding: 3px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    border: none;
    background: #FFFFFF;
    color: var(--cw-text-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 800;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.qty-value {
    padding: 0 12px;
    font-weight: 800;
    font-size: 0.95rem;
}

/* Resumo do Carrinho */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.cart-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: var(--cw-radius-sm);
    background: #F8FAFC;
    border: 1px solid var(--cw-border);
}

.cart-item-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--cw-text-navy);
}

.cart-item-price {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--cw-green);
}

.cart-summary-box {
    background: #F8FAFC;
    border-radius: var(--cw-radius-sm);
    padding: 12px 14px;
    border: 1px solid var(--cw-border);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--cw-text-muted);
    margin-bottom: 6px;
}

.summary-row.total {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--cw-text-navy);
    border-top: 1px dashed var(--cw-border);
    padding-top: 8px;
    margin-bottom: 0;
}

/* Toast */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    background: var(--cw-text-navy);
    color: #FFFFFF;
    padding: 9px 16px;
    border-radius: var(--cw-radius-full);
    font-size: 0.84rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Rastreamento / Linha do tempo */
.tracking-card {
    background: #FFFFFF;
    border-radius: var(--cw-radius-md);
    border: 1px solid var(--cw-border);
    padding: 20px;
    margin-top: 16px;
    box-shadow: var(--cw-shadow);
}

.timeline-stepper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    margin: 24px 0;
    padding-left: 32px;
}

.timeline-stepper::before {
    content: '';
    position: absolute;
    left: 13px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: var(--cw-border);
}

.timeline-step {
    position: relative;
}

.timeline-step .step-dot {
    position: absolute;
    left: -32px;
    top: 2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 2px solid var(--cw-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--cw-text-light);
}

.timeline-step.completed .step-dot {
    background: var(--cw-green);
    border-color: var(--cw-green);
    color: #FFFFFF;
}

.timeline-step.active .step-dot {
    background: var(--cw-primary);
    border-color: var(--cw-primary);
    color: #FFFFFF;
}

.pix-box {
    background: #FAFAFA;
    border: 1.5px dashed var(--cw-primary);
    border-radius: var(--cw-radius-md);
    padding: 18px;
    text-align: center;
    margin: 16px 0;
}

/* ==========================================================
   COMPLEMENTOS / ADICIONAIS (ESTILO CARDÁPIO WEB PROFISSIONAL)
   ========================================================== */
.cw-complements-container {
    margin: 14px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cw-complement-group {
    background: #FFFFFF;
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius-md);
    overflow: hidden;
}

.cw-complement-header {
    background: #F8FAFC;
    padding: 10px 14px;
    border-bottom: 1px solid var(--cw-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cw-complement-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--cw-text-navy);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cw-complement-subtitle {
    font-size: 0.75rem;
    color: var(--cw-text-muted);
    margin-top: 2px;
}

.cw-badge-req {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--cw-radius-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cw-badge-req.required {
    background: #FEE2E2;
    color: #DC2626;
}

.cw-badge-req.optional {
    background: #E2E8F0;
    color: #475569;
}

.cw-complement-list {
    display: flex;
    flex-direction: column;
}

.cw-complement-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border-bottom: 1px solid var(--cw-border-light);
    cursor: pointer;
    transition: background 0.15s ease;
    user-select: none;
}

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

.cw-complement-item:hover {
    background: #F8FAFC;
}

.cw-complement-item.selected {
    background: rgba(107, 33, 168, 0.04);
}

.cw-comp-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.cw-comp-radio, .cw-comp-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #CBD5E1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.cw-comp-radio {
    border-radius: 50%;
}

.cw-comp-checkbox {
    border-radius: 6px;
}

.cw-complement-item.selected .cw-comp-radio {
    border-color: var(--cw-primary);
    background: var(--cw-primary);
}

.cw-complement-item.selected .cw-comp-radio::after {
    content: '';
    width: 6px;
    height: 6px;
    background: #FFFFFF;
    border-radius: 50%;
}

.cw-complement-item.selected .cw-comp-checkbox {
    border-color: var(--cw-primary);
    background: var(--cw-primary);
    color: #FFFFFF;
}

.cw-comp-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--cw-text-navy);
}

.cw-comp-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cw-comp-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--cw-green);
    white-space: nowrap;
}

.cw-comp-price.free {
    color: var(--cw-text-muted);
    font-weight: 600;
}

.cw-comp-stepper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #F1F5F9;
    border-radius: var(--cw-radius-full);
    padding: 2px 6px;
}

.cw-comp-stepper button {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: #FFFFFF;
    color: var(--cw-text-navy);
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.cw-comp-stepper span {
    font-size: 0.85rem;
    font-weight: 700;
    min-width: 16px;
    text-align: center;
}

/* ==========================================================
   CHECKOUT EM 3 ETAPAS (PROGRESS STEPPER & STEPS)
   ========================================================== */
.cw-checkout-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 10px 14px;
    background: #F8FAFC;
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius-md);
}

.stepper-step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--cw-text-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.stepper-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #E2E8F0;
    color: var(--cw-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    transition: all 0.2s ease;
}

.stepper-step.active {
    color: var(--cw-primary);
    font-weight: 800;
}

.stepper-step.active .stepper-num {
    background: var(--cw-primary);
    color: #FFFFFF;
}

.stepper-step.completed {
    color: var(--cw-green);
    font-weight: 700;
}

.stepper-step.completed .stepper-num {
    background: var(--cw-green);
    color: #FFFFFF;
}

.stepper-line {
    flex: 1;
    height: 2px;
    background: #E2E8F0;
    margin: 0 8px;
}

.checkout-step-pane {
    display: none;
    animation: fadeInStep 0.25s ease;
}

.checkout-step-pane.active {
    display: block;
}

@keyframes fadeInStep {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.cw-step-header {
    margin-bottom: 14px;
}

.cw-step-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--cw-text-navy);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cw-step-desc {
    font-size: 0.82rem;
    color: var(--cw-text-muted);
    margin-top: 2px;
}

.cw-address-preview-card {
    background: #F0FDF4;
    border: 1.5px solid #86EFAC;
    border-radius: var(--cw-radius-md);
    padding: 12px 14px;
    margin: 14px 0;
    animation: fadeInStep 0.2s ease;
}

.addr-preview-header {
    font-size: 0.82rem;
    font-weight: 800;
    color: #166534;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}

.addr-preview-body {
    font-size: 0.85rem;
    color: #14532D;
    line-height: 1.4;
}

.cw-summary-card {
    background: #FFFFFF;
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius-md);
    padding: 12px 14px;
    margin-bottom: 12px;
}

.cw-summary-card-header {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--cw-text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: 0.04em;
}

.cw-summary-card-header a {
    color: var(--cw-primary);
    font-weight: 700;
    font-size: 0.8rem;
}

.cw-summary-item-row {
    padding: 8px 0;
    border-bottom: 1px solid var(--cw-border-light);
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
}

.cw-summary-item-row:last-child {
    border-bottom: none;
}

.cw-item-complements-list {
    margin-top: 4px;
    padding-left: 12px;
    font-size: 0.78rem;
    color: var(--cw-text-muted);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cw-checkout-nav-btns {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.cw-checkout-nav-btns .btn-secondary {
    flex: 1;
}

.cw-checkout-nav-btns .btn-primary {
    flex: 2;
}

/* ==========================================================
   CARDS DE CONSULTA DE PEDIDOS POR TELEFONE
   ========================================================== */
.cw-order-lookup-card {
    background: #FFFFFF;
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius-md);
    padding: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cw-order-lookup-card:hover {
    border-color: var(--cw-primary);
    box-shadow: 0 4px 12px rgba(107, 33, 168, 0.08);
}

.cw-lookup-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--cw-border-light);
    padding-bottom: 8px;
}

.cw-lookup-code {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--cw-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.cw-lookup-date {
    font-size: 0.75rem;
    color: var(--cw-text-muted);
    margin-top: 2px;
}

.cw-lookup-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--cw-radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.cw-lookup-status-pill.PENDING_PAYMENT {
    background: #FEF3C7;
    color: #B45309;
}

.cw-lookup-status-pill.PAID,
.cw-lookup-status-pill.PREPARING {
    background: #EDE9FE;
    color: #6D28D9;
}

.cw-lookup-status-pill.OUT_FOR_DELIVERY {
    background: #E0F2FE;
    color: #0369A1;
}

.cw-lookup-status-pill.DELIVERED {
    background: #DCFCE7;
    color: #15803D;
}

.cw-lookup-status-pill.CANCELLED {
    background: #FEE2E2;
    color: #B91C1C;
}

.cw-lookup-card-items {
    font-size: 0.85rem;
    color: var(--cw-text-main);
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #F8FAFC;
    padding: 10px;
    border-radius: var(--cw-radius-sm);
}

.cw-lookup-item-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cw-lookup-item-name {
    font-weight: 600;
}

.cw-lookup-item-comps {
    margin-top: 3px;
    padding-left: 10px;
    font-size: 0.76rem;
    color: var(--cw-text-muted);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cw-lookup-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 6px;
}

.cw-lookup-total {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--cw-text-navy);
}

.cw-lookup-total span {
    font-size: 1.05rem;
    color: var(--cw-green);
}

.cw-lookup-btn-track {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--cw-primary);
    color: #FFFFFF;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: var(--cw-radius-sm);
    text-decoration: none;
    transition: all 0.2s ease;
}

.cw-lookup-btn-track:hover {
    background: var(--cw-primary-hover);
    transform: translateX(2px);
}

/* ==========================================================
   SISTEMA DE NOTIFICAÇÕES TOAST (CARDÁPIO WEB & IFOOD STYLE)
   ========================================================== */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    width: 90%;
    max-width: 440px;
}

.toast {
    background: rgba(17, 24, 39, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--cw-radius-full);
    padding: 10px 18px;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.35;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    pointer-events: auto;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.toast-warning {
    border-left: 3px solid #F59E0B;
}

.toast.toast-success {
    border-left: 3px solid var(--cw-green);
}

.toast.toast-info {
    border-left: 3px solid var(--cw-primary);
}

.toast-icon-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.toast-icon-badge.warning {
    background: rgba(245, 158, 11, 0.2);
    color: #FBBF24;
}

.toast-icon-badge.success {
    background: rgba(0, 168, 89, 0.2);
    color: #34D399;
}

.toast-icon-badge.info {
    background: rgba(107, 33, 168, 0.25);
    color: #C084FC;
}

.toast-text {
    flex: 1;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-16px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.toast.toast-hiding {
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
}

/* Stepper de complementos com limite */
.cw-comp-stepper button.btn-capped,
.cw-comp-stepper button:disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
}

/* ==========================================================
   TELA DE ACOMPANHAMENTO DO PEDIDO & PAGAMENTO PIX (CARDÁPIO WEB)
   ========================================================== */
.cw-tracking-card {
    background: #FFFFFF;
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius-md);
    padding: 20px 18px;
    box-shadow: var(--cw-shadow);
}

.cw-order-hero-status {
    text-align: center;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--cw-border-light);
    margin-bottom: 18px;
}

.cw-status-icon-bubble {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #FAF5FF;
    border: 2px solid #F3E8FF;
    color: var(--cw-primary);
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px auto;
    box-shadow: 0 4px 14px rgba(107, 33, 168, 0.12);
    transition: transform 0.3s ease;
}

.cw-status-icon-bubble.delivered {
    background: #F0FDF4;
    border-color: #DCFCE7;
    color: var(--cw-green);
    box-shadow: 0 4px 14px rgba(0, 168, 89, 0.15);
}

.cw-hero-status-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--cw-text-navy);
    margin-bottom: 6px;
    line-height: 1.3;
}

.cw-hero-status-desc {
    font-size: 0.86rem;
    color: var(--cw-text-muted);
    max-width: 380px;
    margin: 0 auto;
    line-height: 1.45;
}

/* ==========================================================
   BLOCO DE PAGAMENTO PIX MODERNO
   ========================================================== */
.cw-pix-box {
    background: #FFFFFF;
    border: 1px solid #EDE9FE;
    border-radius: var(--cw-radius-md);
    padding: 18px 16px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(107, 33, 168, 0.05);
}

.cw-pix-amount-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FAF5FF;
    border: 1px solid #E9D5FF;
    padding: 6px 14px;
    border-radius: var(--cw-radius-full);
    margin-bottom: 16px;
}

.cw-pix-amount-badge .label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #7E22CE;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cw-pix-amount-badge .value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--cw-primary);
}

.cw-pix-qr-wrapper {
    background: #FFFFFF;
    padding: 12px;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    margin-bottom: 12px;
}

.cw-pix-qr-wrapper img {
    width: 190px;
    height: 190px;
    display: block;
    border-radius: 6px;
}

.cw-pix-instructions {
    font-size: 0.8rem;
    color: var(--cw-text-muted);
    margin-bottom: 16px;
    line-height: 1.4;
}

.cw-pix-instructions strong {
    color: var(--cw-text-navy);
}

.cw-pix-copy-section {
    text-align: left;
    margin-top: 14px;
}

.cw-pix-copy-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--cw-text-navy);
    margin-bottom: 6px;
}

.cw-pix-input-group {
    display: flex;
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-radius: var(--cw-radius-sm);
    overflow: hidden;
    transition: border-color 0.2s;
}

.cw-pix-input-group:focus-within {
    border-color: var(--cw-primary);
    box-shadow: 0 0 0 2px rgba(107, 33, 168, 0.15);
}

.cw-pix-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 12px;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
    color: #334155;
    outline: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cw-pix-copy-btn {
    background: var(--cw-primary);
    color: #FFFFFF;
    border: none;
    padding: 0 16px;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}

.cw-pix-copy-btn:hover {
    background: var(--cw-primary-hover);
}

.cw-pix-copy-btn:active {
    transform: scale(0.98);
}

.cw-pix-test-box {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed #E2E8F0;
}

.cw-pix-btn-simulate {
    background: #F8FAFC;
    color: #64748B;
    border: 1px solid #CBD5E1;
    border-radius: var(--cw-radius-sm);
    padding: 8px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    width: 100%;
    justify-content: center;
}

.cw-pix-btn-simulate:hover {
    background: #FAF5FF;
    border-color: #D8B4FE;
    color: var(--cw-primary);
}

/* ==========================================================
   LINHA DO TEMPO VERTICAL ELEGANTE (TIMELINE STEPPER)
   ========================================================== */
.cw-timeline-stepper {
    position: relative;
    padding-left: 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 10px 0 6px 0;
}

.cw-timeline-stepper::before {
    content: '';
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 15px;
    width: 2px;
    background: #E2E8F0;
    z-index: 1;
}

.cw-timeline-step {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.cw-step-marker {
    position: absolute;
    left: -36px;
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 2px solid #CBD5E1;
    color: #94A3B8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.3s ease;
}

.cw-step-info {
    flex: 1;
    padding-top: 4px;
}

.cw-step-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #64748B;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.cw-step-desc {
    font-size: 0.78rem;
    color: #94A3B8;
    margin-top: 2px;
    line-height: 1.35;
}

/* Estado Completo */
.cw-timeline-step.completed .cw-step-marker {
    background: #10B981;
    border-color: #10B981;
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.cw-timeline-step.completed .cw-step-title {
    color: var(--cw-text-navy);
}

.cw-timeline-step.completed .cw-step-desc {
    color: #64748B;
}

/* Estado Ativo (Em andamento) */
.cw-timeline-step.active .cw-step-marker {
    background: var(--cw-primary);
    border-color: var(--cw-primary);
    color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(107, 33, 168, 0.15);
    animation: markerPulse 2s infinite ease-in-out;
}

.cw-timeline-step.active .cw-step-title {
    color: var(--cw-primary);
    font-weight: 800;
}

.cw-timeline-step.active .cw-step-desc {
    color: var(--cw-text-navy);
    font-weight: 600;
}

@keyframes markerPulse {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(107, 33, 168, 0.15);
    }
    50% {
        box-shadow: 0 0 0 7px rgba(107, 33, 168, 0.3);
    }
}
