/* Карточка товара по макету из Figma: заголовок и крошки сверху, большое фото слева,
   узкая колонка покупки справа (цена со скидкой, «В корзину», маркетплейсы, опт, гарантия),
   ниже «Характеристики и описание» — строки со стрелкой в кружке и колонка «Цвет и материал».
   Галерея, панель справа и просмотр фото — из product.css. */
.tpc {
  --ink: #333;
  --text: #555;
  --muted: #8a8a8a;
  --hair: #dcdcdc;
  --well: #f5f5f5;
  --accent: #ff7e29;
  --accent-press: #f26b12;
  --head-font: "Inter", "Montserrat", Arial, sans-serif;
  color: var(--text);
  overflow-x: clip;
}
.tpc *,
.tpc *::before,
.tpc *::after {
  box-sizing: border-box;
}
.tpc :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.tpc a {
  text-decoration: none;
}

/* заголовок и крошки */
.tpc-top {
  padding-top: 56px;
}
.tpc .tpc-top h1 {
  margin: 0;
  font: 600 clamp(28px, 2.5vw, 48px) / 1.15 var(--head-font) !important;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.tpc-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-top: 14px;
  font-size: 13px;
  color: #999;
}
.tpc-crumbs a {
  color: #999;
  transition: color 0.2s;
}
.tpc-crumbs a:hover {
  color: var(--ink);
}
.tpc-crumbs i {
  font-style: normal;
  color: #ccc;
}

/* фото + колонка покупки */
.tpc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 120px;
  align-items: start;
}
.tpc-grid > * {
  min-width: 0;
}
.tpc-top + .tpc-grid {
  margin-top: 48px;
}
.tpc .tmp-track {
  background: #fff;
  border-radius: 0;
}
/* фото товара 3:4 (900×1200) — сцена той же пропорции, по центру левой колонки */
.tpc .tmp-stage,
.tpc .tmp-thumbs {
  width: min(100%, 450px);
  margin-left: auto;
  margin-right: auto;
}
.tpc .tmp-slide {
  aspect-ratio: 3 / 4;
  height: auto;
}
.tpc .tmp-slide img {
  object-fit: cover;
}
.tpc .tmp-thumbs {
  justify-content: flex-start;
  margin-top: 16px;
}
.tpc .tmp-arrow--prev {
  left: 12px;
}
.tpc .tmp-arrow--next {
  right: 12px;
}
.tpc .tmp-thumb {
  width: 48px;
  height: 64px;
  border-radius: 4px;
}
.tpc .tmp-thumb.is-active {
  border: 1px solid var(--ink);
}

.tpc-buy {
  position: sticky;
  top: 112px;
  padding-top: 20px;
}
.tpc-price {
  display: flex;
  align-items: center;
  gap: 16px;
}
.tpc-price b {
  font: 700 30px/1 var(--head-font) !important;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tpc-off {
  padding: 3px 9px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--accent);
  white-space: nowrap;
}
.tpc-old {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  color: var(--muted);
}
.tpc-hint {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.tpc-add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 54px;
  margin-top: 24px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  font: 600 15px/1 "Montserrat", Arial, sans-serif;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s;
}
.tpc-add:hover {
  background: var(--accent-press);
}
.tpc-add:active {
  transform: translateY(1px);
}
.tpc-add.is-added {
  background: var(--ink);
}
.tpc-add[aria-busy="true"] {
  opacity: 0.7;
}
.tpc-mps {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}
.tpc-mp {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.tpc-mp i {
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
}
.tpc-mp span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.tpc-mp b {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.2s;
}
.tpc-mp small {
  font-size: 12px;
  color: var(--text);
}
.tpc-mp:hover b {
  color: var(--accent);
}
.tpc-opt {
  display: inline-block;
  margin-top: 28px;
  padding: 0;
  border: 0;
  background: none;
  font: 600 14px/1.4 "Montserrat", Arial, sans-serif;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  transition: color 0.2s;
}
.tpc-opt:hover {
  color: var(--accent);
}
.tpc-warranty {
  margin-top: 28px;
}
.tpc-warranty p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  color: var(--ink);
}
.tpc-warranty svg {
  flex: none;
  color: var(--muted);
}
.tpc-warranty small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

