
:root {
  --pd-ink: #1a1a1a;
  --pd-muted: #8b9098;
  --pd-line: #e6e8ee;
  --pd-soft: #f5f6f8;
  --pd-link: #3d5afe;
  --pd-price: #1f6b3a;
  --pd-grad: linear-gradient(0.25turn, #3d5afe 0%, #8e24aa 50%, #ff6d00 100%);
  --pd-radius: 16px;
  --pd-font: var(--t-text-font, 'TildaSans', Arial, sans-serif);
  --pd-font-h: var(--t-headline-font, 'TildaSans', Arial, sans-serif);
}

.t-store__prod-snippet__container {
  background: #f5f6f8 !important;
  padding: 24px 0 64px !important;
  font-family: var(--pd-font) !important;
  color: var(--pd-ink) !important;
  overflow: visible !important;
}

/* Контентная колонка 1280 */
.pd-shell,
.t-store__prod-snippet__container .t-container {
  max-width: 1280px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-sizing: border-box !important;
}
.pd-shell .t-store__product-snippet,
.t-store__prod-snippet__container .t-container .t-store__product-snippet {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 !important;
}

.t-store__prod-popup__close-txt-wr {
  position: static !important;
  max-width: 1280px !important;
  margin: 0 auto 12px !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
}
.t-store__prod-popup__close-txt {
  color: var(--pd-muted) !important;
  font-size: 13px !important;
  text-decoration: none !important;
}
.t-popup__close { display: none !important; }

.t-store__product-snippet.is-pd,
.t-store__product-snippet.is-pd .t-col,
.t-store__product-snippet.is-pd .t-store__prod-popup__col-left,
.t-store__product-snippet.is-pd .t-store__prod-popup__col-right {
  float: none !important;
  box-sizing: border-box !important;
}

/*
  Слева: фото + описание (колонка)
  Справа: цена (sticky) — больше не наезжает на текст
*/
.t-store__product-snippet.is-pd {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  overflow: visible !important;
}

.pd-layout {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  gap: 24px !important;
  width: 100% !important;
}

.pd-left {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
}

.pd-gallery {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  position: relative !important;
  background: #fff !important;
  border: 1px solid var(--pd-line) !important;
  border-radius: var(--pd-radius) !important;
  padding: 10px !important;
  box-sizing: border-box !important;
  z-index: 1 !important;
}

.pd-buy {
  flex: 0 0 480px !important;
  width: 480px !important;
  max-width: 480px !important;
  min-width: 320px !important;
  position: sticky !important;
  /* ниже фиксированного меню шапки (высоту считает JS) */
  top: var(--pd-buy-top, 160px) !important;
  align-self: flex-start !important;
  background: #fff !important;
  border: 1px solid var(--pd-line) !important;
  border-radius: var(--pd-radius) !important;
  padding: 20px !important;
  box-shadow: 0 6px 24px rgba(20, 24, 40, 0.07) !important;
  z-index: 2 !important;
}

.pd-main {
  width: 100% !important;
  max-width: 100% !important;
  background: #fff !important;
  border: 1px solid var(--pd-line) !important;
  border-radius: var(--pd-radius) !important;
  padding: 20px 22px 24px !important;
  position: relative !important;
  z-index: 1 !important;
}

.pd-gallery .t-col,
.pd-main .t-store__prod-popup__info,
.pd-main .t-col {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
}
/* Карточка на всю ширину описания, само фото остаётся прежнего размера */
.pd-gallery .t-store__prod-popup__slider {
  float: none !important;
  width: 100% !important;
  max-width: 520px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
}

/* Плейсхолдер Tilda (пустой js-product-img) прячем, когда слайдер уже есть */
.pd-gallery .t-slds ~ .js-product-img,
.pd-gallery .t-store__prod-popup__slider > .js-product-img:not([data-original]):first-child {
  display: none !important;
}
.pd-gallery .js-product-img.pd-img-hide {
  display: none !important;
}

.pd-gallery .t-slds__main,
.pd-gallery .t-slds__container,
.pd-gallery .t-slds__item,
.pd-gallery .t-slds__wrapper {
  border-radius: 12px !important;
  background: #fff !important;
}
.pd-gallery .t-slds__bgimg,
.pd-gallery .t-bgimg,
.pd-gallery .t-slds__img,
.pd-gallery .t-slds__item .js-product-img {
  background-size: contain !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: #fff !important;
  opacity: 1 !important;
}
.pd-gallery .t-slds__thumbsbtn {
  border-radius: 8px !important;
  overflow: hidden !important;
  border: 1px solid #e3e6ea !important;
  background: #fff !important;
}
.pd-gallery .t-slds__thumbsbtn .t-slds__bgimg,
.pd-gallery .t-slds__thumbsbtn .t-bgimg {
  background-size: contain !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: #fff !important;
}
.pd-gallery .t-slds__arrow-withbg {
  background: #fff !important;
  border: 1px solid #e3e6ea !important;
  box-shadow: 0 2px 10px rgba(20, 24, 40, 0.08) !important;
  border-radius: 50% !important;
}
.pd-gallery .t-slds__bullet { background: #cfd3d9 !important; opacity: 1 !important; }
.pd-gallery .t-slds__bullet_active { background: #8e24aa !important; }

.pd-buy .t-store__prod-popup__title-wrapper { margin: 0 0 12px !important; }
.pd-buy .t-store__prod-popup__name,
.pd-buy .js-store-prod-name {
  font-family: var(--pd-font-h) !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  color: var(--pd-ink) !important;
  margin: 0 0 8px !important;
}
.pd-buy .t-store__prod-popup__brand {
  color: var(--pd-muted) !important;
  font-size: 13px !important;
  margin: 0 0 4px !important;
}
.pd-buy .t-store__prod-popup__sku,
.pd-sku-hidden {
  display: none !important;
}
.pd-sku-line {
  display: flex !important;
  align-items: baseline !important;
  gap: 6px !important;
  margin: 0 0 14px !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}
.pd-sku-line::before,
.pd-sku-line::after,
.pd-sku-label::before,
.pd-sku-label::after,
.pd-sku-num::before,
.pd-sku-num::after {
  content: none !important;
  display: none !important;
}
.pd-sku-label {
  color: var(--pd-muted) !important;
  font-weight: 500 !important;
}
.pd-sku-num {
  color: var(--pd-ink) !important;
  font-weight: 600 !important;
}

.pd-buy .js-product-controls-wrapper {
  display: block !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}
.pd-buy .js-product-controls-wrapper select.pd-select-hidden,
.pd-buy .js-product-controls-wrapper .pd-select-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  clip: rect(0, 0, 0, 0) !important;
}

/* Размеры — плитки */
.pd-sizes {
  margin: 0 0 4px;
}
.pd-sizes__label {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pd-muted);
}
.pd-sizes__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pd-size-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--pd-line);
  border-radius: 10px;
  background: #fff;
  color: var(--pd-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
  user-select: none;
}
.pd-size-chip:hover {
  border-color: #b8bcc4;
  background: var(--pd-soft);
}
.pd-size-chip.is-active {
  border-color: transparent;
  background: var(--pd-grad);
  color: #fff;
}
.pd-size-chip.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

