/* =====================================================
   NÍVEL UP XP — Marketplace Additional Styles
   Mantém identidade visual: gradiente #00c3ff → #9c00f8
   ===================================================== */

/* ── Variáveis de Design ── */
:root {
  --brand-cyan: #00c3ff;
  --brand-purple: #9c00f8;
  --primary: #006687;
  --secondary: #7a00c2;
  --surface-white: #ffffff;
  --surface-light: #F5F7FA;
  --surface-container: #f0eded;
  --on-surface: #1b1c1c;
  --text-muted: #666666;
  --border-subtle: #E0E0E0;
  --status-error: #CC0000;
  --status-warning: #FF6600;
  --tertiary-container: #3ece65;
  --gradient: linear-gradient(135deg, #00c3ff 0%, #9c00f8 100%);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-full: 9999px;
  --transition: all 0.2s ease;
}

/* ── Modo Escuro Overrides ── */
html.dark {
  --surface-white: #1e293b;
  --surface-light: #0f172a;
  --surface-container: #1e293b;
  --on-surface: #f8fafc;
  --text-muted: #94a3b8;
  --border-subtle: #334155;
  --outline-variant: #475569;
}
html.dark body {
  background-color: var(--surface-light) !important;
  color: var(--on-surface) !important;
}
/* Força elementos específicos a usarem as variáveis nos estilos escuros */
html.dark header, 
html.dark footer, 
html.dark .bg-surface-white,
html.dark .bg-white,
html.dark section,
html.dark div.bg-surface-white {
  background-color: var(--surface-white) !important;
  color: var(--on-surface) !important;
  border-color: var(--border-subtle) !important;
}
html.dark .card-border,
html.dark .border,
html.dark .border-b,
html.dark .border-t {
  border-color: var(--border-subtle) !important;
}
html.dark .text-on-surface,
html.dark h1,
html.dark h2,
html.dark h3,
html.dark h4,
html.dark span.text-on-surface,
html.dark .ml-product-name {
  color: var(--on-surface) !important;
}
html.dark .ml-product-card {
  background: var(--surface-white) !important;
  border-color: var(--border-subtle) !important;
}
html.dark .ml-image-container {
  background: #ffffff !important; /* Mantém fundo branco para fotos dos produtos */
  border-bottom-color: var(--border-subtle) !important;
}
html.dark .ml-product-buttons {
  background: var(--surface-white) !important;
  border-top-color: var(--border-subtle) !important;
}
html.dark .ml-price-current {
  color: var(--on-surface) !important;
}
html.dark .ml-btn-cart {
  background-color: transparent !important;
  border-color: var(--brand-cyan) !important;
  color: var(--brand-cyan) !important;
}
html.dark .ml-btn-cart:hover {
  background-color: rgba(0, 195, 255, 0.1) !important;
}
html.dark input, html.dark textarea, html.dark select {
  background-color: var(--surface-light) !important;
  color: var(--on-surface) !important;
  border-color: var(--border-subtle) !important;
}
html.dark input::placeholder, html.dark textarea::placeholder {
  color: var(--text-muted) !important;
}
html.dark .bg-surface-light, html.dark .bg-slate-50 {
  background-color: var(--surface-light) !important;
}
html.dark .text-text-muted, html.dark .text-muted {
  color: var(--text-muted) !important;
}
html.dark .bg-surface-container-low, html.dark .bg-surface-container {
  background-color: var(--surface-light) !important;
}
html.dark #new-review-form textarea, html.dark #new-review-form input {
  background-color: var(--surface-white) !important;
}

/* ── Utilitários Globais ── */
.brand-gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-gradient-bg {
  background: var(--gradient);
}

/* ── Toast Notifications ── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--on-surface);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  pointer-events: all;
  animation: slideInRight 0.3s ease forwards;
  max-width: 320px;
}

.toast.success { border-left: 4px solid #22c55e; }
.toast.error   { border-left: 4px solid var(--status-error); }
.toast.info    { border-left: 4px solid var(--brand-cyan); }
.toast.warning { border-left: 4px solid var(--status-warning); }

.toast-icon { font-size: 18px; }
.toast-out  { animation: slideOutRight 0.3s ease forwards; }

@keyframes slideInRight {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes slideOutRight {
  from { transform: translateX(0);    opacity: 1; }
  to   { transform: translateX(120%); opacity: 0; }
}

/* ── Cart Sidebar / Drawer ── */
#cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 400px;
  max-width: 100vw;
  height: 100vh;
  background: var(--surface-white);
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

#cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}

#cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gradient);
  color: white;
}

.cart-header h2 {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-close-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.cart-close-btn:hover { background: rgba(255,255,255,0.3); }

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  background: var(--surface-light);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}
.cart-item:hover { border-color: var(--brand-cyan); }

.cart-item-img {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--border-subtle);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-img .placeholder-icon { font-size: 28px; color: var(--text-muted); }

.cart-item-info { flex: 1; }
.cart-item-name {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--on-surface);
  line-height: 1.4;
  margin-bottom: 6px;
}
.cart-item-price {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.qty-btn {
  width: 28px; height: 28px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--surface-white);
  color: var(--on-surface);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  line-height: 1;
}
.qty-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #e8f4ff;
}

.qty-display {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
  color: var(--on-surface);
}

.cart-remove-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: flex;
  align-items: center;
}
.cart-remove-btn:hover { color: var(--status-error); }

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-white);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.cart-total-label {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-muted);
}
.cart-total-value {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--on-surface);
}

.cart-btn-primary {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.2s;
  margin-bottom: 10px;
}
.cart-btn-primary:hover { opacity: 0.9; }

.cart-btn-secondary {
  display: block;
  width: 100%;
  padding: 12px;
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: var(--transition);
}
.cart-btn-secondary:hover { background: #e8f4ff; }

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  color: var(--text-muted);
  text-align: center;
  gap: 12px;
}
.cart-empty .empty-icon { font-size: 64px; opacity: 0.3; }
.cart-empty p { font-family: 'Inter', sans-serif; font-size: 14px; }

/* ── Cart Badge Animation ── */
@keyframes cartBounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.4); }
  60%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}
.cart-badge-animate { animation: cartBounce 0.4s ease; }

/* ── Produto Page — Galeria ── */
.product-gallery-main {
  width: 100%;
  aspect-ratio: 1/1;
  max-height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-light);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  position: relative;
}

.product-gallery-main img,
.product-gallery-main video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-gallery-main .placeholder-icon-lg {
  font-size: 96px;
  color: var(--border-subtle);
}

