/* Frontend Multi-Pages
 * Usa los mismos tokens del tema (app-*) para integrarse visualmente.
 */

/* Fuentes opcionales para widgets (usadas por Carrusel de Categorías) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Montserrat:wght@400;500;600;700;800&family=Nunito:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&family=Rubik:wght@400;500;600;700;800&display=swap');

/* Ocultar título de la página cuando Multi-Pages está activo */
.mcmp-layout-active .entry-title,
.mcmp-layout-active .page-title,
.mcmp-layout-active h1.entry-title,
.mcmp-layout-active h1.page-title,
.mcmp-layout-active .mc-title,
.mcmp-layout-active .wp-block-post-title,
.mcmp-layout-active h1.wp-block-post-title {
  display: none !important;
}

.mcmp-section {
  /* Stack compacto: si querés espacio extra, usá el widget Separador */
  margin: 6px 0;
  padding: 8px 10px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
}

.mcmp-section__header {
  margin: 0 0 6px;
  padding: 0 4px;
}

.mcmp-section__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--app-dark, #140226);
}

/* Categorías: título de la sección (Título del Bloque) centrado para "Por categoría" */
.mcmp-section--category_products .mcmp-section__header{
  text-align: center;
}

/* 📦 Producto individual: precio en oferta (tachado chico + gris) */
.mcmp-section--single_product .mcmp-banner-price del,
.mcmp-section--single_product .mcmp-product-card-single del,
.mcmp-section--single_product .mcmp-product-minimal del {
  color: #94a3b8 !important;
  font-size: 0.75em !important;
  font-weight: 600 !important;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(148, 163, 184, 0.9);
}

.mcmp-section--single_product .mcmp-banner-price ins,
.mcmp-section--single_product .mcmp-product-card-single ins,
.mcmp-section--single_product .mcmp-product-minimal ins {
  text-decoration: none !important;
}

/* Variantes visuales por tipo */
.mcmp-section--banner_slider {
  background: transparent;
  margin-top: 0;
  margin-left: -16px;   /* ocupa todo el ancho como el header */
  margin-right: -16px;
  padding: 0;
  border-radius: 0;
}

/* Si el contenedor del theme mete márgenes entre sections, los neutralizamos */
.mcmp-layout-active .mcmp-section + .mcmp-section{
  margin-top: 6px !important;
}

.mcmp-section--product_carousel,
.mcmp-section--single_product {
  background: transparent;
  margin-top: 2px;
  margin-left: -16px;
  margin-right: -16px;
  padding: 0;
  border-radius: 0;
}

.mcmp-section--categories_carousel{
  background: transparent;
  margin-top: 2px;
  margin-left: -16px;
  margin-right: -16px;
  padding: 0;
  border-radius: 0;
}

.mcmp-section--offers_grid,
.mcmp-section--category_products,
.mcmp-section--separator,
.mcmp-section--brand_grid {
  background: linear-gradient(135deg, rgba(253, 246, 251, 0.96), rgba(231, 238, 255, 0.96));
}

/* Destacados: mismo ancho completo que el carrusel */
.mcmp-section--featured_products {
  background: transparent;
  margin-top: 2px;
  margin-left: -16px;
  margin-right: -16px;
  padding: 0;
  border-radius: 0;
}

/* Para marcas, usar todo el ancho de la pantalla */
.mcmp-section.mcmp-section--brand_grid {
  margin-left: -16px;   /* compensa padding lateral de .container */
  margin-right: -16px;
  padding-left: 16px;
  padding-right: 16px;
}
.mcmp-section.mcmp-section--brand_grid .mcmp-section__header {
  text-align: center;
}
.mcmp-section.mcmp-section--brand_grid .mcmp-section__title {
  margin-left: auto;
  margin-right: auto;
}

.mcmp-section--youtube_video {
  background: transparent;
  margin-top: 2px;
  margin-left: -16px;
  margin-right: -16px;
  padding: 0;
  border-radius: 0;
}

/* Quitar espacios internos “de más” en widgets clave (el Separador manda) */
.mcmp-layout-active .mcmp-banner-slider{
  margin-bottom: 0 !important;
}

