/*
 * ============================================================
 *  ZAPTOU — DESIGN SYSTEM v3.0 | DNA Visual Premium
 *  Aplica-se ao Painel do Lojista (basecard/master) e Site
 *  Tokens sincronizados com zaptoudesignsystem/tokens.css
 *  Princípios: Consistência · Profissionalismo · Mobile-First
 * ============================================================
 *
 * REGRA OBRIGATÓRIA PARA NOVAS FUNCIONALIDADES:
 * Toda nova tela, componente ou módulo adicionado ao painel
 * DEVE utilizar as classes e variáveis CSS definidas neste arquivo.
 * Não crie estilos inline ou classes ad-hoc fora deste documento.
 * ============================================================
 */

/* ── 0. IMPORTAÇÃO FONTE INTER ─────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ── 1. TOKENS GLOBAIS (Design Tokens) ────────────────────── */
:root {
    /* Cores Principais — QTAL Delivery Brand */
    --z-primary:        #FF7300;      /* Laranja Vibrante QTAL (CTAs e Seleções Críticas) */
    --z-primary-light:  #FF8B26;      /* Laranja Container QTAL */
    --z-primary-glow:   rgba(255, 115, 0, 0.15);
    --z-accent:         #059669;      /* Verde Sucesso / Destaque Secundário */
    --z-accent-light:   #10b981;
    --z-accent-glow:    rgba(16, 185, 129, 0.15);
    --z-danger:         #DC2626;      /* Erro / Alerta */
    --z-warning:        #D97706;
    --z-info:           #4B5563;

    /* Superfícies & Fundo (Redução de Fadiga Visual) */
    --z-bg:             #F9FAFB;      /* Fundo Principal Cinza Suave (evita o branco #FFFFFF puro) */
    --z-surface:        #FFFFFF;      /* Cartões em Branco Puro para Destaque */
    --z-surface-2:      #F3F4F6;      /* Seções Secundárias / Badges */
    --z-surface-hover:  #F9FAFB;      /* Hover sutil */
    --z-border:         #E5E7EB;      /* Bordas Finas e Elegantes */
    --z-border-strong:  #D1D5DB;

    /* Hierarquia Tipográfica Avançada */
    --z-text:           #111827;      /* Títulos Principais e Destaques (Grafite Escuro) */
    --z-text-secondary: #4B5563;      /* Texto do Corpo (Leitura Confortável) */
    --z-text-muted:     #6B7280;      /* Legendas e Texto de Apoio */

    /* Sombras & Arredondamentos Consistentes (8px e 12px) */
    --z-shadow-xs:      0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --z-shadow-sm:      0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
    --z-shadow-md:      0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    --z-shadow-lg:      0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --z-shadow-xl:      0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --z-shadow-primary: 0 4px 14px rgba(255, 115, 0, 0.25);
    --z-shadow-accent:  0 4px 14px rgba(5, 150, 105, 0.2);

    /* Arredondamentos */
    --z-radius-sm:      8px;
    --z-radius-md:      12px;
    --z-radius-lg:      16px;
    --z-radius-xl:      24px;
    --z-radius-pill:    9999px;

    /* Transições */
    --z-transition:     0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --z-transition-slow:0.35s cubic-bezier(0.4, 0, 0.2, 1);

    /* Tipografia - Inter como principal, Outfit como fallback */
    --z-font:           'Inter', 'Outfit', -apple-system, sans-serif;
}

/* Dark Mode */
[data-theme="dark"] {
    --z-bg:             #3e2c26;      /* Inverse Surface (DS) */
    --z-surface:        #271812;      /* On Surface (DS) */
    --z-surface-2:      #3e2c26;
    --z-surface-hover:  #5b4137;
    --z-border:         rgba(255,255,255,0.07);
    --z-border-strong:  rgba(255,255,255,0.12);
    --z-text:           #ffede7;      /* Inverse On Surface (DS) */
    --z-text-secondary: #fff1ec;
    --z-text-muted:     #e4beb1;
    --z-shadow-sm:      0 2px 8px rgba(0,0,0,0.25);
    --z-shadow-md:      0 4px 16px rgba(0,0,0,0.35);
    --z-shadow-lg:      0 8px 32px rgba(0,0,0,0.45);
}

/* ── 2. RESET E BASE ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--z-font) !important;
    background-color: var(--z-bg) !important;
    color: var(--z-text) !important;
    transition: background-color var(--z-transition-slow), color var(--z-transition-slow);
    -webkit-font-smoothing: antialiased;
}

/* ── 3. CARDS PREMIUM ──────────────────────────────────────── */
/*
 * Regra: Todos os cards do painel devem usar estas classes.
 * .z-card           → Card padrão (superfície branca, sombra md)
 * .z-card--elevated → Card com sombra reforçada para destaque
 * .z-card--bordered → Card com borda colorida lateral esquerda
 * .z-card--glass    → Card glassmorphic para fundos escuros
 */

.card,
.card-info,
.z-card {
    background-color: var(--z-surface) !important;
    border: 1px solid var(--z-border) !important;
    border-radius: var(--z-radius-lg) !important;
    box-shadow: var(--z-shadow-md) !important;
    transition:
        transform var(--z-transition),
        box-shadow var(--z-transition),
        background-color var(--z-transition-slow),
        border-color var(--z-transition-slow) !important;
    overflow: hidden;
}

.card:hover,
.z-card:hover {
    box-shadow: var(--z-shadow-lg) !important;
    transform: translateY(-1px);
}

.z-card--elevated {
    box-shadow: var(--z-shadow-xl) !important;
    border-color: var(--z-border-strong) !important;
}

.z-card--bordered {
    border-left: 3px solid var(--z-primary) !important;
}

.z-card--accent {
    border-left: 3px solid var(--z-accent) !important;
}

.z-card--glass {
    background: rgba(255,255,255,0.05) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.10) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.20) !important;
}

/* ── 4. CABEÇALHOS DE SEÇÃO ────────────────────────────────── */
.z-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--z-text);
    letter-spacing: -0.2px;
    padding-bottom: 12px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--z-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.z-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: linear-gradient(135deg, var(--z-primary), var(--z-primary-light));
}

/* Fallback para classe existente */
.slim-card-title {
    font-family: var(--z-font) !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    color: var(--z-text) !important;
    border-bottom: 2px solid var(--z-primary) !important;
    padding-bottom: 10px !important;
    margin-bottom: 18px !important;
}

