:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --header-top: #131921;
  --header-sub: #232f3e;
  --text: #0f172a;
  --text-secondary: #475569;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #eff6ff;
  --amber: #f59e0b;
  --amber-hover: #d97706;
  --green: #00a650;
  --green-dark: #008c44;
  --green-soft: #ecfdf5;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.22);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

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

html, body {
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
  font-family: inherit;
}

/* ============================================================
   LOGIN PAGE — SPLIT E-COMMERCE STOREFRONT STYLE
   ============================================================ */
.b2b-login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: var(--surface);
}

.b2b-login-hero {
  background: linear-gradient(135deg, #131921 0%, #1e293b 52%, #1d4ed8 100%);
  color: #ffffff;
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.b2b-login-hero::after {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, transparent 70%);
  bottom: -140px;
  right: -120px;
  pointer-events: none;
}

.b2b-login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.b2b-login-brand .logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #131921;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 900;
}

.b2b-login-hero-body {
  max-width: 500px;
  position: relative;
  z-index: 1;
}

.b2b-login-hero-body .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fde68a;
  margin-bottom: 20px;
}

.b2b-login-hero-body h1 {
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.b2b-login-hero-body p {
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.b2b-login-perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.b2b-login-perk {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.b2b-login-hero-footer {
  font-size: 12px;
  color: #94a3b8;
  position: relative;
  z-index: 1;
}

.b2b-login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  background: var(--bg);
}

.b2b-login-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
}

.b2b-login-card h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.b2b-login-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

.b2b-form-group {
  margin-bottom: 16px;
}

.b2b-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.b2b-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.b2b-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.b2b-demo-box {
  margin-top: 20px;
  padding: 14px;
  background: var(--surface-alt);
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
}

.b2b-demo-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.b2b-demo-accounts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.b2b-demo-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
  text-align: left;
}

.b2b-demo-btn:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.b2b-demo-btn code {
  font-size: 11.5px;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--primary);
  font-weight: 700;
}

.b2b-login-back {
  display: block;
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}

.b2b-login-back:hover {
  color: var(--primary);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
}

.btn-success {
  background: var(--green);
  color: #ffffff;
}

.btn-success:hover:not(:disabled) {
  background: var(--green-dark);
}

.btn-amber {
  background: var(--amber);
  color: #131921;
}

.btn-amber:hover:not(:disabled) {
  background: var(--amber-hover);
}

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-outline:hover:not(:disabled) {
  background: var(--surface-alt);
  border-color: var(--text-secondary);
}

.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.16);
}

.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 12.5px;
  border-radius: 8px;
}

/* ============================================================
   2-TIER E-COMMERCE HEADER (AMAZON + MERCADO LIVRE STYLE)
   ============================================================ */
.ecom-header {
  position: sticky;
  top: 0;
  z-index: 60;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
}

.ecom-header-top {
  background: var(--header-top);
  color: #ffffff;
}

.ecom-header-top-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.ecom-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
  color: #ffffff;
}

.ecom-brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #131921;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 18px;
}

.ecom-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.ecom-brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ecom-brand-tag {
  font-size: 11px;
  color: #fbbf24;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Prominent Search Bar (Mercado Livre / Amazon) */
.ecom-search-wrap {
  flex: 1;
  display: flex;
  align-items: stretch;
  max-width: 680px;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
  border: 2px solid transparent;
  transition: border-color 0.15s;
}

.ecom-search-wrap:focus-within {
  border-color: var(--amber);
}

.ecom-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  background: transparent;
}

.ecom-search-clear {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 0 10px;
  cursor: pointer;
  font-size: 15px;
  display: none;
}

.ecom-search-clear.visible {
  display: inline-flex;
  align-items: center;
}

