/* Mini-carrito del header (.cart__content). Archivo plano, sin compilar (no hay pipeline de build accesible):
   no toca main.css. Usa clases propias cm-* para no heredar las reglas responsivas viejas de .cart__product.
   Solo se sobreescribe el contenedor .cart__content (posicion/toggle los sigue manejando main.css + store 'dropdown'). */

.cart .cart__content {
  width: 400px;
  max-width: calc(100vw - 32px) !important; /* mismo tope que el carrito viejo: misma geometria en movil */
  background: #fff !important;
  border: 0 !important;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(16, 24, 40, .18), 0 2px 6px rgba(16, 24, 40, .08);
  padding: 0 !important;
  max-height: 80vh;
  overflow: hidden !important;
  top: calc(100% + 10px) !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1a1a1a;
}

.cm-head { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 20px 12px; border-bottom: 1px solid #f0f1f3; }
.cm-head strong { font-size: 16px; color: #111; }
.cm-count { font-size: 12px; color: #8a8f98; }

.cm-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 4px 12px; }
.cm-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: start; padding: 12px 8px; border-bottom: 1px solid #f4f5f7; }
.cm-item:last-child { border-bottom: 0; }
.cm-thumb img { display: block; width: 56px; height: 56px; object-fit: cover; border-radius: 10px; background: #f5f6f8; }
.cm-info { min-width: 0; }
.cm-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; font-weight: 600; line-height: 1.3; color: #1a1a1a !important; text-decoration: none; }
.cm-name:hover { color: rgb(52, 131, 250) !important; }
.cm-sku, .cm-wh { display: block; margin-top: 2px; font-size: 11px; color: #9aa0a6; text-transform: none; }
.cm-qty { display: inline-block; margin-top: 6px; padding: 2px 9px; border-radius: 100px; background: #f5f6f8; font-size: 12px; color: #5f6368; }
.cm-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cm-line { font-size: 14px; color: #111; white-space: nowrap; }
.cm-remove { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #9aa0a6; font-size: 14px; cursor: pointer; transition: background .15s, color .15s; }
.cm-remove:hover { background: #fdecec; color: #b00b1e; }

.cm-foot { padding: 14px 20px 18px; border-top: 1px solid #f0f1f3; background: #fafbfc; }
.cm-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cm-total > span { font-size: 13px; color: #5f6368; }
.cm-total > strong { font-size: 20px; color: #111; }
.cm-total small { margin-left: 6px; padding: 2px 6px; border-radius: 4px; background: #eaf1ff; font-size: 9px; font-weight: 700; letter-spacing: .02em; color: rgb(52, 131, 250); vertical-align: middle; }

.cm-actions { display: flex; gap: 10px; }
.cm-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 14px; border: 1px solid transparent; border-radius: 10px; font-size: 14px; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer; transition: background .15s, filter .15s; }
.cm-btn--ghost { background: #fff; border-color: #dbe7fd; color: rgb(52, 131, 250) !important; }
.cm-btn--ghost:hover { background: #eff5ff; }
.cm-btn--primary { flex: 1.4; background: rgb(52, 131, 250); color: #fff !important; }
.cm-btn--primary:hover { filter: brightness(.94); }

.cm-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 24px 28px; text-align: center; }
.cm-empty i { font-size: 34px; color: #c4c9d0; }
.cm-empty strong { font-size: 15px; color: #1a1a1a; }
.cm-empty .cm-btn { flex: none; margin-top: 6px; padding: 10px 22px; }

@media (max-width: 480px) {
  .cm-head, .cm-foot { padding-left: 16px; padding-right: 16px; }
  .cm-item { grid-template-columns: 48px 1fr auto; gap: 10px; }
  .cm-thumb img { width: 48px; height: 48px; }
}
