/* ============================================================
   LUA ACESSÓRIOS — Design System Global
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --brand:        #c9747b;
  --brand-dark:   #a85960;
  --brand-light:  #fdf0f1;
  --brand-mid:    #f4c4c8;
  --gold:         #9b6e2a;
  --gold-light:   #fdf6e3;
  --steel:        #6b7a8d;
  --steel-light:  #f8f3f0;
  --text:         #1a1a2e;
  --text-muted:   #6b7280;
  --surface:      #ffffff;
  --surface-2:    #f8f9fb;
  --border:       #e5e7eb;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08);
  --shadow-md:    0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:    0 12px 40px rgba(0,0,0,.14);
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --radius-xl:    28px;
  --transition:   0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--surface-2);
  color: var(--text);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

/* ── Layout ─────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container--sm { max-width: 600px; margin: 0 auto; padding: 0 20px; }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.navbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.navbar__brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem; font-weight: 700;
  color: var(--gold);
}
.navbar__logo {
  width: 36px; height: 36px; object-fit: contain;
}
.navbar__nav { display: flex; align-items: center; gap: 8px; }
.navbar__link {
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
  transition: all var(--transition);
}
.navbar__link:hover, .navbar__link.active {
  color: var(--brand); background: var(--brand-light);
}
.navbar__cta {
  background: var(--brand); color: white;
  padding: 8px 20px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(200,16,46,.25);
}
.navbar__cta:hover { background: var(--brand-dark); transform: translateY(-1px); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--brand) 0%, #8b0018 60%, #4a0010 100%);
  padding: 64px 0 72px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero__content { position: relative; text-align: center; color: white; }
.hero__badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: white; font-size: 0.8rem; font-weight: 600;
  padding: 6px 16px; border-radius: 999px;
  margin-bottom: 20px; letter-spacing: .05em; text-transform: uppercase;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
}
.hero__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700; margin-bottom: 16px; letter-spacing: -.02em;
}
.hero__title span { color: var(--brand-mid); }
.hero__subtitle {
  font-size: 1.1rem; opacity: .85; max-width: 520px; margin: 0 auto 32px;
}
.hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-hero {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-md);
  font-weight: 600; font-size: 1rem; transition: all var(--transition);
  cursor: pointer; border: none;
}
.btn-hero--primary {
  background: white; color: var(--brand);
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.btn-hero--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.btn-hero--secondary {
  background: rgba(255,255,255,.15); color: white;
  border: 1.5px solid rgba(255,255,255,.3);
  backdrop-filter: blur(8px);
}
.btn-hero--secondary:hover { background: rgba(255,255,255,.25); }

/* ── Stats bar ──────────────────────────────────────────────── */
.stats-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.stats-bar__inner {
  display: flex; justify-content: center; gap: 0;
  padding: 20px 0;
}
.stat {
  text-align: center; padding: 0 32px;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat__number { font-size: 1.5rem; font-weight: 800; color: var(--brand); }
.stat__label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }

/* ── Filtros ────────────────────────────────────────────────── */
.filters {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 64px; z-index: 90;
}
.filters__inner {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 0; overflow-x: auto;
  scrollbar-width: none;
}
.filters__inner::-webkit-scrollbar { display: none; }
.filter-btn {
  white-space: nowrap; padding: 8px 16px;
  border-radius: 999px; border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text-muted);
  font-size: 0.875rem; font-weight: 500;
  cursor: pointer; transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--brand); color: var(--brand); }
.filter-btn.active {
  background: var(--brand); border-color: var(--brand);
  color: white; box-shadow: 0 2px 8px rgba(200,16,46,.3);
}
.search-wrap {
  margin-left: auto; flex-shrink: 0;
  display: flex; align-items: center;
  gap: 8px; position: relative;
}
.search-input {
  padding: 8px 16px 8px 36px;
  border: 1.5px solid var(--border);
  border-radius: 999px; font-size: 0.875rem;
  width: 200px; transition: all var(--transition);
  background: var(--surface-2);
}
.search-input:focus { outline: none; border-color: var(--brand); width: 240px; }
.search-icon {
  position: absolute; left: 12px; color: var(--text-muted);
  pointer-events: none;
}

