/* Servis Bar — карточка товара в духе Complex Bar (фото | характеристики | покупка) */

:root {
  --sb-wine: #781326;
  --sb-ink: #141414;
  --sb-muted: #6b635b;
  --sb-line: rgba(20, 20, 20, 0.12);
  --sb-soft: #f7f5f2;
  --sb-ok: #1a7f37;
  --sb-card: #ffffff;
}


/* Fix cropped beige/white title strip on product page */
.wrapper1.catalog_page .top-block-wrapper.grey_block,
body.detail_page .top-block-wrapper.grey_block,
.wrapper1.detail_page .top-block-wrapper.grey_block {
  background: #fff !important;
}
.wrapper1.catalog_page .top-block-wrapper.grey_block .page-top,
.wrapper1.catalog_page .top-block-wrapper.grey_block .topic {
  background: #fff !important;
}
.wrapper1.catalog_page .top-block-wrapper.grey_block .topic {
  border-bottom: 1px solid var(--sb-line);
  padding-bottom: 18px !important;
}

/* Title zone: full-bleed clean, no cropped beige band */
.wrapper1.detail_page .page-top,
body.detail_page .page-top.maxwidth-theme,
.catalog_page.detail_page .page-top {
  background: transparent !important;
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
.wrapper1.detail_page .page-top > .topic,
body.detail_page .page-top .topic,
.catalog_page .page-top .topic {
  background: #fff !important;
  border-bottom: 1px solid var(--sb-line);
  max-width: 1260px;
  margin: 0 auto !important;
  padding: 28px 30px 18px !important;
  width: 100%;
  box-sizing: border-box;
}
/* kill full-width beige leftovers behind title */
.wrapper1.detail_page .page-top::before,
.wrapper1.detail_page .grey_block .page-top,
body .wrapper_inner.wide_page > .page-top {
  background: #fff !important;
}
.catalog_detail .topic .topic__heading,
.page-top h1#pagetitle,
.topic h1#pagetitle {
  font-family: "Oswald", "Arial Narrow", sans-serif !important;
  font-weight: 500 !important;
  font-size: clamp(22px, 2.2vw, 32px) !important;
  line-height: 1.2 !important;
  letter-spacing: 0.01em;
  color: var(--sb-ink) !important;
  max-width: 1100px;
}

/* Main 3-column: gallery | specs | buy */
@media (min-width: 992px) {
  .product-view--type2 .product-info.product-main > .flexbox.flexbox--row {
    display: flex !important;
    align-items: flex-start !important;
    gap: 28px !important;
  }
  .product-view--type2 .product-detail-gallery {
    order: 0 !important;
    flex: 1 1 42% !important;
    max-width: 520px !important;
    width: auto !important;
  }
  .product-view--type2 .product-chars {
    order: 1 !important;
    flex: 1 1 28% !important;
    max-width: 360px !important;
    width: auto !important;
    padding-top: 4px;
  }
  .product-view--type2 .product-action {
    order: 2 !important;
    flex: 0 0 300px !important;
    width: 300px !important;
    max-width: 300px !important;
  }
}

/* Gallery: seamless, no boxed white crop */
.product-view--type2 .detail-gallery-big__picture,
.product-view--type2 .detail-gallery-big__item {
  background: #fff !important;
  border-radius: 0 !important;
}
.product-view--type2 .product-detail-gallery {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}
.product-view--type2 .detail-gallery-big-slider-thumbs {
  margin-top: 10px;
}

/* Specs column (Aspro native props: Title — Value) */
.product-view--type2 .product-chars .sb-specs-title {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--sb-ink);
  margin: 6px 0 14px;
}
.product-view--type2 .product-chars .sb-specs {
  margin: 14px 0 8px;
}
.product-view--type2 .product-chars .sb-specs .properties__item {
  margin-top: 6px !important;
  line-height: 1.45;
}
.product-view--type2 .product-chars .sb-specs .properties__title {
  color: var(--sb-muted) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
}
.product-view--type2 .product-chars .sb-specs .properties__hr {
  color: var(--sb-ink);
  font-weight: 600;
  margin: 0 6px !important;
}
.product-view--type2 .product-chars .sb-specs .properties__value {
  color: var(--sb-ink) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}
.product-view--type2 .product-chars .sb-specs-more {
  margin-top: 12px;
}
.product-view--type2 .product-chars .sb-specs-more a {
  font-weight: 700 !important;
  color: var(--sb-ink) !important;
  border-bottom: 1px dotted rgba(20,20,20,.35);
  text-decoration: none !important;
}
.product-view--type2 .product-chars .sb-specs-more a:hover {
  color: var(--sb-wine) !important;
  border-bottom-color: var(--sb-wine);
}

