/* =====================================================================
   Sonik Vendas Online — tema visual
   Baseado no Design System Sonik (tokens.json / tokens.css).
   Regra: nunca use hex solto nas páginas, use os tokens abaixo.
   ===================================================================== */

@font-face { font-family: 'Open Sans'; src: url('../fonts/opensans/OpenSans-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('../fonts/opensans/OpenSans-Semibold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('../fonts/opensans/OpenSans-Semibold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Tokens (tema claro) ---------- */
:root, [data-theme="light"] {
  --sonik-azul: #004e8e;
  --sonik-azul-claro: #0078d7;
  --sonik-azul-profundo: #003a6b;
  --on-brand: #ffffff;
  --primary: #004e8e;
  --primaryDark: #003a6b;
  --primaryLight: #0078d7;
  --accent: #0078d7;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surfaceMuted: #eef2f6;
  --inputBg: #f4f6f9;
  --textPrimary: #1a2332;
  --textMuted: #3b434d;
  --textSubtle: #555b62;
  --borderSubtle: #e8eef5;
  --borderField: #e1e6ec;
  --borderControl: #7b8794; /* contorno de checkbox/radio: contraste >= 3:1 sobre fundos claros */
  --success: #16956b;
  --warning: #d68a16;
  --error: #c43c3c;
  --info: #0078d7;
  --status-pendente: var(--warning);
  --status-iniciado: var(--info);
  --status-finalizado: var(--success);
  --status-cancelado: var(--error);
  --overlay: rgba(8,24,48,0.55);
  --vidro: rgba(255,255,255,0.18);
  --vidro-borda: rgba(255,255,255,0.35);
  --alca: rgba(255,255,255,0.55);
  --bolha-a: rgba(255,255,255,0.06);
  --bolha-b: rgba(255,255,255,0.07);

  /* derivados (12% da cor, para selos e realces) */
  --success-12: rgba(22,149,107,0.12);
  --warning-12: rgba(214,138,22,0.12);
  --error-12: rgba(196,60,60,0.12);
  --info-12: rgba(0,120,215,0.12);
  --primary-08: rgba(0,78,142,0.08);
  --focus-ring: rgba(0,120,215,0.25);
}

:root {
  --gradient-fundo-sonik: radial-gradient(120% 140% at 100% 0%, #0078d7 0%, #004e8e 55%, #004e8e 100%);
  --gradient-hero-login: radial-gradient(120% 80% at 100% 0%, #0078d7 0%, #004e8e 40%, #003a6b 100%);
  --gradient-botao-primario: linear-gradient(90deg, #004e8e 0%, #0078d7 100%);
  --shadow-dialogo: 0 12px 28px rgba(0,0,0,0.25);
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-xxl: 32px;
  --space-xxxl: 48px;
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-xxl: 24px;
  --radius-full: 9999px;
  --font-sans: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --topbar-h: 68px;
  --footer-h: 31px;

  /* Bootstrap herda a marca */
  --bs-body-font-family: var(--font-sans);
  --bs-body-color: var(--textPrimary);
  --bs-body-bg: var(--bg);
  --bs-primary: #004e8e;
  --bs-primary-rgb: 0,78,142;
  --bs-link-color: var(--primaryLight);
  --bs-link-color-rgb: 0,120,215;
  --bs-link-hover-color: var(--primary);
  --bs-border-color: var(--borderSubtle);
  --bs-border-radius: var(--radius-lg);
}

/* ---------- Base ---------- */
html { font-size: 14px; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 20px;
  color: var(--textPrimary);
  background: var(--bg) !important;
  -webkit-font-smoothing: antialiased;
}
body > .sk-app { flex: 1 0 auto; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-sans); font-weight: 600; color: var(--textPrimary); }
b, strong { font-weight: 600; }
a { color: var(--primaryLight); text-decoration: none; }
a:hover { color: var(--primary); }
hr { border-color: var(--borderSubtle); opacity: 1; }
.sk-num, .sk-money { font-variant-numeric: tabular-nums; }
::selection { background: var(--info-12); }

/* tipografia do DS */
.sk-h1 { font-size: 32px; line-height: 40px; font-weight: 600; }
.sk-h2 { font-size: 24px; line-height: 32px; font-weight: 600; }
.sk-h3 { font-size: 20px; line-height: 28px; font-weight: 600; }
.sk-h4 { font-size: 18px; line-height: 24px; font-weight: 600; }
.sk-body { font-size: 16px; line-height: 22px; }
.sk-small { font-size: 14px; line-height: 20px; }
.sk-caption { font-size: 12px; line-height: 16px; }
.sk-rotulo, .sk-label {
  display: block;
  font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--textMuted);
  margin: 0 0 6px;
}
.sk-muted { color: var(--textMuted) !important; }
.sk-subtle { color: var(--textSubtle) !important; }

/* ---------- Ícones (Ionicons) ---------- */
ion-icon { font-size: 20px; vertical-align: middle; --ionicon-stroke-width: 36px; flex-shrink: 0; }
.sk-ico-sm { font-size: 16px; }
.sk-ico-lg { font-size: 24px; }

/* ---------- Fundo Sonik (degradê de destaque) ---------- */
.fundo-sonik, .sk-fundo {
  position: relative; overflow: hidden;
  background: var(--sonik-azul);
  background-image: var(--gradient-fundo-sonik);
  color: var(--on-brand);
}
.fundo-sonik::before, .fundo-sonik::after,
.sk-fundo::before, .sk-fundo::after {
  content: ""; position: absolute; border-radius: var(--radius-full); pointer-events: none;
}
.fundo-sonik::before, .sk-fundo::before { top: -60px; left: -40px; width: 160px; height: 160px; background: var(--bolha-a); }
.fundo-sonik::after,  .sk-fundo::after  { bottom: -50px; right: -30px; width: 120px; height: 120px; background: var(--bolha-b); }
.fundo-sonik > *, .sk-fundo > * { position: relative; z-index: 1; }

/* ---------- Botões ---------- */
.sk-btn, .btn {
  --sk-btn-h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm);
  min-height: var(--sk-btn-h);
  padding: 0 var(--space-xl);
  border-radius: var(--radius-full) !important;
  font-family: var(--font-sans);
  font-size: 14px; line-height: 20px; font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .12s ease, filter .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  text-decoration: none;
}
.sk-btn:active:not(:disabled), .btn:active:not(:disabled) { transform: scale(.97); }
.sk-btn:focus-visible, .btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--focus-ring) !important; }
.sk-btn:disabled, .btn:disabled, .btn.disabled { opacity: .45; cursor: not-allowed; }

.sk-btn-primary, .btn-primary, .btn-success {
  color: var(--on-brand) !important;
  background: var(--sonik-azul) !important;
  background-image: var(--gradient-botao-primario) !important;
  border-color: transparent !important;
}
.sk-btn-primary:hover:not(:disabled), .btn-primary:hover:not(:disabled), .btn-success:hover:not(:disabled) { filter: brightness(1.08); color: var(--on-brand) !important; }
.sk-btn-primary:active:not(:disabled), .btn-primary:active:not(:disabled), .btn-success:active:not(:disabled) { background: var(--sonik-azul-profundo) !important; }

.sk-btn-outline, .btn-outline-primary, .btn-warning, .btn-secondary, .btn-dark, .btn-info, .btn-light, .btn-outline-secondary, .btn-outline-success {
  color: var(--primary) !important;
  background: transparent !important;
  border-color: var(--primary) !important;
}
.sk-btn-outline:hover:not(:disabled), .btn-outline-primary:hover:not(:disabled), .btn-warning:hover:not(:disabled),
.btn-secondary:hover:not(:disabled), .btn-dark:hover:not(:disabled), .btn-info:hover:not(:disabled),
.btn-light:hover:not(:disabled), .btn-outline-secondary:hover:not(:disabled), .btn-outline-success:hover:not(:disabled) {
  background: var(--primary-08) !important;
}

.sk-btn-ghost, .btn-link {
  color: var(--primary) !important;
  background: transparent !important;
  border-color: transparent !important;
  padding: 0 var(--space-md);
}
.sk-btn-ghost:hover:not(:disabled), .btn-link:hover:not(:disabled) { background: var(--primary-08) !important; }

.sk-btn-danger, .btn-danger {
  color: var(--on-brand) !important;
  background: var(--error) !important;
  border-color: var(--error) !important;
}
.sk-btn-danger:hover:not(:disabled), .btn-danger:hover:not(:disabled) { filter: brightness(1.06); }

.sk-btn-secondary { color: var(--textPrimary) !important; background: var(--surfaceMuted) !important; border-color: transparent !important; }
.sk-btn-secondary:hover:not(:disabled) { background: var(--borderField) !important; }

.sk-btn-sm, .btn-sm { --sk-btn-h: 36px; padding: 0 var(--space-lg); font-size: 13px; }
.sk-btn-lg, .btn-lg { --sk-btn-h: 56px; padding: 0 var(--space-xl); font-size: 16px; line-height: 22px; }
.sk-btn-block { width: 100%; }

/* ícone do botão primário, à direita, num círculo de vidro */
.sk-btn-ico {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; margin-right: -12px;
  border-radius: var(--radius-full);
  background: var(--vidro);
}
.sk-btn-ico ion-icon { font-size: 18px; }

/* botão redondo só com ícone */
.sk-icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; padding: 0;
  border-radius: var(--radius-full);
  border: 1px solid var(--borderField);
  background: var(--surface);
  color: var(--primary);
  cursor: pointer;
  transition: background-color .15s ease, transform .12s ease;
}
.sk-icon-btn:hover { background: var(--primary-08); }
.sk-icon-btn:active { transform: scale(.94); }
.sk-icon-btn:disabled { opacity: .4; cursor: not-allowed; }
.sk-icon-btn-sm { width: 32px; height: 32px; }
.sk-icon-btn-sm ion-icon { font-size: 16px; }