/* ── 5. FORMULÁRIOS PREMIUM ────────────────────────────────── */
.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
textarea,
select {
    font-family: var(--z-font) !important;
    background-color: var(--z-surface-2) !important;
    border: 1px solid var(--z-border-strong) !important;
    border-radius: var(--z-radius-sm) !important;
    color: var(--z-text) !important;
    font-size: 0.9rem !important;
    padding: 10px 14px !important;
    transition:
        border-color var(--z-transition),
        box-shadow var(--z-transition),
        background-color var(--z-transition-slow) !important;
    outline: none !important;
    box-shadow: none !important;
}

.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    border-color: var(--z-primary) !important;
    box-shadow: 0 0 0 3px var(--z-primary-glow) !important;
    background-color: var(--z-surface) !important;
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: var(--z-text-muted) !important;
}

label {
    font-family: var(--z-font) !important;
    font-weight: 500 !important;
    font-size: 0.83rem !important;
    color: var(--z-text-secondary) !important;
    margin-bottom: 5px !important;
    display: block;
}

/* ── 6. BOTÕES PREMIUM ─────────────────────────────────────── */
/*
 * HIERARQUIA DE BOTÕES:
 * .z-btn-primary → Ação principal (laranja Zaptou)
 * .z-btn-accent  → Confirmação/Sucesso (verde)
 * .z-btn-danger  → Exclusão/Cancelamento (vermelho)
 * .z-btn-ghost   → Ação secundária (transparente com borda)
 */

.btn,
button[type="submit"],
.z-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--z-font) !important;
    font-weight: 600 !important;
    border-radius: var(--z-radius-sm) !important;
    transition: all var(--z-transition) !important;
    letter-spacing: 0.2px !important;
    cursor: pointer;
    text-decoration: none;
    border: none;
    outline: none;
}

.btn-success,
.z-btn-accent {
    background: linear-gradient(135deg, var(--z-accent), #00e077) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: var(--z-shadow-accent) !important;
}

.btn-success:hover,
.z-btn-accent:hover {
    opacity: 0.88 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0,204,102,0.35) !important;
}

.btn-danger,
.z-btn-danger {
    background: linear-gradient(135deg, var(--z-danger), #f87171) !important;
    border-color: transparent !important;
    color: #fff !important;
}

.btn-danger:hover,
.z-btn-danger:hover { opacity: 0.88 !important; transform: translateY(-1px); }

.btn-info,
.btn-primary,
.z-btn-primary {
    background: linear-gradient(135deg, var(--z-primary), var(--z-primary-light)) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: var(--z-shadow-primary) !important;
}

.btn-info:hover,
.btn-primary:hover,
.z-btn-primary:hover {
    opacity: 0.88 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(255,102,0,0.4) !important;
}

.z-btn-ghost {
    background: transparent !important;
    border: 1px solid var(--z-border-strong) !important;
    color: var(--z-text-secondary) !important;
}

.z-btn-ghost:hover {
    background: var(--z-surface-hover) !important;
    border-color: var(--z-primary) !important;
    color: var(--z-primary) !important;
}

.btn:active,
.z-btn:active {
    transform: scale(0.97) !important;
}

/* ── 7. TABELAS PREMIUM ────────────────────────────────────── */
.table {
    font-family: var(--z-font) !important;
    color: var(--z-text) !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.table th {
    background-color: var(--z-surface-2) !important;
    color: var(--z-text-secondary) !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    padding: 12px 16px !important;
    border-bottom: 2px solid var(--z-border) !important;
    border-top: none !important;
}

.table td {
    padding: 12px 16px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid var(--z-border) !important;
    color: var(--z-text) !important;
    font-size: 0.88rem !important;
    transition: background-color var(--z-transition);
}

.table tbody tr:hover td {
    background-color: var(--z-surface-hover) !important;
}

.table tbody tr:last-child td {
    border-bottom: none !important;
}

/* ── 8. BADGES / PILLS DE STATUS ───────────────────────────── */
.z-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--z-radius-pill);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.z-badge--active  { background: rgba(0,204,102,0.12); color: #059669; border: 1px solid rgba(0,204,102,0.25); }
.z-badge--paused  { background: rgba(245,158,11,0.12); color: #d97706; border: 1px solid rgba(245,158,11,0.25); }
.z-badge--danger  { background: rgba(239,68,68,0.12); color: #dc2626; border: 1px solid rgba(239,68,68,0.25); }
.z-badge--neutral { background: var(--z-surface-2); color: var(--z-text-secondary); border: 1px solid var(--z-border); }

/* ── 9. MODAIS ─────────────────────────────────────────────── */
.modal-content {
    background-color: var(--z-surface) !important;
    border: 1px solid var(--z-border) !important;
    border-radius: var(--z-radius-lg) !important;
    box-shadow: var(--z-shadow-xl) !important;
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid var(--z-border) !important;
    background-color: var(--z-surface) !important;
    padding: 20px 24px !important;
}

.modal-title {
    font-family: var(--z-font) !important;
    font-weight: 700 !important;
    color: var(--z-text) !important;
}

.modal-footer {
    border-top: 1px solid var(--z-border) !important;
    padding: 16px 24px !important;
}

.modal-body {
    padding: 24px !important;
}

/* ── 10. HEADER E SIDEBAR DO PAINEL ────────────────────────── */
.slim-header {
    background-color: var(--z-surface) !important;
    border-bottom: 1px solid var(--z-border) !important;
    box-shadow: var(--z-shadow-sm) !important;
}

.slim-sidebar {
    background-color: var(--z-surface) !important;
    border-right: 1px solid var(--z-border) !important;
    box-shadow: var(--z-shadow-xs) !important;
}

.nav-sidebar .sidebar-nav-item .sidebar-nav-link {
    border-radius: var(--z-radius-sm) !important;
    margin: 2px 8px !important;
    transition: all var(--z-transition) !important;
    font-family: var(--z-font) !important;
    font-size: 0.88rem !important;
}

.nav-sidebar .sidebar-nav-item .sidebar-nav-link:hover {
    background-color: var(--z-primary-glow) !important;
    color: var(--z-primary) !important;
}

.nav-sidebar .sidebar-nav-item .sidebar-nav-link.active {
    background-color: var(--z-primary-glow) !important;
    color: var(--z-primary) !important;
    font-weight: 600 !important;
}

/* ── 11. ALERTAS E NOTIFICAÇÕES ────────────────────────────── */
.alert {
    border-radius: var(--z-radius-md) !important;
    border: none !important;
    font-family: var(--z-font) !important;
    font-size: 0.88rem !important;
}

.alert-success { background: rgba(0,204,102,0.12) !important; color: #059669 !important; }
.alert-danger  { background: rgba(239,68,68,0.12) !important; color: #dc2626 !important; }
.alert-warning { background: rgba(245,158,11,0.12) !important; color: #d97706 !important; }
.alert-info    { background: rgba(59,130,246,0.12) !important; color: #2563eb !important; }

/* ── 12. THUMBNAILS / IMAGENS ──────────────────────────────── */
.img-thumbnail {
    border-radius: var(--z-radius-md) !important;
    border: 1px solid var(--z-border) !important;
    box-shadow: var(--z-shadow-sm) !important;
    padding: 0 !important;
}

/* ── 12b. IMAGE SIZING & OBJECT-FIT ─────────────────────────── */
/* Garante que imagens se ajustem corretamente em todos os contextos */

/* Product card images */
.z-store-product-card .z-store-product-media img,
.z-store-product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product list image (admin panel) */
.lojista-table td img[src*="fotos_produtos"],
.lojista-table td img[src*="categoria"] {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Store hero cover image - garante aspect ratio consistente */
.z-store-hero-bg img,
.z-mob-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Banner carousel images */
.banner-carousel .slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    max-height: 400px;
}

/* Logo images */
.z-store-hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
}

.z-mob-hero-logo img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 12px;
}

/* Product detail page image */
.pd-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

/* Cart item images */
.cart-item-img,
.z-cart-drawer-item-img,
.pdv-item-img,
.pdv-prod-img,
.pdv-prod-add-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

/* Marketplace product card images */
.product-card img[src*="fotos_produtos"] {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 767px) {
    .product-card img[src*="fotos_produtos"] {
        height: 140px;
    }
    
    .z-store-product-card .z-store-product-media {
        height: 140px;
    }
}

/* Gallery image sizing */
.z-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Identity upload preview images */
.z-identity-current-img img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
}

/* Main image preview in product edit */
.z-main-image-preview img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

/* ── 13. PAGINAÇÃO E DATEPICKERS ───────────────────────────── */
.pagination .page-item .page-link {
    border-radius: var(--z-radius-sm) !important;
    border: 1px solid var(--z-border) !important;
    color: var(--z-text) !important;
    font-family: var(--z-font) !important;
    transition: all var(--z-transition) !important;
}

.pagination .page-item.active .page-link {
    background: var(--z-primary) !important;
    border-color: var(--z-primary) !important;
    box-shadow: var(--z-shadow-primary) !important;
}

/* ── 14. TEMA ESCURO — OVERRIDES ESPECÍFICOS ───────────────── */
[data-theme="dark"] .form-control,
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background-color: rgba(255,255,255,0.06) !important;
    border-color: rgba(255,255,255,0.10) !important;
    color: #fff !important;
}

[data-theme="dark"] .table th {
    background-color: rgba(255,255,255,0.04) !important;
}

[data-theme="dark"] label {
    color: rgba(255,255,255,0.55) !important;
}

/* ── 15. UTILIDADES QUICK ──────────────────────────────────── */
.z-divider {
    height: 1px;
    background: var(--z-border);
    margin: 20px 0;
}

.z-gap-sm { gap: 8px; }
.z-gap-md { gap: 16px; }
.z-gap-lg { gap: 24px; }

.z-text-primary   { color: var(--z-primary) !important; }
.z-text-accent    { color: var(--z-accent) !important; }
.z-text-muted     { color: var(--z-text-muted) !important; }
.z-text-secondary { color: var(--z-text-secondary) !important; }

.z-fw-600 { font-weight: 600 !important; }
.z-fw-700 { font-weight: 700 !important; }

/* ── 16. RESPONSIVIDADE MOBILE (Painel) ────────────────────── */
@media (max-width: 767px) {
    .card-body,
    .card-body.pd-40 {
        padding: 20px !important;
    }

    .card {
        border-radius: var(--z-radius-md) !important;
    }

    .table td,
    .table th {
        padding: 10px 12px !important;
        font-size: 0.82rem !important;
    }

    .btn {
        font-size: 0.88rem !important;
        padding: 10px 16px !important;
}
}

/* ── 17. DASHBOARD METRICS ─────────────────────────────────── */
.dashboard-metric {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
    cursor: default !important;
}
.dashboard-metric:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.10) !important;
}
.dashboard-metric .card-body {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 18px 20px !important;
}
.dash-metric-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.dash-metric-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--z-text);
    line-height: 1.1;
}
.dash-metric-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--z-text-secondary);
}

