/* ============================================
   ARQUIVOS DIGITAIS — Design System Completo
   Todas as cores são controladas por variáveis
   CSS que são injetadas dinamicamente via EJS
   baseadas nas cores extraídas da logo da loja.
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================
   VARIÁVEIS PADRÃO DO SISTEMA
   (substituídas dinamicamente por loja)
   ============================================ */
:root {
  --color-primary: #6366f1;
  --color-primary-rgb: 99, 102, 241;
  --color-secondary: #818cf8;
  --color-accent: #f59e0b;
  --color-bg: #f8fafc;
  --color-text: #0f172a;
  --color-card: #ffffff;
  --color-muted: #64748b;
  --color-border: #f1f5f9;
  --color-success: #10b981;
  --color-error: #ef4444;
  --color-warning: #f59e0b;
  --color-pix: #32bcad;

  /* Sombras minimalistas e elegantes */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.015);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.02);
  --shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 12px 36px rgba(15, 23, 42, 0.04);

  /* Bordas mais sofisticadas e limpas */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
  --radius-full: 9999px;

  /* Tipografia */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;

  /* Transições */
  --transition: all 0.2s ease;
  --transition-slow: all 0.25s ease;

  /* Layout */
  --container-max: 1200px;
  --nav-height: 75px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-sans);
}

input, select, textarea {
  font-family: var(--font-sans);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 720px;
}

.container--checkout {
  max-width: 960px;
}

/* ============================================
   TIPOGRAFIA
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-text);
}

.text-muted { color: var(--color-muted); }
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-success { color: var(--color-success); }
.text-error { color: var(--color-error); }

.text-xs { font-size: var(--font-size-xs); }
.text-sm { font-size: var(--font-size-sm); }
.text-base { font-size: var(--font-size-base); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }
.text-2xl { font-size: var(--font-size-2xl); }
.text-3xl { font-size: var(--font-size-3xl); }
.text-4xl { font-size: var(--font-size-4xl); }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  min-height: var(--nav-height);
  height: auto;
  padding: 8px 0;
  background: var(--color-card);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.92);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: var(--font-size-lg);
  color: var(--color-primary);
  transition: var(--transition);
}

.navbar__brand img {
  height: 36px;
  width: auto;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.navbar__brand:hover {
  opacity: 0.85;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar__link {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-muted);
  transition: var(--transition);
}

.navbar__link:hover {
  background: var(--color-border);
  color: var(--color-text);
}

/* ============================================
   BOTÕES
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: var(--transition);
}

.btn:hover::after {
  background: rgba(255,255,255,0.06);
}

/* Botão Primário */
.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: none;
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.08);
}

.btn--primary:active {
  transform: translateY(0);
}

/* Botão Grande (CTA Principal) */
.btn--xl {
  padding: 12px 28px;
  font-size: var(--font-size-base);
  border-radius: var(--radius-md);
}

/* Botão Outline */
.btn--outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: white;
}

/* Botão Ghost */
.btn--ghost {
  background: transparent;
  color: var(--color-muted);
}

.btn--ghost:hover {
  background: var(--color-border);
  color: var(--color-text);
}

/* Botão Sucesso */
.btn--success {
  background: var(--color-success);
  color: white;
  box-shadow: none;
}

.btn--success:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
}

/* Botão Pix */
.btn--pix {
  background: var(--color-pix);
  color: white;
  box-shadow: none;
}

.btn--pix:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(50, 188, 173, 0.08);
}

/* Tamanhos */
.btn--sm {
  padding: 8px 16px;
  font-size: var(--font-size-sm);
}

.btn--lg {
  padding: 14px 32px;
  font-size: var(--font-size-lg);
}

.btn--full {
  width: 100%;
}

.btn--loading {
  pointer-events: none;
  opacity: 0.75;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-sm);
  border-color: #e2e8f0;
}

.card__image {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: linear-gradient(135deg, var(--color-border), #e0e7ff);
}

.card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, #f1f5f9, #e0e7ff);
}

.card__body {
  padding: 20px;
}

.card__categories {
  display: flex;
  align-items: center;
  min-width: 0;
  margin-bottom: 4px;
  overflow: hidden;
  color: var(--color-muted);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.3;
}
.card__category-name {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card__category-name + .card__category-name::before {
  content: "·";
  margin: 0 5px;
  color: var(--color-muted);
}

.card__title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
  line-height: 1.4;
  min-height: 2.8em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card__description {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.card__price-value {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--color-primary);
}

.card__price-compare {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  text-decoration: line-through;
}

/* ============================================
   PRODUTO GRID
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* ============================================
   BADGE
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge--primary {
  background: rgba(var(--color-primary-rgb), 0.1);
  color: var(--color-primary);
}

.badge--success {
  background: rgba(16,185,129,0.1);
  color: var(--color-success);
}

.badge--warning {
  background: rgba(245,158,11,0.1);
  color: var(--color-warning);
}

.badge--error {
  background: rgba(239,68,68,0.1);
  color: var(--color-error);
}

/* ============================================
   FORMULÁRIOS
   ============================================ */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.form-label .required {
  color: var(--color-error);
  margin-left: 2px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background: var(--color-card);
  transition: var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb), 0.12);
}

.form-input::placeholder {
  color: #94a3b8;
}

.form-input--error {
  border-color: var(--color-error);
}

.form-hint {
  font-size: var(--font-size-xs);
  color: var(--color-muted);
  margin-top: 4px;
}

.form-error {
  font-size: var(--font-size-xs);
  color: var(--color-error);
  margin-top: 4px;
}

/* ============================================
   ALERTAS / FLASH
   ============================================ */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.alert--success {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  color: #065f46;
}

.alert--error {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  color: #991b1b;
}

.alert--info {
  background: rgba(var(--color-primary-rgb), 0.08);
  border: 1px solid rgba(var(--color-primary-rgb), 0.2);
  color: var(--color-primary);
}

/* ============================================
   SEÇÃO HERO (HOME)
   ============================================ */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #f0f4ff 50%, #faf5ff 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.1), transparent 70%);
  top: -200px;
  right: -200px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.07), transparent 70%);
  bottom: -150px;
  left: -150px;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(var(--color-primary-rgb), 0.08);
  color: var(--color-primary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(var(--color-primary-rgb), 0.15);
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--color-text) 30%, var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: var(--font-size-xl);
  color: var(--color-muted);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   SEÇÕES
   ============================================ */
.section {
  padding: 80px 0;
}

.section--sm {
  padding: 48px 0;
}

.section__header {
  margin-bottom: 48px;
  text-align: center;
}

.section__title {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  margin-bottom: 12px;
}

.section__subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-muted);
}

/* ============================================
   PÁGINA DO PRODUTO
   ============================================ */
.product-page {
  padding: 24px 0 80px;
}

.product-breadcrumb {
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--color-muted);
  min-width: 0;
}

.product-breadcrumb__list {
  display: flex;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-breadcrumb__item {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 0 0 auto;
}

.product-breadcrumb__item + .product-breadcrumb__item::before {
  content: '\203A';
  flex: 0 0 auto;
  margin: 0 8px;
  color: color-mix(in srgb, var(--color-muted) 68%, transparent);
}

.product-breadcrumb__link {
  color: var(--color-primary);
  text-decoration: none;
}

.product-breadcrumb__link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-breadcrumb__link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

.product-breadcrumb__item--current {
  flex: 1 1 auto;
}

.product-breadcrumb__item--current span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 64px;
}

.product-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, #f1f5f9, #e0e7ff);
}

.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.product-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  line-height: 1.15;
}

.product-subtitle {
  color: var(--color-muted);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.product-description {
  font-size: var(--font-size-lg);
  color: var(--color-muted);
  line-height: 1.7;
}

.product-description-section {
  width: 100%;
}

.product-digital-notice {
  width: 100%;
  margin: 12px 0 0;
  color: var(--color-primary);
  font-size: 0.9rem;
  font-style: normal;
  line-height: 1.5;
}

.product-price-block {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.05), rgba(var(--color-primary-rgb), 0.02));
  border: 1px solid rgba(var(--color-primary-rgb), 0.12);
  border-radius: var(--radius-lg);
}

.product-price {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-primary);
}

.product-price-currency {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-primary);
}

.product-price-compare {
  font-size: var(--font-size-lg);
  color: var(--color-muted);
  text-decoration: line-through;
}

.product-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-trust {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: var(--font-size-sm);
  color: var(--color-muted);
}

.product-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-delivery-notice {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--color-card);
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.02);
}

.product-delivery-notice__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.1);
}

.product-delivery-notice__icon svg {
  width: 21px;
  height: 21px;
}

.product-delivery-notice__content,
.product-delivery-notice__title,
.product-delivery-notice__text {
  display: block;
}

.product-delivery-notice__content {
  min-width: 0;
}

.product-delivery-notice__title {
  margin-bottom: 3px;
  color: var(--color-text);
  font-size: 0.9rem;
  line-height: 1.35;
}

.product-delivery-notice__text {
  color: var(--color-muted);
  font-size: 0.82rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

/* ============================================
   CHECKOUT
   ============================================ */
.checkout-page {
  padding: 32px 0 80px;
  min-height: 100vh;
  background: var(--color-bg);
}

.checkout-header {
  text-align: center;
  padding: 20px 0 32px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 40px;
}

.checkout-header__logo {
  height: 40px;
  margin: 0 auto 12px;
}

.checkout-header__store {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

/* Resumo do pedido */
.checkout-summary {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 32px;
}

.checkout-summary__title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.checkout-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.checkout-item:last-of-type {
  border-bottom: none;
}

.checkout-item__image {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  background: linear-gradient(135deg, #f1f5f9, #e0e7ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.checkout-item__info {
  flex: 1;
}

.checkout-item__name {
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: 4px;
}

.checkout-item__type {
  font-size: var(--font-size-xs);
  color: var(--color-muted);
}

.checkout-item__price {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

/* Order Bump */
.order-bump {
  margin-top: 20px;
  padding: 20px;
  border: 2px dashed rgba(var(--color-primary-rgb), 0.3);
  border-radius: var(--radius-lg);
  background: rgba(var(--color-primary-rgb), 0.03);
  transition: var(--transition);
}

.order-bump.active {
  border-style: solid;
  background: rgba(var(--color-primary-rgb), 0.06);
}

.order-bump__header {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.order-bump__checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.order-bump__checkbox.checked {
  background: var(--color-primary);
}

.order-bump__checkbox.checked::after {
  content: '✓';
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.order-bump__label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  flex: 1;
}

.order-bump__price {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-primary);
}

.checkout-total {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkout-total__label {
  font-size: var(--font-size-lg);
  font-weight: 700;
}

.checkout-total__value {
  font-size: var(--font-size-2xl);
  font-weight: 900;
  color: var(--color-primary);
}

/* Formulário de checkout */
.checkout-form {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 32px;
}

.checkout-form__title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: 24px;
}

/* Seletor de método de pagamento */
.payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.payment-method {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  background: var(--color-bg);
}

.payment-method:hover {
  border-color: var(--color-primary);
}

.payment-method.active {
  border-color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.06);
}

.payment-method__icon {
  font-size: 28px;
  margin-bottom: 6px;
}

.payment-method__name {
  font-size: var(--font-size-sm);
  font-weight: 600;
}

/* PIX QR Code */
.pix-panel {
  text-align: center;
  padding: 24px;
  border: 1px solid rgba(50, 188, 173, 0.2);
  border-radius: var(--radius-xl);
  background: rgba(50,188,173,0.04);
  display: none;
}

.pix-panel.visible {
  display: block;
  animation: fadeIn 0.3s ease;
}

.pix-qr {
  width: 200px;
  height: 200px;
  margin: 0 auto 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.pix-qr img {
  width: 100%;
  height: 100%;
}

.pix-copy-paste {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-xs);
  color: var(--color-muted);
  background: var(--color-bg);
  text-align: left;
  word-break: break-all;
  cursor: pointer;
  transition: var(--transition);
  resize: none;
  margin: 12px 0;
  font-family: monospace;
}

.pix-copy-paste:hover {
  border-color: var(--color-primary);
}

.pix-timer {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  margin-top: 8px;
}

.pix-timer span {
  font-weight: 700;
  color: var(--color-warning);
}

/* Cartão de crédito */
.card-panel {
  display: none;
}

.card-panel.visible {
  display: block;
}

/* ============================================
   SPINNER DE LOADING
   ============================================ */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   PÁGINA DE SUCESSO
   ============================================ */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: linear-gradient(135deg, #f0fdf4, #f0f9ff);
}

.success-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-success), #34d399);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 36px;
  box-shadow: 0 8px 30px rgba(16,185,129,0.35);
  animation: bounceIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.success-title {
  font-size: var(--font-size-3xl);
  font-weight: 900;
  color: var(--color-text);
  margin-bottom: 12px;
}

.success-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.download-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  text-align: left;
}

.download-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.download-item:hover {
  border-color: var(--color-success);
  background: #f0fdf4;
}

.download-item__icon {
  font-size: 28px;
  flex-shrink: 0;
}

.download-item__info {
  flex: 1;
}

.download-item__name {
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: 2px;
}

.download-item__size {
  font-size: var(--font-size-xs);
  color: var(--color-muted);
}

.success-note {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  padding: 16px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  margin-top: 24px;
}

/* ============================================
   PAINEL ADMIN
   ============================================ */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: #f1f5f9;
}

