/* =====================================================================
   THE MINERS — страница товара по макету (разметку собирает product.js)
   Всё под body.pd-on — класс ставит product.js, без него страница прежняя.
   ===================================================================== */
body.pd-on {
  --pd-bg: #F7F7F7;
  --pd-card: #ffffff;
  --pd-text: #141414;
  --pd-muted: #6b6b6b;
  --pd-line: #c9c9c9;
  --pd-lime: #DCFF50;
  --pd-radius: 16px;
  --pd-gut: 80px;
  --pd-w: min(1352px, calc(100vw - 2 * var(--pd-gut)));
  background: var(--pd-bg) !important;
}
@media (max-width: 1199px) { body.pd-on { --pd-gut: 40px; } }
@media (max-width: 767px)  { body.pd-on { --pd-gut: 16px; } }

body.pd-on .overall-wrapper,
body.pd-on #content-wrapper,
body.pd-on .content-wrapper-in,
body.pd-on #content,
body.pd-on .p-detail,
body.pd-on .p-detail-inner { background: transparent !important; }

/* ширина: снимаем ограничения обёрток темы, своя колонка 1352px */
body.pd-on #content-wrapper,
body.pd-on .content-wrapper-in,
body.pd-on #content {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.pd-on .p-detail {
  width: var(--pd-w);
  margin: 0 auto !important;
  padding: 0 !important;
  color: var(--pd-text);
}
body.pd-on .breadcrumbs-wrapper,
body.pd-on .p-detail .product-top > .col-xs-12:not(.p-image-wrapper):not(.p-info-wrapper) { display: none !important; }

