/**
 * TL75 DESIGN SYSTEM — 2026 UNIFIED PRODUCT SPECIFICATION
 * Consistent visual language across Storefront (/), Client Dashboard (/dash/) and Admin (/admin/)
 */

:root {
  /* --- Brand Colors --- */
  --tl-brand-yellow: #FFCA05;
  --tl-brand-yellow-hover: #F2BD00;
  --tl-brand-yellow-active: #DDAA00;
  --tl-brand-yellow-light: #FFFBEA;
  --tl-brand-yellow-border: #FCE68A;
  --tl-brand-ink: #0F1115;
  --tl-brand-ink-hover: #1E2229;

  /* --- Neutrals --- */
  --tl-bg-canvas: #F8F9FA;
  --tl-bg-surface: #FFFFFF;
  --tl-bg-surface-secondary: #F3F4F6;
  --tl-bg-surface-tertiary: #E5E7EB;
  --tl-bg-dark: #0F1115;
  --tl-bg-dark-surface: #181B20;
  --tl-bg-dark-elevated: #21252D;
  --tl-bg-dark-border: #2B303B;

  /* --- Text Colors --- */
  --tl-text-primary: #0F1115;
  --tl-text-secondary: #4B5563;
  --tl-text-muted: #6B7280;
  --tl-text-disabled: #9CA3AF;
  --tl-text-inverse: #FFFFFF;
  --tl-text-inverse-muted: #9CA3AF;

  /* --- Borders --- */
  --tl-border-subtle: #F0F1F3;
  --tl-border: #E5E7EB;
  --tl-border-strong: #D1D5DB;
  --tl-border-focus: #0F1115;

  /* --- Functional / Status --- */
  --tl-success: #059669;
  --tl-success-bg: #ECFDF5;
  --tl-success-border: #A7F3D0;
  --tl-success-text: #065F46;

  --tl-warning: #D97706;
  --tl-warning-bg: #FFFBEB;
  --tl-warning-border: #FDE68A;
  --tl-warning-text: #92400E;

  --tl-danger: #DC2626;
  --tl-danger-bg: #FEF2F2;
  --tl-danger-border: #FECACA;
  --tl-danger-text: #991B1B;

  --tl-info: #2563EB;
  --tl-info-bg: #EFF6FF;
  --tl-info-border: #BFDBFE;
  --tl-info-text: #1E40AF;

  --tl-purple: #7C3AED;
  --tl-purple-bg: #F5F3FF;
  --tl-purple-border: #DDD6FE;
  --tl-purple-text: #5B21B6;

  /* Dourado com contraste garantido (AA) para texto sobre fundo claro —
     mesmo tom já usado em .tl-badge--primary. Fica mais claro no tema
     escuro (ver bloco DARK THEME) para continuar acima de 4.5:1. */
  --gold-text: #7A5C00;
  --gold-foil: linear-gradient(135deg, #FFF3C4 0%, var(--tl-brand-yellow) 45%, #C99400 100%);

  /* --- Shadows --- */
  --tl-shadow-xs: 0 1px 2px 0 rgba(16, 24, 40, 0.04);
  --tl-shadow-sm: 0 1px 3px 0 rgba(16, 24, 40, 0.08), 0 1px 2px 0 rgba(16, 24, 40, 0.04);
  --tl-shadow-md: 0 4px 10px -2px rgba(16, 24, 40, 0.06), 0 2px 6px -2px rgba(16, 24, 40, 0.04);
  --tl-shadow-lg: 0 12px 24px -4px rgba(16, 24, 40, 0.08), 0 4px 10px -2px rgba(16, 24, 40, 0.03);
  --tl-shadow-xl: 0 24px 38px -6px rgba(16, 24, 40, 0.12), 0 8px 16px -4px rgba(16, 24, 40, 0.04);
  --tl-shadow-modal: 0 30px 60px -12px rgba(0, 0, 0, 0.28), 0 10px 20px -8px rgba(0, 0, 0, 0.15);

  /* --- Border Radius --- */
  --tl-radius-xs: 4px;
  --tl-radius-sm: 6px;
  --tl-radius-md: 10px;
  --tl-radius-lg: 14px;
  --tl-radius-xl: 20px;
  --tl-radius-full: 9999px;

  /* --- Spacing --- */
  --tl-space-1: 4px;
  --tl-space-2: 8px;
  --tl-space-3: 12px;
  --tl-space-4: 16px;
  --tl-space-5: 20px;
  --tl-space-6: 24px;
  --tl-space-8: 32px;
  --tl-space-10: 40px;
  --tl-space-12: 48px;
  --tl-space-16: 64px;

  /* --- Typography --- */
  --tl-font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tl-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Type scale — shared across storefront, dashboard and admin.
     Headings keep component-specific clamp()s where fluid sizing already
     exists; these tokens are for anything new (admin stats, badges, prices). */
  --tl-text-xs: 12px;
  --tl-text-sm: 13px;
  --tl-text-base: 15px;
  --tl-text-lg: 17px;
  --tl-text-xl: 20px;
  --tl-text-2xl: 24px;
  --tl-text-3xl: 32px;
  --tl-text-display: 44px;
  --tl-leading-tight: 1.15;
  --tl-leading-normal: 1.5;

  /* --- Transitions --- */
  --tl-transition-fast: 140ms cubic-bezier(0.4, 0, 0.2, 1);
  --tl-transition-normal: 220ms cubic-bezier(0.16, 1, 0.3, 1);
  --tl-transition-slow: 320ms cubic-bezier(0.16, 1, 0.3, 1);

  /* --- Layout & Z-Index --- */
  --tl-header-height: 72px;
  --tl-sidebar-width: 260px;
  --tl-sidebar-width-collapsed: 80px;
  --tl-container-max: 1280px;
  --tl-z-base: 1;
  --tl-z-sticky: 100;
  --tl-z-drawer: 200;
  --tl-z-modal: 500;
  --tl-z-toast: 1000;

  /* --- Breakpoints (reference values — used literally in @media queries,
     CSS custom properties cannot be read inside media query conditions) ---
     --tl-bp-sm: 480px
     --tl-bp-md: 768px
     --tl-bp-lg: 1024px
     --tl-bp-xl: 1280px
     --tl-bp-2xl: 1440px */
}

/* ==========================================================================
   RESET & FOUNDATIONS
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: var(--tl-font-sans);
  color: var(--tl-text-primary);
  background-color: var(--tl-bg-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--tl-text-primary);
  background-color: var(--tl-bg-canvas);
}

/* Focus Ring */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--tl-brand-ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(255, 202, 5, 0.45);
}