.admin-sidebar {
  width: 260px;
  background: var(--color-text);
  color: white;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-sidebar__brand {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-sidebar__logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  object-fit: contain;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.admin-sidebar__name {
  font-weight: 700;
  font-size: var(--font-size-sm);
  line-height: 1.3;
}

.admin-sidebar__sub {
  font-size: var(--font-size-xs);
  opacity: 0.5;
  margin-top: 2px;
}

.admin-nav {
  padding: 16px 12px;
  flex: 1;
}

.admin-nav__label {
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.4;
  padding: 8px 8px 4px;
  margin-bottom: 4px;
}

.admin-nav__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
  margin-bottom: 2px;
}

.admin-nav__link:hover,
.admin-nav__link.active,
.admin-nav__link--active {
  background: rgba(255,255,255,0.1);
  color: white;
}

.admin-nav__icon {
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.admin-content {
  flex: 1;
  overflow: auto;
}

.admin-topbar {
  height: 64px;
  background: white;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  padding: 0 32px;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}

.admin-topbar__title {
  font-size: var(--font-size-xl);
  font-weight: 700;
}

.admin-main {
  padding: 32px;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.stat-card__label {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.stat-card__value {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-card__icon {
  font-size: 28px;
  margin-bottom: 12px;
}

/* Tabela Admin */
.admin-table-wrapper {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  padding: 12px 20px;
  text-align: left;
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.admin-table td {
  padding: 16px 20px;
  font-size: var(--font-size-sm);
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: #fafbfc;
}

/* Preview de cores */
.color-preview {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(0,0,0,0.1);
  cursor: pointer;
  transition: var(--transition);
}

.color-swatch:hover {
  transform: scale(1.15);
}

/* Upload Zone */
.upload-zone {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--color-bg);
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.04);
}

.upload-zone__icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.upload-zone__text {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
}

.upload-zone__text strong {
  color: var(--color-primary);
}

/* Preview da logo e cores da loja */
.store-preview {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-top: 24px;
}

.store-preview__topbar {
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
}

.store-preview__dots {
  display: flex;
  gap: 6px;
}

.store-preview__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.store-preview__content {
  padding: 20px;
  display: flex;
  gap: 12px;
}

.store-preview__card {
  border-radius: var(--radius-md);
  height: 80px;
  flex: 1;
  display: flex;
  align-items: flex-end;
  padding: 10px;
}

.store-preview__btn {
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  color: white;
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8fafc, #f0f4ff);
  padding: 24px;
}

.login-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 48px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-xl);
}

.login-card__logo {
  text-align: center;
  margin-bottom: 32px;
}

.login-card__title {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  margin-bottom: 8px;
}

.login-card__subtitle {
  color: var(--color-muted);
  font-size: var(--font-size-sm);
}

.landing-login-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--color-primary);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.home-login-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.home-login-modal.is-open { display: flex; }

.home-login-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, .68);
  backdrop-filter: blur(4px);
  cursor: default;
}

.home-login-modal__card {
  position: relative;
  z-index: 1;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

.home-login-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: 0;
  background: transparent;
  color: var(--color-muted);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.home-login-modal__options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 24px;
  color: var(--color-muted);
  font-size: var(--font-size-sm);
}

.home-login-modal__options label {
  display: flex;
  align-items: center;
  gap: 7px;
}

body.login-modal-open { overflow: hidden; }

/* Onboarding individual e editor compartilhado de produtos */
.onboarding-page { background: #f8fafc; }
.visually-hidden { 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; }
.admin-card { background: #fff; border: 1px solid var(--color-border); border-radius: 16px; }
.setup { max-width: 920px; margin: 0 auto; padding: 32px 20px 64px; }
.setup--embedded { max-width: 1040px; padding: 0 0 40px; }
.setup__head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 24px; }
.setup__head h1, .setup__head h2 { margin: 6px 0; text-wrap: balance; }
.setup__head p { margin: 0; color: var(--color-muted); text-wrap: pretty; }
.setup__eyebrow { margin-top: 18px !important; color: var(--color-primary) !important; font-size: .82rem; font-weight: 800; text-transform: uppercase; }
.setup-progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 24px; }
.setup-progress__item { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 10px; border: 1px solid var(--color-border); border-radius: 10px; background: #fff; color: var(--color-muted); font-size: .78rem; font-weight: 700; text-decoration: none; }
.setup-progress__item span { display: grid; flex: 0 0 auto; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: #eef2ff; color: var(--color-primary); font-variant-numeric: tabular-nums; }
.setup-progress__item.is-current { border-color: var(--color-primary); color: var(--color-text); }
.setup-progress__item.is-complete span { background: #dcfce7; color: #166534; }
.setup-card { background: #fff; border: 1px solid var(--color-border); border-radius: 16px; padding: 24px; }
.setup-card--single { padding: 32px; }
.setup-card h2 { margin: 12px 0 8px; text-wrap: balance; }
.setup-card > p { color: var(--color-muted); text-wrap: pretty; }
.setup-status { display: inline-flex; align-items: center; border-radius: 999px; padding: 6px 10px; background: #eef2ff; color: #3730a3; font-size: .8rem; font-weight: 700; }
.setup-status--ok { background: #dcfce7; color: #166534; }
.setup-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.setup-actions form { margin: 0; }
.setup-logo-preview { display: block; max-width: 180px; max-height: 96px; margin: 8px 0 20px; object-fit: contain; }
.setup-notice { padding: 14px; border-radius: 10px; background: #fff7ed; color: #9a3412 !important; }
.setup-checklist { display: grid; gap: 8px; margin: 22px 0; padding: 0; list-style: none; }
.setup-checklist li { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--color-border); }
.setup-checklist li span { width: 20px; color: var(--color-muted); }
.setup-checklist li.is-complete span { color: #15803d; }
.setup-checklist li a { margin-left: auto; font-weight: 700; }
.product-editor-section { margin: 24px 0; padding: 20px; border: 1px solid var(--color-border); border-radius: 12px; }
.product-editor-section h3 { margin: 0 0 6px; font-size: 1rem; text-wrap: balance; }
.product-link-list { display: grid; gap: 10px; margin: 16px 0; }
.link-row { display: grid; grid-template-columns: minmax(140px, .8fr) minmax(220px, 1.6fr) auto; gap: 10px; align-items: center; }
.product-confirmation, .product-checkbox { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-weight: 600; }
.upload-zone { display: grid; justify-items: center; gap: 5px; padding: 28px; border: 2px dashed var(--color-border); border-radius: 12px; text-align: center; cursor: pointer; }
.upload-zone span { color: var(--color-muted); font-size: .85rem; }
.gallery-badge { position: absolute; bottom: 4px; left: 4px; padding: 2px 6px; border-radius: 4px; background: rgba(15, 23, 42, .72); color: #fff; font-size: .65rem; }
.product-advanced { margin: 24px 0; border: 1px solid var(--color-border); border-radius: 12px; }
.product-advanced summary { padding: 16px 20px; cursor: pointer; font-weight: 750; }
.product-advanced__content { padding: 4px 20px 20px; }
.tag-editor { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 44px; padding: 7px; border: 1px solid var(--color-border); border-radius: 8px; }
.tag-editor > input { flex: 1; min-width: 140px; border: 0; outline: 0; padding: 6px; }
.tag-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; background: #eef2ff; color: #3730a3; font-size: .78rem; font-weight: 700; }
.tag-pill button { border: 0; padding: 0; background: transparent; color: inherit; cursor: pointer; }
.tag-pill--new { background: #ecfdf5; color: #047857; }
.tag-pill__status { padding: 2px 5px; border-radius: 999px; background: #d1fae5; font-size: .64rem; line-height: 1; text-transform: uppercase; }
.tag-suggestions:not(:empty) { position: absolute; z-index: 20; right: 0; left: 0; display: grid; max-height: 180px; overflow: auto; border: 1px solid var(--color-border); border-radius: 8px; background: #fff; box-shadow: var(--shadow-md); }
.tag-suggestions button { border: 0; padding: 10px 12px; background: #fff; text-align: left; cursor: pointer; }
.tag-suggestions button:hover, .tag-suggestions button:focus-visible { background: #f8fafc; outline: 0; }
.tag-suggestions .tag-suggestion--create { border-top: 1px solid var(--color-border); color: var(--color-primary); font-weight: 700; }
.blocking-dialog { width: min(440px, calc(100% - 32px)); padding: 28px; border: 0; border-radius: 16px; color: var(--color-text); box-shadow: var(--shadow-xl); }
.blocking-dialog::backdrop { background: rgba(15, 23, 42, .7); }
.blocking-dialog__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; background: #fee2e2; color: #b91c1c; font-size: 1.3rem; font-weight: 900; }
.blocking-dialog h2 { margin: 16px 0 8px; text-wrap: balance; }
.blocking-dialog p { color: var(--color-muted); line-height: 1.6; text-wrap: pretty; }

@media (max-width: 760px) {
  .setup__head { flex-direction: column; }
  .setup-progress { grid-template-columns: 1fr; }
  .setup-progress__item:not(.is-current):not(.is-complete) { display: none; }
  .setup-card--single { padding: 22px; }
  .link-row { grid-template-columns: 1fr; }
}

/* ============================================
   PÁGINA DE ERRO
   ============================================ */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

.error-card {
  max-width: 480px;
}

.error-code {
  font-size: 8rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

/* ============================================
   VITRINE DA LOJA
   ============================================ */
.store-banner {
  padding: 60px 24px;
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.06), rgba(var(--color-primary-rgb), 0.01));
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.store-banner__logo {
  height: 64px;
  width: auto;
  margin: 0 auto 16px;
  border-radius: var(--radius-md);
}

.store-banner__name {
  font-size: var(--font-size-3xl);
  font-weight: 900;
}

.store-banner__desc {
  font-size: var(--font-size-lg);
  color: var(--color-muted);
  margin-top: 8px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-muted);
  font-size: var(--font-size-sm);
  background: white;
}

.footer a {
  color: var(--color-primary);
  font-weight: 500;
}

.footer a:hover {
  text-decoration: underline;
}

/* ============================================
   ANIMAÇÕES
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceIn {
  0% { transform: scale(0); }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-fade-in { animation: fadeIn 0.4s ease; }
.animate-slide-up { animation: slideUp 0.4s ease; }
.animate-pulse { animation: pulse 1.5s ease infinite; }

/* ============================================
   UTILITÁRIOS
   ============================================ */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }

.p-4 { padding: 16px; }
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }

.w-full { width: 100%; }
.text-center { text-align: center; }
.text-left { text-align: left; }

.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }

.rounded { border-radius: var(--radius-md); }
.rounded-full { border-radius: var(--radius-full); }

.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 24px 0;
}

/* ============================================
   RESPONSIVO
   ============================================ */
/* ============================================
   RESPONSIVO E CLASSES EXTRA
   ============================================ */
@media (max-width: 768px) {
  :root { --nav-height: 64px; }
  .product-hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-delivery-notice {
    gap: 12px;
    padding: 14px;
  }

  .product-delivery-notice__icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero__title {
    font-size: 2rem;
  }

  .admin-layout {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .payment-methods {
    grid-template-columns: 1fr 1fr;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 48px 0;
  }

  .success-card {
    padding: 32px 24px;
  }

  .login-card {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .btn--xl {
    padding: 16px 28px;
    font-size: var(--font-size-base);
  }

  .stat-card__value {
    font-size: var(--font-size-2xl);
  }
}

/* ============================================
   NOVAS CLASSES DE DESIGN E ELEMENTOS ADICIONAIS
   ============================================ */

/* Menu de Categorias Horizontal */
.category-menu {
  border-bottom: 1px solid var(--color-border);
  background: white;
  padding: 12px 0;
  position: sticky;
  top: var(--nav-height);
  z-index: 90;
}

.category-menu__list {
  display: flex;
  gap: 8px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE/Edge */
  padding-bottom: 2px;
}

.category-menu__list::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.category-menu__btn {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-muted);
  white-space: nowrap;
  transition: var(--transition);
  background: transparent;
  border: 1px solid transparent;
}

.category-menu__btn:hover {
  color: var(--color-text);
  background: var(--color-bg);
}

.category-menu__btn.active {
  color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.08);
  border-color: rgba(var(--color-primary-rgb), 0.15);
  font-weight: 600;
}

/* Navegação normalizada de categorias da loja */
.store-category-nav {
  position: relative;
  z-index: 30;
  background: var(--color-card);
  background: color-mix(in srgb, var(--color-primary) 3%, var(--color-card));
  border-top: 1px solid color-mix(in srgb, var(--color-primary) 10%, var(--color-border));
  border-bottom: 1px solid color-mix(in srgb, var(--color-primary) 10%, var(--color-border));
}
.store-category-nav__inner { position: relative; }
.store-category-nav__list { list-style: none; display: flex; align-items: stretch; gap: 4px; padding: 10px 0; margin: 0; overflow: visible; }
.store-category-nav--left .store-category-nav__list { justify-content: flex-start; }
.store-category-nav--center .store-category-nav__list { justify-content: center; }
.store-category-nav--right .store-category-nav__list { justify-content: flex-end; }
.store-category-nav__list > li { position: relative; }
.store-category-nav__list > li + li { margin-left: 8px; padding-left: 9px; }
.store-category-nav__list > li + li::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 18px;
  transform: translateY(-50%);
  background: color-mix(in srgb, var(--color-primary) 18%, var(--color-border));
}
.store-category-nav__link,
.store-category-nav__sublink { appearance: none; border: 0; background: transparent; color: var(--color-text); font: inherit; text-decoration: none; cursor: pointer; }
.store-category-nav__link { min-height: 38px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--radius-md); font-size: .84rem; font-weight: 600; white-space: nowrap; }
.store-category-nav__link:hover,
.store-category-nav__link.is-active { color: var(--color-primary); background: rgba(var(--color-primary-rgb), .08); }
.store-category-nav__link svg { width: 14px; height: 14px; }
.store-category-nav__group > summary { list-style: none; }
.store-category-nav__group > summary::-webkit-details-marker { display: none; }
.store-category-nav__group[open] > summary svg { transform: rotate(180deg); }
.store-category-nav__submenu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 40; min-width: 230px; max-width: 320px; padding: 6px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-card); box-shadow: var(--shadow-lg); }
.store-category-nav__sublink { display: block; width: 100%; padding: 9px 10px; border-radius: var(--radius-sm); text-align: left; font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-category-nav__sublink:hover,
.store-category-nav__sublink.is-active { color: var(--color-primary); background: rgba(var(--color-primary-rgb), .08); }
.store-category-nav__mobile-toggle { display: none; width: 100%; min-height: 44px; align-items: center; justify-content: space-between; border: 0; background: transparent; color: var(--color-text); font: inherit; font-weight: 700; }
.store-category-nav__mobile-toggle svg { width: 16px; height: 16px; }

@media (max-width: 760px) {
  .store-category-nav__mobile-toggle { display: flex; }
  .store-category-nav__list { display: none; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 2px; padding: 0 0 10px; }
  .store-category-nav__list.is-open { display: flex; }
  .store-category-nav__list > li + li { margin-left: 0; padding-left: 0; }
  .store-category-nav__list > li + li::before { display: none; }
  .store-category-nav__link { width: 100%; justify-content: space-between; }
  .store-category-nav__submenu { position: static; min-width: 0; max-width: none; margin: 2px 0 4px 12px; box-shadow: none; border-left: 2px solid var(--color-primary); border-top: 0; border-right: 0; border-bottom: 0; border-radius: 0; background: transparent; }
}

/* Banner de Loja Avançado (com Imagem Opcional) */
.store-banner {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.06), rgba(var(--color-primary-rgb), 0.01));
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.store-banner--has-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
}

.store-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  z-index: 1;
}

.store-banner__container {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.store-banner--has-image .store-banner__name {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.store-banner--has-image .store-banner__desc {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Galeria de Fotos de Produtos (Thumbnails) */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-gallery__main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: none;
  background: transparent;
  border: 0;
  padding: 0;
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.25s ease;
}

.product-gallery__thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: thin;
}

.product-gallery__thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  flex-shrink: 0;
  background: white;
}

.product-gallery__thumb:hover {
  transform: translateY(-2px);
}

.product-gallery__thumb.active {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Painel Lateral Deslizante (Drawer) para o Checkout */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: white;
  z-index: 1001;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.drawer.active {
  transform: translateX(0);
}

.drawer__header {
  padding: 24px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer__title {
  font-size: var(--font-size-lg);
  font-weight: 700;
}

.drawer__close {
  font-size: 24px;
  color: var(--color-muted);
  cursor: pointer;
  transition: var(--transition);
}

.drawer__close:hover {
  color: var(--color-text);
}

.drawer__body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer-product {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.drawer-product:hover {
  border-color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.02);
}

.drawer-product__image {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--color-bg);
}

.drawer-product__info {
  flex: 1;
}

.drawer-product__title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
}

.drawer-product__price {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-primary);
}

/* Área do Cliente & Login Magic Link */
.magic-login-card {
  max-width: 440px;
  margin: 80px auto;
  padding: 40px;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.customer-orders-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.customer-order {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.customer-order__header {
  padding: 20px 24px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.customer-order__title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-muted);
}

.customer-order__date {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-text);
}

.customer-order__body {
  padding: 24px;
}

.customer-order__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.customer-order__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.customer-order__item:first-child {
  padding-top: 0;
}

.customer-order__item-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.customer-order__item-name {
  font-weight: 600;
  font-size: var(--font-size-sm);
}

.customer-order__item-price {
  font-size: var(--font-size-xs);
  color: var(--color-muted);
}

/* Drag & Drop Reordenação de imagens no Painel */
.admin-gallery-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.admin-gallery-item {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--color-border);
  background: white;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.admin-gallery-item.is-dragging { z-index:2; border-color:var(--color-primary); box-shadow:0 10px 26px rgba(15,23,42,.2); transform:scale(1.025); }
.admin-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-gallery-item__drag {
  position:absolute;
  z-index:3;
  top:4px;
  left:4px;
  display:flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  padding:0;
  border:1px solid rgba(255,255,255,.65);
  border-radius:8px;
  background:rgba(15,23,42,.78);
  color:#fff;
  cursor:grab;
  font-size:1rem;
  line-height:1;
  touch-action:none;
  user-select:none;
}
.admin-gallery-item__drag:active { cursor:grabbing; }
.admin-gallery-item__drag:focus-visible { outline:3px solid var(--color-primary); outline-offset:2px; }
.admin-gallery-position {
  position:absolute;
  z-index:2;
  top:7px;
  left:40px;
  min-width:24px;
  padding:2px 6px;
  border-radius:999px;
  background:rgba(255,255,255,.9);
  color:var(--color-text);
  font-size:.68rem;
  font-weight:800;
  text-align:center;
}
.admin-gallery-item__delete {
  position: absolute;
  z-index:3;
  top: 4px;
  right: 4px;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.admin-gallery-item__delete:hover {
  transform: scale(1.1);
  background: rgb(239, 68, 68);
}
.admin-gallery-item .gallery-badge[hidden] { display:none !important; }

/* ============================================
   ÍCONES SVG DINÂMICOS
   ============================================ */
.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: middle;
  color: var(--color-primary);
  transition: var(--transition);
}

.icon--sm {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.icon--lg {
  width: 24px;
  height: 24px;
}

.icon--xl {
  width: 32px;
  height: 32px;
}

.icon--muted {
  color: var(--color-muted);
}

.icon--white {
  color: white;
}

.icon--success {
  color: var(--color-success);
}

.icon--error {
  color: var(--color-error);
}

.icon--text {
  color: var(--color-text);
}

/* ============================================
   BARRA DE AVISOS (Announcement Bar)
   ============================================ */
.announcement-bar {
  background: var(--color-announcement-bg);
  color: var(--color-announcement-text);
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  padding: 0;
  overflow: hidden;
  position: relative;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.announcement-bar__track {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 16px;
  gap: 8px;
}
.announcement-bar__msg {
  display: none;
  width: 100%;
  text-align: center;
  animation: announceFadeIn 0.5s ease;
}
.announcement-bar__msg.is-active {
  display: block;
}
.announcement-bar__link {
  color: var(--color-announcement-text);
  opacity: 0.85;
  text-decoration: underline;
  margin-left: 6px;
  font-weight: 600;
  white-space: nowrap;
}
.announcement-bar__link:hover { opacity: 1; }
.announcement-bar__dots {
  display: flex;
  gap: 5px;
  justify-content: center;
  padding-bottom: 6px;
}
.announcement-bar__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s;
}
.announcement-bar__dot.is-active {
  background: white;
}
@keyframes announceFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   CARROSSEL DE BANNERS
   ============================================ */
.banner-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f1f5f9;
  line-height: 0;
}
.banner-carousel__track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.banner-carousel__slide {
  min-width: 100%;
  position: relative;
}
.banner-carousel__slide a {
  display: block;
  width: 100%;
}
.banner-carousel__slide img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}
.banner-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.35);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
}
.banner-carousel__arrow:hover { background: rgba(0,0,0,0.55); }
.banner-carousel__arrow--prev { left: 16px; }
.banner-carousel__arrow--next { right: 16px; }
.banner-carousel__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}
.banner-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}
.banner-carousel__dot.is-active {
  background: white;
  width: 24px;
  border-radius: 4px;
}
@media (max-width: 768px) {
  .banner-carousel__slide img, #store-banner {
    height: auto !important;
    aspect-ratio: 3.2 / 1 !important;
    object-fit: cover !important;
  }
  .banner-carousel__arrow { width: 36px; height: 36px; }
}