.ecom-search-btn {
  background: var(--amber);
  border: none;
  color: #131921;
  padding: 0 18px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.ecom-search-btn:hover {
  background: var(--amber-hover);
}

/* Header Actions */
.ecom-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.ecom-account-pill {
  display: flex;
  flex-direction: column;
  padding: 6px 11px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  max-width: 210px;
}

.ecom-account-hi {
  font-size: 11px;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ecom-account-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ecom-nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #e2e8f0;
  padding: 8px 12px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.ecom-nav-btn:hover,
.ecom-nav-btn.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.ecom-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #ffffff;
  padding: 7px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.ecom-cart-btn:hover {
  background: rgba(245, 158, 11, 0.25);
}

.ecom-cart-icon-wrap {
  position: relative;
  font-size: 20px;
  line-height: 1;
}

.ecom-cart-badge {
  position: absolute;
  top: -7px;
  right: -9px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--amber);
  color: #131921;
  font-size: 11px;
  font-weight: 900;
  display: grid;
  place-items: center;
}

.ecom-cart-meta {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.ecom-cart-label {
  font-size: 10.5px;
  color: #cbd5e1;
}

.ecom-cart-total {
  font-size: 13px;
  font-weight: 800;
  color: #fbbf24;
}

/* Sub-Nav Category Bar */
.ecom-subnav {
  background: var(--header-sub);
  color: #e2e8f0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ecom-subnav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ecom-subnav-inner::-webkit-scrollbar {
  display: none;
}

.ecom-cat-pill {
  background: transparent;
  border: 1px solid transparent;
  color: #e2e8f0;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.ecom-cat-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.ecom-cat-pill.active {
  background: #ffffff;
  color: #131921;
  font-weight: 700;
}

.ecom-subnav-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ecom-tier-chip {
  background: rgba(0, 166, 80, 0.2);
  border: 1px solid rgba(0, 166, 80, 0.45);
  color: #6ee7b7;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

/* ============================================================
   MAIN STOREFRONT CONTAINER
   ============================================================ */
.ecom-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 20px 56px;
}

/* ============================================================
   HERO PROMO BANNER (NUVEMSHOP + MERCADO LIVRE STYLE)
   ============================================================ */
.ecom-hero {
  background: linear-gradient(120deg, #0f172a 0%, #1e3a8a 58%, #2563eb 100%);
  border-radius: var(--radius-lg);
  padding: 28px 34px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.ecom-hero::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.ecom-hero-copy {
  max-width: 680px;
  position: relative;
  z-index: 1;
}

.ecom-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.ecom-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.14);
  color: #f8fafc;
}

.ecom-hero-badge.gold {
  background: #f59e0b;
  color: #131921;
}

.ecom-hero-badge.green {
  background: var(--green);
  color: #ffffff;
}

.ecom-hero h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}

.ecom-hero p {
  font-size: 14px;
  color: #dbeafe;
  line-height: 1.5;
}

.ecom-hero-stats {
  display: flex;
  gap: 12px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.ecom-hero-stat {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 12px 16px;
  min-width: 138px;
}

.ecom-hero-stat-label {
  font-size: 11px;
  color: #bfdbfe;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.ecom-hero-stat-value {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
}

/* ============================================================
   TRUST / BENEFIT STRIP (MERCADO LIVRE + NUVEMSHOP)
   ============================================================ */
.ecom-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.ecom-benefit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-xs);
}

.ecom-benefit-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

.ecom-benefit-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.ecom-benefit-sub {
  font-size: 11.5px;
  color: var(--muted);
}

/* ============================================================
   CATALOG TOOLBAR (COUNT, FILTER TOGGLE, SORT)
   ============================================================ */
.ecom-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-xs);
}

.ecom-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ecom-results-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.ecom-results-count {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.ecom-toolbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ecom-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.ecom-toggle-label input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.ecom-sort-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.ecom-sort-select {
  padding: 7px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  outline: none;
}

.ecom-sort-select:focus {
  border-color: var(--primary);
}

/* ============================================================
   PRODUCT GRID & E-COMMERCE CARDS
   ============================================================ */
.ecom-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ecom-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  box-shadow: var(--shadow-xs);
}

.ecom-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.ecom-card-media {
  position: relative;
  height: 205px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  cursor: pointer;
  overflow: hidden;
}