/* ---------- Campos ---------- */
.form-control, .form-select, .sk-input, .sk-select,
.sk-app input[type="text"], .sk-app input[type="number"], .sk-app input[type="date"],
.sk-app input[type="password"], .sk-app input[type="email"], .sk-app select, .sk-app textarea {
  min-height: 44px;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 14px; line-height: 20px;
  color: var(--textPrimary);
  background-color: var(--inputBg);
  border: 1px solid var(--borderField);
  border-radius: var(--radius-lg);
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
  outline: none;
}
.sk-app select, .form-select, .sk-select {
  padding-right: 38px;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3e%3cpath fill='none' stroke='%23004e8e' stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M112 184l144 144 144-144'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
}
.form-control:focus, .form-select:focus, .sk-input:focus, .sk-select:focus,
.sk-app input:focus, .sk-app select:focus, .sk-app textarea:focus {
  background-color: var(--surface);
  border-color: var(--primaryLight) !important;
  box-shadow: 0 0 0 4px var(--focus-ring) !important;
}
.form-control::placeholder, .sk-app input::placeholder { color: var(--textSubtle); opacity: 1; }
.form-control:disabled, .sk-app input:disabled, .sk-app select:disabled {
  background-color: var(--surfaceMuted); color: var(--textSubtle); cursor: not-allowed;
}
.sk-app input[type="checkbox"], .sk-app input[type="radio"] { min-height: 0; padding: 0; }
/* Padrão único de checkbox do portal (com ou sem a classe form-check-input) */
.form-check-input, .sk-app input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; flex-shrink: 0; margin: 0;
  width: 20px; height: 20px; border: 2px solid var(--borderControl); border-radius: 5px;
  background-color: var(--surface); background-repeat: no-repeat; background-position: center; background-size: 14px;
  cursor: pointer; vertical-align: middle;
}
.form-check-input:checked, .sk-app input[type="checkbox"]:checked {
  background-color: var(--primary); border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}
.form-check-input:focus, .sk-app input[type="checkbox"]:focus { box-shadow: 0 0 0 4px var(--focus-ring); border-color: var(--primaryLight); outline: none; }
.form-check-input:disabled, .sk-app input[type="checkbox"]:disabled { opacity: .5; cursor: not-allowed; }
.form-check-label { color: var(--textPrimary); font-weight: 600; }

/* campo com ícone à esquerda */
.sk-field { position: relative; }
.sk-field > ion-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--textSubtle); pointer-events: none; font-size: 20px; z-index: 2;
}
.sk-field > input, .sk-field > select { width: 100%; padding-left: 44px !important; }
.sk-field-action {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 0; background: transparent; border-radius: var(--radius-full);
  color: var(--textSubtle); cursor: pointer;
}
.sk-field-action:hover { background: var(--primary-08); color: var(--primary); }
.sk-field-group { margin-bottom: var(--space-lg); }

/* ---------- Card ---------- */
.sk-card {
  background: var(--surface);
  border: 1px solid var(--borderSubtle);
  border-radius: var(--radius-lg);
}
.sk-card-body { padding: var(--space-xl); }
.sk-card-header {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--borderSubtle);
}
.sk-card-title { display: flex; align-items: center; gap: var(--space-sm); margin: 0; font-size: 16px; line-height: 22px; font-weight: 600; }
.sk-card-title ion-icon { color: var(--primary); }
.sk-card-footer { padding: var(--space-lg) var(--space-xl); border-top: 1px solid var(--borderSubtle); }

