/* TOKENS DE DESIGN & VARIÁVEIS */
:root {
    --bg-outside: #F2F2F7; /* Cor de fundo nativa do navegador/desktop */
    --bg-app: #FAFAFA; /* Off-White Premium para o app shell */
    --surface: #FFFFFF; /* Branco puro para cards */
    
    /* Cores Primárias (Marrom Chocolate Intenso) */
    --primary: #251B19; 
    --primary-hover: #3A2A28;
    --primary-light: #EAE6E5;
    
    /* Textos */
    --text-strong: #2D2A2E;
    --text-body: #666666;
    --text-muted: #999999;
    
    /* Utilitários estruturais */
    --border-light: #F0F0F0;
    --radius-card: 22px;
    --radius-pill: 999px;

    /* Controle tipográfico */
    --font-brand: 'Quicksand', sans-serif;
    --font-ui: 'Inter', sans-serif;
}

/* RESET DEFENSIVO ABSOLUTO */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

button, input, select {
    font-family: inherit;
    outline: none !important;
    -webkit-appearance: none;
    border: none;
    background: transparent;
}

body {
    background-color: var(--bg-outside);
    display: flex;
    justify-content: center;
    min-height: 100dvh;
    overflow: hidden; /* Isolamento arquitetural de scroll */
    font-family: var(--font-ui);
    color: var(--text-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* APP SHELL: Emula o form-factor de um celular e limita quebras ultra-wide */
.app-shell {
    width: 100%;
    max-width: 430px;
    background-color: var(--bg-app);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100dvh;
    box-shadow: 0 0 40px rgba(0,0,0,0.06);
    overflow: hidden;
}

/* ============================================================
   VIEW SYSTEM (Spatial Navigation) 
   ============================================================ */
.view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    background: var(--bg-app);
    z-index: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none; 
}
.view::-webkit-scrollbar { display: none; }

.view.active { display: flex; z-index: 2; }

.view-push-enter, .view-push-exit, .view-pop-enter, .view-pop-exit {
    display: flex;
    animation-duration: 0.4s;
    animation-timing-function: cubic-bezier(0.28, 0.84, 0.22, 1);
    animation-fill-mode: forwards;
}

/* PUSH: Nova view entra da DIREITA */
.view-push-enter { animation-name: pushEnter; z-index: 10; }
@keyframes pushEnter { from { transform: translateX(100%); } to { transform: translateX(0); } }

/* PUSH: View atual sai para a ESQUERDA (fundo, paralaxe) */
.view-push-exit { animation-name: pushExit; z-index: 5; }
@keyframes pushExit { from { transform: translateX(0); opacity: 1; } to { transform: translateX(-25%); opacity: 0.8; } }

/* POP: Nova view (anterior) entra da ESQUERDA */
.view-pop-enter { animation-name: popEnter; z-index: 5; }
@keyframes popEnter { from { transform: translateX(-25%); opacity: 0.8; } to { transform: translateX(0); opacity: 1; } }

/* POP: View atual sai para a DIREITA */
.view-pop-exit { animation-name: popExit; z-index: 10; }
@keyframes popExit { from { transform: translateX(0); } to { transform: translateX(100%); } }


/* HEADER PREMIUM E COMPACTO */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: rgba(250, 250, 250, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 50;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,0.02);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-strong);
    background: #FFFFFF;
    padding: 6px 10px;
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.15s;
}
.header-left:active { transform: scale(0.96); }

.header-left i { color: var(--primary); font-size: 16px; }

.brand-title {
    font-family: var(--font-brand);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.cart-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    color: var(--text-strong);
    font-size: 20px;
    transition: transform 0.2s ease;
}

.cart-btn:active { transform: scale(0.92); }

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--text-strong);
    color: #FFF;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-pill);
    border: 2px solid #FFFFFF;
    transform: scale(0);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* DOMÍNIO DA VITRINE */
