body {
  --catalog-accent: #b84500;
  --catalog-accent-hover: #9c3900;
  --catalog-border: #e3e3e3;
  --catalog-muted: #535353;
}

.catalog-primary, .catalog-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: .45rem .75rem;
  border: 1px solid var(--catalog-accent);
  border-radius: 7px;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
}
.catalog-primary { background: var(--catalog-accent); color: #fff; }
.catalog-secondary { background: #fff; color: var(--catalog-accent); }
.catalog-primary:hover, .catalog-card:has(.catalog-card-link:hover) .catalog-primary:not(button) { background: var(--catalog-accent-hover); }
.catalog-secondary:hover { background: #fff2e9; }
.catalog-secondary:disabled { opacity: .6; cursor: wait; }

.catalog-card {
  position: relative;
  min-width: 0;
  border: 1px solid #ededed;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 10px #00000012;
}
.catalog-card-layout { display: flex; flex-direction: column; height: 100%; border-radius: inherit; }
.catalog-card-link:hover { text-decoration: underline; }
.catalog-card-link::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }
.catalog-primary.catalog-buy { position: relative; cursor: pointer; background: #17643c; border-color: #17643c; color: #fff; }
.catalog-primary.catalog-buy:hover:enabled { background: #104c2d; border-color: #104c2d; }
.catalog-primary.catalog-buy:active:enabled { background: #0d3e25; border-color: #0d3e25; }
.catalog-buy:disabled { cursor: wait; }
.catalog-buy-status { font-size: .875rem; color: var(--catalog-muted); }
.catalog-buy-status:empty { position: absolute; }
.catalog-photo {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  padding: 10px;
  background: #fff;
  color: var(--catalog-muted);
  font-size: .85rem;
}
.catalog-card .catalog-photo {
  width: 100%;
  aspect-ratio: 1.14;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}
.catalog-photo img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.catalog-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: .2rem .8rem .8rem;
}
.catalog-brand {
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  margin: 0 0 .35rem;
  padding: .2rem .4rem;
  border-radius: 5px;
  background: #f2f2f2;
  font-size: .78rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.catalog-reference { margin: 0 0 .4rem; color: var(--catalog-muted); font-size: .8rem; overflow-wrap: anywhere; }
.catalog-card-title {
  margin: 0 0 .65rem;
  font-size: .94rem;
  font-weight: 700;
  line-height: 1.32;
  overflow-wrap: anywhere;
}
.catalog-card-offer { display: flex; flex-direction: column; align-items: start; margin-top: auto; }
.catalog-stock {
  margin: 0;
  padding: .25rem .45rem;
  border-radius: 5px;
  background: #eee;
  font-size: .78rem;
  font-weight: 600;
}
.catalog-stock.in-stock { background: #ffcf40; color: #242424; }
.catalog-card-offer .catalog-primary { align-self: stretch; margin-top: .55rem; }
.public-price { color: var(--catalog-accent); font-size: 1.23rem; font-weight: 700; margin: .45rem 0 .15rem; }
.public-note, .public-availability { margin-block: .25rem; }
.public-note { color: var(--catalog-muted); font-size: .85rem; }

.catalog-photo--unavailable {
  background: radial-gradient(ellipse at center, #fff8f1 0%, #faf7f4 52%, #fff 76%);
}

.catalog-photo-placeholder {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  text-align: center;
}

.catalog-photo-placeholder svg {
  width: clamp(64px, 7.5vw, 104px);
  height: auto;
  aspect-ratio: 1;
  max-width: 100%;
  padding: clamp(9px, 1vw, 14px);
  border: 1px solid #eddbcd;
  border-radius: 14px;
  background: #fbefe5;
  color: #9c4a20;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.catalog-photo-caption {
  color: #655e58;
  font-size: .8125rem;
  line-height: 1.25;
}

.catalog-grid-list .catalog-photo-placeholder { gap: 3px; }
.catalog-grid-list .catalog-photo-placeholder svg { width: 42px; padding: 5px; border-radius: 8px; }
.catalog-grid-list .catalog-photo-caption { font-size: .75rem; }

.catalog-card-storefront .catalog-card-pricing { width: 100%; }
.catalog-card-storefront .home-sale-unit { min-height: 1.25em; margin: 2px 0; font-size: .85rem; }
.catalog-card-storefront .public-price { color: #17355b; }
.catalog-card-storefront .catalog-stock { background: #f1f3f5; color: #455263; }
.catalog-card-storefront .catalog-stock.in-stock { background: #eaf5ee; color: #216349; }
.catalog-card-storefront .catalog-stock.on-order { background: #edf3fa; color: #17355b; }

.catalog-card-storefront .home-card-action { display: grid; min-width: 0; align-self: stretch; }
.catalog-card-storefront :is(.catalog-buy, .catalog-consult) {
  min-height: 54px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.catalog-card-storefront .catalog-buy-status {
  position: relative;
  display: block;
  min-height: calc(2.3 * .875rem);
  padding-top: 3px;
}
.catalog-card-storefront .catalog-consult {
  position: relative;
  align-self: stretch;
  margin: .55rem 0 calc(2.3 * .875rem);
  border: 1px solid #17355b;
  background: #fff;
  color: #17355b;
}
.catalog-card-storefront .catalog-consult:hover { background: #edf3fa; }
.catalog-card-storefront :is(.catalog-buy, .catalog-consult):focus-visible {
  outline: 3px solid #17355b;
  outline-offset: 2px;
}