/* ── 18. BUSCA / SEARCH ─────────────────────────────────────── */
.search-wrapper {
    position: relative;
    margin-bottom: 16px;
}
.search-wrapper input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
    background: #fff;
}
.search-wrapper input:focus {
    border-color: var(--z-primary);
}
.search-wrapper .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
}
.search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 999;
    max-height: 400px;
    overflow-y: auto;
}
.search-results.show {
    display: block;
}
.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.15s;
}
.search-result-item:last-child {
    border-bottom: none;
}
.search-result-item:hover {
    background: #f8f9fc;
}
.search-result-item img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}
.search-result-item .info {
    flex: 1;
}
.search-result-item .name {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--z-text);
}
.search-result-item .price {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--z-primary);
}
.search-result-item .category {
    font-size: 0.72rem;
    color: var(--z-text-secondary);
}

/* ── 19. BANNER CAROUSEL ───────────────────────────────────── */
.banner-carousel {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
}
.banner-carousel .slides {
    display: flex;
    transition: transform 0.5s ease;
}
.banner-carousel .slide {
    min-width: 100%;
    position: relative;
}
.banner-carousel .slide img {
    width: 100%;
    display: block;
    border-radius: 16px;
}
.banner-carousel .slide .banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.5));
    color: #fff;
}
.banner-carousel .slide .banner-overlay h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}
.banner-carousel .dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}
.banner-carousel .dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}
.banner-carousel .dots .dot.active {
    background: #fff;
}

/* ── 20. PRODUTO DESTAQUE BADGES ────────────────────────────── */
.produto-destaque-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--z-primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.3px;
    z-index: 2;
}
.produto-mais-vendido-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--z-accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.3px;
    z-index: 2;
}
.produto-sem-estoque {
    opacity: 0.5;
    pointer-events: none;
}