/* Buy card — like Complex Bar right column */
.product-view--type2 .product-action {
  background: var(--sb-card);
  border: 1px solid var(--sb-line);
  padding: 20px 18px 18px;
  position: sticky;
  top: 90px;
}
.product-view--type2 .product-action .prices_block .price_value,
.product-view--type2 .product-action .cost.prices .price_value {
  font-family: "Oswald", "Arial Narrow", sans-serif !important;
  font-size: 34px !important;
  font-weight: 500 !important;
  color: var(--sb-ink) !important;
  letter-spacing: 0.01em;
}
.product-view--type2 .product-action .price_currency,
.product-view--type2 .product-action .price_measure {
  font-size: 18px !important;
  font-weight: 500 !important;
}
.product-view--type2 .product-action .price.discount .price_value {
  color: #b42318;
}
.product-view--type2 .product-action .price.discount-old {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 500;
  color: #888;
  text-decoration: line-through;
  display: flex;
  align-items: center;
  gap: 8px;
}
.product-view--type2 .product-action .price.discount-old .price_value,
.product-view--type2 .product-action .price.discount-old {
  text-decoration: line-through;
}
.sb-disc-badge {
  text-decoration: none !important;
  display: inline-flex;
  background: #b42318;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.sb-card__price--sale {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
}
.sb-card__price-old {
  font-size: 14px;
  font-weight: 500;
  color: #888;
  text-decoration: line-through;
}
.sb-card__disc {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #b42318;
  border-radius: 4px;
  padding: 2px 6px;
}

