/* ONLINESHOP preview parity */
.stp-online-shop-page {
  background: #fbf8f1;
}

.stp-online-shop-page .p-pageHero img {
  object-position: center center;
  filter: brightness(.72);
}

.stp-onlineShop {
  padding-top: 56px;
  padding-bottom: 72px;
}

.stp-onlineShop .l-container,
.stp-onlineShop__links .l-container {
  max-width: 860px;
}

.stp-onlineShop__lead {
  margin: 34px auto 38px;
  text-align: center;
  line-height: 2;
  font-size: 13px;
  letter-spacing: .08em;
  color: #6d6258;
}

.stp-shopGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 24px;
  align-items: stretch;
}

.stp-shopCard {
  position: relative;
  width: 100%;
  min-width: 0;
  background: #fffdf8;
  border: 1px solid rgba(75, 59, 45, .14);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.stp-shopCard:hover {
  transform: translateY(-3px);
  border-color: rgba(205, 18, 25, .32);
  box-shadow: 0 12px 24px rgba(65, 40, 20, .08);
}

.stp-shopCard__link {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
}

.stp-shopCard__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eee9e2;
}

.stp-shopCard__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .35s ease;
}

.stp-shopCard:hover .stp-shopCard__image img {
  transform: scale(1.035);
}

.stp-shopCard__noimage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #c8bdb1;
  font-size: 11px;
  letter-spacing: .12em;
}

.stp-shopCard__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 17px 17px 19px;
}

.stp-shopCard__category {
  margin: 0 0 8px;
  font-size: 11px;
  color: #9b9188;
  letter-spacing: .08em;
}

.stp-shopCard__title {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: .04em;
  color: #231a17;
}

.stp-shopCard__excerpt {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.8;
  color: #6f665f;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stp-shopCard__price {
  margin: auto 0 0;
  color: #cf111b;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .04em;
}

.stp-shopCard__tax {
  font-size: 11px;
  color: #b85b5f;
  font-weight: 400;
  margin-left: 2px;
}

.stp-onlineShop__notes {
  max-width: 740px;
  margin: 38px auto 0;
  padding-left: 1.2em;
  color: #746a62;
  font-size: 12px;
  line-height: 1.9;
}

.stp-onlineShop__empty {
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 1px solid rgba(75, 59, 45, .16);
  color: #8b8076;
  letter-spacing: .08em;
}

.stp-onlineShop__links {
  padding-top: 0;
}

@media (max-width: 900px) {
  .stp-onlineShop .l-container,
  .stp-onlineShop__links .l-container {
    max-width: min(92vw, 720px);
  }

  .stp-shopGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .stp-onlineShop {
    padding-top: 40px;
  }

  .stp-onlineShop__lead {
    text-align: left;
  }

  .stp-shopGrid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

/* v0.81: custom upload product thumbnails on archive
   FileManager images have mixed aspect ratios, so the shop list should fit
   them inside a fixed card frame instead of cropping them. */
.stp-shopCard {
  height: 100%;
}

.stp-shopCard__link {
  height: 100%;
}

.stp-shopCard__image {
  aspect-ratio: 4 / 3;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stp-shopCard__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.stp-shopCard:hover .stp-shopCard__image img {
  transform: none;
}

/* v0.82: make shop card thumbnails use a unified square frame.
   Many FileManager product images are square canvases. A 4:3 frame made
   those images visually narrower than the card, so the archive cards looked
   inconsistent. Keep the card width equal and fit images inside a 1:1 frame. */
.stp-shopGrid {
  align-items: stretch;
}

.stp-shopCard,
.stp-shopCard * {
  box-sizing: border-box;
}

.stp-shopCard {
  width: 100%;
  height: 100%;
}

.stp-shopCard__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.stp-shopCard__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
}

.stp-shopCard:hover .stp-shopCard__image img {
  transform: none;
}