.gallery-thumbnails {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.gallery-thumb {
  width: 72px; height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition);
  background: var(--surface-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-thumb:hover { border-color: var(--brand-cyan); }
.gallery-thumb.active { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(0,102,135,0.3); }
.gallery-thumb img, .gallery-thumb video { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb .thumb-play { font-size: 28px; color: var(--primary); }

/* ── Produto Page — Informações ── */
.product-price-section { padding: 16px 0; border-bottom: 1px solid var(--border-subtle); }
.product-price-original {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  text-decoration: line-through;
  color: var(--text-muted);
}
.product-price-current {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}
.product-price-promo {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #16a34a;
  line-height: 1.2;
}
.product-discount-badge {
  display: inline-block;
  background: var(--gradient);
  color: white;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-left: 8px;
  vertical-align: middle;
}
.product-installment {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.product-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  margin: 12px 0;
}
.stock-in { background: #dcfce7; color: #16a34a; }
.stock-low { background: #fef3c7; color: #d97706; }
.stock-out { background: #fee2e2; color: #dc2626; }

.product-buy-section { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.btn-buy {
  padding: 16px;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.btn-buy:hover { opacity: 0.9; }

.btn-cart {
  padding: 14px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-cart:hover { background: #e8f4ff; }

/* ── Admin Panel — Layout ── */
#admin-page {
  display: flex;
  min-height: 100vh;
  background: var(--surface-light);
  font-family: 'Inter', sans-serif;
}

/* Sidebar */
.admin-sidebar {
  width: 260px;
  min-height: 100vh;
  background: #1a1a2e;
  color: white;
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-logo {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  margin-top: 2px;
  -webkit-text-fill-color: rgba(255,255,255,0.5);
}

.sidebar-nav {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
}

.sidebar-section-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 12px 20px 6px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  font-weight: 500;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  text-decoration: none;
}
.sidebar-link:hover { background: rgba(255,255,255,0.08); color: white; }
.sidebar-link.active {
  background: linear-gradient(90deg, rgba(0,195,255,0.2), rgba(156,0,248,0.2));
  color: white;
  border-right: 3px solid var(--brand-cyan);
}
.sidebar-link .material-symbols-outlined { font-size: 20px; }

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Admin Content Area */
.admin-content {
  margin-left: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.admin-topbar {
  background: var(--surface-white);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.admin-topbar-title {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--on-surface);
}

.admin-user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.admin-main {
  padding: 32px;
  flex: 1;
}

/* Admin Sections */
.admin-section { display: none; }
.admin-section.active { display: block; }

/* Stat Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 4px;
}
.stat-icon.cyan { background: rgba(0,195,255,0.15); color: var(--brand-cyan); }
.stat-icon.purple { background: rgba(156,0,248,0.15); color: var(--brand-purple); }
.stat-icon.green { background: rgba(62,206,101,0.15); color: #16a34a; }
.stat-icon.orange { background: rgba(255,102,0,0.15); color: var(--status-warning); }
.stat-icon.red { background: rgba(204,0,0,0.15); color: var(--status-error); }

.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.stat-value { font-family: 'Hanken Grotesk', sans-serif; font-size: 28px; font-weight: 800; color: var(--on-surface); }
.stat-sub { font-size: 12px; color: var(--text-muted); }

/* Dashboard Tables */
.admin-card {
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.admin-card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-card-title {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--on-surface);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Tables */
.admin-table-wrap { overflow-x: auto; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th {
  background: var(--surface-light);
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--on-surface);
  vertical-align: middle;
}

.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover td { background: var(--surface-light); }

/* Product thumbnail in table */
.product-thumb-cell {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--surface-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  vertical-align: middle;
}
.product-thumb-cell img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb-cell .ph-icon { font-size: 24px; color: var(--border-subtle); }

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
}
.badge-green  { background: #dcfce7; color: #16a34a; }
.badge-yellow { background: #fef3c7; color: #d97706; }
.badge-red    { background: #fee2e2; color: #dc2626; }
.badge-blue   { background: #dbeafe; color: #2563eb; }
.badge-purple { background: rgba(156,0,248,0.12); color: var(--brand-purple); }
.badge-cyan   { background: rgba(0,195,255,0.12); color: #0369a1; }
.badge-gray   { background: #f3f4f6; color: #6b7280; }

/* Action Buttons */
.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}
.btn-action.edit   { background: #eff6ff; color: #2563eb; }
.btn-action.edit:hover { background: #dbeafe; }
.btn-action.delete { background: #fef2f2; color: #dc2626; }
.btn-action.delete:hover { background: #fee2e2; }
.btn-action.view   { background: #f0fdf4; color: #16a34a; }
.btn-action.view:hover { background: #dcfce7; }
.btn-action .material-symbols-outlined { font-size: 16px; }

/* Primary Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.9; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--surface-white);
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-secondary:hover { background: #e8f4ff; }

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fca5a5;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-danger:hover { background: #fee2e2; }

/* ── Admin Forms ── */
.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.admin-form-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.admin-form-grid.cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.admin-form-grid.col-full { grid-column: 1/-1; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full { grid-column: 1 / -1; }

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--on-surface);
  font-family: 'Inter', sans-serif;
}

.form-label .required {
  color: var(--status-error);
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  padding: 10px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--on-surface);
  background: var(--surface-white);
  transition: var(--transition);
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,102,135,0.12);
}

.form-textarea { resize: vertical; min-height: 100px; }

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
}

/* Price input group */
.input-prefix-group {
  display: flex;
  align-items: stretch;
}
.input-prefix {
  background: var(--surface-light);
  border: 1px solid var(--border-subtle);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  align-items: center;
}
.input-prefix-group .form-input {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ── Upload Zone ── */
.upload-zone {
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--surface-light);
  position: relative;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--brand-cyan);
  background: rgba(0,195,255,0.05);
}
.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.upload-zone-icon { font-size: 48px; color: var(--text-muted); margin-bottom: 12px; }
.upload-zone-title { font-family: 'Hanken Grotesk', sans-serif; font-size: 16px; font-weight: 600; color: var(--on-surface); margin-bottom: 4px; }
.upload-zone-sub { font-size: 13px; color: var(--text-muted); }
.upload-zone-formats { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-muted); margin-top: 8px; background: var(--surface-white); display: inline-block; padding: 4px 12px; border-radius: var(--radius-full); border: 1px solid var(--border-subtle); }

/* Upload Preview Grid */
.upload-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.upload-preview-item {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border-subtle);
  background: var(--surface-light);
  cursor: grab;
  transition: var(--transition);
}
.upload-preview-item:hover { border-color: var(--brand-cyan); }
.upload-preview-item.is-cover { border-color: var(--primary); }
.upload-preview-item.dragging { opacity: 0.5; cursor: grabbing; }

.upload-preview-item img,
.upload-preview-item video {
  width: 100%; height: 100%;
  object-fit: cover;
}

.preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background 0.2s;
}
.upload-preview-item:hover .preview-overlay { background: rgba(0,0,0,0.5); }

.preview-btn {
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--on-surface);
  opacity: 0;
  transition: opacity 0.2s;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}
.upload-preview-item:hover .preview-btn { opacity: 1; }
.preview-btn.set-cover { color: var(--primary); }
.preview-btn.remove    { color: var(--status-error); }
.preview-btn .material-symbols-outlined { font-size: 14px; }

.cover-badge {
  position: absolute;
  top: 4px; left: 4px;
  background: var(--gradient);
  color: white;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

/* ── Admin Login Page ── */
.admin-login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2e 50%, #0a1a2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
  position: relative;
  z-index: 1;
}

.login-logo {
  text-align: center;
  margin-bottom: 32px;
}
.login-logo .logo-text {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.login-logo .logo-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.15em;
  margin-top: 4px;
}
.login-card .form-label { color: rgba(255,255,255,0.8); }
.login-card .form-input {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: white;
}
.login-card .form-input::placeholder { color: rgba(255,255,255,0.35); }
.login-card .form-input:focus { border-color: var(--brand-cyan); box-shadow: 0 0 0 3px rgba(0,195,255,0.2); }
.login-error {
  background: rgba(204,0,0,0.2);
  border: 1px solid rgba(204,0,0,0.4);
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  display: none;
}
.login-error.show { display: block; }

/* Background orbs for login page */
.login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: orbFloat 8s ease-in-out infinite;
}
.login-orb-1 { width: 300px; height: 300px; background: var(--brand-cyan); top: -100px; right: -100px; animation-delay: 0s; }
.login-orb-2 { width: 250px; height: 250px; background: var(--brand-purple); bottom: -80px; left: -80px; animation-delay: -4s; }
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -20px) scale(1.05); }
}

/* ── Estoque Section ── */
.stock-history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
}
.stock-history-item:last-child { border-bottom: none; }

.stock-movement-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stock-in-icon  { background: #dcfce7; color: #16a34a; }
.stock-out-icon { background: #fee2e2; color: #dc2626; }

.stock-movement-qty { font-family: 'JetBrains Mono', monospace; font-weight: 700; }
.stock-in-qty  { color: #16a34a; }
.stock-out-qty { color: #dc2626; }

/* Alert de estoque baixo */
.low-stock-alert {
  background: linear-gradient(135deg, rgba(255,102,0,0.1), rgba(255,102,0,0.05));
  border: 1px solid rgba(255,102,0,0.3);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #92400e;
}
.low-stock-alert .material-symbols-outlined { color: var(--status-warning); }

/* ── Carrinho Page ── */
.cart-page-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}

.cart-page-item {
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  gap: 16px;
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}
.cart-page-item:hover { box-shadow: var(--shadow-md); }

.cart-page-img {
  width: 100px; height: 100px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--surface-light);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.cart-page-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-page-img .material-symbols-outlined { font-size: 40px; color: var(--border-subtle); }

.order-summary {
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-subtle);
  position: sticky;
  top: 120px;
}

.order-summary-title {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-muted);
}
.summary-row.total {
  padding-top: 16px;
  margin-top: 8px;
  border-top: 1px solid var(--border-subtle);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--on-surface);
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal-box {
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
  transform: scale(0.95);
  transition: transform 0.3s;
  overflow: hidden;
}
.modal-overlay.open .modal-box { transform: scale(1); }

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gradient);
  color: white;
}
.modal-title {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,0.35); }

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ── Search & Filter Bar ── */
.filter-bar {
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.filter-chip {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--surface-white);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'JetBrains Mono', monospace;
}
.filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.filter-chip.active {
  background: var(--gradient);
  color: white;
  border-color: transparent;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-content { margin-left: 0; }
  .cart-page-layout { grid-template-columns: 1fr; }
  .admin-form-grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .admin-form-grid.cols-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .admin-main { padding: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-form-grid.cols-3, .admin-form-grid.cols-4 { grid-template-columns: 1fr; }
  .modal-box { max-width: 100%; border-radius: 0; max-height: 100vh; margin: 0; }
  .modal-overlay { align-items: flex-end; }
  .login-card { padding: 32px 24px; }
  #cart-drawer { width: 100%; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .upload-preview-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Animations ── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 0.3s ease forwards; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.loading-pulse { animation: pulse 1.5s ease infinite; }

/* ── Pagination ── */
.pagination {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
}
.page-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--surface-white);
  color: var(--on-surface);
  font-size: 14px;
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--gradient); color: white; border-color: transparent; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Admin Sidebar Mobile Toggle ── */
.sidebar-mobile-toggle {
  display: none;
  position: fixed;
  top: 16px; left: 16px;
  z-index: 200;
  background: var(--gradient);
  color: white;
  border: none;
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}
@media (max-width: 1024px) {
  .sidebar-mobile-toggle { display: flex; }
  .admin-topbar { padding-left: 72px; }
}

/* ── Busca com resultados ── */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 500;
  max-height: 400px;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: var(--on-surface);
}
.search-result-item:hover { background: var(--surface-light); }
.search-result-item:not(:last-child) { border-bottom: 1px solid var(--border-subtle); }

.search-result-img {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--surface-light);
  border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.search-result-img img { width: 100%; height: 100%; object-fit: cover; }

.search-result-name { font-size: 14px; font-weight: 600; }
.search-result-price { font-size: 13px; color: var(--primary); font-family: 'JetBrains Mono', monospace; }

/* ── Related Products ── */
.related-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

/* ── Empty State ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 80px; opacity: 0.25; margin-bottom: 16px; }
.empty-state h3 { font-family: 'Hanken Grotesk', sans-serif; font-size: 18px; font-weight: 700; color: var(--on-surface); margin-bottom: 8px; }
.empty-state p { font-size: 14px; max-width: 300px; line-height: 1.6; }

/* ══════════════════════════════════════════════════
   SISTEMA DE PEDIDOS WHATSAPP — Estilos Adicionais
   ══════════════════════════════════════════════════ */

/* ── Forma de input para admin orders search ── */
.admin-section .form-input {
  padding: 10px 14px;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  color: #1b1c1c;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  transition: all .2s;
  width: 100%;
  box-sizing: border-box;
}
.admin-section .form-input:focus {
  border-color: #006687;
  box-shadow: 0 0 0 3px rgba(0,102,135,.08);
}
.admin-section .form-select {
  padding: 10px 14px;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  color: #1b1c1c;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  transition: all .2s;
  cursor: pointer;
}
.admin-section .form-select:focus { border-color: #006687; }

/* ── Order Modal Active State ── */
.modal-overlay.active { display: flex !important; }

/* ── Orders stat cards (gradient) ── */
#orders-stats .stat-card {
  border: none;
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  transition: transform .25s ease, box-shadow .25s ease;
}
#orders-stats .stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
}

/* ── WhatsApp button ── */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 4px 12px rgba(37,211,102,.3);
  text-decoration: none;
}
.btn-whatsapp:hover { opacity: .9; transform: translateY(-1px); }

/* ── Sidebar badge for orders ── */
#orders-sidebar-badge {
  margin-left: auto;
  background: #FF6600;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
}

/* ── Slider Banners Dinâmicos ── */
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
}
.slider-dot.active {
  background: #ffffff;
  width: 28px;
  border-radius: 10px;
}
.slider-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* ── Sistema de Avaliações ── */
.star-rating-btn {
  font-size: 32px;
  color: #d1d5db;
  cursor: pointer;
  transition: color 0.15s ease;
}
.star-rating-btn.active, .star-rating-btn:hover {
  color: #f59e0b;
}

