/* ============================================
   DigitalShop — Design System Premium
   Tema escuro com gradientes e glassmorphism
   ============================================ */

:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-tertiary: #1a2236;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  --brand: #6366f1;
  --brand-2: #8b5cf6;
  --brand-3: #ec4899;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  --gradient-brand: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --gradient-card: linear-gradient(145deg, rgba(99,102,241,.08), rgba(236,72,153,.04));
  --gradient-hero: radial-gradient(ellipse at top left, rgba(99,102,241,.25), transparent 50%),
                   radial-gradient(ellipse at bottom right, rgba(236,72,153,.20), transparent 50%);

  --shadow-sm: 0 2px 8px rgba(0,0,0,.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.5);
  --shadow-glow: 0 0 40px rgba(99,102,241,.4);

  --radius: 14px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; }

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

body {
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99,102,241,.15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(236,72,153,.10), transparent);
  background-attachment: fixed;
}

/* ============ NAVBAR ============ */
.navbar-custom {
  background: rgba(10, 14, 26, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-custom .navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.navbar-custom .nav-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }

/* ============ BUTTONS ============ */
.btn {
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: .55rem 1.1rem;
  border: 1px solid transparent;
  transition: all .25s ease;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: .4rem;
}

.btn-primary, .btn-success {
  background: var(--gradient-brand);
  border: none;
  color: #fff;
  box-shadow: 0 4px 14px rgba(99,102,241,.4);
}
.btn-primary:hover, .btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99,102,241,.55);
  color: #fff;
}

.btn-outline-light {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
}
.btn-outline-light:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
  border-color: var(--brand);
}

.btn-warning {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  border: none; color: #fff;
}
.btn-warning:hover { color: #fff; transform: translateY(-1px); }

.btn-danger {
  background: rgba(239,68,68,.15);
  border: 1px solid rgba(239,68,68,.3);
  color: #fca5a5;
}
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }

.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn-secondary:hover { background: var(--surface-hover); color: var(--text-primary); }

.btn-lg { padding: .85rem 1.6rem; font-size: 1.05rem; }
.btn-sm { padding: .35rem .8rem; font-size: .85rem; }

/* ============ CARDS ============ */
.card {
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  transition: all .3s ease;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.card-product {
  position: relative;
  display: flex;
  flex-direction: column;
}
.card-product::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--gradient-card);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.card-product:hover::before { opacity: 1; }
.card-product > * { position: relative; z-index: 1; }

.card-product h5 {
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: .5rem;
}

.card-plan {
  position: relative;
  padding: 2rem !important;
}
.card-plan.destaque {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-secondary), var(--bg-secondary)) padding-box,
    var(--gradient-brand) border-box;
  box-shadow: var(--shadow-glow);
}
.card-plan.destaque::after {
  content: '⭐ MAIS POPULAR';
  position: absolute; top: -12px; right: 20px;
  background: var(--gradient-brand);
  color: #fff; font-size: .7rem; font-weight: 800;
  padding: .35rem .8rem; border-radius: 20px;
  letter-spacing: .05em;
}

/* ============ PRICES ============ */
.preco {
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}
.preco-grande { font-size: 2.5rem; }
.preco small { font-size: .85rem; color: var(--text-muted); -webkit-text-fill-color: var(--text-muted); font-weight: 500; }

