/* Mba'apo — Módulo D2 (Catálogo de productos) */
.mc-wrap {
  --mc-accent: var(--mbaapo-accent, #1a3a5c);
  --mc-accent-dark: var(--mbaapo-accent-dark, #12283f);
  font-family: inherit;
  color: var(--mbaapo-text, #16202b);
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
}
.mc-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  position: sticky;
  top: 0;
  background: var(--mbaapo-page-bg, #fff);
  padding: 10px 0;
  z-index: 5;
}
.mc-search {
  flex: 1 1 220px;
  padding: 11px 14px;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
}
.mc-search:focus { outline: none; border-color: var(--mc-accent); }
.mc-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.mc-chip {
  flex-shrink: 0;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: var(--mbaapo-text, #16202b);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.mc-chip.mc-active { background: var(--mc-accent); border-color: var(--mc-accent); color: #fff; }

.mc-cat-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mc-accent);
  margin: 28px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--mc-accent);
}
.mc-cat-title:first-child { margin-top: 0; }

.mc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.mc-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.mc-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08); }
.mc-card-img { height: 150px; background-size: cover; background-position: center; background-color: #f1efe9; }
.mc-card-body { padding: 14px 16px; }
.mc-card-brand { font-size: 11px; color: var(--mbaapo-text-light, #8b95a1); font-weight: 600; margin-bottom: 2px; }
.mc-card-name { font-size: 14.5px; font-weight: 700; margin-bottom: 6px; line-height: 1.3; }
.mc-card-price { font-size: 15px; font-weight: 800; color: var(--mc-accent); }

.mc-empty { text-align: center; padding: 48px 12px; color: var(--mbaapo-text-light, #8b95a1); font-size: 14px; }

/* Floating cart button */
.mc-fab {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  background: var(--mc-accent);
  color: #fff;
  border: none;
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  display: none;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 999;
  cursor: pointer;
}
.mc-fab.mc-visible { display: inline-flex; }
.mc-fab-count {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  padding: 2px 9px;
  font-size: 12.5px;
}

/* Overlay + modals */
.mc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 16, 0.6);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
}
.mc-overlay.mc-open { display: flex; }
.mc-modal {
  background: #fff;
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 18px 18px 0 0;
  position: relative;
  animation: mc-slide-up 0.25s ease;
}
@keyframes mc-slide-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (min-width: 640px) {
  .mc-overlay { align-items: center; }
  .mc-modal { border-radius: 18px; }
}
.mc-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: none;
  font-size: 16px;
  cursor: pointer;
  z-index: 2;
}
.mc-modal-img { height: 220px; background-size: cover; background-position: center; background-color: #f1efe9; }
.mc-modal-body { padding: 22px 24px 26px; }
.mc-modal-brand { font-size: 12px; font-weight: 700; color: var(--mbaapo-text-light, #8b95a1); margin-bottom: 4px; }
.mc-modal-name { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.mc-modal-price { font-size: 22px; font-weight: 800; color: var(--mc-accent); margin-bottom: 14px; }
.mc-modal-desc { font-size: 13.5px; color: var(--mbaapo-text-light, #5b6a78); line-height: 1.6; margin-bottom: 16px; }
.mc-specs { list-style: none; padding: 0; margin: 0 0 18px; font-size: 13px; }
.mc-specs li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
.mc-specs li span:first-child { color: var(--mbaapo-text-light, #8b95a1); }
.mc-specs li b { text-align: right; }
.mc-qty-row { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 16px; }
.mc-qty-btn { width: 38px; height: 38px; border-radius: 8px; border: 1.5px solid rgba(0, 0, 0, 0.14); background: #fff; font-size: 18px; cursor: pointer; }
.mc-qty-num { font-size: 17px; font-weight: 700; min-width: 28px; text-align: center; }
.mc-note { width: 100%; padding: 10px 12px; border: 1.5px solid rgba(0, 0, 0, 0.12); border-radius: 8px; font-size: 13.5px; font-family: inherit; margin-bottom: 16px; }
.mc-add-btn {
  width: 100%;
  background: var(--mc-accent);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.mc-cart-items { padding: 4px 24px 0; }
.mc-cart-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
.mc-cart-item-name { font-size: 13.5px; font-weight: 600; flex: 1; }
.mc-cart-item-ctrl { display: flex; align-items: center; gap: 8px; }
.mc-cart-item-ctrl button { width: 26px; height: 26px; border-radius: 6px; border: 1px solid rgba(0, 0, 0, 0.14); background: #fff; cursor: pointer; }
.mc-cart-empty { text-align: center; padding: 30px 0; color: var(--mbaapo-text-light, #8b95a1); font-size: 13.5px; }
.mc-cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-weight: 800;
  font-size: 15px;
}
.mc-cart-cta {
  display: block;
  margin: 0 24px 22px;
  background: #25d366;
  color: #fff;
  text-align: center;
  padding: 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
}
