/* ISI - Shop — estilos (loja e administração) */
:root {
  --navy: #0B2545;
  --blue: #1B5FB8;
  --blue-soft: #EEF3FA;
  --ink: #111418;
  --text-2: #3A4250;
  --muted: #4A5260;
  --line: #E6E8EC;
  --line-2: #CDD2DA;
  --bg-soft: #F3F4F6;
  --bg-admin: #F4F5F7;
  --ok-bg: #E3F4EA; --ok: #1E6B44;
  --warn-bg: #FFF1CC; --warn: #6B4100;
  --info-bg: #E4EEFB; --info: #12457F;
  --err-bg: #FDE7E7; --err: #8A1C1C;
  --r: 10px; --r-lg: 14px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--ink); background: #fff; }
body.no-scroll { overflow: hidden; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 800; }
h2 { font-size: 20px; font-weight: 800; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.strong { font-weight: 700; }
.nowrap { white-space: nowrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.center { align-self: center; }
.r { text-align: right; }
.icon { width: 22px; height: 22px; flex: none; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 920px; margin: 0 auto; padding: 0 24px; }
.section { padding-top: 32px; padding-bottom: 72px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-sm { display: flex; flex-direction: column; gap: 4px; }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-wrap { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.eyebrow { font-size: 13px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .08em; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; }
.logo-mark { width: 36px; height: 36px; border-radius: 9px; background: var(--navy); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; letter-spacing: -1px; }
.logo-mark span:first-child { color: #fff; } .logo-mark span:last-child { color: #9CC8FF; }
.logo-mark--dark { background: #fff; } .logo-mark--dark span:first-child { color: var(--blue); } .logo-mark--dark span:last-child { color: #6B7787; }
.logo-text { font-size: 20px; font-weight: 800; }
.logo-text b { color: var(--blue); }

/* Botões e campos */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r); border: 1px solid transparent; font-weight: 700; font-size: 15px; text-decoration: none !important; background: none; }
.btn-dark { background: var(--ink); color: #fff; } .btn-dark:hover { background: #2A3038; color: #fff; }
.btn-primary { background: var(--blue); color: #fff; } .btn-primary:hover { background: #154C94; color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: #fff; } .btn-outline:hover { background: var(--bg-soft); color: var(--ink); }
.btn-ghost { color: var(--ink); } .btn-ghost:hover { background: var(--bg-soft); color: var(--ink); }
.btn-danger { border-color: #E3B4B4; color: var(--err); background: #fff; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn-lg { min-height: 52px; font-size: 16px; }
.btn-xl { min-height: 56px; font-size: 17px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn:disabled, button:disabled { opacity: .55; cursor: progress; }
.linkbtn { border: 0; background: none; padding: 0; min-height: 40px; color: var(--muted); text-decoration: underline; font-size: 13px; }
.iconbtn { width: 44px; height: 44px; border: 0; background: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; }
.iconbtn:hover { background: var(--bg-soft); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, label.lbl { font-size: 13px; font-weight: 600; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], input[type=file], select, textarea {
  min-height: 46px; border: 1px solid var(--line-2); border-radius: var(--r); padding: 0 14px; background: #fff; width: 100%; }
textarea { padding: 12px 14px; resize: vertical; }
input[type=file] { padding: 10px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { padding: 0; margin-bottom: 12px; }

/* Pílulas e mensagens */
.pill { display: inline-block; border-radius: 99px; padding: 3px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-info { background: var(--info-bg); color: var(--info); }
.pill-muted { background: #ECEEF1; color: var(--muted); }
.flash { padding: 12px 16px; border-radius: var(--r); font-weight: 600; font-size: 14px; }
.flash-ok { background: var(--ok-bg); color: var(--ok); }
.flash-info { background: var(--info-bg); color: var(--info); }
.flash-err { background: var(--err-bg); color: var(--err); }
.store main > .flash { max-width: 1232px; margin: 16px auto 0; }
.empty { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px; text-align: center; color: var(--muted); }
.box { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; background: #fff; }
.boxline { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }

/* Cabeçalho da loja */
.topbar { background: var(--navy); color: #fff; font-size: 13px; text-align: center; padding: 8px 16px; }
.previewbar { background: var(--warn-bg); color: var(--warn); font-size: 13px; text-align: center; padding: 8px 16px; }
.previewbar a { color: var(--warn); text-decoration: underline; }
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; padding-top: 14px; padding-bottom: 10px; }
.searchbox { flex: 1 1 320px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 99px; padding: 0 16px; height: 46px; color: var(--muted); }
.searchbox input { border: 0; min-height: 40px; padding: 0; background: transparent; color: var(--ink); }
.searchbox input:focus { outline: none; }
.searchbox:focus-within { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.header-actions { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.hbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 0; background: none; border-radius: 8px; color: var(--ink); font-size: 14px; font-weight: 600; }
.hbtn:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.hbtn-muted { color: var(--muted); font-weight: 500; }
.cart-btn { position: relative; width: 48px; height: 48px; border: 0; background: none; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; }
.cart-btn:hover { background: var(--bg-soft); }
.cart-btn .icon { width: 24px; height: 24px; }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 20px; height: 20px; border-radius: 99px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.collections { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.collections a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--muted); font-size: 14px; font-weight: 500; white-space: nowrap; }
.collections a:hover { color: var(--ink); text-decoration: none; }
.collections a.on { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--ink); }

/* Montra */
.hero { background: var(--blue-soft); }
.hero-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding-top: 40px; padding-bottom: 40px; }
.hero-text { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.hero-text h1 { color: var(--navy); }
.hero-text p { margin: 0; color: var(--text-2); font-size: 16px; }
.hero-card { background: #fff; border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 0 1 360px; min-width: 260px; }
.list-head { margin-bottom: 24px; }
.sort { display: flex; align-items: center; gap: 8px; }
.sort label { font-size: 14px; color: var(--muted); white-space: nowrap; }
.sort select { min-height: 44px; width: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px 20px; }
.card-prod { display: flex; flex-direction: column; gap: 10px; }
.prod-media { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; border-radius: var(--r-lg); background: var(--bg-soft); overflow: hidden; }
.prod-media .media { width: 100%; height: 100%; object-fit: contain; }
.prod-media .media-ph { width: 58%; height: 58%; }
.prod-media:hover .media { transform: scale(1.03); transition: transform .25s ease; }
.tag-dark { position: absolute; top: 12px; left: 12px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; border-radius: 99px; padding: 3px 10px; }
.prod-info { display: flex; flex-direction: column; gap: 2px; }
.prod-name { color: var(--ink); font-weight: 600; }
.prod-name:hover { color: var(--blue); }
.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price { font-size: 18px; font-weight: 800; }
.price-row.big .price { font-size: 30px; }
.qty { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--ink); border-radius: var(--r); overflow: hidden; min-height: 44px; }
.qty button { width: 46px; height: 44px; border: 0; background: var(--bg-soft); font-size: 18px; font-weight: 700; }
.qty button:hover { background: #E4E7EB; }
.qty span { font-weight: 700; font-size: 14px; flex: 1; text-align: center; }
.qty.block span::after { content: ' no carrinho'; font-weight: 600; }
.qty.small { border-color: var(--line-2); min-height: 40px; width: 128px; }
.qty.small button { width: 40px; height: 40px; background: #fff; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--line-2); color: var(--ink); }
.pager span { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Artigo */
.crumbs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.product-row { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.product-media { flex: 1 1 420px; max-width: 100%; aspect-ratio: 1 / 1; background: var(--bg-soft); border-radius: 18px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-media .media { width: 100%; height: 100%; object-fit: contain; }
.product-media .media-ph { width: 50%; height: 50%; }
.product-info { flex: 1 1 380px; min-width: 0; }
.desc { color: var(--text-2); }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.qty-input { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; height: 52px; }
.qty-input button { width: 48px; height: 52px; border: 0; background: #fff; font-size: 20px; }
.qty-input input { width: 64px; min-height: 50px; border: 0; border-radius: 0; text-align: center; font-weight: 700; padding: 0; -moz-appearance: textfield; }
.qty-input input::-webkit-inner-spin-button { -webkit-appearance: none; }
.specs { margin: 8px 0 0; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px 16px; border-top: 1px solid var(--line); padding-top: 16px; font-size: 14px; }
.specs dt { color: var(--muted); } .specs dd { margin: 0; }

/* Carrinho lateral */
.drawer { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: flex-end; }
.drawer-backdrop { position: absolute; inset: 0; border: 0; background: rgba(17, 20, 24, .45); cursor: default; }
.drawer-panel { position: relative; width: 440px; max-width: 100%; height: 100%; background: #fff; display: flex; flex-direction: column; box-shadow: -8px 0 24px rgba(0, 0, 0, .12); animation: slidein .2s ease-out; }
@keyframes slidein { from { transform: translateX(40px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .drawer-panel { animation: none; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow-y: auto; padding: 4px 24px 0; display: flex; flex-direction: column; }
.drawer-empty { color: var(--muted); padding: 40px 0; text-align: center; }
.dline { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid #F0F1F3; }
.dline-media { width: 72px; height: 72px; border-radius: var(--r); background: var(--bg-soft); object-fit: contain; flex: none; padding: 8px; }
.dline-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dline-top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.dline-name { font-weight: 600; }
.dline-actions { display: flex; align-items: center; gap: 12px; }
.drawer-foot { margin-top: auto; position: sticky; bottom: 0; background: #fff; padding: 16px 0 20px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); }
.big { font-size: 17px; }
.drawer-foot p { margin: 0; }

/* Checkout */
.checkout { display: flex; flex-wrap: wrap; min-height: 70vh; }
.checkout-main { flex: 999 1 560px; min-width: 0; padding: 32px 24px 64px; max-width: 700px; margin-left: auto; }
.checkout-side { flex: 1 1 380px; background: #F6F7F9; border-left: 1px solid var(--line); padding: 32px 24px; }
.checkout-side > .stack { max-width: 440px; position: sticky; top: 140px; }
.radio-card { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); cursor: pointer; }
.radio-card:has(input:checked) { border: 2px solid var(--ink); background: #F6F7F9; padding: 13px 15px; }
.radio-card input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; }
.radio-card > span { display: flex; flex-direction: column; }
.sumline { display: flex; align-items: center; gap: 14px; }
.sum-media { position: relative; width: 60px; height: 60px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex: none; }
.sum-media .media { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.sum-qty { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; border-radius: 99px; background: var(--muted); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 6px; }
.totals { border-top: 1px solid #DCE0E6; padding-top: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.total-big { font-size: 20px; }

/* Confirmação / encomendas */
.done-head { display: flex; align-items: center; gap: 16px; }
.done-check { width: 56px; height: 56px; border-radius: 99px; border: 2px solid var(--blue); color: var(--blue); display: flex; align-items: center; justify-content: center; flex: none; }
.done-check .icon { width: 28px; height: 28px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.info-grid > div { display: flex; flex-direction: column; gap: 2px; }
.info-grid b { font-weight: 600; }
.order-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }

/* Tabelas */
.table-scroll { overflow-x: auto; padding: 0; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); background: #FAFBFC; padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid #F0F1F3; vertical-align: middle; }
.table tfoot td { border-bottom: 0; padding: 6px 16px; }
.table tr:last-child td { border-bottom: 0; }
.table th.r, .table td.r { text-align: right; }
.table .thumb { width: 44px; height: 44px; border-radius: 8px; background: var(--bg-soft); object-fit: contain; padding: 4px; }

/* Rodapé */
.site-footer { border-top: 1px solid var(--line); padding: 24px 0; }

/* Login */
.login-split { min-height: 100vh; display: flex; flex-wrap: wrap; }
.login-brand { flex: 1 1 420px; background: var(--navy); color: #fff; padding: 56px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.login-brand .logo { color: #fff; }
.login-brand .logo-text b { color: #9CC8FF; }
.login-brand h1 { font-size: clamp(30px, 4vw, 44px); max-width: 480px; }
.login-brand p { color: #C9D6EA; font-size: 17px; max-width: 460px; }
.login-points { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; color: #C9D6EA; }
.login-form { flex: 1 1 420px; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.login-form form { width: 100%; max-width: 380px; }
.login-form h2 { font-size: 28px; }
.login-form p { margin: 0; }
.install { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--bg-admin); }
.install .card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; max-width: 560px; width: 100%; display: flex; flex-direction: column; gap: 16px; }

/* Administração */
body.admin { background: var(--bg-admin); }
.admin-shell { min-height: 100vh; display: flex; flex-wrap: wrap; }
.admin-side { flex: 1 1 240px; max-width: 100%; background: var(--navy); color: #fff; padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; }
.admin-side .logo { color: #fff; padding: 4px 10px 20px; }
.admin-side .logo-text b { color: #9CC8FF; }
.admin-side nav { display: flex; flex-direction: column; gap: 2px; }
.admin-side nav a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 8px; color: #C9D6EA; font-size: 14px; }
.admin-side nav a:hover { background: #163460; color: #fff; text-decoration: none; }
.admin-side nav a.on { background: var(--blue); color: #fff; font-weight: 700; }
.badge { margin-left: auto; background: #F2C200; color: var(--ink); font-size: 12px; font-weight: 800; border-radius: 99px; padding: 1px 8px; }
.admin-side-foot { margin-top: 16px; border-top: 1px solid #23406B; padding-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.admin-side-foot a, .admin-side-foot button { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: #C9D6EA; font-size: 14px; text-align: left; width: 100%; }
.admin-side-foot a:hover, .admin-side-foot button:hover { background: #163460; color: #fff; text-decoration: none; }
.admin-side-foot .small { padding: 8px 12px 0; }
.muted-on-dark { color: #B8C4D6; font-weight: 500; }
.admin-main { flex: 999 1 640px; min-width: 0; padding: 28px 28px 64px; display: flex; flex-direction: column; gap: 20px; }
.admin-title h1 { font-size: 26px; }
.panel { background: #fff; border: 1px solid #E3E6EA; border-radius: var(--r-lg); }
.panel-head { padding: 14px 20px; border-bottom: 1px solid #E3E6EA; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.panel-head h2 { font-size: 16px; }
.panel-body { padding: 20px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.kpi { background: #fff; border: 1px solid #E3E6EA; border-radius: var(--r-lg); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.kpi span:first-child { font-size: 13px; color: var(--muted); font-weight: 600; }
.kpi b { font-size: 28px; font-weight: 800; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.filters .field { flex: 1 1 200px; }
.filters select, .filters input { min-height: 44px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-size: 14px; }
.chip:hover { text-decoration: none; background: var(--bg-soft); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.toggle { min-height: 36px; padding: 0 12px; border-radius: 99px; font-size: 13px; font-weight: 700; border: 1px solid var(--line-2); background: #fff; color: var(--muted); }
.toggle.on { border-color: var(--ok); background: var(--ok-bg); color: var(--ok); }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form select, .inline-form input { width: auto; min-height: 38px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; align-items: end; }
.warn-box { background: var(--warn-bg); color: var(--warn); border-radius: var(--r); padding: 12px 16px; font-size: 14px; }
.warn-box a { color: var(--warn); text-decoration: underline; font-weight: 700; }
.chk { width: 20px; height: 20px; accent-color: var(--blue); cursor: pointer; vertical-align: middle; }
.table label { cursor: pointer; }
.table tr.changed td { background: #FFF8E1; }
.btn-attn { background: var(--blue) !important; border-color: var(--blue) !important; color: #fff !important; box-shadow: 0 0 0 3px rgba(27, 95, 184, .25); }
.filters > .btn { align-self: flex-end; flex: none; }
#filtros .field { flex: 1 1 140px; min-width: 0; }
#filtros .field:first-child { flex: 2 1 200px; }
#filtros .field.pp { flex: 0 0 96px; }
.table th label, .table td.mono { white-space: nowrap; }
.code { font-family: var(--mono); font-size: 13px; background: var(--bg-soft); padding: 2px 6px; border-radius: 4px; }

@media (max-width: 720px) {
  .wrap, .narrow { padding: 0 16px; }
  .site-header { position: static; }
  .hbtn:has(.icon) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hero-row { padding-top: 24px; padding-bottom: 28px; }
  .login-brand { padding: 32px 24px; }
  .checkout-side { border-left: 0; border-top: 1px solid var(--line); }
  .checkout-side > .stack { position: static; }
  .admin-main { padding: 20px 16px 48px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .qty.block span::after { content: ''; }
}

/* ---------- 1.0.9 ---------- */
.ver-badge { display: inline-flex; align-items: center; margin-left: 2px; padding: 2px 8px; border-radius: 99px; background: var(--blue-soft); color: var(--navy); font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.admin-side .ver-badge { background: #163460; color: #C9D6EA; }
.side-version { display: inline-flex; align-self: flex-start; margin: -12px 10px 14px; padding: 3px 10px; border-radius: 99px; background: #163460; color: #C9D6EA !important; font-size: 12px; font-weight: 700; }
.side-version:hover { background: var(--blue); color: #fff !important; text-decoration: none; }
.tag-blue { position: absolute; top: 12px; left: 12px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; border-radius: 99px; padding: 3px 10px; }
.portes-hint { margin: 0; padding: 8px 12px; border-radius: 8px; background: var(--ok-bg); color: var(--ok); }
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 20px; background: #FAFBFC; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 28px; }
.footer-grid b { color: var(--ink); }
.footer-grid a { color: var(--text-2); }
.footer-grid a:hover { color: var(--blue); }
.footer-links { display: flex; flex-direction: column; gap: 4px; }
.livro { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 4px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; color: var(--ink) !important; font-size: 13px; font-weight: 700; }
.livro::before { content: ''; width: 14px; height: 18px; border-radius: 2px; background: #C8102E; box-shadow: inset -3px 0 0 #8E0B20; }
.footer-ral { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.footer-bottom { margin-top: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid #E3E6EA; flex-wrap: wrap; }
.tabs a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--ink); }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px 20px; }
.kv .field input, .kv .field select, .kv .field textarea { min-height: 40px; }
.kv-ro { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr); gap: 6px 16px; font-size: 14px; }
.kv-ro dt { color: var(--muted); font-family: var(--mono); font-size: 12px; padding-top: 2px; }
.kv-ro dd { margin: 0; word-break: break-word; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.media-card { background: #fff; border: 1px solid #E3E6EA; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.media-card.sel { outline: 3px solid var(--blue); outline-offset: -1px; }
.media-thumb { aspect-ratio: 1 / 1; background: var(--bg-soft) center/contain no-repeat; display: block; position: relative; }
.media-thumb input { position: absolute; top: 8px; left: 8px; }
.media-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.media-body b { word-break: break-all; }
.dup-row td { background: #FFF8E1; }
.footer-ral { border-top: 0; padding-top: 0; }
.footer-ral::before { content: ''; display: block; border-top: 1px solid var(--line); margin-bottom: 16px; }

/* ---------- 1.2.0 ---------- */
.tag-promo { position: absolute; top: 12px; left: 12px; background: #B42318; color: #fff; font-size: 12px; font-weight: 700; border-radius: 99px; padding: 3px 10px; }
.pill-promo { background: #FEE4E2; color: #912018; }
.promo-fim { color: #912018; font-weight: 600; margin-top: -4px; }
.promo-strip { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.filter-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 99px; font-size: 14px; font-weight: 600; color: var(--ink) !important; cursor: pointer; white-space: nowrap; }
.filter-toggle:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); color: var(--navy) !important; }
.sort { flex-wrap: wrap; justify-content: flex-end; }

/* Versão no painel de login (1.2.0) */
.login-brand .ver-badge { background: rgba(255,255,255,.14); color: #fff; }
.login-version { margin-top: 4px; text-align: center; }
