/* ================================================================
  SELL / INDUSTRY PAGES (shared)
  Common blocks for the sell/* industry pages (sell/beer, ...).
  sell/digital keeps its own sell-digital.css.
================================================================ */

/* Media card: full-bleed photo with the title and text over a fade to
   the section background at the bottom. Title/text reuse .js-cards__title
   and .js-cards__text from base.css. The fade uses --color-background, so
   it follows the surrounding [data-bundle-color] (light on bright/light,
   dark on onyx/carbon). Informative only: no hover, it is not a link. */
.sell-card {
  position: relative;
  isolation: isolate;
  height: 100%;
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--js-radius-xl);
  background: var(--color-background);
}

.sell-card__image {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  width: 100%;
  /* stops short of the bottom edge, which the fade covers anyway, so the
     photo can't bleed through the rounded corners */
  height: 85%;
  object-fit: cover;
}

.sell-card__content {
  display: flex;
  flex-direction: column;
  gap: calc(var(--js-padding) * 0.75);
  padding: calc(var(--js-padding) * 6) calc(var(--js-padding) * 1.5) calc(var(--js-padding) * 1.5);
  background: linear-gradient(to top, var(--color-background) 55%, transparent);
}

.sell-card__content .js-cards__text {
  opacity: 0.8;
}

/* Showcase card: a theme or store screenshot that links out, with an
   optional name below. Used by the "templates" / "stores built with
   Jumpseller" sections. Screenshots are portrait, so the image is cropped
   to 4:5 from the top, where the store header is. */
.sell-showcase {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--js-radius-xl);
  background: var(--color-surface);
  color: inherit;
  text-decoration: none;
  transition: var(--js-transition);
}

.sell-showcase:is(:hover, :focus-visible) {
  transform: translateY(-6px);
  border-color: var(--color-main-op2);
}

.sell-showcase__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
}

.sell-showcase__name {
  padding: var(--js-padding) calc(var(--js-padding) * 1.25);
  font-weight: 600;
}

/* sell/deliver-food: Menu Builder preview (tall SVG, capped like the legacy page) */
.sell-menu-preview {
  max-height: 420px;
  width: auto;
}

/* Store showcase: 3 per row on desktop, one per row below md. Store
   screenshots are ~8:9, so keep that ratio instead of cropping their sides;
   stacked full-width crops get too tall on phones, so go landscape there. */
.sell-showcase--store .sell-showcase__image {
  aspect-ratio: 8 / 9;
}

@media (max-width: 767px) {
  .sell-showcase--store .sell-showcase__image {
    aspect-ratio: 4 / 3;
  }
}

/* Customer review cards (sell/wine): stacked quotes standing in for a
   product photo next to the section copy. */
.sell-reviews {
  display: flex;
  flex-direction: column;
  gap: var(--js-padding);
  width: 100%;
}

.sell-review {
  margin: 0;
  padding: calc(var(--js-padding) * 2);
  border: 1px solid var(--color-border);
  border-radius: var(--js-radius-xl);
  background: var(--color-surface);
  box-shadow: 0 12px 32px -20px var(--color-shadow);
}

.sell-review__stars {
  display: flex;
  gap: 2px;
  color: var(--color-accent);
}

.sell-review__quote {
  margin: var(--js-padding) 0;
  font-size: 20px;
  line-height: 1.5;
  font-style: italic;
}

.sell-review__author {
  font-size: 14px;
  opacity: 0.7;
}