.ecom-card-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.ecom-card:hover .ecom-card-media img {
  transform: scale(1.05);
}

.ecom-card-placeholder {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  color: #64748b;
  display: grid;
  place-items: center;
  font-size: 32px;
}

.ecom-card-badges-tl {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ecom-badge-off {
  background: var(--green);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(0, 166, 80, 0.25);
}

.ecom-badge-grade {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.ecom-badge-oos {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.72);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--danger);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ecom-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ecom-card-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.ecom-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
  cursor: pointer;
}

.ecom-card-title:hover {
  color: var(--primary);
}

.ecom-card-sku {
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 10px;
}

.ecom-card-pricing {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}

.ecom-price-old {
  font-size: 12px;
  color: var(--muted);
  text-decoration: line-through;
  min-height: 16px;
}

.ecom-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.ecom-price-main {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.ecom-price-unit {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
}

.ecom-installment {
  font-size: 12px;
  color: var(--green-dark);
  font-weight: 600;
  margin-top: 2px;
}

.ecom-stock-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-secondary);
  margin: 8px 0 12px;
}

.ecom-stock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.ecom-stock-dot.low {
  background: var(--amber);
}

.ecom-stock-dot.out {
  background: var(--danger);
}

/* Inline stepper on card when item is already in cart */
.ecom-card-stepper {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  border: 1.5px solid var(--primary);
  border-radius: 10px;
  overflow: hidden;
  background: var(--primary-soft);
}

.ecom-card-stepper button {
  height: 36px;
  border: none;
  background: transparent;
  color: var(--primary);
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}

.ecom-card-stepper button:hover {
  background: rgba(37, 99, 235, 0.14);
}

.ecom-card-stepper span {
  text-align: center;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--primary);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.ecom-empty {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 24px;
  text-align: center;
  color: var(--muted);
}

.ecom-empty-icon {
  font-size: 46px;
  margin-bottom: 12px;
}

.ecom-empty h3 {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 6px;
}

/* ============================================================
   SLIDE-OVER CART DRAWER (NUVEMSHOP + MERCADO LIVRE STYLE)
   ============================================================ */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(2px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 440px;
  max-width: 100vw;
  background: var(--surface);
  z-index: 100;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
}

.cart-drawer-title {
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-drawer-close {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  cursor: pointer;
  font-size: 16px;
  display: grid;
  place-items: center;
  color: var(--text-secondary);
}

.cart-drawer-close:hover {
  background: #e2e8f0;
}

/* Minimum order progress bar */
.cart-min-bar {
  padding: 12px 20px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}

.cart-min-text {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 7px;
  display: flex;
  justify-content: space-between;
}

.cart-min-text.ok {
  color: var(--green-dark);
}

.cart-progress-track {
  height: 7px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.cart-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b, #2563eb);
  transition: width 0.25s ease;
}

.cart-progress-fill.ok {
  background: var(--green);
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 20px;
}

.cart-item {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  align-items: center;
}

.cart-item-thumb {
  width: 58px;
  height: 58px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: #ffffff;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 22px;
}

.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.cart-item-info {
  min-width: 0;
}

.cart-item-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 3px;
}

.cart-item-grade {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 5px;
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 12.5px;
  color: var(--muted);
}

.cart-item-price strong {
  color: var(--text);
}

.cart-item-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.qty-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.qty-pill button {
  width: 28px;
  height: 28px;
  border: none;
  background: var(--surface-alt);
  cursor: pointer;
  font-weight: 800;
  color: var(--text);
}

.qty-pill button:hover {
  background: #e2e8f0;
}

.qty-pill span {
  min-width: 28px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.cart-remove-link {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 11.5px;
  cursor: pointer;
}

.cart-remove-link:hover {
  color: var(--danger);
  text-decoration: underline;
}

.cart-drawer-footer {
  border-top: 1px solid var(--border);
  padding: 16px 20px 20px;
  background: var(--surface-alt);
}

.cart-checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.cart-field label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.cart-field select,
.cart-field textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 13px;
  background: var(--surface);
  color: var(--text);
  outline: none;
}

