.mc-chip {
  position: fixed;
  left: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 16px;
  background: var(--yb-azul);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(48, 77, 90, 0.28), 0 2px 6px rgba(0, 0, 0, 0.12);
  z-index: 9996;
  transition: transform 200ms var(--ease-soft), box-shadow 200ms var(--ease-soft),
              opacity 220ms var(--ease-soft), visibility 0s linear 0s;
}

.mc-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(48, 77, 90, 0.36), 0 4px 8px rgba(0, 0, 0, 0.16);
}

.mc-chip:focus-visible {
  outline: 3px solid rgba(48, 77, 90, 0.45);
  outline-offset: 3px;
}

.mc-chip.mc-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 200ms var(--ease-soft), transform 200ms var(--ease-soft),
              visibility 0s linear 200ms;
}

.mc-chip-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.mc-chip-count {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
}

.mc-chip-sep {
  opacity: 0.55;
  padding: 0 1px;
}

.mc-chip-total {
  font-family: var(--font-display);
  font-weight: 700;
}

@keyframes mcBump {
  0%, 100% { transform: translateY(0) scale(1); }
  40%      { transform: translateY(-3px) scale(1.06); }
}

.mc-chip.mc-bump { animation: mcBump 420ms var(--ease-soft); }

.mc-panel {
  position: fixed;
  left: 24px;
  bottom: 92px;
  width: 380px;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 140px);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 48px rgba(48, 77, 90, 0.24), 0 6px 14px rgba(48, 77, 90, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 9997;
  visibility: hidden;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transform-origin: bottom left;
  transition: opacity 220ms var(--ease-soft), transform 220ms var(--ease-soft),
              visibility 0s linear 220ms;
}

.mc-panel.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 220ms var(--ease-soft), transform 220ms var(--ease-soft),
              visibility 0s linear 0s;
}

.mc-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: var(--yb-azul);
  color: #fff;
}

.mc-panel-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
}

.mc-panel-title-count {
  font-weight: 500;
  opacity: 0.72;
  font-size: 12.5px;
  margin-left: 6px;
}

.mc-panel-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 180ms var(--ease-soft), color 180ms var(--ease-soft);
}

.mc-panel-close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.mc-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
  background: #fff;
}

.mc-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-1);
}

.mc-item:last-child { border-bottom: none; }

.mc-item-thumb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--yb-cream);
  border: 1px solid var(--border-1);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mc-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}

.mc-item-info { min-width: 0; }

.mc-item-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--yb-azul);
  line-height: 1.25;
  margin: 0 0 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mc-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: var(--yb-taupe);
  margin-top: 4px;
}

.mc-item-sku {
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.mc-item-qty {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--yb-verde);
  font-size: 11.5px;
}

.mc-stepper {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--border-2);
  border-radius: 999px;
  overflow: hidden;
  height: 26px;
}

.mc-step {
  border: none;
  background: transparent;
  width: 26px;
  height: 100%;
  color: var(--yb-azul);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: background 160ms var(--ease-soft);
}

.mc-step:hover { background: rgba(48, 77, 90, 0.08); }
.mc-step:active { background: rgba(48, 77, 90, 0.14); }

.mc-step-qty {
  min-width: 26px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  color: var(--yb-azul);
  padding: 0 4px;
  user-select: none;
}

.mc-item-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mc-item-sub {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--yb-azul);
  white-space: nowrap;
}

.mc-item-remove {
  background: transparent;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--yb-taupe);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 180ms var(--ease-soft), color 180ms var(--ease-soft);
}

.mc-item-remove:hover {
  background: rgba(233, 102, 91, 0.12);
  color: var(--yb-coral);
}

.mc-item-remove svg { width: 15px; height: 15px; }

.mc-panel-foot {
  padding: 14px 20px 18px;
  background: var(--yb-cream-warm);
  border-top: 1px solid var(--border-1);
}

.mc-panel-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.mc-panel-total-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--yb-taupe);
}

.mc-panel-total-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--yb-azul);
}

.mc-panel-goto {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: var(--yb-azul);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: background 200ms var(--ease-soft), transform 200ms var(--ease-soft);
}

.mc-panel-goto:hover {
  background: #263e49;
  transform: translateY(-1px);
}

.mc-empty {
  padding: 28px 18px;
  text-align: center;
  color: var(--yb-taupe);
  font-size: 13px;
  margin: 0;
}

@media (max-width: 720px) {
  .mc-chip {
    left: 18px;
    bottom: 18px;
    padding: 10px 16px 10px 14px;
    font-size: 12px;
  }
  .mc-panel {
    left: 18px;
    right: 18px;
    width: auto;
    max-width: none;
    bottom: 78px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mc-chip, .mc-panel, .mc-panel-goto { transition: none; }
  .mc-chip.mc-bump { animation: none; }
}