/* ── Grid de Produtos ───────────────────────────────────────── */
.catalog-section { padding: 32px 0 64px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-title {
  font-size: 1.2rem; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.section-title::before {
  content: ''; display: block;
  width: 4px; height: 20px; background: var(--brand);
  border-radius: 2px;
}
.product-count { font-size: 0.85rem; color: var(--text-muted); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* ── Card de Produto ────────────────────────────────────────── */
.product-card {
  background: var(--surface); border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden; transition: all var(--transition);
  cursor: pointer; position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-mid);
}
.product-card__img {
  aspect-ratio: 1; background: var(--steel-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; position: relative; overflow: hidden;
}
.product-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card__img img { transform: scale(1.06); }
.product-card__img .placeholder-icon { opacity: .4; }
.product-card__body { padding: 14px; }
.product-card__ref {
  font-size: 0.72rem; font-weight: 700;
  color: var(--brand); letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: 4px;
}
.product-card__name {
  font-size: 0.9rem; font-weight: 600; color: var(--text);
  margin-bottom: 6px; line-height: 1.3;
}
.product-card__info {
  font-size: 0.78rem; color: var(--text-muted); margin-bottom: 10px;
}
.product-card__prices { display: flex; flex-direction: column; gap: 3px; margin-bottom: 12px; }
.price-tag {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem;
}
.price-tag__mat { color: var(--text-muted); font-size: 0.75rem; }
.price-tag__val { font-weight: 700; color: var(--text); }
.price-tag--unavailable { opacity: .4; }
.price-tag--unavailable .price-tag__val { font-weight: 400; font-size: 0.72rem; }
.product-card__badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--brand); color: white;
  font-size: 0.65rem; font-weight: 700;
  padding: 3px 8px; border-radius: 999px;
  letter-spacing: .03em; text-transform: uppercase;
}
.btn-add {
  width: 100%; background: var(--brand); color: white;
  border: none; border-radius: var(--radius-sm);
  padding: 9px; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
}
.btn-add:hover { background: var(--brand-dark); }
.btn-add:active { transform: scale(0.98); }

/* ── Carrinho flutuante ─────────────────────────────────────── */
.cart-fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 200;
  background: var(--brand); color: white;
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(200,16,46,.4);
  cursor: pointer; border: none; transition: all var(--transition);
  font-size: 1.4rem;
}
.cart-fab:hover { transform: scale(1.1); background: var(--brand-dark); }
.cart-fab__badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--gold); color: var(--text);
  border-radius: 999px; min-width: 22px; height: 22px;
  font-size: 0.7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px; border: 2px solid white;
}

/* ── Drawer Carrinho ────────────────────────────────────────── */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  z-index: 300; opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
  backdrop-filter: blur(2px);
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 95vw);
  background: var(--surface); z-index: 301;
  transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,.15);
}
.cart-drawer.open { transform: translateX(0); }
.cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.cart-header h2 { font-size: 1.15rem; font-weight: 700; }
.cart-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--steel-light); border: none;
  cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.cart-close:hover { background: var(--border); }