/* ---------- две колонки ---------- */
body.pd-on .p-detail .product-top {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 48px;
  align-items: start;
  margin: 0 !important;
  padding: 32px 0 0 !important;
}
body.pd-on .p-detail .product-top::before,
body.pd-on .p-detail .product-top::after { content: none !important; }
body.pd-on .p-detail .product-top > .p-image-wrapper,
body.pd-on .p-detail .product-top > .p-info-wrapper {
  width: auto !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* «← Back» — над колонками, на всю ширину сетки */
body.pd-on .p-detail .product-top > .pd-back {
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px !important;
  padding: 6px 14px 6px 10px !important;
  border: 1px solid var(--pd-text);
  border-radius: 999px;
  color: var(--pd-text) !important;
  font-size: 15px !important;
  font-weight: 450 !important;
  line-height: 1;
  text-decoration: none !important;
  transition: background-color .2s ease, color .2s ease;
}
body.pd-on .p-detail .product-top > .pd-back svg { width: 18px; height: 18px; flex: none; }
body.pd-on .p-detail .product-top > .pd-back svg path { fill: currentColor; transition: fill .2s ease; }
body.pd-on .p-detail .product-top > .pd-back:hover { background: var(--pd-text); color: #fff !important; }
body.pd-on .p-detail .product-top > .pd-back:hover svg { transform: translateX(-2px); }
body.pd-on .p-detail .product-top > .pd-back svg { transition: transform .2s ease; }

/* фото и покупка остаются на экране, пока читают описание */
@media (min-width: 768px) {
  body.pd-on .p-detail .product-top > .p-image-wrapper {
    position: sticky;
    top: calc(var(--mh-h, 92px) + 24px);
  }
}

/* ---------- фото ---------- */
body.pd-on .p-image-wrapper .p-image {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--pd-card);
  border-radius: var(--pd-radius);
  overflow: hidden;
}
body.pd-on .p-image-wrapper .p-main-image {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
body.pd-on .p-image-wrapper .p-main-image img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain;
}
body.pd-on .p-image-wrapper .p-thumbnails-wrapper { display: none !important; }

/* ---------- ряд покупки ---------- */
body.pd-on .pd-buy {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
}
body.pd-on .pd-buy .pd-add-src,
body.pd-on .pd-buy .pd-params-src { display: none !important; }

body.pd-on .pd-variants {
  display: inline-flex;
  flex: none;
  height: 44px;
  padding: 0;
  border: 1px solid var(--pd-text);
  border-radius: 12px;
  overflow: hidden;
}
body.pd-on .pd-var {
  min-width: 62px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: var(--pd-text);
  font-size: 16px;
  font-weight: 450 !important;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
body.pd-on .pd-var.is-on { background: var(--pd-text); color: #fff; }
body.pd-on .pd-var:disabled { opacity: .35; cursor: not-allowed; }

/* количество: − 2 + */
body.pd-on .pd-buy .quantity {
  display: inline-flex !important;
  align-items: stretch;
  flex: none;
  width: auto !important;
  height: 44px;
  margin: 0 !important;
  padding: 0 !important;
  background: #d9d9d9;
  border: 0 !important;
  border-radius: 12px;
  overflow: hidden;
}
body.pd-on .pd-buy .quantity .decrease { order: 1; }
body.pd-on .pd-buy .quantity label     { order: 2; margin: 0 !important; display: flex; }
body.pd-on .pd-buy .quantity .increase { order: 3; }
body.pd-on .pd-buy .quantity .increase,
body.pd-on .pd-buy .quantity .decrease {
  position: static !important;
  width: 44px !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  color: var(--pd-text) !important;
  font-size: 18px;
  cursor: pointer;
}
body.pd-on .pd-buy .quantity .increase::before,
body.pd-on .pd-buy .quantity .decrease::before { content: none !important; }
body.pd-on .pd-buy .quantity .increase__sign,
body.pd-on .pd-buy .quantity .decrease__sign { display: inline !important; color: inherit !important; font-size: 18px !important; }
body.pd-on .pd-buy .quantity .amount {
  width: 52px !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #f2f2f2 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 16px !important;
  text-align: center;
  color: var(--pd-text) !important;
}

/* Add to cart ......... €13,50 */
body.pd-on .pd-buy .add-to-cart-button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex: 1 1 auto;
  min-width: 0;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 20px !important;
  background: var(--pd-text) !important;
  border: 1px solid var(--pd-text) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 450 !important;
  text-transform: none !important;
  white-space: nowrap;
  transition: color .2s ease, transform .15s ease;
}
body.pd-on .pd-buy .add-to-cart-button.has-price { justify-content: space-between; }
body.pd-on .pd-buy .add-to-cart-button::before,
body.pd-on .pd-buy .add-to-cart-button::after { content: none !important; display: none !important; }   /* стрелка темы */
body.pd-on .pd-buy .add-to-cart-button .pd-btn-price { font-weight: 700 !important; }
body.pd-on .pd-buy .add-to-cart-button:hover { color: var(--pd-lime) !important; }
body.pd-on .pd-buy .add-to-cart-button:active { transform: scale(.98); }

/* наличие: «● Skladem» под рядом покупки */
body.pd-on .pd-stock { margin-top: 14px; }
body.pd-on .pd-stock .availability-value {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.pd-on .pd-stock .availability-label {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  color: var(--pd-text) !important;           /* перебивает инлайн-цвет Shoptet */
  font-size: 14px !important;
  font-weight: 450 !important;
  line-height: 1.2;
}
body.pd-on .pd-stock .availability-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pd-dot, #2fb344);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pd-dot, #2fb344) 20%, transparent);
}

/* ---------- правая колонка: прячем исходные блоки ---------- */
body.pd-on .p-info-wrapper > .p-detail-inner-header,
body.pd-on .p-info-wrapper > .p-short-description,
body.pd-on .p-info-wrapper > .availability-value,
body.pd-on .p-info-wrapper > p,
body.pd-on .p-info-wrapper > .social-buttons-wrapper,
body.pd-on .p-info-wrapper > .flags,
body.pd-on .p-info-wrapper.pd-has-story > #description { display: none !important; }

body.pd-on .p-info-wrapper {
  display: flex !important;
  flex-direction: column;
  gap: 48px;
  padding-bottom: 24px !important;
}

/* заголовок */
body.pd-on .pd-head h1 {
  margin: 0 !important;
  padding: 0 !important;
  font-size: clamp(36px, 3.8vw, 60px) !important;
  font-weight: 900 !important;
  line-height: .95 !important;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--pd-text) !important;
}
body.pd-on .pd-head h1 .pd-t1 { display: block; }
body.pd-on .pd-head .flags { display: none !important; }   /* theme.js кладёт флаги после h1 — они уже плашками у About */
body.pd-on .pd-sub {
  display: block;
  margin: 8px 0 0 !important;
  font-size: clamp(24px, 2.6vw, 40px);
  font-weight: 900 !important;
  line-height: 1;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

/* заголовки разделов */
body.pd-on .pd-h2 {
  margin: 0 0 20px !important;
  padding: 0 !important;
  font-size: clamp(30px, 2.9vw, 44px) !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: -.02em;
  text-transform: none !important;
  color: var(--pd-text) !important;
}

/* About: заголовок | плашки, текст в две колонки */
body.pd-on .pd-about__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  align-items: center;
  margin-bottom: 20px;
}
body.pd-on .pd-about__head .pd-h2 { margin: 0 !important; }
body.pd-on .pd-pills { display: flex; flex-wrap: wrap; gap: 8px; }
body.pd-on .pd-pills--head { display: none; }   /* копия плашек под названием — только на мобилке */
body.pd-on .pd-pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--pd-lime);
  color: var(--pd-text) !important;
  font-size: 12px;
  font-weight: 700 !important;
  white-space: nowrap;
}
body.pd-on .pd-about__text,
body.pd-on .pd-sec {
  font-size: 16px;
  line-height: 1.15;
  color: var(--pd-text);
}
body.pd-on .pd-about__text {
  columns: 2;
  column-gap: 24px;
}
body.pd-on .pd-about__text p,
body.pd-on .pd-sec p,
body.pd-on .pd-sec h5 {
  margin: 0 0 1em !important;
  font-size: 16px !important;
  line-height: 1.15 !important;
  color: var(--pd-text) !important;
}
body.pd-on .pd-about__text p:last-child,
body.pd-on .pd-sec > :last-child { margin-bottom: 0 !important; }
body.pd-on .pd-about__text strong,
body.pd-on .pd-sec strong { font-weight: inherit !important; }
body.pd-on .pd-sec h5 { font-weight: 700 !important; }