/* ============================================
   SEÇÃO DE DIFERENCIAIS (Store Features)
   ============================================ */
.storefront-intro {
  background: var(--color-bg);
  background: color-mix(in srgb, var(--color-primary) 2%, var(--color-bg));
}
.storefront-intro__banner { padding-top: 16px; padding-bottom: 16px; }
.store-features {
  background: var(--color-card);
  background: color-mix(in srgb, var(--color-primary) 5%, var(--color-card));
  border-top: 1px solid color-mix(in srgb, var(--color-primary) 9%, var(--color-border));
  border-bottom: 1px solid color-mix(in srgb, var(--color-primary) 9%, var(--color-border));
  padding: 20px 0;
}
.store-features__grid {
  display: flex;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
}
.store-features__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  flex: 1;
  min-width: 180px;
  max-width: 300px;
}
.store-features__item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 1px;
  height: 38px;
  background: color-mix(in srgb, var(--color-primary) 18%, transparent);
  transform: translateY(-50%);
}
.store-features__item--link {
  color: inherit;
  text-decoration: none;
}
.store-features__item--link:hover .store-features__title { color: var(--color-primary); }
.store-features__item--link:focus-visible {
  border-radius: var(--radius-md);
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}
.store-features__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.store-features__icon svg { width: 28px; height: 28px; }
.store-features__text { display: flex; flex-direction: column; gap: 1px; }
.store-features__title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text);
}
.store-features__subtitle {
  font-size: 0.75rem;
  color: var(--color-muted);
  line-height: 1.4;
  overflow-wrap: anywhere;
}
@media (min-width: 1024px) {
  .store-features { min-height: 100px; padding: 0; }
  .store-features__grid { min-height: 99px; align-items: stretch; }
  .store-features__item { min-height: 99px; padding-top: 8px; padding-bottom: 8px; }
}
@media (max-width: 768px) {
  .store-features__grid { flex-direction: column; }
  .store-features__item { max-width: 100%; }
  .store-features__item:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: 0;
    left: 50%;
    width: 48px;
    height: 1px;
    transform: translateX(-50%);
  }
}

/* ============================================
   RODAPÉ COMPLETO (Footer Full)
   ============================================ */
.footer-full {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  margin-top: 0;
}
.footer-full > .container { max-width: 1320px; }
.section.storefront-products-section { padding: 24px 0 32px; }
.footer-full__main {
  --footer-column-count: 3;
  display: grid;
  grid-template-columns: repeat(var(--footer-column-count), minmax(0, 1fr));
  justify-content: stretch;
  column-gap: clamp(40px, 3.75vw, 64px);
  row-gap: 32px;
  padding: 48px 0 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  align-items: start;
}
.footer-full__main--1 { --footer-column-count: 1; }
.footer-full__main--2 { --footer-column-count: 2; }
.footer-full__main--4 { --footer-column-count: 4; }
.footer-full__main--5 { --footer-column-count: 5; }
.footer-full__section { min-width: 0; }
.footer-full__brand,
.footer-full__section--categories,
.footer-full__section--information,
.footer-full__section--contact,
.footer-full__section--trust { width: 100%; }
.footer-full__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-full__logo img {
  height: 36px;
  width: auto;
  border-radius: 6px;
}
.footer-full__store-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-footer-text);
}
.footer-full__desc {
  font-size: 0.82rem;
  color: var(--color-footer-text);
  opacity: 0.7;
  margin-bottom: 20px;
  line-height: 1.6;
}
.footer-full__social-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 10px;
  row-gap: 8px;
}
.footer-full__social-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-footer-text);
  opacity: 0.8;
  margin: 0;
  flex: 0 0 auto;
}
.footer-full__socials {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  flex: 0 0 auto;
}
.footer-full__social-link {
  width: 22px;
  height: 22px;
  color: var(--color-footer-text);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0.72;
  transition: color 0.2s, opacity 0.2s, transform 0.2s;
}
.footer-full__social-link:hover {
  color: var(--color-footer-text);
  opacity: 1;
  transform: translateY(-2px);
}
.footer-full__social-link:focus-visible {
  border-radius: 3px;
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  opacity: 1;
}
.footer-full__social-link svg { width: 18px; height: 18px; }
.footer-full__col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-footer-text);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}
.footer-full__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-full__categories-more { margin: 0; }
.footer-full__categories-toggle {
  color: var(--color-footer-text);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.85rem;
  list-style: none;
  opacity: 0.75;
}
.footer-full__categories-toggle::-webkit-details-marker { display: none; }
.footer-full__categories-toggle:hover,
.footer-full__categories-toggle:focus-visible { opacity: 1; }
.footer-full__categories-toggle:focus-visible {
  border-radius: var(--radius-sm);
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}
.footer-full__categories-toggle-open { display: none; }
.footer-full__categories-more[open] .footer-full__categories-toggle-closed { display: none; }
.footer-full__categories-more[open] .footer-full__categories-toggle-open { display: inline; }
.footer-full__links--additional { margin-top: 8px; }
.footer-full__link {
  font-size: 0.85rem;
  color: var(--color-footer-text);
  opacity: 0.75;
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-full__link:hover { opacity: 1; color: var(--color-footer-text); }
.footer-full__contact-item {
  font-size: 0.85rem;
  color: var(--color-footer-text);
  opacity: 0.75;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  min-width: 0;
}
.footer-full__contact-item svg { width: 14px; height: 14px; color: var(--color-primary); flex-shrink: 0; }
.footer-full__contact-icon {
  color: var(--color-primary);
  display: inline-flex;
  flex: 0 0 auto;
}
.footer-full__contact-icon svg { width: 14px; height: 14px; }
.footer-full__contact-link { color:inherit; overflow-wrap:anywhere; text-decoration:none; }
.footer-full__contact-link--email {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.footer-full__contact-link:hover { text-decoration:underline; text-underline-offset:3px; }
.footer-full__trust-content {
  color: var(--color-footer-text);
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  line-height: 1.55;
  opacity: 0.75;
}
.footer-full__gateway-logo {
  display: block;
  width: min(147px, 100%);
  height: auto;
  /* Mantem um limite seguro para marcas com proporcoes diferentes. */
  max-width: 147px;
  max-height: 61px;
  object-fit: contain;
  object-position: left center;
}
.footer-full__bottom {
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-full__copy {
  font-size: 0.78rem;
  color: var(--color-footer-text);
  opacity: 0.6;
}
.footer-full__powered {
  font-size: 0.75rem;
  color: var(--color-footer-text);
  opacity: 0.7;
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}
.footer-full__powered:hover { opacity: 1; color: var(--color-footer-text); }
@media (max-width: 1100px) {
  .footer-full__main,
  .footer-full__main--1,
  .footer-full__main--2,
  .footer-full__main--4,
  .footer-full__main--5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    column-gap: 40px;
  }
  .footer-full__brand,
  .footer-full__section--categories,
  .footer-full__section--information,
  .footer-full__section--contact,
  .footer-full__section--trust { width: 100%; max-width: none; }
}
@media (max-width: 640px) {
  .footer-full__main,
  .footer-full__main--1,
  .footer-full__main--2,
  .footer-full__main--4,
  .footer-full__main--5 { grid-template-columns: 1fr; gap: 32px; padding: 32px 0 24px; }
  .footer-full__section--contact { min-width: 0; max-width: none; width: 100%; }
  .footer-full__bottom { justify-content: center; text-align: center; }
}

/* ============================================
   PÁGINA INSTITUCIONAL
   ============================================ */
.institutional-page__hero {
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.06), rgba(var(--color-primary-rgb), 0.01));
  border-bottom: 1px solid var(--color-border);
  padding: 48px 0 32px;
  margin-bottom: 48px;
}
.institutional-page__title {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 8px;
}
.institutional-page__breadcrumb {
  font-size: 0.85rem;
  color: var(--color-muted);
}
.institutional-page__breadcrumb a { color: var(--color-primary); text-decoration: none; }
.institutional-page__content {
  max-width: 800px;
  margin: 0 auto 80px;
  line-height: 1.8;
  color: var(--color-text);
  font-size: 0.95rem;
}
.institutional-page__content h1,
.institutional-page__content h2,
.institutional-page__content h3 { margin: 28px 0 12px; font-weight: 700; }
.institutional-page__content p { margin-bottom: 16px; }
.institutional-page__content ul, .institutional-page__content ol { padding-left: 24px; margin-bottom: 16px; }
.institutional-page__content li { margin-bottom: 6px; }
.institutional-page__content a { color: var(--color-primary); }

