/* =========================================================
   MITIENDA - STORE LIST RESET FINO
   Reemplaza el bloque anterior de tarjetas
========================================================= */

/* ---------------------------
   BARRA SUPERIOR
---------------------------- */
.wcfmmp-store-lists-sorting{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:16px !important;
  width:100% !important;
  padding:18px 22px !important;
  margin:0 0 28px !important;
  background:#fff !important;
  border:1px solid #e6ebf2 !important;
  border-radius:22px !important;
  box-shadow:0 10px 28px rgba(15,23,42,.05) !important;
  float:none !important;
}

.wcfmmp-store-lists-sorting p,
.wcfmmp-store-lists-sorting .woocommerce-result-count{
  margin:0 !important;
  color:#667085 !important;
  font-size:15px !important;
  font-weight:700 !important;
}

.wcfmmp-store-lists-sorting form,
.wcfmmp-store-lists-sorting .wcfm-woocommerce-ordering{
  margin:0 0 0 auto !important;
  float:none !important;
}

.wcfmmp-store-lists-sorting select{
  min-width:250px !important;
  min-height:46px !important;
  padding:0 14px !important;
  border:1px solid #d7dfeb !important;
  border-radius:14px !important;
  background:#fff !important;
  color:#1f2937 !important;
  font-size:14px !important;
  font-weight:600 !important;
  box-shadow:none !important;
}

@media (max-width: 991px){
  .wcfmmp-store-lists-sorting{
    flex-direction:column !important;
    align-items:stretch !important;
  }

  .wcfmmp-store-lists-sorting form,
  .wcfmmp-store-lists-sorting .wcfm-woocommerce-ordering{
    margin-left:0 !important;
    width:100% !important;
  }

  .wcfmmp-store-lists-sorting select{
    width:100% !important;
    min-width:100% !important;
  }
}

/* ---------------------------
   FILTRO DERECHO
---------------------------- */
aside .widget-title,
aside h2,
aside h3,
.sidebar .widget-title,
.sidebar h2,
.sidebar h3{
  display:none !important;
}

aside .widget,
.sidebar .widget{
  background:#fff !important;
  border:1px solid #e6ebf2 !important;
  border-radius:22px !important;
  padding:18px !important;
  box-shadow:0 10px 28px rgba(15,23,42,.05) !important;
}

aside select,
.sidebar select{
  width:100% !important;
  min-height:46px !important;
  padding:0 14px !important;
  border:1px solid #d7dfeb !important;
  border-radius:14px !important;
  background:#fff !important;
  color:#475467 !important;
  font-size:14px !important;
}

/* ---------------------------
   GRID
---------------------------- */
.wcfmmp-store-wrap{
  display:flex !important;
  flex-wrap:wrap !important;
  margin-left:-14px !important;
  margin-right:-14px !important;
}

.wcfmmp-store-wrap .wcfmmp-single-store{
  width:33.3333% !important;
  padding-left:14px !important;
  padding-right:14px !important;
  margin-bottom:30px !important;
  box-sizing:border-box !important;
}

@media (max-width: 1024px){
  .wcfmmp-store-wrap .wcfmmp-single-store{
    width:50% !important;
  }
}

@media (max-width: 767px){
  .wcfmmp-store-wrap .wcfmmp-single-store{
    width:100% !important;
  }
}

/* ---------------------------
   TARJETA
---------------------------- */
.wcfmmp-single-store .store-wrapper{
  position:relative !important;
  background:#fff !important;
  border:1px solid #e6ebf2 !important;
  border-radius:22px !important;
  overflow:hidden !important;
  box-shadow:0 12px 30px rgba(15,23,42,.08) !important;
  transition:.28s ease !important;
}

.wcfmmp-single-store .store-wrapper:hover{
  transform:translateY(-4px) !important;
  box-shadow:0 18px 40px rgba(15,23,42,.12) !important;
}

.wcfmmp-single-store .store-wrapper::before{
  content:"";
  display:block;
  width:100%;
  height:5px;
  background:linear-gradient(90deg,#0454C4 0%, #0E63D8 45%, #F8A300 100%);
}

/* Cover */
.wcfmmp-single-store .store-content{
  display:block !important;
  position:relative !important;
  padding:0 !important;
  margin:0 !important;
  min-height:auto !important;
  background:none !important;
}

.wcfmmp-single-store .store-info{
  position:relative !important;
  min-height:180px !important;
  margin:0 !important;
  background-size:cover !important;
  background-position:center !important;
  background-repeat:no-repeat !important;
}

.wcfmmp-single-store .store-info::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    180deg,
    rgba(15,23,42,.12) 0%,
    rgba(15,23,42,.24) 45%,
    rgba(15,23,42,.30) 100%
  );
}