/* ==========================================================================
   CARROSSEL E OVERHAUL DOS CARDS DE PRODUTOS (MERCADO LIVRE STYLE)
   ========================================================================== */

/* ── Carrossel Estilos ── */
.carousel-wrapper {
  position: relative;
  width: 100%;
}
.carousel-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  snap-type: x mandatory;
  padding: 8px 4px 16px 4px;
}
/* Oculta scrollbar */
.carousel-container.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.carousel-container.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Setas do Carrossel */
.carousel-btn {
  position: absolute;
  top: calc(50% - 24px); /* Centraliza em relação ao card (descontando botões inferiores) */
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #E0E0E0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #006687;
  cursor: pointer;
  z-index: 30;
  transition: all 0.2s ease;
  opacity: 0;
  pointer-events: none;
}
.carousel-wrapper:hover .carousel-btn {
  opacity: 1;
  pointer-events: auto;
}
.carousel-btn:hover {
  background: #f3f4f6;
  color: #7a00c2;
  transform: translateY(-50%) scale(1.08);
}
.carousel-btn:active {
  transform: translateY(-50%) scale(0.95);
}
.carousel-btn.left {
  left: -20px;
}
.carousel-btn.right {
  right: -20px;
}

/* Oculta setas no mobile/tablet */
@media (max-width: 1023px) {
  .carousel-btn {
    display: none !important;
  }
}