/* ── 21. EMPTY STATE ─────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--z-text-secondary);
}
.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.4;
}
.empty-state .empty-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--z-text);
    margin-bottom: 8px;
}
.empty-state .empty-desc {
    font-size: 0.88rem;
    margin-bottom: 20px;
}

/* ── 22. TIMELINE ───────────────────────────────────────────── */
.timeline {
    position: relative;
    padding-left: 32px;
    list-style: none;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: #e2e8f0;
}
.timeline-item {
    position: relative;
    margin-bottom: 20px;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-item .dot {
    position: absolute;
    left: -25px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e2e8f0;
    border: 2px solid #fff;
    z-index: 1;
}
.timeline-item .dot.active {
    background: var(--z-accent);
    box-shadow: 0 0 0 3px rgba(0,204,102,0.2);
}
.timeline-item .dot.canceled {
    background: var(--z-danger);
    box-shadow: 0 0 0 3px rgba(239,68,68,0.2);
}
.timeline-item .content {
    font-size: 0.88rem;
}
.timeline-item .content .status-label {
    font-weight: 700;
    color: var(--z-text);
}
.timeline-item .content .time {
    font-size: 0.75rem;
    color: var(--z-text-secondary);
}

/* ── 23. CART QTY STEPPER ───────────────────────────────────── */
.cart-qty-stepper {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: var(--z-surface-2);
    border-radius: var(--z-radius-pill);
    border: 1px solid var(--z-border);
    padding: 2px;
}
.cart-qty-stepper button {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: var(--z-surface);
    color: var(--z-text);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--z-transition);
    box-shadow: var(--z-shadow-xs);
    line-height: 1;
}
.cart-qty-stepper button:hover {
    background: var(--z-primary);
    color: #fff;
    box-shadow: var(--z-shadow-primary);
}
.cart-qty-stepper button:active {
    transform: scale(0.92);
}
.cart-qty-input {
    width: 32px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    border: none;
    background: transparent;
    color: var(--z-text);
    -moz-appearance: textfield;
}
.cart-qty-input::-webkit-inner-spin-button,
.cart-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Cart item row */
.cart-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--z-border);
}
.cart-item-info {
    flex: 1;
    min-width: 0;
}
.cart-item-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--z-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cart-item-price {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--z-primary);
}
.cart-remove-item {
    background: none;
    border: none;
    color: var(--z-text-muted);
    cursor: pointer;
    padding: 4px 6px;
    border-radius: var(--z-radius-sm);
    transition: all var(--z-transition);
    font-size: 16px;
}
.cart-remove-item:hover {
    color: var(--z-danger);
    background: rgba(239,68,68,0.08);
}

/* Empty cart state (native .empty-state at section 21) */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--z-text-secondary);
}
.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.4;
}
.empty-state .empty-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--z-text);
    margin-bottom: 8px;
}
.empty-state .empty-desc {
    font-size: 0.88rem;
    margin-bottom: 20px;
}
.empty-state .empty-action {
    display: inline-block;
    padding: 10px 24px;
    background: var(--z-primary);
    color: #fff;
    border-radius: var(--z-radius-pill);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all var(--z-transition);
}
.empty-state .empty-action:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    box-shadow: var(--z-shadow-primary);
}

/* Dark mode overrides */
[data-theme="dark"] .cart-qty-stepper button {
    background: rgba(255,255,255,0.08);
    color: #fff;
}
[data-theme="dark"] .cart-qty-stepper button:hover {
    background: var(--z-primary);
}

/* ── 24. STOREFRONT — PRODUTOS (Vitrine) ─────────────────────── */
.z-product-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: var(--z-radius-md);
    border: 1px solid var(--z-border);
    background: var(--z-surface);
    margin-bottom: 10px;
    transition: box-shadow var(--z-transition), transform var(--z-transition);
}
.z-product-card:hover {
    box-shadow: var(--z-shadow-md);
    transform: translateY(-1px);
}
.z-product-thumb {
    width: 80px;
    height: 65px;
    border-radius: var(--z-radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--z-surface-2);
}
.z-product-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--z-text);
    margin-bottom: 2px;
}
.z-product-price {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--z-primary);
}

/* ── 25. STOREFRONT — CHECKOUT ───────────────────────────────── */
.z-checkout-nav {
    background: var(--z-surface);
    border-bottom: 1px solid var(--z-border);
    padding: 12px 0;
    margin-bottom: 20px;
}
.z-checkout-card {
    background: var(--z-surface);
    border-radius: var(--z-radius-lg);
    box-shadow: var(--z-shadow-md);
    padding: 28px 24px;
    border: 1px solid var(--z-border);
}
.z-form-group {
    margin-bottom: 18px;
}
.z-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--z-text);
    margin-bottom: 6px;
}
.z-input,
.z-select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--z-border-strong);
    border-radius: var(--z-radius-sm);
    font-family: var(--z-font);
    font-size: 0.92rem;
    color: var(--z-text);
    background: var(--z-surface-2);
    transition: border-color var(--z-transition), box-shadow var(--z-transition);
    outline: none;
}
.z-input:focus,
.z-select:focus {
    border-color: var(--z-primary);
    box-shadow: 0 0 0 3px var(--z-primary-glow);
    background: var(--z-surface);
}

/* ── 26. STOREFRONT — LOGIN (Master Panel) ───────────────────── */
.z-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f0c29, #1a1a2e, #16213e);
    padding: 20px;
}
.z-login-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--z-radius-lg);
    padding: 40px 32px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.z-login-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 8px;
}
.z-login-subtitle {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    text-align: center;
    margin-bottom: 28px;
}
.z-login-card .z-input {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.12);
    color: #fff;
}
.z-login-card .z-input::placeholder {
    color: rgba(255,255,255,0.4);
}
.z-login-card .z-input:focus {
    background: rgba(255,255,255,0.12);
    border-color: var(--z-primary);
    box-shadow: 0 0 0 3px rgba(255,102,0,0.2);
}
.z-login-card .z-form-group label {
    color: rgba(255,255,255,0.8);
}

