/**
 * Карточка товара shop-gate — те же классы, что marketvinila.ru/product (ProductPage.vue).
 * Копия marketvinila-web/public/assets/shop-vitrine-product.css
 */
body.shop-storefront .product-page {
  background: #f4f3f8 !important;
  padding-top: clamp(12px, 2vw, 20px);
  padding-bottom: clamp(34px, 3.6vw, 48px);
  overflow-x: hidden;
}

body.shop-storefront .product-page .view-product {
  align-items: flex-start !important;
}

/* Bootstrap col-lg-4: не переопределяем width — иначе колонки «расползаются». */
body.shop-storefront .product-page .view-product > [class*='col-'] {
  min-width: 0;
  max-width: 100%;
  align-self: flex-start !important;
}

/* style_4: .view-product .product-detail-box { align-items:center; height:100% } — ломает верхнюю линию колонок */
body.shop-storefront .product-page .view-product .product-detail-box {
  display: block !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  height: auto !important;
  min-height: 0 !important;
}

body.shop-storefront .product-page .view-product .slider-box,
body.shop-storefront .product-page .view-product .sidebar-inner.product-page-sidebar {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.shop-storefront .product-page .view-product > [class*='col-'] > .slider-box,
body.shop-storefront .product-page .view-product > [class*='col-'] > .product-detail-box,
body.shop-storefront .product-page .view-product > [class*='col-'] > .sidebar-inner {
  width: 100%;
}

body.shop-storefront .product-page .product-detail-box,
body.shop-storefront .product-page .sidebar-box {
  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 !important;
  width: 100%;
}

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

body.shop-storefront .product-page .product-media-stack {
  overflow: hidden;
  box-shadow: 0 6px 20px #2722380d;
  background: #fff !important;
  border: 1px solid #2722381a !important;
  border-radius: 0 0 14px 14px !important;
  width: 100%;
  margin-top: 0 !important;
}

body.shop-storefront .product-page .slider-box {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

body.shop-storefront .product-page .ratio_square,
body.shop-storefront .product-page .product-media-stack .ratio_square {
  border-radius: 0 !important;
}

body.shop-storefront .product-page .ratio_square:has(iframe),
body.shop-storefront .product-page .ratio_square:has(iframe) .mainslider2,
body.shop-storefront .product-page .ratio_square:has(iframe) iframe {
  border-radius: 0 0 14px 14px !important;
  overflow: hidden !important;
}

body.shop-storefront .product-page .mv-cover {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: #000;
  overflow: hidden;
  border-radius: 0 !important;
}

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

body.shop-storefront .product-page .deezer-note {
  font-size: 12.5px;
  color: #8a8598;
  line-height: 1.5;
  padding: 10px 14px;
  margin: 0;
  background: #f7f6fb;
  border-top: 1px solid rgba(39, 34, 56, 0.06);
}

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

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 .sidebar-inner.product-page-sidebar {
  margin-top: 0 !important;
  padding-top: 0 !important;
  width: 100%;
}

body.shop-storefront .product-page .sidebar-inner.product-page-sidebar > .row {
  --bs-gutter-y: 0.75rem;
  margin-top: 0;
}

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 .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 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 .mv-mod-note {
  font-size: 0.85rem;
  color: #635d78;
  padding: 0.65rem;
  margin: 0;
}

body.shop-storefront .product-page .slider-box .swiper img {
  border-radius: 0 !important;
}

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

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

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