/* ========================================
   VARIÁVEIS GLOBAIS
   ======================================== */
:root {
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --bg-dark: #0b0f1a;
    --bg-card: #161b2c;
    --text-main: #e2e8f0;
    --border-color: rgba(255, 255, 255, 0.05);
    --bottom-nav-height: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.5;
}

html { scroll-behavior: smooth; }

.animate-in { animation: fadeIn 0.4s ease-out forwards; }

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

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

.hidden { display: none !important; }
.no-scrollbar::-webkit-scrollbar { display: none; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

#product-grid { display: grid; gap: 1.5rem; animation: slideDown 0.5s ease-out; }

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.product-card img { width: 100%; height: 180px; object-fit: cover; border-radius: 1rem; background: #0f172a; }

#bi-section .grid { animation: slideDown 0.5s ease-out; }

#bi-orders-detail > div {
    animation: fadeIn 0.3s ease-out;
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 1rem;
    transition: all 0.2s ease;
}

#bi-orders-detail > div:hover { background: rgba(255,255,255,0.05); border-color: var(--accent); }

#cart-drawer { box-shadow: -20px 0 50px rgba(0,0,0,0.8); transition: transform 0.4s cubic-bezier(0.4,0,0.2,1); }
#cart-items > div { animation: fadeIn 0.2s ease-out; }

#admin-list > div { transition: all 0.2s ease; }
#admin-list > div:hover { background: rgba(255,255,255,0.05); border-color: var(--accent); }

button { cursor: pointer; transition: filter 0.2s ease, transform 0.1s ease; }
button:active { transform: scale(0.98); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
button:hover:not(:disabled) { filter: brightness(1.1); }

input, textarea, select { transition: all 0.2s ease; }
input:focus, textarea:focus { transform: scale(1.01); }
/* ✅ FIX: "transform" em <select> quebra o posicionamento do popup
   nativo de opções no Chrome/Android (o dropdown abre "para fora" da
   tela) — select:focus não recebe mais o scale, só input/textarea. */

#admin-modal, #customer-modal { animation: fadeIn 0.3s ease-out; }
#admin-modal > div, #customer-modal > div { animation: slideDown 0.3s ease-out; }

/* ========================================
   ADS HERO — BANNER CLICÁVEL
   ======================================== */
#ads-hero {
    cursor: zoom-in;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

#ads-hero:hover { transform: scale(1.005); }

#ads-hero::after {
    content: '🔍 Toque para ampliar';
    position: absolute;
    bottom: 10px;
    right: 14px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    letter-spacing: 0.5px;
}

#ads-hero:hover::after { opacity: 1; }

/* ========================================
   AD FULLSCREEN MODAL
   ======================================== */
#ad-fullscreen-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.25s ease-out;
    cursor: zoom-out;
}

#ad-fullscreen-modal.hidden { display: none !important; }

#ad-fullscreen-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
}

#ad-fullscreen-content img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 20px;
    object-fit: contain;
    box-shadow: 0 30px 80px rgba(0,0,0,0.8);
    display: block;
    /* ✅ NOVO (v6.5): zoom por pinça/rodinha/duplo-toque (image-zoom.js) —
       touch-action:none impede o navegador de "roubar" o gesto de dois
       dedos pra rolar/dar zoom na página inteira, e cursor: grab avisa
       que dá pra arrastar depois de ampliar. */
    touch-action: none;
    cursor: grab;
    user-select: none;
}

/* ========================================
   ✅ NOVO (v6.5): ZOOM DE IMAGEM — MODAL PRÓPRIO DO PRODUTO
   Aberto ao clicar na foto dentro do card de pré-visualização
   (#product-preview-modal) — mesmo visual do fullscreen de anúncios,
   com zoom por pinça/rodinha/duplo-toque (image-zoom.js).
   ======================================== */
#product-image-zoom-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.25s ease-out;
    cursor: zoom-out;
}

#product-image-zoom-modal.hidden { display: none !important; }

#product-image-zoom-modal img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 20px;
    object-fit: contain;
    box-shadow: 0 30px 80px rgba(0,0,0,0.8);
    display: block;
    touch-action: none;
    cursor: grab;
    user-select: none;
}

/* ✅ NOVO (v1.1 image-zoom.js): setas ◀ ▶ e contador "2/3" dentro do
   zoom em tela cheia do produto — só aparecem quando o produto tem
   mais de uma foto/vídeo cadastrado. */
.zoom-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    z-index: 10;
}
.zoom-nav-btn:hover { background: rgba(0, 0, 0, 0.8); filter: none; }
.zoom-nav-btn.hidden { display: none !important; }
.zoom-nav-btn svg { width: 24px; height: 24px; pointer-events: none; }
.zoom-nav-prev { left: 16px; }
.zoom-nav-next { right: 16px; }

.zoom-media-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: 900;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    z-index: 10;
}
.zoom-media-counter.hidden { display: none !important; }

@media (max-width: 640px) {
    .zoom-nav-btn { width: 40px; height: 40px; }
    .zoom-nav-btn svg { width: 20px; height: 20px; }
    .zoom-nav-prev { left: 8px; }
    .zoom-nav-next { right: 8px; }
}

#ad-fullscreen-text-body {
    min-width: 320px;
    max-width: 560px;
    background: #161b2c;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0,0,0,0.8);
}

#ad-fullscreen-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 36px;
    height: 36px;
    background: #ef4444;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s, transform 0.2s;
    line-height: 1;
}

#ad-fullscreen-close:hover { background: #dc2626; transform: scale(1.15); filter: none; }

#ad-fullscreen-link-btn {
    margin-top: 0;
    display: inline-block;
    background: var(--accent);
    color: white;
    font-weight: 900;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 32px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

#ad-fullscreen-link-btn:hover { background: var(--accent-hover); transform: scale(1.03); filter: none; }

/* ========================================
   SIDEBAR — DESKTOP
   ======================================== */
aside.app-sidebar {
    display: flex;
    width: 72px;
    flex-shrink: 0;
    transition: width 0.3s ease;
    overflow: hidden;
}

/* Notebook/Desktop largo: sidebar completa com labels */
@media (min-width: 1024px) {
    aside.app-sidebar { width: 256px; }
    aside.app-sidebar span { display: block; }
}

/* Tablet (769px-1023px): sidebar compacta só ícones */
@media (min-width: 769px) and (max-width: 1023px) {
    aside.app-sidebar span { display: none; }
    aside.app-sidebar .w-full { justify-content: center; padding-left: 0; padding-right: 0; }
}

/* ========================================
   MOBILE: ocultar sidebar, mostrar bottom nav
   ======================================== */
@media (max-width: 768px) {
    aside.app-sidebar { display: none !important; }
    main { padding-bottom: calc(var(--bottom-nav-height) + 1rem) !important; }
}

/* ========================================
   BOTTOM NAVIGATION BAR
   ======================================== */
#bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: rgba(11, 15, 26, 0.97);
    border-top: 1px solid rgba(255,255,255,0.07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 200;
    align-items: center;
    justify-content: space-around;
    padding: 0 4px;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -8px 32px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    #bottom-nav { display: flex; }
}

