/* ===== RESET Y BASE ===== */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(180deg, #f5f7fa, #eef1f5);
  margin: 0;
  padding: 30px;
  overflow-x: hidden;
}

.title {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 40px;
}

/* ===== LAYOUT PRINCIPAL ===== */
.marketplace-layout {
  display: flex;
  gap: 24px;
  padding: 20px;
}

@media (max-width: 991.98px) {
  .marketplace-layout {
    flex-direction: column;
    gap: 28px;
  }
}

/* ===== GRID DE PRODUCTOS ===== */
.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  width: 100%;
}

@media (min-width: 1400px) {
  .marketplace-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 767.98px) {
  .marketplace-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ===== TARJETA DE PRODUCTO ===== */
.product-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

/* IMAGEN */
.product-img {
  position: relative;
  background: #f2f2f2;
  padding-top: 6px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
  transform: scale(1.03);
}

.product-card:hover .product-img img {
  transform: scale(1.08);
}

/* BADGE DE TIENDA */
.badge-store {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #111, #333);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 14px;
  white-space: nowrap;
  z-index: 5;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.4px;
}

/* INFO DEL PRODUCTO */
.product-info {
  padding: 22px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-info h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 12px;
  line-height: 1.3;
  height: 38px;
  overflow: hidden;
}

.price {
  font-size: 20px;
  font-weight: 800;
  color: #111;
  margin-bottom: 14px;
}

/* ===== BOTONES ===== */
.btn-store2,
.btn-store3 {
  display: inline-block;
  color: white;
  border: none;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
  white-space: nowrap;
  margin-top: auto;
  align-self: center;
}

.btn-store2 {
  background: linear-gradient(135deg, #FF4500, #FFA500);
  color: #fff; /* texto en negro para mejor contraste */
  /* ... resto de tus estilos */
}

.btn-store2:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(216, 20, 45, 0.4);
}

.btn-store2:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(216, 20, 45, 0.3);
}

.btn-store3 {
  background: linear-gradient(to right, #f44343, #d8142d);
  box-shadow: 0 3px 8px rgba(216, 20, 45, 0.3);
}

.btn-store3:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(216, 20, 45, 0.4);
}

.btn-store3:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(216, 20, 45, 0.3);
}

/* BOTÓN "VER EN TIENDA" */
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff9900, #ff7a00);
  color: white;
  text-decoration: none;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(255, 122, 0, 0.25);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.2px;
  font-size: 0.95rem;
}

.btn-store:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 122, 0, 0.45);
  color: white;
}

.btn-arrow {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  padding: 2px;
  stroke: white;
  transition: transform 0.2s ease;
}

.btn-store:hover .btn-arrow {
  transform: translateX(4px);
}

/* ===== SIDEBAR / FILTROS ===== */
.filters {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: 90px;
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  max-width: 220px;
}

@media (max-width: 991.98px) {
  .filters {
    width: 100%;
    position: relative;
    top: auto;
    max-width: none;
  }
}

