/* WooCommerce Sucursales - Frontend (v1.4.0) */

.ws-wrap{
  max-width: 1160px;
  margin: 56px auto;
  padding: 0 18px;
}

.ws-head{
  margin-bottom: 26px;
}

.ws-head__title{font-size: 44px;
  line-height: 1.05;
  margin: 0 0 10px;
  letter-spacing: -0.6px;font-weight:900;}

.ws-head__desc{
  margin: 0;
  color: #6b7280;
  font-size: 16px;
  line-height: 1.6;
  max-width: 760px;
}

.ws-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.ws-card{
  background: #fff;
  border: 1px solid rgba(17,24,39,.10);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:none;
  transition: transform .22s ease, box-shadow .22s ease;
}

.ws-card:hover{
  transform: translateY(-3px);
  box-shadow:none;
}

.ws-image{
  position: relative;
  background: #f3f4f6;
}

.ws-image img{
  width: 100%;
  height: 280px;
  object-fit: cover;
  display:block;
}



.ws-badge{
  position:absolute;
  top: 14px;
  left: 14px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .4px;
  border-radius: 999px;
  color: #fff;
  text-transform: uppercase;
  box-shadow: 0 10px 20px rgba(17,24,39,.12);
}

.ws-badge--blue{ background:#1d4ed8; }
.ws-badge--orange{ background:#f97316; }
.ws-badge--green{ background:#10b981; }
.ws-badge--gray{ background:#64748b; }

.ws-body{
  padding: 22px 22px 20px;
}

.ws-title{
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.2px;
  color: var(--ws-name-color, #111827);
}

.ws-info{
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.ws-row{
  display:flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ws-data-color, #4b5563);
  font-size: 14px;
  line-height: 1.55;
}

.ws-ic{
  color: var(--ws-data-color, #4b5563);
  flex: 0 0 auto;
  margin-top: 1px;
  opacity: .88;
}

.ws-ic svg{
  display:block;
}

.ws-tx{
  flex: 1 1 auto;
}

.ws-btn{
  width: 100%;
  display:flex;
  justify-content:center;
  align-items:center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--ws-button-color, #033982);
  color: #fff !important;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
  transition: filter .18s ease, transform .18s ease;
  box-shadow: 0 10px 22px rgba(3,57,130,.18);
}

.ws-btn:hover{
  filter: brightness(.95);
  transform: translateY(-1px);
}

.ws-btn__ic{
  display:flex;
  align-items:center;
  justify-content:center;
}

@media (max-width: 900px){
  .ws-head__title{font-size: 36px;font-weight:900;}
  .ws-grid{ grid-template-columns: 1fr; }
}


/* Badge cuando NO hay imagen */
.ws-badge-inline{
  margin-bottom: 10px;
}

.ws-badge-inline .ws-badge{
  position: static;
  display: inline-block;
  box-shadow: 0 10px 20px rgba(17,24,39,.10);
}


/* Tarjeta sin imagen: línea superior */
.ws-card--noimg{
  border-top: 2px solid rgba(3,57,130,.25);
}

/* Botón sin URL (Próximamente) */
.ws-btn--soon{
  cursor: default;
  user-select: none;
  opacity: .92;
}
.ws-btn--soon:active{ transform:none; }

/* Ordenar por cercanía */
.ws-nearby{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin: -8px 0 24px;
  padding:12px 14px;
  border:1px solid rgba(17,24,39,.10);
  border-radius:14px;
  background:#fff;
}

.ws-nearby__switch{
  display:flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
  user-select:none;
}

.ws-nearby__input{ display:none; }

.ws-nearby__slider{
  width:46px;
  height:26px;
  border-radius:999px;
  background:rgba(17,24,39,.18);
  position:relative;
  flex:0 0 auto;
  transition:background .18s ease;
}

.ws-nearby__slider:after{
  content:'';
  width:20px;
  height:20px;
  border-radius:999px;
  background:#fff;
  position:absolute;
  top:3px;
  left:3px;
  box-shadow:0 3px 10px rgba(0,0,0,.16);
  transition:left .18s ease;
}

.ws-nearby__input:checked + .ws-nearby__slider{
  background:var(--ws-button-color, #033982);
}

.ws-nearby__input:checked + .ws-nearby__slider:after{
  left:23px;
}

.ws-nearby__label{
  font-weight:800;
  color:var(--ws-name-color, #111827);
}

.ws-nearby__msg{
  min-height:20px;
  color:var(--ws-data-color, #4b5563);
  font-size:13px;
  text-align:right;
}

.ws-nearby__msg[data-type="error"]{ color:#b91c1c; }
.ws-nearby__msg[data-type="ok"]{ color:#047857; }

.ws-card--nearest{
  border-color: color-mix(in srgb, var(--ws-button-color, #033982) 42%, transparent);
}

.ws-nearest-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin:0 0 10px;
  padding:5px 9px;
  border-radius:999px;
  background:var(--ws-button-color, #033982);
  color:#fff;
  font-size:12px;
  font-weight:900;
  letter-spacing:.2px;
}

.ws-distance-line{
  font-weight:800;
}

.ws-distance-line .ws-ic{
  width:18px;
  text-align:center;
  font-weight:900;
}

@media (max-width: 700px){
  .ws-nearby{
    flex-direction:column;
    align-items:flex-start;
  }
  .ws-nearby__msg{
    text-align:left;
  }
}