/* ---------- Barra do topo ---------- */
.sk-topbar {
  position: sticky; top: 0; z-index: 1030;
  background: var(--sonik-azul);
  color: var(--on-brand);
}
.sk-topbar-inner {
  display: flex; align-items: center; gap: var(--space-xl);
  max-width: 1440px; margin: 0 auto;
  min-height: var(--topbar-h);
  padding: 0 var(--space-xl);
}
.sk-brand { display: flex; align-items: center; gap: var(--space-md); color: var(--on-brand); text-decoration: none; }
.sk-brand:hover { color: var(--on-brand); }
.sk-brand-logo {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  background: var(--on-brand);
  overflow: hidden;
  flex-shrink: 0;
}
.sk-brand-logo img { width: 100%; height: 100%; object-fit: contain; }
/* logo largo da loja (ex.: Logo-125.jpg, ~3:1): mesma altura, largura proporcional */
.sk-brand-logo.sk-brand-logo-wide { display: block; width: auto; max-width: 160px; border-radius: var(--radius-md); background: transparent; }
.sk-brand-logo.sk-brand-logo-wide img { display: block; width: auto; height: 44px; max-width: 160px; object-fit: contain; }
/* arte encostada na borda: margem interna com a cor de fundo do logo (inline, topo.php) */
.sk-brand-logo.sk-brand-logo-wide.sk-brand-logo-fundo { box-sizing: border-box; padding: 4px 8px; }
.sk-brand-logo.sk-brand-logo-wide.sk-brand-logo-fundo img { height: 36px; max-width: 144px; }
.sk-brand-text { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.sk-brand-title { font-size: 16px; font-weight: 600; }
.sk-brand-sub { font-size: 12px; opacity: .85; }

.sk-nav { display: flex; align-items: center; gap: var(--space-xs); margin: 0; padding: 0; list-style: none; }
.sk-nav-link {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  height: 40px; padding: 0 var(--space-lg);
  border-radius: var(--radius-full);
  color: rgba(255,255,255,.85) !important;
  font-weight: 600; font-size: 14px;
  transition: background-color .15s ease, color .15s ease;
}
.sk-nav-link:hover { background: var(--vidro); color: var(--on-brand) !important; }
.sk-nav-link.active { background: var(--on-brand); color: var(--primary) !important; }
.sk-nav-link.active ion-icon { color: var(--primary); }

.sk-topbar-right { display: flex; align-items: center; gap: var(--space-md); margin-left: auto; }
.sk-store-pill {
  display: flex; align-items: center; gap: var(--space-sm);
  height: 40px; padding: 0 var(--space-sm) 0 var(--space-md);
  border-radius: var(--radius-full);
  background: var(--vidro);
  border: 1px solid var(--vidro-borda);
}
.sk-store-pill select {
  min-height: 0 !important; height: 36px;
  max-width: 240px;
  padding: 0 28px 0 4px !important;
  border: 0 !important; box-shadow: none !important;
  background-color: transparent !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M112 184l144 144 144-144'/%3e%3c/svg%3e") !important;
  background-position: right 6px center !important;
  color: var(--on-brand) !important;
  font-weight: 600; font-size: 13px;
  cursor: pointer;
}
.sk-store-pill select option { color: var(--textPrimary); background: var(--surface); }
.sk-user { display: flex; align-items: center; gap: var(--space-sm); }
.sk-avatar {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: var(--vidro);
  border: 1px solid var(--vidro-borda);
  font-weight: 600; font-size: 14px;
  color: var(--on-brand);
  text-transform: uppercase;
}
.sk-user-text { display: flex; flex-direction: column; line-height: 1.2; max-width: 200px; }
.sk-user-label { font-size: 11px; opacity: .8; }
.sk-user-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-topbar .sk-icon-btn { background: var(--vidro); border-color: var(--vidro-borda); color: var(--on-brand); }
.sk-topbar .sk-icon-btn:hover { background: rgba(255,255,255,.28); }
.sk-menu-toggle { display: none !important; }

@media (max-width: 1279px) {
  .sk-user-text, .sk-brand-text { display: none; }
  .sk-topbar-inner { gap: var(--space-md); }
}
@media (max-width: 991px) {
  .sk-topbar-inner { flex-wrap: wrap; gap: var(--space-md); padding: var(--space-sm) var(--space-lg); }
  .sk-menu-toggle { display: inline-grid !important; }
  .sk-nav-wrap { order: 10; width: 100%; display: none; padding-bottom: var(--space-md); }
  .sk-nav-wrap.open { display: block; }
  .sk-nav { flex-direction: column; align-items: stretch; }
  .sk-nav-link { width: 100%; }
  .sk-brand-text { display: none; }
}
@media (max-width: 991px) {
  .sk-topbar-inner { flex-wrap: wrap; }
  .sk-topbar-right { flex-wrap: nowrap; gap: var(--space-sm); }
}
@media (max-width: 575px) {
  .sk-topbar-inner { padding: var(--space-sm) var(--space-md); gap: var(--space-sm); }
  .sk-store-pill { padding: 0 var(--space-xs) 0 var(--space-sm); }
  .sk-store-pill select { max-width: 118px; }
  .sk-user { display: none; }
  .sk-brand-logo { width: 40px; height: 40px; }
  .sk-brand-logo.sk-brand-logo-wide { width: auto; max-width: 104px; }
  .sk-brand-logo.sk-brand-logo-wide img { height: 36px; max-width: 104px; }
  .sk-brand-logo.sk-brand-logo-wide.sk-brand-logo-fundo { padding: 3px 6px; }
  .sk-brand-logo.sk-brand-logo-wide.sk-brand-logo-fundo img { height: 30px; max-width: 92px; }
  /* com logo largo, o seletor de loja encolhe para tudo caber numa linha */
  .sk-topbar-inner:has(.sk-brand-logo-wide) .sk-store-pill select { max-width: 96px; }
}

/* ---------- Área de conteúdo ---------- */
.sk-main { max-width: 1440px; margin: 0 auto; width: 100%; padding: var(--space-xl); }
@media (max-width: 575px) { .sk-main { padding: var(--space-lg); } }

.sk-page-header {
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}
.sk-page-title { display: flex; align-items: center; gap: var(--space-md); margin: 0; font-size: 24px; line-height: 32px; font-weight: 600; }
.sk-page-title-ico {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-lg);
  background: var(--primary-08);
  color: var(--primary);
}
.sk-page-title-ico ion-icon { font-size: 22px; }
.sk-page-sub { margin: 4px 0 0; color: var(--textMuted); font-size: 14px; }

/* filtros em linha */
.sk-filter-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-md); }
.sk-filter-bar .sk-field-group { margin: 0; }

/* ---------- Busca ---------- */
.sk-search-hero { border-radius: var(--radius-xl); padding: var(--space-xl); margin-bottom: var(--space-xl); }
.sk-search-hero h1 { color: var(--on-brand); font-size: 20px; line-height: 28px; margin: 0 0 4px; }
.sk-search-hero p { color: var(--on-brand); opacity: .85; margin: 0 0 var(--space-lg); font-size: 13px; }
.sk-search-row { display: flex; gap: var(--space-md); flex-wrap: wrap; align-items: center; }
.sk-search-row .sk-field { flex: 1 1 320px; }
.sk-search-row .sk-field input { min-height: 52px; background: var(--surface) !important; border-color: transparent !important; font-size: 15px; }
.sk-search-row select { min-height: 52px; background-color: var(--surface) !important; border-color: transparent !important; flex: 0 1 200px; }
.sk-search-hero .sk-btn-search {
  min-height: 52px; padding: 0 var(--space-xl);
  background: var(--on-brand) !important; color: var(--primary) !important;
  border-color: transparent !important;
}
.sk-search-hero .sk-btn-search:hover { filter: none; background: var(--surfaceMuted) !important; }
.sk-search-hero .sk-btn-vidro {
  min-height: 52px; color: var(--on-brand) !important;
  background: var(--vidro) !important; border-color: var(--vidro-borda) !important;
}
.sk-search-hero .sk-btn-vidro:hover { background: rgba(255,255,255,.28) !important; }
.sk-adv-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-md); }
.sk-adv-grid > * { grid-column: span 3; }
.sk-adv-grid > .sk-span-6 { grid-column: span 6; }
.sk-adv-grid > .sk-span-4 { grid-column: span 4; }
.sk-adv-grid > .sk-span-2 { grid-column: span 2; }
.sk-adv-grid input, .sk-adv-grid select { width: 100%; background-color: var(--surface) !important; border-color: transparent !important; }
.sk-adv-grid .sk-label { color: var(--on-brand); opacity: .9; }
@media (max-width: 991px) { .sk-adv-grid > *, .sk-adv-grid > .sk-span-6, .sk-adv-grid > .sk-span-4 { grid-column: span 6; } .sk-adv-grid > .sk-span-2 { grid-column: span 4; } }
@media (max-width: 575px) { .sk-adv-grid > *, .sk-adv-grid > .sk-span-6, .sk-adv-grid > .sk-span-4, .sk-adv-grid > .sk-span-2 { grid-column: span 12; } }