/* ============ HERO ============ */
.hero {
  padding: 5rem 2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  background-image: var(--gradient-hero);
  border: 1px solid var(--border);
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}
.hero h1 .gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p.lead {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============ SECTION TITLES ============ */
.section-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 3rem 0 1.5rem;
}
.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* ============ FORMS ============ */
.form-control, .form-select {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 10px;
  padding: .7rem .9rem;
  transition: all .2s;
}
.form-control:focus, .form-select:focus {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(99,102,241,.2);
  outline: none;
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:disabled { opacity: .6; }
.form-label, label {
  color: var(--text-secondary);
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: .35rem;
}

/* Auth box */
.auth-box {
  max-width: 440px; margin: 3rem auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}
.auth-box h3 {
  font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: .3rem;
}
.auth-box .auth-sub { color: var(--text-muted); margin-bottom: 1.8rem; }

/* ============ ALERTS ============ */
.alert {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .9rem 1.1rem;
  background: var(--surface);
  color: var(--text-primary);
}
.alert-success { background: rgba(16,185,129,.1); border-color: rgba(16,185,129,.3); color: #6ee7b7; }
.alert-danger  { background: rgba(239,68,68,.1);  border-color: rgba(239,68,68,.3);  color: #fca5a5; }
.alert-warning { background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.3); color: #fcd34d; }
.alert-info    { background: rgba(99,102,241,.1); border-color: rgba(99,102,241,.3); color: #a5b4fc; }

/* ============ BADGES ============ */
.badge {
  font-weight: 600; padding: .35em .7em; border-radius: 999px;
  font-size: .75rem; letter-spacing: .02em;
}
.bg-success { background: rgba(16,185,129,.2) !important; color: #6ee7b7 !important; border: 1px solid rgba(16,185,129,.3); }
.bg-warning { background: rgba(245,158,11,.2) !important; color: #fcd34d !important; border: 1px solid rgba(245,158,11,.3); }
.bg-danger  { background: rgba(239,68,68,.2)  !important; color: #fca5a5 !important; border: 1px solid rgba(239,68,68,.3); }
.bg-secondary { background: var(--surface) !important; color: var(--text-secondary) !important; border: 1px solid var(--border); }

/* ============ TABLES ============ */
.table-wrap {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.table {
  color: var(--text-primary) !important;
  margin-bottom: 0 !important;
  --bs-table-bg: transparent;
  --bs-table-color: var(--text-primary);
  --bs-table-border-color: var(--border);
}
.table thead th {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: .05em;
  border: none;
  padding: 1rem;
}
.table tbody td {
  padding: 1rem;
  border-color: var(--border);
  vertical-align: middle;
  color: var(--text-primary);
}
.table tbody tr { transition: background .2s; }
.table tbody tr:hover { background: var(--surface-hover); }

/* ============ DASHBOARD STATS ============ */
.stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient-brand);
}
.stat-card .stat-label {
  color: var(--text-muted);
  font-size: .8rem; text-transform: uppercase; letter-spacing: .05em;
  font-weight: 600;
}
.stat-card .stat-value {
  font-size: 2rem; font-weight: 800;
  margin-top: .5rem; letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* ============ FOOTER ============ */
.footer-custom {
  margin-top: 5rem;
  padding: 0 0 2rem;
  color: var(--text-muted);
  font-size: .92rem;
}
.footer-panel {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
  box-shadow: var(--shadow-md);
}
.footer-panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--gradient-brand);
}
.footer-custom strong {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============ LINKS ============ */
a { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-3); }

.text-muted { color: var(--text-muted) !important; }

/* ============ FEATURE LIST ============ */
.feature-list { list-style: none; padding: 0; margin: 1rem 0; }
.feature-list li {
  padding: .5rem 0;
  color: var(--text-secondary);
  display: flex; align-items: center; gap: .6rem;
}
.feature-list li::before {
  content: '✓';
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff; font-size: .75rem; font-weight: 700;
  flex-shrink: 0;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .6s ease both; }
.fade-up:nth-child(2) { animation-delay: .1s; }
.fade-up:nth-child(3) { animation-delay: .2s; }
.fade-up:nth-child(4) { animation-delay: .3s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .hero { padding: 3rem 1.5rem; }
  .navbar-custom .nav-actions .btn { font-size: .8rem; padding: .4rem .7rem; }
  .navbar-custom .navbar-brand { font-size: 1.2rem; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

/* ========================================================
   BLOCO 1 — UX Premium: tema, splash, breadcrumb,
   tilt-glow, badges animados, skeletons, error pages
   ======================================================== */

/* ----- Tema claro (dark é o default existente) ----- */
html[data-theme="light"] {
  --bg-primary: #f5f7fb;
  --bg-secondary: #ffffff;
  --bg-tertiary: #eef2f9;
  --surface: rgba(15, 23, 42, 0.04);
  --surface-hover: rgba(15, 23, 42, 0.08);
  --border: rgba(15, 23, 42, 0.10);
  --border-strong: rgba(15, 23, 42, 0.18);
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --shadow-sm: 0 2px 8px rgba(15,23,42,.08);
  --shadow-md: 0 8px 24px rgba(15,23,42,.10);
  --shadow-lg: 0 20px 60px rgba(15,23,42,.15);
}
html[data-theme="light"] body {
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99,102,241,.12), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(236,72,153,.08), transparent);
}
html[data-theme="light"] .navbar-custom { background: rgba(255,255,255,.75); }
html[data-theme="light"] .btn-outline-light {
  color: var(--text-primary); border-color: var(--border-strong); background: var(--surface);
}
html[data-theme="light"] .btn-outline-light:hover { background: var(--surface-hover); color: var(--text-primary); }
html[data-theme="light"] .footer-panel { background: rgba(255,255,255,.8); box-shadow: 0 18px 45px rgba(15,23,42,.08); }

/* ----- Theme toggle ----- */
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--text-primary); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .25s ease; position: relative; overflow: hidden;
}
.theme-toggle:hover { background: var(--surface-hover); transform: rotate(15deg); }
.theme-toggle .icon-light, .theme-toggle .icon-dark { transition: opacity .25s, transform .35s; }
html[data-theme="dark"] .theme-toggle .icon-light { opacity: 0; position: absolute; transform: scale(.4); }
html[data-theme="light"] .theme-toggle .icon-dark { opacity: 0; position: absolute; transform: scale(.4); }

/* ----- Splash screen ----- */
.splash {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-primary);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s ease, visibility .5s;
}
.splash.hide { opacity: 0; visibility: hidden; }
.splash-inner { text-align: center; }
.splash-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 6vw, 3.5rem); font-weight: 800;
  background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: splash-pulse 1.4s ease-in-out infinite;
  letter-spacing: -0.03em;
}
.splash-bar {
  width: 220px; height: 4px; margin: 1.2rem auto 0;
  background: var(--surface); border-radius: 99px; overflow: hidden;
}
.splash-bar span {
  display: block; height: 100%; width: 40%;
  background: var(--gradient-brand); border-radius: 99px;
  animation: splash-slide 1.2s ease-in-out infinite;
}
@keyframes splash-pulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.04);opacity:.85} }
@keyframes splash-slide { 0%{transform:translateX(-120%)} 100%{transform:translateX(320%)} }