/* Ofertas: el render trae márgenes inline grandes; los anulamos para stack compacto */
.mcmp-layout-active .mcmp-section--offers_grid .mcmp-offers-grid-pro,
.mcmp-section--offers_grid .mcmp-offers-grid-pro{
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.mcmp-layout-active .mcmp-section--offers_grid .mcmp-offers-title,
.mcmp-section--offers_grid .mcmp-offers-title{
  margin: 0 0 10px 0 !important;
}
.mcmp-layout-active .mcmp-section--offers_grid .mcmp-offers-timer,
.mcmp-section--offers_grid .mcmp-offers-timer{
  margin: 0 0 10px 0 !important;
}

/* Ofertas: sin “aire” del section (como carruseles). El Separador manda. */
.mcmp-section--offers_grid{
  background: transparent;
  margin-top: 2px;
  margin-left: -16px;
  margin-right: -16px;
  padding: 0;
  border-radius: 0;
}

/* Mobile: aún más compacto */
@media (max-width: 768px) {
  .mcmp-layout-active .mcmp-section + .mcmp-section{
    margin-top: 2px !important;
  }
  .mcmp-layout-active .mcmp-section{
    margin: 2px 0;
    padding: 4px 6px;
    border-radius: 18px;
  }
  /* Respetar los widgets full-width que ya van sin padding */
  .mcmp-section--banner_slider,
  .mcmp-section--product_carousel,
  .mcmp-section--single_product,
  .mcmp-section--featured_products,
  .mcmp-section--categories_carousel,
  .mcmp-section--youtube_video,
  .mcmp-section--offers_grid{
    padding: 0 !important;
    border-radius: 0 !important;
  }

  /* Timer de Ofertas: barra menos alta */
  .mcmp-layout-active .mcmp-section--offers_grid .mcmp-offers-timer,
  .mcmp-section--offers_grid .mcmp-offers-timer{
    padding: 10px 12px !important;
    font-size: 14px !important;
    border-radius: 18px !important;
    margin: 0 0 8px 0 !important;
  }
  .mcmp-layout-active .mcmp-section--offers_grid .mcmp-offers-title,
  .mcmp-section--offers_grid .mcmp-offers-title{
    margin: 0 0 8px 0 !important;
  }
}

/* 📂 Carrusel de categorías */
.mcmp-cats-carousel{
  padding: 10px 16px 6px;
}
.mcmp-cats-carousel__title{
  text-align: center;
  margin: 6px 0 12px;
  letter-spacing: -0.2px;
}
.mcmp-cats-carousel__viewport{
  overflow: hidden;
  width: 100%;
}
.mcmp-cats-carousel__track{
  display: flex;
  gap: 26px;
  align-items: center;
  will-change: transform;
  transform: translate3d(0,0,0);
}
.mcmp-cats-carousel__item{
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  min-width: 110px;
  text-align: center;
}
.mcmp-cats-carousel__thumb{
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.mcmp-cats-carousel__thumb img{
  width: 70px;
  height: 70px;
  object-fit: contain;
  display: block;
}
.mcmp-cats-carousel__thumb-placeholder{
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(148,163,184,0.25), rgba(148,163,184,0.08));
}
.mcmp-cats-carousel__label{
  display: inline-flex; /* clave: permite centrar y aplicar “width” de forma consistente */
  justify-content: center;
  width: 100%;
  text-align: center; /* fallback */
  line-height: 1.1;
  font-family: var(--mcmp-cats-label-font, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif);
  font-size: var(--mcmp-cats-label-size, 15px);
  font-weight: var(--mcmp-cats-label-weight, 700);
  color: var(--mcmp-cats-label-color, #64748b);
  letter-spacing: -0.2px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

/* Efectos */
.mcmp-cats-carousel--effect-smooth .mcmp-cats-carousel__thumb{
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.mcmp-cats-carousel--effect-smooth .mcmp-cats-carousel__item:hover .mcmp-cats-carousel__thumb{
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
}

.mcmp-cats-carousel--effect-float .mcmp-cats-carousel__thumb{
  animation: mcmpCatFloat 2.6s ease-in-out infinite;
}
@keyframes mcmpCatFloat{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-3px); }
}

.mcmp-cats-carousel--effect-glow .mcmp-cats-carousel__thumb{
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10), 0 0 0 rgba(34,197,94,0);
  transition: box-shadow 180ms ease;
}
.mcmp-cats-carousel--effect-glow .mcmp-cats-carousel__item:hover .mcmp-cats-carousel__thumb{
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.18), 0 0 0 4px rgba(34,197,94,0.14);
}

