/* Mosha Catering — catalog, cart & product-action styles (Productos + Carrito) */
:root {
  --mc-red: #9c080a; --mc-red-dark: #7d0608;
  --mc-ink: #1a1b1f; --mc-ink-soft: #5b5d63;
  --mc-line: #ececec; --mc-bg: #f4f4f4;
}

/* ---- Productos catalog grid ---- */
.mc-prod-wrap { max-width: 1200px; margin: 0 auto; padding: 48px 20px 80px; font-family: Adamina, serif; }
.mc-prod-intro { text-align: center; max-width: 640px; margin: 0 auto 36px; color: var(--mc-ink-soft); font-size: 16px; line-height: 1.6; }

.mc-prod-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.mc-prod-pill {
  appearance: none; border: 1px solid #d8d8d8; background: #fff; color: var(--mc-ink);
  font-family: Adamina, serif; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 9px 18px; border-radius: 999px; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s;
}
.mc-prod-pill:hover { border-color: var(--mc-red); color: var(--mc-red); }
.mc-prod-pill.is-active { background: var(--mc-red); border-color: var(--mc-red); color: #fff; }

.mc-prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
@media (max-width: 991px) { .mc-prod-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .mc-prod-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (max-width: 479px) { .mc-prod-grid { grid-template-columns: 1fr; } }

.mc-prod-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--mc-line);
  border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: box-shadow .3s, transform .3s;
}
.mc-prod-card:hover { box-shadow: 0 18px 40px -18px rgba(0,0,0,.28); transform: translateY(-2px); }
.mc-prod-card.is-hidden { display: none; }

.mc-prod-media { position: relative; aspect-ratio: 1 / 1; background: var(--mc-bg); overflow: hidden; }
.mc-prod-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.mc-prod-card:hover .mc-prod-media img { transform: scale(1.05); }
.mc-prod-media .mc-prod-noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #bbb; font-size: 13px; }

.mc-prod-chip {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(255,255,255,.94); color: var(--mc-red);
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; box-shadow: 0 1px 4px rgba(0,0,0,.12);
}

.mc-prod-body { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 20px; }
.mc-prod-title { font-family: Adamina, serif; font-size: 17px; font-weight: 700; line-height: 1.25; color: var(--mc-ink); margin: 0 0 8px; }
.mc-prod-desc {
  font-size: 13.5px; line-height: 1.55; color: var(--mc-ink-soft); margin: 0; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.mc-prod-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--mc-line); }
.mc-prod-price { font-family: Adamina, serif; font-size: 22px; font-weight: 700; color: var(--mc-red); }

.mc-prod-state { text-align: center; padding: 60px 20px; color: var(--mc-ink-soft); font-size: 16px; }