/* карточка характеристик */
body.pd-on .pd-spec {
  display: grid;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  padding: 24px;
  border: 1px solid var(--pd-text);
  border-radius: var(--pd-radius);
}
body.pd-on .pd-spec__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--pd-line);
  font-size: 16px;
  line-height: 1.15;
}
body.pd-on .pd-spec__col > :first-child { padding-top: 0; }
body.pd-on .pd-spec__col > :last-child { border-bottom: 0; padding-bottom: 0; }
body.pd-on .pd-spec__row b { flex: none; font-weight: 700 !important; }
body.pd-on .pd-spec__row span { text-align: right; }
body.pd-on .pd-scale { flex-direction: column; align-items: stretch; gap: 6px; }
body.pd-on .pd-scale__item { display: flex; justify-content: space-between; align-items: center; }
body.pd-on .pd-scale__sq { display: inline-flex; gap: 3px; }
body.pd-on .pd-scale__sq i {
  width: 10px;
  height: 10px;
  border: 1px solid var(--pd-text);
}
body.pd-on .pd-scale__sq i.on { background: var(--pd-text); }

body.pd-on .pd-spec--one { grid-template-columns: minmax(0, 1fr); max-width: 50%; }
@media (max-width: 767px) { body.pd-on .pd-spec--one { max-width: none; } }

/* Region / Farm / Processing / Taste — сетка 2×2 */
body.pd-on .pd-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 24px;
}

/* преимущества — карточки 2×2 */
body.pd-on .p-info-wrapper .content-benefits {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;                     /* как колонки текста выше */
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.pd-on .p-info-wrapper .content-benefit-item {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;        /* иконки на одной высоте во всех карточках */
  gap: 10px;
  width: auto !important;
  max-width: none !important;
  min-height: 112px;
  margin: 0 !important;
  padding: 18px 16px !important;
  border: 1px solid var(--pd-text);
  border-radius: var(--pd-radius);
  text-align: center;
}
body.pd-on .p-info-wrapper .content-benefit-item svg { width: 24px; height: 24px; flex: none; }
body.pd-on .p-info-wrapper .content-benefit-item strong {
  max-width: 190px;
  font-size: 16px !important;
  font-weight: 450 !important;
  line-height: 1.15;
}

/* ---------- You may also like ---------- */
body.pd-on .p-detail-tabs-wrapper {
  margin: 48px 0 0 !important;
  padding: 0 !important;
}
body.pd-on .p-detail-tabs-wrapper .row { margin: 0 !important; max-width: none !important; }
body.pd-on .p-detail-tabs-wrapper .row > div { width: 100% !important; padding: 0 !important; float: none !important; }
body.pd-on .p-detail-tabs-wrapper .shp-tabs-row { display: none !important; }
body.pd-on .p-detail-tabs-wrapper .tab-content,
body.pd-on #productsAlternative {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.pd-on .p-detail-tabs-wrapper .tab-content > .tab-pane { display: none !important; }
body.pd-on .p-detail-tabs-wrapper .tab-content > #productsAlternative { display: block !important; opacity: 1 !important; }

body.pd-on #productsAlternative .custom-heading-2 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  margin: 0 0 48px !important;
  padding: 16px 24px !important;
  background: var(--pd-lime);
  border-radius: 32px;
  font-size: clamp(30px, 3.8vw, 56px) !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: -.02em;
  text-transform: uppercase;
  text-align: center;
  color: var(--pd-text) !important;
}

