/* Estilos do carrinho drawer + botões de catálogo (carregados por ecommerce.css) */
#cart-overlay {
  position: fixed; inset: 0; background: rgba(6, 11, 11, .45);
  opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 90;
}
#cart-overlay.show { opacity: 1; pointer-events: auto; }

#cart-drawer {
  position: fixed; top: 0; right: -100%; width: min(400px, 92vw); height: 100vh;
  background: #fff; box-shadow: -8px 0 24px rgba(6, 11, 11, .18);
  display: flex; flex-direction: column; z-index: 100;
  transition: right .25s ease;
}
#cart-drawer.open { right: 0; }
#cart-drawer.open + #cart-overlay, #cart-drawer.open ~ #cart-overlay { opacity: 1; pointer-events: auto; }

#cart-drawer header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-4) var(--space-6); background: var(--ink-900); color: #F7F5EF;
}
.cart-close { background: none; border: none; color: var(--gold-500); font-size: 24px; cursor: pointer; }

.cart-items { flex: 1; overflow-y: auto; padding: var(--space-4); }
.cart-item {
  display: flex; justify-content: space-between; align-items: center;
  border: 1px solid #ECE7D8; border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4); margin-bottom: var(--space-3);
}
.cart-item-info { display: flex; flex-direction: column; gap: 4px; }
.cart-item-controls { display: flex; align-items: center; gap: var(--space-2); }
.cart-item-controls button {
  background: #ECE7D8; border: none; border-radius: var(--radius-sm);
  width: 28px; height: 28px; font-weight: 700; cursor: pointer; color: var(--ink-900);
}
.cart-remove { width: auto !important; height: auto !important; padding: 4px 8px !important; font-size: 11px; }
.cart-empty { color: #908566; text-align: center; padding: var(--space-8) 0; }

#cart-drawer footer { padding: var(--space-4) var(--space-6); border-top: 1px solid #ECE7D8; display: flex; flex-direction: column; gap: var(--space-3); }
.cart-total-row { display: flex; justify-content: space-between; font-size: 18px; }
.cart-checkout { text-align: center; }
.cart-note { font-size: 12px; color: #6F6849; }

#cart-toggle { font-size: 14px; }

/* Botão adicionar nos cards do catálogo */
.btn-add-cart {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold-500); color: var(--ink-900); font-weight: 700;
  border: none; border-radius: var(--radius-md); padding: var(--space-2) var(--space-4);
  cursor: pointer; transition: background .15s ease;
}
.btn-add-cart:hover { background: var(--gold-600); }