/**
 * Карточки каталога на витрине shop-gate (ListingCard).
 * Селекторы с body.shop-storefront — перебивают style_4 на mobile.
 */
body.shop-storefront {
  --mv-accent: #8b7fd6;
  --mv-accent-strong: #272238;
  --mv-accent-tint: #8b7fd61f;
  --shop-btn-bg: var(--mv-accent-strong);
  --shop-link-color: var(--theme-color, #0f8fac);
}

body.shop-storefront .shop-page .product-card,
body.shop-storefront .product-slider-shop .product-card,
body.shop-storefront .swiper-slide .product-card,
body.shop-storefront .grid-section .product-card {
  background: #fff;
  border: 1px solid #00000012;
  border-radius: 0 0 var(--shop-radius-card, 14px) var(--shop-radius-card, 14px);
  overflow: hidden;
  flex-direction: column;
  display: flex;
  height: 100%;
  min-width: 0;
  max-width: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body.shop-storefront .product-slider-shop .swiper-wrapper {
  align-items: stretch !important;
}

body.shop-storefront .product-slider-shop .swiper-slide {
  height: auto;
  display: flex;
  align-self: stretch;
  min-width: 0;
  box-sizing: border-box;
}

body.shop-storefront .product-slider-shop .swiper-slide > .product-card {
  width: 100%;
  min-width: 0;
}

body.shop-storefront .product-slider-shop .swiper-slide.d-flex {
  height: auto;
  align-items: stretch;
}

body.shop-storefront .shop-page .view-option.grid-section {
  display: grid !important;
  align-items: stretch !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 1.25rem 0.75rem;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
}

@media (min-width: 1200px) {
  body.shop-storefront .shop-page .grid-section.row-cols-xl-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1.75rem 1.25rem;
  }
}

body.shop-storefront .shop-page .grid-section > * {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  align-self: stretch !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 100%;
  height: auto;
  flex: none !important;
  margin-top: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.shop-storefront .shop-page .grid-section > .catalog-grid-cell {
  width: 100% !important;
  max-width: 100% !important;
  height: 100%;
  min-height: 100%;
}

body.shop-storefront .shop-page .grid-section > * > .product-card,
body.shop-storefront .shop-page .grid-section > .d-flex > .product-card {
  flex: 1 1 auto !important;
  height: 100% !important;
  width: 100%;
  min-width: 0;
  min-height: 0;
}

@media (hover: hover) {
  body.shop-storefront .shop-page .product-card:hover,
  body.shop-storefront .product-slider-shop .product-card:hover,
  body.shop-storefront .grid-section .product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px #0000001a;
  }
}

body.shop-storefront .product-card .img-box.mv-square {
  width: 100%;
  max-width: 100%;
  padding-top: 100%;
  background-color: #000;
  position: relative;
  overflow: hidden;
  border-radius: 0 !important;
}

body.shop-storefront .product-card .img-box.mv-square img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  border-radius: 0 !important;
}

body.shop-storefront .product-card .content-box {
  flex-direction: column;
  flex: 1 1 auto;
  display: flex;
  padding: 0.8rem 0.9rem 1rem !important;
  margin-bottom: 0 !important;
  min-width: 0;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
}

body.shop-storefront .product-card .content-box > a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  text-align: center;
  min-width: 0;
  min-height: 0;
}

body.shop-storefront .product-card .content-box > a > p.product-genre-line {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5c5c5c !important;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin: 0 0 0.2rem !important;
  font-size: 0.72rem !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  overflow: hidden;
}

body.shop-storefront .product-card .product-title {
  margin: 0 0 0.2rem !important;
  width: 100%;
  display: block !important;
}

body.shop-storefront .product-card .product-title strong {
  color: #262834 !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal !important;
  word-break: break-word;
}

body.shop-storefront .product-card .product-artist-line {
  margin: 0 0 0.35rem !important;
  display: block !important;
}

body.shop-storefront .product-card .product-artist-line small,
body.shop-storefront .product-card .product-title small {
  color: #5a5a5a !important;
  font-size: 0.82rem !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  display: block !important;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  width: 100%;
}

body.shop-storefront .product-card .edition-block {
  margin: 0.35rem 0 0 !important;
  padding: 0;
  width: 100%;
  display: block !important;
  text-align: center;
}

body.shop-storefront .product-card .edition-block .single-line {
  color: #4f4f4f !important;
  font-size: 0.78rem !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: block !important;
  overflow: hidden;
  min-height: 1.45em;
  margin: 0;
}

body.shop-storefront .product-card .content-box span.price {
  color: #1f2937 !important;
  margin: 0.5rem 0 0 !important;
  font-size: clamp(0.82rem, 3.4vw, 1.05rem) !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.15rem;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center !important;
  line-height: 1.35;
  margin-top: auto !important;
  padding-top: 0.35rem;
  align-self: center;
}

body.shop-storefront .product-card .content-box > a span.price {
  margin-top: auto !important;
}

body.shop-storefront .product-card .cond-badge {
  color: #635d78 !important;
  font-size: 0.75rem !important;
  font-weight: 400 !important;
  white-space: nowrap;
  margin-left: 0.2rem;
}

body.shop-storefront .product-card .mv-cart-row {
  margin-top: auto !important;
  padding-top: 0.55rem;
  padding-bottom: 0.05rem;
  min-height: 42px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  width: 100%;
  text-align: center;
  overflow: hidden;
  flex-shrink: 0;
}

body.shop-storefront .product-card .mv-cart-row > .addtocart-btn {
  flex: 0 0 auto;
}

body.shop-storefront .product-card .content-box > div:last-child {
  margin-top: auto;
  padding-top: 0.15rem;
  min-height: 0 !important;
}

body.shop-storefront .product-card .mv-cart-row .btn-solid.addtocart-btn,
body.shop-storefront .product-card .mv-cart-row .addtocart-btn {
  width: 100%;
  max-width: 100%;
  justify-content: center;
  align-items: center;
  display: inline-flex !important;
  gap: 0.35rem;
  white-space: normal !important;
  text-align: center;
  line-height: 1.25 !important;
  border-radius: var(--shop-radius-btn, 10px) !important;
  min-height: 38px !important;
  padding: 0.45rem 0.65rem !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #fff !important;
  background-color: var(--shop-btn-bg, var(--mv-accent-strong)) !important;
  border: 0 !important;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--shop-btn-bg, #272238) 18%, transparent);
  position: relative;
  margin-bottom: 0 !important;
}

body.shop-storefront .product-card .mv-cart-row .addtocart-btn::after,
body.shop-storefront .product-card .mv-cart-row .addtocart-btn::before,
body.shop-storefront .product-card .mv-cart-row .btn-solid.addtocart-btn::after,
body.shop-storefront .product-card .mv-cart-row .line-none::after {
  display: none !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
}

body.shop-storefront .product-card .mv-cart-row .addtocart-btn:hover {
  background-color: color-mix(in srgb, var(--shop-btn-bg, #272238) 82%, #fff) !important;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--shop-btn-bg, #8b7fd6) 30%, transparent);
  color: #fff !important;
}

body.shop-storefront .product-card .mv-cart-row .addtocart-btn svg.feather {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
}

body.shop-storefront .product-card .mv-cart-row .btn-solid.btn-sm.addtocart-btn.mv-cart-btn-hidden,
body.shop-storefront .product-card .mv-cart-row a.addtocart-btn.mv-cart-btn-hidden {
  display: none !important;
}