#view-vitrine {
    padding: 24px 16px;
    padding-top: 86px; /* offset para o header fixed */
    padding-bottom: 120px; /* Margem de fuga para scroll natural */
}

/* PROMO SLIDER SECTION */
.promo-section {
    margin-top: 4px;
    margin-bottom: 24px;
}
.promo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.promo-header h3 {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-strong);
    font-family: var(--font-brand);
}
.promo-header a {
    font-size: 13px;
    font-weight: 600;
    color: #9C8984;
    text-decoration: none;
}

.promo-slider {
    position: relative;
    width: 100%;
}

.promo-card {
    background: #F8F5F2; /* Sand/Off-white suave */
    border-radius: 24px;
    position: relative;
    display: flex;
    overflow: hidden;
    min-height: 160px;
}

.promo-card-content {
    flex: 1;
    padding: 20px 12px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    z-index: 2;
    max-width: 54%;
}

.promo-badge {
    background: #FFF;
    color: var(--text-strong);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    margin-bottom: 10px;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    flex-shrink: 0;
}

.promo-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-strong);
    margin-bottom: 4px;
    line-height: 1.15;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.promo-discount {
    font-size: 13px;
    color: var(--text-strong);
    margin-bottom: 12px;
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-shrink: 0;
}

.promo-discount-val {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
}

.promo-discount-pct {
    font-size: 14px;
    color: #A08C86;
    margin-left: 2px;
}

.btn-promo {
    background: var(--primary);
    color: #FFF;
    border: none;
    border-radius: var(--radius-pill);
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, background-color 0.2s;
    flex-shrink: 0;
}
.btn-promo:active {
    transform: scale(0.95);
    background-color: var(--primary-hover);
}

.promo-card-image {
    position: absolute;
    top: 0; bottom: 0; right: 0;
    width: 48%;
    z-index: 1;
    clip-path: ellipse(90% 115% at 100% 50%);
}

.promo-card-image img {
    width: 100%; height: 100%; object-fit: cover;
}

.promo-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
}

.promo-dots .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--border-light);
    transition: background 0.2s, transform 0.2s;
}
.promo-dots .dot.active {
    background: #A08C86; /* soft brownish */
}


/* ... existing vitrine classes ... */
.welcome-section { margin-bottom: 24px; }
.welcome-text {
    font-family: var(--font-brand);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-strong);
    letter-spacing: -0.5px;
}
.welcome-text strong { color: var(--primary); }

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* ESTRUTURA DO CARD */
.product-card {
    background: var(--surface);
    border-radius: var(--radius-card);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.15s ease;
}
.product-card:active { transform: scale(0.98); }

.card-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    background: #F8F6F8;
    border-top-left-radius: calc(var(--radius-card) - 1px);
    border-top-right-radius: calc(var(--radius-card) - 1px);
    overflow: hidden;
}

/* Fundos Pastéis p/ profundidade */
.bg-pastel-orange { background-color: #FDF4E7; }
.bg-pastel-pink { background-color: #FAEFF2; }
.bg-pastel-brown { background-color: #F2F0ED; }

@supports not (aspect-ratio: 1 / 1) {
    .card-image-wrapper { padding-bottom: 100%; height: 0; }
}

.card-image-wrapper img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

.badge-tag {
    position: absolute;
    top: 12px; left: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(255,255,255,0.4);
    z-index: 2;
}

.badge-tag.tag-encomenda { color: #BE8E52; /* Terroso */ }

.card-content { padding: 14px; display: flex; flex-direction: column; flex: 1; }

.card-title {
    font-family: var(--font-brand);
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-strong);
    line-height: 1.25;
    margin-bottom: 4px;
    word-break: break-word; /* Correção para titulos longos */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-desc { display: none; }

.card-footer {
    display: flex;
    flex-wrap: wrap; 
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto; 
    margin-bottom: 14px;
}

.price-display {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-strong);
    transition: opacity 0.18s, transform 0.18s;
}

/* Number roll animation */
.price-display.rolling, .btn-label-price.rolling {
    opacity: 0; transform: translateY(-6px);
}
.price-display.rolling-in, .btn-label-price.rolling-in {
    animation: priceRollIn 0.22s ease forwards;
}
@keyframes priceRollIn {
    from { opacity:0; transform: translateY(8px); }
    to { opacity:1; transform: translateY(0); }
}

.stepper {
    display: flex;
    align-items: center;
    background: var(--bg-outside);
    border-radius: var(--radius-pill);
    padding: 3px;
    gap: 6px;
}

.stepper-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--text-strong);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}
.stepper-btn.disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; background: transparent;}