.pd-buy .t-store__prod-popup__price-wrapper,
.pd-buy .js-store-price-wrapper {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  gap: 8px 12px !important;
  margin: 0 0 4px !important;
}
.pd-buy .t-store__prod-popup__price,
.pd-buy .js-store-prod-price {
  color: var(--pd-ink) !important;
  font-family: var(--pd-font-h) !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  margin: 0 !important;
}
.pd-buy .t-store__prod-popup__price_old,
.pd-buy .js-store-prod-price-old {
  color: var(--pd-muted) !important;
  font-size: 15px !important;
  text-decoration: line-through !important;
}
.pd-buy__note {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--pd-muted);
}
.pd-actions,
.pd-buy .t-store__prod-popup__btn-wrapper {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 0 14px !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.pd-actions .t-store__prod-popup__btn-wrapper {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  width: auto !important;
  margin: 0 !important;
}
.pd-buy .t-store__prod-popup__btn,
.pd-buy .js-store-prod-popup-buy-btn,
.pd-buy .t-btn {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  height: 50px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--pd-grad) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  text-align: center !important;
  text-decoration: none !important;
  box-shadow: none !important;
  white-space: normal !important;
}
.pd-manager {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 1 0 !important;
  min-width: 0 !important;
  height: 50px !important;
  padding: 0 10px !important;
  border: 1px solid var(--pd-line) !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: var(--pd-ink) !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  text-align: center !important;
  text-decoration: none !important;
  cursor: pointer !important;
  appearance: none !important;
  box-sizing: border-box !important;
}
.pd-manager:hover {
  border-color: #b8bcc4 !important;
  background: var(--pd-soft) !important;
  color: var(--pd-ink) !important;
}
.pd-buy__box {
  padding-top: 12px;
  border-top: 1px solid var(--pd-line);
}
.pd-buy__box-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 10px;
}
.pd-buy__row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--pd-ink);
}
.pd-buy__ico {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  opacity: 0.65;
}