.sk-shop { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--space-xl); align-items: start; }
.sk-shop-aside { position: sticky; top: calc(var(--topbar-h) + var(--space-lg)); }
@media (max-width: 1199px) { .sk-shop { grid-template-columns: minmax(0, 1fr) 340px; } }
@media (max-width: 991px) { .sk-shop { grid-template-columns: 1fr; } .sk-shop-aside { position: static; } }

.sk-results-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-md); flex-wrap: wrap; margin-bottom: var(--space-lg); }
.sk-results-title { margin: 0; font-size: 20px; line-height: 28px; }
.sk-results-count { color: var(--textMuted); font-size: 13px; }

/* ---------- Card de produto ---------- */
.sk-product-list { display: flex; flex-direction: column; gap: var(--space-md); }
.sk-product {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) 250px;
  gap: var(--space-xl);
  padding: var(--space-lg);
  background: var(--surface);
  border: 1px solid var(--borderSubtle);
  border-radius: var(--radius-lg);
  transition: border-color .15s ease;
}
.sk-product:hover { border-color: rgba(0,120,215,.35); }
.sk-product-media { display: flex; flex-direction: column; gap: var(--space-sm); }
.sk-product-img {
  display: grid; place-items: center;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr); /* a foto nao estica a linha: object-fit contain sem cortar */
  width: 100%; aspect-ratio: 1 / 1;
  padding: var(--space-sm);
  background: var(--surface);
  border: 1px solid var(--borderSubtle);
  border-radius: var(--radius-lg);
  cursor: zoom-in;
  overflow: hidden;
  position: relative;
}
.sk-product-img img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; transition: transform .25s ease; }
.sk-product-img:hover img { transform: scale(1.06); }
.sk-product-img .sk-zoom-hint {
  position: absolute; right: 6px; bottom: 6px;
  display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: var(--radius-full);
  background: var(--surface); border: 1px solid var(--borderSubtle);
  color: var(--primary);
}
.sk-product-img .sk-zoom-hint ion-icon { font-size: 15px; }
.sk-product-links { display: flex; flex-direction: column; gap: var(--space-xs); }
.sk-product-links .sk-btn { width: 100%; --sk-btn-h: 32px; padding: 0 var(--space-sm); font-size: 12px; border-width: 1px; }
.sk-product-info { min-width: 0; display: flex; flex-direction: column; gap: var(--space-sm); }
.sk-product-brand { font-size: 11px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; color: var(--primaryLight); }
.sk-product-name { margin: 0; font-size: 16px; line-height: 22px; font-weight: 600; color: var(--textPrimary); }
.sk-product-specs { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-sm); }
.sk-chip {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 24px; padding: 2px 10px;
  border-radius: var(--radius-full);
  background: var(--inputBg);
  border: 1px solid var(--borderField);
  font-size: 12px; line-height: 16px; color: var(--textMuted);
}
.sk-chip b { color: var(--textPrimary); }
.sk-product-aplic { font-size: 13px; color: var(--textMuted); margin: 0; }
.sk-product-aplic b { color: var(--textPrimary); font-weight: 600; }
.sk-product-buy {
  display: flex; flex-direction: column; gap: var(--space-sm);
  padding-left: var(--space-xl);
  border-left: 1px solid var(--borderSubtle);
}
.sk-price { font-size: 26px; line-height: 32px; font-weight: 600; color: var(--textPrimary); font-variant-numeric: tabular-nums; }
.sk-price small { font-size: 14px; font-weight: 600; margin-right: 2px; }
.sk-price-promo { color: var(--success); }
.sk-price-old { font-size: 13px; color: var(--textSubtle); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.sk-price-row { display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; }
.sk-stock { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; }
.sk-stock input { width: 70px; border: 0 !important; background: transparent !important; padding: 0 !important; min-height: 0 !important; color: inherit; font-weight: 600; box-shadow: none !important; }
.sk-stock-ok { color: var(--success); }
.sk-stock-out { color: var(--error); }
.sk-qty-row { display: flex; align-items: center; gap: var(--space-sm); }
.sk-qty-row input[type="number"] {
  width: 72px !important; text-align: center;
  min-height: 44px; padding: 0 6px !important;
}
.sk-qty-row .sk-btn { flex: 1; padding: 0 var(--space-md); }
.sk-promo-until { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--warning); font-weight: 600; }
.sk-qty-limit { font-size: 12px; color: var(--info); font-weight: 600; }
.sk-msg { font-size: 12px; font-weight: 600; color: var(--error); min-height: 0; }
.sk-msg:empty { display: none; }

@media (max-width: 1399px) {
  .sk-product { grid-template-columns: 140px minmax(0, 1fr); }
  .sk-product-buy { grid-column: 1 / -1; padding-left: 0; border-left: 0; border-top: 1px solid var(--borderSubtle); padding-top: var(--space-md); flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .sk-product-buy .sk-qty-row { flex: 1 1 260px; max-width: 360px; }
}
@media (max-width: 575px) {
  .sk-product { grid-template-columns: 1fr; gap: var(--space-md); }
  .sk-product-media { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: var(--space-md); }
  .sk-product-img { aspect-ratio: 1 / 1; }
  .sk-product-buy .sk-qty-row { flex: 1 1 100%; max-width: none; }
  .sk-search-hero { padding: var(--space-lg); border-radius: var(--radius-lg); }
  .sk-search-hero h1 { font-size: 18px; line-height: 24px; }
  .sk-search-row .sk-field { flex: 1 1 100%; }
  .sk-search-row > select, .sk-search-row > .sk-btn { flex: 1 1 calc(50% - 6px); min-width: 0; padding: 0 var(--space-md); }
  .sk-page-title { font-size: 20px; line-height: 28px; }
  .sk-filter-bar { width: 100%; }
  .sk-filter-bar .sk-field-group { flex: 1 1 calc(50% - 6px); }
  .sk-filter-bar input { width: 100%; }
  .sk-filter-bar .sk-btn { flex: 1 1 100%; }
}

/* ---------- Selos ---------- */
.sk-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px; line-height: 16px; font-weight: 600;
  background: var(--info-12); color: var(--info);
  white-space: nowrap;
}
.sk-badge-success { background: var(--success-12); color: var(--success); }
.sk-badge-warning { background: var(--warning-12); color: var(--warning); }
.sk-badge-error   { background: var(--error-12);   color: var(--error); }
.sk-badge-info    { background: var(--info-12);    color: var(--info); }
.sk-badge-neutral { background: var(--surfaceMuted); color: var(--textMuted); }

/* ---------- Alertas inline ---------- */
.sk-alert {
  display: flex; align-items: flex-start; gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  font-size: 13px; font-weight: 600;
  background: var(--error-12); color: var(--error);
}
.sk-alert:empty { display: none; }
.sk-alert-success { background: var(--success-12); color: var(--success); }
.sk-alert-info { background: var(--info-12); color: var(--info); }
.sk-alert-warning { background: var(--warning-12); color: var(--warning); }

