:root {
  --onx-black: #11110F;
  --onx-black-2: #1C1B18;
  --onx-beige: #E9DFCF;
  --onx-cream: #F7F3EC;
  --onx-champagne: #B9A582;
  --onx-white: #FFFFFF;

  --onx-radius: 16px;
  --onx-border: 1px solid rgba(17, 17, 15, 0.05);

  /* ---------- Claymorphismo: sombra dupla (clara + escura) simulando luz
     vindo de cima-esquerda sobre uma superfície de "massinha" fosca. ---------- */
  --onx-clay-surface: linear-gradient(150deg, #FFFFFF 0%, #F1E9D8 100%);
  --onx-clay-radius-lg: 26px;
  --onx-clay-radius-md: 18px;
  --onx-clay-radius-sm: 14px;
  --onx-clay-shadow: 9px 9px 20px rgba(150, 120, 70, 0.20), -7px -7px 16px rgba(255, 255, 255, 0.9);
  --onx-clay-shadow-sm: 5px 5px 12px rgba(150, 120, 70, 0.18), -4px -4px 10px rgba(255, 255, 255, 0.85);
  --onx-clay-inset: inset 3px 3px 7px rgba(150, 120, 70, 0.14), inset -3px -3px 7px rgba(255, 255, 255, 0.7);
  --onx-clay-dark-shadow: 7px 7px 16px rgba(17, 17, 15, 0.32), -4px -4px 10px rgba(255, 255, 255, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.12);
}

* { box-sizing: border-box; }

body {
  background: var(--onx-cream);
  color: var(--onx-black);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
}

a { color: inherit; }

/* ---------- Layout do painel (mobile-first) ---------- */
/* Base = celular: sidebar fica fora da tela (off-canvas) e a topbar assume a navegação. */
.onx-app {
  display: flex;
  min-height: 100vh;
}

.onx-sidebar {
  width: min(250px, 82vw);
  background: var(--onx-black);
  color: var(--onx-beige);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1030;
  transform: translateX(-100%);
  transition: transform 0.2s ease;
}

.onx-sidebar.open {
  transform: translateX(0);
}

.onx-sidebar-brand {
  padding: 14px 24px 10px;
  padding-top: calc(14px + env(safe-area-inset-top));
  padding-left: calc(24px + env(safe-area-inset-left));
  border-bottom: 2px solid rgba(185, 165, 130, 0.45);
}

.onx-brand-logo {
  display: block;
  width: 190px; /* celular: logo deitada */
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .onx-brand-logo { width: 96px; } /* computador: logo em pé */
}

.onx-topbar-logo {
  height: 42px;
  width: auto;
}

.onx-login-logo {
  display: block;
  width: 250px; /* celular: logo deitada */
  max-width: 100%;
  height: auto;
  margin: 0 auto 24px;
}

@media (min-width: 992px) {
  .onx-login-logo { width: 190px; } /* computador: logo em pé */
}

.onx-sidebar-brand .onx-logo {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: var(--onx-white);
  margin: 0;
}

.onx-sidebar-brand .onx-sublogo {
  font-size: 0.72rem;
  color: var(--onx-champagne);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.onx-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.onx-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--onx-radius);
  color: var(--onx-beige);
  text-decoration: none;
  font-size: 0.92rem;
  margin-bottom: 2px;
  transition: background 0.15s ease, color 0.15s ease;
}

.onx-nav a:hover {
  background: rgba(233, 223, 207, 0.08);
  color: var(--onx-white);
}

.onx-nav a.active {
  background: var(--onx-champagne);
  color: var(--onx-black);
  font-weight: 600;
}

.onx-nav a i { font-size: 1.05rem; width: 20px; text-align: center; }

.onx-sidebar-footer {
  padding: 14px 12px 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  padding-left: calc(12px + env(safe-area-inset-left));
  border-top: 1px solid rgba(233, 223, 207, 0.12);
}

.onx-main {
  margin-left: 0;
  flex: 1;
  min-width: 0;
  padding: 76px 16px 48px;
  /* iPhones com notch/Dynamic Island ou home indicator: evita que o conteúdo
     fique colado nas bordas quando o app roda em tela cheia (ex.: adicionado
     à tela de início) ou em paisagem, onde a barra de status invade a lateral. */
  padding-left: calc(16px + env(safe-area-inset-left));
  padding-right: calc(16px + env(safe-area-inset-right));
  padding-bottom: calc(48px + env(safe-area-inset-bottom));
}