.cart-body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.cart-empty {
  text-align: center; padding: 60px 20px; color: var(--text-muted);
}
.cart-empty p { margin-top: 12px; font-size: 0.9rem; }
.cart-item {
  display: flex; gap: 12px; padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__ref {
  font-size: 0.7rem; font-weight: 700; color: var(--brand);
  text-transform: uppercase; letter-spacing: .06em;
}
.cart-item__mat { font-size: 0.85rem; color: var(--text); margin: 2px 0; }
.cart-item__price { font-size: 0.8rem; color: var(--text-muted); }
.cart-item__controls {
  display: flex; align-items: center; gap: 8px;
}
.qty-btn {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--border); background: none;
  cursor: pointer; font-size: 1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); color: var(--text);
}
.qty-btn:hover { border-color: var(--brand); color: var(--brand); }
.qty-val { font-weight: 700; font-size: 0.9rem; min-width: 24px; text-align: center; }
.cart-item__remove {
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; font-size: 1rem; padding: 4px;
  transition: color var(--transition);
}
.cart-item__remove:hover { color: var(--brand); }
.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.cart-total {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.cart-total__label { font-size: 0.9rem; color: var(--text-muted); }
.cart-total__val { font-size: 1.4rem; font-weight: 800; color: var(--brand); }
.btn-checkout {
  width: 100%; background: var(--brand); color: white;
  border: none; border-radius: var(--radius-md);
  padding: 14px; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: all var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-checkout:hover { background: var(--brand-dark); transform: translateY(-1px); }

/* ── Modal de Produto ───────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 400; display: none; align-items: center; justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface); border-radius: var(--radius-lg);
  max-width: 560px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn .25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.modal__img {
  aspect-ratio: 4/3; background: var(--steel-light);
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; font-size: 4rem;
}
.modal__img img { width: 100%; height: 100%; object-fit: cover; }
.modal__body { padding: 24px; }
.modal__ref {
  font-size: 0.8rem; font-weight: 700; color: var(--brand);
  letter-spacing: .08em; text-transform: uppercase;
}
.modal__title { font-size: 1.3rem; font-weight: 700; margin: 4px 0 8px; }
.modal__meta {
  display: flex; gap: 16px; font-size: 0.82rem; color: var(--text-muted);
  margin-bottom: 20px; flex-wrap: wrap;
}
.modal__meta span { display: flex; align-items: center; gap: 4px; }
.modal__divider { height: 1px; background: var(--border); margin: 16px 0; }
.modal__label { font-size: 0.82rem; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.material-option {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: 8px;
  cursor: pointer; transition: all var(--transition);
}
.material-option:hover:not(.disabled) { border-color: var(--brand); background: var(--brand-light); }
.material-option.selected { border-color: var(--brand); background: var(--brand-light); }
.material-option.disabled { opacity: .45; cursor: not-allowed; }
.material-option__radio { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; }
.material-option.selected .material-option__radio { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 3px white; }
.material-option__name { font-size: 0.88rem; font-weight: 500; flex: 1; padding: 0 10px; }
.material-option__price { font-weight: 700; font-size: 0.92rem; color: var(--brand); }
.material-option__unavail { font-size: 0.75rem; color: var(--text-muted); }
.qty-control {
  display: flex; align-items: center; gap: 12px; margin: 16px 0;
}
.qty-control label { font-size: 0.82rem; font-weight: 700; }
.qty-control .input-qty {
  width: 70px; padding: 8px 12px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  text-align: center; font-weight: 700; font-size: 1rem;
}
.qty-control .input-qty:focus { outline: none; border-color: var(--brand); }
.qty-min { font-size: 0.78rem; color: var(--text-muted); }
.modal__actions { display: flex; gap: 10px; margin-top: 20px; }
.btn-modal-add {
  flex: 1; background: var(--brand); color: white;
  border: none; border-radius: var(--radius-md);
  padding: 13px; font-size: 0.95rem; font-weight: 700;
  cursor: pointer; transition: all var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-modal-add:hover { background: var(--brand-dark); }
.btn-modal-close {
  background: var(--steel-light); color: var(--text);
  border: none; border-radius: var(--radius-md);
  padding: 13px 20px; font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
}
.btn-modal-close:hover { background: var(--border); }

/* ── Formulário de Pedido ───────────────────────────────────── */
.order-page { padding: 40px 0 80px; }
.order-grid {
  display: grid; grid-template-columns: 1fr 380px;
  gap: 24px; align-items: start;
}
@media(max-width:900px) { .order-grid { grid-template-columns: 1fr; } }
.form-card {
  background: var(--surface); border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 28px;
  box-shadow: var(--shadow-sm);
}
.form-card__title {
  font-size: 1.1rem; font-weight: 700; margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; margin-bottom: 6px;
  font-size: 0.82rem; font-weight: 600; color: var(--text);
}
.form-group label span { color: var(--brand); }
.form-control {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.9rem; transition: all var(--transition);
  background: var(--surface);
}
.form-control:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.order-summary-card {
  background: var(--surface); border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 24px;
  box-shadow: var(--shadow-sm); position: sticky; top: 100px;
}
.summary-item {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  font-size: 0.88rem; gap: 8px;
}
.summary-item:last-of-type { border-bottom: none; }
.summary-item__name { color: var(--text); line-height: 1.4; }
.summary-item__val { font-weight: 700; color: var(--brand); white-space: nowrap; }
.summary-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0 0; border-top: 2px solid var(--brand);
  margin-top: 8px;
}
.summary-total__label { font-weight: 700; }
.summary-total__val { font-size: 1.5rem; font-weight: 800; color: var(--brand); }
.btn-submit {
  width: 100%; background: var(--brand); color: white;
  border: none; border-radius: var(--radius-md);
  padding: 15px; font-size: 1rem; font-weight: 700;
  cursor: pointer; margin-top: 20px; transition: all var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-submit:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ── Página de Obrigado ─────────────────────────────────────── */
.thanks-page {
  min-height: 80vh; display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
}
.thanks-card {
  background: var(--surface); border-radius: var(--radius-xl);
  padding: 48px 40px; max-width: 560px; width: 100%;
  text-align: center; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.thanks-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto 24px;
  box-shadow: 0 8px 24px rgba(34,197,94,.3);
}
.thanks-card h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.thanks-card .code {
  background: var(--brand-light); color: var(--brand);
  font-weight: 800; font-size: 1.2rem; padding: 8px 20px;
  border-radius: var(--radius-sm); display: inline-block; margin: 12px 0;
  letter-spacing: .05em;
}
.thanks-card p { color: var(--text-muted); margin-bottom: 28px; line-height: 1.7; }
.btn-wpp {
  display: inline-flex; align-items: center; gap: 8px;
  background: #25d366; color: white;
  padding: 13px 24px; border-radius: var(--radius-md);
  font-weight: 700; font-size: 0.95rem;
  transition: all var(--transition); box-shadow: 0 4px 14px rgba(37,211,102,.3);
  border: none; cursor: pointer;
}
.btn-wpp:hover { background: #20ba5a; transform: translateY(-1px); }
.btn-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-muted); padding: 12px 20px;
  border-radius: var(--radius-md); font-weight: 500;
  margin-top: 12px; transition: all var(--transition);
}
.btn-back:hover { color: var(--brand); background: var(--brand-light); }

/* ── Admin Login ────────────────────────────────────────────── */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 20px;
}
.login-card {
  background: var(--surface); border-radius: var(--radius-xl);
  padding: 48px 40px; max-width: 420px; width: 100%;
  box-shadow: 0 24px 80px rgba(0,0,0,.4);
}
.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo__icon {
  width: 64px; height: 64px; background: var(--brand);
  border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin: 0 auto 12px;
  box-shadow: 0 8px 24px rgba(200,16,46,.35);
}
.login-logo h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 700; color: var(--text);
}
.login-logo p { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.login-error {
  background: #fef2f2; border: 1px solid #fecaca; color: #dc2626;
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 0.875rem; margin-bottom: 16px; display: none;
  border-radius: var(--radius-sm);
}
.btn-login {
  width: 100%; background: var(--brand); color: white;
  border: none; border-radius: var(--radius-md);
  padding: 14px; font-size: 1rem; font-weight: 700;
  cursor: pointer; margin-top: 8px; transition: all var(--transition);
}
.btn-login:hover { background: var(--brand-dark); }
.btn-login:disabled { opacity: .6; cursor: not-allowed; }

/* ── Admin Layout ───────────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px; background: #1a1a2e;
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 50;
}
.sidebar__logo {
  padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,.08);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700; color: white;
  display: flex; align-items: center; gap: 10px;
}
.sidebar__logo .dot { width: 10px; height: 10px; background: var(--brand); border-radius: 50%; }
.sidebar__nav { flex: 1; padding: 16px 12px; }
.sidebar__item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: var(--radius-sm);
  color: rgba(255,255,255,.6); font-size: 0.9rem; font-weight: 500;
  margin-bottom: 2px; transition: all var(--transition);
  cursor: pointer; border: none; background: none; width: 100%; text-align: left;
  text-decoration: none;
}
.sidebar__item:hover { background: rgba(255,255,255,.06); color: white; }
.sidebar__item.active { background: var(--brand); color: white; }
.sidebar__item span { font-size: 1rem; }
.sidebar__bottom { padding: 16px 12px; border-top: 1px solid rgba(255,255,255,.08); }
.admin-main { margin-left: 240px; flex: 1; min-height: 100vh; background: var(--surface-2); }
.admin-topbar {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 0 32px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 40;
}
.admin-topbar h1 { font-size: 1.2rem; font-weight: 700; }
.admin-content { padding: 32px; }

/* ── Stats Cards ────────────────────────────────────────────── */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px; margin-bottom: 28px;
}
.stat-card {
  background: var(--surface); border-radius: var(--radius-md);
  border: 1px solid var(--border); padding: 20px;
  box-shadow: var(--shadow-sm);
}
.stat-card__icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 12px;
}
.stat-card__icon--red { background: var(--brand-light); }
.stat-card__icon--blue { background: #eff6ff; }
.stat-card__icon--green { background: #f0fdf4; }
.stat-card__icon--yellow { background: var(--gold-light); }
.stat-card__val { font-size: 1.8rem; font-weight: 800; color: var(--text); }
.stat-card__label { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

/* ── Tabela Admin ───────────────────────────────────────────── */
.table-card {
  background: var(--surface); border-radius: var(--radius-md);
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.table-header {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.table-header h2 { font-size: 1rem; font-weight: 700; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  background: var(--surface-2); padding: 12px 16px;
  text-align: left; font-size: 0.78rem; font-weight: 700;
  color: var(--text-muted); letter-spacing: .05em;
  text-transform: uppercase; white-space: nowrap;
}
tbody tr { border-bottom: 1px solid var(--border); transition: background var(--transition); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--surface-2); }
tbody td { padding: 13px 16px; font-size: 0.875rem; vertical-align: middle; }

/* ── Badges de Status ───────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.badge::before { content: '●'; font-size: .5rem; }
.badge--pendente { background: #fef9c3; color: #854d0e; }
.badge--confirmado { background: #dbeafe; color: #1e40af; }
.badge--enviado { background: #dcfce7; color: #15803d; }
.badge--cancelado { background: #fee2e2; color: #991b1b; }

/* ── Botões gerais ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 600; cursor: pointer;
  border: none; transition: all var(--transition);
}
.btn--primary { background: var(--brand); color: white; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--secondary { background: var(--steel-light); color: var(--text); }
.btn--secondary:hover { background: var(--border); }
.btn--danger { background: #fee2e2; color: #dc2626; }
.btn--danger:hover { background: #fecaca; }
.btn--sm { padding: 6px 12px; font-size: 0.8rem; }
.btn--icon { padding: 8px; }

/* ── Modal admin ────────────────────────────────────────────── */
.modal-admin {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 500; display: none;
  align-items: flex-start; justify-content: center;
  padding: 32px 20px; overflow-y: auto;
  backdrop-filter: blur(4px);
}
.modal-admin.open { display: flex; }
.modal-admin__box {
  background: var(--surface); border-radius: var(--radius-lg);
  width: 100%; max-width: 600px;
  box-shadow: var(--shadow-lg); margin: auto;
  animation: modalIn .25s ease;
}
.modal-admin__head {
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-admin__head h2 { font-size: 1.05rem; font-weight: 700; }
.modal-admin__body { padding: 24px; }
.modal-admin__foot {
  padding: 16px 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 10px;
}

/* ── Material toggles no admin ──────────────────────────────── */
.material-row {
  display: grid; grid-template-columns: 1fr 140px auto;
  gap: 10px; align-items: center; margin-bottom: 10px;
}
.material-row label { font-size: 0.85rem; font-weight: 500; }
.toggle {
  position: relative; width: 40px; height: 22px;
  display: inline-block;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle__slider {
  position: absolute; inset: 0; cursor: pointer;
  background: var(--border); border-radius: 999px;
  transition: all var(--transition);
}
.toggle__slider::before {
  content: ''; position: absolute;
  width: 16px; height: 16px; border-radius: 50%;
  left: 3px; top: 3px; background: white;
  transition: transform var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle input:checked + .toggle__slider { background: var(--brand); }
.toggle input:checked + .toggle__slider::before { transform: translateX(18px); }

/* ── Toast ──────────────────────────────────────────────────── */
.toast-container {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 1000; display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  background: #1a1a2e; color: white;
  padding: 12px 20px; border-radius: var(--radius-md);
  font-size: 0.875rem; font-weight: 500;
  box-shadow: var(--shadow-lg); animation: toastIn .3s ease;
  display: flex; align-items: center; gap: 8px;
  border-left: 3px solid var(--brand);
  pointer-events: all;
}
.toast--success { border-color: #22c55e; }
.toast--error { border-color: #ef4444; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ── Responsividade ─────────────────────────────────────────── */
@media(max-width:768px) {
  .sidebar { transform: translateX(-100%); transition: transform var(--transition); }
  .sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .admin-content { padding: 20px 16px; }
  .admin-topbar { padding: 0 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .navbar__nav { display: none; }
  .stat { padding: 0 16px; }
}
@media(max-width:480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 48px; }
  .login-card { padding: 32px 24px; }
}

/* ── Loading / Skeleton ─────────────────────────────────────── */
.skeleton {
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--steel-light) 25%, #e9eaec 50%, var(--steel-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card {
  background: var(--surface); border-radius: var(--radius-md);
  border: 1px solid var(--border); overflow: hidden;
}

/* ── Upload de Imagens ──────────────────────────────────────── */
.img-upload-section { margin-top: 20px; }
.img-upload-section__title {
  font-size: 0.85rem; font-weight: 700; margin-bottom: 10px;
  color: var(--text); display: flex; align-items: center; justify-content: space-between;
}
.img-upload-section__title span { color: var(--text-muted); font-weight: 400; font-size: .8rem; }

.img-dropzone {
  border: 2px dashed var(--border); border-radius: var(--radius-md);
  padding: 24px; text-align: center; cursor: pointer;
  transition: all var(--transition); background: var(--surface-2);
  position: relative;
}
.img-dropzone:hover, .img-dropzone.drag-over {
  border-color: var(--brand); background: var(--brand-light);
}
.img-dropzone input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.img-dropzone__icon { font-size: 2rem; margin-bottom: 8px; }
.img-dropzone__text { font-size: 0.85rem; color: var(--text-muted); }
.img-dropzone__text strong { color: var(--brand); }

.img-thumbnails {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 8px; margin-top: 12px;
}
.img-thumb {
  position: relative; aspect-ratio: 1;
  border-radius: var(--radius-sm); overflow: hidden;
  border: 2px solid var(--border); background: var(--surface-2);
}
.img-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--transition);
}
.img-thumb:hover img { transform: scale(1.05); }
.img-thumb__badge {
  position: absolute; top: 4px; left: 4px;
  background: rgba(0,0,0,.6); color: white;
  font-size: .65rem; font-weight: 700;
  padding: 2px 6px; border-radius: 999px;
}
.img-thumb__del {
  position: absolute; top: 4px; right: 4px;
  background: rgba(239,68,68,.9); color: white;
  border: none; border-radius: 50%; width: 22px; height: 22px;
  font-size: .7rem; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition);
}
.img-thumb:hover .img-thumb__del { opacity: 1; }
.img-thumb--loading {
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; animation: pulse 1s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.img-thumb--empty {
  border-style: dashed; display: flex;
  align-items: center; justify-content: center;
  color: var(--border); font-size: 1.5rem;
}

/* ── Galeria no modal do catálogo ───────────────────────────── */
.modal-gallery {
  position: relative; background: var(--surface-2);
  overflow: hidden; border-radius: var(--radius-md) var(--radius-md) 0 0;
  aspect-ratio: 1; min-height: 200px;
  display: flex; align-items: center; justify-content: center;
}
.modal-gallery__img {
  width: 100%; height: 100%; object-fit: contain; transition: opacity .3s;
}
.modal-gallery__no-img { font-size: 4rem; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.45); color: white; border: none;
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.gallery-nav:hover { background: rgba(0,0,0,.7); }
.gallery-nav--prev { left: 8px; }
.gallery-nav--next { right: 8px; }
.gallery-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px;
}
.gallery-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.5); border: none; cursor: pointer;
  transition: background var(--transition);
}
.gallery-dot.active { background: white; }