.mc-prod-skel { background: #fff; border: 1px solid var(--mc-line); border-radius: 16px; overflow: hidden; }
.mc-prod-skel .sk { background: linear-gradient(90deg,#eee 25%,#f5f5f5 37%,#eee 63%); background-size: 400% 100%; animation: mc-sk 1.4s ease infinite; }
.mc-prod-skel .sk-media { aspect-ratio: 1/1; }
.mc-prod-skel .sk-body { padding: 18px; }
.mc-prod-skel .sk-line { height: 12px; border-radius: 6px; margin-bottom: 10px; }
@keyframes mc-sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---- Quantity selector (used on cards and in the cart) ---- */
.mc-qty { display: inline-flex; align-items: center; border: 1px solid #d8d8d8; border-radius: 999px; overflow: hidden; background: #fff; }
.mc-qty-btn {
  appearance: none; border: 0; background: #fff; color: var(--mc-ink);
  width: 32px; height: 34px; font-size: 18px; line-height: 1; cursor: pointer;
  font-family: Adamina, serif; transition: background-color .2s, color .2s;
}
.mc-qty-btn:hover { background: #f2f2f2; color: var(--mc-red); }
.mc-qty-input {
  width: 36px; height: 34px; border: 0; border-left: 1px solid #eee; border-right: 1px solid #eee;
  text-align: center; font-family: Adamina, serif; font-size: 14px; color: var(--mc-ink);
  -moz-appearance: textfield;
}
.mc-qty-input::-webkit-outer-spin-button, .mc-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mc-qty-input:focus { outline: none; }

/* ---- Add-to-cart button on product cards ---- */
.mc-prod-actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.mc-add-btn {
  flex: 1; appearance: none; border: 0; background: var(--mc-red); color: #fff;
  font-family: Adamina, serif; text-transform: uppercase; letter-spacing: .06em; font-size: 12px;
  padding: 10px 14px; border-radius: 11px; cursor: pointer; transition: background-color .3s, opacity .3s;
}
.mc-add-btn:hover { background: var(--mc-red-dark); }
.mc-add-btn.is-added { background: #2e7d32; }
.mc-add-btn:disabled { cursor: default; }

/* ---- Nav cart count badge ---- */
.mc-cart-count {
  display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 5px;
  background: var(--mc-red); color: #fff; border-radius: 999px;
  font-size: 11px; line-height: 18px; text-align: center; vertical-align: middle;
}
.mc-cart-count.is-empty { background: #b9b9b9; }

/* ---- Standalone cart button in the top bar (next to "Cotiza con nosotros") ---- */
/* .menu is position:absolute in the Webflow nav, so group the cart + CTA together
   as one right-aligned flex child; otherwise space-between drifts the cart to center. */
.mc-nav-right { display: flex; align-items: center; }

.mc-cart-btn {
  /* Match the .cat-button3 CTA exactly (44px tall, margin-top:0) so the cart
     button centers with it and never grows the header vs index.html. */
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 44px; margin: 0 0 0 12px; box-sizing: border-box;
  border-radius: 11px; background: #fff; border: 1px solid #d8d8d8; color: var(--mc-ink);
  text-decoration: none; transition: border-color .3s, color .3s;
}
.mc-cart-btn:hover { border-color: var(--mc-red); color: var(--mc-red); }
.mc-cart-btn svg { width: 22px; height: 22px; }
.mc-cart-btn-count {
  position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--mc-red); color: #fff; border-radius: 999px;
  font-family: Adamina, serif; font-size: 11px; line-height: 20px; text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.mc-cart-btn-count.is-empty { display: none; }

/* ---- Checkout area: PayPal (left) / tarjeta vía Stripe (right) ---- */
.mc-cart-pay { margin-top: 26px; }
.mc-cart-pay[hidden] { display: none; }
.mc-pay-title {
  font-family: Adamina, serif; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--mc-ink-soft); text-align: center; margin: 0 0 16px;
}

.mc-pay-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  background: #fff; border: 1px solid var(--mc-line); border-radius: 16px; overflow: hidden;
}
.mc-pay-option { display: flex; flex-direction: column; gap: 16px; padding: 22px 20px; }
.mc-pay-option + .mc-pay-option { border-left: 1px solid var(--mc-line); }
.mc-pay-head { text-align: center; }
.mc-pay-brand { display: block; font-size: 17px; font-weight: 700; color: var(--mc-ink); }
.mc-pay-sub { display: block; font-size: 12px; color: var(--mc-ink-soft); margin-top: 4px; }
/* Bottom-align both columns so the two buttons sit on the same line. */
.mc-pay-body { margin-top: auto; }

/* PayPal buttons fill their container — cap the width and center it. */
#mc-paypal { max-width: 320px; margin: 0 auto; min-height: 45px; }

.mc-stripe-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; max-width: 320px; min-height: 45px; margin: 0 auto; padding: 0 18px;
  appearance: none; border: 0; border-radius: 999px; cursor: pointer;
  background: #635bff; color: #fff;
  font-family: Adamina, serif; font-size: 15px; font-weight: 700; line-height: 1;
  transition: background-color .25s, opacity .25s;
}
.mc-stripe-btn:hover:not(:disabled) { background: #4f47db; }
.mc-stripe-btn:disabled { opacity: .6; cursor: default; }
.mc-stripe-btn svg { width: 20px; height: 20px; flex: none; }

.mc-pay-secure { font-size: 11.5px; color: var(--mc-ink-soft); text-align: center; margin: 10px 0 0; }
.mc-pay-off { font-size: 12.5px; color: var(--mc-ink-soft); text-align: center; margin: 0; }
.mc-pay-err {
  background: #fdf0f0; border: 1px solid #f2d2d2; color: var(--mc-red);
  border-radius: 12px; padding: 12px 16px; margin: 16px 0 0; text-align: center; font-size: 13.5px;
}
.mc-pay-note { font-size: 12.5px; color: var(--mc-ink-soft); margin: 0 0 12px; text-align: right; }
.mc-pay-ok { background: #eef7ee; border: 1px solid #cfe8cf; color: #2e7d32; border-radius: 12px; padding: 18px; text-align: center; font-size: 15px; }

@media (max-width: 767px) {
  .mc-pay-grid { grid-template-columns: 1fr; }
  .mc-pay-option + .mc-pay-option { border-left: 0; border-top: 1px solid var(--mc-line); }
}

/* ---- Carrito page ---- */
.mc-cart-wrap { max-width: 900px; margin: 0 auto; padding: 48px 20px 80px; font-family: Adamina, serif; color: var(--mc-ink); }

.mc-cart-empty { text-align: center; padding: 70px 20px; color: var(--mc-ink-soft); font-size: 16px; }
.mc-cart-empty a { color: var(--mc-red); text-decoration: none; font-weight: 700; }
.mc-cart-empty a:hover { text-decoration: underline; }

.mc-cart-list { display: flex; flex-direction: column; gap: 14px; }
.mc-cart-row {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; align-items: center;
  background: #fff; border: 1px solid var(--mc-line); border-radius: 16px; padding: 14px;
}
.mc-cart-thumb { width: 88px; height: 88px; border-radius: 12px; object-fit: cover; background: var(--mc-bg); display: block; }
.mc-cart-noimg { width: 88px; height: 88px; border-radius: 12px; background: var(--mc-bg); display: flex; align-items: center; justify-content: center; color: #bbb; font-size: 11px; }
.mc-cart-info { min-width: 0; }
.mc-cart-cat { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mc-red); }
.mc-cart-name { font-size: 16px; font-weight: 700; margin: 3px 0 4px; line-height: 1.2; }
.mc-cart-unit { font-size: 13px; color: var(--mc-ink-soft); margin-bottom: 8px; }
.mc-cart-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.mc-cart-line { font-size: 18px; font-weight: 700; color: var(--mc-red); }
.mc-cart-remove {
  appearance: none; border: 0; background: none; color: var(--mc-ink-soft);
  font-size: 12px; cursor: pointer; text-decoration: underline; font-family: Adamina, serif; padding: 0;
}
.mc-cart-remove:hover { color: var(--mc-red); }

.mc-cart-summary { margin-top: 26px; border-top: 2px solid var(--mc-ink); padding-top: 18px; display: flex; flex-direction: column; gap: 16px; }
.mc-cart-totals { display: flex; justify-content: space-between; align-items: baseline; }
.mc-cart-totals .lbl { font-size: 16px; color: var(--mc-ink-soft); }
.mc-cart-totals .val { font-size: 26px; font-weight: 700; color: var(--mc-red); }
.mc-cart-actions { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.mc-btn {
  display: inline-block; font-family: Adamina, serif; text-transform: uppercase; letter-spacing: .06em;
  font-size: 12px; padding: 12px 22px; border-radius: 11px; cursor: pointer; text-decoration: none;
  border: 0; text-align: center; transition: background-color .3s, border-color .3s, color .3s;
}
.mc-btn-outline { background: #fff; border: 1px solid #d8d8d8; color: var(--mc-ink); }
.mc-btn-outline:hover { border-color: var(--mc-red); color: var(--mc-red); }
.mc-btn-primary { background: var(--mc-red); color: #fff; }
.mc-btn-primary:hover { background: var(--mc-red-dark); }

@media (max-width: 479px) {
  .mc-cart-row { grid-template-columns: 64px 1fr; }
  .mc-cart-thumb, .mc-cart-noimg { width: 64px; height: 64px; }
  .mc-cart-right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}