/* ============================================
   CATEGORIA COM DESCRIÇÃO (Category Header)
   ============================================ */
.category-header {
  padding: 24px 0 8px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0;
}
.category-header__name {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--color-primary);
  display: inline-block;
}
.category-header__desc {
  font-size: 0.88rem;
  color: var(--color-muted);
  margin-top: 10px;
  max-width: 700px;
  line-height: 1.6;
}

/* ============================================
   RICH TEXT EDITOR (no admin settings)
   ============================================ */
.rich-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 6px 8px;
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.rich-editor-btn {
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
  transition: all 0.15s;
  line-height: 1.4;
}
.rich-editor-btn:hover { background: white; border-color: var(--color-border); }
.rich-editor-btn.is-active { background: var(--color-primary); color: white; }
.rich-editor-area {
  border: 1px solid var(--color-border);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  min-height: 200px;
  padding: 14px;
  font-size: 0.9rem;
  line-height: 1.7;
  outline: none;
  background: white;
  color: var(--color-text);
}
.rich-editor-area:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.1); }

/* ============================================
   NAVBAR SEARCH BAR
   ============================================ */
.navbar__search {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 24px;
  display: flex;
  align-items: center;
}

.navbar__search-input {
  width: 100%;
  padding: 10px 42px 10px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: #f1f5f9;
  font-size: var(--font-size-sm);
  color: var(--color-text);
  outline: none;
  transition: all 0.2s ease-in-out;
}

.navbar__search-input:focus {
  background: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.15);
}

.navbar__search-icon {
  position: absolute;
  right: 18px;
  width: 16px;
  height: 16px;
  color: var(--color-muted);
  pointer-events: none;
  transition: color 0.2s;
}

.navbar__search-submit {
  position: absolute;
  right: 8px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.navbar__search-submit:hover,
.navbar__search-submit:focus-visible {
  color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.08);
}

.navbar__search-submit .navbar__search-icon {
  position: static;
  pointer-events: auto;
}

.checkout-legal-note {
  margin: 12px 0 0;
  color: var(--color-muted);
  font-size: var(--font-size-xs);
  line-height: 1.5;
  text-align: center;
}

.checkout-legal-note a {
  color: var(--color-primary);
  text-decoration: underline;
}

.navbar__search-input:focus ~ .navbar__search-icon {
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .navbar__search {
    display: none; /* Hide on small screens to keep mobile header clean */
  }
}

/* Logo Sizes for Navbar and Footer */
.navbar__brand img.logo-size-small {
  height: 36px;
}
.navbar__brand img.logo-size-medium {
  height: 48px;
}
.navbar__brand img.logo-size-large {
  height: 64px;
}

.footer-full__logo img.logo-size-small {
  height: 36px;
}
.footer-full__logo img.logo-size-medium {
  height: 50px;
}
.footer-full__logo img.logo-size-large {
  height: 70px;
}

/* Sidebar Submenus/Subtitles for Settings */
.admin-nav__group {
  margin: 0;
}

.admin-nav__group > summary {
  list-style: none;
  cursor: pointer;
  justify-content: space-between;
}

.admin-nav__group > summary::-webkit-details-marker {
  display: none;
}

.admin-nav__group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-nav__chevron {
  flex: 0 0 auto;
  transition: transform 0.2s ease;
  transform: rotate(-90deg);
}

.admin-nav__group[open] .admin-nav__chevron {
  transform: rotate(0deg);
}

.admin-nav__submenu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 28px; /* Indent sublinks */
  margin-top: 2px;
  margin-bottom: 8px;
}

.admin-nav__sublink {
  display: block;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  transition: all 0.15s ease-in-out;
  text-decoration: none;
}

.admin-nav__sublink:hover,
.admin-nav__sublink.active {
  color: white;
  background: rgba(255, 255, 255, 0.06);
}

/* Administração de categorias */
.admin-topbar__subtitle { margin: 4px 0 0; color: var(--color-muted); font-size: .85rem; text-wrap: pretty; }
.category-admin__layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .85fr); gap: 24px; align-items: start; }
.category-admin__list-card,
.category-admin__editor { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 20px; }
.category-admin__editor { position: sticky; top: 76px; }
.category-admin__section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.category-admin__section-heading h2 { margin: 0; font-size: 1.05rem; text-wrap: balance; }
.category-admin__section-heading p { margin: 5px 0 0; color: var(--color-muted); font-size: .82rem; text-wrap: pretty; }
.category-tree,
.category-tree__children { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.category-tree__group { display: grid; gap: 8px; }
.category-tree__children { padding-left: 28px; }
.category-tree__item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: #fff; }
.category-tree__item--child { background: var(--color-bg); }
.category-tree__identity { min-width: 0; }
.category-tree__identity strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.category-tree__identity span { display: block; margin-top: 3px; color: var(--color-muted); font-size: .75rem; }
.category-tree__actions { display: flex; align-items: center; gap: 3px; }
.category-tree__actions form { margin: 0; }
.category-tree__actions .btn { padding: 6px 8px; }
.category-admin__empty { padding: 40px 16px; text-align: center; color: var(--color-muted); }
.category-admin__empty h3 { color: var(--color-text); margin-bottom: 8px; }
.category-admin__empty p { margin: 0 auto 18px; max-width: 440px; text-wrap: pretty; }
.category-editor-form { display: grid; gap: 16px; }
.category-editor-form .form-group { margin: 0; }
.category-editor-form__banner { display: block; width: 100%; max-height: 130px; object-fit: contain; border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: 10px; }
.category-products { border: 0; padding: 0; margin: 0; min-width: 0; }
.category-products legend { font-weight: 700; margin-bottom: 8px; }
.category-products__list { max-height: 280px; overflow-y: auto; display: grid; gap: 6px; margin-top: 10px; padding-right: 4px; }
.category-products__option { display: grid; grid-template-columns: auto 36px minmax(0, 1fr); gap: 9px; align-items: center; padding: 8px; border: 1px solid var(--color-border); border-radius: var(--radius-md); cursor: pointer; }
.category-products__option:has(input:checked) { border-color: var(--color-primary); background: rgba(var(--color-primary-rgb), .05); }
.category-products__option img { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; }
.category-products__option span { min-width: 0; }
.category-products__option strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; }
.category-products__option small { color: var(--color-muted); }
.category-delete-dialog__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.category-delete-dialog__actions form { margin: 0; }

@media (max-width: 1050px) {
  .category-admin__layout { grid-template-columns: 1fr; }
  .category-admin__editor { position: static; }
}

@media (max-width: 640px) {
  .category-admin__list-card,
  .category-admin__editor { padding: 14px; }
  .category-admin__section-heading { align-items: stretch; flex-direction: column; }
  .category-tree__children { padding-left: 14px; }
  .category-tree__item { grid-template-columns: minmax(0, 1fr) auto; }
  .category-tree__actions { grid-column: 1 / -1; flex-wrap: wrap; }
  .category-products__option { grid-template-columns: auto 32px minmax(0, 1fr); }
  .category-products__option img { width: 32px; height: 32px; }
}