/* ── Card de Produto — Estilo Overlay AliExpress ── */
.ml-product-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  cursor: pointer;
}
.ml-product-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(0, 195, 255, 0.4);
  box-shadow: 0 16px 32px -8px rgba(0, 195, 255, 0.18), 0 8px 16px -4px rgba(156, 0, 248, 0.10);
}

/* Image Wrapper — ocupa o card todo, info sobreposta */
.ml-image-container {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  box-sizing: border-box;
}
.ml-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.ml-product-card:hover .ml-image-container img {
  transform: scale(1.08);
}

/* Badge Overlay */
.ml-badge-container {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ml-badge {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  letter-spacing: 0.05em;
  width: max-content;
  backdrop-filter: blur(4px);
}
.ml-badge.new { background: rgba(37,99,235,0.9); }
.ml-badge.promo { background: rgba(22,163,74,0.9); }
.ml-badge.hot { background: rgba(234,88,12,0.9); }
.ml-badge.stock-low { background: rgba(217,119,6,0.9); }
.ml-badge.stock-out { background: rgba(220,38,38,0.9); }

/* Botão Favorito Flutuante */
.ml-fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 20;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #9ca3af;
}
.ml-fav-btn .material-symbols-outlined { font-size: 16px; }
.ml-fav-btn:hover {
  background: #ffffff;
  color: #dc2626;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(220,38,38,0.2);
}
.ml-fav-btn:active { transform: scale(0.92); }
.ml-fav-btn.active { color: #dc2626; }

/* ── Painel de Info Overlay (abaixo da imagem, sobreposição) ── */
.ml-product-info {
  display: flex;
  flex-direction: column;
  padding: 10px 10px 6px;
  box-sizing: border-box;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  flex-grow: 1;
}

/* Categoria */
.ml-product-info > div:first-child {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

/* Nome do produto */
.ml-product-name {
  font-size: 12px;
  line-height: 1.3;
  color: #0f172a;
  font-weight: 600;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 32px;
}

/* Avaliações */
.ml-rating-row {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 3px;
}
.ml-rating-stars {
  display: flex;
  align-items: center;
  gap: 1px;
  color: #f59e0b;
}
.ml-rating-stars .material-symbols-outlined { font-size: 11px; }
.ml-rating-count {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1;
}

/* Vendidos */
.ml-sold-count {
  font-size: 10px;
  color: #94a3b8;
  margin-bottom: 2px;
}

/* Container de preços */
.ml-price-block {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  padding-top: 4px;
}
.ml-price-old {
  font-size: 10px;
  color: #94a3b8;
  text-decoration: line-through;
  line-height: 1.2;
  margin-bottom: 1px;
  min-height: 13px;
}
.ml-price-current-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
}
.ml-price-current {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}
.ml-discount-tag {
  font-size: 11px;
  font-weight: 700;
  color: #16a34a;
  background: #dcfce7;
  padding: 1px 5px;
  border-radius: 4px;
}
.ml-installment {
  font-size: 10px;
  color: #64748b;
  margin-top: 1px;
}
.ml-shipping-tag {
  font-size: 10px;
  font-weight: 700;
  color: #16a34a;
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 3px;
}
.ml-stock-tag {
  font-size: 10px;
  font-weight: 600;
  color: #ea580c;
  margin-top: 2px;
}

/* Botões — linha única compacta na base do card */
.ml-product-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px 10px 10px;
  flex-shrink: 0;
  box-sizing: border-box;
  background: #ffffff;
}

