/* Product card layout: photo | specs | buy */
.catalog_detail,
.product-container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 20px 48px;
  box-sizing: border-box;
}
#productRoot.product-container { padding-top: 0; }

.product-view--type2 .product-info.product-main > .flexbox.flexbox--row {
  display: grid !important;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.85fr) 300px;
  gap: 28px !important;
  align-items: start !important;
}

.product-view--type2 .product-detail-gallery {
  grid-column: 1;
  grid-row: 1;
  max-width: none !important;
  width: 100% !important;
  min-width: 0 !important;
  flex: none !important;
  order: 0 !important;
}
.sb-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sb-gallery__main {
  position: relative;
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid rgba(20,20,20,.08);
  display: grid;
  place-items: center;
  cursor: zoom-in;
  overflow: hidden;
  max-height: min(560px, 70vh);
}
.sb-gallery__main img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  padding: 20px;
  transition: opacity .15s;
}
.sb-gallery__zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border: 0;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  cursor: pointer;
}
.sb-gallery__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sb-gallery__thumb {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1px solid rgba(20,20,20,.12);
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.sb-gallery__thumb.is-active {
  border-color: #781326;
  box-shadow: 0 0 0 1px #781326;
}
.sb-gallery__thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 4px;
}
.sb-gallery-lb {
  position: fixed;
  inset: 0;
  z-index: 100080;
  background: rgba(0,0,0,.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.sb-gallery-lb img {
  max-width: min(960px, 100%);
  max-height: 90vh;
  object-fit: contain;
  background: #fff;
}
.sb-gallery-lb__close {
  position: absolute;
  top: 16px;
  right: 18px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}
.sb-gallery-lb__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(255,255,255,.12);
  color: #fff;
  width: 44px;
  height: 44px;
  font-size: 24px;
  cursor: pointer;
}
.sb-gallery-lb__nav--prev { left: 16px; }
.sb-gallery-lb__nav--next { right: 16px; }

.product-view--type2 .product-chars {
  grid-column: 2;
  grid-row: 1;
  max-width: none !important;
  width: 100% !important;
  min-width: 0 !important;
  flex: none !important;
  order: 1 !important;
  padding-top: 4px;
}

.product-view--type2 .product-action {
  grid-column: 3;
  grid-row: 1;
  width: 300px !important;
  max-width: 300px !important;
  flex: none !important;
  order: 2 !important;
  position: sticky;
  top: 90px;
  box-sizing: border-box;
}

.product-detail-gallery__picture,
.product-detail-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
  display: block;
}