/* ---------- Estado vazio ---------- */
.sk-empty {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: var(--space-sm);
  padding: var(--space-xxxl) var(--space-xl);
  color: var(--textMuted);
}
.sk-empty-ico {
  display: grid; place-items: center;
  width: 64px; height: 64px; margin-bottom: var(--space-sm);
  border-radius: var(--radius-full);
  background: var(--surfaceMuted); color: var(--textSubtle);
}
.sk-empty-ico ion-icon { font-size: 30px; }
.sk-empty h3 { margin: 0; font-size: 16px; line-height: 22px; color: var(--textPrimary); }
.sk-empty p { margin: 0; font-size: 13px; }

/* ---------- Carregando (área preenchida por AJAX) ---------- */
.sk-loading:empty {
  min-height: 160px;
  display: flex; align-items: center; justify-content: center; gap: var(--space-md);
  color: var(--textMuted); font-size: 13px; font-weight: 600;
}
.sk-loading:empty::before {
  content: "";
  width: 22px; height: 22px;
  border-radius: var(--radius-full);
  border: 3px solid var(--borderField);
  border-top-color: var(--primaryLight);
  animation: sk-spin .8s linear infinite;
}
.sk-loading:empty::after { content: "Carregando…"; }
@keyframes sk-spin { to { transform: rotate(360deg); } }

/* ---------- Carrinho lateral ---------- */
.sk-cart { overflow: hidden; }
.sk-cart-head { padding: var(--space-lg) var(--space-xl); display: flex; align-items: center; gap: var(--space-md); }
.sk-cart-head-ico {
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: var(--radius-full);
  background: var(--vidro); border: 1px solid var(--vidro-borda);
}
.sk-cart-head-ico ion-icon { font-size: 22px; color: var(--on-brand); }
.sk-cart-head h2 { margin: 0; color: var(--on-brand); font-size: 18px; line-height: 24px; }
.sk-cart-head p { margin: 0; font-size: 12px; opacity: .85; color: var(--on-brand); }
.sk-cart-body { max-height: calc(100vh - var(--topbar-h) - 260px); min-height: 120px; overflow-y: auto; }
@media (max-width: 991px) { .sk-cart-body { max-height: none; } }
.sk-cart-item { padding: var(--space-lg) var(--space-xl); border-bottom: 1px solid var(--borderSubtle); }
.sk-cart-item-name { margin: 0 0 2px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--textPrimary); }
.sk-cart-item-meta { margin: 0 0 var(--space-md); font-size: 11px; color: var(--textSubtle); }
.sk-cart-item-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); }
.sk-stepper {
  display: inline-flex; align-items: center;
  height: 36px;
  border: 1px solid var(--borderField);
  border-radius: var(--radius-full);
  background: var(--inputBg);
  overflow: hidden;
}
.sk-stepper > div { display: flex; align-items: center; height: 100%; }
.sk-stepper button {
  display: grid; place-items: center;
  width: 34px; height: 34px; padding: 0;
  border: 0; background: transparent; color: var(--primary); cursor: pointer;
}
.sk-stepper button:hover { background: var(--primary-08); }
.sk-stepper button:disabled { color: var(--textSubtle); opacity: .5; cursor: not-allowed; }
.sk-stepper input {
  width: 46px !important; height: 34px; min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important; border-radius: 0 !important;
  background: transparent !important; box-shadow: none !important;
  text-align: center; font-weight: 600; font-variant-numeric: tabular-nums;
}
.sk-cart-item-total { text-align: right; }
.sk-cart-item-total small { display: block; font-size: 11px; color: var(--textSubtle); }
.sk-cart-item-total strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.sk-cart-item-foot { display: flex; align-items: center; justify-content: space-between; margin-top: var(--space-sm); font-size: 11px; color: var(--textSubtle); }
.sk-link-danger { border: 0; background: transparent; padding: 2px 0; color: var(--error); font-size: 12px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.sk-link-danger:hover { text-decoration: underline; }
.sk-cart-foot { padding: var(--space-lg) var(--space-xl); background: var(--surfaceMuted); }
.sk-total-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--space-md); }
.sk-total-row span { font-size: 12px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; color: var(--textMuted); }
.sk-total-row strong { font-size: 22px; line-height: 28px; color: var(--primary); font-variant-numeric: tabular-nums; }

/* ---------- Tabelas ---------- */
.sk-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sk-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0; }
.sk-table thead th {
  position: sticky; top: 0;
  padding: var(--space-md) var(--space-lg);
  background: var(--surfaceMuted) !important;
  color: var(--textMuted) !important;
  font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase;
  text-align: left; white-space: nowrap;
  border-bottom: 1px solid var(--borderSubtle);
}
.sk-table tbody td, .sk-table tbody th {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--borderSubtle);
  vertical-align: middle;
  font-size: 13px;
  font-weight: 400;
  color: var(--textPrimary);
  background: var(--surface);
}
.sk-table tbody tr:last-child td, .sk-table tbody tr:last-child th { border-bottom: 0; }
.sk-table tbody tr:hover td, .sk-table tbody tr:hover th { background: var(--primary-08); }
.sk-table .sk-right { text-align: right; }
.sk-table .sk-center { text-align: center; }
.sk-table .sk-nowrap { white-space: nowrap; }
.sk-table .sk-mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12px; color: var(--textMuted); }

/* lista em cards no celular */
@media (max-width: 767px) {
  .sk-table-cards thead { display: none; }
  .sk-table-cards, .sk-table-cards tbody, .sk-table-cards tr, .sk-table-cards td { display: block; width: 100%; }
  .sk-table-cards tr { padding: var(--space-md) var(--space-lg); border-bottom: 1px solid var(--borderSubtle); }
  .sk-table-cards tbody td { display: flex; justify-content: space-between; gap: var(--space-md); padding: 4px 0; border: 0; background: transparent !important; text-align: right; }
  .sk-table-cards tbody td::before { content: attr(data-label); font-size: 11px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; color: var(--textMuted); text-align: left; }
  .sk-table-cards tbody td.sk-td-action { padding-top: var(--space-sm); }
  .sk-table-cards tbody td.sk-td-action::before { content: none; }
  .sk-table-cards tbody td.sk-td-action .sk-btn { width: 100%; }
}