@media (max-width: 768px){
  .mcmp-cats-carousel__track{ gap: 18px; }
  .mcmp-cats-carousel__item{ min-width: 96px; }
  .mcmp-cats-carousel__thumb{ width: 76px; height: 76px; }
  .mcmp-cats-carousel__thumb img{ width: 62px; height: 62px; }
  .mcmp-cats-carousel__label{ padding: 3px 9px; }
}

/* Banners: slider horizontal con scroll nativo (dedo) */
.mcmp-banner-slider {
  overflow: hidden;
  border-radius: 0 0 26px 26px; /* sólo redondeo abajo, como el header */
  box-shadow: none;
  height: 210px; /* altura consistente en móvil, igual que la imagen */
}

.mcmp-banner-track {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
}

.mcmp-banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease-in-out;
}

.mcmp-banner-slide img {
  width: 100%;
  height: 210px; /* altura consistente para todos los banners en móvil */
  border-radius: 0; /* la imagen queda recta, el redondeo lo hace el contenedor */
  display: block;
  object-fit: cover; /* recorta la imagen si no llega o si se pasa */
}

.mcmp-banner-slide.is-active {
  opacity: 1;
}

/* Banner slider effects (fade/zoom/slide) */
.mcmp-banner-slider.mcmp-banner-effect-fade .mcmp-banner-slide{
  transition: opacity 0.45s ease-in-out;
}

.mcmp-banner-slider.mcmp-banner-effect-zoom .mcmp-banner-slide{
  transition: opacity 0.45s ease-in-out, transform 0.6s ease;
  transform: scale(1.03);
}
.mcmp-banner-slider.mcmp-banner-effect-zoom .mcmp-banner-slide.is-active{
  transform: scale(1);
}

.mcmp-banner-slider.mcmp-banner-effect-slide .mcmp-banner-slide{
  transition: opacity 0.35s ease, transform 0.5s ease;
  transform: translateX(0);
}
.mcmp-banner-slider.mcmp-banner-effect-slide[data-slide-dir="forward"] .mcmp-banner-slide.is-prev{
  transform: translateX(-14px);
}
.mcmp-banner-slider.mcmp-banner-effect-slide[data-slide-dir="back"] .mcmp-banner-slide.is-prev{
  transform: translateX(14px);
}

@media (min-width: 900px) {
  .mcmp-banner-slide img {
    height: 260px; /* un poco más alto en pantallas grandes */
  }

  .mcmp-banner-slider {
    height: 260px;
  }
}

/* Carrusel de productos: slider con puntos */
.mcmp-products-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--app-card, #ffffff);
  box-shadow: 0 12px 32px rgba(26, 18, 43, 0.16);
  padding-bottom: 4px; /* más pegado al precio */
}

.mcmp-products-track {
  display: flex;
  gap: 0;
  transition: transform .45s ease-in-out;
}

.mcmp-products-carousel .mcmp-product-card {
  flex: 0 0 33.3333%;
  max-width: none;
  background: transparent;
  box-shadow: none;
}