.stepper-val { font-size: 13px; font-weight: 600; min-width: 14px; text-align: center; }

/* BOTÕES DE AÇÃO */
.btn-primary {
    width: 100%;
    height: 48px;
    background-color: var(--primary);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0 24px;
}
.btn-primary:active:not(:disabled) { transform: scale(0.96); background-color: var(--primary-hover); }

.btn-label { transition: opacity 0.2s; white-space: nowrap; }

.btn-spinner {
    position: absolute; top: 50%; left: 50%;
    width: 20px; height: 20px;
    margin-top: -10px; margin-left: -10px;
    opacity: 0; transition: opacity 0.2s;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-spinner { animation: spin 0.8s linear infinite; font-size: 20px; }

.btn-primary.is-loading .btn-label, 
.btn-primary.is-loading .btn-content-flex, 
.btn-primary.is-loading .btn-price-divider, 
.btn-primary.is-loading .btn-label-price,
.btn-primary.is-loading .btn-icon-left { opacity: 0; }
.btn-primary.is-loading .btn-spinner { opacity: 1; pointer-events: none; }

.btn-primary.is-success { background-color: #7DAA83; }

.btn-success { background-color: #25D366; }
.btn-success:active:not(:disabled) { background-color: #1FAF53; }
.btn-icon-left { margin-right: 6px; font-size: 18px; }

/* ============================================================
   SHARED INNER LAYOUTS
   ============================================================ */
.inner-header {
    display: flex;
    align-items: center;
    padding: 24px;
    gap: 16px;
    background: var(--bg-app);
    z-index: 10;
}
.nav-back-round {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border-light);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--text-strong); font-size: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: transform 0.1s;
}
.nav-back-round:active { transform: scale(0.9); }

.inner-title {
    font-family: var(--font-brand);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-strong);
}

.action-bar {
    position: fixed;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 100%; max-width: 430px;
    background: rgba(250, 250, 250, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 16px 24px 24px;
    border-top: 1px solid rgba(0,0,0,0.04);
    z-index: 20;
}
.action-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.column-gap { display: flex; flex-direction: column; gap: 16px; }

.w-full { width: 100%; }
.flex-1 { flex: 1; }

/* ============================================================
   DETALHES VIEW (#view-relampago)
   ============================================================ */
.nav-back-float {
    position: absolute;
    top: 24px; left: 24px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-strong); font-size: 22px; cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1); z-index: 10;
    border: none; transition: transform 0.15s;
}
.nav-back-float:active { transform: scale(0.9); }

.details-hero { width: 100%; aspect-ratio: 4/4; background: #F8F6F8; }
.details-img { width: 100%; height: 100%; object-fit: cover; }

.details-sheet {
    background: var(--surface);
    border-top-left-radius: 26px;
    border-top-right-radius: 26px;
    margin-bottom: 0px;
    margin-top: -26px;
    padding: 32px 24px 140px; /* Offset para fixed bar */
    flex: 1;
    position: relative; z-index: 2;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.05);
}

.static-badge { position: relative; top: auto; left: auto; display: inline-block; margin-bottom: 16px; }

