/**
 * Ecom Jamones Sellos - estilo propio y minimo de los sellos de calidad, para que se
 * vean bien en cualquier tema. Un tema puede afinarlo redefiniendo estas clases.
 *
 * @author    Ecom Experts <ecomyseo@gmail.com>
 * @copyright 2026 Ecom Experts
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License (AFL 3.0)
 */

/* ---------- el sello: un punto del color y el nombre ---------- */
.ejs-seal {
  --ejs-color: #1b1714;
  --ejs-ink: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ejs-seal__dot {
  flex: 0 0 auto;
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background: var(--ejs-color);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
}

/* macizo: una vitola del color del sello */
.ejs-seal--solid {
  padding: 0.38em 1.1em 0.38em 0.8em;
  background: var(--ejs-color);
  color: var(--ejs-ink);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
  clip-path: polygon(0 0, calc(100% - 0.6em) 0, 100% 50%, calc(100% - 0.6em) 100%, 0 100%);
}

.ejs-seal--solid .ejs-seal__dot {
  background: var(--ejs-ink);
  box-shadow: none;
  opacity: 0.85;
}

/* ---------- etiqueta del producto ---------- */
.ejs-badge {
  display: inline-block;
  margin: 0 0 0.4rem;
  padding: 0.3em 0.7em;
  background: #1b1512;
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ejs-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.6rem;
}

.ejs-card .ejs-seal,
.ejs-card .ejs-badge {
  margin-bottom: 0.25rem;
}

/* ---------- ficha ---------- */
.ejs-product {
  margin: 0 0 1rem;
}

.ejs-product__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0 0 0.5rem;
}

.ejs-product__head .ejs-seal,
.ejs-product__head .ejs-badge {
  margin: 0;
}

.ejs-product__meaning {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  opacity: 0.85;
}

.ejs-product__link {
  margin-left: 0.35em;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  white-space: nowrap;
}

/* ---------- guia de calidades ---------- */
.ejs-guide {
  margin: 2.5rem 0;
}

.ejs-guide--bare {
  margin: 0;
}

.ejs-guide__head {
  max-width: 44rem;
  margin: 0 0 1.75rem;
}

.ejs-guide__title {
  margin: 0 0 0.5rem;
}

.ejs-guide__text {
  margin: 0;
}

.ejs-guide__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ejs-guide__item {
  --ejs-color: #1b1714;
  position: relative;
  padding: 1.5rem 1.25rem 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #ffffff;
  color: #1b1512;
}

.ejs-guide__band {
  position: absolute;
  inset: 0 0 auto 0;
  height: 0.5rem;
  background: var(--ejs-color);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.14);
}

.ejs-guide__label {
  margin: 0 0 0.35rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}

.ejs-guide__name {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  line-height: 1.25;
}

.ejs-guide__meaning {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  opacity: 0.85;
}