.mcmp-product-card {
  flex: 0 0 54%;
  max-width: 220px;
  background: var(--app-card, #ffffff);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(26, 18, 43, 0.1);
  overflow: hidden;
}

.mcmp-product-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mcmp-product-card__thumb {
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
}

.mcmp-product-card__thumb img {
  width: 100%;
  display: block;
  object-fit: contain;
  max-height: 150px;
}

.mcmp-product-card__body {
  padding: 6px 8px 6px;
}

.mcmp-product-card__title {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 500;
  color: var(--app-dark, #140226);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mcmp-product-card__price {
  font-size: 14px;
  font-weight: 600;
  color: var(--app-muted, #83629a);
}

/* Producto único: usa la misma tarjeta pero ocupa todo el ancho */
.mcmp-product-single .mcmp-product-card {
  flex: 1;
  max-width: none;
}

/* Grilla de productos (ofertas, destacados, categorías) */
.mcmp-products-grid-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mcmp-products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}


/* Separador: sólo espacio vertical, sin tarjeta visual */
.mcmp-section--separator {
  background: transparent;
  padding: 0;
  margin-top: 4px;
  margin-bottom: 4px;
  border-radius: 0;
}
.mcmp-section--separator .mcmp-separator {
  width: 100%;
}

@media (min-width: 900px) {
  .mcmp-section--product_carousel {
    margin-left: -16px;
    margin-right: -16px;
  }

  .mcmp-products-carousel .mcmp-product-card {
    flex: 0 0 25%;
  }

  .mcmp-products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

}

/* Paginación para grilla de productos */
.mcmp-grid-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.mcmp-grid-page {
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  border-radius: 999px;
  border: none;
  background: rgba(17, 24, 39, 0.08);
  color: var(--app-dark, #140226);
  font-size: 11px;
  cursor: pointer;
}

.mcmp-grid-page.is-active {
  background: #111827;
  color: #fff;
}

.mcmp-grid-page--arrow {
  font-size: 12px;
  font-weight: 600;
}

/* Video */
.mcmp-video iframe,
.mcmp-video .wp-video {
  width: 100%;
  border-radius: 0;
  border: 0;
}

/* Puntos del carrusel */
/* Flechas sutiles para el carrusel de productos */
.mcmp-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.4); /* más transparente */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  color: var(--app-dark, #140226);
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10; /* encima de las cards */
  transition: all 0.3s ease;
}

.mcmp-carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.mcmp-carousel-arrow--prev {
  left: 8px; /* dentro del carrusel */
}

.mcmp-carousel-arrow--next {
  right: 8px; /* dentro del carrusel */
}

/* Grilla de marcas (2 arriba grandes + tira horizontal abajo) */
.mcmp-brand-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
}

.mcmp-brand-row {
  width: 100%;
}

.mcmp-brand-row--top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mcmp-brand-strip {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -16px;
  padding: 0 16px 4px;
  scrollbar-width: none; /* Firefox: oculta barra */
}
.mcmp-brand-strip::-webkit-scrollbar {
  display: none; /* Chrome/Safari: oculta barra */
}

.mcmp-brand-strip-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
}

.mcmp-brand-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  text-decoration: none;
  color: inherit;
  gap: 4px;
}