/* ---------- Diálogo (padrão DialogoSonik) ---------- */
.modal.sk-dialog, .sk-dialog {
  display: none;
  position: fixed; inset: 0;
  z-index: 1055;
  padding: var(--space-xl) var(--space-lg);
  background: var(--overlay) !important;
  overflow-y: auto;
  align-items: flex-start; justify-content: center;
}
.sk-dialog[style*="block"], .sk-dialog[style*="flex"] { display: flex !important; }
.sk-dialog .modal-content, .sk-dialog-card {
  position: relative;
  width: 100% !important;
  max-width: 960px;
  margin: auto;
  padding: 0;
  background: var(--surface);
  border: 0 !important;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-dialogo);
  overflow: hidden;
  animation: sk-dialog-in .22s ease;
  display: flex; flex-direction: column;
  max-height: calc(100vh - 48px);
}
.sk-dialog-sm .modal-content, .sk-dialog-sm .sk-dialog-card { max-width: 440px; }
.sk-dialog-md .modal-content, .sk-dialog-md .sk-dialog-card { max-width: 720px; }
@keyframes sk-dialog-in { from { opacity: 0; transform: scale(.97) translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sk-dialog .modal-content, .sk-dialog-card { animation: none; } }

.sk-dialog-header {
  display: flex; align-items: center; gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  flex-shrink: 0;
}
.sk-dialog-ico {
  display: grid; place-items: center; flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  background: var(--vidro); border: 1px solid var(--vidro-borda);
}
.sk-dialog-ico ion-icon { font-size: 22px; color: var(--on-brand); }
.sk-dialog-titles { flex: 1; min-width: 0; }
.sk-dialog-title { margin: 0; color: var(--on-brand) !important; font-size: 18px; line-height: 24px; font-weight: 600; }
.sk-dialog-title * { color: var(--on-brand) !important; font-size: inherit !important; line-height: inherit !important; margin: 0 !important; font-weight: 600 !important; }
.sk-dialog-sub { margin: 2px 0 0; color: var(--on-brand); opacity: .85; font-size: 12px; line-height: 16px; }
.sk-dialog-close {
  display: grid; place-items: center; flex-shrink: 0;
  width: 40px; height: 40px; padding: 0;
  border-radius: var(--radius-full);
  background: var(--vidro); border: 1px solid var(--vidro-borda);
  color: var(--on-brand); cursor: pointer;
}
.sk-dialog-close:hover { background: rgba(255,255,255,.28); }
.sk-dialog-body { padding: var(--space-xl); overflow-y: auto; flex: 1 1 auto; color: var(--textPrimary); }
.sk-dialog-footer {
  display: flex; justify-content: flex-end; gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--borderSubtle);
  flex-shrink: 0;
}

/* ---------- Telas de entrada (login, senha) — sempre claras ---------- */
.sk-auth {
  flex: 1 0 auto;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 1fr);
  background: var(--surface);
}
.sk-auth-hero {
  position: relative; overflow: hidden;
  background: var(--sonik-azul-profundo);
  background-image: var(--gradient-hero-login);
  color: var(--on-brand);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--space-xxxl);
}
.sk-auth-hero::before { content: ""; position: absolute; top: -120px; left: -100px; width: 380px; height: 380px; border-radius: var(--radius-full); background: var(--bolha-a); }
.sk-auth-hero::after  { content: ""; position: absolute; bottom: 160px; right: -120px; width: 320px; height: 320px; border-radius: var(--radius-full); background: var(--bolha-b); }
.sk-auth-hero > * { position: relative; z-index: 1; }
.sk-auth-wave { position: absolute !important; left: 0; right: 0; bottom: 0; width: 100%; height: 140px; z-index: 0 !important; }
.sk-auth-wave path { fill: var(--bolha-a); }
.sk-auth-brand { display: flex; flex-direction: column; gap: 4px; }
.sk-auth-brand-title { font-size: 40px; line-height: 48px; font-weight: 600; letter-spacing: -0.5px; }
.sk-auth-brand-sub { font-size: 14px; line-height: 20px; font-weight: 600; opacity: .8; letter-spacing: .3px; text-transform: uppercase; }

/* logo da loja como marca d'água no alto à direita do hero:
   invert + screen faz o fundo branco do JPG sumir e a máscara apaga as bordas */
.sk-auth-watermark {
  position: absolute !important; z-index: 0 !important;
  right: 12%; top: 6%;
  width: min(40%, 360px); aspect-ratio: 1 / 1;
  pointer-events: none; user-select: none;
  mix-blend-mode: screen;
  opacity: .16;
  -webkit-mask-image: radial-gradient(circle at center, #000 58%, transparent 72%);
  mask-image: radial-gradient(circle at center, #000 58%, transparent 72%);
}
.sk-auth-watermark img {
  width: 100%; height: 100%; object-fit: contain;
  filter: grayscale(1) invert(1) contrast(1.3);
}
.sk-auth-pitch { max-width: 520px; }
.sk-auth-logo {
  display: grid; place-items: center;
  width: 128px; height: 128px;
  margin-bottom: var(--space-xl);
  border-radius: var(--radius-full);
  background: var(--on-brand);
  overflow: hidden;
  box-shadow: 0 0 0 8px var(--vidro);
}
.sk-auth-logo img { width: 100%; height: 100%; object-fit: contain; }
.sk-auth-pitch h1 { color: var(--on-brand); font-size: 36px; line-height: 44px; margin: 0 0 var(--space-md); }
.sk-auth-pitch p { color: var(--on-brand); opacity: .85; font-size: 16px; line-height: 24px; margin: 0; }
.sk-auth-features { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }
.sk-auth-feature {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: var(--vidro); border: 1px solid var(--vidro-borda);
  font-size: 13px; font-weight: 600;
}
.sk-auth-copy { font-size: 12px; opacity: .75; }
.sk-auth-copy a { color: var(--on-brand); text-decoration: underline; }

.sk-auth-panel { display: flex; align-items: center; justify-content: center; padding: var(--space-xxxl) var(--space-xl); background: var(--bg); }
.sk-auth-card {
  width: 100%; max-width: 440px;
  padding: var(--space-xxl);
  background: var(--surface);
  border: 1px solid var(--borderSubtle);
  border-radius: var(--radius-xl);
}
.sk-auth-card h2 { margin: 0 0 4px; font-size: 24px; line-height: 32px; }
.sk-auth-card .sk-auth-lead { margin: 0 0 var(--space-xl); color: var(--textMuted); font-size: 14px; }
.sk-auth-card input { width: 100%; min-height: 50px !important; }
.sk-auth-links { display: flex; flex-wrap: wrap; justify-content: center; text-align: center; gap: 2px 6px; margin-top: var(--space-lg); font-size: 13px; color: var(--textMuted); }
.sk-auth-links a { font-weight: 600; }
.sk-auth-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; margin-bottom: var(--space-lg); }
.sk-auth-mobile-head { display: none; }
.sk-auth .sk-alert { margin-top: var(--space-lg); }
.sk-countdown { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 991px) {
  .sk-auth { grid-template-columns: 1fr; min-height: 100vh; background: var(--bg); }
  .sk-auth-hero { padding: var(--space-xl) var(--space-xl) 96px; min-height: 0; }
  .sk-auth-hero::after { bottom: 20px; }
  .sk-auth-wave { height: 60px; }
  .sk-auth-pitch h1 { font-size: 24px; line-height: 32px; }
  .sk-auth-pitch p { font-size: 14px; line-height: 20px; }
  .sk-auth-brand-title { font-size: 28px; line-height: 34px; }
  .sk-auth-brand-sub { font-size: 12px; }
  .sk-auth-pitch { margin-top: var(--space-xl); }
  .sk-auth-watermark { width: 200px; right: -24px; top: 8px; }
  .sk-auth-features, .sk-auth-copy { display: none; }
  .sk-auth-panel { padding: 0 var(--space-lg) var(--space-xxl); margin-top: -64px; position: relative; z-index: 2; background: transparent; align-items: flex-start; }
  .sk-auth-card { padding: var(--space-xl); }
}

/* ---------- Checkout ---------- */
.sk-steps { display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; margin-bottom: var(--space-xl); }
.sk-step { display: inline-flex; align-items: center; gap: var(--space-sm); font-size: 13px; font-weight: 600; color: var(--textSubtle); }
.sk-step-num {
  display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--borderField); background: var(--surface);
  font-size: 12px;
}
.sk-step.done { color: var(--success); }
.sk-step.done .sk-step-num { border-color: var(--success); background: var(--success-12); color: var(--success); }
.sk-step.active { color: var(--primary); }
.sk-step.active .sk-step-num { border-color: transparent; background: var(--gradient-botao-primario); color: var(--on-brand); }
.sk-step-line { width: 40px; height: 2px; border-radius: 2px; background: var(--borderField); }
.sk-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--space-xl); align-items: start; }
.sk-checkout-aside { position: sticky; top: calc(var(--topbar-h) + var(--space-lg)); }
@media (max-width: 991px) { .sk-checkout { grid-template-columns: 1fr; } .sk-checkout-aside { position: static; order: -1; } }
.sk-summary-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md); padding: 8px 0; font-size: 13px; color: var(--textMuted); }
.sk-summary-row strong { color: var(--textPrimary); font-variant-numeric: tabular-nums; font-size: 14px; }
.sk-summary-row.sk-pos strong { color: var(--success); }
.sk-summary-row.sk-neg strong { color: var(--error); }
.sk-summary-sep { height: 1px; background: var(--borderSubtle); margin: var(--space-sm) 0; }
.sk-summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: var(--space-md); }
.sk-summary-total span { font-size: 12px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; color: var(--textMuted); }
.sk-summary-total strong { font-size: 24px; line-height: 30px; color: var(--primary); font-variant-numeric: tabular-nums; }
.sk-summary-title { display: flex; align-items: center; gap: var(--space-sm); font-size: 11px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; color: var(--textMuted); margin: var(--space-lg) 0 var(--space-xs); }
.sk-summary-title:first-child { margin-top: 0; }
.sk-form-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-lg); align-items: end; }
.sk-form-grid > * { grid-column: span 12; }
.sk-form-grid select, .sk-form-grid input:not([type="checkbox"]) { width: 100%; }
@media (min-width: 768px) {
  .sk-col-3 { grid-column: span 3 !important; } .sk-col-4 { grid-column: span 4 !important; }
  .sk-col-5 { grid-column: span 5 !important; } .sk-col-6 { grid-column: span 6 !important; }
  .sk-col-2 { grid-column: span 2 !important; } .sk-col-8 { grid-column: span 8 !important; }
}
.sk-actions { display: flex; justify-content: flex-end; align-items: center; gap: var(--space-md); flex-wrap: wrap; }
.sk-option-card {
  display: flex; align-items: center; gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--borderField); border-radius: var(--radius-lg);
  background: var(--inputBg);
  min-height: 44px; cursor: pointer;
}