.bnav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 2px;
    background: none;
    border: none;
    border-radius: 10px;
    color: #64748b;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    position: relative;
    min-width: 0;
}

.bnav-btn svg,
.bnav-btn i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.bnav-btn:hover {
    color: #94a3b8;
    background: rgba(255,255,255,0.05);
    filter: none;
    transform: none;
}

.bnav-btn:active { transform: scale(0.95); }

.bnav-btn.active { color: var(--accent); }

.bnav-btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--accent);
    border-radius: 0 0 4px 4px;
}

.bnav-btn.bnav-cart { color: white; }

.bnav-btn.bnav-icon-wrap,
.bnav-icon-wrap {
    position: relative;
    display: inline-flex;
}

#bnav-cart-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--accent);
    color: white;
    font-size: 9px;
    font-weight: 900;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

.bnav-btn.bnav-login { color: #22c55e; }
.bnav-btn.bnav-logout { color: #94a3b8; }

/* ========================================
   RESPONSIVIDADE GERAL
   ======================================== */
@media (max-width: 1024px) {
    #product-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
}

@media (max-width: 768px) {
    main { padding: 1rem; }
    #product-grid { grid-template-columns: 1fr; }
    #cart-drawer { width: 100%; }
    #ad-fullscreen-content img { max-width: 95vw; max-height: 80vh; border-radius: 12px; }
    #ad-fullscreen-text-body { min-width: 280px; padding: 1.5rem; }
}

@media (prefers-color-scheme: dark) {
    body { background-color: var(--bg-dark); color: var(--text-main); }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
/* ========================================
   STORE STATUS — SABBATH / NIGHT CLOSED
   (store-status.css integrado — fix nome com espaço)
   ======================================== */

#store-closed-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(7, 10, 20, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

#store-closed-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.store-closed-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100%;
}

.store-closed-content {
    background: linear-gradient(145deg, #0f1628, #161b2c);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 3rem 2.5rem;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255,255,255,0.04) inset;
    animation: storeClosedIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes storeClosedIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.store-closed-emoji {
    font-size: 5rem;
    line-height: 1;
    display: block;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 30px rgba(251, 191, 36, 0.4));
    animation: floatEmoji 3s ease-in-out infinite;
}

@keyframes floatEmoji {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

.store-closed-title {
    font-size: 1.75rem;
    font-weight: 900;
    color: #f1f5f9;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.store-closed-subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.store-closed-description {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.store-closed-timer {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.store-closed-reopens {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.store-closed-time {
    font-size: 1.1rem;
    font-weight: 800;
    color: #38bdf8;
    letter-spacing: -0.01em;
}

.store-closed-info {
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.store-closed-info p {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.6;
}

.store-closed-dismiss-btn {
    margin-top: 20px;
    width: 100%;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    font-weight: 800;
    font-size: 14px;
    transition: background 0.2s ease, transform 0.15s ease;
}
.store-closed-dismiss-btn:hover { background: rgba(255, 255, 255, 0.12); filter: none; }
.store-closed-dismiss-btn:active { transform: scale(0.98); }

/* Sabbath — visual diferenciado */
#store-closed-overlay[data-mode="sabbath_closed"] .store-closed-content {
    border-color: rgba(251, 191, 36, 0.2);
    background: linear-gradient(145deg, #0f1628, #1a1608);
}

#store-closed-overlay[data-mode="sabbath_closed"] .store-closed-timer {
    border-color: rgba(251, 191, 36, 0.15);
}

#store-closed-overlay[data-mode="sabbath_closed"] .store-closed-time {
    color: #fbbf24;
}

/* Night mode — visual diferenciado */
#store-closed-overlay[data-mode="night_closed"] .store-closed-emoji {
    filter: drop-shadow(0 0 30px rgba(100, 116, 139, 0.5));
}

/* Mobile */
@media (max-width: 480px) {
    .store-closed-content {
        padding: 2.5rem 1.75rem;
        border-radius: 24px;
    }
    .store-closed-emoji { font-size: 4rem; }
    .store-closed-title { font-size: 1.4rem; }
}

/* ============================================================
   CSS para Vendor Status Button
   ============================================================ */

.vendor-status-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.vendor-status-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    background: transparent;
    color: #94a3b8;
}

.vendor-status-btn.online {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.vendor-status-btn.offline {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.vendor-status-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.status-light {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

.status-light.light-online {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.status-light.light-offline {
    background: #6b7280;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Produtos desabilitados */
.product-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.product-disabled .btn-add-cart.disabled {
    background: #6b7280;
    cursor: not-allowed;
    color: #d1d5db;
}
/* ============================================================
   vendor-status-sidebar.css
   ============================================================ */

.vendor-status-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    margin: 16px 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

/* HEADER */
.vendor-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.vendor-status-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vendor-status-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s ease;
}

.vendor-status-toggle-btn:hover {
    background: rgba(34, 197, 94, 0.25);
    transform: translateY(-2px);
}

.vendor-status-toggle-btn.offline {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
    animation: pulse-indicator 2s infinite;
}

.vendor-status-toggle-btn.offline .status-indicator {
    background: #6b7280;
    animation: none;
}

@keyframes pulse-indicator {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* HORÁRIO AUTOMÁTICO */
.vendor-schedule-container {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.vendor-schedule-container h4 {
    margin: 0 0 12px 0;
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schedule-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #6b7280;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #22c55e;
}

input:checked + .toggle-slider:before {
    transform: translateX(16px);
}

.toggle-label {
    font-size: 12px;
    color: #cbd5e1;
    cursor: pointer;
}

.schedule-times {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 6px;
    margin-top: 12px;
}

.time-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.time-input-group:last-of-type {
    margin-bottom: 12px;
}

.time-input-group label {
    font-size: 12px;
    color: #cbd5e1;
    min-width: 60px;
}

.time-input-group input {
    flex: 1;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #e2e8f0;
    font-size: 12px;
}

.time-input-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: #22c55e;
}

.btn-save-schedule {
    width: 100%;
    padding: 8px;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid #22c55e;
    border-radius: 4px;
    color: #22c55e;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save-schedule:hover {
    background: #22c55e;
    color: #0b0f1a;
}

/* STATUS INFO */
.vendor-status-info {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 12px;
}

.info-label {
    color: #94a3b8;
}

.info-value {
    color: #e2e8f0;
    font-weight: 600;
}

/* HISTÓRICO */
.vendor-status-history h4 {
    margin: 0 0 8px 0;
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.history-list {
    max-height: 150px;
    overflow-y: auto;
}

.history-item {
    padding: 8px;
    margin-bottom: 4px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    font-size: 11px;
    color: #cbd5e1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-status-badge {
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 10px;
}

.history-status-badge.online {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.history-status-badge.offline {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.history-time {
    color: #64748b;
    font-size: 10px;
}

/* MOBILE RESPONSIVO */
@media (max-width: 768px) {
    .vendor-status-section {
        margin: 12px -16px;
        padding: 12px;
        border-radius: 0;
    }

    .vendor-status-header h3 {
        font-size: 12px;
    }

    .vendor-status-toggle-btn {
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* style.css - ADICIONAR Grid Responsivo para Produtos */

/* Products Grid - Igual ao estoque */
.products-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

.product-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.05);
}

.product-card.product-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.product-image,
.product-image-placeholder {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-weight: 600;
}

.product-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.product-name {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
}

.product-description {
    margin: 0;
    font-size: 12px;
    color: #cbd5e1;
    line-clamp: 2;
}

.product-vendor {
    font-size: 11px;
    color: #94a3b8;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
    gap: 8px;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: #22c55e;
}

.product-stock {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.product-stock.in-stock {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.product-stock.out-of-stock {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.btn-add-cart {
    padding: 10px;
    background: #3b82f6;
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-add-cart:hover {
    background: #2563eb;
}

.btn-add-cart.disabled {
    background: #6b7280;
    cursor: not-allowed;
}

/* TABLET - Grid 2 colunas */
@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-image,
    .product-image-placeholder {
        height: 180px;
    }

    .product-name {
        font-size: 15px;
    }

    .product-price {
        font-size: 17px;
    }
}

/* PC - Grid 3-4 colunas */
@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-image,
    .product-image-placeholder {
        height: 200px;
    }

    .product-name {
        font-size: 16px;
    }

    .product-price {
        font-size: 18px;
    }
}

@media (min-width: 1440px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mobile mantém 1 coluna */

/* ========================================
   LEGENDA PRÓPRIA — TOP PRODUTOS (BI)
   Substitui a legenda nativa do Chart.js, que cortava
   texto/itens quando faltava altura (principalmente mobile).
   ======================================== */

.chart-legend-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #cbd5e1;
    padding: 4px 0;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-name {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.legend-value {
    flex-shrink: 0;
    color: #94a3b8;
    font-weight: 700;
    font-size: 11px;
}

/* MOBILE: fonte um pouco maior pra facilitar o toque/leitura */
@media (max-width: 768px) {
    .legend-item {
        font-size: 13px;
        padding: 6px 0;
    }
    .legend-value {
        font-size: 12px;
    }
}

/* ========================================
   FEEDBACK VISUAL — ADICIONAR AO CARRINHO
   Toast de confirmação + bounce no contador do carrinho +
   flash no botão clicado. Pensado mobile-first: toast fica
   acima da bottom nav no celular, e no canto inferior no desktop.
   ======================================== */

#cart-toast-container {
    position: fixed;
    left: 50%;
    bottom: calc(var(--bottom-nav-height) + 16px);
    transform: translateX(-50%);
    z-index: 5000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 420px;
    padding: 0 16px;
    pointer-events: none;
}

@media (min-width: 769px) {
    #cart-toast-container {
        bottom: 24px;
    }
}

.cart-toast {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 15, 26, 0.97);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #f1f5f9;
    font-size: 13px;
    font-weight: 700;
    padding: 12px 18px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(16px) scale(0.95);
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 100%;
}

.cart-toast-icon {
    color: #22c55e;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.cart-toast span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-toast-show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.cart-toast-hide {
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
}

@keyframes cartBump {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.5); }
    60%  { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.cart-bump {
    animation: cartBump 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-add-success {
    background: #22c55e !important;
    color: white !important;
}

@media (prefers-reduced-motion: reduce) {
    .cart-toast,
    .cart-bump {
        animation: none !important;
        transition: none !important;
    }
}

/* ========================================
   FILTRO DE PERÍODO — DASHBOARD BI
   ======================================== */

.bi-period-btn {
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.bi-period-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

.bi-period-btn-active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

@media (max-width: 768px) {
    .bi-period-btn {
        padding: 8px 12px;
        font-size: 11px;
    }
}

/* ========================================
   ✅ NOVO: SELO DE NOTIFICAÇÃO DE VENDA
   Aparece no botão BI (sidebar e bottom nav) quando chega uma venda
   nova via tempo real, e some quando o vendedor abre a aba BI.
   ======================================== */

#bi-nav-btn,
#bnav-bi,
#moderation-nav-btn,
#bnav-moderation,
#vendor-settings-nav-btn,
#bnav-vendor-settings {
    position: relative;
}

#bnav-vendor-settings .sale-badge {
    top: -2px;
    right: 14px;
}

.sale-badge {
    display: none;
    position: absolute;
    top: 6px;
    right: 10px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 900;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 0 0 2px #0b0f1a;
    animation: saleBadgePulse 1.5s ease-in-out infinite;
}

#bnav-bi .sale-badge {
    top: -2px;
    right: 14px;
}

#bnav-moderation .sale-badge {
    top: -2px;
    right: 14px;
}

/* ========================================
   ✅ NOVO: TOAST DE MODERAÇÃO DE PRODUTO
   Usa a mesma base visual do toast de carrinho/venda, com um
   estado extra "flagged" (borda vermelha) pra produto retido.
   ======================================== */
.mod-toast {
    border-color: rgba(59, 130, 246, 0.4);
}

.mod-toast-flagged {
    border-color: rgba(239, 68, 68, 0.5);
}

@keyframes saleBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
    .sale-badge { animation: none; }
}

/* ========================================
   ✅ REDESIGN v5.0 — IDENTIDADE VISUAL + ENGAJAMENTO
   Objetivo: tipografia com mais personalidade (Sora nos
   títulos + Inter no corpo), um segundo acento de cor em
   gradiente (azul → roxo → âmbar) pra sensação de
   "comunidade viva", selos de Novidade/Últimas Unidades na
   vitrine, entrada escalonada dos cards + zoom na imagem no
   hover, um convite visual pra rolar a tela logo abaixo do
   banner, e um botão flutuante de voltar ao topo — tudo
   pensado pra fazer a pessoa continuar rolando a vitrine.
   ======================================== */

:root {
    --font-display: 'Sora', 'Inter', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --accent-warm: #f59e0b;
    --accent-warm-dark: #d97706;
    --community-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 55%, #f59e0b 100%);
}

body { font-family: var(--font-body); }

h1, h2, h3, .font-black, .font-bold {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

/* ----------------------------------------
   Subtítulo da vitrine (embaixo do "Marketplace")
   ---------------------------------------- */
.market-subtitle {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-body);
    letter-spacing: 0;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

/* ----------------------------------------
   Convite visual pra rolar a página
   ---------------------------------------- */
.scroll-cue {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 14px 0 24px;
    animation: scrollCueFloat 1.8s ease-in-out infinite;
}
.scroll-cue i,
.scroll-cue svg { width: 16px; height: 16px; color: var(--accent-warm); flex-shrink: 0; }

@keyframes scrollCueFloat {
    0%, 100% { transform: translateY(0);  opacity: .6; }
    50%      { transform: translateY(5px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-cue { animation: none; }
}

/* ----------------------------------------
   Selos de produto — Novidade / Últimas Unidades
   ---------------------------------------- */
.product-badge-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.product-badge {
    font-size: 9.5px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.badge-new {
    background: var(--community-gradient);
    color: #fff;
}

.badge-urgent {
    background: linear-gradient(135deg, var(--accent-warm), #ef4444);
    color: #fff;
    animation: urgentPulse 1.6s ease-in-out infinite;
}

@keyframes urgentPulse {
    0%, 100% { filter: brightness(1); }
    50%      { filter: brightness(1.25); }
}

@media (prefers-reduced-motion: reduce) {
    .badge-urgent { animation: none; }
}

/* ----------------------------------------
   Cards da vitrine: entrada escalonada + zoom na imagem
   (usa a variável --i, definida inline pelo products.js,
   pra calcular o atraso de cada card na sequência)
   ---------------------------------------- */
#product-grid > div {
    animation: fadeInUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: calc(var(--i, 0) * 0.06s);
    overflow: hidden;
}

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

#product-grid img { transition: transform .5s cubic-bezier(0.16, 1, 0.3, 1); }
#product-grid > div:hover img { transform: scale(1.08); }

@media (prefers-reduced-motion: reduce) {
    #product-grid > div { animation: none; }
    #product-grid > div:hover img { transform: none; }
}

/* ----------------------------------------
   Banner de anúncio com brilho de borda em gradiente
   ---------------------------------------- */
#ads-hero { position: relative; }
#ads-hero::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: var(--community-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.55;
    pointer-events: none;
}

/* ----------------------------------------
   Categoria ativa ganha o gradiente da marca
   ---------------------------------------- */
#category-filter-bar button.bg-blue-600 {
    background: var(--community-gradient) !important;
    border-color: transparent !important;
}

/* ----------------------------------------
   Botão flutuante — Voltar ao topo
   ---------------------------------------- */
#back-to-top {
    position: fixed;
    right: 20px;
    bottom: calc(var(--bottom-nav-height) + 20px);
    z-index: 150;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: var(--community-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.45);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px) scale(0.9);
    transition: opacity .25s ease, transform .25s ease;
}
#back-to-top svg { width: 20px; height: 20px; }
#back-to-top.show {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
}
#back-to-top:hover { filter: brightness(1.1); }

@media (min-width: 769px) {
    #back-to-top { bottom: 24px; }
}

/* ----------------------------------------
   Classes que faltavam no tailwind.built.css
   (pré-compilado antes dessas classes existirem
   no projeto) — usadas no chip de expiração de
   pedido pendente, no BI.
   ---------------------------------------- */
.bg-orange-600\/20 { background-color: rgba(234, 88, 12, 0.2); }
.bg-slate-600\/30 { background-color: rgba(71, 85, 105, 0.3); }

/* ----------------------------------------
   Galeria de mídia do card de produto — rolagem
   horizontal nativa (toque), com bolinhas de
   posição. Vídeo usa os controles nativos do
   navegador (sem autoplay).
   ---------------------------------------- */
.product-gallery {
    position: relative;
}

.product-gallery-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    border-radius: 1rem;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
}
.product-gallery-track::-webkit-scrollbar { display: none; }

/* ✅ NOVO: enquanto a pessoa está arrastando com o mouse, desliga o
   "encaixe" automático (scroll-snap) — senão o navegador tenta puxar
   de volta pra foto mais próxima a cada pixel movido, travando o
   arraste. Volta a encaixar suave assim que solta o botão. */
.product-gallery-track.is-dragging {
    scroll-snap-type: none;
    cursor: grabbing;
    scroll-behavior: auto;
}

.product-gallery-item {
    flex: 0 0 100%;
    width: 100%;
    height: 11rem;
    object-fit: cover;
    scroll-snap-align: start;
    background: #1e293b;
    pointer-events: none;
}

video.product-gallery-item {
    object-fit: contain;
    background: #000;
    pointer-events: auto;
}

.product-gallery-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    padding: 3px 8px;
    background: rgba(0,0,0,0.35);
    border-radius: 999px;
    backdrop-filter: blur(2px);
}

.product-gallery-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transition: all .2s ease;
}

.product-gallery-dot.active {
    background: #fff;
    width: 14px;
    border-radius: 999px;
}

/* ----------------------------------------
   Preview de mídia no formulário de produto
   (até 5 fotos/vídeos, com botão de remover)
   ---------------------------------------- */
.media-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.media-tile {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.08);
}

.media-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-tile-video {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: #0f172a;
}

.media-tile-remove {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.media-tile-remove:hover { background: #ef4444; }

.media-tile-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #64748b;
    font-size: 11px;
    padding: 16px 0;
}

/* ----------------------------------------
   Selo "X vendidos" — prova social estilo
   Shopee/AliExpress/SheIn
   ---------------------------------------- */
.product-sold-count {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    color: #94a3b8;
}

/* ----------------------------------------
   Barra de busca — igual ao topo de qualquer
   grande marketplace (Shopee/AliExpress/SheIn
   sempre abrem com busca em destaque)
   ---------------------------------------- */
#market-search-bar {
    position: relative;
    display: flex;
    align-items: center;
}

#market-search-bar .market-search-icon {
    position: absolute;
    left: 18px;
    width: 18px;
    height: 18px;
    color: #64748b;
    pointer-events: none;
}

#market-search-input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    padding: 14px 44px;
    color: #e2e8f0;
    font-size: 14px;
    font-family: var(--font-body, inherit);
    transition: border-color .2s ease, background .2s ease;
}