/* Categorias: lista compacta e editor lateral */
.category-page-topbar { gap: 20px; }
.category-page-topbar__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.category-management-card { overflow: hidden; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.category-management-card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--color-border); }
.category-management-card__header h2 { margin: 0; font-size: 1.05rem; text-wrap: balance; }
.category-management-card__header p { margin: 5px 0 0; color: var(--color-muted); font-size: .82rem; text-wrap: pretty; }
.category-empty-state { display: grid; justify-items: center; padding: 64px 24px; text-align: center; }
.category-empty-state__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 12px; background: #eff6ff; color: var(--color-primary); }
.category-empty-state__icon svg { width: 26px; height: 26px; }
.category-empty-state h3 { margin: 0 0 8px; font-size: 1rem; text-wrap: balance; }
.category-empty-state p { max-width: 430px; margin: 0 0 20px; color: var(--color-muted); font-size: .86rem; line-height: 1.55; text-wrap: pretty; }
.category-list,
.category-list__children { list-style: none; padding: 0; margin: 0; }
.category-list__group + .category-list__group { border-top: 1px solid var(--color-border); }
.category-list__children { border-top: 1px solid #edf2f7; background: #f8fafc; }
.category-list__children > li + li { border-top: 1px solid #edf2f7; }
.category-row { display: grid; grid-template-columns: minmax(240px, 1fr) auto minmax(220px, auto); align-items: center; gap: 18px; min-height: 72px; padding: 14px 20px; }
.category-row--child { min-height: 64px; padding-left: 54px; }
.category-row__identity { display: flex; align-items: center; min-width: 0; gap: 12px; }
.category-row__identity > div { min-width: 0; }
.category-row__identity strong { display: block; overflow: hidden; color: var(--color-text); text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.category-row__identity span:not(.category-row__marker):not(.category-row__branch) { display: block; margin-top: 4px; color: var(--color-muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
.category-row__marker { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 8px; background: #eff6ff; color: var(--color-primary); }
.category-row__marker svg { width: 18px; height: 18px; }
.category-row__marker--child { width: 30px; height: 30px; flex-basis: 30px; background: #fff; border: 1px solid var(--color-border); }
.category-row__branch { width: 16px; height: 24px; flex: 0 0 16px; border-left: 1px solid #cbd5e1; border-bottom: 1px solid #cbd5e1; border-radius: 0 0 0 6px; }
.category-status { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 5px 9px; border-radius: 999px; background: #f1f5f9; color: #64748b; font-size: .72rem; font-weight: 700; }
.category-status > span { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.category-status--visible { background: #ecfdf5; color: #047857; }
.category-row__actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.category-row__actions form { margin: 0; }
.category-icon-button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #64748b; cursor: pointer; }
.category-icon-button:hover:not(:disabled) { border-color: var(--color-border); background: #f8fafc; color: var(--color-text); }
.category-icon-button:disabled { opacity: .3; cursor: not-allowed; }
.category-icon-button svg { width: 16px; height: 16px; }
.category-action-link { min-height: 32px; padding: 7px 9px; border: 0; border-radius: 7px; background: transparent; color: var(--color-primary); font: inherit; font-size: .75rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.category-action-link:hover { background: #eff6ff; }
.category-action-link--danger { color: #b91c1c; }
.category-action-link--danger:hover { background: #fef2f2; }

.category-drawer { position: fixed; inset: 0 0 0 auto; width: min(540px, 100%); max-width: none; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; padding: 0; overflow: hidden; border: 0; background: #fff; color: var(--color-text); }
.category-drawer[open] { display: block; }
.category-drawer::backdrop { background: rgba(15, 23, 42, .58); }
.category-drawer__form { display: flex; flex-direction: column; height: 100%; }
.category-drawer__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: max(22px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) 20px 24px; border-bottom: 1px solid var(--color-border); }
.category-drawer__eyebrow { display: block; margin-bottom: 4px; color: var(--color-primary); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.category-drawer__header h2 { margin: 0; font-size: 1.25rem; text-wrap: balance; }
.category-drawer__header p { margin: 5px 0 0; color: var(--color-muted); font-size: .82rem; text-wrap: pretty; }
.category-drawer__close { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; padding: 0; border: 1px solid var(--color-border); border-radius: 9px; background: #fff; color: var(--color-text); cursor: pointer; }
.category-drawer__close:hover { background: #f8fafc; }
.category-drawer__close svg { width: 18px; height: 18px; }
.category-drawer__body { flex: 1 1 auto; overflow-y: auto; padding: 0 24px 28px; }
.category-form-section { padding: 24px 0; border-bottom: 1px solid var(--color-border); }
.category-form-section:last-child { border-bottom: 0; }
.category-form-section h3 { margin: 0 0 14px; font-size: .92rem; text-wrap: balance; }
.category-form-section__description { margin: -7px 0 14px; color: var(--color-muted); font-size: .78rem; line-height: 1.5; text-wrap: pretty; }
.category-form-section__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.category-form-section__heading h3 { margin-bottom: 4px; }
.category-form-section__heading p { margin: 0; color: var(--color-muted); font-size: .78rem; text-wrap: pretty; }
.category-products-count { flex-shrink: 0; padding: 5px 8px; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: .68rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.category-visibility-option { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; cursor: pointer; }
.category-visibility-option input { margin-top: 3px; }
.category-visibility-option strong,
.category-visibility-option small { display: block; }
.category-visibility-option strong { font-size: .82rem; }
.category-visibility-option small { margin-top: 3px; color: var(--color-muted); font-size: .74rem; line-height: 1.45; }
.category-banner-preview { display: grid; place-items: center; width: 100%; height: 112px; margin: 0 0 12px; overflow: hidden; border: 1px solid var(--color-border); border-radius: 10px; background: #f8fafc; }
.category-banner-preview[hidden] { display: none; }
.category-banner-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.category-file-field { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 10px 12px; border: 1px dashed #94a3b8; border-radius: 10px; background: #f8fafc; cursor: pointer; }
.category-file-field:hover { border-color: var(--color-primary); }
.category-file-field svg { width: 21px; height: 21px; color: var(--color-primary); }
.category-file-field span { min-width: 0; }
.category-file-field strong,
.category-file-field small { display: block; }
.category-file-field strong { font-size: .8rem; }
.category-file-field small { margin-top: 2px; color: var(--color-muted); font-size: .7rem; }
.category-remove-banner { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: #b91c1c; font-size: .75rem; cursor: pointer; }
.category-remove-banner[hidden] { display: none; }
.category-product-search { position: relative; margin-bottom: 10px; }
.category-product-search svg { position: absolute; top: 50%; left: 12px; width: 16px; height: 16px; color: #64748b; transform: translateY(-50%); pointer-events: none; }
.category-product-search input { width: 100%; height: 42px; padding: 9px 12px 9px 38px; border: 1px solid var(--color-border); border-radius: 9px; background: #fff; color: var(--color-text); font: inherit; font-size: .8rem; outline: 0; }
.category-product-search input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), .1); }
.category-products-list { display: grid; gap: 6px; max-height: 310px; overflow-y: auto; padding-right: 3px; }
.category-product-option { display: grid; grid-template-columns: auto 44px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 60px; padding: 7px 10px; border: 1px solid var(--color-border); border-radius: 9px; background: #fff; cursor: pointer; }
.category-product-option:has(input:checked) { border-color: var(--color-primary); background: #f8fbff; }
.category-product-option img,
.category-product-option__placeholder { display: grid; place-items: center; width: 44px; height: 44px; overflow: hidden; border-radius: 7px; background: #f1f5f9; object-fit: cover; }
.category-product-option__placeholder svg { width: 20px; height: 20px; color: #64748b; }
.category-product-option__text { min-width: 0; }
.category-product-option__text strong { display: block; overflow: hidden; color: var(--color-text); text-overflow: ellipsis; white-space: nowrap; font-size: .79rem; }
.category-product-option__text small { display: block; margin-top: 3px; color: var(--color-muted); font-size: .69rem; }
.category-drawer__footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px max(24px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); border-top: 1px solid var(--color-border); background: #fff; }

@media (max-width: 760px) {
  .category-page-topbar { align-items: flex-start; }
  .category-page-topbar__actions { width: 100%; }
  .category-page-topbar__actions .btn { flex: 1; }
  .category-management-card__header { padding: 17px 16px; }
  .category-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; min-height: 0; padding: 14px 16px; }
  .category-row--child { padding-left: 24px; }
  .category-row__actions { grid-column: 1 / -1; justify-content: flex-start; padding-left: 46px; }
  .category-row--child .category-row__actions { padding-left: 58px; }
  .category-drawer { width: 100%; }
  .category-drawer__header { padding-left: max(18px, env(safe-area-inset-left)); }
  .category-drawer__body { padding-right: max(18px, env(safe-area-inset-right)); padding-left: max(18px, env(safe-area-inset-left)); }
}

/* ============================================
   ADMIN MOBILE NAVBAR & OVERLAY DRAWER
   ============================================ */
.admin-mobile-navbar {
  display: none;
}
.admin-sidebar-backdrop {
  display: none;
}
.admin-account-menu {
  display: none;
}

@media (max-width: 768px) {
  .admin-mobile-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    min-height: 50px;
    height: calc(50px + env(safe-area-inset-top));
    background: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }

  .admin-mobile-navbar__btn,
  .admin-mobile-navbar__link {
    background: none;
    border: none;
    padding: 6px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
    text-decoration: none;
  }

  .admin-mobile-navbar__btn {
    min-width: 40px;
    min-height: 40px;
  }

  .admin-mobile-navbar__btn:hover,
  .admin-mobile-navbar__link:hover,
  .admin-mobile-navbar__btn:focus-visible,
  .admin-mobile-navbar__link:focus-visible {
    color: white;
  }

  .admin-mobile-navbar__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--color-primary);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 0.8rem;
    font-weight: 700;
  }

  .admin-account-menu {
    display: block;
    position: relative;
    color: var(--color-text);
  }

  .admin-account-menu__trigger {
    min-width: 48px;
    min-height: 40px;
    padding: 4px 2px 4px 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.82);
    cursor: pointer;
    list-style: none;
    border-radius: var(--radius-md);
  }

  .admin-account-menu__trigger::-webkit-details-marker {
    display: none;
  }

  .admin-account-menu__trigger:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
  }

  .admin-account-menu__chevron {
    flex: 0 0 auto;
  }

  .admin-account-menu[open] .admin-account-menu__chevron {
    transform: rotate(180deg);
  }

  .admin-account-menu__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    max-width: calc(100vw - 24px);
    overflow: hidden;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    color: var(--color-text);
  }

  .admin-account-menu__identity {
    padding: 16px;
    display: grid;
    gap: 3px;
    border-bottom: 1px solid var(--color-border);
  }

  .admin-account-menu__identity strong,
  .admin-account-menu__identity span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-account-menu__identity strong {
    font-size: var(--font-size-sm);
  }

  .admin-account-menu__identity span {
    color: var(--color-muted);
    font-size: var(--font-size-xs);
  }

  .admin-account-menu__links {
    padding: 8px;
    display: grid;
    gap: 2px;
  }

  .admin-account-menu__links a,
  .admin-account-menu__logout button {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--color-text);
    font: inherit;
    font-size: var(--font-size-sm);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
  }

  .admin-account-menu__links a:hover,
  .admin-account-menu__links a:focus-visible,
  .admin-account-menu__logout button:hover,
  .admin-account-menu__logout button:focus-visible {
    background: var(--color-bg);
    outline: none;
  }

  .admin-account-menu__links svg,
  .admin-account-menu__logout svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
  }

  .admin-account-menu__logout {
    margin: 0;
    padding: 8px;
    border-top: 1px solid var(--color-border);
  }

  .admin-account-menu__logout button {
    color: var(--color-error);
  }

  .admin-sidebar {
    position: fixed !important;
    top: 0;
    bottom: 0;
    left: 0 !important;
    width: 260px !important;
    height: 100dvh !important;
    z-index: 1002 !important;
    transform: translateX(-100%);
    transition: transform 180ms ease-out !important;
    overflow-y: auto;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .admin-sidebar.is-open {
    transform: translateX(0);
  }

  .admin-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 1001;
    width: 100%;
    border: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease-out;
  }

  .admin-sidebar-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .admin-content {
    padding-top: calc(50px + env(safe-area-inset-top)) !important;
  }

  @media (prefers-reduced-motion: reduce) {
    .admin-sidebar,
    .admin-sidebar-backdrop {
      transition: none !important;
    }
  }
}

/* ============================================================
   MELHORIAS PREMIUM — LOJA DE ARQUIVOS DIGITAIS
   Aplicadas pelas skills: frontend-design, cro, antigravity-design-expert
   ============================================================ */

/* ---- ANIMAÇÕES PREMIUM ---- */
@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes shimmerPulse {
  0% { box-shadow: 0 4px 20px rgba(var(--color-primary-rgb), 0.3); }
  50% { box-shadow: 0 6px 28px rgba(var(--color-primary-rgb), 0.55); }
  100% { box-shadow: 0 4px 20px rgba(var(--color-primary-rgb), 0.3); }
}
@keyframes cardEntrance {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes trustSlideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ---- PRODUCTS GRID — MOBILE 2 COLUNAS (skill: frontend-developer + cro) ---- */
@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .card__body {
    padding: 12px !important;
  }
  .card__title {
    font-size: 0.8rem !important;
  }
  .card__price--current {
    font-size: 0.95rem !important;
  }
  .card__footer .btn {
    font-size: 0.7rem !important;
    padding: 6px 10px !important;
  }
  .card__categories { font-size: 0.64rem; }
}

/* ---- CARDS — EFEITO ANTIGRAVITY FLOAT (skill: antigravity-design-expert) ---- */
.product-card-link {
  text-decoration: none;
  display: block;
}
.product-card-link .card {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s ease;
  will-change: transform;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: visible; /* necessário para o badge flutuar */
}
.product-card-link .card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 16px 48px rgba(var(--color-primary-rgb), 0.18),
              0 4px 16px rgba(0, 0, 0, 0.06);
  border-color: rgba(var(--color-primary-rgb), 0.2);
}
/* Sombra colorida suave por padrão (glassmorphism sutil) */
.product-card-link .card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* ---- BADGE DE DESCONTO % OFF (skill: cro) ---- */
.badge--discount {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(var(--color-primary-rgb), 0.4);
  z-index: 5;
  white-space: nowrap;
  animation: shimmerPulse 2.5s ease-in-out infinite;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
/* Wrapper que precisamos ao redor do card para badge funcionar */
.card-wrapper {
  position: relative;
  display: block;
}

/* ---- ANIMAÇÃO DE ENTRADA DOS CARDS (skill: frontend-design) ---- */
.products-grid .product-card-link {
  animation: cardEntrance 0.5s ease both;
}
.products-grid .product-card-link:nth-child(1)  { animation-delay: 0.04s; }
.products-grid .product-card-link:nth-child(2)  { animation-delay: 0.08s; }
.products-grid .product-card-link:nth-child(3)  { animation-delay: 0.12s; }
.products-grid .product-card-link:nth-child(4)  { animation-delay: 0.16s; }
.products-grid .product-card-link:nth-child(5)  { animation-delay: 0.20s; }
.products-grid .product-card-link:nth-child(6)  { animation-delay: 0.24s; }
.products-grid .product-card-link:nth-child(7)  { animation-delay: 0.28s; }
.products-grid .product-card-link:nth-child(8)  { animation-delay: 0.32s; }

/* ---- IMAGEM DO CARD — OBJECT-FIT GARANTIDO ---- */
.card__image {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #f1f5f9, #e0e7ff);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card-link:hover .card__image img {
  transform: scale(1.05);
}
/* Placeholder aprimorado para produtos sem imagem */
.product-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  color: var(--color-muted);
}
.product-image-placeholder svg {
  width: 48px;
  height: 48px;
  color: rgba(var(--color-primary-rgb), 0.25);
}
.product-image-placeholder span {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(var(--color-primary-rgb), 0.4);
}

/* ---- BOTÃO "COMPRAR" NO CARD — slide-up reveal ao hover (skill: cro) ---- */
.card__footer {
  padding: 0 16px 16px;
  overflow: hidden;
}
.product-card-link .card__body {
  padding-bottom: 8px;
}
.product-card-link .card__price {
  margin-bottom: 0;
}
.card__footer .btn--primary {
  transform: translateY(0);
  transition: all 0.25s ease;
}
.product-card-link:hover .card__footer .btn--primary {
  animation: shimmerPulse 1.5s ease-in-out infinite;
}

/* ---- PREÇO COM DESTAQUE (skill: cro) ---- */
.card__price--current {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-primary);
}
.card__price--compare {
  font-size: 0.8rem;
  color: var(--color-muted);
  text-decoration: line-through;
}

/* ---- NAVBAR HAMBURGER MOBILE — Loja (skill: frontend-developer) ---- */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  margin-left: 8px;
}
.navbar__hamburger:hover {
  background: rgba(var(--color-primary-rgb), 0.08);
}
.navbar__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.navbar__hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.navbar__hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile search button (lupa) para substituir o campo na loja */
.navbar__search-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  color: var(--color-muted);
  transition: all 0.2s;
  margin-left: 4px;
}
.navbar__search-toggle:hover {
  color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.08);
}

/* Mobile search panel que expande abaixo da navbar */
.navbar__search-mobile {
  display: none;
  padding: 10px 16px;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
}
.navbar__search-mobile.is-open {
  display: block;
  animation: fadeIn 0.2s ease;
}
.navbar__search-mobile input {
  width: 100%;
  padding: 10px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  outline: none;
  background: var(--color-bg);
  transition: border-color 0.2s;
}
.navbar__search-mobile input:focus {
  border-color: var(--color-primary);
}

@media (max-width: 768px) {
  .navbar__hamburger { display: flex; }
  .navbar__search-toggle { display: flex; align-items: center; justify-content: center; }
  .navbar__nav { display: none; }
  .navbar__nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding: 16px;
    gap: 4px;
    z-index: 95;
    animation: fadeIn 0.2s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .navbar__nav.is-open .navbar__link {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
  }
  .navbar__nav.is-open .navbar__link:hover {
    background: rgba(var(--color-primary-rgb), 0.07);
    color: var(--color-primary);
  }
}

/* ---- TRUST BAR — Selos de confiança abaixo da loja (skill: cro) ---- */
.trust-bar {
  background: linear-gradient(135deg,
    rgba(var(--color-primary-rgb), 0.03),
    rgba(var(--color-primary-rgb), 0.01));
  border-bottom: 1px solid var(--color-border);
  padding: 14px 0;
}
.trust-bar__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-right: 1px solid var(--color-border);
  animation: trustSlideIn 0.4s ease both;
}
.trust-bar__item:last-child { border-right: none; }
.trust-bar__item svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
}
.trust-bar__text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}
.trust-bar__text small {
  display: block;
  font-weight: 400;
  color: var(--color-muted);
  font-size: 0.68rem;
}
@media (max-width: 600px) {
  .trust-bar__item {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    width: 100%;
    max-width: 300px;
    padding: 8px 16px;
  }
  .trust-bar__item:last-child { border-bottom: none; }
  .trust-bar__grid { flex-direction: column; align-items: flex-start; padding: 0 16px; }
}

/* ---- SUCCESS CARD — Mais espaço para múltiplos downloads (skill: frontend-design) ---- */
.success-card {
  max-width: 680px !important;
  width: 100%;
}
.success-download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all 0.25s ease;
  margin-bottom: 10px;
}
.success-download-item:hover {
  border-color: var(--color-success);
  background: #f0fdf4;
  transform: translateX(3px);
}
.success-download-item__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.success-download-item__icon svg {
  width: 18px;
  height: 18px;
  color: var(--color-success);
}
.success-download-item__label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-text);
  flex: 1;
  text-align: left;
}
.success-email-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(var(--color-primary-rgb), 0.05);
  border: 1px solid rgba(var(--color-primary-rgb), 0.15);
  border-radius: var(--radius-lg);
  font-size: 0.82rem;
  color: var(--color-text);
  text-align: left;
  margin-top: 20px;
}
.success-email-note svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ---- CHECKOUT — Ícones nas garantias (skill: cro) ---- */
.checkout-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--color-muted);
  padding: 6px 0;
}
.checkout-trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-success);
  flex-shrink: 0;
}
.checkout-trust-item strong {
  color: var(--color-text);
  font-weight: 600;
}

/* ---- BOTÃO FINALIZAR PAGAMENTO — Premium lock icon (skill: cro) ---- */
#btn-pagar {
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
  font-size: 1rem !important;
  font-weight: 700 !important;
}
#btn-pagar::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255,255,255,0.15),
    transparent);
  transition: left 0.6s ease;
}
#btn-pagar:hover::before {
  left: 150%;
}