.details-title { font-family: var(--font-brand); font-size: 26px; font-weight: 700; color: var(--text-strong); margin-bottom: 12px; line-height: 1.15; }
.details-desc { font-size: 14px; color: var(--text-body); line-height: 1.5; margin-bottom: 24px; }

.scarcity {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 14px; border-radius: var(--radius-pill);
    background: #FFF5F2; color: #D94A26;
    font-size: 13px; font-weight: 700;
}
.scarcity-icon { font-size: 16px; }

/* Pulse Anim p/ urgência */
.pulse { animation: pulseGlow 2s infinite; }
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(217, 74, 38, 0.2); }
    70% { box-shadow: 0 0 0 10px rgba(217, 74, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(217, 74, 38, 0); }
}

.stepper-details { padding: 6px; background: var(--bg-outside); }
.stepper-details .stepper-btn { width: 36px; height: 36px; background: var(--surface); font-size: 16px; }
.stepper-details .stepper-val { font-size: 15px; min-width: 20px; }

.btn-split { display: flex; justify-content: center; align-items: center; height: 48px; width: auto; padding: 0 28px; }
.btn-content-flex { display: flex; align-items: center; transition: opacity 0.2s; }
.btn-price-divider { margin: 0 8px; opacity: 0.5; font-weight: 400; }
.btn-label-price { font-weight: 700; font-family: var(--font-brand); letter-spacing: 0px; display: inline-block; transition: opacity 0.18s, transform 0.18s; }

/* ============================================================
   CART VIEW (#view-cart)
   ============================================================ */
.cart-scroll-area { flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; padding: 0 24px 140px; }
.cart-scroll-area::-webkit-scrollbar { display: none; }

.cart-item {
    display: flex; align-items: center; gap: 14px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}
.cart-item.removing { opacity: 0; transform: scale(0.95); margin-bottom: -12px; height: 0; padding: 0; border: none; overflow: hidden; pointer-events: none;}

.cart-item-img-wrap {
    width: 60px; height: 60px;
    border-radius: 12px;
    overflow: hidden; flex-shrink: 0;
    background: #F8F6F8;
}
.cart-item-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.cart-item-title { font-family: var(--font-brand); font-size: 14.5px; font-weight: 700; color: var(--text-strong); margin-bottom: 4px; }
.cart-item-price { font-size: 14px; font-weight: 600; color: var(--text-muted); }

.stepper-compact { background: transparent; padding: 0; border: 1px solid var(--border-light); }
.stepper-compact .stepper-btn { width: 28px; height: 28px; background: transparent; box-shadow: none; color: var(--text-muted); font-size: 16px; }
.stepper-compact .stepper-btn:not(.disabled):hover { background: var(--bg-outside); }

.cart-summary {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    padding: 14px 24px;
}
.summary-label { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.summary-value { font-size: 18px; font-weight: 700; color: var(--text-strong); font-family: var(--font-brand);}


/* ============================================================
   CHECKOUT VIEW (#view-checkout)
   ============================================================ */
.checkout-scroll-area { flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; padding: 0 24px 140px; }
.checkout-scroll-area::-webkit-scrollbar { display: none; }

.form-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 22px;
    padding: 24px;
    margin-bottom: 24px;
}

.field-group { margin-bottom: 18px; }
.field-group.last-field { margin-bottom: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-body); margin-bottom: 8px; }

.field-input, .custom-select-wrap {
    width: 100%;
    background: var(--bg-outside);
    border: 1.5px solid transparent;
    border-radius: 14px;
    padding: 16px;
    font-size: 15px; font-weight: 500; font-family: var(--font-ui);
    color: var(--text-strong);
    transition: all 0.2s;
}
.field-input:focus, .custom-select-wrap:focus-within {
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 4px 16px rgba(37, 27, 25, 0.1);
}