/* Stock — green check */
.sb-stock-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0 16px;
}
.sb-stock {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sb-ok);
}
.sb-stock--transit {
  color: var(--sb-muted);
  font-weight: 600;
}
.sb-stock svg {
  flex: 0 0 auto;
}
.sb-stock__qty {
  color: var(--sb-muted);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
}
.sb-card__stock {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 4px 0;
}
.sb-card__avail--transit {
  color: rgba(8,9,9,.55);
}
.sb-card__avail--transit i { background: #b0a89a; }
.product-view--type2 .product-action .item-stock,
.product-view--type2 .product-action .status-container {
  /* hide native if we inject sb-stock */
}
.product-view--type2 .product-action .item-stock.sb-stock-hidden,
.product-view--type2 .product-action .js-replace-stock.sb-stock-hidden {
  display: none !important;
}

/* CTAs */
.product-view--type2 .product-action .buy_block .button_block,
.product-view--type2 .product-action .buy_block .counter_wrapp {
  width: 100%;
}
.product-view--type2 .product-action .to-cart,
.product-view--type2 .product-action .in-cart,
.product-view--type2 .product-action .btn-lg,
.product-view--type2 .product-action .has_prediction {
  min-height: 48px !important;
  border-radius: 0 !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.product-view--type2 .product-action .to-cart,
.product-view--type2 .product-action .in-cart {
  background: var(--sb-wine) !important;
  border-color: var(--sb-wine) !important;
  color: #fff !important;
}
.product-view--type2 .product-action .wrapp_one_click .btn,
.product-view--type2 .product-action .one_click {
  border-radius: 0 !important;
  border-color: var(--sb-wine) !important;
  color: var(--sb-wine) !important;
  background: #fff !important;
  min-height: 44px !important;
  font-weight: 600 !important;
}
.product-view--type2 .product-action .sb-wa-btn {
  display: flex !important;
  width: 100%;
  justify-content: center;
  margin-top: 10px;
  min-height: 44px;
  border-radius: 0 !important;
}

/* Delivery hints under buy */
.product-view--type2 .product-action .info_item .sa_block,
.product-view--type2 .product-action .gift_block,
.product-view--type2 .product-action .find_price_ext,
.product-view--type2 .bottom-info {
  font-size: 13px;
  color: var(--sb-muted);
}

/* Tabs under product */
.catalog_detail .product-view .nav.nav-tabs,
.catalog_detail .tabs .nav-tabs {
  border-bottom: 1px solid var(--sb-line) !important;
  background: transparent !important;
  gap: 4px;
}
.catalog_detail .tabs .nav-tabs > li > a,
.catalog_detail .product-view .nav-tabs > li > a {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--sb-muted) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 16px !important;
}
.catalog_detail .tabs .nav-tabs > li.active > a,
.catalog_detail .tabs .nav-tabs > li > a:hover,
.catalog_detail .product-view .nav-tabs > li.active > a {
  color: var(--sb-wine) !important;
  box-shadow: inset 0 -2px 0 var(--sb-wine);
}

/* Side consult block cleaner */
.product-view--type2 .product-side {
  border: 1px solid var(--sb-line);
  background: var(--sb-soft);
  padding: 16px;
  margin-top: 20px;
}


@media (max-width: 991px) {
  .product-view--type2 .product-action {
    position: static;
    margin-top: 16px;
  }
  .product-view--type2 .product-detail-gallery {
    border-left: 0;
    border-right: 0;
  }
}

/* Tighten empty gap under title/breadcrumbs on product page */
.wrapper1.catalog_page .top-block-wrapper.grey_block .page-top > .topic {
  padding-top: 24px !important;
  padding-bottom: 8px !important;
}
.wrapper1.catalog_page .top-block-wrapper.grey_block .page-top > div.breadcrumbs,
.wrapper1.catalog_page .page-top .breadcrumbs {
  padding-top: 8px !important;
  padding-bottom: 16px !important;
}
.wrapper1.catalog_page .top-block-wrapper.grey_block .page-top > div:last-of-type {
  padding-bottom: 16px !important;
  padding-top: 8px !important;
  margin-bottom: 0 !important;
}
.catalog_detail.element_2,
.product-view--type2 .product-info.product-main {
  padding-top: 12px !important;
}
.product-view--type2 .product-info.product-main {
  padding-bottom: 24px !important;
}

/* Dark theme — readable text on product page */
body.theme-dark {
  --sb-ink: #f2efe8;
  --sb-muted: rgba(242, 239, 232, 0.62);
  --sb-line: rgba(255, 255, 255, 0.14);
  --sb-soft: #151617;
  --sb-card: #121314;
}
body.theme-dark .product-view--type2 .product-action,
body.theme-dark .product-view--type2 .product-detail-gallery,
body.theme-dark .product-view--type2 .product-side {
  background: #151617 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}
body.theme-dark .catalog_detail .topic .topic__heading,
body.theme-dark .page-top h1#pagetitle,
body.theme-dark .topic h1#pagetitle,
body.theme-dark .product-view--type2 .product-chars .sb-specs-title {
  color: #f2efe8 !important;
}
body.theme-dark .product-view--type2 .product-chars .sb-specs .properties__title,
body.theme-dark .product-view--type2 .product-chars .sb-specs .properties__title.muted,
body.theme-dark .product-view--type2 .product-chars .muted {
  color: rgba(242, 239, 232, 0.55) !important;
}
body.theme-dark .product-view--type2 .product-chars .sb-specs .properties__hr {
  color: rgba(242, 239, 232, 0.85) !important;
}
body.theme-dark .product-view--type2 .product-chars .sb-specs .properties__value,
body.theme-dark .product-view--type2 .product-chars .sb-specs .properties__value.darken,
body.theme-dark .product-view--type2 .product-chars .darken {
  color: #f2efe8 !important;
}
body.theme-dark .product-view--type2 .product-chars .sb-specs-more a {
  color: #f2efe8 !important;
  border-bottom-color: rgba(242, 239, 232, 0.35);
}
body.theme-dark .product-view--type2 .product-chars .sb-specs-more a:hover {
  color: #c45a6a !important;
}
body.theme-dark .product-view--type2 .product-action .prices_block .price_value,
body.theme-dark .product-view--type2 .product-action .cost.prices .price_value,
body.theme-dark .product-view--type2 .product-action .price_currency,
body.theme-dark .product-view--type2 .product-action .price_measure {
  color: #f2efe8 !important;
}
body.theme-dark .product-view--type2 .product-action .price.discount .price_value,
body.theme-dark .product-view--type2 .product-action .price_txt,
body.theme-dark .product-view--type2 .product-action .muted777,
body.theme-dark .product-view--type2 .product-action .muted {
  color: rgba(242, 239, 232, 0.55) !important;
}
body.theme-dark .wrapper1.catalog_page .top-block-wrapper.grey_block,
body.theme-dark .wrapper1.catalog_page .top-block-wrapper.grey_block .page-top,
body.theme-dark .wrapper1.catalog_page .top-block-wrapper.grey_block .topic {
  background: #080909 !important;
  border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}
body.theme-dark .catalog_detail .breadcrumbs,
body.theme-dark .page-top .breadcrumbs,
body.theme-dark .breadcrumbs a,
body.theme-dark .breadcrumbs span {
  color: rgba(242, 239, 232, 0.55) !important;
}
body.theme-dark .product-info-headnote__article,
body.theme-dark .catalog_detail .muted,
body.theme-dark .catalog_detail .muted777 {
  color: rgba(242, 239, 232, 0.55) !important;
}
body.theme-dark .catalog_detail .tabs .nav-tabs > li > a {
  color: rgba(242, 239, 232, 0.55) !important;
}
body.theme-dark .catalog_detail .tabs .nav-tabs > li.active > a {
  color: #c45a6a !important;
}
body.theme-dark .product-view--type2 .product-side,
body.theme-dark .product-view--type2 .product-side .text-form,
body.theme-dark .product-view--type2 .product-side a {
  color: #f2efe8 !important;
}

/* Breadcrumbs align with product title (same content column) */
.wrapper1.catalog_page .page-top > .breadcrumbs,
.wrapper1.catalog_page .page-top .breadcrumbs,
body.detail_page .page-top .breadcrumbs {
  max-width: 1260px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 30px !important;
  padding-right: 30px !important;
  box-sizing: border-box !important;
}
.wrapper1.catalog_page .page-top > .breadcrumbs .breadcrumbs__item:first-child,
.wrapper1.catalog_page .page-top .breadcrumbs > *:first-child {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