/* Accessible hidden */
.tl-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;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.tl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--tl-font-sans);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  padding: 10px 18px;
  border-radius: var(--tl-radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--tl-transition-fast),
              color var(--tl-transition-fast),
              border-color var(--tl-transition-fast),
              box-shadow var(--tl-transition-fast),
              transform var(--tl-transition-fast);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.tl-btn:hover {
  transform: translateY(-1px);
}

.tl-btn:active {
  transform: translateY(0);
}

.tl-btn:disabled,
.tl-btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

/* Button Variants */
.tl-btn--primary {
  background: var(--gold-foil);
  color: var(--tl-brand-ink);
  border-color: rgba(0, 0, 0, 0.06);
  font-weight: 700;
  box-shadow: var(--tl-shadow-xs);
}
.tl-btn--primary:hover {
  background-color: var(--tl-brand-yellow-hover);
  box-shadow: var(--tl-shadow-sm);
}
.tl-btn--primary:active {
  background-color: var(--tl-brand-yellow-active);
}

.tl-btn--dark {
  background-color: var(--tl-brand-ink);
  color: var(--tl-text-inverse);
  border-color: var(--tl-brand-ink);
  box-shadow: var(--tl-shadow-xs);
}
.tl-btn--dark:hover {
  background-color: var(--tl-brand-ink-hover);
  box-shadow: var(--tl-shadow-sm);
}

.tl-btn--secondary {
  background-color: var(--tl-bg-surface);
  color: var(--tl-text-primary);
  border-color: var(--tl-border);
  box-shadow: var(--tl-shadow-xs);
}
.tl-btn--secondary:hover {
  background-color: var(--tl-bg-surface-secondary);
  border-color: var(--tl-border-strong);
  color: var(--tl-text-primary);
}