/* Footer limpio */
.wcfmmp-single-store .store-footer{
  position:relative !important;
  display:block !important;
  padding:54px 20px 20px !important;
  background:#fff !important;
  border-top:1px solid #eef2f6 !important;
}

/* Quitar spacer viejo */
.wcfmmp-single-store .store-footer > .spacer,
.wcfmmp-single-store .bd_rating .spacer{
  display:none !important;
}

/* Avatar */
.wcfmmp-single-store .store-avatar{
  position:absolute !important;
  left:20px !important;
  top:-38px !important;
  width:78px !important;
  height:78px !important;
  margin:0 !important;
  z-index:3 !important;
}

.wcfmmp-single-store .store-avatar img{
  width:78px !important;
  height:78px !important;
  object-fit:cover !important;
  border-radius:20px !important;
  border:4px solid #fff !important;
  background:#fff !important;
  box-shadow:0 10px 22px rgba(15,23,42,.14) !important;
}

/* Contenido de texto: reset fuerte */
.wcfmmp-single-store .store-data-container,
.wcfmmp-single-store .store-data{
  position:static !important;
  display:block !important;
  width:100% !important;
  margin:0 !important;
  padding:0 !important;
  float:none !important;
  transform:none !important;
  text-align:left !important;
}

/* Nombre */
.wcfmmp-single-store .store-data h2{
  display:block !important;
  margin:0 0 8px !important;
  padding:0 !important;
  font-size:22px !important;
  line-height:1.2 !important;
  font-weight:800 !important;
}

.wcfmmp-single-store .store-data h2 a{
  color:#0f172a !important;
  text-decoration:none !important;
}

.wcfmmp-single-store .store-data h2 a:hover{
  color:#0454C4 !important;
}

/* Rating */
.wcfmmp-single-store .bd_rating{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  margin:0 0 10px !important;
}

.wcfmmp-single-store .wcfmmp-store-rating{
  margin:0 !important;
  transform:none !important;
}

/* Dirección visible */
.wcfmmp-single-store .store-address{
  display:block !important;
  margin:0 0 16px !important;
  color:#64748b !important;
  font-size:14px !important;
  line-height:1.55 !important;
  white-space:normal !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

/* Ocultar email y teléfono */
.wcfmmp-single-store .store-phone{
  display:none !important;
}

/* Botonera */
.wcfmmp-single-store .store-enquiry{
  display:inline-block !important;
  margin:0 10px 0 0 !important;
  vertical-align:top !important;
}

.wcfmmp-single-store .store-enquiry a{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:42px !important;
  padding:0 16px !important;
  border-radius:12px !important;
  background:#f3f6fb !important;
  border:1px solid #dbe4ef !important;
  color:#334155 !important;
  text-decoration:none !important;
  font-size:14px !important;
  font-weight:700 !important;
}

.wcfmmp-single-store .store-enquiry a:hover{
  background:#eaf1fb !important;
  color:#0454C4 !important;
}

.wcfmmp-single-store .wcfmmp-visit-store{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:42px !important;
  padding:0 18px !important;
  border-radius:12px !important;
  background:#0454C4 !important;
  border:1px solid #0454C4 !important;
  color:#fff !important;
  text-decoration:none !important;
  font-size:14px !important;
  font-weight:800 !important;
  vertical-align:top !important;
}

.wcfmmp-single-store .wcfmmp-visit-store:hover{
  background:#0348a8 !important;
  border-color:#0348a8 !important;
}

.wcfmmp-single-store .wcfmmp-visit-store span{
  margin-left:4px !important;
}

/* Móvil */
@media (max-width: 767px){
  .wcfmmp-single-store .store-info{
    min-height:160px !important;
  }

  .wcfmmp-single-store .store-footer{
    padding:50px 16px 18px !important;
  }

  .wcfmmp-single-store .store-avatar{
    left:16px !important;
    top:-34px !important;
    width:72px !important;
    height:72px !important;
  }

  .wcfmmp-single-store .store-avatar img{
    width:72px !important;
    height:72px !important;
    border-radius:18px !important;
  }
}
/* =========================================================
   MITIENDA - nombre y estrellas dentro del cover
========================================================= */

/* El footer sigue siendo la base de avatar + botón */
.wcfmmp-single-store .store-footer{
  position: relative !important;
  min-height: 92px !important;
  padding: 54px 20px 18px !important;
}

/* Subimos el bloque de texto al área de la imagen */
.wcfmmp-single-store .store-data-container{
  position: absolute !important;
  left: 20px !important;
  right: 20px !important;
  top: -128px !important;   /* ajusta este valor si lo quieres más arriba o abajo */
  z-index: 5 !important;
  display: block !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
  float: none !important;
}

/* Nombre */
.wcfmmp-single-store .store-data h2{
  margin: 0 0 8px !important;
  padding: 0 !important;
  font-size: 20px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  text-align: center !important;
}

.wcfmmp-single-store .store-data h2 a{
  color: #fff !important;
  text-decoration: none !important;
  text-shadow: 0 2px 10px rgba(0,0,0,.35) !important;
}

/* Estrellas debajo del nombre */
.wcfmmp-single-store .bd_rating{
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0 !important;
  margin: 0 !important;
}

.wcfmmp-single-store .wcfmmp-store-rating{
  display: inline-block !important;
  float: none !important;
  margin: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: drop-shadow(0 1px 6px rgba(0,0,0,.35));
}

.wcfmmp-single-store .bd_rating .spacer{
  display: none !important;
}

/* Ocultamos lo demás para que la tarjeta quede limpia */
.wcfmmp-single-store .store-address,
.wcfmmp-single-store .store-phone,
.wcfmmp-single-store .store-enquiry{
  display: none !important;
}

/* Un poco más de contraste en el cover para que el texto blanco se lea bien */
.wcfmmp-single-store .store-info::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15,23,42,.12) 0%,
    rgba(15,23,42,.24) 45%,
    rgba(15,23,42,.30) 100%
  );
}