/* характеристики и описание */
.tpc-info {
  margin-top: 120px;
}
.tpc-info__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.tpc .tpc-info__head h2 {
  margin: 0;
  font: 600 28px/1.2 var(--head-font) !important;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.tpc-src {
  font-size: 12px;
  color: var(--muted) !important;
}
.tpc-src b {
  font-weight: 400;
  color: #cb11ab;
}
.tpc-src:hover {
  text-decoration: underline;
}
.tpc-mpname {
  margin: 14px 0 0;
  font: 700 18px/1.4 "Montserrat", Arial, sans-serif;
  color: var(--ink);
}
.tpc-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}
.tpc-pill {
  height: 40px;
  padding: 0 20px;
  border: 1px solid #cfcfcf;
  border-radius: 999px;
  background: #fff;
  font: 500 13px/1 "Montserrat", Arial, sans-serif;
  color: var(--muted);
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.tpc-pill:hover,
.tpc-pill.is-active {
  border-color: var(--ink);
  color: var(--ink);
}
.tpc-reviews {
  margin-left: 8px;
  font-size: 13px;
  color: var(--accent) !important;
}
.tpc-reviews:hover {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
.tpc-rows {
  margin-top: 16px;
}
.tpc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 44px 0 32px;
  border: 0;
  border-bottom: 1px solid #9a9a9a;
  background: none;
  font: 600 20px/1.3 "Montserrat", Arial, sans-serif;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.tpc-row small {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}
.tpc-row svg {
  flex: none;
  color: var(--ink);
  transition: transform 0.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tpc-row:hover span {
  color: var(--accent);
}
.tpc-row:hover svg {
  transform: translateX(4px);
}

.tpc-aside {
  padding-top: 100px;
}
.tpc-sub {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--muted);
}
.tpc .tpc-aside h3 {
  margin: 20px 0 0;
  font: 700 17px/1.3 "Montserrat", Arial, sans-serif !important;
  color: var(--ink);
}
.tpc-sw {
  display: grid;
  gap: 20px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}
.tpc-sw li {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0;
}
.tpc-sw li::before {
  display: none !important;
}
.tpc-sw i {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--well);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.tpc-sw span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tpc-sw b {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.tpc-sw small {
  font-size: 12px;
  color: var(--muted);
}

/* блоки ниже: в интерьере, комплект, похожие */
.tpc-block {
  margin-top: 120px;
}
.tpc-block:last-of-type {
  margin-bottom: 104px;
}
.tpc-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.tpc .tpc-h2,
.tpc-block .tpc-h2 {
  margin: 0;
  font: 600 clamp(26px, 2.2vw, 36px) / 1.15 var(--head-font) !important;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.tpc-block .tmp-gallery {
  margin-top: 28px;
}

@media (max-width: 1199px) {
  .tpc-grid {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 56px;
  }
}
@media (max-width: 991px) {
  .tpc-top {
    padding-top: 32px;
  }
  .tpc-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .tpc-top + .tpc-grid {
    margin-top: 28px;
  }
  .tpc-buy {
    position: static;
    padding-top: 0;
    max-width: 480px;
  }
  .tpc-info {
    margin-top: 64px;
  }
  .tpc-aside {
    padding-top: 0;
  }
  .tpc-block {
    margin-top: 72px;
  }
}
@media (max-width: 767px) {
  .tpc-crumbs i:last-of-type,
  .tpc-crumbs span {
    display: none;
  }
  .tpc .tmp-track {
    margin: 0;
  }
  .tpc .tmp-thumbs {
    display: flex;
    justify-content: flex-start;
  }
  .tpc-price b {
    font-size: 28px !important;
  }
  .tpc .tpc-info__head h2 {
    font-size: 22px !important;
  }
  .tpc-mpname {
    font-size: 16px;
  }
  .tpc-row {
    padding: 28px 0 22px;
    font-size: 17px;
  }
  .tpc-sw i {
    width: 48px;
    height: 48px;
  }
  .tpc-block {
    margin-top: 56px;
  }
  .tpc-block:last-of-type {
    margin-bottom: 64px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tpc * {
    transition: none !important;
  }
}

/* ── сверка с Figma (секция «2», 1914): фото слева и крупнее, шрифты и размеры из макета ── */
.tpc .tmp-stage,
.tpc .tmp-thumbs {
  width: min(100%, 600px);
  margin-left: 0;
  margin-right: 0;
}
.tpc .tmp-thumbs {
  justify-content: flex-start;
}
.tpc .tpc-top h1 {
  font: 700 clamp(28px, 2.6vw, 50px) / 1.15 var(--head-font) !important;
}
.tpc-crumbs {
  color: #999;
}
.tpc-crumbs i {
  font-size: 15px;
  color: #ddd;
}
.tpc-price b {
  font: 600 36px/1 "Montserrat", Arial, sans-serif !important;
}
.tpc-off {
  padding: 2px 10px;
  font-size: 15px;
}
.tpc-old {
  margin-top: 10px;
  font-size: 20px;
  color: #999;
}
.tpc-hint {
  color: #888;
}
.tpc-add {
  width: 288px;
  max-width: 100%;
  height: 58px;
  margin-top: 56px;
}
.tpc-buy {
  width: 100%;
}
.tpc-grid {
  grid-template-columns: minmax(0, 1fr) 300px;
}
.tpc-mp i {
  width: 12px;
  height: 12px;
  margin-top: 4px;
}
.tpc-mp b {
  font-size: 13px;
  font-weight: 500;
  color: #000;
}
.tpc-mp small {
  font-size: 13px;
  color: #000;
}
.tpc-opt {
  font-size: 15px;
  font-weight: 500;
  color: #404040;
}
.tpc-warranty p {
  color: #545454;
}
.tpc-warranty small {
  color: #888;
}
.tpc .tpc-info__head h2 {
  font: 700 28px/1.25 var(--head-font) !important;
}
.tpc-src {
  font-size: 13px;
}
.tpc-mpname {
  margin-top: 18px;
  font: 700 22px/1.3 var(--head-font);
}
.tpc-pill {
  height: 46px;
  padding: 0 22px;
  border-color: #999;
  font: 600 15px/1 "Montserrat", Arial, sans-serif;
  color: #9a9a9a;
}
.tpc-pill:hover,
.tpc-pill.is-active {
  border-color: #000;
  color: #222;
}
.tpc-row {
  padding: 48px 0 36px;
  border-bottom-color: #4f4f4f;
  font: 700 24px/26px "Montserrat", Arial, sans-serif;
  color: #4f4f4f;
}
.tpc-row svg {
  width: 28px;
  height: 28px;
  color: #4f4f4f;
}
.tpc-sub {
  font-size: 13px;
  color: #777;
}
.tpc .tpc-aside h3 {
  font: 700 20px/1.3 "Montserrat", Arial, sans-serif !important;
}
.tpc-sw i {
  width: 66px;
  height: 66px;
}
.tpc-sw b {
  font-size: 15px;
  font-weight: 500;
  color: #000;
}
.tpc-sw small {
  font-size: 13px;
  color: #898989;
}
@media (max-width: 991px) {
  .tpc-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .tpc .tmp-stage,
  .tpc .tmp-thumbs {
    width: min(100%, 520px);
  }
}
@media (max-width: 767px) {
  .tpc-price b {
    font-size: 30px !important;
  }
  .tpc-row {
    padding: 30px 0 22px;
    font-size: 18px;
  }
  .tpc-row svg {
    width: 24px;
    height: 24px;
  }
  .tpc-mpname {
    font-size: 18px;
  }
  .tpc-sw i {
    width: 52px;
    height: 52px;
  }
}
.tpc a.tpc-opt {
  text-decoration: underline !important;
  text-underline-offset: 4px;
}

/* верх карточки: блок цены не прижат к правому краю, стоит посередине свободного места */
.tpc-grid:not(.tpc-info) {
  grid-template-columns: minmax(0, 600px) minmax(0, 1fr);
  gap: 64px;
}
.tpc-grid:not(.tpc-info) .tpc-buy {
  justify-self: center;
  width: min(100%, 380px);
}
@media (max-width: 991px) {
  .tpc-grid:not(.tpc-info) {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .tpc-grid:not(.tpc-info) .tpc-buy {
    justify-self: start;
  }
}

/* описание, характеристики, размеры, фото — раскрываются на месте */
.tpc-acc > summary {
  list-style: none;
  cursor: pointer;
}
.tpc-acc > summary::-webkit-details-marker {
  display: none;
}
.tpc-acc > summary svg {
  transform: rotate(90deg);
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tpc-acc > summary:hover svg {
  transform: rotate(90deg) translateY(-2px);
}
.tpc-acc[open] > summary svg {
  transform: rotate(-90deg);
}
.tpc-acc[open] > summary span {
  color: #111;
}
.tpc-acc__body {
  padding: 28px 0 8px;
  font-size: 15px;
  line-height: 1.65;
  color: #333;
  animation: tpc-acc-in 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tpc-acc__body p {
  margin: 0 0 14px;
}
.tpc-acc__body .tmp-dims img {
  max-width: 100%;
  height: auto;
}
@keyframes tpc-acc-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .tpc-acc__body {
    animation: none;
  }
}
.tpc-acc { scroll-margin-top: 110px; }


/* карточки «Похожие товары» и «Входит в комплект» на странице товара — как в каталоге (site.css сюда не грузится) */
/* ── карточка каталога / комплекта (.tmk) ────────────────── */
#tm-root .tpc .tmk .catalog-block__item {
  border: 2px solid var(--tm-line) !important;
  border-radius: var(--tm-radius) !important;
  box-shadow: none !important;
  padding: 18px !important;
  transition: border-color 0.2s;
}
#tm-root .tpc .tmk:hover .catalog-block__item {
  border-color: var(--tm-line-hover) !important;
}
#tm-root .tpc .tmk__img {
  border-radius: 12px !important;
  background: #fff !important;
}
#tm-root .tpc .tmk__img img {
  object-fit: contain !important;
}
#tm-root .tpc .tmk .tmk__stickers {
  position: absolute;
  top: 26px;
  left: 26px;
  z-index: 1;
}
#tm-root .tpc .tmb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#tm-root .tpc .tmb-chip {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  font: 600 11px/1 "Inter", "Montserrat", Arial, sans-serif;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff;
}
#tm-root .tpc .tmb-chip--dark {
  background: #2c2c2c;
  color: #ddd;
}
#tm-root .tpc .tmb-chip--new {
  background: #d428ff;
}
#tm-root .tpc .tmb-chip--sale {
  background: #2885ff;
}
#tm-root .tpc .tmk__name {
  font: 500 17px/1.3 "Montserrat", Arial, sans-serif !important;
  color: #222 !important;
}
#tm-root .tpc .tmk:hover .tmk__name {
  color: var(--tm-accent) !important;
}
#tm-root .tpc .tmk__price {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font: 600 20px/1 "Montserrat", Arial, sans-serif !important;
  color: #222 !important;
}
#tm-root .tpc .tmk__price s {
  font: 400 14px/1 "Montserrat", Arial, sans-serif;
  color: #999;
}
#tm-root .tpc .tmk .btn {
  border-radius: 999px !important;
}
#tm-root .tpc .tmb-chip {
  height: 30px;
  padding: 0 14px;
  border-radius: 15px;
  font: 600 12px/1 "Inter", "Montserrat", Arial, sans-serif;
  letter-spacing: 0.01em;
}
#tm-root .tpc .tmk .catalog-block__item {
  border-color: var(--tm-line) !important;
}
#tm-root .tpc .tmk__name {
  font: 600 17px/1.25 "Montserrat", Arial, sans-serif !important;
  color: #333 !important;
}
#tm-root .tpc .tmk__price {
  font: 700 22px/1 "Montserrat", Arial, sans-serif !important;
  color: #333 !important;
}
#tm-root .tpc .tmk__price s {
  font: 400 15px/1 "Montserrat", Arial, sans-serif;
  color: #999;
}
#tm-root .tpc .tmk__off {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  height: 24px;
  margin-bottom: 8px;
  padding: 0 10px;
  border: 1px solid var(--tm-accent);
  border-radius: 999px;
  font: 500 13px/1 "Montserrat", Arial, sans-serif;
  font-style: normal;
  color: var(--tm-accent);
}
#tm-root .tpc .tmk .tmk__status {
  font: 400 13px/1.2 "Inter", "Montserrat", Arial, sans-serif;
}
#tm-root .tpc .tmk__off {
  margin-top: auto;
}
#tm-root .tpc .tmk__off + .tmk__bottom {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* рамка карточки и переменные темы — тоже из site.css */