.custom-select-wrap { display: flex; align-items: center; padding: 0 16px; position: relative;}
.select-icon { color: var(--primary); font-size: 18px; margin-right: 12px; }
.select-arrow { position: absolute; right: 16px; color: var(--text-muted); font-size: 16px; pointer-events: none;}
.field-select {
    flex: 1;
    padding: 16px 0; padding-right: 20px;
    font-size: 15px; font-weight: 500;
    color: var(--text-strong);
}
.field-select:invalid, .field-select option[value=""] { color: var(--text-muted); }

/* Erros de Validação */
.error-msg {
    display: none;
    font-size: 12px; font-weight: 600; color: #D94A26;
    margin-top: 6px;
}
.field-group.error .field-input, .field-group.error .custom-select-wrap {
    border-color: #D94A26;
    background: #FFF5F2;
}
.shake { animation: shakeX 0.35s ease; }
@keyframes shakeX {
    0%,100%{transform:translateX(0)}
    20%,60%{transform:translateX(-5px)}
    40%,80%{transform:translateX(5px)}
}

/* Step Resume */
.resume-title { font-family: var(--font-brand); font-size: 18px; font-weight: 700; border-bottom: 1px solid var(--border-light); padding-bottom: 16px; margin-bottom: 16px; }
.resume-items { margin-bottom: 20px; }
.resume-item-row { display: flex; justify-content: space-between; font-size: 14px; font-weight: 500; color: var(--text-body); margin-bottom: 10px; }
.resume-divider { height: 1px; background: var(--border-light); margin-bottom: 16px; }
.resume-row { display: flex; justify-content: space-between; font-size: 14px; font-weight: 500; color: var(--text-body); margin-bottom: 10px; }
.total-row { border-top: 1px dashed var(--border-light); padding-top: 16px; margin-top: 6px; margin-bottom: 0; align-items: center;}
.resume-label-strong { font-size: 15px; font-weight: 600; color: var(--text-strong); }
.resume-value-strong { font-size: 20px; font-weight: 700; font-family: var(--font-brand); color: var(--primary); }

/* TOAST GLOBAL */
.toast {
    position: fixed; bottom: 100px; left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #FFF;
    padding: 14px 24px;
    border-radius: var(--radius-pill);
    font-size: 14px; font-weight: 600; text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 9999;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.toast-error { background: #E95634; }
.toast.toast-success { background: #37B863; }

/* ============================================================
   BOTTOM SHEET DE BAIRRO
   ============================================================ */
.sheet-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9990;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
    display: flex; flex-direction: column; justify-content: flex-end;
}
.sheet-overlay.active {
    opacity: 1; pointer-events: auto;
}

.sheet-container {
    background: var(--surface);
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    padding: 16px 24px 32px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
    max-height: 85vh;
    display: flex; flex-direction: column;
}
.sheet-overlay.active .sheet-container {
    transform: translateY(0);
}

.sheet-handle {
    width: 40px; height: 5px;
    background: var(--border-light);
    border-radius: 4px;
    margin: 0 auto 24px;
}

.sheet-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px;
}
.sheet-title {
    font-family: var(--font-brand);
    font-size: 20px; font-weight: 700; color: var(--text-strong);
}

.sheet-content {
    overflow-y: auto; scrollbar-width: none;
}
.sheet-content::-webkit-scrollbar { display: none; }

.bairro-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.bairro-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px;
    background: var(--bg-outside);
    border: 1px solid transparent;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
}
.bairro-item:active { transform: scale(0.98); background: var(--border-light); }
.bairro-item.selected {
    background: #FDF4E7;
    border-color: rgba(37, 27, 25, 0.1);
}
.bairro-item-name { font-weight: 600; font-size: 15px; color: var(--text-strong); }
.bairro-item-taxa { font-weight: 600; font-size: 14px; color: var(--text-muted); }
.bairro-item.selected .bairro-item-name,
.bairro-item.selected .bairro-item-taxa { color: var(--primary); }