.tl-btn--ghost {
  background-color: transparent;
  color: var(--tl-text-secondary);
  border-color: transparent;
}
.tl-btn--ghost:hover {
  background-color: var(--tl-bg-surface-secondary);
  color: var(--tl-text-primary);
}

.tl-btn--danger {
  background-color: var(--tl-danger-bg);
  color: var(--tl-danger-text);
  border-color: var(--tl-danger-border);
}
.tl-btn--danger:hover {
  background-color: var(--tl-danger);
  color: #FFFFFF;
  border-color: var(--tl-danger);
}

.tl-btn--icon {
  padding: 8px;
  width: 40px;
  height: 40px;
  border-radius: var(--tl-radius-md);
  flex-shrink: 0;
}

/* Button Sizes */
.tl-btn--sm {
  padding: 6px 12px;
  font-size: 12.5px;
  border-radius: var(--tl-radius-sm);
  min-height: 32px;
}
.tl-btn--sm.tl-btn--icon {
  width: 32px;
  height: 32px;
  padding: 6px;
}

.tl-btn--md {
  padding: 10px 18px;
  font-size: 14px;
  min-height: 42px;
}

.tl-btn--lg {
  padding: 14px 24px;
  font-size: 15.5px;
  min-height: 50px;
  border-radius: var(--tl-radius-lg);
}

/* ==========================================================================
   BADGES & STATUS PILLS
   ========================================================================== */
.tl-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
  border-radius: var(--tl-radius-full);
  border: 1px solid transparent;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.tl-badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
}

.tl-badge--no-dot::before {
  display: none;
}

.tl-badge--success {
  background-color: var(--tl-success-bg);
  color: var(--tl-success-text);
  border-color: var(--tl-success-border);
}

.tl-badge--warning {
  background-color: var(--tl-warning-bg);
  color: var(--tl-warning-text);
  border-color: var(--tl-warning-border);
}

.tl-badge--danger {
  background-color: var(--tl-danger-bg);
  color: var(--tl-danger-text);
  border-color: var(--tl-danger-border);
}

.tl-badge--info {
  background-color: var(--tl-info-bg);
  color: var(--tl-info-text);
  border-color: var(--tl-info-border);
}

.tl-badge--purple {
  background-color: var(--tl-purple-bg);
  color: var(--tl-purple-text);
  border-color: var(--tl-purple-border);
}

.tl-badge--neutral {
  background-color: var(--tl-bg-surface-secondary);
  color: var(--tl-text-secondary);
  border-color: var(--tl-border);
}

.tl-badge--primary {
  /* Chip sempre em fundo creme claro (não acompanha o tema), então o texto
     fica fixo no dourado escuro — nunca no --gold-text, que clareia no
     modo escuro e perderia contraste aqui. */
  background-color: var(--tl-brand-yellow-light);
  color: #7A5C00;
  border-color: var(--tl-brand-yellow-border);
}

/* ==========================================================================
   INPUTS & FORM FIELDS
   ========================================================================== */
.tl-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.tl-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--tl-text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: 0.01em;
}

.tl-label-req {
  color: var(--tl-danger);
  font-weight: 700;
}

.tl-input,
.tl-select,
.tl-textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--tl-font-sans);
  font-size: 14px;
  line-height: 1.4;
  color: var(--tl-text-primary);
  background-color: var(--tl-bg-surface);
  border: 1px solid var(--tl-border);
  border-radius: var(--tl-radius-md);
  box-shadow: var(--tl-shadow-xs);
  transition: border-color var(--tl-transition-fast),
              box-shadow var(--tl-transition-fast),
              background-color var(--tl-transition-fast);
  -webkit-appearance: none;
  appearance: none;
  min-height: 44px;
}

.tl-input::placeholder,
.tl-textarea::placeholder {
  color: var(--tl-text-disabled);
}

.tl-input:hover,
.tl-select:hover,
.tl-textarea:hover {
  border-color: var(--tl-border-strong);
}

.tl-input:focus,
.tl-select:focus,
.tl-textarea:focus {
  border-color: var(--tl-brand-ink);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 202, 5, 0.4);
}