/* position:fixed em vez de sticky: .onx-topbar é irmã de .onx-sidebar dentro do
   .onx-app (flex em linha), então sticky a deixaria como item estreito nessa
   linha. fixed a tira do fluxo e garante a barra inteira no topo da viewport. */
.onx-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--onx-black);
  color: var(--onx-white);
  padding: 14px 16px;
  padding-top: calc(14px + env(safe-area-inset-top));
  padding-left: calc(16px + env(safe-area-inset-left));
  padding-right: calc(16px + env(safe-area-inset-right));
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1020;
}

.onx-topbar .btn-menu {
  background: transparent;
  border: none;
  color: var(--onx-white);
  font-size: 1.4rem;
  padding: 6px 10px;
  line-height: 1;
}

.onx-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 15, 0.5);
  z-index: 1025;
}

.onx-sidebar-backdrop.show {
  display: block;
}

/* iOS Safari: um elemento position:fixed (a topbar) somado a um modal também
   fixed no mesmo viewport faz o WebKit "engasgar" o touch-scroll do conteúdo
   rolável dentro do modal (o toque não chega a percorrer o modal-body). Some
   com a topbar enquanto qualquer modal do Bootstrap estiver aberto — ele já
   marca <body class="modal-open"> sozinho, então isso não exige JS extra. */
body.modal-open .onx-topbar {
  display: none;
}

.modal-body,
.modal-dialog-scrollable .modal-content {
  -webkit-overflow-scrolling: touch;
}

/* Modais cujo <form> embrulha header+body+footer (produtos, fornecedores,
   estoque, clientes, despesas): <form> é display:block por padrão, então
   quebra o flex column que o Bootstrap usa pra encolher .modal-body e dar
   rolagem interna — o conteúdo que não cabe (inclusive o botão "Salvar")
   fica cortado sem barra de rolagem nenhuma no mobile. O <form> precisa
   herdar o mesmo comportamento flex que .modal-content teria sem ele. */
.modal-content > form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

/* Bootstrap mede a altura do modal rolável em duas camadas:
   .modal-dialog-scrollable (height, absoluto) e .modal-content (max-height,
   relativo ao pai). Se só uma das duas usar dvh, elas ficam com bases
   diferentes e o conteúdo mais alto (ex.: o formulário de produto, com mais
   campos que os outros) fica cortado sem rolar até o fim no Safari iOS,
   onde 100vh é medido contra a tela cheia, maior que a área visível com a
   barra de endereço. Corrigindo as duas juntas, com a mesma unidade. */
@supports (height: 100dvh) {
  .modal-dialog-scrollable {
    height: calc(100dvh - 1rem);
  }
  .modal-dialog-scrollable .modal-content {
    max-height: 100%;
  }
}

/* A partir daqui (tablet/desktop) a sidebar fica sempre visível e a topbar some. */
@media (min-width: 992px) {
  .onx-sidebar {
    width: 250px;
    transform: none;
  }
  .onx-main {
    margin-left: 250px;
    padding: 28px 32px 60px;
  }
  .onx-topbar {
    display: none;
  }
  .onx-sidebar-backdrop {
    display: none !important;
  }
}

/* ---------- Página de login ---------- */
.onx-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--onx-black);
  padding: 20px;
  padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}

@supports (height: 100dvh) {
  .onx-login-page { min-height: 100dvh; }
}

.onx-login-card {
  background: var(--onx-clay-surface);
  border-radius: 32px;
  padding: 40px 32px;
  width: 100%;
  max-width: 380px;
  box-shadow: 14px 14px 32px rgba(0, 0, 0, 0.35), -6px -6px 20px rgba(255, 255, 255, 0.06);
  text-align: center;
}