/* Móvil */
@media (max-width: 767px){
  .wcfmmp-single-store .store-data-container{
    left: 16px !important;
    right: 16px !important;
    top: -118px !important;
  }

  .wcfmmp-single-store .store-data h2{
    font-size: 18px !important;
  }
}
/* =========================================================
   MITIENDA - overlay elegante para nombre + estrellas
========================================================= */

/* Contenedor del texto dentro del cover */
.wcfmmp-single-store .store-data-container{
  position: absolute !important;
  left: 50% !important;
  top: -128px !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  z-index: 6 !important;
  width: calc(100% - 40px) !important;
  max-width: 240px !important;
  margin: 0 !important;
  padding: 12px 16px !important;
  text-align: center !important;
  border-radius: 18px !important;
  background: rgba(15,23,42,.50) !important;
}
.wcfmmp-single-store .store-data-container{
  background: rgba(15,23,42,.50) !important;
  border:1px solid rgba(255,255,255,.35) !important;
  border: 1px solid rgba(255,255,255,.20) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.18) !important;
}

/* Nombre */
.wcfmmp-single-store .store-data h2{
  margin: 0 0 8px !important;
  font-size: 20px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  text-align: center !important;
}

.wcfmmp-single-store .store-data h2 a{
  color: #fff !important;
  text-decoration: none !important;
  text-shadow: none !important;
}

/* Estrellas */
.wcfmmp-single-store .bd_rating{
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 !important;
}

.wcfmmp-single-store .wcfmmp-store-rating{
  display: inline-block !important;
  margin: 0 !important;
  filter: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Opcional: hacer el bloque un poco más fino si no hay reviews */
.wcfmmp-single-store .wcfmmp-store-rating[title*="No hay reseñas"],
.wcfmmp-single-store .wcfmmp-store-rating[title*="¡No hay reseñas"]{
  opacity: .92 !important;
}
/* Mantener SIN overlay global en la imagen */
.wcfmmp-single-store .store-info::before,
.wcfmmp-single-store .store-info::after{
  content:none !important;
  display:none !important;
  background:none !important;
}

/* Oscurecer SOLO la cápsula del nombre */
.wcfmmp-single-store .store-data-container{
  background: rgba(15,23,42,.50) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
}

/* Móvil */
@media (max-width: 767px){
  .wcfmmp-single-store .store-data-container{
    top: -118px !important;
    width: calc(100% - 32px) !important;
    max-width: 220px !important;
    padding: 10px 14px !important;
    border-radius: 16px !important;
  }

  .wcfmmp-single-store .store-data h2{
    font-size: 18px !important;
  }
}