.mcmp-brand-item__logo {
  background: #ffffff;
  border-radius: 999px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mcmp-brand-item__logo img {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  object-fit: contain;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.mcmp-brand-row--top .mcmp-brand-item__logo {
  padding: 8px;
}

.mcmp-brand-row--top .mcmp-brand-item__logo img {
  width: 144px;
  height: 144px;
}

.mcmp-brand-strip .mcmp-brand-item {
  flex: 0 0 28%;
  min-width: 28%;
}

.mcmp-brand-item__label {
  font-size: 11px;
  font-weight: 500;
  color: var(--app-dark, #140226);
}

/* ========================================
   RESPONSIVE - PC/DESKTOP (>= 768px)
   CARRUSEL HORIZONTAL ÚNICO
   ======================================== */

@media (min-width: 768px) {
  /* TRANSFORMAR en carrusel horizontal único - UNA SOLA LÍNEA */
  .mcmp-brand-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 24px 16px;
    gap: 0;
    background: linear-gradient(90deg, rgba(138, 0, 194, 0.04), rgba(235, 0, 183, 0.04));
    border-radius: 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(138, 0, 194, 0.3) transparent;
  }
  
  .mcmp-brand-grid::-webkit-scrollbar {
    height: 8px;
  }
  
  .mcmp-brand-grid::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .mcmp-brand-grid::-webkit-scrollbar-thumb {
    background: rgba(138, 0, 194, 0.3);
    border-radius: 4px;
  }
  
  .mcmp-brand-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(138, 0, 194, 0.5);
  }
  
  /* FUSIONAR los rows - display: contents hace que actúen como si no existieran */
  .mcmp-brand-row {
    display: contents;
  }
  
  /* Top row: ahora sus hijos van directo al grid */
  .mcmp-brand-row--top {
    display: contents;
    grid-template-columns: none;
  }
  
  /* Strip: display contents para que sus hijos suban de nivel */
  .mcmp-brand-strip {
    display: contents;
    overflow-x: visible;
    margin: 0;
    padding: 0;
  }
  
  .mcmp-brand-strip-track {
    display: contents;
  }
  
  /* TODOS los items del mismo tamaño - ahora son hijos directos del grid */
  .mcmp-brand-item {
    flex: 0 0 auto;
    width: auto;
    margin-right: 20px;
  }
  
  .mcmp-brand-item:last-child {
    margin-right: 0;
  }
  
  .mcmp-brand-item__logo {
    padding: 10px;
  }
  
  .mcmp-brand-item__logo img {
    width: 110px !important;
    height: 110px !important;
  }
  
  /* Forzar mismo tamaño para TODOS (ya no importa si es top o strip) */
  .mcmp-brand-row--top .mcmp-brand-item__logo {
    padding: 10px;
  }
  
  .mcmp-brand-row--top .mcmp-brand-item__logo img {
    width: 110px !important;
    height: 110px !important;
  }
  
  .mcmp-brand-strip .mcmp-brand-item {
    flex: 0 0 auto;
    min-width: auto;
  }
  
  .mcmp-brand-item__label {
    font-size: 13px;
    font-weight: 600;
  }
}

/* PC Grande (>= 1200px): Marcas más grandes */
@media (min-width: 1200px) {
  .mcmp-brand-grid {
    padding: 32px 24px;
  }
  
  .mcmp-brand-item {
    margin-right: 28px;
  }
  
  .mcmp-brand-item__logo img {
    width: 130px !important;
    height: 130px !important;
  }
  
  .mcmp-brand-row--top .mcmp-brand-item__logo img {
    width: 130px !important;
    height: 130px !important;
  }
  
  .mcmp-brand-item__label {
    font-size: 14px;
  }
}

/* ============================================
   NUEVOS WIDGETS
   ============================================ */

/* Text Block */
.mcmp-section--text_block {
  background: transparent;
  padding: 16px 20px;
}

.mcmp-text-block {
  line-height: 1.7;
  font-size: 15px;
  color: var(--app-dark, #140226);
}

.mcmp-text-block p {
  margin: 0 0 12px;
}

.mcmp-text-block h1,
.mcmp-text-block h2,
.mcmp-text-block h3 {
  margin: 16px 0 8px;
  font-weight: 700;
}

.mcmp-text-align-left {
  text-align: left;
}

.mcmp-text-align-center {
  text-align: center;
}

.mcmp-text-align-right {
  text-align: right;
}

/* Image Block */
.mcmp-section--image_block {
  background: transparent;
  padding: 16px 20px;
}

/* Imagen: centrada y sin deformar (3 estilos) */
.mcmp-image-block{
  width: 100%;
}
.mcmp-image-block a{
  display: inline-block;
}
.mcmp-image-block img{
  display:block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(20, 2, 38, 0.12);
}

.mcmp-image-align-left {
  text-align: left;
}

.mcmp-image-align-center {
  text-align: center;
}

.mcmp-image-align-right {
  text-align: right;
}

/* 1) Contener (no recorta, no deforma) */
.mcmp-image-style-contain img{
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: rgba(255,255,255,0.6);
}

/* 2) Cubrir (recorta pero queda pro) */
.mcmp-image-style-cover img{
  width: 100%;
  height: 260px;
  object-fit: cover;
}

/* 3) Original (auto, sin límites agresivos) */
.mcmp-image-style-original img{
  width: auto;
  max-width: 100%;
  max-height: none;
  object-fit: unset;
  background: transparent;
}

/* Imagen + texto al costado (mismo renglón) */
.mcmp-image-with-text{
  display: flex;
  align-items: center;
  gap: 14px;
}
.mcmp-image-with-text a{
  flex: 0 0 auto;
}
.mcmp-image-with-text img{
  max-width: 320px;
}
.mcmp-image-with-text--left{
  flex-direction: row;
}
.mcmp-image-with-text--right{
  flex-direction: row;
}
.mcmp-image-side-text{
  flex: 1 1 auto;
  font-family: var(--mcmp-img-side-font, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif);
  font-size: var(--mcmp-img-side-size, 16px);
  font-weight: var(--mcmp-img-side-weight, 700);
  color: var(--mcmp-img-side-color, #0f172a);
  line-height: 1.15;
  white-space: pre-line;
}

@media (max-width: 768px){
  .mcmp-image-with-text{
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .mcmp-image-with-text img{
    max-width: 100%;
  }
}

@media (max-width: 768px){
  .mcmp-image-style-contain img{ max-height: 320px; }
  .mcmp-image-style-cover img{ height: 220px; }
}

/* HTML Block */
.mcmp-section--html_block {
  background: transparent;
  padding: 16px 20px;
}

.mcmp-html-block {
  width: 100%;
}

/* Button Block */
.mcmp-section--button_block {
  background: transparent;
  padding: 20px;
}

.mcmp-button-align-left {
  text-align: left;
}

.mcmp-button-align-center {
  text-align: center;
}

.mcmp-button-align-right {
  text-align: right;
}

.mcmp-button {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
}

.mcmp-button-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.mcmp-button-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
}

.mcmp-button-secondary {
  background: #f8f9fa;
  color: var(--app-dark, #140226);
  border: 2px solid #e2e8f0;
}

.mcmp-button-secondary:hover {
  background: #e2e8f0;
}

.mcmp-button-outline {
  background: transparent;
  color: #667eea;
  border: 2px solid #667eea;
}

.mcmp-button-outline:hover {
  background: #667eea;
  color: #ffffff;
}

/* Columns Block */
.mcmp-section--columns_block {
  background: transparent;
  padding: 20px;
}

.mcmp-columns-block {
  display: grid;
  gap: 20px;
}

.mcmp-columns-2 {
  grid-template-columns: repeat(2, 1fr);
}

.mcmp-columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

.mcmp-columns-4 {
  grid-template-columns: repeat(4, 1fr);
}

.mcmp-column {
  padding: 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 4px 12px rgba(20, 2, 38, 0.08);
}

@media (max-width: 768px) {
  .mcmp-columns-2,
  .mcmp-columns-3,
  .mcmp-columns-4 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   RESPONSIVE: FIXES MÓVIL
   ============================================ */

/* 0) corta scroll horizontal y aire raro */
html, body{
  width: 100%;
  overflow-x: hidden;
}

/* 1) secciones a ancho completo en movil */
@media (max-width: 768px){
  .container, .elementor-container, .wp-block-group__inner-container{
    max-width: 100% !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  /* el carrusel NO puede dejar overflow para afuera */
  .mcmp-products-carousel, .mcmp-product-carousel, .swiper, .slick-slider{
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
}

/* 2) cards: MUCHO más chicas en móvil */
@media (max-width: 768px){
  /* Carrusel: items MINI en móvil */
  .mcmp-carousel-item{
    flex: 0 0 135px !important; /* MUCHO más pequeño */
    max-width: 135px !important;
  }
  
  .mcmp-product-card{
    border-radius: 12px;
    max-width: 135px !important;
  }

  .mcmp-product-card__thumb{
    height: 150px !important;          /* más compacto */
    overflow: hidden;
    padding: 0 !important;
    line-height: 0;
  }
  .mcmp-product-card__thumb img{
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
  }
  
  /* Efecto hover/active en la imagen */
  .mcmp-product-card:hover .mcmp-product-card__thumb img,
  .mcmp-product-card.is-active .mcmp-product-card__thumb img{
    transform: scale(1.05);
  }

  .mcmp-product-card__title{ 
    line-height: 1.2;
    padding: 0;
    margin: 0 0 8px 0; /* bajar un poco el precio para que no "tape" el título */
    -webkit-line-clamp: 1 !important; /* solo 1 línea */
    line-clamp: 1;
    text-align: center;
    /* Removidos font-size, color y font-weight para que los inline styles funcionen */
  }
  .mcmp-product-card__price{ 
    padding: 0;
    margin: 0;
    line-height: 1.1;
    text-align: center;
    /* Removidos font-size, color y font-weight para que los inline styles funcionen */
  }
  
  /* Body más compacto sin estrellas */
  .mcmp-product-card__body{
    padding: 8px 8px 10px !important;
  }

  /* 📂 Categoría: el layout “viejo” se aplica abajo en un bloque dedicado
     para que quede 2x2 centrado y sin cards gigantes. */
  
  /* Flechas del carrusel más pequeñas en móvil */
  .mcmp-carousel-arrow{
    width: 28px !important;
    height: 28px !important;
    font-size: 18px !important;
  }
  
  /* Título del carrusel más pequeño */
  .mcmp-carousel-title{
    font-size: 18px !important;
    margin-bottom: 12px !important;
  }
  
  /* Contenedor del carrusel más compacto */
  .mcmp-carousel-section{
    padding: 20px 8px !important;
  }
  
  /* Padding del carrusel reducido */
  .mcmp-products-carousel{
    padding: 0 26px !important;
  }
  
  /* Track con espacio al final para el último producto */
  .mcmp-products-track{
    gap: 10px !important;
    padding-right: 20px !important; /* espacio extra al final */
  }
}

/* 2b) Desktop: cards más grandes y profesionales */
@media (min-width: 769px){
  .mcmp-carousel-item{
    flex: 0 0 260px !important;
    max-width: 260px !important;
  }
  
  .mcmp-product-card{
    max-width: 260px !important;
  }
  
  .mcmp-product-card__thumb{
    height: 280px !important;
  }
  
  .mcmp-carousel-arrow{
    width: 45px !important;
    height: 45px !important;
    font-size: 28px !important;
  }
  
  .mcmp-products-carousel{
    padding: 0 50px !important;
  }
}

/* 3) banner full width sin aire lateral */
@media (max-width: 768px){
  .mcmp-banner-slider, .mcmp-section--banner_slider{
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
  }
  .mcmp-banner-slider img, .mcmp-banner-slide img{
    width: 100%;
    height: 210px;          /* altura consistente */
    object-fit: cover;
    object-position: center;
    display: block;
  }
}

/* 4) contenido no debe quedar atras de la barra fija de abajo */
:root{ --bottombar-h: 86px; } /* ajusta a tu barra real */
@media (max-width: 768px){
  body{
    padding-bottom: calc(var(--bottombar-h) + env(safe-area-inset-bottom)) !important;
  }
  .mcmp-banner-slider, .mcmp-section--banner_slider{
    margin-bottom: calc(var(--bottombar-h) + 12px) !important;
  }
}

/* ============================================================
   📂 Categoría (LEGACY LOOK): 2x2 perfecto centrado (como “viejo”)
   - Objetivo: mantener el frontend igual al plugin viejo, sin cards gigantes
   - No toca Ofertas/Carruseles; solo afecta el bloque category_products
   ============================================================ */
.mcmp-section--category_products{
  background: linear-gradient(135deg, rgba(253, 246, 251, 0.96), rgba(231, 238, 255, 0.96));
}

.mcmp-section--category_products .mcmp-products-grid{
  display: grid !important; /* blindaje contra CSS del tema */
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  justify-items: center !important;
}

.mcmp-section--category_products .mcmp-product-card{
  width: 100% !important;
  max-width: 220px !important; /* igual que el “viejo”: evita gigantismo */
}

.mcmp-section--category_products .mcmp-product-card__title{
  margin: 0 0 2px !important;
}

.mcmp-section--category_products .mcmp-product-card__price{
  margin-top: 2px !important; /* baja unos px para que no pise el título */
}

@media (min-width: 900px){
  .mcmp-section--category_products .mcmp-products-grid{
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}