.onx-login-card .onx-logo {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.8rem;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

.onx-login-card .onx-sublogo {
  color: var(--onx-champagne);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
  display: block;
}

/* ---------- Componentes reutilizáveis ---------- */
.onx-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.onx-page-header h1 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

@media (min-width: 576px) {
  .onx-page-header h1 { font-size: 1.4rem; }
}

.onx-page-header p {
  color: #6b6a63;
  margin: 2px 0 0;
  font-size: 0.88rem;
}

.card.onx-card {
  background: var(--onx-clay-surface);
  border: none;
  border-radius: var(--onx-clay-radius-lg);
  box-shadow: var(--onx-clay-shadow);
}

.onx-stat {
  background: var(--onx-clay-surface);
  border: none;
  border-radius: var(--onx-clay-radius-lg);
  box-shadow: var(--onx-clay-shadow);
  padding: 18px 20px;
  height: 100%;
}

.onx-stat .onx-stat-label {
  font-size: 0.78rem;
  color: #6b6a63;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.onx-stat .onx-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--onx-black);
}

@media (min-width: 576px) {
  .onx-stat .onx-stat-value { font-size: 1.5rem; }
}

.onx-stat .onx-stat-sub {
  font-size: 0.76rem;
  color: #6f6e67;
  margin-top: 4px;
}

.table-onx {
  background: var(--onx-white);
}

.table-onx thead th {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b6a63;
  border-bottom-width: 1px;
  white-space: nowrap;
}

.table-onx td { vertical-align: middle; }

.badge-onx-normal { background: #e5f1e6; color: #2e6b34; }
.badge-onx-baixo { background: #fdf1de; color: #96660c; }
.badge-onx-esgotado { background: #fbe4e4; color: #a33232; }
.badge-onx-ativo { background: #e5f1e6; color: #2e6b34; }
.badge-onx-inativo { background: #ececea; color: #6b6a63; }
.badge-onx-confirmada { background: #e5f1e6; color: #2e6b34; }
.badge-onx-cancelada { background: #fbe4e4; color: #a33232; }
.badge-onx-pendente { background: #fdf1de; color: #96660c; }
.onx-dims-title {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b6a63;
  border-top: 1px solid rgba(17, 17, 15, 0.08);
  padding-top: 12px;
}

.badge-onx-preparo { background: #ece6f7; color: #5b3c99; }
.badge-onx-enviado { background: #e2eefb; color: #1f5a9a; }
.onx-timeline { list-style: none; padding: 0; margin: 0; font-size: 0.86rem; }
.onx-timeline li { position: relative; padding: 0 0 12px 18px; border-left: 2px solid #ece6ea; margin-left: 5px; }
.onx-timeline li::before { content: ''; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #b9a582; }
.onx-timeline li:last-child { border-left-color: transparent; }
.onx-timeline small { color: #6b6a63; }
.badge-onx-site { background: #ececea; color: #11110f; }
.badge-onx-whatsapp { background: #e3f4ea; color: #1d6b40; }

[class*="badge-onx-"] {
  box-shadow: 2px 2px 6px rgba(17, 17, 15, 0.08);
}

.onx-empty-state {
  text-align: center;
  padding: 50px 20px;
  color: #6f6e67;
}

.onx-empty-state i { font-size: 2.2rem; margin-bottom: 10px; display: block; color: var(--onx-champagne); }

.btn-onx-primary {
  background: linear-gradient(150deg, #2a2925, #0e0e0c);
  color: var(--onx-white);
  border: none;
  border-radius: var(--onx-clay-radius-md);
  box-shadow: var(--onx-clay-dark-shadow);
}

.btn-onx-primary:hover {
  background: linear-gradient(150deg, #34332e, #171613);
  color: var(--onx-white);
}

.btn-onx-outline {
  background: var(--onx-clay-surface);
  border: 1px solid rgba(17, 17, 15, 0.1);
  color: var(--onx-black);
  border-radius: var(--onx-clay-radius-md);
  box-shadow: var(--onx-clay-shadow-sm);
}

.btn-onx-outline:hover {
  background: var(--onx-black);
  color: var(--onx-white);
  box-shadow: var(--onx-clay-dark-shadow);
}

.onx-toast-container { z-index: 1080; }

.onx-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}

/* Mobile-first: campo de filtro ocupa a linha toda (fácil de tocar); a partir de
   576px os filtros voltam a ficar lado a lado com uma largura confortável. */
.onx-filter-field {
  width: 100%;
}

@media (min-width: 576px) {
  .onx-filter-field {
    width: auto;
    min-width: 160px;
    max-width: 240px;
  }

  /* O campo de busca carrega um placeholder mais longo (ex.: "Buscar por nome,
     marca ou SKU...") que o limite de 240px dos demais filtros corta no meio
     da palavra. Deixa ele crescer e ocupar o espaço livre da barra. */
  .onx-filter-bar input[type="search"].onx-filter-field {
    flex: 1 1 220px;
    max-width: 360px;
  }
}

/* Abas padrão do Bootstrap (ex.: Estoque) usam azul de link por padrão, que
   destoa da paleta preto/champagne usada em todo o resto do painel. */
.nav-tabs .nav-link {
  color: #6b6a63;
  border-color: transparent;
}

.nav-tabs .nav-link:hover {
  color: var(--onx-black);
  border-color: transparent;
}

.nav-tabs .nav-link.active {
  color: var(--onx-black);
  font-weight: 600;
  border-color: rgba(17, 17, 15, 0.12) rgba(17, 17, 15, 0.12) var(--onx-white);
}

/* Campos de texto e select ganham o mesmo tratamento clay dos demais campos
   do app: cantos bem arredondados e sombra interna ("pressionado" na
   superfície), ao contrário de cards/botões que ficam "elevados". */
.form-control,
.form-select {
  border-radius: var(--onx-clay-radius-sm);
  border: 1px solid rgba(17, 17, 15, 0.08);
  background-color: #FBF7EE;
  box-shadow: var(--onx-clay-inset);
}

/* Anel de foco padrão do Bootstrap (azul) aparece em todo campo de texto e
   select do sistema — troca pra tom neutro da marca. */
.form-control:focus,
.form-select:focus {
  background-color: #FBF7EE;
  border-color: rgba(17, 17, 15, 0.35);
  box-shadow: var(--onx-clay-inset), 0 0 0 4px rgba(17, 17, 15, 0.1);
}

/* Checkboxes, switches e radios do Bootstrap também usam azul por padrão
   (ex.: "Loja pública ativa" em Configurações da loja, "Produto ativo").
   Desmarcado = pressionado (sombra interna); marcado = elevado, como um
   botão clay que "aparece" ao ser ativado. */
.form-check-input {
  box-shadow: var(--onx-clay-inset);
}

.form-check-input:checked {
  background-color: var(--onx-black);
  border-color: var(--onx-black);
  box-shadow: var(--onx-clay-shadow-sm);
}

.form-check-input:focus {
  border-color: var(--onx-black);
  box-shadow: 0 0 0 0.25rem rgba(17, 17, 15, 0.15);
}

.onx-sale-item-row td { vertical-align: middle; }

.form-label { font-size: 0.85rem; font-weight: 600; }

/* ---------- Abas de relatório ---------- */
.onx-report-tabs {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: 6px;
  padding-bottom: 2px;
}

.onx-report-tabs .nav-link {
  white-space: nowrap;
  font-size: 0.85rem;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--onx-black);
  border: 1px solid rgba(17, 17, 15, 0.12);
}

.onx-report-tabs .nav-link.active {
  background: var(--onx-black);
  color: var(--onx-white);
  border-color: var(--onx-black);
  box-shadow: var(--onx-clay-shadow-sm);
}

/* ---------- Rolagem horizontal de tabelas no toque (iPhone) ---------- */
.table-responsive {
  -webkit-overflow-scrolling: touch;
  background: var(--onx-white);
  border-radius: var(--onx-clay-radius-md);
  box-shadow: var(--onx-clay-shadow-sm);
}

/* Modais (Bootstrap) recebem o mesmo tratamento elevado das demais
   superfícies "container" do app. */
.modal-content {
  background: var(--onx-clay-surface);
  border: none;
  border-radius: var(--onx-clay-radius-lg);
  box-shadow: 16px 16px 36px rgba(150, 120, 70, 0.22), -10px -10px 24px rgba(255, 255, 255, 0.6);
}

/* ---------- Exportar relatório em PDF (via "Imprimir" do navegador) ---------- */
@media print {
  .onx-sidebar,
  .onx-topbar,
  .onx-sidebar-backdrop {
    display: none !important;
  }
  .onx-main {
    margin-left: 0 !important;
    padding: 0 !important;
  }
  body {
    background: var(--onx-white);
  }
  .table-responsive {
    overflow: visible !important;
    background: var(--onx-white) !important;
    box-shadow: none !important;
  }
  .onx-stat {
    border: 1px solid #ccc;
    background: var(--onx-white) !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
  .onx-card,
  .card.onx-card {
    background: var(--onx-white) !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
}

/* ---------- Listas compactas do dashboard (sorteios em aberto, estoque baixo) ---------- */
.onx-mini-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(17, 17, 15, 0.06);
  text-decoration: none;
  color: inherit;
}

.onx-mini-list-item:last-child { border-bottom: none; }

.onx-mini-list-item:hover {
  background: rgba(185, 165, 130, 0.12);
  border-radius: 14px;
}

/* Alvos de toque confortáveis em telas pequenas (mín. ~40px recomendado). */
.table-onx .btn-link {
  padding: 6px 8px;
  font-size: 1.05rem;
}

.onx-nav a {
  min-height: 44px;
}

.onx-topbar .btn-menu {
  min-width: 44px;
  min-height: 44px;
}

/* Celular/tablet: rola com o dedo, sem barra de rolagem visível. */
@media (max-width: 991.98px) {
  html, body, .loja-nav-links, .onx-nav, .modal-body {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  html::-webkit-scrollbar,
  body::-webkit-scrollbar,
  .loja-nav-links::-webkit-scrollbar,
  .onx-nav::-webkit-scrollbar,
  .modal-body::-webkit-scrollbar { display: none; }
}

/* ---------- Sino de notificações (pedidos da loja) ---------- */
.onx-bell { position: fixed; top: 10px; right: 14px; z-index: 1035; }
@media (min-width: 992px) { .onx-bell { top: 18px; right: 26px; } }
.onx-bell-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--onx-clay-surface, linear-gradient(150deg, #fff, #f1e9d8));
  box-shadow: var(--onx-clay-shadow-sm, 5px 5px 12px rgba(150, 120, 70, 0.18), -4px -4px 10px rgba(255, 255, 255, 0.85));
  color: #11110f;
  font-size: 1.25rem;
}
.onx-bell-btn.has-new { color: #b8862e; }
.onx-bell-btn.ring i { display: inline-block; animation: onx-ring 0.9s ease; }
@keyframes onx-ring { 10%, 30%, 50% { transform: rotate(14deg); } 20%, 40%, 60% { transform: rotate(-14deg); } 70% { transform: rotate(0); } }
@media (prefers-reduced-motion: reduce) { .onx-bell-btn.ring i { animation: none; } }
.onx-bell-count { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #c0392b; color: #fff; font-size: 0.7rem; font-weight: 700; line-height: 20px; text-align: center; box-shadow: 0 2px 6px rgba(192, 57, 43, 0.4); }
.onx-bell-menu { width: min(360px, calc(100vw - 24px)); padding: 0; border: none; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 40px rgba(17, 17, 15, 0.18); }
.onx-bell-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 8px; }
.onx-bell-prepare { padding: 0 16px 10px; font-size: 0.85rem; }
.onx-bell-prepare a { color: #2e6b34; font-weight: 600; text-decoration: none; }
.onx-bell-list { max-height: 360px; overflow-y: auto; border-top: 1px solid rgba(17, 17, 15, 0.06); }
.onx-bell-item { display: flex; gap: 12px; padding: 12px 16px; color: #11110f; text-decoration: none; border-bottom: 1px solid rgba(17, 17, 15, 0.05); }
.onx-bell-item:hover { background: #f7f3ec; color: #11110f; }
.onx-bell-icon { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fdf1de; color: #96660c; }
.onx-bell-item.is-paid .onx-bell-icon { background: #e5f1e6; color: #2e6b34; }
.onx-bell-text { display: flex; flex-direction: column; font-size: 0.84rem; min-width: 0; }
.onx-bell-text strong { font-size: 0.86rem; }
.onx-bell-text small { color: #6b6a63; }
.onx-bell-empty { padding: 22px 16px; text-align: center; color: #6b6a63; font-size: 0.88rem; }
.onx-bell-all { display: block; text-align: center; padding: 11px; font-size: 0.85rem; font-weight: 600; color: #11110f; text-decoration: none; background: #f7f3ec; }
/* Espaço para o sino não cobrir os botões do topo das páginas no desktop. */
@media (min-width: 992px) { .onx-page-header { padding-right: 64px; } }

.onx-status-select { min-width: 170px; font-weight: 500; }
.onx-status-box { background: #f7f3ec; border-radius: 14px; padding: 12px 14px; }

/* Galeria de fotos do produto (painel) */
.onx-gallery-admin { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.onx-gallery-thumb { width: 92px; border-radius: 12px; overflow: hidden; background: #f7f3ec; box-shadow: 3px 3px 8px rgba(150, 120, 70, 0.18); }
.onx-gallery-thumb img { width: 92px; height: 92px; object-fit: cover; display: block; }
.onx-gallery-actions { display: flex; justify-content: space-between; }
.onx-gallery-actions button { flex: 1; border: none; background: transparent; padding: 4px 0; font-size: 0.8rem; color: #11110f; }
.onx-gallery-actions button:hover:not(:disabled) { background: #ece4d4; }
.onx-gallery-actions button:disabled { opacity: 0.3; }

/* Cupons */
.onx-coupon-code {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: #11110f;
  background: #f6eef2;
  padding: 2px 6px;
  border-radius: 6px;
  white-space: nowrap;
}

/* Produtos: imagem do banner do carrossel */
.onx-banner-admin {
  border: 1px dashed rgba(17, 17, 15, 0.18);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.5);
}
.onx-banner-preview { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1920 / 700; background: #f6eef2; }
.onx-banner-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.onx-banner-remove { position: absolute; top: 8px; right: 8px; }