.ml-btn-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  font-family: 'Hanken Grotesk', sans-serif;
  color: #006687;
  border: 1.5px solid #006687;
  background: #ffffff;
  padding: 6px 4px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.ml-btn-cart .material-symbols-outlined { font-size: 13px; }
.ml-btn-cart:hover {
  background: #f0f9ff;
  border-color: #0081ab;
  color: #0081ab;
}
.ml-btn-cart:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ml-btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  font-family: 'Hanken Grotesk', sans-serif;
  color: #ffffff;
  background: linear-gradient(135deg, #00c3ff 0%, #9c00f8 100%);
  padding: 6px 4px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  white-space: nowrap;
}
.ml-btn-buy .material-symbols-outlined { font-size: 13px; }
.ml-btn-buy:hover {
  opacity: 0.93;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(156,0,248,0.3);
}
.ml-product-card:hover .ml-btn-buy {
  box-shadow: 0 4px 12px rgba(156,0,248,0.2);
}

/* ── Banner Principal ── */
#hero-slider {
  width: 100%;
  height: 180px;
}
@media (min-width: 768px) {
  #hero-slider {
    height: 280px;
  }
}

/* Wrapper gerado pelo banners.js */
#hero-slider > div {
  height: 100%;
}

/* Cada slide */
#hero-slider .slider-item {
  height: 100%;
}

