/* Sofarium Catálogo ACF - estilos de integración con el HTML actual */
.sf-catalog-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: -88px 0 42px;
  position: relative;
  z-index: 3;
  min-height: 48px;
  pointer-events: none;
}

.sf-catalog-toolbar form {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(21,19,15,0.14);
  background: #fffdf8;
  box-shadow: 0 18px 46px rgba(52,38,25,0.055);
}

.sf-catalog-toolbar label,
.sf-catalog-toolbar .sf-catalog-order-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #5f4c3d;
  font-family: "Raleway", Arial, sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sf-catalog-toolbar select {
  width: auto;
  min-width: 158px;
  min-height: 38px;
  padding: 0 34px 0 12px;
  border: 1px solid rgba(141,114,91,0.28);
  background: #ffffff;
  color: #15130f;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: normal;
  text-transform: none;
}

.sf-catalog-grid .gallery-card {
  cursor: pointer;
}

.sf-catalog-placeholder {
  width: 100%;
  height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6f675d;
  background: #e9e0d4;
  font-family: "Raleway", Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sf-catalog-actions {
  gap: 8px;
}

.sf-catalog-actions .mini-btn {
  margin-right: 0;
}

.sf-catalog-info-btn,
.sf-catalog-info-btn:visited {
  background: #15130f !important;
  color: #ffffff !important;
  border-color: #15130f !important;
  line-height: 1.15;
  text-align: center;
}

.sf-catalog-info-btn:hover,
.sf-catalog-info-btn:focus {
  background: transparent !important;
  color: #15130f !important;
  border-color: #15130f !important;
}

.sf-catalog-lightbox-info,
.sf-catalog-lightbox-info:visited {
  width: 100%;
  margin: 4px 0 22px;
  color: #ffffff !important;
}

.sf-catalog-lightbox-info:hover,
.sf-catalog-lightbox-info:focus {
  color: #15130f !important;
}

.sf-catalog-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.sf-catalog-pagination a {
  min-width: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(21,19,15,0.14);
  background: #fffdf8;
  color: #15130f;
  font-family: "Raleway", Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.sf-catalog-pagination a.active,
.sf-catalog-pagination a:hover {
  background: #15130f;
  color: #fff;
}

.sf-catalog-empty {
  padding: 28px;
  border: 1px solid rgba(21,19,15,0.14);
  background: #fffdf8;
  color: #6f675d;
}

html.sf-catalog-modal-open {
  overflow: hidden;
}

.sf-catalog-lightbox .sf-catalog-tags {
  margin-bottom: 18px;
}

.sf-catalog-lightbox .lightbox-text p {
  margin: 0 0 12px;
}

@media only screen and (max-width: 1180px) {
  .sf-catalog-toolbar {
    margin: -22px 0 30px;
  }
}

@media only screen and (max-width: 860px) {
  .sf-catalog-toolbar {
    justify-content: flex-start;
    margin: 0 0 24px;
    min-height: auto;
  }

  .sf-catalog-toolbar form,
  .sf-catalog-toolbar label,
  .sf-catalog-toolbar .sf-catalog-order-label {
    width: 100%;
  }

  .sf-catalog-toolbar label,
  .sf-catalog-toolbar .sf-catalog-order-label {
    flex-wrap: wrap;
  }

  .sf-catalog-toolbar select {
    width: 100%;
  }
}


/* v1.1.6 · Lightbox: cerrar en esquina superior derecha de la ficha */
.sf-catalog-lightbox .lightbox-panel {
  position: relative;
}

.sf-catalog-lightbox .sf-catalog-close {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  left: auto !important;
  z-index: 40 !important;
}

.sf-catalog-lightbox .lightbox-side {
  padding-top: 72px;
}

@media only screen and (max-width: 860px) {
  .sf-catalog-lightbox .sf-catalog-close {
    top: 12px !important;
    right: 12px !important;
  }

  .sf-catalog-lightbox .lightbox-side {
    padding-top: 58px;
  }
}