.product-info-headnote { margin-bottom: 10px; }
.product-info-headnote__rating .sb-stars {
  display: flex; gap: 2px; color: #c8c4be; margin-bottom: 8px;
}
.product-info-headnote__rating .sb-stars span {
  width: 14px; height: 14px;
  background: currentColor;
  clip-path: polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);
}
.article-title, .product-info-headnote__article { font-size: 13px; color: #6b635b; margin-bottom: 8px; }
.article-title .article, .article__value { color: #141414; font-weight: 600; }
.page-top, .topic { max-width: 1260px; margin: 0 auto; padding: 20px 20px 8px; }
.topic__heading, h1#pagetitle {
  font-family: var(--sb-display, "Oswald", "Arial Narrow", sans-serif);
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.2;
  margin: 0 0 8px;
  color: #141414;
}
.sb-product-crumbs {
  max-width: 1260px; margin: 0 auto; padding: 16px 20px 0;
  font-size: 13px; color: #6b635b; display: flex; flex-wrap: wrap; gap: 6px 8px;
}
.sb-product-crumbs a { color: #6b635b; text-decoration: none; }
.sb-product-crumbs a:hover { color: #781326; }
.prices_block .price_value {
  font-family: var(--sb-display, "Oswald", sans-serif);
  font-size: 34px; font-weight: 500; color: #141414;
}
.prices_block .price_currency, .prices_block .price_measure { font-size: 18px; font-weight: 500; }
.vat_text { font-size: 12px; color: #6b635b; margin: 6px 0 12px; }
.buy_block { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.counter_wrapp {
  display: flex; gap: 10px; align-items: stretch; width: 100%;
}
.counter_block {
  display: inline-flex; align-items: center; border: 1px solid rgba(20,20,20,.12);
  height: 48px; background: #fff;
}
.counter_block .minus, .counter_block .plus {
  width: 36px; height: 48px; border: 0; background: transparent;
  cursor: pointer; font-size: 18px; color: #141414;
}
.counter_block input {
  width: 44px; border: 0; border-left: 1px solid rgba(20,20,20,.1);
  border-right: 1px solid rgba(20,20,20,.1); text-align: center;
  font: inherit; font-weight: 600; -moz-appearance: textfield;
}
.counter_block input::-webkit-outer-spin-button,
.counter_block input::-webkit-inner-spin-button { -webkit-appearance: none; }
.button_block { flex: 1; min-width: 0; }
.to-cart, .btn-default.to-cart {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 48px; border: 0; cursor: pointer;
  background: #781326; color: #fff; font: inherit; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; font-size: 13px;
}
.to-cart.is-added { background: #1a7f37; }
.one_click, .wrapp-one-click .btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 44px; box-sizing: border-box;
  border: 1px solid #781326; background: #fff; color: #781326;
  font: inherit; font-weight: 600; text-decoration: none; text-align: center;
}
.like_icons { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 8px; }
.like_icons .js-item-action {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 1px solid rgba(20,20,20,.12);
  background: #fff; cursor: pointer; color: #6b635b;
}
.like_icons .js-item-action.is-active { color: #781326; border-color: #781326; }
.properties__item {
  display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline;
  margin-top: 6px; font-size: 13px; line-height: 1.45;
}
.properties__title { color: #6b635b; }
.properties__hr { color: #141414; font-weight: 600; }
.properties__value { color: #141414; font-weight: 600; font-size: 14px; }
.sb-delivery-hints {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(20,20,20,.1);
  font-size: 13px; color: #6b635b; line-height: 1.5;
}
.sb-delivery-hints li { margin: 0 0 6px; list-style: none; }
.sb-delivery-hints ul { margin: 0; padding: 0; }
.sb-product-tabs { max-width: 1260px; margin: 32px auto 0; padding: 0 20px 48px; }
.sb-product-tabs__list {
  display: flex; flex-wrap: wrap; border-bottom: 1px solid rgba(20,20,20,.12); gap: 4px;
}
.sb-product-tabs__btn {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  padding: 14px 16px; font: inherit; font-size: 13px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: #6b635b;
}
.sb-product-tabs__btn.is-active { color: #781326; box-shadow: inset 0 -2px 0 #781326; }
.sb-product-tabs__panel {
  display: none; padding: 20px 0; font-size: 15px; line-height: 1.65;
  color: rgba(20,20,20,.78); max-width: 820px;
}
.sb-product-tabs__panel.is-active { display: block; }
.sb-product-tabs__panel--pre { white-space: pre-wrap; }
.sb-product-related { max-width: 1260px; margin: 0 auto 48px; padding: 0 20px; }
.sb-product-related h2 { font-size: 22px; margin: 0 0 20px; }
.sb-product-empty { padding: 48px 20px; text-align: center; color: #6b635b; }

@media (max-width: 1100px) {
  .product-view--type2 .product-info.product-main > .flexbox.flexbox--row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .product-view--type2 .product-detail-gallery { grid-column: 1; grid-row: 1; }
  .product-view--type2 .product-chars { grid-column: 2; grid-row: 1; }
  .product-view--type2 .product-action {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100% !important;
    max-width: 420px !important;
    margin-left: auto;
    margin-right: auto;
    position: static;
  }
}
@media (max-width: 760px) {
  .product-view--type2 .product-info.product-main > .flexbox.flexbox--row {
    grid-template-columns: 1fr;
  }
  .product-view--type2 .product-detail-gallery,
  .product-view--type2 .product-chars,
  .product-view--type2 .product-action {
    grid-column: 1;
    grid-row: auto;
    width: 100% !important;
    max-width: none !important;
  }
  .product-view--type2 .product-action { position: static !important; }
  .counter_wrapp { flex-direction: column; }
}

body.theme-dark .topic__heading,
body.theme-dark h1#pagetitle,
body.theme-dark .prices_block .price_value,
body.theme-dark .properties__value,
body.theme-dark .properties__hr { color: #f2efe8; }
body.theme-dark .article-title,
body.theme-dark .vat_text,
body.theme-dark .sb-delivery-hints,
body.theme-dark .properties__title { color: rgba(242,239,232,.62); }

/* Beat Timeweb sb-product flex rules */
@media (min-width: 992px) {
  .product-view--type2 .product-info.product-main > .flexbox.flexbox--row {
    display: grid !important;
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.85fr) 300px !important;
  }
  .product-view--type2 .product-detail-gallery,
  .product-view--type2 .product-chars,
  .product-view--type2 .product-action {
    flex: none !important;
  }
}
