/* Native Product v1: компоновка поверх существующих компонентов PriceWell. */
.bfc-native-product {
  min-width: 0;
  width: 100%;
  color: var(--bfc-color-text);
  background: var(--bfc-color-light);
  font-family: var(--bfc-font-family);
  font-size: 14px;
  line-height: 1.6;
}
.bfc-native-product *,
.bfc-native-product *::before,
.bfc-native-product *::after { box-sizing: border-box; }
.bfc-native-product .bfc-native-product-wrap {
  width: 100%;
  max-width: 1244px;
  min-width: 0;
  margin-inline: auto;
  padding: 22px 32px 56px;
}
.bfc-native-product .bfc-native-product-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
  margin-bottom: 18px;
  color: var(--bfc-color-muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.bfc-native-product .bfc-native-product-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bfc-native-product .bfc-native-product-breadcrumbs a { color: var(--bfc-color-soft-text); }
.bfc-native-product .bfc-native-product-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: center;
  padding: 36px;
  color: var(--bfc-color-white);
  background: var(--bfc-color-dark);
  border-radius: 20px;
}
.bfc-native-product .bfc-native-product-hero > *,
.bfc-native-product .bfc-native-product-section > *,
.bfc-native-product .bfc-native-product-details > * { min-width: 0; }
.bfc-native-product .bfc-native-product-hero.is-no-media { grid-template-columns: minmax(0, 1fr); }
.bfc-native-product .bfc-native-product-details.is-single { grid-template-columns: minmax(0, 1fr); }
.bfc-native-product .bfc-offer-store { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bfc-native-product .bfc-offer-store-logo { flex: 0 0 auto; max-width: 80px; }
.bfc-native-product .bfc-offer-store-logo img { display: block; max-width: 80px; max-height: 48px; width: auto; height: auto; object-fit: contain; }
.bfc-native-product .bfc-native-product-media {
  align-self: start;
  min-width: 0;
  padding: 20px;
  border-radius: var(--bfc-radius-card);
  background: var(--bfc-color-white);
  color: var(--bfc-color-text);
}
.bfc-native-product .bfc-native-product-media .bfc-product-image { width: 100%; }
.bfc-native-product .bfc-native-product-media .bfc-product-gallery-main {
  aspect-ratio: 1 / 1;
  border-radius: var(--bfc-radius-control);
}
.bfc-native-product .bfc-native-product-media > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
.bfc-native-product .bfc-native-product-summary { min-width: 0; }
.bfc-native-product .bfc-native-product-summary h1 {
  margin: 0 0 18px;
  color: inherit;
  font-size: clamp(28px, 3.1vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.bfc-native-product .bfc-native-product-taxonomy {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.bfc-native-product .bfc-native-product-taxonomy a,
.bfc-native-product .bfc-native-product-store a { color: #d7dce3; }
.bfc-native-product .bfc-native-product-taxonomy a:hover,
.bfc-native-product .bfc-native-product-store a:hover { color: var(--bfc-color-white); }
.bfc-native-product .bfc-native-product-short {
  margin-block: 16px;
  color: #c7ccd4;
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.bfc-native-product .bfc-native-product-short > :first-child { margin-top: 0; }
.bfc-native-product .bfc-native-product-short > :last-child { margin-bottom: 0; }
.bfc-native-product .bfc-native-product-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  min-width: 0;
  margin-block: 20px 12px;
}
.bfc-native-product .bfc-native-product-current {
  min-width: 0;
  color: var(--bfc-color-white);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.bfc-native-product .bfc-native-product-old {
  color: #b1b7c2;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.bfc-native-product .bfc-native-product-discount {
  color: #ffb4ac;
  font-size: 14px;
  font-weight: 700;
}
.bfc-native-product .bfc-native-product-store,
.bfc-native-product .bfc-native-product-availability {
  margin-block: 6px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.bfc-native-product .bfc-native-product-store { color: #d7dce3; }
.bfc-native-product .bfc-native-product-availability { color: #d7dce3; }
.bfc-native-product .bfc-native-product-summary .bfc-social-proof { color: #d7dce3; opacity: 1; }
.bfc-native-product .bfc-native-product-summary .bfc-product-badge {
  color: var(--bfc-color-white);
  background: var(--bfc-color-accent);
}
.bfc-native-product .bfc-native-product-summary .bfc-product-badge--fact {
  color: #e5e7eb;
  background: var(--bfc-color-dark-2);
  border-color: #343a46;
}
.bfc-native-product .bfc-product-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  margin-top: 22px;
}
.bfc-native-product .bfc-product-actions-row > * { min-width: 0; max-width: 100%; }
.bfc-native-product .bfc-native-product-cta {
  display: inline-flex;
  flex: 1 1 220px;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 0;
  padding: 13px 20px;
  border: 1px solid var(--bfc-color-accent);
  border-radius: var(--bfc-radius-control);
  color: var(--bfc-color-white);
  background: var(--bfc-color-accent);
  font: inherit;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}
.bfc-native-product .bfc-native-product-cta:hover {
  border-color: var(--bfc-color-accent-hover);
  background: var(--bfc-color-accent-hover);
  color: var(--bfc-color-white);
}
.bfc-native-product .bfc-product-actions-row .is-single-button {
  min-height: 46px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.bfc-native-product .bfc-native-product-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}
.bfc-native-product .bfc-native-product-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--bfc-color-border);
  border-radius: var(--bfc-radius-control);
  color: var(--bfc-color-text);
  background: var(--bfc-color-white);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.bfc-native-product .bfc-native-product-nav a:hover { border-color: var(--bfc-color-accent); }
.bfc-native-product .bfc-native-product-section {
  min-width: 0;
  margin-block: 24px;
  padding: 28px;
  border: 1px solid var(--bfc-color-border);
  border-radius: var(--bfc-radius-card);
  background: var(--bfc-color-white);
  scroll-margin-top: 28px;
}
.bfc-native-product .bfc-native-product-section > h2 {
  margin: 0 0 22px;
  color: var(--bfc-color-text);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.bfc-native-product .bfc-native-product-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.bfc-native-product .bfc-native-product-details > :only-child { grid-column: 1 / -1; }
.bfc-native-product .bfc-product-description-body,
.bfc-native-product .bfc-attribute-name,
.bfc-native-product .bfc-attribute-values { overflow-wrap: anywhere; }
.bfc-native-product .bfc-product-description-body img,
.bfc-native-product .bfc-product-description-body video,
.bfc-native-product .bfc-product-description-body iframe { max-width: 100%; }
.bfc-native-product .bfc-product-description-body img { height: auto; }
.bfc-native-product .bfc-product-description-body table { max-width: 100%; table-layout: fixed; }
.bfc-native-product .bfc-price-history { padding: 20px; border-radius: var(--bfc-radius-card); }
.bfc-native-product .bfc-price-chart-stage { height: 330px; }
.bfc-native-product .bfc-price-tooltip { min-width: 0; max-width: calc(100% - 16px); }
.bfc-native-product .bfc-price-summary strong { white-space: normal; overflow-wrap: anywhere; }
.bfc-native-product .bfc-offer-row > * { min-width: 0; }
.bfc-native-product .bfc-offer-store-name,
.bfc-native-product .bfc-offer-current-price,
.bfc-native-product .bfc-offer-old-price,
.bfc-native-product .bfc-offer-availability,
.bfc-native-product .bfc-list-button { overflow-wrap: anywhere; white-space: normal; }
.bfc-native-product .bfc-price-alert input { min-width: 0; max-width: 100%; font: inherit; }
.bfc-native-product .bfc-price-alert-types label { min-width: 0; }
.bfc-native-product .bfc-price-alert-submit { min-height: 44px; white-space: normal; }
.bfc-native-product .bfc-related-cheaper-head { margin-bottom: 20px; }
.bfc-native-product .bfc-related-cheaper-head h2 { overflow-wrap: anywhere; }
.bfc-native-product a:focus-visible,
.bfc-native-product button:focus-visible,
.bfc-native-product input:focus-visible,
.bfc-native-product summary:focus-visible,
.bfc-native-product [tabindex]:focus-visible {
  outline: 3px solid var(--bfc-color-accent);
  outline-offset: 3px;
}
.bfc-native-product .bfc-native-product-summary > a:focus-visible,
.bfc-native-product .bfc-native-product-summary .bfc-native-product-cta:focus-visible,
.bfc-native-product .bfc-native-product-taxonomy a:focus-visible { outline-color: var(--bfc-color-white); }
@media (max-width: 1024px) {
  .bfc-native-product .bfc-native-product-hero { gap: 26px; padding: 28px; }
  .bfc-native-product .bfc-native-product-section { padding: 24px; }
  .bfc-native-product .bfc-native-product-section .bfc-offer-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
  }
  .bfc-native-product .bfc-offer-action { justify-content: flex-start; }
}
@media (max-width: 768px) {
  .bfc-native-product .bfc-native-product-wrap { padding: 18px 20px 40px; }
  .bfc-native-product .bfc-native-product-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .bfc-native-product .bfc-native-product-media { width: 100%; max-width: 480px; margin-inline: auto; }
  .bfc-native-product .bfc-native-product-details { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .bfc-native-product .bfc-native-product-section > h2 { font-size: 25px; }
  .bfc-native-product .bfc-native-product-summary h1 { font-size: 30px; }
}
@media (max-width: 480px) {
  .bfc-native-product .bfc-native-product-wrap { padding: 16px 12px 32px; }
  .bfc-native-product .bfc-native-product-hero { padding: 20px 16px; gap: 22px; border-radius: var(--bfc-radius-card); }
  .bfc-native-product .bfc-native-product-media { padding: 12px; }
  .bfc-native-product .bfc-native-product-summary h1 { font-size: 27px; }
  .bfc-native-product .bfc-native-product-short { font-size: 14px; }
  .bfc-native-product .bfc-native-product-current { font-size: 28px; }
  .bfc-native-product .bfc-product-actions-row { gap: 8px; }
  .bfc-native-product .bfc-native-product-cta { flex-basis: 100%; }
  .bfc-native-product .bfc-product-actions-row .is-single-button { flex: 1 1 100%; width: 100%; }
  .bfc-native-product .bfc-native-product-section { margin-block: 18px; padding: 20px 14px; }
  .bfc-native-product .bfc-native-product-section > h2 { font-size: 23px; }
  .bfc-native-product .bfc-native-product-nav { gap: 8px; margin-block: 18px; }
  .bfc-native-product .bfc-native-product-nav a { flex: 1 1 auto; justify-content: center; padding-inline: 12px; }
  .bfc-native-product .bfc-price-history { padding: 14px 10px; }
  .bfc-native-product .bfc-price-chart-stage { height: 270px; }
  .bfc-native-product .bfc-native-product-section .bfc-offer-row { grid-template-columns: minmax(0, 1fr) !important; }
  .bfc-native-product .bfc-native-product-section .bfc-offer-row > * { grid-column: 1 !important; }
  .bfc-native-product .bfc-native-product-section .bfc-offer-prices { justify-content: flex-start; text-align: left; }
  .bfc-native-product .bfc-native-product-section .bfc-offer-action { justify-content: stretch; }
  .bfc-native-product .bfc-native-product-section .bfc-list-button { width: 100%; text-align: center; }
}