/* ── 27. AVATARES ────────────────────────────────────────────── */
.z-avatar-xs {
    width: 30px;
    height: 30px;
    border-radius: 100%;
    object-fit: cover;
    flex-shrink: 0;
}
.z-avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 100%;
    object-fit: cover;
    flex-shrink: 0;
}
.z-avatar-md {
    width: 56px;
    height: 56px;
    border-radius: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

/* ── 28. UTILITÁRIOS EXTRAS ──────────────────────────────────── */
.z-text {
    color: var(--z-text) !important;
}

/* ── 29. COMPONENTES — BTN EXTRA ──────────────────────────── */
.z-btn-sm  { font-size: 0.82rem !important; padding: 8px 16px !important; border-radius: 8px !important; }
.z-btn-md  { font-size: 0.9rem !important; padding: 12px 22px !important; border-radius: 10px !important; }
.z-btn-lg  { font-size: 1rem !important; padding: 16px 30px !important; border-radius: 12px !important; }
.z-btn-full { width: 100% !important; justify-content: center; }
.z-btn-pill { border-radius: 9999px !important; }
.z-btn-icon { font-size: 1.2em !important; }
.z-btn-text { }

.z-btn-warning {
    background: linear-gradient(135deg, #f59e0b, #fbbf24) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(245,158,11,0.3) !important;
}
.z-btn-warning:hover { opacity: 0.88 !important; transform: translateY(-1px); }

.z-btn-outline {
    background: transparent !important;
    border: 2px solid var(--z-primary) !important;
    color: var(--z-primary) !important;
}
.z-btn-outline:hover {
    background: var(--z-primary) !important;
    color: #fff !important;
}

/* ── 30. COMPONENTES — GRUPO DE BOTÕES ────────────────────── */
.z-btn-group { display: flex; flex-wrap: wrap; }

/* ── 31. COMPONENTES — INPUT EXTRA ─────────────────────────── */
.z-form-group { margin-bottom: 16px; }
.z-input-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--z-text);
    margin-bottom: 6px;
}
.z-input-required { color: #ba1a1a; }
.z-input-wrap { position: relative; display: flex; align-items: center; }
.z-input-wrap .z-input { flex: 1; width: 100%; }
.z-input--has-icon .z-input { padding-left: 44px !important; }
.z-input-icon {
    position: absolute;
    left: 14px;
    color: var(--z-text-muted);
    font-size: 1.2rem;
    pointer-events: none;
    z-index: 1;
}
.z-input-error { display: block; color: #ba1a1a; font-size: 0.78rem; margin-top: 4px; font-weight: 500; }
.z-input-help  { display: block; color: #8f7065; font-size: 0.78rem; margin-top: 4px; }
.z-input--error .z-input { border-color: #ba1a1a !important; }
.z-input--error .z-input-icon { color: #ba1a1a; }

/* ── 32. COMPONENTES — CARD PADDING ────────────────────────── */
.z-card--padded .z-card-body { padding: 24px; }
.z-card--padded .z-card-header { padding: 20px 24px; border-bottom: 1px solid var(--z-border); }
.z-card--padded .z-card-footer { padding: 16px 24px; border-top: 1px solid var(--z-border); background: var(--z-surface-2); }

/* ── 33. COMPONENTES — ALERT CLOSE ─────────────────────────── */
.z-alert-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.5;
    padding: 0 4px;
    line-height: 1;
    flex-shrink: 0;
}
.z-alert-close:hover { opacity: 1; }
.z-alert-icon { font-size: 1.4rem !important; flex-shrink: 0; }

/* ── 34. COMPONENTES — DIVIDER ─────────────────────────────── */
.z-divider--text {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--z-text-muted);
    font-size: 0.82rem;
    font-weight: 500;
}
.z-divider--text::before,
.z-divider--text::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--z-border);
}

/* ── 35. FONTE GLOBAL ────────────────────────────────────────── */
/* Outfit já importado no início como fallback */

/* ── 36. LEGACY CLASSES — OVERRIDES PARA COMPATIBILIDADE ──── */
/* Cobrir todas as classes legadas usadas no painel para que */
/* todas as páginas fiquem automaticamente com o Design System */

/* section-title (label usado em todas as páginas) */
label.section-title,
.section-title {
    font-family: var(--z-font) !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    color: var(--z-text) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding-bottom: 10px !important;
    margin-bottom: 18px !important;
    border-bottom: 2px solid var(--z-primary) !important;
    letter-spacing: -0.2px !important;
}

.section-title::before {
    content: '' !important;
    display: inline-block !important;
    width: 4px !important;
    height: 18px !important;
    border-radius: 2px !important;
    background: linear-gradient(135deg, var(--z-primary), var(--z-primary-light)) !important;
}

/* form-control-label */
.form-control-label {
    font-family: var(--z-font) !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    color: var(--z-text-secondary) !important;
    margin-bottom: 6px !important;
    display: block !important;
}

/* form-layout e form-layout-footer */
.form-layout {
    padding: 0 !important;
}

.form-layout-footer {
    padding-top: 20px !important;
    padding-bottom: 8px !important;
}

/* section-wrapper */
.section-wrapper {
    background: var(--z-surface) !important;
    border-radius: var(--z-radius-lg) !important;
    padding: 24px !important;
    border: 1px solid var(--z-border) !important;
    box-shadow: var(--z-shadow-sm) !important;
    margin-bottom: 20px !important;
}

/* btn-purple (botão editar) */
.btn-purple,
.z-btn-purple {
    background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(124,58,237,0.25) !important;
}
.btn-purple:hover,
.z-btn-purple:hover {
    opacity: 0.88 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(124,58,237,0.35) !important;
}

/* btn-secondary */
.btn-secondary,
.z-btn-secondary {
    background: var(--z-surface-2) !important;
    border: 1px solid var(--z-border-strong) !important;
    color: var(--z-text-secondary) !important;
    box-shadow: none !important;
}
.btn-secondary:hover,
.z-btn-secondary:hover {
    background: var(--z-surface-hover) !important;
    border-color: var(--z-primary) !important;
    color: var(--z-primary) !important;
}

/* btn-info */
.btn-info,
.z-btn-info {
    background: linear-gradient(135deg, #2563eb, #60a5fa) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(37,99,235,0.25) !important;
}
.btn-info:hover,
.z-btn-info:hover {
    opacity: 0.88 !important;
    transform: translateY(-1px);
}

/* btn-orange */
.btn-orange,
.z-btn-orange {
    background: linear-gradient(135deg, var(--z-primary), var(--z-primary-light)) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: var(--z-shadow-primary) !important;
}
.btn-orange:hover,
.z-btn-orange:hover {
    opacity: 0.88 !important;
    transform: translateY(-1px);
}

/* bd-0 (remove borda) */
.bd-0 { border: none !important; }

/* btn-block */
.btn-block { display: block !important; width: 100% !important; }

/* tx-danger */
.tx-danger { color: var(--z-danger) !important; }
.tx-success { color: #059669 !important; }
.tx-warning { color: #d97706 !important; }
.tx-info { color: #2563eb !important; }
.tx-muted { color: var(--z-text-muted) !important; }
.tx-white { color: #ffffff !important; }
.tx-primary { color: var(--z-primary) !important; }
.tx-accent { color: var(--z-accent) !important; }
.tx-orange { color: #ff6600 !important; }
.tx-red { color: #ef4444 !important; }
.tx-green { color: #00cc66 !important; }
.tx-blue { color: #1565c0 !important; }
.tx-purple { color: #7c3aed !important; }
.tx-teal { color: #00695c !important; }
.tx-dark { color: #1a1a2e !important; }

/* tx-gray-500, tx-gray-600 */
.tx-gray-500 { color: var(--z-text-muted) !important; }
.tx-gray-600 { color: var(--z-text-secondary) !important; }

/* Dashboard metric icon color variants */
.dash-metric-icon--green  { background: #e8f5e9; color: #2e7d32; }
.dash-metric-icon--blue   { background: #e3f2fd; color: #1565c0; }
.dash-metric-icon--orange { background: #fff3e0; color: #e65100; }
.dash-metric-icon--purple { background: #f3e5f5; color: #6a1b9a; }
.dash-metric-icon--teal   { background: #e0f2f1; color: #00695c; }
.dash-metric-icon--red    { background: #fce4ec; color: #c62828; }

/* z-btn-orange for sidebar/WhatsApp links */
.z-link-whatsapp { display: inline-flex; align-items: center; gap: 8px; background: rgba(37,211,102,0.1); border: 1px solid rgba(37,211,102,0.25); border-radius: 10px; padding: 10px 18px; color: #25d366; font-weight: 600; font-size: 0.88rem; text-decoration: none; transition: all var(--z-transition); }
.z-link-whatsapp:hover { background: rgba(37,211,102,0.18); transform: translateY(-1px); }

/* mg-r-10, mg-l-5, mg-b-0, mg-b-10, mg-b-15, mg-b-20, mg-t-10, mg-t-auto, mg-r-10 */
.mg-r-10 { margin-right: 10px !important; }
.mg-l-5 { margin-left: 5px !important; }
.mg-b-0 { margin-bottom: 0 !important; }
.mg-b-10 { margin-bottom: 10px !important; }
.mg-b-15 { margin-bottom: 15px !important; }
.mg-b-20 { margin-bottom: 20px !important; }
.mg-t-10 { margin-top: 10px !important; }
.mg-t-auto { margin-top: auto !important; }

/* fix_spacing */
.fix_spacing { padding-top: 8px !important; font-weight: 600 !important; }

/* styled-select */
.styled-select {
    position: relative;
}

/* ckbox (checkboxes do DS) */
.ckbox {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    font-family: var(--z-font) !important;
    font-size: 0.88rem !important;
    color: var(--z-text) !important;
}
.ckbox input[type="checkbox"],
.ckbox input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    accent-color: var(--z-primary) !important;
    cursor: pointer !important;
}

/* Bootstrap badges compat */
.badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 3px 10px !important;
    border-radius: var(--z-radius-pill) !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    font-family: var(--z-font) !important;
}
.badge-success {
    background: rgba(0,204,102,0.12) !important;
    color: #059669 !important;
    border: 1px solid rgba(0,204,102,0.25) !important;
}
.badge-danger {
    background: rgba(239,68,68,0.12) !important;
    color: #dc2626 !important;
    border: 1px solid rgba(239,68,68,0.25) !important;
}
.badge-warning {
    background: rgba(245,158,11,0.12) !important;
    color: #d97706 !important;
    border: 1px solid rgba(245,158,11,0.25) !important;
}
.badge-info {
    background: rgba(59,130,246,0.12) !important;
    color: #2563eb !important;
    border: 1px solid rgba(59,130,246,0.25) !important;
}
.badge-secondary {
    background: var(--z-surface-2) !important;
    color: var(--z-text-secondary) !important;
    border: 1px solid var(--z-border) !important;
}

/* form-check compat */
.form-check {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
}
.form-check-input {
    width: 18px !important;
    height: 18px !important;
    accent-color: var(--z-primary) !important;
    cursor: pointer !important;
}
.form-check-label {
    font-family: var(--z-font) !important;
    font-size: 0.88rem !important;
    color: var(--z-text) !important;
    cursor: pointer !important;
}

/* form-group melhorado */
.form-group {
    margin-bottom: 16px !important;
}
.form-group label:not(.ckbox):not(.form-check-label) {
    font-family: var(--z-font) !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    color: var(--z-text-secondary) !important;
    margin-bottom: 6px !important;
    display: block !important;
}

/* table-wrapper */
.table-wrapper {
    overflow-x: auto !important;
    border-radius: var(--z-radius-md) !important;
}

/* card-body pd-40, pd-20 */
.pd-40 { padding: 40px !important; }
.pd-20 { padding: 20px !important; }

/* row-sm, mg-t-20, mg-b-20, mg-b-25, mg-b-10, mg-md-t-0 */
.row-sm > [class*="col"] {
    padding-left: 8px !important;
    padding-right: 8px !important;
}
.mg-t-20 { margin-top: 20px !important; }
.mg-b-25 { margin-bottom: 25px !important; }

/* Responsive: mg-md-t-0 */
@media (min-width: 768px) {
    .mg-md-t-0 { margin-top: 0 !important; }
}

/* g-4 (bootstrap gap) */
.g-4 { gap: 1.5rem !important; }

/* h-100 */
.h-100 { height: 100% !important; }

/* p-3 */
.p-3 { padding: 1rem !important; }

/* d-flex, align-items-center, justify-content-center */
.d-flex { display: flex !important; }
.align-items-center { align-items: center !important; }
.justify-content-center { justify-content: center !important; }

/* rounded-circle */
.rounded-circle { border-radius: 50% !important; }

/* mg-b-0 */
.mg-b-0 { margin-bottom: 0 !important; }

/* row-cols compat */
@media (min-width: 576px) {
    .row-cols-md-2 > [class*="col"] { flex: 0 0 50% !important; max-width: 50% !important; }
}
@media (min-width: 992px) {
    .row-cols-lg-3 > [class*="col"] { flex: 0 0 33.333% !important; max-width: 33.333% !important; }
}

/* z-card with h-100 */
.z-card.h-100 { height: 100% !important; }

/* col mb-3 */
.col.mb-3 { margin-bottom: 1rem !important; }

/* --------------------------------------------------------------------------
   Store Template Oficial - modulo 02 cardapio cliente
   -------------------------------------------------------------------------- */
body {
    font-family: var(--z-font) !important;
    color: var(--z-text);
    background: #ffffff;
}

.z-store-shell {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
}

.z-store-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    isolation: isolate;
    overflow: hidden;
    background: #171717;
}

.z-store-hero-bg,
.z-store-hero-bg picture,
.z-store-hero-bg img,
.z-store-hero-overlay {
    position: absolute;
    inset: 0;
}

.z-store-hero-bg picture {
    display: block;
}

.z-store-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
}

.z-store-hero-overlay {
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.74)),
        linear-gradient(90deg, rgba(0,0,0,0.68), rgba(0,0,0,0.18));
}

.z-store-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 26px;
    align-items: end;
    padding: 96px 0 34px;
}

.z-store-hero-logo {
    width: 132px;
    height: 132px;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 18px 55px rgba(0,0,0,0.32);
    border: 4px solid rgba(255,255,255,0.86);
}

.z-store-hero-logo img,
.z-store-sticky-brand img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.z-store-eyebrow {
    display: inline-flex;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.82);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.z-store-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.02;
    margin: 0 0 14px;
    font-weight: 900;
    letter-spacing: 0;
}

.z-store-hero-description,
.z-store-closed-message {
    max-width: 680px;
    margin: -4px 0 14px;
    color: rgba(255,255,255,0.86);
    font-size: 1rem;
    font-weight: 600;
}

.z-store-closed-message {
    display: inline-flex;
    margin: 0 0 14px;
    padding: 9px 12px;
    border-radius: 8px;
    background: rgba(127, 29, 29, 0.48);
    border: 1px solid rgba(252, 165, 165, 0.45);
}

.z-store-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

.z-store-meta > span,
.z-store-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    border-radius: 999px;
    padding: 7px 11px;
    color: #fff;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(14px);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.z-store-meta .material-symbols-outlined {
    font-size: 17px;
}

.z-store-status i {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    display: inline-block;
    background: currentColor;
}

.z-store-status.is-open {
    color: #dcfce7;
    background: rgba(22, 163, 74, 0.42);
    border-color: rgba(134, 239, 172, 0.45);
}

.z-store-status.is-closed {
    color: #fee2e2;
    background: rgba(220, 38, 38, 0.42);
    border-color: rgba(252, 165, 165, 0.45);
}

.z-store-address {
    display: flex;
    gap: 7px;
    align-items: center;
    color: rgba(255,255,255,0.84);
    margin: 0 0 18px;
    font-size: 0.95rem;
}

.z-store-address .material-symbols-outlined {
    font-size: 18px;
}

.z-store-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.z-store-hero-actions a,
.z-store-hero-actions button,
.z-store-about-grid a,
.z-store-about-grid button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.24);
    border-radius: 8px;
    padding: 0 14px;
    color: #fff;
    background: rgba(255,255,255,0.14);
    font-weight: 800;
    font-size: 0.88rem;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--z-transition);
}

.z-store-hero-actions a:hover,
.z-store-hero-actions button:hover,
.z-store-hero-actions .is-done {
    color: #fff;
    background: rgba(255,255,255,0.24);
    transform: translateY(-1px);
}

.z-store-hero-actions .z-store-primary-action {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}

.z-store-hero-actions .material-symbols-outlined,
.z-store-about-grid .material-symbols-outlined {
    font-size: 19px;
}

.z-store-sticky-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: 64px;
    z-index: 1050;
    background: rgba(255,255,255,0.95);
    border-bottom: 1px solid var(--z-border);
    box-shadow: 0 12px 28px rgba(15,23,42,0.08);
    backdrop-filter: blur(16px);
    transform: translateY(-110%);
    transition: transform var(--z-transition);
}

body.store-scrolled .z-store-sticky-header {
    transform: translateY(0);
}

.z-store-sticky-header .z-store-shell,
.z-store-sticky-actions,
.z-store-sticky-brand {
    height: 100%;
    display: flex;
    align-items: center;
}

.z-store-sticky-header .z-store-shell {
    justify-content: space-between;
    gap: 14px;
}

.z-store-sticky-brand {
    gap: 10px;
    color: var(--z-text);
    text-decoration: none;
    font-weight: 900;
    min-width: 0;
}

.z-store-sticky-brand img {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    flex: 0 0 auto;
}

.z-store-sticky-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.z-store-sticky-actions {
    gap: 10px;
    flex: 0 0 auto;
}

.z-store-sticky-actions .z-store-status {
    color: #166534;
    background: #dcfce7;
    border-color: #bbf7d0;
}

.z-store-sticky-actions .z-store-status.is-closed {
    color: #991b1b;
    background: #fee2e2;
    border-color: #fecaca;
}

.z-store-sticky-actions button {
    height: 40px;
    min-width: 48px;
    border: 0;
    border-radius: 8px;
    background: var(--z-primary);
    color: #fff;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.z-store-searchbar {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(255,255,255,0.94);
    border-bottom: 1px solid var(--z-border);
    backdrop-filter: blur(16px);
    padding: 12px 0 10px;
    transition: top var(--z-transition);
}

body.store-scrolled .z-store-searchbar {
    top: 64px;
}

.z-store-searchbox {
    height: 48px;
    display: flex;
    align-items: center;
    gap: 9px;
    background: #fff;
    border: 1px solid var(--z-border);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 0 14px;
}

.z-store-searchbox .material-symbols-outlined {
    color: var(--z-text-muted);
}

.z-store-searchbox input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--z-text);
    font-weight: 650;
    background: transparent;
}

.z-store-category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 0 2px;
    scrollbar-width: thin;
}

.z-store-category-tabs a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--z-border);
    background: #fff;
    color: var(--z-text-secondary);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--z-transition);
}

.z-store-category-tabs a.active,
.z-store-category-tabs a:hover {
    color: #fff;
    border-color: var(--z-primary);
    background: var(--z-primary);
    box-shadow: 0 2px 10px rgba(167,58,0,0.25);
}

.z-store-category-tabs img {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    object-fit: cover;
}

.z-store-main {
    padding: 22px 0 36px;
}

.z-store-alert {
    width: min(1180px, calc(100% - 28px));
    margin: 16px auto 0;
    border-radius: 8px;
    padding: 12px 14px;
    font-weight: 800;
    border: 1px solid transparent;
}

.z-store-alert--warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.z-store-alert--success {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #166534;
}

.z-store-alert--danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.z-store-section,
.z-store-about {
    margin-top: 30px;
}

.z-store-section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 14px;
}