body.pd-on #productsAlternative .products-alternative {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px 48px;
  margin: 0 0 80px !important;
}
body.pd-on #productsAlternative .products-alternative::before,
body.pd-on #productsAlternative .products-alternative::after { content: none !important; }
body.pd-on #productsAlternative .products-alternative > .product {
  display: block !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
}
body.pd-on #productsAlternative .products-alternative > .product:nth-child(n+7) { display: none !important; }
body.pd-on #productsAlternative .browse-p { display: none !important; }

body.pd-on #productsAlternative .p {
  display: flex !important;
  flex-direction: column;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
body.pd-on #productsAlternative .p .image {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  margin: 0 0 16px !important;
  padding: 0 !important;
  background: var(--pd-bg) !important;   /* фон для multiply: белое у фото становится серым */
  overflow: hidden;
}
body.pd-on #productsAlternative .p .image img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain;
  mix-blend-mode: multiply;        /* белый фон фото сливается с серой страницей */
}
body.pd-on #productsAlternative .p .image .flags { display: none !important; }

body.pd-on #productsAlternative .p-in {
  display: flex !important;
  flex-direction: column;
  flex: 1;
  margin: 0 !important;
  padding: 0 !important;
}
body.pd-on #productsAlternative .p-in-in {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: auto !important;
  margin: 0 0 18px !important;
  padding: 0 16px 14px !important;
  border-bottom: 1px solid var(--pd-line);
}
/* слой темы name::after выходит на 40px за карточку — страница шире экрана на мобилке */
body.pd-on #productsAlternative .p { position: relative !important; }
body.pd-on #productsAlternative .p-in-in .name::after { inset: 0 !important; width: auto !important; height: auto !important; }
body.pd-on #productsAlternative .p-in-in .name { text-decoration: none !important; color: var(--pd-text) !important; }
body.pd-on #productsAlternative .p-in-in .name span {
  display: flex !important;
  flex-direction: column;
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  text-transform: uppercase;
}
body.pd-on #productsAlternative .p-in-in .name span b { font-weight: 900 !important; }
body.pd-on #productsAlternative .p-in-in .name span i { font-style: normal; font-weight: 800 !important; font-size: 15px; }

/* низ карточки: чёрная плашка «Detail ........ €14,30», вся кликабельна */
body.pd-on #productsAlternative .p-bottom {
  margin-top: auto !important;
  padding: 0 !important;
}
body.pd-on #productsAlternative .p-bottom > div {
  position: relative;
  display: flex !important;
  flex-direction: row-reverse;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 20px !important;
  background: var(--pd-text);
  border-radius: 12px;
  color: #fff;
  transition: background-color .2s ease;
}
body.pd-on #productsAlternative .p-bottom > div:hover { background: #000; }
body.pd-on #productsAlternative .p-bottom .prices { flex: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; text-align: right; }
body.pd-on #productsAlternative .p-bottom .price-additional { display: none !important; }
body.pd-on #productsAlternative .p-bottom .price-final,
body.pd-on #productsAlternative .p-bottom .price-final strong {
  margin: 0 !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}
body.pd-on #productsAlternative .p-bottom .p-tools { flex: 1 1 auto !important; width: auto !important; min-width: 0; margin: 0 !important; padding: 0 !important; display: block !important; text-align: left !important; }
body.pd-on #productsAlternative .p-bottom .p-tools .btn {
  position: static !important;
  display: inline !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 450 !important;
  text-transform: none !important;
}
body.pd-on #productsAlternative .p-bottom .p-tools .btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
}
body.pd-on #productsAlternative .p-bottom > div:hover .btn { color: var(--pd-lime) !important; }

