/**
 * Карточка товара на витрине магазина (shop-gate) — layout как test.marketvinila.ru/product.
 * Цвета: --theme-color, --shop-link-color, --shop-btn-bg (ShopStorefrontTheme).
 */
body.shop-storefront .product-page {
  background: #f4f3f8 !important;
  padding-top: clamp(12px, 2vw, 20px);
  padding-bottom: clamp(34px, 3.6vw, 48px);
  overflow-x: hidden;
  max-width: 100%;
}

body.shop-storefront .product-page .container-lg {
  overflow-x: hidden;
}

body.shop-storefront .product-page .view-product {
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
  min-width: 0;
}

body.shop-storefront .product-page .shop-vitrine-product-media {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

body.shop-storefront .product-page .shop-vitrine-product-media .row {
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
}

body.shop-storefront .product-page .product-media-stack {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

body.shop-storefront .product-page .breadcrumb-wrap {
  margin-bottom: 0.75rem;
}

body.shop-storefront .product-page .product-detail-box,
body.shop-storefront .product-page .sidebar-box,
body.shop-storefront .product-page .product-media-stack {
  box-shadow: 0 6px 20px #2722380d;
  background: #fff !important;
  border: 1px solid #2722381a !important;
  border-radius: var(--shop-radius-panel, 14px) !important;
}

body.shop-storefront .product-page .product-detail-box {
  padding: 1.25rem 1.4rem !important;
  height: auto;
}

body.shop-storefront .product-page .sidebar-box {
  padding: 1.1rem 1.25rem !important;
}

body.shop-storefront .product-page .product-media-stack {
  overflow: hidden;
  border-radius: 0 0 var(--shop-radius-card, 14px) var(--shop-radius-card, 14px) !important;
  padding: 0;
}

body.shop-storefront .product-page .mv-cover {
  background: #111;
  position: relative;
  width: 100%;
  padding-top: 100%;
}

body.shop-storefront .product-page .mv-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.shop-storefront .product-page .mv-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0 0.65rem 0.65rem;
}

body.shop-storefront .product-page .mv-thumbs button {
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0;
  background: #fff;
  cursor: pointer;
  width: 52px;
  height: 52px;
  overflow: hidden;
}

body.shop-storefront .product-page .mv-thumbs li.active button {
  border-color: var(--shop-link-color, var(--theme-color));
}

body.shop-storefront .product-page .mv-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.shop-storefront .product-page .ratio_square iframe {
  width: 100%;
  min-height: 300px;
  border: 0;
  display: block;
}

/* Как на marketvinila.ru/product: h2 — название, h3 — исполнитель */
body.shop-storefront .product-page .product-option h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #272238;
  margin: 0 0 0.35rem;
  line-height: 1.25;
}

body.shop-storefront .product-page .product-option h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #272238;
  margin: 0;
  line-height: 1.35;
}

body.shop-storefront .product-page .product-option h3:empty {
  display: none;
}

body.shop-storefront .product-page .option.price span {
  color: var(--shop-link-color, var(--theme-color)) !important;
  font-size: 1.45rem;
  font-weight: 700;
}

body.shop-storefront .product-page .mv-sold {
  color: var(--shop-link-color, var(--theme-color));
  font-weight: 600;
}

body.shop-storefront .product-page .product-detail-box .btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  margin: 0.75rem 0 1rem;
}

body.shop-storefront .product-page .product-detail-box .btn-group .addtocart-btn,
body.shop-storefront .product-page .product-detail-box .btn-group .btn-solid {
  flex: 1 1 220px;
  justify-content: center;
  border-radius: var(--shop-radius-btn, 12px) !important;
  min-height: 44px;
  background-color: var(--shop-btn-bg, var(--theme-color)) !important;
  border-color: var(--shop-btn-bg, var(--theme-color)) !important;
  color: #fff !important;
}

body.shop-storefront .product-page .spec-note {
  color: #5c5c5c;
  margin-bottom: 0.9rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

body.shop-storefront .product-page .spec-list {
  margin: 0 0 1.1rem;
}

body.shop-storefront .product-page .spec-row {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #0000000f;
}

body.shop-storefront .product-page .spec-row:last-child {
  border-bottom: 0;
}

body.shop-storefront .product-page .spec-row dt {
  flex: 0 0 110px;
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: #8a8a8a;
}

body.shop-storefront .product-page .spec-row dd {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1f2937;
}

body.shop-storefront .product-page .title-box4 {
  margin: 1rem 0 0.5rem;
}

body.shop-storefront .product-page .title-box4 .heading {
  font-size: 1rem;
  font-weight: 700;
  color: #272238;
  margin: 0;
}

body.shop-storefront .product-page .title-box4 .bg-theme-blue {
  display: inline-block;
  width: 2rem;
  height: 3px;
  margin-left: 0.35rem;
  vertical-align: middle;
  background: var(--theme-color) !important;
  border-radius: 2px;
}

body.shop-storefront .product-page .tracklist-lines {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #4a4658;
}

body.shop-storefront .product-page .seller-terms-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #272238;
}

body.shop-storefront .product-page .seller-terms-body {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #4a4658;
}

body.shop-storefront .product-page .seller-terms-body a {
  color: var(--shop-link-color, var(--theme-color));
  text-decoration: underline;
}

body.shop-storefront .product-page .listing-seller-description {
  margin-top: 1rem;
}

body.shop-storefront .product-page details.shop-vitrine-details {
  margin-top: 0.35rem;
}

body.shop-storefront .product-page details.shop-vitrine-details summary {
  cursor: pointer;
  color: var(--shop-link-color, var(--theme-color));
  font-size: 0.85rem;
  font-weight: 600;
  list-style: none;
}

body.shop-storefront .product-page details.shop-vitrine-details summary::-webkit-details-marker {
  display: none;
}

body.shop-storefront .product-page .about-terms-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}

body.shop-storefront .product-page .about-terms-photo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

body.shop-storefront .product-page .mv-mod-note {
  font-size: 0.85rem;
  color: #635d78;
  padding: 0.65rem;
  margin: 0;
}

@media (max-width: 991.98px) {
  body.shop-storefront .product-page .shop-vitrine-product-media.slider-box {
    position: static !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.shop-storefront .product-page .view-product > [class*='col-'] {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    max-width: 100%;
    min-width: 0;
  }

  body.shop-storefront .product-page .mv-cover {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (min-width: 992px) {
  body.shop-storefront .product-page .shop-vitrine-product-media.slider-box {
    position: sticky;
    top: 88px;
  }

  body.shop-storefront .product-page .sidebar-inner.sticky {
    position: sticky;
    top: 88px;
  }
}
