/* Industry overlay — empty on the default fallback theme. Farm and electronics ship their own. */

/* ---- Industry fields on the shopper side -------------------------------------------
   Sell-by-weight, certifications, and the weigh promise. These render only when the
   merchant has actually filled the fields in, so the markup is absent (not just hidden)
   on a store that does not use them. */

.jr-unit-price {
  margin: 0.15rem 0 0;
  font-size: 0.925rem;
  color: var(--jr-text-muted, #495057);
}

.jr-weigh-note {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  margin: 0.6rem 0 0;
  padding: 0.6rem 0.75rem;
  border-radius: 0.6rem;
  background: var(--jr-surface-muted, #f9fafb);
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--jr-text-muted, #495057);
}

.jr-weigh-note svg {
  flex: 0 0 auto;
  margin-top: 0.15rem;
}

.jr-certs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
}

.jr-cert {
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--jr-border, #dfe3e8);
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  color: var(--jr-text-muted, #495057);
  background: var(--jr-surface, #fff);
}

.jr-product__unit {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  color: var(--jr-text-muted, #495057);
}

.jr-certs--sm {
  margin-top: 0.4rem;
}

.jr-certs--sm .jr-cert {
  font-size: 0.6875rem;
  padding: 0.1rem 0.45rem;
}

/* Out-of-season is a state the shopper can act on later, not an error. */
.jr-stock--season {
  color: var(--jr-text-muted, #495057);
}

/* Theme preview: unmistakable, and out of the way of the design being judged. */
.jr-theme-preview-bar {
  position: sticky;
  top: 0;
  z-index: 10000;
  padding: 0.5rem 1rem;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #161c24;
  background: #ffd76e;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

/* ---- Compare ------------------------------------------------------------------------
   The table scrolls inside its own container so a four-product comparison never makes the
   whole page scroll sideways on a phone. */
.jr-compare-scroll {
  overflow-x: auto;
  border: 1px solid var(--jr-border, #dfe3e8);
  border-radius: 0.75rem;
}

.jr-compare {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.jr-compare th,
.jr-compare td {
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--jr-border, #dfe3e8);
}

.jr-compare__label {
  width: 10rem;
  font-weight: 600;
  color: var(--jr-text-muted, #495057);
  background: var(--jr-surface-muted, #f9fafb);
}

.jr-compare__product {
  display: grid;
  gap: 0.35rem;
  text-decoration: none;
  color: inherit;
}

.jr-compare__product img {
  width: 100%;
  max-width: 7rem;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.5rem;
}

/* A row where every product says the same thing tells the shopper nothing; the ones that
   differ are the reason they opened this page. */
.jr-compare__row--differs {
  background: color-mix(in srgb, var(--jr-primary, #0f766e) 6%, transparent);
}

.jr-compare__note {
  margin-top: 0.6rem;
  font-size: 0.8125rem;
}

.jr-compare-bar {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 950;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  transform: translateX(-50%);
  background: var(--jr-card, #fff);
  border: 1px solid var(--jr-border, #dfe3e8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  font-size: 0.85rem;
}

.jr-product__action--compare.is-on {
  color: var(--jr-primary, #0f766e);
}