.pd-main .t-store__prod-popup__title-wrapper,
.pd-main .js-product-controls-wrapper,
.pd-main .t-store__prod-popup__price-wrapper,
.pd-main .js-store-price-wrapper {
  display: none !important;
}
.pd-main .t-store__prod-popup__links-wrapper a {
  color: var(--pd-link) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  text-decoration: none !important;
}
.pd-section-title {
  font-family: var(--pd-font-h) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  margin: 8px 0 12px !important;
  color: var(--pd-ink) !important;
}
.pd-main .t-store__prod-popup__text,
.pd-main .js-store-prod-text {
  font-size: 15px !important;
  line-height: 1.55 !important;
  color: var(--pd-ink) !important;
  margin: 0 0 8px !important;
}

/* Описание — информативные блоки */
.pd-desc {
  margin: 0 0 8px;
}
.pd-desc .pd-section-title {
  margin-top: 0 !important;
}
.pd-desc__p {
  margin: 0 0 14px !important;
  padding: 0 !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: var(--pd-ink) !important;
  font-weight: 400 !important;
  max-width: 72ch;
}
.pd-desc__p_lead {
  font-size: 15px !important;
  color: var(--pd-ink) !important;
}
.pd-desc__p + .pd-desc__p {
  color: #33363c !important;
}
.pd-desc__norms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 18px;
}
.pd-desc__chip {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--pd-soft);
  border: 1px solid var(--pd-line);
  color: #4a4e57;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}
.pd-desc__subtitle {
  font-family: var(--pd-font-h) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--pd-ink) !important;
  margin: 8px 0 10px !important;
}
.pd-desc__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
  margin: 0 0 8px;
  padding: 4px 0 0;
  border-top: 1px solid var(--pd-line);
}
.pd-desc__row {
  display: grid;
  grid-template-columns: minmax(34%, 140px) 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid #eef0f3;
}
.pd-desc__k {
  color: var(--pd-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}
.pd-desc__v {
  color: var(--pd-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.pd-desc__list {
  margin: 0 0 8px !important;
  padding: 0 0 0 1.15em !important;
  list-style: disc !important;
}
.pd-desc__list li {
  margin: 0 0 10px !important;
  padding: 0 !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
  color: var(--pd-ink) !important;
  max-width: 72ch;
}
.pd-text-hidden {
  display: none !important;
}
@media (max-width: 720px) {
  .pd-desc__specs { grid-template-columns: 1fr; gap: 0; }
  .pd-desc__row { grid-template-columns: 1fr 1.2fr; }
}
.pd-charcs {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0 32px !important;
  margin: 0 !important;
}
.pd-charc {
  display: grid !important;
  grid-template-columns: minmax(36%, 1fr) 1.2fr !important;
  gap: 8px !important;
  align-items: baseline !important;
  padding: 9px 0 !important;
  margin: 0 !important;
  font-size: 14px !important;
  border-bottom: 1px solid #eef0f3 !important;
}
.pd-charc__label { color: var(--pd-muted) !important; }
.pd-charc__value { color: var(--pd-ink) !important; font-weight: 500 !important; }

@media (max-width: 960px) {
  .pd-layout {
    flex-wrap: wrap !important;
  }
  .pd-left,
  .pd-buy {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .pd-gallery { max-width: 100% !important; }
  .pd-buy { position: relative !important; top: auto !important; }
  .pd-charcs { grid-template-columns: 1fr !important; }
}
@media (max-width: 720px) {
  .pd-buy .t-store__prod-popup__name,
  .pd-buy .js-store-prod-name { font-size: 22px !important; }
  .pd-buy .t-store__prod-popup__btn-wrapper { flex-wrap: wrap !important; }
  .pd-buy .t-store__prod-popup__btn,
  .pd-buy .t-btn,
  .pd-manager { flex: 1 1 100% !important; }
}

