:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #10213a;
  background: #f4f7fb;
  --blue: #0669ff;
  --cyan: #00bfe8;
  --dark: #071d3b;
  --dark-2: #0c2d57;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --line: #dce5f0;
  --muted: #66758a;
  --success: #07834e;
  --warning: #a66b00;
  --danger: #b42334;
  --shadow: 0 18px 45px rgba(20, 42, 74, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #f4f7fb; }
body[style*="overflow: hidden"] { padding-right: 0 !important; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }

/* Login */
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 560px) 1fr; background: #fff; }
.login-panel { padding: clamp(28px, 6vw, 78px); display: flex; flex-direction: column; justify-content: center; }
.login-visual { position: relative; display: grid; place-items: center; padding: 50px; overflow: hidden; color: #fff; background: radial-gradient(circle at 75% 25%, rgba(0,191,232,.65), transparent 28%), linear-gradient(145deg, #071d3b, #0646a9 65%, #00bfe8); }
.login-visual::before, .login-visual::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.login-visual::before { width: 520px; height: 520px; right: -120px; top: -150px; }
.login-visual::after { width: 340px; height: 340px; left: -80px; bottom: -90px; }
.visual-card { position: relative; z-index: 2; max-width: 460px; padding: 32px; border: 1px solid rgba(255,255,255,.28); border-radius: 28px; background: rgba(6, 27, 61, .34); backdrop-filter: blur(16px); box-shadow: 0 28px 70px rgba(0,0,0,.22); }
.visual-card strong { display: block; font-size: clamp(27px, 4vw, 44px); line-height: 1.06; margin: 15px 0; }
.visual-card p { margin: 0; font-size: 18px; opacity: .86; line-height: 1.55; }
.visual-kicker, .eyebrow { color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.visual-kicker { color: #8deaff; }
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 14px; color: #fff; font-size: 23px; font-weight: 950; background: linear-gradient(135deg, var(--blue), var(--cyan)); box-shadow: 0 10px 24px rgba(6,105,255,.25); }
.brand-lockup strong, .brand-lockup small { display: block; }
.brand-lockup strong { font-size: 18px; }
.brand-lockup small { color: var(--muted); margin-top: 2px; }
.login-copy { margin: 55px 0 34px; }
.login-copy h1 { max-width: 620px; margin: 10px 0 13px; color: var(--dark); font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -.035em; }
.login-copy p { max-width: 540px; color: var(--muted); line-height: 1.65; }
.form-error { min-height: 22px; color: var(--danger); font-weight: 700; }
.password-field { position: relative; }
.password-field .icon-button { position: absolute; right: 7px; top: 7px; }

/* Base controls */
label { display: block; color: #30435e; font-size: 13px; font-weight: 800; }
input, select, textarea { width: 100%; margin-top: 7px; border: 1px solid #cbd7e6; border-radius: 12px; padding: 12px 13px; color: var(--dark); outline: none; background: #fff; transition: border .2s, box-shadow .2s, background .2s; }
input:focus, select:focus, textarea:focus { border-color: rgba(6,105,255,.7); box-shadow: 0 0 0 4px rgba(6,105,255,.1); }
input.readonly { background: #edf3fa; color: #41536b; cursor: not-allowed; }
textarea { resize: vertical; min-height: 98px; }
.button, button { border: 0; cursor: pointer; font-weight: 850; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border-radius: 12px; padding: 10px 15px; text-decoration: none; transition: transform .17s, filter .17s, box-shadow .17s; }
.button:hover { transform: translateY(-1px); filter: brightness(.99); }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button.primary { color: #fff; background: linear-gradient(125deg, var(--blue), var(--cyan)); box-shadow: 0 9px 22px rgba(6,105,255,.2); }
.button.secondary { color: #154b82; background: #e9f2ff; }
.button.ghost { color: #254260; background: #fff; border: 1px solid var(--line); }
.button.danger { color: #fff; background: var(--danger); }
.button.danger.soft { color: var(--danger); background: #fff0f2; }
.button.wide { width: 100%; margin-top: 16px; }
.button.small { min-height: 34px; border-radius: 9px; padding: 7px 10px; font-size: 12px; }
.icon-button { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 10px; color: #4b5f78; background: #eef3f8; font-size: 20px; }

/* App shell */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; z-index: 20; height: 100vh; display: flex; flex-direction: column; padding: 24px 16px; color: #d8e6f8; background: linear-gradient(180deg, #071d3b, #092950); box-shadow: 12px 0 35px rgba(7,29,59,.12); }
.sidebar-brand { padding: 0 10px 22px; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar-brand strong { color: #fff; }
.sidebar-brand small { color: #9db4cf; }
.side-nav { display: grid; gap: 7px; margin-top: 25px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; border-radius: 12px; padding: 12px 13px; color: #b8cce2; background: transparent; text-align: left; }
.nav-item span { width: 20px; font-size: 18px; text-align: center; }
.nav-item:hover, .nav-item.active { color: #fff; background: rgba(255,255,255,.105); }
.nav-item.active { box-shadow: inset 3px 0 0 #22cef3; }
.sidebar-footer { display: grid; gap: 8px; margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar-footer a { padding: 7px 12px; color: #9db4cf; font-size: 12px; text-decoration: none; }
.danger-text { color: var(--danger) !important; }
.sidebar .danger-text { color: #ffb4be !important; }
.workspace { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 12; min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 34px; border-bottom: 1px solid rgba(220,229,240,.9); background: rgba(244,247,251,.92); backdrop-filter: blur(16px); }
.topbar h1 { margin: 3px 0 0; color: var(--dark); font-size: 25px; letter-spacing: -.025em; }
.topbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mobile-menu { display: none; margin-right: 10px; color: var(--dark); background: transparent; font-size: 25px; }
.content-section { display: none; padding: 28px 34px 44px; }
.content-section.active { display: block; }

/* Shared panels */
.panel { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 8px 25px rgba(22,45,79,.05); }
.panel-heading { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel-heading h2, .section-intro h2 { margin: 4px 0 0; color: var(--dark); font-size: 22px; letter-spacing: -.02em; }
.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-intro p { margin: 7px 0 0; color: var(--muted); }
.notice { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 20px; border-left: 4px solid #f0ab00; border-radius: 12px; padding: 14px 16px; color: #694b00; background: #fff8df; }
.notice.compact span { color: #866720; font-size: 12px; }
.stats-grid { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 14px; }
.stat-card { display: flex; align-items: center; gap: 13px; min-height: 105px; padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 8px 24px rgba(22,45,79,.04); }
.stat-icon { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 13px; color: var(--blue); background: #eaf3ff; font-size: 21px; font-weight: 900; }
.stat-card small, .stat-card strong { display: block; }
.stat-card small { color: var(--muted); font-size: 11px; font-weight: 750; }
.stat-card strong { margin-top: 5px; color: var(--dark); font-size: 21px; line-height: 1.1; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1.12fr; gap: 18px; margin-top: 18px; }
.quick-panel, .calculator-panel { padding: 22px; }
.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.quick-actions button { display: flex; align-items: center; gap: 11px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #fff; text-align: left; }
.quick-actions button:hover { border-color: #adcaed; background: #f7faff; }
.quick-actions button > span { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; color: var(--blue); background: #eaf3ff; font-size: 17px; }
.quick-actions strong, .quick-actions small { display: block; }
.quick-actions strong { color: var(--dark); font-size: 13px; }
.quick-actions small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.form-grid { display: grid; gap: 14px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .span-two { grid-column: 1 / -1; }
.compact-grid input { padding: 9px 11px; }
.calculator-result { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 16px; }
.calculator-result > div { border-radius: 12px; padding: 12px; background: #f2f6fb; }
.calculator-result span, .calculator-result strong { display: block; }
.calculator-result span { color: var(--muted); font-size: 10px; }
.calculator-result strong { margin-top: 5px; color: var(--dark); font-size: 15px; }
.calculator-result .highlight { color: #fff; background: linear-gradient(130deg, var(--blue), var(--cyan)); }
.calculator-result .highlight span, .calculator-result .highlight strong { color: #fff; }

/* Import */
.import-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }
.import-card { position: relative; padding: 25px; overflow: hidden; }
.import-card h3 { margin: 5px 0 7px; font-size: 20px; }
.import-card > p { margin: 0 0 19px; color: var(--muted); line-height: 1.55; }
.featured-panel { border-color: #b9d6fb; }
.step-number { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--blue), var(--cyan)); font-weight: 900; }
.check-line { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; cursor: pointer; }
.check-line.inline { align-items: center; margin: 0; font-weight: 650; }
.check-line input { width: auto; margin: 3px 0 0; accent-color: var(--blue); }
.check-line strong, .check-line small { display: block; }
.check-line small { margin-top: 3px; color: var(--muted); font-weight: 500; }
.helper-card { display: grid; gap: 3px; margin-top: 18px; border-radius: 12px; padding: 13px; color: #315677; background: #edf6ff; }
.helper-card span { font-size: 12px; }
.result-banner { display: flex; align-items: center; gap: 14px; margin-top: 18px; border-radius: 14px; padding: 15px; }
.result-banner span { flex: 1; font-size: 13px; }
.success-result { color: #075f3c; background: #e6f8ef; border: 1px solid #b6e6cf; }

/* Products */
.product-toolbar { display: grid; grid-template-columns: minmax(250px, 1fr) 175px 170px auto; gap: 10px; padding: 13px; }
.product-toolbar select { margin-top: 0; }
.search-field { position: relative; }
.search-field span { position: absolute; left: 13px; top: 10px; color: var(--muted); font-size: 20px; }
.search-field input { margin: 0; padding-left: 41px; }
.bulk-bar { position: sticky; top: 105px; z-index: 8; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 14px 0; border-radius: 14px; padding: 11px 15px; color: #fff; background: var(--dark-2); box-shadow: var(--shadow); }
.bulk-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.bulk-actions button { border-radius: 8px; padding: 7px 10px; color: #eaf4ff; background: rgba(255,255,255,.1); font-size: 11px; }
.list-meta { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 16px 2px 10px; color: var(--muted); font-size: 12px; }
.admin-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.admin-product-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(22,45,79,.045); transition: transform .18s, border .18s, box-shadow .18s; }
.admin-product-card:hover { transform: translateY(-2px); border-color: #b8ceed; box-shadow: 0 14px 32px rgba(22,45,79,.09); }
.admin-product-card.selected { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(6,105,255,.11); }
.product-select { position: absolute; z-index: 4; left: 11px; top: 11px; }
.product-select input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.product-card-image { position: relative; height: 165px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, #f8fafc, #eef4fa); }
.product-card-image img { position: relative; z-index: 2; width: 100%; height: 100%; padding: 16px; object-fit: contain; }
.image-placeholder { position: absolute; color: #9aabc0; font-size: 12px; }
.product-card-image:not(.image-error) img + .image-placeholder { display: none; }
.featured-badge { position: absolute; z-index: 3; right: 10px; top: 10px; border-radius: 999px; padding: 5px 8px; color: #704900; background: #ffe9a8; font-size: 10px; font-weight: 900; }
.product-card-content { padding: 16px 16px 13px; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.status-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 8px; font-size: 10px; font-weight: 900; }
.status-badge.pending { color: #7c5700; background: #fff1c6; }
.status-badge.approved { color: #087647; background: #ddf7ea; }
.status-badge.rejected, .status-badge.unavailable { color: #a31525; background: #ffe2e6; }
.status-badge.outdated { color: #725300; background: #f7edc5; }
.more-button { color: #7890aa; background: transparent; font-size: 17px; }
.admin-product-card h3 { min-height: 42px; margin: 10px 0 5px; color: var(--dark); font-size: 15px; line-height: 1.4; }
.product-meta { height: 17px; margin: 0; overflow: hidden; color: var(--muted); font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.price-comparison { display: grid; grid-template-columns: 1fr 1.15fr; gap: 8px; margin-top: 14px; }
.price-comparison > div { border-radius: 11px; padding: 10px; background: #f4f7fb; }
.price-comparison span, .price-comparison strong, .price-comparison small { display: block; }
.price-comparison span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }
.price-comparison strong { margin: 4px 0 2px; color: var(--dark); font-size: 14px; }
.price-comparison small { color: var(--muted); font-size: 9px; line-height: 1.35; }
.price-comparison .sale-column { background: #eaf3ff; }
.price-comparison .sale-column strong { color: var(--blue); }
.product-bottom { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; color: var(--muted); font-size: 10px; }
.product-card-actions { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-top: 1px solid var(--line); background: #fbfcfe; }
.product-card-actions .button { flex: 1; }
.icon-action { display: grid; place-items: center; flex: 0 0 33px; height: 33px; border: 1px solid var(--line); border-radius: 9px; color: #50677f; background: #fff; text-decoration: none; }
.empty-state { grid-column: 1 / -1; display: grid; justify-items: center; border: 1px dashed #c9d7e7; border-radius: 18px; padding: 55px 20px; color: var(--muted); text-align: center; background: #fff; }
.empty-state > span { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; color: var(--blue); background: #eaf3ff; font-size: 27px; }
.empty-state h3 { margin: 14px 0 0; color: var(--dark); }
.empty-state p { margin: 5px 0 18px; }

/* Settings */
.settings-panel { overflow: hidden; }
.settings-block { display: grid; grid-template-columns: minmax(220px, .6fr) 1.4fr; gap: 35px; padding: 27px; border-bottom: 1px solid var(--line); }
.settings-block h3 { margin: 9px 0 5px; }
.settings-block p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.settings-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--blue); background: #eaf3ff; font-size: 19px; font-weight: 900; }
.settings-footer { display: flex; justify-content: flex-end; padding: 18px 27px; background: #fbfcfe; }

/* Product modal */
dialog { border: 0; padding: 0; }
dialog::backdrop { background: rgba(5,17,36,.66); backdrop-filter: blur(4px); }
.product-modal { width: min(1180px, calc(100vw - 28px)); max-height: calc(100vh - 24px); overflow: hidden; border-radius: 22px; background: #f4f7fb; box-shadow: 0 35px 90px rgba(0,0,0,.32); }
.modal-shell { display: flex; flex-direction: column; max-height: calc(100vh - 24px); }
.modal-header, .modal-footer { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 22px; background: #fff; }
.modal-header { border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 3px 0 0; font-size: 22px; }
.modal-body { overflow: auto; padding: 18px; }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 17px; align-items: start; }
.editor-main { display: grid; gap: 14px; }
.form-section { border: 1px solid var(--line); border-radius: 16px; padding: 19px; background: #fff; }
.form-section-title { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.form-section-title > span { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 10px; color: #fff; background: var(--dark-2); font-size: 12px; font-weight: 900; }
.form-section-title h3 { margin: 0; color: var(--dark); font-size: 16px; }
.form-section-title p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.pricing-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.pricing-preview > div { border-radius: 11px; padding: 11px; background: #f2f6fb; }
.pricing-preview span, .pricing-preview strong { display: block; }
.pricing-preview span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.pricing-preview strong { margin-top: 5px; font-size: 12px; }
.pricing-preview .primary-result { color: #fff; background: linear-gradient(125deg, var(--blue), var(--cyan)); }
.pricing-preview .primary-result span { color: rgba(255,255,255,.8); }
.check-card { display: flex; align-items: center; gap: 10px; margin-top: 7px; border: 1px solid var(--line); border-radius: 12px; padding: 10px; cursor: pointer; }
.check-card input { width: auto; margin: 0; accent-color: var(--blue); }
.check-card strong, .check-card small { display: block; }
.check-card small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.editor-preview { position: sticky; top: 0; border: 1px solid var(--line); border-radius: 17px; padding: 16px; background: #fff; }
.preview-image-wrap { position: relative; height: 220px; display: grid; place-items: center; overflow: hidden; margin-top: 10px; border-radius: 13px; background: #f2f6fb; }
.preview-image-wrap img { width: 100%; height: 100%; padding: 12px; object-fit: contain; }
#editorImageFallback { color: #98a9bc; font-size: 12px; }
.editor-preview h3 { margin: 15px 0 6px; font-size: 16px; line-height: 1.35; }
.editor-preview p { min-height: 42px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.preview-price { display: block; margin-top: 14px; color: var(--blue); font-size: 24px; }
.source-box { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; border-radius: 10px; padding: 10px; color: var(--muted); background: #f2f6fb; font-size: 10px; }
.source-box a { color: var(--blue); font-weight: 800; text-decoration: none; }
.modal-footer { border-top: 1px solid var(--line); }
.modal-footer > div { display: flex; gap: 8px; flex-wrap: wrap; }

/* Toast / loading */
.toast-container { position: fixed; z-index: 1000; right: 18px; top: 18px; display: grid; gap: 9px; width: min(390px, calc(100vw - 36px)); }
.toast { display: flex; align-items: center; gap: 11px; transform: translateY(-12px); opacity: 0; border: 1px solid #b7e7d0; border-radius: 13px; padding: 13px 15px; color: #075d3b; background: #effbf5; box-shadow: var(--shadow); transition: .25s; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast > span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: #fff; background: var(--success); font-weight: 900; }
.toast.error { border-color: #ffc7cf; color: #8c1727; background: #fff2f4; }
.toast.error > span { background: var(--danger); }
.loading-overlay { position: fixed; z-index: 1100; inset: 0; display: grid; place-content: center; justify-items: center; gap: 13px; color: #fff; background: rgba(5,17,36,.65); backdrop-filter: blur(3px); }
.spinner { width: 42px; height: 42px; border: 4px solid rgba(255,255,255,.25); border-top-color: #fff; border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Public catalog */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.catalog-body {
  min-height: 100vh;
  color: var(--dark);
  background: #f4f7fb;
}

.catalog-header {
  padding: 24px 28px 62px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 10%, rgba(0,191,232,.55), transparent 26%),
    linear-gradient(125deg, #071d3b, #0752ba);
}

.catalog-header-inner,
.catalog-main {
  width: min(1240px, 100%);
  margin-inline: auto;
}

.catalog-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 48px;
}

.catalog-nav .brand-lockup small {
  color: #b9d1eb;
}

.catalog-hero {
  max-width: 700px;
  margin-top: 52px;
}

.catalog-hero h1 {
  max-width: 760px;
  margin: 8px 0 10px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.04;
  letter-spacing: -.04em;
}

.catalog-hero p {
  margin: 0;
  color: #c9dcef;
  font-size: 17px;
  line-height: 1.55;
}

.catalog-main {
  margin-top: -31px;
  padding: 0 24px 64px;
}

.catalog-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 13px;
  background: #fff;
  box-shadow: var(--shadow);
}

.catalog-search label {
  min-width: 0;
}

.catalog-search input,
.catalog-search select {
  height: 48px;
  margin: 0;
  border-radius: 12px;
}

.catalog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 2px 14px;
  color: var(--muted);
  font-size: 12px;
}

.catalog-meta #catalogCount {
  color: #334b68;
  font-weight: 800;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
  align-items: stretch;
}

.product-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(22,45,79,.07);
  isolation: isolate;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: #bad1ee;
  box-shadow: 0 18px 42px rgba(22,45,79,.12);
}

.product-card-image-public {
  position: relative;
  z-index: 1;
  flex: 0 0 260px;
  height: 260px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid #edf2f7;
  background: linear-gradient(145deg, #fbfcfe, #f2f6fb);
}

.product-card-image-public img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  padding: 22px;
  object-fit: contain;
  object-position: center;
}

.catalog-image-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: #8ba0b8;
}

.catalog-image-fallback span {
  font-size: 34px;
  line-height: 1;
}

.catalog-image-fallback small {
  font-size: 11px;
  font-weight: 750;
}

.product-card-image-public:not(.image-error) img + .catalog-image-fallback {
  display: none;
}

.featured-badge {
  position: absolute;
  z-index: 4;
  top: 14px;
  left: 14px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 999px;
  padding: 7px 10px;
  color: #fff;
  background: linear-gradient(125deg, #0752ba, #00a9d6);
  box-shadow: 0 7px 18px rgba(6,105,255,.22);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .03em;
}

.product-card-body {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding: 20px;
  background: #fff;
}

.product-card-heading {
  min-width: 0;
}

.product-card-labels {
  display: flex;
  min-height: 26px;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-start;
}

.category-chip,
.brand-chip {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  overflow: hidden;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-chip {
  color: #1b5c9b;
  background: #eaf3ff;
}

.brand-chip {
  color: #4f6075;
  background: #f0f3f7;
}

.product-card-body h2 {
  display: -webkit-box;
  min-height: 47px;
  margin: 10px 0 7px;
  overflow: hidden;
  color: var(--dark);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.45;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card-body p {
  display: -webkit-box;
  min-height: 38px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.public-product-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 15px;
}

.public-product-details > span {
  min-width: 0;
  border: 1px solid #e4ebf3;
  border-radius: 10px;
  padding: 9px 10px;
  overflow: hidden;
  color: #51657d;
  background: #f8fafc;
  font-size: 10px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-product-details b {
  display: block;
  margin-bottom: 2px;
  color: #8191a4;
  font-size: 8px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.product-card-purchase {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  padding-top: 19px;
}

.price-caption {
  color: #8191a4;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.public-price {
  display: block;
  margin: 3px 0 6px;
  color: var(--blue);
  font-size: 26px;
  font-weight: 950;
  line-height: 1.12;
  letter-spacing: -.025em;
}

.public-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.public-stock i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #d79b1c;
  box-shadow: 0 0 0 3px rgba(215,155,28,.12);
}

.public-stock.in-stock {
  color: #08764a;
}

.public-stock.in-stock i {
  background: #0ca968;
  box-shadow: 0 0 0 3px rgba(12,169,104,.12);
}

.catalog-whatsapp-button {
  min-height: 46px;
  margin-top: 16px !important;
  border-radius: 12px;
  font-size: 13px;
}

.catalog-contact-unavailable {
  display: block;
  margin-top: 14px;
  border-radius: 10px;
  padding: 10px;
  color: #7b8796;
  background: #f1f4f7;
  font-size: 10px;
  text-align: center;
}

.catalog-empty-state {
  grid-column: 1 / -1;
  min-height: 270px;
}

.catalog-loading-card {
  width: 100%;
  max-width: 290px;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 21px;
  padding: 16px;
  background: #fff;
}

.catalog-loading-pulse,
.catalog-loading-line {
  display: block;
  border-radius: 12px;
  background: linear-gradient(90deg, #edf2f7, #f7f9fb, #edf2f7);
  background-size: 220% 100%;
  animation: catalogShimmer 1.2s infinite linear;
}

.catalog-loading-pulse {
  height: 230px;
}

.catalog-loading-line {
  height: 14px;
  margin-top: 18px;
}

.catalog-loading-line.short {
  width: 65%;
  margin-top: 10px;
}

@keyframes catalogShimmer {
  to { background-position: -220% 0; }
}

/* Responsive */
@media (max-width: 1250px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .admin-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

@media (max-width: 980px) {
  .login-page { grid-template-columns: 1fr; }
  .login-visual { min-height: 360px; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: -270px; transition: left .22s; }
  .sidebar.open { left: 0; }
  .mobile-menu { display: inline-block; }
  .topbar { padding: 16px 20px; }
  .content-section { padding: 22px 20px 38px; }
  .dashboard-grid, .import-grid { grid-template-columns: 1fr; }
  .product-toolbar { grid-template-columns: 1fr 1fr; }
  .product-toolbar .search-field { grid-column: 1 / -1; }
  .editor-layout { grid-template-columns: 1fr; }
  .editor-preview { position: static; }
  .settings-block { grid-template-columns: 1fr; gap: 18px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .login-panel { padding: 25px 20px; }
  .login-copy { margin: 38px 0 28px; }
  .login-visual { min-height: 290px; padding: 25px; }
  .visual-card { padding: 24px; }
  .topbar { align-items: flex-start; }
  .topbar-actions { display: none; }
  .content-section { padding: 18px 14px 32px; }
  .notice { display: grid; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { min-height: 94px; padding: 14px; }
  .stat-card:last-child { grid-column: 1 / -1; }
  .quick-actions, .form-grid.two, .form-grid.three, .calculator-result, .pricing-preview { grid-template-columns: 1fr; }
  .form-grid .span-two { grid-column: auto; }
  .product-toolbar { grid-template-columns: 1fr; }
  .product-toolbar .search-field { grid-column: auto; }
  .admin-product-grid, .product-grid { grid-template-columns: 1fr; }
  .bulk-bar { top: 84px; align-items: flex-start; flex-direction: column; }
  .section-intro { align-items: flex-start; flex-direction: column; }
  .product-card-image { height: 195px; }
  .modal-body { padding: 10px; }
  .product-modal { width: calc(100vw - 10px); max-height: calc(100vh - 10px); border-radius: 14px; }
  .modal-shell { max-height: calc(100vh - 10px); }
  .modal-header, .modal-footer { padding: 12px; }
  .modal-footer { align-items: stretch; flex-direction: column; }
  .modal-footer > div { width: 100%; }
  .modal-footer .button { flex: 1; }
  .form-section { padding: 14px; }
  .catalog-header { padding: 18px 18px 50px; }
  .catalog-hero { margin-top: 38px; }
  .catalog-hero p { font-size: 15px; }
  .catalog-main { padding: 0 14px 38px; }
  .catalog-search { grid-template-columns: 1fr; }
  .catalog-meta { align-items: flex-start; flex-direction: column; gap: 4px; }
  .product-card-image-public { flex-basis: 235px; height: 235px; }
  .product-card-body { padding: 17px; }
  .public-price { font-size: 24px; }
}

.image-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.form-grid label small {
  display: block;
  margin-top: 6px;
  color: var(--muted, #6b7f95);
  font-size: 12px;
  line-height: 1.45;
}

.login-token-hint{margin:-2px 0 8px;color:#64748b;font-size:.78rem;line-height:1.35}

/* Importação v1.4 */
.warning-result {
  background: #fff7e6;
  border-color: #f5c66b;
  color: #7a4b00;
}

.import-result-detailed {
  display: block;
  padding: 16px;
}

.import-result-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.import-result-summary > div {
  display: grid;
  gap: 4px;
}

.import-preview-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.import-preview-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(0, 103, 255, .15);
  border-radius: 12px;
  background: rgba(255, 255, 255, .75);
}

.import-preview-image {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: #f1f5fb;
}

.import-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.import-preview-item > div:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.import-preview-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.import-preview-item small {
  color: #64748b;
}

@media (max-width: 720px) {
  .import-result-summary {
    align-items: stretch;
    flex-direction: column;
  }
}

/* ===== ANet Product Manager v2.0: catálogo, carrinho e pedidos ===== */
.no-scroll { overflow: hidden; }
.nav-item { position: relative; }
.nav-badge { margin-left: auto; min-width: 22px; height: 22px; display: inline-grid; place-items: center; padding: 0 6px; border-radius: 999px; color: #071d3b; background: #7ce7ff; font-size: 11px; }

/* Catálogo v2 */
.catalog-v2 { min-height: 100vh; color: var(--dark); background: #f4f7fb; }
.catalog-container { width: min(1180px, calc(100% - 34px)); margin-inline: auto; }
.catalog-hero { min-height: 330px; color: #fff; background: radial-gradient(circle at 88% 20%, rgba(0,191,232,.78), transparent 31%), linear-gradient(125deg, #061d3d 0%, #0a4197 64%, #087fd0 100%); }
.catalog-header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 27px; }
.catalog-brand { display: flex; align-items: center; gap: 12px; }
.catalog-brand strong, .catalog-brand small { display: block; }
.catalog-brand strong { color: #fff; font-size: 17px; }
.catalog-brand small { margin-top: 2px; color: #c7ddf5; font-size: 12px; }
.catalog-cart-button { position: relative; display: flex; align-items: center; gap: 8px; min-height: 45px; padding: 9px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 13px; color: #fff; background: rgba(255,255,255,.12); backdrop-filter: blur(12px); }
.catalog-cart-button:hover { background: rgba(255,255,255,.2); }
.catalog-cart-button b { min-width: 23px; height: 23px; display: grid; place-items: center; padding: 0 5px; border-radius: 999px; color: #07417e; background: #fff; font-size: 11px; }
.hero-copy { padding-top: 52px; }
.eyebrow.light { color: #8deaff; }
.hero-copy h1 { margin: 10px 0 8px; max-width: 700px; font-size: clamp(36px, 5vw, 58px); line-height: 1.02; letter-spacing: -.045em; }
.hero-copy p { margin: 0; color: #d4e7fb; font-size: 17px; }
.catalog-main { position: relative; margin-top: -36px; padding-bottom: 80px; }
.catalog-search-shell { display: grid; grid-template-columns: 1fr 230px; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.catalog-search-field { position: relative; }
.catalog-search-field span { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #75859a; font-size: 21px; }
.catalog-search-field input { height: 48px; margin: 0; padding-left: 44px; }
.catalog-search-shell select { height: 48px; margin: 0; }
.category-section { margin: 25px 0 18px; }
.category-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 11px; }
.category-heading strong { font-size: 18px; }
.category-heading span { color: var(--muted); font-size: 12px; }
.category-chips { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.category-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 39px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: #314760; background: #fff; }
.category-chip b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; color: #466079; background: #edf3fa; font-size: 10px; }
.category-chip.active { color: #fff; border-color: transparent; background: linear-gradient(125deg, var(--blue), var(--cyan)); box-shadow: 0 8px 22px rgba(6,105,255,.18); }
.category-chip.active b { color: #0b4c83; background: #fff; }
.catalog-list-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; color: var(--muted); font-size: 12px; }
.catalog-list-meta strong { color: #263e59; }
.catalog-grid-v2 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.catalog-product-card-v2 { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 13px 32px rgba(20,42,74,.07); transition: transform .2s, box-shadow .2s; }
.catalog-product-card-v2:hover { transform: translateY(-3px); box-shadow: 0 20px 42px rgba(20,42,74,.12); }
.catalog-product-image-v2 { position: relative; height: 235px; display: grid; place-items: center; padding: 18px; overflow: hidden; border-bottom: 1px solid #edf2f7; background: linear-gradient(180deg, #fff, #f6f9fd); }
.catalog-product-image-v2 img { width: 100%; height: 100%; object-fit: contain; }
.catalog-image-fallback { display: grid; place-items: center; gap: 7px; color: #8a99aa; }
.catalog-image-fallback span { font-size: 38px; }
.catalog-featured { position: absolute; left: 13px; top: 13px; padding: 6px 9px; border-radius: 999px; color: #7a4b00; background: #fff1c9; font-size: 10px; font-weight: 900; }
.catalog-product-content-v2 { flex: 1; display: flex; flex-direction: column; padding: 16px; }
.catalog-product-tags { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 10px; }
.catalog-product-tags span { max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 5px 8px; border-radius: 999px; color: #0a5a9d; background: #eaf5ff; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.catalog-product-tags small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #708197; }
.catalog-product-content-v2 h2 { min-height: 48px; margin: 0 0 7px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: #0b203e; font-size: 16px; line-height: 1.45; }
.catalog-product-content-v2 > p { min-height: 37px; margin: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--muted); font-size: 12px; line-height: 1.5; }
.catalog-supporting { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.catalog-supporting span { padding: 5px 7px; border-radius: 7px; color: #52667d; background: #f2f6fa; font-size: 10px; }
.catalog-price-block { margin-top: auto; padding-top: 16px; }
.catalog-price-block small, .catalog-price-block span { display: block; }
.catalog-price-block small { color: #7b8da1; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.catalog-price-block strong { display: block; margin: 3px 0 4px; color: var(--blue); font-size: 25px; letter-spacing: -.03em; }
.catalog-price-block span { color: #775a00; font-size: 10px; }
.add-cart-button { margin-top: 13px; }
.catalog-quantity-row { display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; gap: 7px; margin-top: 13px; }
.catalog-quantity-row button { height: 39px; border-radius: 10px; color: #075ba9; background: #eaf3ff; font-size: 20px; }
.catalog-quantity-row strong { text-align: center; font-size: 12px; }
.catalog-empty-state { grid-column: 1 / -1; display: grid; place-items: center; min-height: 320px; padding: 30px; border: 1px dashed #c7d4e3; border-radius: 20px; color: var(--muted); text-align: center; background: #fff; }
.catalog-empty-state > span { font-size: 40px; }
.catalog-empty-state h2 { margin: 10px 0 0; color: var(--dark); }
.catalog-empty-state p { margin: 5px 0 16px; }

/* Carrinho */
.drawer-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(5,20,43,.55); backdrop-filter: blur(3px); }
.cart-drawer { position: fixed; z-index: 90; right: 0; top: 0; width: min(470px, 100%); height: 100vh; display: flex; flex-direction: column; transform: translateX(105%); color: var(--dark); background: #fff; box-shadow: -25px 0 70px rgba(4,22,49,.22); transition: transform .24s ease; }
.cart-drawer.open { transform: translateX(0); }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 22px; border-bottom: 1px solid var(--line); }
.cart-header h2 { margin: 4px 0 0; }
.cart-items { flex: 1; overflow-y: auto; padding: 14px 20px; }
.cart-item { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid #edf2f7; }
.cart-item-image { grid-row: span 2; width: 72px; height: 72px; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: #f4f7fb; }
.cart-item-image img { width: 100%; height: 100%; object-fit: contain; }
.cart-item-info { min-width: 0; display: grid; gap: 4px; }
.cart-item-info strong { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 13px; line-height: 1.4; }
.cart-item-info small { color: var(--muted); }
.cart-item-info b { color: var(--blue); }
.cart-item-controls { grid-column: 2; display: flex; align-items: center; gap: 6px; }
.cart-item-controls button { min-width: 30px; height: 30px; border-radius: 8px; color: #144d7f; background: #edf4fc; }
.cart-item-controls .remove { margin-left: auto; padding: 0 7px; color: var(--danger); background: #fff0f2; font-size: 10px; }
.cart-empty { display: grid; place-items: center; min-height: 310px; color: var(--muted); text-align: center; }
.cart-empty span { font-size: 46px; }
.cart-empty h3 { margin: 8px 0 0; color: var(--dark); }
.cart-empty p { margin: 4px 0; }
.cart-footer { padding: 18px 22px 22px; border-top: 1px solid var(--line); background: #fbfcfe; }
.cart-total-row { display: flex; align-items: center; justify-content: space-between; }
.cart-total-row strong { color: var(--blue); font-size: 25px; }
.cart-footer > small { display: block; margin-top: 5px; color: var(--muted); line-height: 1.4; }
.cart-footer .button.ghost { margin-top: 8px; }

/* Checkout */
.checkout-modal { width: min(980px, calc(100% - 24px)); max-height: calc(100vh - 30px); padding: 0; border: 0; border-radius: 22px; overflow: hidden; background: transparent; box-shadow: 0 28px 80px rgba(4,22,49,.28); }
.checkout-modal::backdrop { background: rgba(5,20,43,.58); backdrop-filter: blur(4px); }
.checkout-shell { background: #fff; }
.checkout-body { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(300px,.75fr); max-height: calc(100vh - 175px); overflow-y: auto; }
.checkout-form-column { display: grid; gap: 18px; padding: 23px; }
.delivery-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; border: 0; }
.delivery-options legend { grid-column: 1 / -1; margin-bottom: 4px; color: #30435e; font-size: 13px; font-weight: 900; }
.delivery-card { display: flex; gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.delivery-card input { width: auto; margin: 2px 0 0; }
.delivery-card span, .delivery-card strong, .delivery-card small { display: block; }
.delivery-card small { margin-top: 3px; color: var(--muted); font-weight: 500; line-height: 1.4; }
.checkout-summary { padding: 23px; border-left: 1px solid var(--line); background: #f6f9fd; }
.checkout-summary h3 { margin: 0 0 14px; }
.checkout-items { display: grid; gap: 9px; max-height: 250px; overflow-y: auto; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.checkout-items > div, .summary-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.checkout-items span { color: #40556d; font-size: 11px; line-height: 1.4; }
.checkout-items strong { flex: 0 0 auto; font-size: 11px; }
.summary-line { padding-top: 13px; color: #556a81; font-size: 12px; }
.summary-line.total { margin-top: 2px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--dark); }
.summary-line.total strong { color: var(--blue); font-size: 23px; }
.checkout-summary > small { display: block; margin-top: 14px; color: var(--muted); line-height: 1.5; }
.checkout-actions { justify-content: flex-end; }
.success-modal { width: min(470px, calc(100% - 24px)); }
.success-shell { display: grid; place-items: center; padding: 35px; border-radius: 22px; text-align: center; background: #fff; }
.success-icon { width: 62px; height: 62px; display: grid; place-items: center; margin-bottom: 15px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #08a568, #00c98b); font-size: 32px; box-shadow: 0 15px 30px rgba(8,165,104,.23); }
.success-shell h2 { margin: 8px 0; color: var(--dark); }
.success-shell p { margin: 0 0 15px; color: var(--muted); line-height: 1.55; }
.success-total { width: 100%; display: flex; align-items: center; justify-content: space-between; margin-bottom: 3px; padding: 13px; border-radius: 12px; background: #eef5ff; }
.success-total strong { color: var(--blue); font-size: 20px; }

/* Pedidos no admin */
.order-stats-strip { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; margin-bottom: 13px; }
.order-stats-strip button { display: flex; align-items: center; justify-content: space-between; min-height: 53px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 13px; color: #4d6076; background: #fff; box-shadow: 0 8px 22px rgba(20,42,74,.04); }
.order-stats-strip strong { color: var(--blue); font-size: 20px; }
.order-toolbar { display: grid; grid-template-columns: 1fr 220px; gap: 10px; padding: 10px; }
.order-toolbar select { margin: 0; }
.orders-list { display: grid; gap: 10px; }
.order-card { display: grid; grid-template-columns: minmax(0,1fr) 190px auto; align-items: center; gap: 18px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 9px 25px rgba(20,42,74,.05); cursor: pointer; transition: transform .16s, border .16s; }
.order-card:hover { transform: translateY(-1px); border-color: #a8c7ed; }
.order-number-line { display: flex; align-items: center; gap: 9px; }
.order-card h3 { margin: 7px 0 3px; font-size: 16px; }
.order-card p { margin: 0; color: var(--muted); font-size: 12px; }
.order-card-money { display: grid; justify-items: end; gap: 2px; }
.order-card-money small, .order-card-money span { color: var(--muted); font-size: 10px; }
.order-card-money strong { color: var(--blue); font-size: 20px; }
.order-status { padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 900; }
.order-status.new { color: #844f00; background: #fff0bd; }
.order-status.confirmed { color: #07539a; background: #e4f1ff; }
.order-status.purchasing { color: #704c00; background: #fff4d6; }
.order-status.ready { color: #08734a; background: #dcf8e9; }
.order-status.completed { color: #315268; background: #e8f0f6; }
.order-status.cancelled { color: #a31e31; background: #ffe6ea; }
.order-modal-shell { width: min(1220px, 96vw); }
.order-modal-body { max-height: calc(100vh - 180px); overflow-y: auto; }
.order-detail-header-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.order-customer-card, .order-management-card { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.order-customer-card h3 { margin: 7px 0 4px; }
.order-customer-card p, .order-customer-card small { color: var(--muted); }
.order-customer-card blockquote { margin: 12px 0 0; padding: 10px 12px; border-left: 3px solid var(--cyan); border-radius: 8px; color: #40566f; background: #f2f8fd; }
.order-total-admin { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; padding: 11px 13px; border-radius: 12px; background: #eaf4ff; }
.order-total-admin strong { color: var(--blue); font-size: 22px; }
.order-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 23px 0 10px; }
.order-section-heading h3 { margin: 4px 0 0; }
.order-items-admin-list { display: grid; gap: 10px; }
.order-item-admin { display: grid; grid-template-columns: minmax(300px,1.2fr) minmax(220px,.7fr) minmax(260px,.9fr); align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.order-item-product { display: flex; align-items: center; gap: 11px; min-width: 0; }
.order-item-image { flex: 0 0 58px; width: 58px; height: 58px; display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: #f2f6fa; }
.order-item-image img { width: 100%; height: 100%; object-fit: contain; }
.order-item-product > div:last-child { min-width: 0; }
.order-item-product strong { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.order-item-product small { display: block; margin-top: 4px; color: var(--muted); }
.order-item-quote { display: grid; gap: 2px; padding: 10px; border-radius: 11px; background: #f4f7fb; }
.order-item-quote.best { border: 1px solid #9be1c0; background: #ebfbf3; }
.order-item-quote span { color: var(--muted); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.order-item-quote small { color: var(--muted); }
.order-item-controls { display: grid; grid-template-columns: 1fr 150px; gap: 8px; }
.order-item-controls label { font-size: 10px; }
.order-item-controls select { padding: 8px; font-size: 11px; }
.order-item-controls .button { grid-column: 1 / -1; }
.procurement-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.procurement-store-card { display: flex; flex-direction: column; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.procurement-store-card > div:first-child span { color: var(--blue); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.procurement-store-card h4 { margin: 4px 0; }
.procurement-store-card > div:first-child small { color: var(--muted); }
.procurement-store-card ul { flex: 1; display: grid; gap: 8px; margin: 13px 0; padding: 0; list-style: none; }
.procurement-store-card li { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding-bottom: 7px; border-bottom: 1px solid #edf2f7; font-size: 11px; }
.procurement-store-card li span { color: #40556d; }
.procurement-store-card li strong { flex: 0 0 auto; }
.procurement-total { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; padding: 9px; border-radius: 9px; background: #edf5ff; font-size: 11px; }
.procurement-total strong { color: var(--blue); }

/* Comparação de ofertas */
.compact-modal .modal-shell { width: min(850px, 94vw); }
.offers-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 13px; padding: 15px; border-radius: 15px; color: #fff; background: linear-gradient(125deg, #08326a, #0869ce); }
.offers-summary > div { display: grid; gap: 3px; }
.offers-summary span { color: #8fe7ff; font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.offers-summary strong { font-size: 18px; }
.offers-summary b { font-size: 23px; }
.offers-summary small { color: #d8eaff; }
.offers-list { display: grid; gap: 8px; }
.offer-row { display: grid; grid-template-columns: 38px minmax(0,1fr) 170px auto; align-items: center; gap: 12px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.offer-row.best { border-color: #8bd7b4; background: #f0fcf6; }
.offer-position { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: #4b6076; background: #edf3f8; font-weight: 900; }
.offer-row.best .offer-position { color: #08734a; background: #d8f5e7; }
.offer-row > div:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.offer-row > div:nth-child(2) strong, .offer-row > div:nth-child(2) small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offer-row small { color: var(--muted); }
.offer-price { display: grid; justify-items: end; gap: 2px; }
.offer-price strong { color: var(--blue); font-size: 17px; }

@media (max-width: 1050px) {
  .catalog-grid-v2 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .order-item-admin { grid-template-columns: 1fr 1fr; }
  .order-item-controls { grid-column: 1 / -1; grid-template-columns: 1fr 1fr auto; }
  .order-item-controls .button { grid-column: auto; align-self: end; }
  .procurement-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .catalog-hero { min-height: 300px; }
  .catalog-cart-button strong { display: none; }
  .hero-copy { padding-top: 45px; }
  .catalog-search-shell { grid-template-columns: 1fr; }
  .catalog-grid-v2 { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
  .catalog-product-image-v2 { height: 180px; padding: 12px; }
  .catalog-product-content-v2 { padding: 13px; }
  .catalog-product-content-v2 h2 { min-height: 43px; font-size: 14px; }
  .catalog-price-block strong { font-size: 21px; }
  .catalog-list-meta { align-items: flex-start; flex-direction: column; gap: 4px; }
  .checkout-body { grid-template-columns: 1fr; }
  .checkout-summary { border-top: 1px solid var(--line); border-left: 0; }
  .delivery-options { grid-template-columns: 1fr; }
  .order-stats-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .order-toolbar { grid-template-columns: 1fr; }
  .order-card { grid-template-columns: 1fr auto; gap: 10px; }
  .order-card > .button { grid-column: 1 / -1; }
  .order-detail-header-grid, .procurement-grid { grid-template-columns: 1fr; }
  .order-item-admin { grid-template-columns: 1fr; }
  .order-item-controls { grid-column: auto; grid-template-columns: 1fr; }
  .offer-row { grid-template-columns: 34px 1fr; }
  .offer-price { justify-items: start; grid-column: 2; }
  .offer-row .button { grid-column: 2; }
}

@media (max-width: 480px) {
  .catalog-container { width: min(100% - 20px, 1180px); }
  .catalog-grid-v2 { grid-template-columns: 1fr; }
  .catalog-product-image-v2 { height: 240px; }
  .category-heading span { display: none; }
  .cart-drawer { width: 100%; }
  .checkout-modal { width: calc(100% - 10px); max-height: calc(100vh - 10px); }
  .checkout-body { max-height: calc(100vh - 160px); }
  .checkout-form-column, .checkout-summary { padding: 16px; }
  .form-grid.two { grid-template-columns: 1fr; }
  .span-two { grid-column: auto; }
}


/* Estado da cotação automática */
.quotation-state { display: inline-flex; width: fit-content; margin-top: 6px; padding: 4px 8px; border-radius: 999px; background: #eef4fb; color: #52708e; font-size: 10px; font-weight: 800; }
.quotation-state.running { background: #e7f4ff; color: #0567b5; }
.quotation-state.completed { background: #e8f8ef; color: #087c46; }
.quotation-state.partial { background: #fff6dd; color: #9b6500; }
.quotation-state.failed { background: #ffecef; color: #b42336; }

/* ===== ANet Product Manager v2.1: storefront responsivo e checkout rápido ===== */
html, body.catalog-body { width: 100%; max-width: none; min-height: 100%; overflow-x: hidden; }
body.catalog-body { display: block !important; color: #0b203e; background: #f3f6fa; }
.catalog-v21 .storefront-header,
.catalog-v21 .storefront-main { width: 100%; max-width: none; }
.storefront-container { width: min(1380px, calc(100% - 48px)); margin-inline: auto; }
.storefront-header { position: relative; overflow: hidden; color: #fff; background: linear-gradient(118deg, #061b39 0%, #0a3f8d 58%, #078bc7 100%); }
.storefront-header::before { content: ""; position: absolute; width: 620px; height: 620px; right: -220px; top: -310px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; }
.storefront-header::after { content: ""; position: absolute; width: 340px; height: 340px; right: 8%; bottom: -230px; border-radius: 50%; background: rgba(0,196,235,.14); filter: blur(2px); }
.storefront-nav { position: relative; z-index: 2; min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid rgba(255,255,255,.12); }
.storefront-cart-button { display: flex; align-items: center; gap: 11px; min-height: 50px; padding: 8px 10px 8px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 15px; color: #fff; background: rgba(255,255,255,.11); backdrop-filter: blur(12px); transition: background .18s, transform .18s; }
.storefront-cart-button:hover { transform: translateY(-1px); background: rgba(255,255,255,.18); }
.storefront-cart-button .cart-icon { font-size: 18px; }
.storefront-cart-button .cart-label { display: grid; gap: 1px; text-align: left; }
.storefront-cart-button .cart-label small { color: #bfe2f7; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.storefront-cart-button .cart-label strong { font-size: 13px; }
.storefront-cart-button b { min-width: 28px; height: 28px; display: grid; place-items: center; padding: 0 7px; border-radius: 999px; color: #064685; background: #fff; font-size: 11px; }
.storefront-hero-grid { position: relative; z-index: 2; min-height: 310px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr); align-items: center; gap: 70px; padding-block: 42px 54px; }
.storefront-hero-copy h1 { max-width: 800px; margin: 10px 0 12px; font-size: clamp(38px, 4.4vw, 66px); line-height: 1.01; letter-spacing: -.048em; }
.storefront-hero-copy > p { max-width: 720px; margin: 0; color: #d1e6fa; font-size: clamp(15px, 1.5vw, 19px); line-height: 1.55; }
.storefront-trust-row { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: #e1f2ff; font-size: 12px; font-weight: 700; }
.storefront-hero-card { display: grid; gap: 12px; padding: 22px; border: 1px solid rgba(255,255,255,.21); border-radius: 22px; background: rgba(4,27,65,.32); box-shadow: 0 24px 60px rgba(3,20,45,.18); backdrop-filter: blur(15px); }
.storefront-hero-card > span { color: #86e8ff; font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.storefront-hero-card > div { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 11px; }
.storefront-hero-card b { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #073d76; background: #fff; }
.storefront-hero-card p, .storefront-hero-card strong, .storefront-hero-card small { display: block; margin: 0; }
.storefront-hero-card strong { color: #fff; font-size: 13px; }
.storefront-hero-card small { margin-top: 2px; color: #bdd8ee; font-size: 11px; line-height: 1.35; }
.storefront-main { padding-block: 24px 110px; }
.storefront-toolbar { position: sticky; z-index: 16; top: 10px; display: grid; grid-template-columns: minmax(260px, 1fr) 240px 190px; gap: 10px; padding: 11px; border: 1px solid #d9e3ef; border-radius: 18px; background: rgba(255,255,255,.94); box-shadow: 0 16px 38px rgba(17,43,79,.1); backdrop-filter: blur(16px); }
.storefront-toolbar input, .storefront-toolbar select { height: 50px; margin: 0; border-radius: 12px; }
.storefront-search-field { position: relative; }
.storefront-search-field > span { position: absolute; z-index: 2; left: 16px; top: 50%; transform: translateY(-50%); color: #698097; font-size: 21px; }
.storefront-search-field input { padding-left: 46px; }
.storefront-categories { margin-top: 34px; }
.storefront-section-heading, .storefront-results-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.storefront-section-heading h2, .storefront-results-heading h2 { margin: 4px 0 0; color: #081f3e; font-size: 23px; letter-spacing: -.025em; }
.storefront-section-heading > small { color: #71839a; }
.store-category-chips { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: thin; }
.store-category-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 13px 8px 9px; border: 1px solid #dce5ef; border-radius: 13px; color: #324a64; background: #fff; box-shadow: 0 7px 20px rgba(20,42,74,.035); }
.store-category-chip:hover { border-color: #9ec5ef; background: #f8fbff; }
.store-category-chip .store-category-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: #0963bd; background: #eaf4ff; font-weight: 900; }
.store-category-chip b { min-width: 23px; height: 23px; display: grid; place-items: center; padding: 0 6px; border-radius: 999px; color: #63768c; background: #eef3f8; font-size: 10px; }
.store-category-chip.active { color: #fff; border-color: transparent; background: linear-gradient(125deg, #0768f7, #05acd8); box-shadow: 0 12px 26px rgba(6,105,255,.18); }
.store-category-chip.active .store-category-icon { color: #075397; background: #fff; }
.store-category-chip.active b { color: #075397; background: #fff; }
.storefront-products-section { margin-top: 28px; }
.storefront-results-heading > div:last-child { display: grid; justify-items: end; gap: 2px; color: #71839a; }
.storefront-results-heading > div:last-child strong { color: #233c58; font-size: 13px; }
.storefront-results-heading > div:last-child small { font-size: 10px; }
.store-product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 310px)); justify-content: start; gap: 20px; }
.store-product-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #dfe7f0; border-radius: 20px; background: #fff; box-shadow: 0 12px 30px rgba(18,43,76,.055); transition: transform .2s, box-shadow .2s, border .2s; }
.store-product-card:hover { transform: translateY(-4px); border-color: #b9d0eb; box-shadow: 0 20px 42px rgba(18,43,76,.11); }
.store-product-media { position: relative; height: 230px; display: grid; place-items: center; overflow: hidden; padding: 18px; border-bottom: 1px solid #edf2f7; background: linear-gradient(160deg, #fff, #f5f8fc); }
.store-product-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s; }
.store-product-card:hover .store-product-media img { transform: scale(1.025); }
.store-image-fallback { display: grid; place-items: center; gap: 7px; color: #8798ab; }
.store-image-fallback span { font-size: 38px; }
.store-media-badges { position: absolute; inset: 12px 12px auto; display: flex; justify-content: space-between; gap: 8px; pointer-events: none; }
.store-badge { padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 900; }
.store-badge.featured { color: #7d5100; background: #fff0bd; }
.store-badge.stock { margin-left: auto; color: #285579; background: rgba(239,247,255,.94); }
.store-product-body { flex: 1; display: flex; flex-direction: column; padding: 16px; }
.store-product-meta { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.store-product-meta span { max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 5px 8px; border-radius: 999px; color: #0860ae; background: #eaf5ff; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.store-product-meta small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #78899d; }
.store-product-body h2 { min-height: 46px; margin: 10px 0 6px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: #071d3b; font-size: 16px; line-height: 1.42; }
.store-product-body > p { min-height: 36px; margin: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: #66788d; font-size: 11px; line-height: 1.55; }
.store-product-benefits { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.store-product-benefits span { padding: 4px 6px; border-radius: 7px; color: #49657e; background: #f2f6fa; font-size: 9px; }
.store-product-footer { margin-top: auto; padding-top: 17px; }
.store-price small, .store-price span { display: block; }
.store-price small { color: #7d8da0; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.store-price strong { display: block; margin: 3px 0; color: #0669ff; font-size: 25px; letter-spacing: -.035em; }
.store-price span { color: #8b6500; font-size: 9px; }
.store-add-button { width: 100%; min-height: 43px; display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 12px; border-radius: 12px; color: #fff; background: linear-gradient(125deg, #0669ff, #00bfe8); box-shadow: 0 9px 20px rgba(6,105,255,.17); }
.store-add-button span { font-size: 18px; line-height: 1; }
.store-quantity-control { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; gap: 8px; margin-top: 12px; }
.store-quantity-control button { height: 42px; border-radius: 11px; color: #075da9; background: #eaf4ff; font-size: 20px; }
.store-quantity-control > div { display: grid; justify-items: center; gap: 1px; }
.store-quantity-control strong { color: #082342; font-size: 16px; }
.store-quantity-control small { color: #71839a; font-size: 9px; }
.store-empty-state, .store-loading { grid-column: 1 / -1; width: min(100%, 650px); min-height: 300px; display: grid; place-items: center; align-content: center; gap: 6px; padding: 30px; border: 1px dashed #c6d5e6; border-radius: 20px; color: #6d7f94; text-align: center; background: #fff; }
.store-empty-state > span { font-size: 40px; }
.store-empty-state h2 { margin: 7px 0 0; color: #0a213f; }
.store-empty-state p { margin: 0 0 12px; }
.store-loader, .button-spinner { display: inline-block; width: 24px; height: 24px; border: 3px solid #d7e8fb; border-top-color: #0669ff; border-radius: 50%; animation: storefront-spin .75s linear infinite; }
.button-spinner { width: 16px; height: 16px; border-width: 2px; border-color: rgba(255,255,255,.35); border-top-color: #fff; }
@keyframes storefront-spin { to { transform: rotate(360deg); } }
.mobile-cart-bar { position: fixed; z-index: 50; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); min-height: 56px; display: none; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 16px; color: #fff; background: linear-gradient(125deg, #0564f4, #00acd5); box-shadow: 0 17px 40px rgba(5,67,147,.3); }
.mobile-cart-bar span:last-child { text-align: right; font-weight: 800; }
.checkout-progress { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border-bottom: 1px solid #e8eef5; color: #8493a6; background: #fbfcfe; font-size: 10px; font-weight: 900; }
.checkout-progress span.active { color: #0964ba; }
.checkout-progress i { width: 42px; height: 1px; background: #d5e0ec; }
.checkout-intro { display: grid; gap: 3px; padding: 13px 14px; border-radius: 12px; color: #315778; background: #eef7ff; }
.checkout-intro strong { color: #0a4f91; }
.checkout-intro span { font-size: 11px; }
.checkout-security { margin-top: 14px; padding: 10px 11px; border-radius: 10px; color: #087047; background: #e9f8f1; font-size: 10px; font-weight: 800; }
.checkout-status { padding: 11px 22px; border-top: 1px solid #dfe8f2; color: #075b9e; background: #edf7ff; font-size: 11px; font-weight: 800; text-align: center; }
.checkout-v21 .checkout-summary { min-width: 0; }
.checkout-v21 .checkout-actions .button.primary { min-width: 220px; }

@media (max-width: 1180px) {
  .storefront-container { width: min(100% - 32px, 1180px); }
  .storefront-hero-grid { gap: 35px; }
  .store-product-grid { grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); }
}

@media (max-width: 900px) {
  .storefront-hero-grid { grid-template-columns: 1fr; min-height: 0; padding-block: 38px 48px; }
  .storefront-hero-card { display: none; }
  .storefront-toolbar { position: relative; top: auto; grid-template-columns: 1fr 1fr; }
  .storefront-search-field { grid-column: 1 / -1; }
  .store-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .storefront-container { width: calc(100% - 22px); }
  .storefront-nav { min-height: 68px; }
  .storefront-nav .brand-mark { width: 38px; height: 38px; border-radius: 12px; font-size: 19px; }
  .catalog-brand strong { font-size: 14px; }
  .catalog-brand small { font-size: 9px; }
  .storefront-cart-button { min-height: 44px; padding: 7px 9px; }
  .storefront-cart-button .cart-label { display: none; }
  .storefront-hero-grid { padding-block: 34px 40px; }
  .storefront-hero-copy h1 { font-size: clamp(34px, 10vw, 46px); }
  .storefront-hero-copy > p { font-size: 14px; }
  .storefront-trust-row { display: grid; gap: 6px; font-size: 10px; }
  .storefront-main { padding-block: 14px 100px; }
  .storefront-toolbar { grid-template-columns: 1fr; padding: 9px; border-radius: 15px; }
  .storefront-search-field { grid-column: auto; }
  .storefront-toolbar input, .storefront-toolbar select { height: 47px; }
  .storefront-section-heading > small, .storefront-results-heading > div:last-child small { display: none; }
  .storefront-section-heading h2, .storefront-results-heading h2 { font-size: 20px; }
  .storefront-results-heading { align-items: center; }
  .store-category-chip { min-height: 42px; }
  .store-product-grid { grid-template-columns: 1fr; gap: 14px; }
  .store-product-card { display: grid; grid-template-columns: 132px minmax(0,1fr); border-radius: 17px; }
  .store-product-media { height: 100%; min-height: 230px; padding: 10px; border-right: 1px solid #edf2f7; border-bottom: 0; }
  .store-media-badges { inset: 8px 8px auto; }
  .store-badge.stock { display: none; }
  .store-product-body { padding: 13px; }
  .store-product-body h2 { min-height: auto; font-size: 14px; }
  .store-product-body > p { min-height: 32px; font-size: 10px; }
  .store-product-benefits { display: none; }
  .store-price strong { font-size: 21px; }
  .store-add-button { min-height: 40px; }
  .mobile-cart-bar:not([hidden]) { display: grid; }
  .checkout-progress { gap: 5px; padding-inline: 10px; }
  .checkout-progress i { width: 17px; }
  .checkout-v21 .checkout-actions { display: grid; grid-template-columns: 1fr 1.5fr; }
  .checkout-v21 .checkout-actions .button.primary { min-width: 0; }
}

@media (max-width: 390px) {
  .store-product-card { grid-template-columns: 116px minmax(0,1fr); }
  .store-product-media { min-height: 215px; }
  .store-product-meta small { display: none; }
  .store-price strong { font-size: 19px; }
  .storefront-results-heading > div:last-child { display: none; }
}


.integration-block { border-top: 1px solid rgba(15, 41, 74, .1); }
.integration-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.integration-status { display: inline-flex; align-items: center; min-height: 36px; padding: 8px 12px; border-radius: 10px; background: #eef3f8; color: #53657a; font-size: .84rem; font-weight: 700; }
.integration-status.connected { background: #e7f8ee; color: #087a3f; }
.integration-status.error { background: #fff0f0; color: #b42318; }
.integration-status.not_configured { background: #eef3f8; color: #53657a; }

/* ===== ANet Product Manager v2.2.3: catálogo premium e UX reforçada ===== */
body.catalog-v21 { background: #eef3f8; }
.catalog-v21 .storefront-main { max-width: 1440px; margin-inline: auto; }
.storefront-toolbar {
  border: 2px solid #cbd9e8;
  box-shadow: 0 12px 34px rgba(13, 45, 82, .12);
}
.storefront-toolbar input,
.storefront-toolbar select {
  border: 1px solid #bfcfe0;
  background: #fff;
  color: #102a49;
  font-weight: 650;
  outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.storefront-toolbar input:focus,
.storefront-toolbar select:focus {
  border-color: #0875e1;
  box-shadow: 0 0 0 4px rgba(8, 117, 225, .13);
  background: #fff;
}
.storefront-categories,
.storefront-products-section {
  padding: 22px;
  border: 1px solid #d3dfeb;
  border-radius: 22px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 10px 30px rgba(18,43,76,.055);
}
.storefront-products-section { margin-top: 22px; }
.store-category-chip {
  border: 1.5px solid #cbd9e7;
  box-shadow: 0 4px 14px rgba(20,42,74,.06);
  font-weight: 750;
}
.store-category-chip:hover {
  transform: translateY(-1px);
  border-color: #5ea7e9;
  box-shadow: 0 8px 20px rgba(6,105,255,.12);
}
.store-product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.store-product-card {
  position: relative;
  border: 2px solid #cdd9e6;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(18,43,76,.075);
  isolation: isolate;
}
.store-product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.65);
  pointer-events: none;
}
.store-product-card:hover {
  transform: translateY(-5px);
  border-color: #3d91df;
  box-shadow: 0 22px 44px rgba(12,61,112,.16);
}
.store-product-media {
  height: 240px;
  border-bottom: 2px solid #d9e3ed;
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,.95), rgba(255,255,255,.4) 45%, transparent 70%),
    linear-gradient(155deg, #f9fbfd, #edf3f8);
}
.store-product-media img { padding: 5px; }
.store-media-badges { inset: 11px 11px auto; }
.store-badge { border: 1px solid rgba(10,60,100,.10); box-shadow: 0 3px 10px rgba(10,45,75,.09); }
.store-product-body { padding: 18px; }
.store-product-meta { min-height: 28px; }
.store-product-meta span { border: 1px solid #c9e3f8; font-size: 10px; }
.store-product-body h2 {
  min-height: 50px;
  margin-top: 12px;
  color: #091e38;
  font-size: 17px;
  font-weight: 800;
}
.store-product-body > p {
  min-height: 42px;
  color: #5d7188;
  font-size: 12px;
}
.store-product-benefits span { border: 1px solid #dde7f0; background: #f6f9fc; }
.store-product-footer {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid #e1e9f1;
}
.store-price strong { color: #075fc4; font-size: 27px; }
.store-add-button {
  min-height: 48px;
  border: 1px solid rgba(0,70,170,.25);
  border-radius: 11px;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .01em;
  box-shadow: 0 10px 20px rgba(6,105,255,.22);
  transition: transform .16s, filter .16s, box-shadow .16s;
}
.store-add-button:hover { transform: translateY(-1px); filter: saturate(1.08); box-shadow: 0 13px 24px rgba(6,105,255,.28); }
.store-add-button:active { transform: translateY(0); }
.store-quantity-control { padding: 6px; border: 1px solid #cbddeb; border-radius: 12px; background: #f4f9fd; }
.store-quantity-control button { border: 1px solid #c9dff2; background: #fff; }
.storefront-results-heading { padding-bottom: 14px; border-bottom: 1px solid #dce5ee; }
.storefront-results-heading > div:last-child strong {
  padding: 6px 10px;
  border: 1px solid #cfdfec;
  border-radius: 999px;
  background: #fff;
}

@media (max-width: 1180px) {
  .store-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .store-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .storefront-categories, .storefront-products-section { padding: 18px; }
}
@media (max-width: 640px) {
  .storefront-categories, .storefront-products-section { padding: 14px; border-radius: 17px; }
  .store-product-grid { grid-template-columns: 1fr; gap: 14px; }
  .store-product-card {
    display: grid;
    grid-template-columns: 128px minmax(0,1fr);
    border-width: 1.5px;
    border-radius: 15px;
  }
  .store-product-media {
    height: 100%;
    min-height: 218px;
    border-right: 1.5px solid #d5e0ea;
    border-bottom: 0;
  }
  .store-product-body { padding: 13px; }
  .store-product-body h2 { min-height: auto; font-size: 14px; }
  .store-product-body > p { min-height: 31px; }
  .store-product-footer { margin-top: 10px; padding-top: 10px; }
  .store-price strong { font-size: 21px; }
  .store-add-button { min-height: 42px; font-size: 12px; }
}
@media (max-width: 390px) {
  .store-product-card { grid-template-columns: 112px minmax(0,1fr); }
  .store-product-media { min-height: 206px; }
}


/* v2.2.4: feedback local ao abrir pedido, sem bloquear toda a aplicação */
.order-card.is-opening { opacity: .72; pointer-events: none; position: relative; }
.order-card.is-opening::after { content: "Abrindo…"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,.78); border-radius: inherit; font-weight: 800; color: #0b5ed7; }


/* ===== v2.2.6: enquadramento de pedidos e carrinho flutuante ===== */
.floating-cart-button {
  position: fixed;
  z-index: 55;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  min-width: 190px;
  min-height: 62px;
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) 30px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #0564f4, #00a9d7);
  box-shadow: 0 18px 45px rgba(5,73,164,.34);
  transform: translateZ(0);
  transition: transform .18s ease, box-shadow .18s ease;
}
.floating-cart-button:hover { transform: translateY(-2px); box-shadow: 0 22px 52px rgba(5,73,164,.42); }
.floating-cart-button.has-items { animation: cartPulse .35s ease; }
.floating-cart-icon { font-size: 24px; }
.floating-cart-copy { min-width: 0; display: grid; gap: 1px; text-align: left; }
.floating-cart-copy small { color: #d9f3ff; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.floating-cart-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.floating-cart-button > b { min-width: 30px; height: 30px; display: grid; place-items: center; padding: 0 7px; border-radius: 999px; color: #07509b; background: #fff; font-size: 12px; }
@keyframes cartPulse { 50% { transform: scale(1.04); } }

.order-modal { padding: 12px; overflow: hidden; }
.order-modal-shell {
  width: min(1120px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 24px);
  overflow: hidden;
}
.order-modal .modal-header,
.order-modal .modal-footer { flex: 0 0 auto; min-width: 0; }
.order-modal .modal-header > div:first-child { min-width: 0; }
.order-modal .modal-header h2 { overflow-wrap: anywhere; line-height: 1.2; }
.order-modal-body { min-width: 0; max-height: none; flex: 1 1 auto; overflow: auto; overscroll-behavior: contain; }
.order-detail-header-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.order-customer-card, .order-management-card { min-width: 0; overflow: hidden; }
.order-management-card .form-grid { min-width: 0; }
.order-management-card input,
.order-management-card select,
.order-management-card textarea { width: 100%; min-width: 0; }
.order-section-heading { min-width: 0; gap: 12px; flex-wrap: wrap; }
.order-section-heading > div { min-width: 0; }
.order-section-heading .button { max-width: 100%; white-space: normal; line-height: 1.25; }
.order-item-admin {
  grid-template-columns: minmax(250px, 1.15fr) minmax(190px, .72fr) minmax(260px, .95fr);
  min-width: 0;
  overflow: hidden;
}
.order-item-product, .order-item-quote, .order-item-controls { min-width: 0; }
.order-item-product strong, .order-item-product small,
.order-item-quote strong, .order-item-quote small { overflow-wrap: anywhere; }
.order-item-controls { grid-template-columns: minmax(0,1fr) minmax(125px, .65fr); }
.order-item-controls label, .order-item-controls select { min-width: 0; width: 100%; }
.order-item-controls .button { width: 100%; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.procurement-store-card { min-width: 0; overflow: hidden; }
.procurement-store-card li { gap: 10px; }
.procurement-store-card li span { min-width: 0; overflow-wrap: anywhere; }
.order-modal-footer { gap: 10px; flex-wrap: wrap; }
.order-modal-footer > div { display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; }
.order-modal-footer .button { white-space: normal; }

@media (max-width: 900px) {
  .order-item-admin { grid-template-columns: 1fr 1fr; }
  .order-item-controls { grid-column: 1 / -1; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .order-item-controls .button { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .floating-cart-button { display: none; }
  .order-modal { padding: 5px; }
  .order-modal-shell { width: calc(100vw - 10px); max-width: calc(100vw - 10px); max-height: calc(100dvh - 10px); }
  .order-detail-header-grid, .order-item-admin { grid-template-columns: 1fr; }
  .order-item-controls { grid-column: auto; grid-template-columns: 1fr; }
  .order-modal-footer { align-items: stretch; }
  .order-modal-footer > div { width: 100%; }
  .order-modal-footer .button { flex: 1 1 145px; }
}


/* 2.2.11 — cotação em lote */
.offer-prep-status{margin-top:8px;padding:7px 9px;border-radius:9px;font-size:11px;font-weight:700;background:#eef4fb;color:#52677f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.offer-prep-status.refreshing{background:#e8f3ff;color:#006ee6}.offer-prep-status.queued{background:#fff7dc;color:#8c6500}.offer-prep-status.error{background:#fff0f0;color:#b42318}.offer-prep-status.completed{background:#e9f9ef;color:#087a3d}
.offers-batch-progress{margin:0 0 16px;padding:16px 18px;background:#fff;border:1px solid #cfe0f5;border-radius:16px;box-shadow:0 10px 28px rgba(22,66,120,.08)}
.batch-progress-head,.batch-progress-summary{display:flex;gap:14px;justify-content:space-between;align-items:center;flex-wrap:wrap}.batch-progress-head span,.batch-progress-summary{font-size:12px;color:#60738a}
.batch-progress-track{height:10px;background:#edf3fa;border-radius:999px;overflow:hidden;margin:12px 0}.batch-progress-track span{display:block;height:100%;background:linear-gradient(90deg,#087cff,#00b9df);transition:width .35s ease}
.import-result-actions{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:760px){.batch-progress-head{align-items:flex-start}.offer-prep-status{white-space:normal}}

/* 2.3.0 - proteção do armazenamento */
.storage-status{display:flex;flex-direction:column;gap:5px;padding:14px 16px;border:1px solid #d7e3f3;border-radius:14px;background:#f7fbff;color:#405269}
.storage-status strong{font-size:14px;color:#10243e}.storage-status span{font-size:12px;overflow-wrap:anywhere}
.storage-status.connected{border-color:#a8e4c8;background:#f0fcf6}.storage-status.error{border-color:#f2b7b7;background:#fff5f5}
.backup-list{display:grid;gap:8px;margin-top:12px}.backup-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;border:1px solid #dce7f4;border-radius:12px;background:#fff}.backup-row div{display:flex;flex-direction:column;gap:3px;min-width:0}.backup-row strong{font-size:12px;overflow-wrap:anywhere}.backup-row small{color:#6d7f96}
@media(max-width:680px){.backup-row{align-items:flex-start;flex-direction:column}.backup-row button{width:100%}}

.realtime-indicator{position:fixed;right:18px;bottom:18px;z-index:10020;display:flex;align-items:center;gap:8px;padding:9px 13px;border-radius:999px;background:#fff;border:1px solid #dce7f5;box-shadow:0 12px 32px rgba(15,42,75,.16);font-size:12px;color:#17314f;transition:.2s ease}.realtime-indicator span{width:9px;height:9px;border-radius:50%;background:#f0ad32;box-shadow:0 0 0 4px rgba(240,173,50,.13)}.realtime-indicator.connected span{background:#20ad68;box-shadow:0 0 0 4px rgba(32,173,104,.13)}.realtime-indicator.offline span{background:#e15454;box-shadow:0 0 0 4px rgba(225,84,84,.13)}.realtime-indicator.connecting span{animation:realtimePulse 1.2s infinite}@keyframes realtimePulse{50%{opacity:.35;transform:scale(.8)}}@media(max-width:700px){.realtime-indicator{right:10px;bottom:10px;max-width:calc(100vw - 20px)}}