/* ----- Breadcrumb ----- */
.breadcrumb-wrap {
  background: var(--surface); border: 1px solid var(--border);
  padding: .55rem 1rem; border-radius: 99px;
  display: inline-block; margin-bottom: 1.2rem; backdrop-filter: blur(12px);
}
.breadcrumb-wrap .breadcrumb { margin: 0; }
.breadcrumb-wrap .breadcrumb-item a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb-wrap .breadcrumb-item a:hover { color: var(--brand); }
.breadcrumb-wrap .breadcrumb-item.active { color: var(--text-primary); font-weight: 600; }
.breadcrumb-wrap .breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); content: "›"; }

/* ----- Card 3D Tilt ----- */
.tilt {
  transition: transform .25s ease, box-shadow .25s ease;
  transform-style: preserve-3d; will-change: transform;
  position: relative; overflow: hidden;
}
.tilt:hover { box-shadow: var(--shadow-lg); }
.tilt-glow { position: absolute; inset: 0; pointer-events: none; transition: background .15s; mix-blend-mode: overlay; border-radius: inherit; }

/* ----- Badges animados ----- */
.badge-anim {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .3rem .7rem; border-radius: 99px;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: #fff;
  background-size: 200% 200%; animation: badge-shine 3.5s linear infinite;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.badge-anim.novo { background: linear-gradient(120deg, #10b981, #06b6d4, #10b981); }
.badge-anim.promo { background: linear-gradient(120deg, #ef4444, #f59e0b, #ef4444); }
.badge-anim.top { background: linear-gradient(120deg, #f59e0b, #ec4899, #6366f1, #f59e0b); }
@keyframes badge-shine { 0%{background-position:0% 50%} 100%{background-position:200% 50%} }

/* ----- Skeleton loaders ----- */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface-hover) 50%, var(--surface) 100%);
  background-size: 200% 100%;
  animation: sk-shimmer 1.4s ease-in-out infinite;
  border-radius: 8px; color: transparent !important;
}
.skeleton.skeleton-text { height: 14px; margin: .35rem 0; }
.skeleton.skeleton-title { height: 22px; width: 60%; }
.skeleton.skeleton-card { height: 240px; width: 100%; border-radius: var(--radius-lg); }
.skeleton.skeleton-avatar { width: 48px; height: 48px; border-radius: 50%; }
@keyframes sk-shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ----- Back to top ----- */

.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 5.25rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  color: #fff;
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 14px 32px rgba(37, 211, 102, .35);
  font-size: 1.8rem;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 18px 40px rgba(37, 211, 102, .48);
}
@media (max-width: 576px) {
  .whatsapp-float { right: 1rem; bottom: 4.85rem; width: 52px; height: 52px; font-size: 1.65rem; }
}

.back-to-top {
  position: fixed; right: 1.2rem; bottom: 1.2rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gradient-brand); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(99,102,241,.4); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .3s ease; z-index: 999;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px) scale(1.05); }

/* ----- Error pages ----- */
.error-page {
  text-align: center; padding: 3rem 1rem; max-width: 640px; margin: 2rem auto;
}
.error-illustration svg { width: 100%; max-width: 480px; height: auto; filter: drop-shadow(0 12px 30px rgba(0,0,0,.3)); }
.error-page h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.5rem, 4vw, 2.2rem); margin: 1rem 0 .5rem; }
.error-page p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ----- Smooth scroll global ----- */
html { scroll-behavior: smooth; }