/* Fundos de imagem */
#hero-slider .bg-cover {
  height: 100%;
}

/* Área de conteúdo */
#hero-slider .relative.z-10 {
  height: 100%;
  display: flex;
  align-items: center;
}

/* Título */
#hero-slider h2 {
  font-size: 20px;
  line-height: 1.2;
}
@media (min-width: 768px) {
  #hero-slider h2 {
    font-size: 32px;
    line-height: 1.15;
  }
}

/* Badge/tag */
#hero-slider span.inline-block {
  font-size: 10px;
  padding: 3px 10px;
}

/* Botão de ação */
#hero-slider .btn-primary {
  padding: 8px 20px;
  font-size: 13px;
  margin-top: 8px;
}

/* ── Search Dropdown Styles ── */
.search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  max-height: 400px;
  overflow-y: auto;
  margin-top: 8px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--on-surface);
  transition: background-color 0.2s ease;
  border-bottom: 1px solid var(--border-subtle);
}

.search-result-item:hover {
  background-color: var(--surface-light);
}

.search-result-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.search-result-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.search-result-name {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--on-surface);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-price {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 2px;
}

/* ── Slider Track e Wrapper (Carrossel Deslizante) ── */
.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slider-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.slider-item {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  position: relative;
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE ALIEXPRESS STYLE — @media max-width: 639px
   ═══════════════════════════════════════════════════════════════════ */

/* ── Faixa de Frete Grátis ── */
.mobile-shipping-banner {
  display: none;
}
@media (max-width: 639px) {
  .mobile-shipping-banner {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #1a7a3a;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    padding: 7px 12px;
    width: 100%;
  }
  .mobile-shipping-banner .choice-tag {
    background: #fff;
    color: #1a7a3a;
    font-weight: 700;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: auto;
    white-space: nowrap;
  }
}

/* ── Abas de Categoria Mobile ── */
.mobile-category-tabs {
  display: none;
}
@media (max-width: 639px) {
  .mobile-category-tabs {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    width: 100%;
  }
  .mobile-category-tabs::-webkit-scrollbar { display: none; }
  .mobile-category-tab {
    flex-shrink: 0;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    text-decoration: none;
    transition: color 0.15s, border-color 0.15s;
    display: inline-block;
  }
  .mobile-category-tab.active {
    color: #e52222;
    border-bottom-color: #e52222;
    font-weight: 700;
  }

  /* ── Grid edge-to-edge no mobile ── */
  .mobile-edge-main {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* ── Product card Overlay no mobile ── */
  .ml-product-card {
    border-radius: 10px !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
  }
  .ml-product-card:hover {
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07) !important;
  }
  .ml-image-container {
    aspect-ratio: 4 / 3 !important;
    border-radius: 0 !important;
  }

  /* Preço destaque no mobile */
  .ml-price-current {
    color: #e52222 !important;
    font-size: 16px !important;
    font-weight: 800 !important;
  }

  /* Info compacta no mobile */
  .ml-product-info {
    padding: 8px 8px 4px !important;
  }
  .ml-product-name {
    font-size: 11px !important;
    line-height: 1.3 !important;
    min-height: 28px !important;
    margin-bottom: 2px !important;
    font-weight: 600 !important;
  }
  .ml-rating-row {
    margin-bottom: 1px !important;
  }
  .ml-rating-count { font-size: 10px !important; }
  .ml-discount-tag {
    font-size: 9px !important;
    padding: 1px 4px !important;
  }
  .ml-installment {
    font-size: 9px !important;
    color: #6b7280 !important;
  }
  .ml-fav-btn {
    width: 26px !important;
    height: 26px !important;
  }
  .ml-product-buttons {
    padding: 5px 8px 8px !important;
    gap: 5px !important;
  }
  .ml-btn-cart, .ml-btn-buy {
    font-size: 9px !important;
    padding: 5px 3px !important;
  }

  /* Seções internas ficam flat no mobile */
  .mobile-section-flat {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .mobile-section-flat > .flex {
    padding: 10px 12px !important;
    background: #fff;
    border-bottom: 1px solid #e5e7eb !important;
    border-radius: 0 !important;
  }

  /* Título "Para Você" + filtros */
  #main-product-section > div:first-child {
    padding: 10px 12px 8px !important;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0 !important;
  }

  /* Body padding para barra inferior */
  body {
    padding-bottom: 60px !important;
  }

  /* Grid sem gap no mobile (visualmente separado por bordas dos cards) */
  #product-grid,
  #ofertas-dia-container,
  #ultimo-visto-container {
    gap: 0 !important;
  }
}

/* ── Barra de Navegação Inferior Mobile ── */
.mobile-bottom-nav {
  display: none;
}
@media (max-width: 639px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    height: 58px;
    align-items: stretch;
    box-shadow: 0 -2px 14px rgba(0,0,0,0.10);
  }
  .mobile-bottom-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    text-decoration: none;
    color: #6b7280;
    font-size: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    padding: 4px 0;
    cursor: pointer;
    border: none;
    background: transparent;
    transition: color 0.15s;
    position: relative;
  }
  .mobile-bottom-nav .nav-item.active {
    color: #e52222;
  }
  .mobile-bottom-nav .nav-item .material-symbols-outlined {
    font-size: 22px;
  }
  .mobile-bottom-nav .nav-cta-pill {
    background: linear-gradient(135deg, #00c3ff 0%, #9c00f8 100%);
    color: #fff;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(156,0,248,0.35);
    margin-bottom: 2px;
  }
  .mobile-bottom-nav .nav-badge {
    position: absolute;
    top: 4px;
    right: calc(50% - 20px);
    background: #e52222;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    border-radius: 9999px;
    min-width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
  }
}