/* resultado da compra */
.sk-result { max-width: 560px; margin: var(--space-xxl) auto; text-align: center; overflow: hidden; }
.sk-result-top { padding: var(--space-xxl) var(--space-xl); }
.sk-result-ico {
  display: grid; place-items: center; margin: 0 auto var(--space-lg);
  width: 72px; height: 72px; border-radius: var(--radius-full);
  background: var(--vidro); border: 1px solid var(--vidro-borda);
}
.sk-result-ico ion-icon { font-size: 36px; color: var(--on-brand); }
.sk-result-top h1 { color: var(--on-brand); font-size: 24px; line-height: 32px; margin: 0 0 4px; }
.sk-result-top p { color: var(--on-brand); opacity: .85; margin: 0; }
.sk-result-body { padding: var(--space-xl); }
.sk-result-body img { max-height: 72px; margin: var(--space-md) auto 0; display: block; border-radius: var(--radius-lg); }

/* ---------- Rodapé ---------- */
.sk-footer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1025;
  min-height: var(--footer-h);
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  border-top: 1px solid var(--borderSubtle);
  color: var(--textMuted);
  font-size: 11px; line-height: 16px;
}
.sk-app-page { padding-bottom: calc(var(--footer-h) + var(--space-lg)); }
@media (max-width: 575px) {
  :root { --footer-h: 36px; }
  .sk-footer-inner { justify-content: center; text-align: center; padding: 3px var(--space-lg); line-height: 15px; }
}
.sk-footer-inner {
  max-width: 1440px; margin: 0 auto; min-height: var(--footer-h);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px var(--space-md);
  padding: 0 var(--space-xl);
}
.sk-footer a { color: var(--primary); font-weight: 600; }
.sk-footer-brand { display: inline-flex; align-items: center; gap: var(--space-sm); }
.sk-footer-brand img { width: 16px; height: 16px; object-fit: contain; }
.sk-auth-page .sk-footer { display: none; }

/* ---------- Legado: mantém marcações antigas dentro do tema ---------- */
.float-right { float: right !important; }
.float-left { float: left !important; }
.text-right { text-align: right !important; }
.text-left { text-align: left !important; }
.ml-auto { margin-left: auto !important; }
.mr-auto { margin-right: auto !important; }
.center { text-align: center; }
.table { --bs-table-bg: var(--surface); --bs-table-striped-bg: var(--surfaceMuted); --bs-table-hover-bg: var(--primary-08); color: var(--textPrimary); }
.table > thead { background: var(--surfaceMuted) !important; }
.table > thead th { color: var(--textMuted) !important; font-size: 11px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; border-bottom-color: var(--borderSubtle); }
.produto-individual { border: 1px solid var(--borderSubtle) !important; border-radius: var(--radius-lg); background: var(--surface); box-shadow: none !important; }
.produto-individual:hover { border-color: rgba(0,120,215,.35) !important; box-shadow: none !important; }
.pedido-destacado:hover, .financeiro-destacado:hover { box-shadow: none !important; border: 0 !important; }
.tooltipportal { position: relative; display: inline-block; }
.tooltipportal .tooltiptextportal {
  visibility: hidden; opacity: 0;
  position: absolute; z-index: 5; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  width: auto; height: auto; min-width: 90px; white-space: nowrap;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--textPrimary); color: var(--on-brand);
  font-size: 12px !important; line-height: 16px !important; font-weight: 600;
  text-align: center; margin: 0;
  transition: opacity .15s ease;
}
.tooltipportal .tooltiptextportal::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--textPrimary); }
.tooltipportal:hover .tooltiptextportal { visibility: visible; opacity: 1; }
.foto-ativa { outline: 2px solid var(--primaryLight); outline-offset: 2px; border-radius: var(--radius-sm); }

/* =====================================================================
   Microinterações, vidro fosco, bento e interface inteligente
   ===================================================================== */