/* ----- Reduzir movimento se preferido ----- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ========================================================
   v3.1 — Imagens, Estrelas, Favoritos, Avaliações
   ======================================================== */

/* Imagem dentro do card-produto (lista) */
.produto-thumb-wrap {
  width: 100%; aspect-ratio: 16/10; background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; border-bottom: 1px solid var(--border);
}
.produto-thumb-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.tilt:hover .produto-thumb-wrap img { transform: scale(1.05); }
.produto-thumb-wrap.produto-thumb-empty {
  color: var(--text-muted); font-size: 3rem;
  background: linear-gradient(135deg, var(--surface), var(--surface-hover));
}

/* Hero da página de produto */
.produto-hero {
  width: 100%; max-height: 460px; overflow: hidden; background: var(--surface);
}
.produto-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.produto-hero.produto-hero-empty {
  height: 320px; display: flex; align-items: center; justify-content: center;
  font-size: 5rem; color: var(--text-muted);
}

/* Thumb pequena no admin */
.produto-thumb {
  width: 56px; height: 56px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border);
  background: var(--surface);
}
.produto-thumb-empty {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 1.2rem;
}

/* Imagem grande na página de favoritos */
.produto-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }

/* Estrelas (display) */
.stars { display: inline-flex; gap: 2px; color: #f59e0b; font-size: .95rem; }
.stars.lg { font-size: 1.15rem; }

/* Estrelas (input — radios virando estrelas clicáveis, ordem invertida) */
.rating-input {
  display: inline-flex; flex-direction: row-reverse; gap: 4px;
  font-size: 1.8rem;
}
.rating-input input { display: none; }
.rating-input label {
  cursor: pointer; color: var(--border-strong);
  transition: color .15s, transform .15s;
}
.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label { color: #f59e0b; }
.rating-input label:hover { transform: scale(1.15); }

/* Botão favoritar (coração) */
.fav-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--text-secondary); cursor: pointer; transition: all .25s;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.fav-btn:hover { transform: scale(1.08); border-color: #ec4899; color: #ec4899; }
.fav-btn.is-fav { background: linear-gradient(135deg, #ec4899, #f43f5e); color: #fff; border-color: transparent;
  box-shadow: 0 6px 20px rgba(236,72,153,.4); animation: heart-pop .35s ease; }
@keyframes heart-pop { 0%{transform:scale(1)} 50%{transform:scale(1.25)} 100%{transform:scale(1)} }

/* Card de avaliação */
.review { transition: transform .25s, box-shadow .25s; }
.review:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ========================================================
   v3.3 — Polimento geral (skip-link, footer rico, busca, focus)
   ======================================================== */

/* Skip-link para acessibilidade */
.skip-link {
  position: absolute; top: -40px; left: 8px; z-index: 9999;
  background: var(--primary, #6366f1); color: #fff;
  padding: 8px 14px; border-radius: 0 0 8px 8px;
  text-decoration: none; font-weight: 600; font-size: .9rem;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; outline: 2px solid #fff; }

/* Foco visível e consistente */
:focus-visible {
  outline: 2px solid var(--primary, #6366f1);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Footer enriquecido */
.footer-custom .footer-brand {
  display: inline-flex;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}
.footer-custom .footer-tag {
  color: var(--text-secondary);
  font-size: .98rem;
  line-height: 1.7;
  margin: .75rem 0 1rem;
  max-width: 460px;
}
.footer-trust { display: flex; flex-wrap: wrap; gap: .6rem; }
.footer-trust span {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .75rem; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--text-secondary); font-size: .82rem; font-weight: 600;
}
.footer-trust i { color: var(--brand-3); }
.footer-custom .footer-title {
  font-size: .76rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--text-primary); margin-bottom: .9rem; font-weight: 800;
}
.footer-custom .footer-links { list-style: none; padding: 0; margin: 0; }
.footer-custom .footer-links li { margin-bottom: .55rem; }
.footer-custom .footer-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: .94rem; transition: color .18s, transform .18s, background .18s;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .2rem 0;
}
.footer-custom .footer-links i {
  width: 1.1rem; color: var(--brand); transition: color .18s;
}
.footer-custom .footer-links a:hover { color: var(--text-primary); transform: translateX(4px); }
.footer-custom .footer-links a:hover i { color: var(--brand-3); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--border);
  color: var(--text-muted); font-size: .86rem;
}
.footer-bottom a { color: var(--text-secondary); font-weight: 700; }
.footer-bottom a:hover { color: var(--brand-3); }
@media (max-width: 767px) {
  .footer-panel { padding: 1.5rem; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* Barra de busca elegante */
.search-bar {
  position: relative; max-width: 560px; margin-left: auto; margin-right: auto;
}
.search-bar i.fa-magnifying-glass {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none; z-index: 2;
}
.search-bar input {
  padding-left: 40px; padding-right: 110px;
  border-radius: 999px; height: 44px;
  background: var(--surface, #f8fafc);
  border: 1px solid var(--border, rgba(0,0,0,.08));
  transition: box-shadow .2s, border-color .2s;
}
.search-bar input:focus {
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--primary, #6366f1) 18%, transparent);
  border-color: var(--primary, #6366f1);
}
.search-bar .search-count {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-size: .8rem; color: var(--text-muted);
  background: var(--surface-hover, rgba(0,0,0,.04));
  padding: 3px 10px; border-radius: 999px;
}

/* Tabela: linhas zebradas mais sutis e hover */
.table-wrap .table tbody tr { transition: background .15s; }
.table-wrap .table tbody tr:hover { background: color-mix(in oklab, var(--primary, #6366f1) 6%, transparent); }


/* v10 — Produtos mais premium + edição no admin */
.product-card-modern {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.product-card-modern:hover {
  border-color: color-mix(in oklab, var(--brand) 55%, var(--border-strong));
  box-shadow: var(--shadow-lg), 0 0 0 1px color-mix(in oklab, var(--brand) 25%, transparent);
}
.product-card-modern .produto-thumb-wrap {
  aspect-ratio: 16/11;
  border-bottom-color: var(--border-strong);
}
.product-card-body h5 {
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: .65rem;
}
.product-desc {
  min-height: 3.2rem;
  line-height: 1.55;
}
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .9rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.product-price-label {
  display: block;
  color: var(--text-muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .15rem;
}
.product-buy-btn {
  min-width: 112px;
  border-radius: 999px;
  box-shadow: 0 10px 24px color-mix(in oklab, var(--brand) 28%, transparent);
}
.admin-product-actions .btn {
  border-radius: 10px;
}
.admin-product-edit-panel {
  margin: .35rem 0 1rem;
  padding: 1.2rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--surface-hover), var(--surface));
  box-shadow: var(--shadow-md);
}
.edit-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}
.edit-panel-head span {
  color: var(--text-muted);
  font-size: .9rem;
}
@media (max-width: 767px) {
  .product-card-footer, .edit-panel-head { align-items: flex-start; flex-direction: column; }
  .product-buy-btn { width: 100%; }
}


/* v11 — Filtros, galeria, modal admin e confiança */
.product-filter-panel, .trust-card, .testimonial-card, .faq-section, .trust-strip, .how-it-works, .testimonials {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, var(--surface), rgba(255,255,255,.025));
  border-radius: var(--radius-lg);
}
.product-filter-panel { padding: 1rem; box-shadow: var(--shadow-sm); }
.product-category-badge { border-radius: 999px; margin-left: .35rem; }
.product-mini-gallery { display: flex; gap: .4rem; margin: .35rem 0 .75rem; }
.product-mini-gallery img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; border: 1px solid var(--border-strong); }
.product-detail-gallery > img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--surface); }
.product-gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-top: .8rem; }
.product-gallery-thumbs button { border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: .25rem; cursor: pointer; transition: transform .2s, border-color .2s; }
.product-gallery-thumbs button:hover { transform: translateY(-2px); border-color: var(--brand); }
.product-gallery-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 9px; }
.admin-product-modal { background: var(--bg-secondary); color: var(--text-primary); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); overflow: hidden; }
.admin-product-modal .modal-header, .admin-product-modal .modal-footer { border-color: var(--border); }
.admin-preview-frame { min-height: 280px; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--surface); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.admin-preview-frame img, .admin-image-preview { width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--radius); }
.admin-preview-empty { color: var(--text-muted); display: grid; gap: .5rem; justify-items: center; }
.admin-preview-empty i { font-size: 2.5rem; }
.admin-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .75rem; }
.admin-gallery-item { border: 1px solid var(--border); border-radius: 12px; padding: .45rem; background: var(--surface); cursor: pointer; }
.admin-gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 9px; margin-bottom: .35rem; }
.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 1rem; margin: 1rem 0 3rem; }
.trust-strip div { display: grid; grid-template-columns: auto 1fr; column-gap: .8rem; align-items: center; }
.trust-strip i { grid-row: span 2; color: var(--brand-3); font-size: 1.35rem; }
.trust-strip span, .trust-card p, .testimonial-card p { color: var(--text-muted); margin: 0; }
.how-it-works, .testimonials, .faq-section { padding: 1.5rem; margin-bottom: 3rem; }
.trust-card, .testimonial-card { padding: 1.25rem; height: 100%; }
.trust-card span { color: var(--brand-3); font-weight: 900; font-size: 1.4rem; }
.testimonial-card .stars { color: var(--warning); letter-spacing: .08em; margin-bottom: .75rem; }
.faq-section .accordion-item { background: transparent; color: var(--text-primary); border-color: var(--border); }
.faq-section .accordion-button { background: var(--surface); color: var(--text-primary); box-shadow: none; }
.faq-section .accordion-body { color: var(--text-secondary); }
@media (max-width: 767px) {
  .trust-strip { grid-template-columns: 1fr; }
  .product-gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
}