/* ---- ÁREA DO CLIENTE — Cabeçalho premium (skill: frontend-design) ---- */
.customer-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  background: linear-gradient(135deg,
    rgba(var(--color-primary-rgb), 0.05),
    rgba(var(--color-primary-rgb), 0.02));
  border: 1px solid rgba(var(--color-primary-rgb), 0.12);
  border-radius: var(--radius-xl);
  margin-bottom: 28px;
}
.customer-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  box-shadow: 0 4px 16px rgba(var(--color-primary-rgb), 0.35);
}
.customer-header__info h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.customer-header__info p {
  font-size: 0.82rem;
  color: var(--color-muted);
}

/* ---- STATUS DO DOWNLOAD na área do cliente ---- */
.download-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}
.download-status--unlimited {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
}
.download-status--limited {
  background: rgba(245, 158, 11, 0.1);
  color: var(--color-warning);
}
.download-status--expired {
  background: rgba(239, 68, 68, 0.08);
  color: var(--color-error);
}

/* ---- PRODUCT TRUST BADGES — Mais proeminentes (skill: cro) ---- */
.product-trust-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  padding: 16px;
  background: linear-gradient(135deg,
    rgba(var(--color-primary-rgb), 0.03),
    rgba(var(--color-primary-rgb), 0.01));
  border: 1px solid rgba(var(--color-primary-rgb), 0.1);
  border-radius: var(--radius-lg);
  margin-top: 8px;
}
.product-trust-v2__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
}
.product-trust-v2__item svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
}
.product-trust-v2__item span {
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

/* ---- SEÇÃO — Redução do padding excessivo (skill: frontend-design) ---- */
.section {
  padding: 56px 0;
}
@media (max-width: 768px) {
  .section {
    padding: 36px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card-link .card,
  .product-card-link .card__image img,
  .badge--discount,
  #btn-pagar::before,
  .success-download-item,
  .products-grid .product-card-link {
    animation: none !important;
    transition: none !important;
  }
}

/* Fase 12: base comum de acessibilidade e responsividade */
.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;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--color-primary, #4f46e5) 70%, white);
  outline-offset: 3px;
}

.table-responsive {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table :where(th, td) {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--color-border, #e2e8f0);
}

img, video, iframe { max-width: 100%; }

@media (max-width: 768px) {
  .admin-content, .admin-main { min-width: 0; }
  .admin-main { padding-inline: 14px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .customer-header { align-items: flex-start; flex-wrap: wrap; }
  .checkout-grid { grid-template-columns: 1fr; }
  .btn { min-height: 42px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .container { padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Home da plataforma: cadastro e login permanecem acessíveis em qualquer largura. */
.navbar__nav.navbar__nav--home {
  display: flex;
  flex-shrink: 0;
}

.landing-login-prompt {
  margin-top: 18px;
  color: var(--color-muted);
  font-size: var(--font-size-sm);
}

.landing-login-prompt a {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 768px) {
  .navbar--home .navbar__inner {
    gap: 12px;
  }

  .navbar--home .navbar__brand {
    min-width: 0;
    font-size: var(--font-size-base);
  }

  .navbar__nav.navbar__nav--home {
    display: flex;
  }

  .navbar__nav--home .navbar__signup {
    display: none;
  }

  .navbar__nav--home .btn {
    min-height: 42px;
    padding-inline: 12px;
  }
}

@media (max-width: 480px) {
  .home-cta__actions {
    flex-direction: column;
    align-items: center;
  }

  .home-cta__actions .btn {
    width: 100%;
    max-width: 320px;
  }
}

/* Contextual brand identity */
.brand-logo { display:block; width:auto; max-width:100%; object-fit:contain; object-position:center; }
.brand-logo--header { height:clamp(34px,4vw,44px); max-width:min(190px,46vw); }
.brand-logo--auth { max-width:180px; max-height:76px; margin:0 auto 18px; }
.brand-logo--dark { max-width:min(220px,70vw); max-height:64px; }
.brand-logo--platform-header { max-width:165px; max-height:36px; }
.brand-logo--platform-footer { max-width:170px; max-height:42px; }
.brand-logo--header.logo-size-small { height:36px; max-height:36px; }
.brand-logo--header.logo-size-medium { height:48px; max-height:48px; }
.brand-logo--header.logo-size-large { height:64px; max-height:64px; }
.brand-logo--dark.logo-size-small { height:36px; max-height:36px; }
.brand-logo--dark.logo-size-medium { height:50px; max-height:50px; }
.brand-logo--dark.logo-size-large { height:70px; max-height:70px; }

.brand-compact,
.admin-sidebar__logo.brand-compact {
  width:40px; height:40px; flex:0 0 40px; display:inline-flex; align-items:center; justify-content:center;
  overflow:hidden; border:1px solid rgba(15,23,42,.12); border-radius:9px; background:#fff;
  color:#1e293b; font-size:.78rem; font-weight:800; line-height:1;
}
.brand-compact img { width:100%; height:100%; padding:4px; object-fit:contain; }
.brand-compact--mobile { width:34px; height:34px; flex-basis:34px; padding:0; }

.brand-settings-page { max-width:1180px; }
.brand-settings-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:22px; }
.brand-settings-head h2,.brand-settings-inline__head h3 { margin:0 0 6px; }
.brand-settings-head p,.brand-settings-inline__head p { margin:0; color:#64748b; line-height:1.55; }
.brand-settings-inline { display:flex; flex-direction:column; gap:16px; padding:18px; border:1px solid #e2e8f0; border-radius:12px; background:#f8fafc; }
.brand-upload-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-bottom:18px; }
.brand-upload-grid--store { grid-template-columns:repeat(3,minmax(0,1fr)); margin-bottom:0; }
.brand-upload-grid--onboarding { grid-template-columns:1fr; margin-bottom:0; }
.brand-upload-card { min-width:0; display:flex; flex-direction:column; gap:14px; padding:18px; border:1px solid #e2e8f0; border-radius:12px; background:#fff; }
.brand-upload-grid--store .brand-upload-card { height:100%; }
.brand-upload-card h3,.brand-upload-card h4 { margin:4px 0 6px; font-size:1rem; }
.brand-upload-card p { margin:0; color:#64748b; font-size:.82rem; line-height:1.5; }
.brand-upload-card__eyebrow { color:#4338ca; font-size:.7rem; font-weight:800; text-transform:uppercase; }
.brand-preview { min-height:112px; display:flex; align-items:center; justify-content:center; padding:18px; overflow:hidden; border:1px solid #e2e8f0; border-radius:10px; }
.brand-preview img { display:block; width:auto; max-width:100%; max-height:76px; object-fit:contain; }
.brand-preview--light { background:#fff; color:#0f172a; }
.brand-preview--dark { background:#0f172a; color:#fff; }
.brand-preview--compact { background:#0f172a; }
.brand-compact-surface { width:56px; height:56px; display:inline-flex; align-items:center; justify-content:center; overflow:hidden; border-radius:11px; background:#fff; color:#1e293b; font-weight:800; }
.brand-compact-surface img { width:100%; height:100%; max-height:none; padding:5px; object-fit:contain; }
.brand-file-button { width:100%; justify-content:center; }
.brand-size-control { display:grid; grid-template-columns:minmax(0,1fr) minmax(118px,.75fr); align-items:center; gap:12px; color:#475569; font-size:.78rem; font-weight:700; }
.brand-size-control .form-input { margin:0; min-height:38px; padding:8px 10px; }
.brand-remove { display:flex; align-items:flex-start; gap:8px; color:#64748b; font-size:.78rem; line-height:1.4; }
.brand-upload-hint { margin:0 0 16px; }
.brand-optional-assets { margin:18px 0; padding:14px; border:1px solid #e2e8f0; border-radius:12px; background:#f8fafc; }
.brand-optional-assets summary { cursor:pointer; font-weight:700; }
.brand-optional-assets > p { color:#64748b; font-size:.84rem; line-height:1.5; }
.pc-brand,.pc-footer__brand { display:inline-flex; align-items:center; }

.private-preview-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 10px max(20px, env(safe-area-inset-right)) 10px max(20px, env(safe-area-inset-left));
  background: #111827;
  color: #ffffff;
}

.private-preview-bar a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

[data-preview-disabled] { cursor: default; }

@media (max-width:1100px) { .brand-upload-grid--store { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:900px) { .brand-upload-grid:not(.brand-upload-grid--store) { grid-template-columns:1fr; } }
@media (max-width:760px) { .brand-upload-grid--store { grid-template-columns:1fr; } }
@media (max-width:640px) {
  .brand-logo--header.logo-size-small { height:32px; max-height:32px; }
  .brand-logo--header.logo-size-medium { height:40px; max-height:40px; }
  .brand-logo--header.logo-size-large { height:48px; max-height:48px; }
  .brand-logo--dark.logo-size-large { height:56px; max-height:56px; }
  .brand-size-control { grid-template-columns:1fr; gap:6px; }
}

/* Orders filters */
.orders-filter-panel { margin-bottom:16px; padding:16px; border:1px solid var(--color-border); border-radius:var(--radius-lg); background:#fff; }
.orders-period-row { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:14px; }
.orders-period-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.orders-filter-grid { display:grid; grid-template-columns:minmax(220px,2fr) repeat(3,minmax(120px,1fr)) repeat(2,minmax(150px,1fr)) auto; gap:10px; align-items:end; }
.orders-date-field { display:grid; gap:5px; color:var(--color-muted); font-size:.75rem; font-weight:700; }
.admin-table-card { overflow:auto; border:1px solid var(--color-border); border-radius:var(--radius-lg); background:#fff; }
.admin-pagination { display:flex; justify-content:center; gap:8px; margin-top:16px; flex-wrap:wrap; }
.admin-product-filters {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) repeat(3, minmax(150px, 1fr)) auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
}
.admin-product-filters__search { position: relative; display: flex; align-items: center; }
.admin-product-filters__search .form-input { padding-left: 38px; }
.admin-product-filters .form-input { width: 100%; margin: 0; }
.product-textarea-autogrow {
  width: 100%;
  max-width: 100%;
  overflow-y: hidden;
  resize: vertical;
}
@media (max-width: 1180px) {
  .admin-product-filters { grid-template-columns: minmax(220px, 2fr) repeat(2, minmax(150px, 1fr)); }
}
@media (max-width: 760px) {
  .admin-product-filters { grid-template-columns: 1fr; }
  .admin-product-filters .btn { width: 100%; justify-content: center; }
}
.admin-empty-state { padding:18px; text-align:center; color:var(--color-muted); }
.admin-empty-state p { margin:0 0 8px; }
.tabular-data { font-variant-numeric:tabular-nums; }

.commission-rate-display { margin:0 0 12px; font-size:2rem; font-weight:800; }
.commission-rate-display small { font-size:1rem; font-weight:500; }

@media (max-width:1180px) {
  .orders-filter-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .orders-filter-grid > :first-child { grid-column:span 2; }
}
@media (max-width:760px) {
  .orders-period-row { align-items:flex-start; flex-direction:column; }
  .orders-filter-grid { grid-template-columns:1fr; }
  .orders-filter-grid > :first-child { grid-column:auto; }
  .orders-filter-grid .btn { width:100%; }
}

/* Configuracao central do Mercado Pago */
.mp-platform-settings {
  width: 100%;
  max-width: 1120px;
}
.mp-setup-guide {
  padding: 26px;
  margin-bottom: 20px;
}
.mp-setup-guide__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--color-border);
}
.mp-setup-guide__header h2 {
  margin: 4px 0 8px;
}
.mp-setup-guide__header p {
  max-width: 720px;
  margin: 0;
  color: var(--color-muted);
  line-height: 1.6;
}
.mp-setup-guide__eyebrow {
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mp-setup-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}
.mp-setup-summary > div,
.mp-choice-grid > div {
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-card);
}
.mp-setup-summary span,
.mp-choice-grid span {
  display: block;
  margin-bottom: 3px;
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 700;
}
.mp-setup-summary strong,
.mp-choice-grid strong {
  display: block;
  font-size: 0.84rem;
  line-height: 1.35;
}
.mp-setup-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.mp-setup-step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--color-primary) 3%, var(--color-card));
}
.mp-setup-step:last-child {
  grid-column: 1 / -1;
}
.mp-setup-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
}
.mp-setup-step h3 {
  margin: 1px 0 7px;
  font-size: 1rem;
}
.mp-setup-step p {
  margin: 0 0 9px;
  color: var(--color-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}
.mp-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.mp-setup-checklist,
.mp-permission-list {
  margin: 10px 0 12px;
  padding: 0;
  list-style: none;
}
.mp-webhook-steps {
  margin: 11px 0 13px;
  padding-left: 28px;
  color: var(--color-muted);
  font-size: 0.84rem;
}
.mp-webhook-steps li {
  margin-top: 8px;
  padding-left: 3px;
  line-height: 1.5;
}
.mp-webhook-steps li::marker {
  color: var(--color-primary);
  font-weight: 800;
}
.mp-setup-checklist li,
.mp-permission-list li {
  position: relative;
  margin-top: 7px;
  padding-left: 22px;
  color: var(--color-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}
.mp-setup-checklist li::before,
.mp-permission-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--color-success, #15803d);
  font-weight: 900;
  content: "✓";
}
.mp-permission-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.mp-permission-list li {
  margin: 0;
  padding: 7px 10px 7px 28px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-card);
}
.mp-permission-list li::before {
  top: 7px;
  left: 10px;
}
.mp-copy-preview {
  margin: 10px 0 12px;
  padding: 11px 12px;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: 9px;
  background: color-mix(in srgb, var(--color-primary) 5%, var(--color-card));
}
.mp-copy-preview code {
  color: var(--color-text);
  font-size: 0.8rem;
  white-space: nowrap;
}
.mp-inline-alert {
  margin: 12px 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
}
.mp-webhook-ready {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--color-success, #15803d) 30%, var(--color-border));
  border-radius: 10px;
  background: color-mix(in srgb, var(--color-success, #15803d) 5%, var(--color-card));
}
.mp-webhook-ready strong {
  grid-column: 1 / -1;
  font-size: 0.84rem;
}
.mp-webhook-ready span {
  position: relative;
  padding-left: 18px;
  color: var(--color-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}
.mp-webhook-ready span::before {
  position: absolute;
  left: 0;
  color: var(--color-success, #15803d);
  font-weight: 900;
  content: "✓";
}
.mp-credential-map {
  margin: 12px 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 10px;
}
.mp-credential-map > div {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(0, 1.5fr);
}
.mp-credential-map > div + div {
  border-top: 1px solid var(--color-border);
}
.mp-credential-map span,
.mp-credential-map strong {
  padding: 9px 11px;
  font-size: 0.8rem;
  line-height: 1.4;
}
.mp-credential-map__head {
  background: color-mix(in srgb, var(--color-primary) 8%, var(--color-card));
}
.mp-pilot-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 18px;
}
.mp-pilot-flow span {
  padding: 9px 10px;
  border: 1px solid var(--color-border);
  border-radius: 9px;
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}
.mp-pilot-flow .is-current {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 6%, var(--color-card));
}
.mp-pilot-flow .is-complete {
  border-color: color-mix(in srgb, var(--color-success, #15803d) 35%, var(--color-border));
  color: var(--color-success, #15803d);
}
.mp-split-confirmations {
  display: grid;
  gap: 10px;
}
.mp-split-confirmations .form-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  line-height: 1.45;
}
.mp-split-confirmations .form-check input {
  flex: 0 0 auto;
  margin-top: 3px;
}
.mp-setup-step a {
  color: var(--color-primary);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}
.mp-setup-step a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mp-setup-step code {
  overflow-wrap: anywhere;
}
.mp-setup-guide__notice {
  display: block;
  margin: 18px 0 0;
  line-height: 1.55;
}
@media (max-width: 760px) {
  .mp-setup-guide {
    padding: 20px;
  }
  .mp-setup-guide__header {
    flex-direction: column;
  }
  .mp-setup-guide__header .btn {
    width: 100%;
    text-align: center;
  }
  .mp-setup-steps {
    grid-template-columns: 1fr;
  }
  .mp-setup-summary,
  .mp-choice-grid {
    grid-template-columns: 1fr;
  }
  .mp-credential-map > div {
    grid-template-columns: 1fr;
  }
  .mp-webhook-ready {
    grid-template-columns: 1fr;
  }
  .mp-webhook-ready strong {
    grid-column: auto;
  }
  .mp-pilot-flow {
    grid-template-columns: 1fr;
  }
  .mp-credential-map span + span,
  .mp-credential-map strong + strong {
    padding-top: 0;
  }
  .mp-setup-step:last-child {
    grid-column: auto;
  }
}

/* Área do comprador: sessões por loja e pacotes recolhíveis */
.buyer-area { background: var(--color-bg, #f5f7fb); color: var(--color-text, #111827); min-height: 100vh; }
.buyer-shell { max-width: 820px; padding: 44px 24px 80px; }
.buyer-notice { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px; color: #1e3a8a; margin-bottom: 16px; padding: 14px 16px; }
.buyer-notice--success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.buyer-profile { margin-bottom: 20px; }
.buyer-profile h1 { font-size: 1.05rem; margin: 0; }
.buyer-profile__privacy { margin-left: auto; }
.buyer-device-card { align-items: center; background: #fff; border: 1px solid #dbe3ef; border-radius: 14px; display: grid; gap: 20px; grid-template-columns: minmax(175px, 1fr) auto; margin-bottom: 24px; padding: 18px 20px; }
.buyer-device-card h2 { font-size: .95rem; margin: 0; }
.buyer-device-card p { color: #64748b; font-size: .82rem; margin: 0; }
.buyer-device-card--trusted { border-color: #a7f3d0; }
.buyer-device-badge { background: #dcfce7; border-radius: 999px; color: #047857; font-size: .72rem; font-weight: 800; padding: 6px 10px; text-transform: uppercase; }
.buyer-trust-form { align-items: center; display: flex; flex-wrap: nowrap; gap: 14px; }
.buyer-checkbox { align-items: center; cursor: pointer; display: flex; font-size: .82rem; font-weight: 600; gap: 8px; }
.buyer-checkbox input { height: 17px; width: 17px; }
.buyer-orders { display: grid; gap: 20px; }
.buyer-order { overflow: hidden; }
.buyer-order--highlighted { box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 35%, transparent); }
.buyer-order__meta { align-items: center; display: flex; gap: 7px; }
.buyer-order__header code { background: #eef2f7; border-radius: 5px; font-size: .78rem; padding: 3px 7px; }
.buyer-packages { background: #fff; padding: 8px 20px 18px; }
.buyer-package { border: 1px solid #e5e7eb; border-radius: 12px; margin-top: 10px; overflow: hidden; }
.buyer-package summary { align-items: center; cursor: pointer; display: grid; gap: 12px; grid-template-columns: 38px minmax(0, 1fr) 14px; list-style: none; padding: 16px; }
.buyer-package summary::-webkit-details-marker { display: none; }
.buyer-package summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--color-primary) 35%, transparent); outline-offset: -3px; }
.buyer-package[open] summary { background: #f8fafc; border-bottom: 1px solid #e5e7eb; }
.buyer-package__icon { align-items: center; background: color-mix(in srgb, var(--color-primary) 12%, white); border-radius: 9px; color: var(--color-primary); display: flex; height: 38px; justify-content: center; width: 38px; }
.buyer-package__icon svg { fill: none; height: 21px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 21px; }
.buyer-package__heading { display: grid; gap: 5px; min-width: 0; }
.buyer-package__heading strong { font-size: .9rem; overflow-wrap: anywhere; }
.buyer-package__heading small { display: block; }
.buyer-package__chevron { border-bottom: 2px solid #64748b; border-right: 2px solid #64748b; height: 8px; transform: rotate(45deg); transition: transform .18s ease; width: 8px; }
.buyer-package[open] .buyer-package__chevron { transform: rotate(225deg); }
.buyer-package__content { padding: 16px; }
.buyer-files { display: grid; gap: 8px; }
.buyer-file-row { align-items: center; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 9px; color: inherit; display: flex; gap: 12px; justify-content: space-between; padding: 10px 12px; text-decoration: none; }
.buyer-file-row > span:first-child { display: grid; gap: 2px; min-width: 0; }
.buyer-file-row strong { font-size: .82rem; overflow-wrap: anywhere; }
.buyer-file-row small { color: #64748b; font-size: .7rem; }
.buyer-empty-files, .buyer-access-blocked { color: #64748b; font-size: .82rem; margin: 0; padding: 12px; }
.buyer-access-blocked { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 9px; color: #9a3412; }
.buyer-review { border-top: 1px dashed #dbe3ef; margin-top: 16px; padding-top: 14px; }
.buyer-review p { font-size: .8rem; margin: 0 0 8px; }
.buyer-review__done { align-items: center; color: #64748b; display: flex; flex-wrap: wrap; font-size: .78rem; gap: 8px; }
.buyer-review__stars { color: #f59e0b; font-size: 1rem; }
.buyer-review__badge { background: #dcfce7; border-radius: 5px; color: #047857; font-size: .66rem; font-weight: 700; padding: 3px 6px; }
.rating-stars { display: flex; gap: 3px; }
.rating-stars .star-btn { background: transparent; border: 0; color: #cbd5e1; cursor: pointer; font-size: 1.35rem; padding: 0 2px; }
.rating-stars .star-btn.is-selected { color: #f59e0b; }
.rating-stars .star-btn:focus-visible { outline: 2px solid var(--color-primary); }
.buyer-review__form { display: grid; gap: 8px; margin-top: 10px; }
.buyer-review__form[hidden] { display: none; }
.buyer-review__form label { color: #475569; font-size: .75rem; font-weight: 600; }
.buyer-empty-orders { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 48px 24px; text-align: center; }
.buyer-empty-orders h2 { font-size: 1.1rem; margin-bottom: 8px; }
.buyer-empty-orders p { color: #64748b; margin: 0; }
.buyer-session-actions { align-items: center; border-top: 1px solid #dbe3ef; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 28px; padding-top: 20px; }

@media (max-width: 640px) {
  .buyer-shell { padding: 24px 14px 56px; }
  .buyer-profile { align-items: flex-start; }
  .buyer-profile__privacy { margin-left: 0; }
  .buyer-device-card { align-items: stretch; grid-template-columns: 1fr; }
  .buyer-trust-form { align-items: stretch; flex-direction: column; width: 100%; }
  .buyer-packages { padding: 6px 10px 12px; }
  .buyer-package summary { grid-template-columns: 34px minmax(0, 1fr) 12px; padding: 13px 11px; }
  .buyer-package__icon { height: 34px; width: 34px; }
  .buyer-package__content { padding: 12px 10px; }
  .buyer-file-row { align-items: stretch; flex-direction: column; }
  .buyer-file-row .btn { justify-content: center; width: 100%; }
  .buyer-session-actions { align-items: stretch; flex-direction: column; }
  .buyer-session-actions form, .buyer-session-actions .btn { width: 100%; }
}

@media (min-width: 641px) and (max-width: 760px) {
  .buyer-device-card { align-items: stretch; grid-template-columns: 1fr; }
  .buyer-trust-form { justify-content: space-between; }
}

/* Importacao de catalogos */
.admin-page-subtitle { margin: 5px 0 0; color: var(--color-muted); font-size: .86rem; }
.catalog-import-intro,.catalog-import-section-head { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; margin-bottom:20px; }
.catalog-import-intro h2,.catalog-import-section-head h2 { margin:4px 0 0; font-size:1.25rem; }
.catalog-import-intro p,.catalog-import-section-head p { max-width:640px; margin:4px 0 0; color:var(--color-muted); line-height:1.55; }
.catalog-import-eyebrow,.catalog-import-card__source { color:var(--color-primary); font-size:.7rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.catalog-import-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.catalog-import-card,.catalog-mapping-panel,.catalog-progress-card,.catalog-import-history { padding:24px; border:1px solid var(--color-border); border-radius:var(--radius-xl); background:#fff; box-shadow:0 8px 24px rgba(15,23,42,.035); }
.catalog-import-card { display:flex; min-width:0; flex-direction:column; justify-content:space-between; gap:22px; }
.catalog-import-card h3 { margin:7px 0 8px; font-size:1.08rem; }
.catalog-import-card p { margin:0; color:var(--color-muted); font-size:.88rem; line-height:1.55; }
.catalog-import-card--api { border-color:color-mix(in srgb,var(--color-primary) 28%,var(--color-border)); background:linear-gradient(145deg,#fff,color-mix(in srgb,var(--color-primary) 4%,#fff)); }
.catalog-import-upload,.catalog-import-api-actions { display:flex; flex-direction:column; gap:11px; }
.catalog-import-upload .upload-zone { padding:20px; }
.catalog-import-file { min-height:18px; overflow:hidden; color:var(--color-muted); font-size:.76rem; text-overflow:ellipsis; white-space:nowrap; }
.catalog-import-note { padding:12px 14px; border-radius:10px; background:#eef2ff; color:#3730a3; font-size:.8rem; line-height:1.5; }
.catalog-import-note--warning { background:#fff7ed; color:#9a3412; }
.catalog-import-history { margin-top:24px; }
.catalog-import-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:20px; }
.catalog-import-summary > div { display:flex; flex-direction:column; gap:3px; padding:16px; border:1px solid var(--color-border); border-radius:12px; background:#fff; }
.catalog-import-summary strong { color:var(--color-text); font-size:1.35rem; }
.catalog-import-summary span { color:var(--color-muted); font-size:.76rem; }
.catalog-import-summary--compact { grid-template-columns:repeat(4,minmax(0,1fr)); margin:20px 0; }
.catalog-mapping-form { display:flex; flex-direction:column; gap:20px; }
.catalog-mapping-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 18px; }
.catalog-mapping-row { display:grid; grid-template-columns:minmax(130px,.8fr) minmax(0,1.2fr); align-items:center; gap:12px; padding:11px 0; border-bottom:1px solid #f1f5f9; }
.catalog-mapping-row > span { display:flex; flex-direction:column; gap:3px; font-size:.82rem; }
.catalog-mapping-row small { color:#b45309; font-size:.66rem; text-transform:uppercase; }
.catalog-import-choice { display:flex; align-items:flex-start; gap:11px; padding:14px; border:1px solid var(--color-border); border-radius:11px; cursor:pointer; }
.catalog-import-choice + .catalog-import-choice { margin-top:10px; }
.catalog-import-choice span { display:flex; flex-direction:column; gap:3px; }
.catalog-import-choice small { color:var(--color-muted); line-height:1.45; }
.catalog-preview-list { display:flex; flex-direction:column; gap:10px; }
.catalog-preview-item { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px 20px; padding:15px; border:1px solid var(--color-border); border-radius:11px; }
.catalog-preview-item__main { display:flex; min-width:0; flex-direction:column; gap:5px; }
.catalog-preview-item__main span { overflow:hidden; color:var(--color-muted); font-size:.78rem; text-overflow:ellipsis; white-space:nowrap; }
.catalog-preview-item__meta { display:flex; align-items:center; flex-wrap:wrap; justify-content:flex-end; gap:6px; }
.catalog-preview-item__meta span,.catalog-item-warnings span { padding:4px 7px; border-radius:999px; background:#f1f5f9; color:#475569; font-size:.68rem; }
.catalog-preview-warnings { grid-column:1/-1; color:#b45309; font-size:.7rem; }
.catalog-ignored-fields { padding:15px 18px; border:1px solid var(--color-border); border-radius:12px; background:#f8fafc; }
.catalog-ignored-fields summary { cursor:pointer; font-weight:700; }
.catalog-ignored-fields p { color:var(--color-muted); font-size:.78rem; line-height:1.6; }
.catalog-import-actions { justify-content:flex-end; }
.import-status { display:inline-flex; padding:4px 8px; border-radius:999px; background:#f1f5f9; color:#475569; font-size:.7rem; font-weight:750; white-space:nowrap; }
.import-status--completed,.import-status--updated { background:#dcfce7; color:#166534; }
.import-status--partial,.import-status--ready { background:#fef3c7; color:#92400e; }
.import-status--failed { background:#fee2e2; color:#991b1b; }
.import-status--pending,.import-status--processing { background:#dbeafe; color:#1d4ed8; }
.catalog-progress-card { margin-bottom:24px; }
.catalog-progress-head { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; }
.catalog-progress-head h2 { margin:4px 0 0; }
.catalog-progress-head > strong { color:var(--color-primary); font-size:1.45rem; }
.catalog-progress-track { height:10px; margin-top:18px; overflow:hidden; border-radius:999px; background:#e2e8f0; }
.catalog-progress-track span { display:block; height:100%; border-radius:inherit; background:var(--color-primary); transition:width .3s ease; }
.catalog-progress-card > p { color:var(--color-muted); font-size:.8rem; }
.catalog-item-error { color:#b91c1c; font-size:.78rem; }
.catalog-item-warnings { display:flex; flex-wrap:wrap; gap:5px; margin-top:5px; }

@media (max-width: 900px) {
  .catalog-import-grid,.catalog-mapping-grid { grid-template-columns:1fr; }
  .catalog-import-summary--compact { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* ============================================
   VITRINES CONFIGURAVEIS E CARDS RESPONSIVOS
   ============================================ */
.product-collection { padding: 34px 0 18px; }
.product-collection + .product-collection { padding-top: 26px; }
.product-collection__header { position:relative; display:block; margin-bottom:22px; text-align:center; }
.product-collection__heading { width:100%; }
.product-collection__title-row { display:grid; grid-template-columns:minmax(24px,1fr) auto minmax(24px,1fr); align-items:center; gap:clamp(12px,2.4vw,28px); width:100%; }
.product-collection__title-row::before,.product-collection__title-row::after { content:""; height:1px; background:var(--color-border); }
.product-collection__header h2 { margin:0; color:var(--color-primary); font-size:clamp(1.08rem,2vw,1.42rem); font-weight:800; line-height:1.2; letter-spacing:.025em; text-transform:uppercase; }
.product-collection__header p { margin:7px auto 0; max-width:720px; color:var(--color-muted); font-size:.9rem; text-align:center; }
.product-collection__controls { display:flex; gap:8px; flex:0 0 auto; }
.product-collection__header > .product-collection__controls { position:absolute; right:0; top:50%; transform:translateY(-50%); padding-left:12px; background:var(--color-background); }
.product-collection__controls button { width:38px; height:38px; border:1px solid var(--color-border); border-radius:50%; background:#fff; color:var(--color-text); font-size:1.1rem; cursor:pointer; transition:var(--transition); }
.product-collection__controls button:hover,.product-collection__controls button:focus-visible { border-color:var(--color-primary); color:var(--color-primary); outline:none; box-shadow:0 0 0 3px rgba(var(--color-primary-rgb),.12); }
.product-collection__track { display:grid; grid-auto-flow:column; grid-auto-columns:clamp(220px,24vw,280px); gap:24px; overflow-x:auto; overscroll-behavior-inline:contain; padding:8px 8px 16px; margin:0 -8px; scroll-snap-type:x mandatory; scrollbar-width:thin; }
.product-collection__track .product-card-link { scroll-snap-align:start; }
.storefront-products-section { padding-top:34px; }
.storefront-catalog-header:has(+ #products-grid:empty) { margin-bottom:0; }
.storefront-load-more { display:flex; justify-content:center; padding-top:28px; }
.storefront-load-more .btn { min-width:180px; }
.storefront-catalog-empty { padding:44px 20px; }
.storefront-catalog-status { margin:20px auto 0; color:var(--color-muted); font-size:.84rem; text-align:center; }
.storefront-load-more[hidden],
.storefront-catalog-empty[hidden],
.storefront-catalog-status[hidden],
.product-collection__header p[hidden],
#storefront-curated-sections[hidden] { display:none !important; }

.products-grid { grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr)); }
.products-grid > *,
.product-card-link,
.card-wrapper,
.product-card-link .card,
.product-card-link .card__body,
.product-card-link .card__footer { min-width:0; width:100%; }
.product-card-link,.card-wrapper,.product-card-link .card { height:100%; }
.product-card-link .card { display:flex; flex-direction:column; }
.product-card-link .card__body { display:flex; flex:1 1 auto; flex-direction:column; }
.product-card-link .card__price { flex-wrap:wrap; margin-top:auto; }
.product-card-link .card__footer { margin-top:auto; }
.product-card-link .card__footer .btn { width:100%; max-width:100%; text-align:center; }

/* Editor administrativo das vitrines */
.storefront-sections-topbar { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.storefront-sections-admin { position:relative; max-width:1220px; }
.storefront-save-status { position:fixed; z-index:120; top:18px; right:22px; max-width:360px; padding:11px 16px; border-radius:10px; background:#fff; border:1px solid var(--color-border); box-shadow:var(--shadow-lg); color:var(--color-text); font-size:.84rem; font-weight:700; opacity:0; transform:translateY(-8px); pointer-events:none; transition:.2s ease; }
.storefront-save-status.is-visible { opacity:1; transform:translateY(0); }
.storefront-save-status.is-saving { color:#92400e; border-color:#fde68a; }
.storefront-save-status.is-success { color:#047857; border-color:#a7f3d0; }
.storefront-save-status.is-error { color:#b91c1c; border-color:#fecaca; }
.storefront-section-intro { display:flex; align-items:flex-end; justify-content:space-between; gap:28px; padding:24px; border:1px solid var(--color-border); border-radius:var(--radius-lg); background:#fff; }
.storefront-section-intro h2 { margin:4px 0 7px; }
.storefront-section-intro p { margin:0; max-width:700px; color:var(--color-muted); }
.storefront-section-intro__eyebrow { color:var(--color-primary); font-size:.7rem; font-weight:800; letter-spacing:.1em; }
.storefront-section-create-form { display:grid; grid-template-columns:minmax(180px,1fr) auto; align-items:end; gap:8px; min-width:350px; }
.storefront-section-create-form label { grid-column:1/-1; font-size:.76rem; font-weight:700; }
.storefront-section-create-form__category { grid-column:1/-1; }
.storefront-section-create-form__category label { display:block; margin-bottom:6px; }
.storefront-section-create-form__category p { margin:0; padding:10px 12px; border:1px solid #fecaca; border-radius:8px; background:#fff7f7; color:#991b1b; font-size:.78rem; }
.storefront-section-create-form__category a { color:inherit; font-weight:800; text-decoration:underline; }
.storefront-sections-empty { margin-top:18px; padding:34px; border:1px dashed #cbd5e1; border-radius:var(--radius-lg); text-align:center; color:var(--color-muted); }
.storefront-sections-empty h3 { margin:0 0 6px; color:var(--color-text); }
.storefront-sections-empty p { margin:0; }
.storefront-section-editor-list { display:grid; gap:16px; margin:20px 0; padding:0; list-style:none; }
.storefront-section-editor { border:1px solid var(--color-border); border-radius:var(--radius-lg); background:#fff; overflow:hidden; }
.storefront-section-editor__heading { display:grid; grid-template-columns:38px minmax(0,1fr) auto; align-items:center; gap:12px; padding:14px 18px; border-bottom:1px solid var(--color-border); background:#f8fafc; }
.storefront-section-editor__heading strong,.storefront-section-editor__heading span { display:block; }
.storefront-section-editor__heading span { margin-top:2px; color:var(--color-muted); font-size:.72rem; }
.storefront-section-editor__order { display:grid; place-items:center; width:34px; height:34px; border-radius:9px; background:rgba(var(--color-primary-rgb),.1); color:var(--color-primary); font-weight:800; }
.storefront-section-editor__actions { display:flex; align-items:center; gap:6px; }
.storefront-section-editor__actions form { margin:0; }
.category-icon-button--danger { color:#dc2626; }
.storefront-section-form { padding:18px; transition:opacity .2s; }
.storefront-section-form.is-saving { opacity:.65; }
.storefront-section-form__grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 18px; }
.storefront-section-form__wide { grid-column:1/-1; }
.storefront-section-form .form-group { margin:0; }
.storefront-section-form .form-group > span:first-child { display:block; margin-bottom:6px; color:var(--color-text); font-size:.78rem; font-weight:700; }
.storefront-section-form small { color:var(--color-muted); font-weight:500; }
.storefront-section-active-control { align-self:end; }
.storefront-switch { display:flex!important; align-items:center; gap:8px; min-height:42px; margin:0!important; }
.storefront-switch input { width:18px; height:18px; accent-color:var(--color-primary); }
.storefront-manual-products__picker { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; }
.storefront-manual-products__list { display:grid; gap:7px; margin:10px 0 6px; padding:0; list-style:none; }
.storefront-manual-products__list:empty { display:none; }
.storefront-manual-products__list li { display:flex; align-items:center; justify-content:space-between; gap:12px; min-width:0; padding:8px 10px; border:1px solid var(--color-border); border-radius:9px; background:#f8fafc; }
.storefront-manual-products__list li > span:first-child { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.8rem; font-weight:650; }
.storefront-manual-products__actions { display:flex; flex:0 0 auto; gap:5px; }
.storefront-catalog-fixed { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:18px 22px; border:1px solid var(--color-border); border-radius:var(--radius-lg); background:#fff; }
.storefront-catalog-fixed strong,.storefront-catalog-fixed span { display:block; }
.storefront-catalog-fixed span { margin-top:3px; color:var(--color-primary); font-size:.7rem; font-weight:800; text-transform:uppercase; }
.storefront-catalog-fixed p { margin:0; color:var(--color-muted); }

@media (max-width: 760px) {
  .storefront-sections-topbar,.storefront-section-intro,.storefront-catalog-fixed { align-items:stretch; flex-direction:column; }
  .storefront-section-create-form { min-width:0; width:100%; }
  .storefront-section-form__grid { grid-template-columns:1fr; }
  .storefront-section-form__wide { grid-column:auto; }
  .storefront-manual-products__picker { grid-template-columns:1fr; }
}

@media (max-width: 599px) {
  .products-grid { grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:clamp(8px,3vw,12px)!important; }
  .product-card-link,.card-wrapper,.product-card-link .card { min-width:0!important; width:100%!important; }
  .product-card-link .card__body { padding:clamp(10px,3.2vw,13px)!important; padding-bottom:8px!important; }
  .product-card-link .card__footer { padding:0 clamp(10px,3.2vw,13px) clamp(10px,3.2vw,13px); }
  .product-card-link .card__title { font-size:clamp(.76rem,3.6vw,.88rem)!important; line-height:1.35; }
  .product-card-link .card__categories { font-size:clamp(.58rem,2.7vw,.66rem); }
  .product-card-link .card__price--current { font-size:clamp(.9rem,4vw,1.02rem)!important; }
  .product-card-link .card__price--compare { font-size:clamp(.66rem,3vw,.78rem); }
  .product-card-link .card__footer .btn { min-width:0; padding:clamp(7px,2.4vw,9px) clamp(5px,2vw,10px)!important; font-size:clamp(.64rem,2.9vw,.74rem)!important; overflow:hidden; text-overflow:ellipsis; }
  .product-collection { padding:24px 0 12px; }
  .product-collection__header { margin-bottom:16px; }
  .product-collection__header p { font-size:.8rem; }
  .product-collection__header > .product-collection__controls { position:static; justify-content:center; margin-top:10px; padding:0; transform:none; background:transparent; }
  .product-collection__title-row { gap:10px; }
  .product-collection__track { grid-auto-columns:calc((100% - clamp(8px,3vw,12px))/2); gap:clamp(8px,3vw,12px); }
  .storefront-products-section { padding-top:24px; }
}

@media (max-width: 359px) {
  .products-grid { grid-template-columns:minmax(0,1fr)!important; }
  .product-collection__track { grid-auto-columns:100%; }
}
@media (max-width: 640px) {
  .catalog-import-intro,.catalog-import-section-head { flex-direction:column; gap:8px; }
  .catalog-import-summary { grid-template-columns:1fr; }
  .catalog-import-summary--compact { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .catalog-mapping-row,.catalog-preview-item { grid-template-columns:1fr; }
  .catalog-preview-item__meta { justify-content:flex-start; }
}