/* переменные темы из site.css — для скопированных выше правил карточек */
:root {
  --tm-line: #e1e1e1;
  --tm-line-hover: #cfcfcf;
  --tm-radius: 20px;
  --tm-ink: #333;
  --tm-muted: #888;
  --tm-accent: #ff7e28;
  --tm-accent-press: #f26b12;
}

/* маркетплейсы: при наведении строка заливается фирменным цветом площадки, текст и точка — белые */
.tpc-mps {
  gap: 6px;
  margin-left: -18px;
}
.tpc-mp {
  --mp: #005bff;
  position: relative;
  isolation: isolate;
  padding: 14px 18px;
  border-radius: 16px;
}
.tpc-mp--wb {
  --mp: linear-gradient(135deg, #cb11ab 0%, #8a14a6 55%, #481173 100%);
}
.tpc-mp--avito {
  --mp: #00aaff;
}
.tpc-mp::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--mp);
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.74s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.74s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tpc-mp b,
.tpc-mp small {
  transition: color 0.74s ease;
}
.tpc-mp i {
  transition: background-color 0.74s ease, box-shadow 0.74s ease;
}
.tpc-mp:hover::before,
.tpc-mp:focus-visible::before {
  opacity: 1;
  transform: none;
}
.tpc-mp:hover b,
.tpc-mp:hover small,
.tpc-mp:focus-visible b,
.tpc-mp:focus-visible small {
  color: #fff;
}
.tpc-mp:hover i,
.tpc-mp:focus-visible i {
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}
.tpc-mp:focus-visible {
  outline: none;
}
