/* =================== hc-pdp-buybox-bar.css =================== */
/* PDP buy-box "checkout-bar" layout (V3, chosen by client). Extends
   125-hc-pdp-m1.css: horizontal price+qty+cart bar, chip tools, trust row.
   Scoped to .hc-pdp-m1__buy--bar. WDL tokens, no !important. */

.hc-pdp-m1__buy--bar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
}
.hc-pdp-m1__buy--bar .hc-pdp-m1__sku-row,
.hc-pdp-m1__buy--bar .hc-pdp-m1__stock { margin: 0; }

.hc-pdp-m1__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}

/* price + qty + cart in one horizontal bar */
.hc-pdp-m1__bar {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(141, 109, 71, 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, #fffdf9, #f6efe2);
}
.hc-pdp-m1__bar-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.hc-pdp-m1__bar-price .hc-pdp-m1__price {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
}
.hc-pdp-m1__bar-buy {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}
.hc-pdp-m1__bar-buy .hc-pdp-m1__atc-form { flex: 0 0 auto; margin: 0; }
.hc-pdp-m1__bar-buy .hc-pdp-m1__cta-primary { min-height: 50px; padding: 0 30px; white-space: nowrap; }

/* secondary actions row: 1-click (stretch) + favorite (icon) */
.hc-pdp-m1__secondary {
  display: flex;
  align-items: stretch;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}
.hc-pdp-m1__secondary .hc-pdp-m1__cta-outline { flex: 1; }
.hc-pdp-m1__fav {
  flex: 0 0 auto;
  width: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(141, 109, 71, 0.28);
  border-radius: 12px;
  background: #fff;
  color: var(--hc-accent, #8b7355);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.hc-pdp-m1__fav svg { width: 20px; height: 20px; }
.hc-pdp-m1__fav:hover { border-color: rgba(141, 109, 71, 0.5); transform: translateY(-1px); }
.hc-pdp-m1__fav.is-active,
.hc-pdp-m1__fav[aria-pressed="true"] {
  background: var(--hc-accent, #8b7355);
  color: #fff;
  border-color: var(--hc-accent, #8b7355);
}

/* tools as chips */
.hc-pdp-m1__tools--chips { display: flex; flex-direction: column; gap: 10px; }
.hc-pdp-m1__tools--chips .hc-pdp-m1__tools-row { display: flex; flex-wrap: wrap; gap: 10px; }
.hc-pdp-m1__tools--chips .hc-pdp-m1__tool {
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 14px;
  font-family: var(--hc-sans, "Outfit", sans-serif);
  font-size: 14px;
  font-weight: 650;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.95), rgba(246, 239, 226, 0.78));
  border: 1px solid rgba(141, 109, 71, 0.24);
  color: var(--hc-ink, #1a1714);
  box-shadow: 0 10px 24px -24px rgba(24, 18, 12, 0.5);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.hc-pdp-m1__tools--chips .hc-pdp-m1__tool:hover {
  background: linear-gradient(180deg, #fff, rgba(246, 239, 226, 0.9));
  border-color: rgba(199, 155, 96, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 18px 30px -24px rgba(24, 18, 12, 0.58);
}

/* notify — subtle full-width */
.hc-pdp-m1__notify {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(141, 109, 71, 0.2);
  border-radius: 12px;
  background: #fff;
  color: var(--hc-ink-soft, rgba(26, 23, 20, 0.7));
  font-family: var(--hc-sans, "Outfit", sans-serif);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.hc-pdp-m1__notify:hover { border-color: rgba(141, 109, 71, 0.4); color: var(--hc-ink, #1a1714); }
.hc-pdp-m1__notify .hc-pdp-m1__act-ico { display: inline-flex; }
.hc-pdp-m1__notify .hc-pdp-m1__act-ico svg { width: 18px; height: 18px; }

/* trust row */
.hc-pdp-m1__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(141, 109, 71, 0.14);
}
/* Teaser pills (.hc-trust = animated SVG icon + per-category text) are styled
   in 285-hc-trust-ico.css; the container above only handles layout. */

@media (max-width: 560px) {
  .hc-pdp-m1__bar { flex-direction: column; align-items: stretch; }
  .hc-pdp-m1__bar-buy { margin-left: 0; }
  .hc-pdp-m1__bar-buy .hc-pdp-m1__atc-form { flex: 1; }
  .hc-pdp-m1__bar-buy .hc-pdp-m1__cta-primary { width: 100%; }
}

/* "Выведено из коллекции" — buy-box replacement for discontinued products
   (stock_status='discontinued'); the in-stock analogs render in #pdp-analogs. */
.pdp-discont {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(150, 90, 60, 0.22);
  border-radius: 16px;
  background: linear-gradient(180deg, #fbf3ea, #f3e3d3);
}
.pdp-discont__badge {
  align-self: flex-start;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(150, 90, 60, 0.14);
  color: #8a4b2f;
  font: 600 11px/1 var(--hc-sans, "Outfit", sans-serif);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.pdp-discont__title {
  margin: 0;
  font-family: var(--hc-serif, "Playfair Display", Georgia, serif);
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 500;
  line-height: 1.12;
  color: var(--hc-ink, #1a1714);
}
.pdp-discont__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(26, 23, 20, 0.72);
}
.pdp-discont__cta {
  align-self: flex-start;
  min-height: 48px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
}
.pdp-discont__sku {
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid rgba(141, 109, 71, 0.16);
}

.pdp-analogs { margin-top: clamp(20px, 3vw, 34px); }