/* ---------- планшет ---------- */
@media (max-width: 1199px) {
  body.pd-on .p-detail .product-top { column-gap: 32px; }
  body.pd-on .pd-buy { flex-wrap: wrap; gap: 12px; }
  body.pd-on .pd-buy .add-to-cart-button { flex-basis: 100%; }
  body.pd-on #productsAlternative .products-alternative { gap: 40px 24px; }
}

/* ---------- мобилка: одна колонка ---------- */
@media (max-width: 767px) {
  body.pd-on .p-detail .product-top {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 32px;
    padding-top: 16px !important;
  }
  /* как в макете: Back · фото · покупка · название с плашками · About … */
  body.pd-on .p-detail .product-top > .p-info-wrapper { display: contents !important; }
  body.pd-on .p-info-wrapper > * { order: 1; }
  body.pd-on .p-detail .product-top > .pd-back { order: -2; margin: 0 0 -12px !important; }
  body.pd-on .p-detail .product-top > .p-image-wrapper { order: 0; }

  /* варианты слева, количество справа, «Add to cart» — строкой ниже на всю ширину */
  body.pd-on .pd-buy { gap: 12px; justify-content: space-between; }
  body.pd-on .pd-buy .quantity { margin-left: auto !important; }
  body.pd-on .pd-buy .add-to-cart-button { flex-basis: 100%; }

  /* плашки — под названием (у About прячем) */
  body.pd-on .pd-head .pd-pills--head { display: flex; margin-top: 14px; }
  body.pd-on .pd-about__head .pd-pills { display: none; }
  body.pd-on .pd-about__head { display: block; }

  body.pd-on .pd-about__text { columns: 1; }
  body.pd-on .pd-spec { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  body.pd-on .pd-spec__col + .pd-spec__col { border-top: 1px solid var(--pd-line); margin-top: 12px; padding-top: 12px; }
  /* шкалы: подпись слева, квадратики справа */
  body.pd-on .pd-scale__item { flex-direction: row-reverse; font-weight: 700; }
  body.pd-on .pd-sections { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  body.pd-on .p-info-wrapper .content-benefits { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  body.pd-on .p-info-wrapper .content-benefit-item { min-height: 96px; }

  body.pd-on #productsAlternative .custom-heading-2 { min-height: 72px; margin-bottom: 32px !important; border-radius: 20px; }
  body.pd-on #productsAlternative .products-alternative { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  body.pd-on .pd-var,
  body.pd-on .pd-buy .add-to-cart-button { transition: none !important; }
}

/* =====================================================================
   ОКНО «ADDED TO CART» (colorbox Shoptet) — карточка в стиле сайта.
   Только окно с .advanced-order — остальные окна colorbox (галерея) не трогаем.
   Размеры/позицию colorbox пишет инлайном — центрируем и задаём ширину сами,
   высота — по содержимому.
   ===================================================================== */
body:has(#colorbox .advanced-order) #cboxOverlay {
  background: rgba(20, 20, 20, .12) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 1 !important;
}
#colorbox:has(.advanced-order) {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  width: min(520px, calc(100vw - 32px)) !important;
  height: auto !important;
  overflow: visible !important;
  transform: translate(-50%, -50%);
  animation: mn-cart-pop .35s cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes mn-cart-pop {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 14px)); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}
#colorbox:has(.advanced-order) #cboxWrapper,
#colorbox:has(.advanced-order) #cboxWrapper > div,
#colorbox:has(.advanced-order) #cboxContent,
#colorbox:has(.advanced-order) #cboxLoadedContent {
  width: auto !important;
  height: auto !important;
  float: none !important;
  overflow: visible !important;   /* у colorbox overflow:hidden + фикс. высота — иначе окно обрезается */
}
#colorbox:has(.advanced-order) #cboxWrapper { position: relative !important; }   /* иначе #colorbox нулевой высоты */
#colorbox:has(.advanced-order) #cboxWrapper > div:first-child,
#colorbox:has(.advanced-order) #cboxWrapper > div:last-child,
#colorbox:has(.advanced-order) #cboxMiddleLeft,
#colorbox:has(.advanced-order) #cboxMiddleRight { display: none !important; }
#colorbox:has(.advanced-order) #cboxContent {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  margin: 0 !important;
  background: #fff !important;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
}
#colorbox:has(.advanced-order) #cboxLoadedContent {
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}
#colorbox .advanced-order {
  padding: 40px 44px 44px;
  text-align: left;
  color: #141414;
}
/* «● Added to cart» — небольшая подпись с лаймовой точкой */
#colorbox .advanced-order .h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px !important;
  padding: 0 !important;
  font-size: 15px !important;
  font-weight: 450 !important;
  line-height: 1.2 !important;
  letter-spacing: 0;
  text-transform: none;
  text-align: left !important;
  color: #6b6b6b !important;
}
#colorbox .advanced-order .h1::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #DCFF50;
  box-shadow: 0 0 0 4px rgba(220, 255, 80, .35);
}
/* название товара — крупно, как заголовки страницы */
#colorbox .advanced-order .h2 {
  margin: 0 0 32px !important;
  padding: 0 !important;
  font-size: clamp(24px, 6vw, 34px) !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: -.02em;
  text-transform: uppercase;
  text-align: left !important;
  color: #141414 !important;
}
#colorbox .advanced-order .extras-wrap:empty { display: none; }
#colorbox .advanced-order .advancedOrder__buttons {
  display: flex !important;
  gap: 12px;
  margin: 0 !important;
  padding: 0 !important;
}
#colorbox .advanced-order .advancedOrder__buttons .btn {
  flex: 1 1 0;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: 50px !important;
  margin: 0 !important;
  padding: 0 20px !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  text-transform: none !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