.tl-input[aria-invalid="true"],
.tl-select[aria-invalid="true"] {
  border-color: var(--tl-danger);
  background-color: #FFFDFD;
}

.tl-input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.tl-input:disabled,
.tl-select:disabled,
.tl-textarea:disabled {
  background-color: var(--tl-bg-surface-secondary);
  color: var(--tl-text-disabled);
  cursor: not-allowed;
}

.tl-field-hint {
  font-size: 12px;
  color: var(--tl-text-muted);
  line-height: 1.4;
  margin: 0;
}

.tl-field-error {
  font-size: 12px;
  color: var(--tl-danger-text);
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
}

/* ==========================================================================
   CARDS & SURFACES
   ========================================================================== */
.tl-card {
  background-color: var(--tl-bg-surface);
  border: 1px solid var(--tl-border);
  border-radius: var(--tl-radius-lg);
  box-shadow: var(--tl-shadow-xs);
  overflow: hidden;
  transition: border-color var(--tl-transition-normal),
              box-shadow var(--tl-transition-normal),
              transform var(--tl-transition-normal);
}

.tl-card--hoverable:hover {
  border-color: var(--tl-border-strong);
  box-shadow: var(--tl-shadow-md);
  transform: translateY(-2px);
}

.tl-card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--tl-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tl-card-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--tl-text-primary);
}

.tl-card-subtitle {
  font-size: 13px;
  color: var(--tl-text-muted);
  margin: 2px 0 0;
}

.tl-card-body {
  padding: 22px;
}

.tl-card-footer {
  padding: 14px 22px;
  background-color: var(--tl-bg-surface-secondary);
  border-top: 1px solid var(--tl-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   STAT CARDS (METRICS)
   ========================================================================== */
.tl-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.tl-stat-card {
  background-color: var(--tl-bg-surface);
  border: 1px solid var(--tl-border);
  border-radius: var(--tl-radius-lg);
  padding: 20px;
  box-shadow: var(--tl-shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.tl-stat-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: transparent;
  transition: background-color var(--tl-transition-normal);
}

.tl-stat-card:hover::after {
  background-color: var(--tl-brand-yellow);
}

.tl-stat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--tl-text-muted);
}

.tl-stat-label {
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tl-text-secondary);
}

.tl-stat-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--tl-radius-md);
  background-color: var(--tl-bg-surface-secondary);
  color: var(--tl-text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tl-stat-value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--tl-text-primary);
}

.tl-stat-meta {
  font-size: 12px;
  color: var(--tl-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   TABLES
   ========================================================================== */
.tl-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--tl-border);
  border-radius: var(--tl-radius-lg);
  background-color: var(--tl-bg-surface);
  box-shadow: var(--tl-shadow-xs);
}

.tl-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
  white-space: nowrap;
}

.tl-table th {
  background-color: #FAFAFA;
  padding: 12px 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tl-text-muted);
  border-bottom: 1px solid var(--tl-border);
  user-select: none;
}

.tl-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--tl-border-subtle);
  color: var(--tl-text-primary);
  vertical-align: middle;
  transition: background-color var(--tl-transition-fast);
}

.tl-table tbody tr:last-child td {
  border-bottom: none;
}

.tl-table tbody tr:hover td {
  background-color: #F9FAFB;
}

/* Compact inline control for editing a value directly inside a table cell
   (e.g. changing an order's status) without the full-height form field. */
.tl-select-inline {
  width: auto;
  min-height: 32px;
  padding: 4px 10px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: var(--tl-font-sans);
  color: var(--tl-text-primary);
  background-color: var(--tl-bg-surface);
  border: 1px solid var(--tl-border);
  border-radius: var(--tl-radius-full);
  cursor: pointer;
}
.tl-select-inline:hover {
  border-color: var(--tl-border-strong);
}
.tl-select-inline:disabled {
  opacity: .55;
  cursor: wait;
}

/* ==========================================================================
   MODALS / DIALOGS
   ========================================================================== */