/* topo em vidro fosco ao rolar a página */
.sk-topbar { transition: background-color .2s ease, box-shadow .2s ease; }
.sk-topbar.sk-scrolled {
  background: rgba(0,78,142,.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}

/* vidro fosco nos elementos "vidro" sobre o azul */
.sk-store-pill, .sk-avatar, .sk-auth-feature, .sk-dialog-ico, .sk-cart-head-ico, .sk-result-ico,
.sk-topbar .sk-icon-btn, .sk-search-hero .sk-btn-vidro {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* spinner */
.sk-spinner {
  display: inline-block; width: 18px; height: 18px;
  border-radius: var(--radius-full);
  border: 2.5px solid rgba(255,255,255,.4);
  border-top-color: var(--on-brand);
  animation: sk-spin .7s linear infinite;
}

/* ondulação ao clicar */
.sk-btn, .btn { position: relative; overflow: hidden; isolation: isolate; }
.sk-ripple {
  position: absolute; z-index: -1; pointer-events: none;
  border-radius: var(--radius-full);
  background: currentColor; opacity: .18;
  transform: scale(0);
  animation: sk-ripple .55s ease-out forwards;
}
@keyframes sk-ripple { to { transform: scale(2.4); opacity: 0; } }

/* botão "Adicionado" */
.sk-added { background: var(--success) !important; background-image: none !important; animation: sk-pop .35s ease; }
@keyframes sk-pop { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }
.sk-msg-ok { color: var(--success) !important; }

/* carrinho pulsa ao receber item */
.sk-bump { animation: sk-bump .5s ease; }
@keyframes sk-bump { 0% { transform: none; } 30% { transform: translateY(-4px); border-color: var(--success); } 100% { transform: none; } }

/* toasts */
.sk-toasts {
  position: fixed; z-index: 2000;
  right: var(--space-xl); bottom: calc(var(--footer-h) + var(--space-lg));
  display: flex; flex-direction: column; gap: var(--space-sm);
  pointer-events: none;
}
.sk-toast {
  display: flex; align-items: center; gap: var(--space-sm);
  min-width: 260px; max-width: 380px;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  background: rgba(26,35,50,.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--on-brand);
  font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-dialogo);
  opacity: 0; transform: translateY(12px) scale(.98);
  transition: opacity .25s ease, transform .25s cubic-bezier(.2,.9,.3,1.2);
}
.sk-toast.show { opacity: 1; transform: none; }
.sk-toast ion-icon { font-size: 22px; }
.sk-toast-success ion-icon { color: #4fd8a4; }
.sk-toast-error ion-icon { color: #ff8a8a; }
.sk-toast-warning ion-icon { color: #ffc768; }
.sk-toast-info ion-icon { color: #7cc0ff; }
@media (max-width: 575px) { .sk-toasts { left: var(--space-lg); right: var(--space-lg); bottom: calc(var(--footer-h) + var(--space-md)); } .sk-toast { max-width: none; } }

/* logo 3D no login */
.sk-tilt { transition: transform .18s ease-out; transform-style: preserve-3d; will-change: transform; }

/* tipografia gigante decorativa (só no hero de entrada) */
.sk-auth-hero .sk-auth-giant {
  position: absolute !important; z-index: 0 !important;
  right: -0.06em; bottom: 0.38em;
  font-size: clamp(120px, 16vw, 260px); line-height: .8; font-weight: 600;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,.05);
  pointer-events: none; user-select: none; white-space: nowrap;
}
@media (max-width: 991px) { .sk-auth-hero .sk-auth-giant { display: none; } }

/* buscas recentes */
.sk-recent { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md); }
.sk-recent[hidden] { display: none; }
.sk-recent-label { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--on-brand); opacity: .85; margin-right: 2px; }
.sk-recent-label ion-icon { font-size: 16px; }
.sk-recent-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px;
  border-radius: var(--radius-full);
  background: var(--vidro); border: 1px solid var(--vidro-borda);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--on-brand); font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: background-color .15s ease, transform .12s ease;
}
.sk-recent-chip:hover { background: rgba(255,255,255,.3); }
.sk-recent-chip:active { transform: scale(.95); }
.sk-recent-chip ion-icon { font-size: 14px; }
.sk-recent-chip.sk-freq { background: rgba(255,255,255,.26); }
.sk-recent-clear { border: 0; background: transparent; color: var(--on-brand); opacity: .75; font-size: 12px; font-weight: 600; text-decoration: underline; cursor: pointer; }
.sk-recent-clear:hover { opacity: 1; }

/* bento grid (resumos) */
.sk-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-md); margin-bottom: var(--space-xl); }
.sk-bento-item {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-md);
  min-height: 120px;
  padding: var(--space-lg) var(--space-xl);
  background: var(--surface);
  border: 1px solid var(--borderSubtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.sk-bento-item.sk-wide { grid-column: span 2; }
.sk-bento-item.sk-fundo { border-color: transparent; background: var(--sonik-azul); background-image: var(--gradient-fundo-sonik); }
.sk-bento-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); }
.sk-bento-label { font-size: 11px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; color: var(--textMuted); }
.sk-bento-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-full); background: var(--primary-08); color: var(--primary); }
.sk-bento-ico ion-icon { font-size: 18px; }
.sk-bento-value { font-size: 26px; line-height: 32px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--textPrimary); }
.sk-bento-value small { font-size: 14px; margin-right: 2px; }
.sk-bento-foot { font-size: 12px; color: var(--textMuted); }
.sk-bento-item.sk-fundo .sk-bento-label, .sk-bento-item.sk-fundo .sk-bento-value, .sk-bento-item.sk-fundo .sk-bento-foot { color: var(--on-brand); }
.sk-bento-item.sk-fundo .sk-bento-foot { opacity: .85; }
.sk-bento-item.sk-fundo .sk-bento-ico { background: var(--vidro); border: 1px solid var(--vidro-borda); color: var(--on-brand); }
.sk-bento-item.sk-tone-success .sk-bento-ico { background: var(--success-12); color: var(--success); }
.sk-bento-item.sk-tone-success .sk-bento-value { color: var(--success); }
.sk-bento-item.sk-tone-error .sk-bento-ico { background: var(--error-12); color: var(--error); }
.sk-bento-item.sk-tone-error .sk-bento-value { color: var(--error); }
.sk-bento-item.sk-tone-warning .sk-bento-ico { background: var(--warning-12); color: var(--warning); }
.sk-bento-item.sk-tone-warning .sk-bento-value { color: var(--warning); }
@media (max-width: 991px) { .sk-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .sk-bento { grid-template-columns: 1fr; } .sk-bento-item.sk-wide { grid-column: auto; } }

/* entrada suave das listas carregadas por AJAX */
.sk-product, .sk-cart-item, .sk-bento-item { animation: sk-fade-up .35s ease both; }
.sk-product:nth-child(2) { animation-delay: .03s; } .sk-product:nth-child(3) { animation-delay: .06s; }
.sk-product:nth-child(4) { animation-delay: .09s; } .sk-product:nth-child(5) { animation-delay: .12s; }
.sk-bento-item:nth-child(2) { animation-delay: .04s; } .sk-bento-item:nth-child(3) { animation-delay: .08s; } .sk-bento-item:nth-child(4) { animation-delay: .12s; }
@keyframes sk-fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* botão flutuante do carrinho (celular/tablet) */
.sk-cart-fab {
  display: none;
  position: fixed; z-index: 1020; right: var(--space-lg); bottom: calc(var(--footer-h) + var(--space-md));
  align-items: center; gap: var(--space-sm);
  height: 52px; padding: 0 var(--space-xl);
  border-radius: var(--radius-full);
  background: rgba(0,78,142,.88);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  border: 1px solid var(--vidro-borda);
  color: var(--on-brand) !important; font-weight: 600;
  box-shadow: var(--shadow-dialogo);
  transition: transform .12s ease;
}
.sk-cart-fab:active { transform: scale(.95); }
@media (max-width: 991px) { .sk-cart-fab { display: inline-flex; } }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 16px); }

/* reduz movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* Honeypot anti-bot do login: fora da tela, sem ocupar espaço */
.sk-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