#colorbox .advanced-order .next-step-back {
  background: transparent !important;
  border: 1px solid #141414 !important;
  color: #141414 !important;
}
#colorbox .advanced-order .next-step-back:hover { background: #141414 !important; color: #fff !important; }
#colorbox .advanced-order .btn-conversion {
  background: #DCFF50 !important;
  border: 1px solid #DCFF50 !important;
  color: #141414 !important;
}
#colorbox .advanced-order .btn-conversion:hover { background: #141414 !important; border-color: #141414 !important; color: #DCFF50 !important; }
#colorbox .advanced-order .btn:active { transform: scale(.97); }
/* крестик */
#colorbox:has(.advanced-order) #cboxClose {
  top: 18px !important;
  right: 18px !important;
  width: 36px !important;
  height: 36px !important;
  background: transparent !important;
  border-radius: 50%;
  transition: background-color .2s ease;
}
#colorbox:has(.advanced-order) #cboxClose:hover { background: #f2f2f2 !important; }
@media (max-width: 480px) {
  #colorbox .advanced-order { padding: 32px 24px 28px; }
  #colorbox .advanced-order .advancedOrder__buttons { flex-direction: column-reverse; }
  #colorbox .advanced-order .advancedOrder__buttons .btn { flex: none; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  #colorbox:has(.advanced-order) { animation: none; }
}

/* =====================================================================
   ПОДСКАЗКИ (tooltip Bootstrap: «The minimum quantity…» и т. п.)
   ===================================================================== */
body .tooltip { font-size: 13px; z-index: 10050; }
body .tooltip .tooltip-inner {
  max-width: 220px;
  padding: 9px 14px;
  background: #141414;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  color: #F7F7F7;
  font-size: 13px;
  font-weight: 450;
  line-height: 1.3;
  text-align: center;
}
body .tooltip.top .tooltip-arrow    { border-top-color: #141414; }
body .tooltip.bottom .tooltip-arrow { border-bottom-color: #141414; }
body .tooltip.left .tooltip-arrow   { border-left-color: #141414; }
body .tooltip.right .tooltip-arrow  { border-right-color: #141414; }
body .tooltip.in { opacity: 1; }

/* рамка при наведении: inline-стиль сайта (.products-block .product:hover { border … !important })
   + transition темы 0.2s на карточке давали мелькание рамки — гасим всё */
body.pd-on #productsAlternative .product,
body.pd-on #productsAlternative .product:hover,
body.pd-on.type-detail .p-detail-tabs-wrapper #productsAlternative .product:hover,   /* сильнее правила theme.css */
body.pd-on #productsAlternative .p,
body.pd-on #productsAlternative .p:hover {
  border: 0 !important;           /* theme.css: #productsAlternative .product:hover { border: 3px … !important } */
  outline: 0 !important;
  box-shadow: none !important;
  transition: none !important;
}