.z-store-section-head h2,
.z-store-about h2,
.z-store-category-title h3 {
    margin: 0;
    color: var(--z-text);
    letter-spacing: 0;
    font-weight: 800;
}

.z-store-section-head h2,
.z-store-about h2 {
    font-size: 1.3rem;
}

.z-store-section-head p,
.z-store-about p,
.z-store-category-title span {
    margin: 4px 0 0;
    color: var(--z-text-muted);
    font-size: 0.92rem;
}

.z-store-section-head a {
    color: var(--z-primary);
    font-weight: 900;
    text-decoration: none;
    flex: 0 0 auto;
}

.z-store-product-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 270px);
    gap: 14px;
    overflow-x: auto;
    padding: 2px 2px 12px;
    scroll-snap-type: x proximity;
}

.z-store-product-rail--cms {
    grid-auto-columns: minmax(230px, calc(100% / var(--z-carousel-desktop, 3)));
}

.z-store-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
    gap: 14px;
}

.z-store-product-card {
    min-height: 100%;
    display: grid;
    grid-template-rows: 150px 1fr;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--z-border);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform var(--z-transition), box-shadow var(--z-transition), border-color var(--z-transition);
}

.z-store-product-card:hover,
.z-store-product-card:focus {
    transform: translateY(-2px);
    border-color: rgba(255, 102, 0, 0.35);
    box-shadow: 0 18px 34px rgba(15,23,42,0.11);
    outline: 0;
}