.cart-field textarea {
  resize: none;
  min-height: 48px;
}

.cart-summary-rows {
  margin: 12px 0 14px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.cart-summary-row.total {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-top: 6px;
}

/* ============================================================
   ORDERS VIEW (AMAZON / MERCADO LIVRE STYLE)
   ============================================================ */
.orders-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.orders-header h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.order-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
}

.order-card-head {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.order-meta-group {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.order-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.order-meta-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.order-meta-val {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--green-soft);
  color: var(--green-dark);
  border: 1px solid #a7f3d0;
}

.status-pill.pending {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}

.status-pill.cancel {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: #fecaca;
}

.order-card-body {
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.order-items-list {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.order-item-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.order-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 175px;
}

/* ============================================================
   MODALS (QUICK VIEW, GRADE PICKER, PIX QR CODE)
   ============================================================ */
.b2b-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(3px);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.b2b-modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.b2b-modal.sm {
  max-width: 520px;
}

.b2b-modal-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 2;
}

.b2b-modal-head h3 {
  font-size: 17px;
  font-weight: 800;
}

.b2b-modal-body {
  padding: 22px;
}

/* Quick-view 2-column layout (Amazon / ML product page style) */
.qv-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
}

.qv-stage {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.qv-stage img {
  max-width: 100%;
  max-height: 290px;
  object-fit: contain;
}

.qv-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.qv-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: var(--text-secondary);
}

.qv-price-box {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 14px 0;
}

.qv-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.qv-buy-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Grade chips */
.grade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.grade-option-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}

.grade-option-btn:hover:not(:disabled) {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.grade-option-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* PIX Box */
.pix-modal-box {
  text-align: center;
}

.pix-qr-wrap {
  display: inline-block;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  margin: 14px 0;
  box-shadow: var(--shadow-sm);
}

.pix-code-box {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  word-break: break-all;
  color: var(--text-secondary);
  margin-bottom: 14px;
  max-height: 76px;
  overflow-y: auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
.ecom-footer {
  background: var(--header-top);
  color: #cbd5e1;
  padding: 28px 20px;
  margin-top: 24px;
}

.ecom-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}

.ecom-footer strong {
  color: #ffffff;
}

/* ============================================================
   MOBILE FLOATING CART BAR
   ============================================================ */
.mobile-cart-bar {
  display: none;
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 55;
  background: #131921;
  color: #ffffff;
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

/* ============================================================
   TOASTS
   ============================================================ */
.toast-container {
  position: fixed;
  right: 18px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 150;
}

.toast {
  background: #0f172a;
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--green);
  max-width: 360px;
}

.toast.error {
  border-left-color: var(--danger);
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1200px) {
  .ecom-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ecom-benefits {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .b2b-login-page {
    grid-template-columns: 1fr;
  }
  .b2b-login-hero {
    display: none;
  }
  .ecom-header-top-inner {
    flex-wrap: wrap;
    gap: 10px;
  }
  .ecom-search-wrap {
    order: 3;
    flex-basis: 100%;
    max-width: 100%;
  }
  .ecom-account-pill {
    display: none;
  }
  .ecom-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
  }
  .ecom-hero-stats {
    width: 100%;
    flex-wrap: wrap;
  }
  .ecom-hero-stat {
    flex: 1;
    min-width: 120px;
  }
  .qv-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ecom-container {
    padding: 14px 12px 86px;
  }
  .ecom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .ecom-benefits {
    grid-template-columns: 1fr;
  }
  .ecom-card-media {
    height: 150px;
    padding: 10px;
  }
  .ecom-card-body {
    padding: 10px 11px 12px;
  }
  .ecom-price-main {
    font-size: 18px;
  }
  .ecom-cart-meta {
    display: none;
  }
  .ecom-nav-btn .label-txt {
    display: none;
  }
  .mobile-cart-bar.visible {
    display: flex;
  }
  .cart-checkout-grid {
    grid-template-columns: 1fr;
  }
}