.sidebar-box {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.tiendas-lista {
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 6px;
  background: linear-gradient(180deg, #ffffff, #f9fdfc);
  box-shadow: inset 0 0 0 1px #e6f4ef;
}

/* ===== OTROS ===== */
.results-count {
  text-align: center;
  margin-bottom: 20px;
  color: #555;
  font-size: 14px;
}

.results-count strong {
  color: #000;
}

@media (max-width: 767.98px) {
  .product-card {
    flex-direction: row;
    align-items: flex-start;
    padding: 0;
  }

  .product-img {
    width: 120px; /* ← más grande que antes (era 100px) */
    min-width: 120px;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    margin: 12px;
    overflow: hidden;
    padding-top: 0;
  }

  .product-info {
    padding: 16px 8px 16px 0;
    text-align: left; /* mejor legibilidad en horizontal */
    flex: 1;
    min-width: 0;
  }

  .product-info h3 {
    font-size: 14px;
    height: auto;
    min-height: 40px; /* 2 líneas */
    line-height: 1.4;
  }

  .price {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .btn-store2 {
    font-size: 0.9rem;
    padding: 6px 12px;
  }
}
/* ================================
   HEADER MARKETPLACE (CORREGIDO)
================================ */

/* Reset general */
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.mpx-header {
  width: 100%;
  position: relative;
  z-index: 10;
  font-family: inherit;
  margin: 0;
  padding: 0;
}

/* ---------- BANNER (MÁS ALTO) ---------- */
.mpx-banner {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  padding: 0;
  border-radius: 0;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

/* Imagen para escritorio (por defecto) */
.mpx-banner {
  background-image: url("https://superpromos.xn--promodiseoags-qkb.com/img/bannerejemplo%20escritotio.png");
}

/* Imagen para móviles (ajusta el breakpoint si necesitas otro) */
@media (max-width: 767.98px) {
  .mpx-banner {
    min-height: 400px; /* opcional: un poco menos alto en móvil */
    background-image: url("https://superpromos.xn--promodiseoags-qkb.com/img/bannerejemplo.png");
    background-position: center; /* en móvil, centrar para mejor enfoque */
  }
}


/* ---------- NAV (centrado en móvil, normal en desktop) ---------- */
.mpx-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 20px;
  color: white;
  width: 100%;
  max-width: 1400px; /* límite para no estirarse infinitamente */
  margin: 0 auto; /* centra el nav dentro del banner */
}

/* Logo y menú */
.mpx-logo img {
  height: 100px;
  display: block;
}

.mpx-btn-menu {
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  padding: 0;
}

/* Iconos (carrito, etc.) */
.mpx-actions {
  display: flex;
  gap: 14px;
}

.mpx-icon {
  color: #fff;
  font-size: 22px;
  text-decoration: none;
  position: relative;
}

.mpx-cart .mpx-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #ff7b00;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 50%;
}

/* ---------- BUSCADOR (CENTRADO EN ESCRITORIO) ---------- */
.mpx-search-wrap {
  margin-top: 20px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  padding: 10px 16px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  max-width: 520px;
  width: 90%;
}

.mpx-search-icon {
  font-size: 18px;
  margin-right: 10px;
  color: #555;
}

.mpx-search-input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 15px;
  color: #333;
}

/* ================================
   DESKTOP: ajustes finos
================================ */
@media (min-width: 768px) {
  .mpx-banner {
    min-height: 360px; /* aún más alto en desktop */
  }

  .mpx-nav {
    padding: 32px 40px;
  }

  .mpx-logo img {
    height: 100px;
  }

  .mpx-search-wrap {
    margin-top: 28px;
    /* El buscador ya está centrado por el flex del banner + max-width */
  }
}

/* En móvil, el buscador se mantiene full width */
@media (max-width: 767.98px) {
  .mpx-search-wrap {
    width: calc(100% - 32px);
    max-width: none;
    margin: 16px auto 0;
  }
}

/* === SELECTOR DE ORDEN CON COLORCITO MODERNO === */
label.mb-3.d-block {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 12px !important;
  color: #2d3748;
  display: block;
  text-align: left;
}

label.mb-3.d-block select {
  width: 100%;
  padding: 0.9rem 1.3rem 0.9rem 1.2rem;
  font-size: 1rem;
  font-weight: 500;
  color: #2d3748;
  background-color: #ffffff;

  /* 🎨 Borde neutro por defecto */
  border: 2px solid #cbd5e0;
  border-radius: 12px;

  /* 🖱️ Quitar flecha nativa y poner una linda */
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23718096' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 14px;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  text-align: left;
}

/* ✨ Al pasar el mouse */
label.mb-3.d-block select:hover {
  border-color: #a0aec0;
  background-color: #f8fafc;
}

/* 💙 AL SELECCIONAR (FOCO) — ¡ACÁ ESTÁ EL COLORCITO! */
label.mb-3.d-block select:focus {
  outline: none;
  /* 🌈 Borde con color vibrante + sombra suave */
  border-color: #4299e1; /* azul brillante (puedes cambiarlo) */
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.25); /* glow sutil */
  background-color: #ffffff;
}

/* 📱 Móvil: un poco más grande */
@media (max-width: 767.98px) {
  label.mb-3.d-block select {
    padding: 1rem 1.4rem 1rem 1.3rem;
    font-size: 1.05rem;
  }
}

/* 🔄 Si quieres un color diferente al abrir el menú (en algunos navegadores) */
label.mb-3.d-block select:active {
  border-color: #3182ce;
}

.mpx-filtros-rapidos {
  display: flex;
  gap: 10px;
  padding: 10px 15px;
  justify-content: center;
}

@media (min-width: 768px) {
  .mpx-filtros-rapidos {
    justify-content: flex-start;
    max-width: 1200px;
    margin: auto;
  }
}
.price-offer {
  display: flex;
  flex-direction: column;
}

.old-price {
  text-decoration: line-through;
  color: #94a3b8;
  font-size: 0.9rem;
}

.new-price {
  color: #dc2626;
  font-weight: 700;
  font-size: 1.2rem;
}

.badge-discount {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #dc2626, #f97316);
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 700;
}

.offer-timer {
  margin-top: 6px;
  font-size: 0.75rem;
  color: #475569;
}
.countdown-compact {
  margin-top: 8px;
  text-align: center;
}

.countdown-title {
  font-size: 0.75rem;
  color: #7f1d1d;
  margin-bottom: 4px;
}

.countdown-row {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.cd-box {
  background: #dc2626;
  border-radius: 4px;
  padding: 4px 6px;
  min-width: 42px;
  color: #fff;
}

.cd-box .num {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.cd-box .label {
  font-size: 0.55rem;
  line-height: 1;
}