.z-store-product-card.is-disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

.z-store-product-media {
    position: relative;
    background: var(--z-surface-2);
    overflow: hidden;
}

.z-store-product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--z-transition);
}

.z-store-product-card:hover .z-store-product-media img {
    transform: scale(1.04);
}

.z-store-product-badges {
    position: absolute;
    inset: 10px 10px auto 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.z-store-badge {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0 8px;
    background: rgba(17,24,39,0.74);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 900;
}

.z-store-badge--promo {
    background: #dc2626;
}

.z-store-badge--new {
    background: #2563eb;
}

.z-store-product-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
}

.z-store-product-category {
    margin-bottom: 4px;
    color: var(--z-primary);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.z-store-product-card h3 {
    margin: 0;
    color: var(--z-text);
    font-size: 1rem;
    line-height: 1.24;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.z-store-product-card p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
    margin: 6px 0 0;
    color: var(--z-text-muted);
    font-size: 0.82rem;
    line-height: 1.38;
}

.z-store-product-footer,
.z-store-price-wrap {
    display: flex;
    align-items: center;
}

.z-store-product-footer {
    justify-content: space-between;
    gap: 10px;
}

.z-store-price-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
}

.z-store-old-price {
    color: var(--z-text-muted);
    font-size: 0.76rem;
    text-decoration: line-through;
}