dialog.tl-dialog {
  border: 0;
  border-radius: var(--tl-radius-xl);
  background-color: var(--tl-bg-surface);
  color: var(--tl-text-primary);
  padding: 0;
  box-shadow: var(--tl-shadow-modal);
  width: min(640px, calc(100vw - 32px));
  max-height: 90vh;
  overflow: hidden;
  margin: auto;
  position: fixed;
  inset: 0;
}

dialog.tl-dialog::backdrop {
  background-color: rgba(15, 17, 21, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.tl-dialog-header {
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--tl-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.tl-dialog-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--tl-brand-yellow) 0%, #FFE57F 100%);
}

.tl-dialog-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--tl-text-primary);
}

.tl-dialog-desc {
  font-size: 13px;
  color: var(--tl-text-muted);
  margin: 4px 0 0;
}

.tl-dialog-body {
  padding: 24px 26px;
  overflow-y: auto;
  max-height: calc(90vh - 150px);
}

.tl-dialog-footer {
  padding: 16px 26px;
  background-color: var(--tl-bg-surface-secondary);
  border-top: 1px solid var(--tl-border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* ==========================================================================
   EMPTY STATES
   ========================================================================== */
.tl-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  background-color: var(--tl-bg-surface);
  border-radius: var(--tl-radius-lg);
  border: 1px dashed var(--tl-border-strong);
  margin: 16px 0;
}

.tl-empty-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--tl-bg-surface-secondary);
  color: var(--tl-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 22px;
}

.tl-empty-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--tl-text-primary);
  margin: 0 0 6px;
}

.tl-empty-text {
  font-size: 13.5px;
  color: var(--tl-text-muted);
  max-width: 42ch;
  margin: 0 0 18px;
  line-height: 1.5;
}

/* ==========================================================================
   SKELETON LOADERS
   ========================================================================== */
.tl-skeleton {
  background: linear-gradient(90deg, #F3F4F6 25%, #E5E7EB 50%, #F3F4F6 75%);
  background-size: 200% 100%;
  animation: tl-shimmer 1.5s infinite;
  border-radius: var(--tl-radius-sm);
}

@keyframes tl-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.tl-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background-color: var(--tl-brand-ink);
  color: var(--tl-text-inverse);
  padding: 12px 22px;
  border-radius: var(--tl-radius-full);
  box-shadow: var(--tl-shadow-lg);
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  z-index: var(--tl-z-toast);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--tl-transition-fast), transform var(--tl-transition-fast);
}

.tl-toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   TYPOGRAPHY UTILITIES
   ========================================================================== */
.tl-eyebrow {
  font-size: var(--tl-text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tl-text-muted);
}

.tl-price {
  font-size: var(--tl-text-xl);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--tl-text-primary);
  font-variant-numeric: tabular-nums;
}

.tl-price-compare {
  font-size: var(--tl-text-sm);
  font-weight: 500;
  color: var(--tl-text-muted);
  text-decoration: line-through;
  margin-right: 6px;
  font-variant-numeric: tabular-nums;
}

.tl-metric {
  font-size: var(--tl-text-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: var(--tl-leading-tight);
  color: var(--tl-text-primary);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   DARK THEME — alternável via [data-theme="dark"] no <html>, com preferência
   salva em localStorage ("tl75-theme"). Reescreve só os tokens semânticos de
   superfície e texto; tokens de marca (--tl-brand-*) e o par "inverse"
   (texto sobre superfícies que já são escuras nos dois temas, como a
   sidebar do admin ou os botões --dark) ficam fixos de propósito.
   Storefront, dashboard e admin herdam isso automaticamente por
   consumirem os mesmos tokens.
   ========================================================================== */
html[data-theme="dark"] {
  --tl-bg-canvas: #0F1115;
  --tl-bg-surface: #181B20;
  --tl-bg-surface-secondary: #21252D;
  --tl-bg-surface-tertiary: #2B303B;
  --tl-text-primary: #F5F5F5;
  --tl-text-secondary: #B5BAC2;
  --tl-text-muted: #9199A3;
  --tl-text-disabled: #6B7280;
  --tl-border-subtle: #21252D;
  --tl-border: #2B303B;
  --tl-border-strong: #3A404C;
  --gold-text: #CAA43E;
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