#market-search-input::placeholder { color: #64748b; }

#market-search-input:focus {
    outline: none;
    border-color: var(--accent-warm, #3b82f6);
    background: rgba(255,255,255,0.08);
}

#market-search-clear {
    position: absolute;
    right: 14px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.1);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
}
#market-search-clear svg { width: 13px; height: 13px; }
#market-search-clear:hover { background: rgba(255,255,255,0.18); }

/* ----------------------------------------
   Chips de categoria com ícone — fileira de
   atalhos visuais, igual Shopee/AliExpress
   ---------------------------------------- */
.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.05);
    color: #94a3b8;
    transition: all .2s ease;
    white-space: nowrap;
}
.category-chip:hover { color: #fff; background: rgba(255,255,255,0.09); }
.category-chip-icon { font-size: 14px; line-height: 1; }

.category-chip-active {
    background: var(--community-gradient, #3b82f6) !important;
    border-color: transparent !important;
    color: #fff !important;
}

.category-chip-fav.category-chip-active {
    background: linear-gradient(135deg, #ef4444, #f59e0b) !important;
}

.category-chip-count {
    background: rgba(0,0,0,0.25);
    border-radius: 999px;
    padding: 1px 6px;
    font-size: 10px;
}

/* ----------------------------------------
   Botão de favoritar (coração) sobre a imagem
   do produto — clássico de app de compras
   ---------------------------------------- */
.product-fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(11,15,26,0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform .15s ease, background .2s ease, color .2s ease;
}
.product-fav-btn svg { width: 17px; height: 17px; }
.product-fav-btn:hover { transform: scale(1.1); filter: none; }
.product-fav-btn:active { transform: scale(0.92); }

.product-fav-btn.is-fav {
    color: #ef4444;
    background: rgba(11,15,26,0.75);
}
.product-fav-btn.is-fav svg { fill: #ef4444; }

/* ----------------------------------------
   ✅ FIX: BARRA DE CATEGORIAS — linha única
   com rolagem, em vez de quebrar linha.
   No celular, o próprio gesto de arrastar o
   dedo já rola a faixa (scroll nativo). No
   PC/notebook (mouse/trackpad), aparecem
   setinhas ◀ ▶ ao lado, que só mostram quando
   há mais categorias pra ver naquela direção.
   ---------------------------------------- */
.category-filter-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-filter-bar {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 2px;
}
.category-filter-bar::-webkit-scrollbar { display: none; }

.category-scroll-arrow {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(15, 23, 42, 0.7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    transition: background .2s ease, transform .15s ease;
}
.category-scroll-arrow:hover { background: rgba(15, 23, 42, 0.9); filter: none; }
.category-scroll-arrow:active { transform: scale(0.92); }
.category-scroll-arrow svg,
.category-scroll-arrow i { width: 18px; height: 18px; pointer-events: none; }
.category-scroll-arrow.is-hidden { display: none; }

/* No toque (celular/tablet), o gesto de arrastar já resolve — as
   setinhas ficam reservadas pra quem usa mouse/trackpad. */
@media (hover: none) and (pointer: coarse) {
    .category-scroll-arrow { display: none !important; }
}

/* ✅ NOVO: esmaecimento nas bordas — indica visualmente que existem
   mais categorias pra ver além do que já está na tela (essencial no
   celular, onde as setinhas ficam escondidas e o único jeito de saber
   que "tem mais" era descobrir por acaso arrastando o dedo). As
   classes has-more-left/has-more-right são ligadas pelo JS conforme a
   posição da rolagem, então o esmaecimento também some sozinho ao
   chegar no início/fim de verdade. */
.category-filter-bar.has-more-right {
    -webkit-mask-image: linear-gradient(to right, #000, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(to right, #000, #000 calc(100% - 28px), transparent 100%);
}
.category-filter-bar.has-more-left {
    -webkit-mask-image: linear-gradient(to left, #000, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(to left, #000, #000 calc(100% - 28px), transparent 100%);
}
.category-filter-bar.has-more-left.has-more-right {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent 100%);
}

/* ----------------------------------------
   ✅ NOVO: FAIXA DE LEMBRETE — CHAVE PIX
   Avisa o vendedor (assim que loga) que ele ainda não cadastrou a
   própria chave Pix, com atalho direto pra tela de cadastro. Fica um
   degrau abaixo do botão de tema (z-index) pra não tampar ele.
   ---------------------------------------- */
.pix-reminder-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 240;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    background: linear-gradient(90deg, #b45309, #ea580c);
    color: #fff;
    padding: 10px 50px 10px 16px;
    font-size: 12.5px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
    transform: translateY(-100%);
    transition: transform .3s ease;
}
.pix-reminder-banner.pix-reminder-show { transform: translateY(0); }
.pix-reminder-text { max-width: 640px; }
.pix-reminder-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

#pix-reminder-cta {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    font-weight: 900;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .02em;
    padding: 6px 14px;
    border-radius: 999px;
    white-space: nowrap;
}
#pix-reminder-cta:hover { background: rgba(255,255,255,0.25); }

#pix-reminder-dismiss {
    background: none;
    border: none;
    color: rgba(255,255,255,0.85);
    font-weight: 900;
    font-size: 14px;
    line-height: 1;
    padding: 4px;
}
#pix-reminder-dismiss:hover { color: #fff; }

@media (max-width: 640px) {
    .pix-reminder-banner { padding: 10px 16px; flex-direction: column; text-align: center; }
}

/* ----------------------------------------
   ✅ MELHORADO: SELO DE PREÇO POR ATACADO
   Aparece no card do produto quando o vendedor configurou desconto
   por quantidade mínima — agora com título + uma "pilula" por faixa,
   suportando quantas faixas o vendedor tiver criado (não só uma).
   ---------------------------------------- */
.product-bulk-badge {
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: 14px;
    padding: 10px 12px;
}

.product-bulk-badge-title {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #22d3ee;
    margin-bottom: 6px;
}

.product-bulk-badge-tiers {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.product-bulk-tier-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #a5f3fc;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.2);
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.product-bulk-tier-pill strong { color: #22d3ee; font-weight: 900; }

/* ----------------------------------------
   ✅ NOVO: TOAST "VOLTOU AO ESTOQUE"
   Mesma base visual do toast de carrinho/venda, com um acento verde
   pra reforçar a boa notícia.
   ---------------------------------------- */
.restock-toast {
    border-color: rgba(34, 197, 94, 0.45);
}

/* ----------------------------------------
   ✅ NOVO: TUTORIAL PASSO A PASSO (ONBOARDING)
   ---------------------------------------- */
.onboarding-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    transition: all .2s ease;
}
.onboarding-dot-active {
    background: var(--community-gradient, #3b82f6);
    width: 18px;
    border-radius: 999px;
}

.onboarding-help-btn {
    position: fixed;
    left: 20px;
    bottom: calc(var(--bottom-nav-height) + 20px);
    z-index: 150;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: #161b2c;
    border: 1px solid rgba(255,255,255,0.1);
    color: #fbbf24;
    font-size: 18px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.45);
    transition: transform .2s ease, filter .2s ease;
}
.onboarding-help-btn:hover { transform: scale(1.08); filter: none; }
.onboarding-help-btn:active { transform: scale(0.94); }

@media (min-width: 769px) {
    .onboarding-help-btn { bottom: 24px; }
}

/* ✅ NOVO (v6.8 ads.js): "❓" inline, ao lado de um título de seção —
   diferente do onboarding-help-btn (flutuante, tutorial geral), esse
   abre uma explicação curta só daquela tela específica. */
.inline-help-btn {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: rgba(251, 146, 60, 0.15);
    border: 1px solid rgba(251, 146, 60, 0.3);
    color: #fb923c;
    font-size: 13px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .15s ease, filter .15s ease;
}
.inline-help-btn:hover { transform: scale(1.1); filter: brightness(1.2); }
.inline-help-btn:active { transform: scale(0.94); }

/* ----------------------------------------
   ✅ NOVO: CARTÃO DE MISSÕES (gamificação leve)
   ---------------------------------------- */
.onboarding-missions-widget {
    position: fixed;
    left: 20px;
    bottom: calc(var(--bottom-nav-height) + 76px);
    z-index: 150;
    width: 240px;
    max-width: calc(100vw - 40px);
    background: #161b2c;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.45);
    overflow: hidden;
}

@media (min-width: 769px) {
    .onboarding-missions-widget { bottom: 80px; }
}

.onboarding-missions-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    background: none;
    border: none;
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 800;
    text-align: left;
}
.onboarding-missions-close {
    color: #64748b;
    font-weight: 900;
    padding: 2px 4px;
}
.onboarding-missions-close:hover { color: #f87171; }

.onboarding-missions-body {
    padding: 0 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.onboarding-mission-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: #94a3b8;
    font-weight: 600;
    line-height: 1.3;
}
.onboarding-mission-item.is-done {
    color: #4ade80;
    text-decoration: line-through;
    text-decoration-color: rgba(74, 222, 128, 0.4);
}
.onboarding-mission-check { flex-shrink: 0; }

.onboarding-missions-done {
    font-size: 11.5px;
    color: #4ade80;
    font-weight: 700;
    text-align: center;
    padding: 4px 0;
}

/* ========================================
   ✅ NOVO: FOLHA DE ESTILO PRÓPRIA PRA IMPRESSÃO
   Corrige dois problemas de uma vez:
   1) "7 páginas repetidas" — sem isso, o navegador tentava imprimir a
      TELA INTEIRA por trás do comprovante (menu lateral, grade de
      produtos, outros modais), não só o cartão.
   2) Texto ilegível — o sistema é pensado pra tela ESCURA (texto claro
      em fundo escuro). No papel branco, esse texto claro seria quase
      invisível. Aqui, forçamos preto sobre branco só na área marcada
      com a classe .print-area (o comprovante de compra, por exemplo).
   Como usar em qualquer novo cartão "imprimível": marque o elemento
   com class="print-area" e pronto — o resto do app some sozinho.
   ======================================== */
@media print {
    body * {
        visibility: hidden !important;
    }

    .print-area,
    .print-area * {
        visibility: visible !important;
    }

    .print-area {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
        margin: 0 !important;
        padding: 16px !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        transform: none !important;
        background: #ffffff !important;
    }

    .print-area * {
        color: #111827 !important;
        background: transparent !important;
        box-shadow: none !important;
        text-shadow: none !important;
        border-color: #d1d5db !important;
    }

    .no-print {
        display: none !important;
    }
}
/* ========================================
   ✅ NOVO: PAINEL ADMIN — CARTÃO COMPACTO COM MINIATURA
   Substitui a lista empilhada (1 produto por linha, ocupando muita
   altura) por um grid de cartões compactos com foto em miniatura —
   cabem bem mais produtos na tela de uma vez. Container é um grid
   Tailwind (#admin-list no index.html); aqui só o estilo do cartão.
   ======================================== */

.admin-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.admin-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    filter: none;
}

/* ✅ NOVO: cartão de produto bloqueado pela moderação — borda vermelha
   + banner explicando o motivo, tanto no Admin quanto no Estoque do
   próprio vendedor (antes o produto só sumia sem explicação nenhuma). */
.admin-card.admin-card-is-blocked {
    border-color: rgba(239, 68, 68, 0.4);
}

.admin-card-blocked {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    font-size: 11px;
    font-weight: 700;
    padding: 8px 10px;
    border-radius: 10px;
    line-height: 1.4;
}

.admin-card-top {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.admin-card-thumb {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    background: #1e293b;
}

.admin-card-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    line-height: 1.3;
    text-align: center;
    color: #64748b;
    font-weight: 700;
    padding: 2px;
}

.admin-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-card-name {
    font-weight: 700;
    font-size: 13.5px;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-card-badge {
    align-self: flex-start;
    font-size: 9.5px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
}

.admin-card-vendor {
    font-size: 11px;
    color: #fbbf24;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    flex-wrap: wrap;
}

.admin-card-price {
    font-weight: 900;
    color: #fff;
    font-size: 14px;
}

.admin-card-stock {
    font-weight: 900;
    font-size: 11px;
    text-align: right;
}

.admin-card-bulk {
    font-size: 11px;
    font-weight: 600;
    color: #22d3ee;
}

/* ✅ NOVO: banner de "produto bloqueado pela moderação" — mostra o
   motivo exato, tanto no cartão do Admin quanto no cartão do Estoque
   do próprio vendedor (antes o produto simplesmente sumia da tela,
   sem ninguém saber por quê). */
.admin-card-is-blocked {
    border-color: rgba(239, 68, 68, 0.4) !important;
}

.admin-card-blocked,
.seller-card-blocked {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    font-size: 11px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 12px;
    line-height: 1.5;
}

.admin-card-actions {
    display: flex;
    gap: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 10px;
}

.admin-card-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.admin-card-btn-view { color: #22c55e; }
.admin-card-btn-view:hover { background: rgba(34, 197, 94, 0.1); filter: none; }

.admin-card-btn-edit { color: #3b82f6; }
.admin-card-btn-edit:hover { background: rgba(59, 130, 246, 0.1); filter: none; }

.admin-card-btn-delete { color: #ef4444; }
.admin-card-btn-delete:hover { background: rgba(239, 68, 68, 0.1); filter: none; }

/* Tema claro — o cartão herda as regras gerais de .bg-slate-900\/50 e
   .border-white\/5 do theme.css? Não: aqui são classes CSS próprias
   (não utilitários Tailwind), então precisam da própria regra. */
html[data-theme="light"] .admin-card {
    background: var(--lt-bg-surface, #ffffff);
    border-color: var(--lt-border, #e2e8f0);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.07);
}
html[data-theme="light"] .admin-card-name { color: var(--lt-text-primary, #0f172a); }
html[data-theme="light"] .admin-card-price { color: var(--lt-text-primary, #0f172a); }
html[data-theme="light"] .admin-card-actions { border-top-color: var(--lt-border, #e2e8f0); }

/* ========================================
   ✅ NOVO: MODAL DE PRÉ-VISUALIZAÇÃO DO PRODUTO
   Foto/vídeo em tamanho grande + setas de navegação da galeria,
   usado pelo botão 👁️ do painel Admin/Estoque.
   ======================================== */

.preview-media-wrap {
    position: relative;
    width: 100%;
    height: 260px;
    background: #1e293b;
    border-radius: 40px 40px 0 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

.preview-media-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.preview-media-empty {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.preview-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.preview-nav-btn:hover { background: rgba(0, 0, 0, 0.75); filter: none; }
.preview-nav-btn svg { width: 18px; height: 18px; pointer-events: none; }
.preview-nav-prev { left: 12px; }
.preview-nav-next { right: 12px; }

.preview-media-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    font-size: 10px;
    font-weight: 900;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
}

.preview-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.preview-close-btn:hover { background: rgba(239, 68, 68, 0.85); filter: none; }

/* ========================================
   ✅ NOVO: SKELETON SCREENS (efeito de carregamento)
   Genérico (.skeleton + .skeleton-line, usado nos blocos do BI) e o
   específico da vitrine (.skeleton-card/.skeleton-block/.skeleton-img
   — já eram usados pelo products.js, mas nunca tiveram estilo próprio
   aqui, então ficavam praticamente invisíveis).
   ======================================== */

@keyframes skeleton-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.skeleton,
.skeleton-block {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    animation: skeleton-pulse 1.4s ease-in-out infinite;
}

.skeleton-line {
    height: 14px;
    margin-bottom: 8px;
}
.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 80%; }
.skeleton-line.full { width: 100%; }

.skeleton-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 2rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.skeleton-img {
    width: 100%;
    height: 11rem;
    border-radius: 1rem;
}

html[data-theme="light"] .skeleton,
html[data-theme="light"] .skeleton-block {
    background: rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .skeleton-card {
    background: var(--lt-bg-surface, #ffffff);
    border-color: var(--lt-border, #e2e8f0);
}

@media (prefers-reduced-motion: reduce) {
    .skeleton, .skeleton-block { animation: none; }
}

/* ========================================
   ✅ NOVO: BOTÃO FLUTUANTE DO WHATSAPP
   Só aparece na aba Loja (controlado via JS em navigation.js) —
   posicionado acima do botão "voltar ao topo" pra não sobrepor.
   ======================================== */
.whatsapp-fab {
    position: fixed;
    right: 20px;
    bottom: calc(var(--bottom-nav-height) + 80px);
    z-index: 150;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25D366;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    text-decoration: none;
    transition: transform 0.15s ease, filter 0.2s ease;
}
.whatsapp-fab.show { display: flex; }
.whatsapp-fab:hover { transform: scale(1.08); filter: none; }
.whatsapp-fab svg { width: 28px; height: 28px; }

@media (min-width: 769px) {
    .whatsapp-fab { bottom: 84px; }
}

/* ========================================
   ✅ NOVO (pwa.js v3.0): BOTÃO FLUTUANTE "📲 INSTALAR APP"
   Só aparece quando o navegador avisa que dá pra instalar
   (beforeinstallprompt) — empilhado acima do voltar-ao-topo e do
   WhatsApp, mesmo lado (direita), mesmo ritmo de espaçamento.
   ======================================== */
.pwa-install-btn {
    position: fixed;
    right: 20px;
    bottom: calc(var(--bottom-nav-height) + 140px);
    z-index: 150;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: var(--community-gradient, #3b82f6);
    color: #fff;
    font-size: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.45);
    cursor: pointer;
    transition: transform .2s ease, filter .2s ease;
}
.pwa-install-btn.show { display: flex; }
.pwa-install-btn:hover { transform: scale(1.08); filter: none; }
.pwa-install-btn:active { transform: scale(0.94); }

@media (min-width: 769px) {
    .pwa-install-btn { bottom: 144px; }
}

/* ========================================
   ✅ NOVO: POP-UP DE BOAS-VINDAS (Loja)
   Substitui o antigo bloco fixo acima dos anúncios — agora some da
   tela e vira um cartão flutuante que surge sozinho depois de alguns
   segundos, dispensável, sem atrapalhar a primeira impressão.
   ======================================== */
.home-hero-popup {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 20px);
    z-index: 260;
    width: calc(100% - 32px);
    max-width: 420px;
    background: #161b2c;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.home-hero-popup.show {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.home-hero-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-weight: 900;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.home-hero-popup-close:hover { background: rgba(255, 255, 255, 0.15); color: #fff; filter: none; }

.home-hero-popup-title {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
    padding-right: 24px;
    line-height: 1.3;
}

.home-hero-popup-text {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 16px;
    line-height: 1.5;
}

.home-hero-popup-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.home-hero-popup-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 13px;
    text-align: center;
    border: none;
    color: #fff;
    transition: filter 0.2s ease, transform 0.15s ease;
}
.home-hero-popup-btn:active { transform: scale(0.97); }
.home-hero-popup-btn-primary { background: #3b82f6; }
.home-hero-popup-btn-primary:hover { background: #2563eb; }
.home-hero-popup-btn-secondary { background: #22c55e; }
.home-hero-popup-btn-secondary:hover { background: #16a34a; }

@media (max-width: 768px) {
    .home-hero-popup { bottom: calc(var(--bottom-nav-height) + 16px); }
}

html[data-theme="light"] .home-hero-popup {
    background: var(--lt-bg-surface, #ffffff);
    border-color: var(--lt-border, #e2e8f0);
}
html[data-theme="light"] .home-hero-popup-title { color: var(--lt-text-primary, #0f172a); }

/* ========================================
   ✅ AJUSTE (auditoria) — BARRA LATERAL E BOTÕES FLUTUANTES
   1) Com muitas abas (Admin vê 9), a lista passava da altura da tela
      e o botão da conta ("RG") no rodapé era cortado. Agora só a lista
      de abas rola; carrinho e conta ficam sempre inteiros.
   2) O "❓" do tutorial e o cartão de Missões ficavam a 20px da
      esquerda — em cima da barra lateral no computador. Agora ficam
      logo AO LADO dela (no celular não muda: lá não tem barra lateral).
   ======================================== */
aside.app-sidebar {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
}
aside.app-sidebar > nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
}
aside.app-sidebar > nav::-webkit-scrollbar { width: 4px; }
aside.app-sidebar > div:first-child,
aside.app-sidebar > div.mt-auto { flex-shrink: 0; }
aside.app-sidebar > div.mt-auto { padding-top: 8px; }

@media (min-width: 769px) and (max-height: 820px) {
    aside.app-sidebar > div:first-child { margin-bottom: 1rem !important; }
    aside.app-sidebar > nav > button { padding-top: 0.6rem; padding-bottom: 0.6rem; }
}

@media (min-width: 769px) {
    .onboarding-help-btn,
    .onboarding-missions-widget { left: calc(72px + 20px); }
}
@media (min-width: 1024px) {
    .onboarding-help-btn,
    .onboarding-missions-widget { left: calc(256px + 20px); }
}

/* Celular: com muitas abas (Admin), a barra de baixo rola pro lado em
   vez de espremer os nomes um em cima do outro. */
@media (max-width: 768px) {
    #bottom-nav {
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        scrollbar-width: none;
    }
    #bottom-nav::-webkit-scrollbar { display: none; }
    #bottom-nav .bnav-btn {
        flex: 1 0 64px;
        white-space: nowrap;
    }
}

/* Cartão de Missões e "❓" ficam por baixo das janelas (tutorial, login…) */
.onboarding-missions-widget,
.onboarding-help-btn { z-index: 140; }

/* Janela do tutorial sempre acima dos botões flutuantes (a classe
   z-[150] do onboarding.js não existe no Tailwind compilado) */
#onboarding-modal { z-index: 300; }


/* ========================================
   AJUSTES QUE FICAVAM DENTRO DO index.html
   ======================================== */
    #ad-form-text textarea { font-family: 'Inter', sans-serif; }
    #preview-title { word-break: break-word; }
    #preview-text  { word-break: break-word; white-space: pre-wrap; }

    #logout-btn {
        min-height: 56px;
        align-items: center;
    }
    #logout-btn:hover {
        background: rgba(239,68,68,0.1);
        border-color: rgba(239,68,68,0.3);
    }


/* ===== Olhinho de mostrar/ocultar senha ===== */
.pw-wrap { position: relative; width: 100%; }
.pw-wrap .pw-input { padding-right: 3.25rem !important; }
.pw-toggle {
    position: absolute; top: 50%; right: 0.75rem; transform: translateY(-50%);
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border-radius: 10px; color: #94a3b8; background: transparent; border: none; cursor: pointer;
    transition: color .15s, background .15s;
}
.pw-toggle:hover, .pw-toggle:focus-visible { color: #e2e8f0; background: rgba(148,163,184,.15); outline: none; }
html[data-theme="light"] .pw-toggle { color: #64748b; }
html[data-theme="light"] .pw-toggle:hover, html[data-theme="light"] .pw-toggle:focus-visible { color: #0f172a; background: #e2e8f0; }


/* ===== Chaves Pix do vendedor ===== */
.pix-intro { font-size: 14px; line-height: 1.5; color: #94a3b8; margin: 0 0 16px; }
.pix-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
.pix-card { background: rgba(15,23,42,.6); border: 1px solid rgba(148,163,184,.2); border-radius: 18px; padding: 16px; }
.pix-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pix-card-title { font-weight: 900; font-size: 15px; color: #fff; }
.pix-card-remove { font-size: 13px; font-weight: 700; color: #f87171; background: rgba(239,68,68,.1);
    border: none; border-radius: 10px; padding: 7px 12px; cursor: pointer; }
.pix-card-remove:hover { background: rgba(239,68,68,.2); }
.pix-field-label { display: block; font-size: 13px; font-weight: 800; color: #cbd5e1; margin: 10px 0 6px; }
.pix-field-label span { font-weight: 500; color: #64748b; }
.pix-input { width: 100%; box-sizing: border-box; font-size: 16px; padding: 14px 16px; border-radius: 14px;
    background: #0f172a; color: #fff; border: 2px solid rgba(148,163,184,.25); outline: none; transition: border-color .15s; }
.pix-input:focus { border-color: #22c55e; }
.pix-input-key { font-size: 17px; font-weight: 700; letter-spacing: .02em; }
.pix-type { min-height: 18px; font-size: 13px; font-weight: 700; color: #86efac; margin-top: 6px; }
.pix-add-btn { width: 100%; padding: 14px; margin-bottom: 12px; border-radius: 14px; font-size: 15px; font-weight: 800;
    color: #22c55e; background: transparent; border: 2px dashed rgba(34,197,94,.5); cursor: pointer; }
.pix-add-btn:hover { background: rgba(34,197,94,.08); }
.pix-save-btn { width: 100%; padding: 16px; border-radius: 14px; font-size: 16px; font-weight: 900; color: #fff;
    background: #16a34a; border: none; cursor: pointer; }
.pix-save-btn:hover { background: #15803d; }
.pix-save-btn:disabled { opacity: .6; }
html[data-theme="light"] .pix-intro { color: #475569; }
html[data-theme="light"] .pix-card { background: #f8fafc; border-color: #e2e8f0; }
html[data-theme="light"] .pix-card-title { color: #0f172a; }
html[data-theme="light"] .pix-field-label { color: #334155; }
html[data-theme="light"] .pix-field-label span { color: #94a3b8; }
html[data-theme="light"] .pix-input { background: #fff; color: #0f172a; border-color: #cbd5e1; }
html[data-theme="light"] .pix-input:focus { border-color: #16a34a; }
html[data-theme="light"] .pix-type { color: #15803d; }
.pix-type.warn { color: #fbbf24; }
html[data-theme="light"] .pix-type.warn { color: #b45309; }


/* ===== Barra de baixo: dica de arrastar pro lado ===== */
@media (max-width: 768px) {
    #bottom-nav.bnav-overflow .bnav-btn { flex: 0 0 var(--bnav-btn-w, 64px); }
}
.bnav-fade {
    position: fixed; bottom: 0; z-index: 201; width: 40px;
    height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
    display: none; align-items: center; pointer-events: none;
    opacity: 0; transition: opacity .25s;
}
.bnav-fade span {
    font-size: 26px; font-weight: 900; line-height: 1; color: #60a5fa;
    margin-bottom: env(safe-area-inset-bottom);
    animation: bnav-arrow 1.4s ease-in-out infinite;
}
.bnav-fade-right { right: 0; justify-content: flex-end; padding-right: 3px;
    background: linear-gradient(to right, rgba(11,15,26,0), rgba(11,15,26,.95) 70%); }
.bnav-fade-left { left: 0; justify-content: flex-start; padding-left: 3px;
    background: linear-gradient(to left, rgba(11,15,26,0), rgba(11,15,26,.95) 70%); }
.bnav-fade-left span { animation-name: bnav-arrow-left; }
@keyframes bnav-arrow { 0%,100% { transform: translateX(0); } 50% { transform: translateX(3px); } }
@keyframes bnav-arrow-left { 0%,100% { transform: translateX(0); } 50% { transform: translateX(-3px); } }
@media (max-width: 768px) {
    .bnav-fade { display: flex; }
    .bnav-fade.show { opacity: 1; }
}
html[data-theme="light"] .bnav-fade-right { background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,.97) 70%); }
html[data-theme="light"] .bnav-fade-left { background: linear-gradient(to left, rgba(255,255,255,0), rgba(255,255,255,.97) 70%); }
html[data-theme="light"] .bnav-fade span { color: #2563eb; }
@media (prefers-reduced-motion: reduce) { .bnav-fade span { animation: none; } }


/* Pré-visualização do produto: área maior e foto inteira (sem cortar) */
.preview-media-wrap { height: clamp(280px, 58vh, 480px); background: #0f172a; }
.preview-media-img { object-fit: contain; }
html[data-theme="light"] .preview-media-wrap { background: #f1f5f9; }
#preview-rotate-btn { height: 38px !important; padding: 0 14px !important; font-size: 14px !important; background: rgba(15,23,42,.8) !important; }


/* ===== Busca: fixa no topo ao rolar + vendedores encontrados ===== */
main { overflow-x: clip !important; min-width: 0; }   /* "hidden" impedia o position: sticky */
#market-search-bar {
    position: sticky; top: 0; z-index: 120;
    margin: -8px -8px 24px; padding: 8px;
    background: rgba(11,15,26,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-radius: 0 0 20px 20px;
}
#market-search-bar .market-search-icon { left: 26px; width: 20px; height: 20px; color: #60a5fa; }
#market-search-input {
    font-size: 16px; padding: 16px 48px 16px 52px;
    border: 2px solid rgba(96,165,250,.35); background: rgba(255,255,255,.06);
}
#market-search-input::-webkit-search-cancel-button { display: none; }
#market-search-clear { right: 22px; width: 28px; height: 28px; }
html[data-theme="light"] #market-search-bar { background: rgba(248,250,252,.94); }
html[data-theme="light"] #market-search-input { border-color: #bfdbfe !important; }

#search-vendor-bar { margin: 0 0 18px; }
#search-vendor-bar.hidden { display: none; }
.svb-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #94a3b8; margin-bottom: 8px; }
.svb-chips { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.svb-chips::-webkit-scrollbar { display: none; }
.svb-chip { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px;
    background: rgba(96,165,250,.1); border: 1px solid rgba(96,165,250,.35); color: #e2e8f0; cursor: pointer; }
.svb-chip:hover { background: rgba(96,165,250,.2); }
.svb-avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg,#3b82f6,#8b5cf6); color: #fff; font-weight: 900; font-size: 14px; }
.svb-name { font-weight: 800; font-size: 14px; white-space: nowrap; }
.svb-count { font-size: 12px; color: #94a3b8; white-space: nowrap; }
.svb-active { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
    padding: 12px 14px; border-radius: 16px; background: rgba(96,165,250,.12); border: 1px solid rgba(96,165,250,.35);
    color: #e2e8f0; font-size: 15px; }
.svb-active button { font-size: 13px; font-weight: 800; color: #fff; background: #2563eb; border: none; border-radius: 999px; padding: 8px 14px; cursor: pointer; }
html[data-theme="light"] .svb-chip, html[data-theme="light"] .svb-active { background: #eff6ff; border-color: #bfdbfe; color: #0f172a; }
html[data-theme="light"] .svb-count, html[data-theme="light"] .svb-label { color: #64748b; }
.vendor-link { background: none; border: none; padding: 0; text-align: left; cursor: pointer; max-width: 100%; }
.vendor-link u { text-underline-offset: 2px; }
/* não ficar embaixo do botão de tema (canto superior direito) */
#market-search-bar { padding-right: 64px; }
#market-search-clear { right: 78px; }