.z-store-price-wrap strong {
    color: var(--z-text);
    font-size: 1.02rem;
    font-weight: 800;
}

.z-store-add-btn {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--z-primary);
    flex: 0 0 auto;
    font-weight: 700;
    transition: all var(--z-transition);
    box-shadow: 0 2px 8px rgba(167,58,0,0.25);
}

.z-store-add-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(167,58,0,0.35);
}

.z-store-add-btn:active {
    transform: scale(0.95);
}

.z-store-add-btn:disabled {
    background: var(--z-text-muted);
    box-shadow: none;
    transform: none;
}

.z-store-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
}

.z-store-category-card {
    min-height: 82px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--z-border);
    color: var(--z-text);
    text-decoration: none;
}

.z-store-category-card img {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    object-fit: cover;
}

.z-store-category-card strong,
.z-store-footer strong {
    display: block;
    color: var(--z-text);
    font-weight: 900;
}

.z-store-category-card span:not(.material-symbols-outlined) {
    color: var(--z-text-muted);
    font-size: 0.82rem;
}

.z-store-category-block {
    scroll-margin-top: 160px;
    margin-top: 22px;
}

.z-store-category-title {
    margin-bottom: 12px;
}

.z-store-about {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 20px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--z-border);
    border-radius: 8px;
    padding: 20px;
}

.z-store-about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.z-store-about-grid a,
.z-store-about-grid button {
    color: var(--z-text);
    background: var(--z-surface-2);
    border-color: var(--z-border);
}

.z-store-footer {
    margin-top: 28px;
    padding: 28px 0 18px;
    color: var(--z-text-secondary);
    background: #111827;
    border-radius: 20px 20px 0 0;
}

.z-store-footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 22px;
}

.z-store-footer strong {
    color: #fff;
    font-size: 1.05rem;
}

.z-store-footer p {
    margin: 8px 0 0;
    color: rgba(255,255,255,0.68);
}

.z-store-footer span {
    display: block;
    color: #fff;
    font-weight: 900;
    margin-bottom: 8px;
}

.z-store-footer a,
.z-store-footer button {
    display: block;
    margin: 5px 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255,255,255,0.72);
    font: inherit;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.z-store-footer a:hover,
.z-store-footer button:hover {
    color: #fff;
}

.z-store-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.55);
}

.z-product-modal .modal-content {
    border: 0;
    border-radius: 8px;
    overflow: hidden;
}

.z-product-detail {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1fr);
    gap: 18px;
}

.z-product-detail-media {
    border-radius: 8px;
    overflow: hidden;
    background: var(--z-surface-2);
}

.z-product-detail-media img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.z-product-detail-body h2 {
    margin: 0 0 8px;
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--z-text);
}

.z-product-detail-body p {
    color: var(--z-text-muted);
}

.z-product-detail-price {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    margin: 4px 0 14px;
}

.z-product-detail-price strong {
    color: var(--z-primary);
    font-size: 1.35rem;
    font-weight: 900;
}

.z-product-options {
    display: grid;
    gap: 12px;
}

.z-product-form-footer {
    position: sticky;
    bottom: 0;
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin: 16px -1rem -1rem;
    padding: 12px 1rem;
    background: #fff;
    border-top: 1px solid var(--z-border);
}

.z-product-qty {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    height: 42px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--z-border);
}

.z-product-qty button,
.z-product-qty input {
    border: 0;
    background: #fff;
    text-align: center;
    font-weight: 900;
}

@media (max-width: 767px) {
    .z-store-shell {
        width: min(100% - 24px, 1180px);
    }

    .z-store-hero {
        min-height: 470px;
    }

    .z-store-hero-inner {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 110px 0 24px;
    }

    .z-store-hero-logo {
        width: 104px;
        height: 104px;
        border-radius: 18px;
    }

    .z-store-hero h1 {
        font-size: 2rem;
    }

    .z-store-hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .z-store-hero-actions a,
    .z-store-hero-actions button {
        min-width: 0;
        padding: 0 10px;
        font-size: 0.82rem;
    }

    .z-store-sticky-actions .z-store-status {
        display: none;
    }

    .z-store-category-tabs a {
        font-size: 0.8rem;
    }

    .z-store-section-head {
        align-items: start;
    }

    .z-store-product-rail {
        grid-auto-columns: minmax(220px, 76vw);
    }

    .z-store-product-rail--cms {
        grid-auto-columns: minmax(220px, calc(100% / var(--z-carousel-mobile, 1)));
    }

    .z-store-product-grid {
        grid-template-columns: 1fr;
    }

    .z-store-about,
    .z-product-detail,
    .z-store-footer-grid {
        grid-template-columns: 1fr;
    }

    .z-store-about-grid {
        grid-template-columns: 1fr;
    }

    .z-product-form-footer {
        grid-template-columns: 1fr;
    }
}

/* ── SUÍTE PWA MOBILE NATIVO ───────────────────────────── */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

@supports (padding: env(safe-area-inset-top)) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
}

@media (max-width: 480px) {
    * {
        word-break: break-word;
    }
}

