.prodp-card {
  width: 100%;
}
.prodp-card__row {
  width: 100%;
  display: flex;
  gap: 24px;
  align-items: stretch;
}

/* LEFT */
.prodp-media {
  flex: 0 0 66%;
  max-width: 66%;
}
.prodp-media__inner {
  width: 100%;
  border-radius: 32px;
  background: #fff;
  padding: 28px;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.prodp-media__img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  display: block;
}
.prodp-media__slide {
  width: 100%;
  text-align: center;
}
.prodp-media__slide a {
  display: block;
}
.prodp-media__controls {
  width: 100%;
  margin-top: 27px; /* desktop */
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.prodp-media__controls a {
  pointer-events: auto;
}
.prodp-media__nav {
  display: flex;
  gap: 12px;
}
.prodp-ico {
  width: 40px;
  height: 40px;
  border: 2px solid #2e7d32;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2e7d32;
  background: #fff;
  text-decoration: none;
}
.fav-card__brand{
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.fav-card__brand__bg {
  background-color: #f3f8f3;
  width: fit-content;
}
.fav-card__title{
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
}
.fav-card__btns{
  font-size: 16px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.fav-card__side{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  margin-left:auto;
}
.fav-card__remove{
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fav-card__brand-logo{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--bs-primary);
  display: inline-block;
}
.prodp-card .btn {
  font-size: 16px;
  font-weight: 400;
}
.fav-card__spec {
  color: var(--bs-primary)!important;
}
.prodp-info {
  flex: 1 1 auto;
  min-width: 0;
}
.prodp-info__inner {
  width: 100%;
  border-radius: 32px;
  background: #fff;
  padding: 36px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.prodp-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
}
.prodp-card .btn.btn-success:active,
.prodp-card .btn.btn-success:focus {
  background-color: var(--bs-success);
  border-color: var(--bs-success);
  color: #fff;
}
.prodp-card .btn.btn-outline-success:active,
.prodp-card .btn.btn-outline-success:focus {
  background-color: transparent;
  border-color: var(--bs-success);
  color: var(--bs-success);
}

.prodp-card .btn.btn-outline-dark:active,
.prodp-card .btn.btn-outline-dark:focus {
  background-color: transparent;
  border-color: var(--bs-dark);
  color: var(--bs-dark);
}
.info-spec{
  width: 100%;
}
.info-spec__title{
  font-size: 24px; 
  font-weight: 800;
  letter-spacing: 0.04em;
}
.info-spec__list{
  margin-top: 28px;
}
.info-spec__content {
  width: 100%;
}
.info-spec__content h3 {
  font-size: 24px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 20px;
}
.info-spec__content p {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 1rem;
}
.info-spec__badge-p {
  font-size: 16px !important;
  font-weight: 500 !important;
  padding: 10px 16px;
  border: 2px solid #2e7d32;
  color: #111;
  background: #fff;
  line-height: 1 !important;
  border-radius: 50rem;
  display: inline-block;
  margin-bottom: 1.5rem !important;
}
.info-spec__important-p {
  color: #2e7d32;
  font-weight: 700 !important;
}
.info-spec__item{
  width: 100%;
  display: block;
}
.info-spec__badge{
  font-size: 16px;
  font-weight: 500;
  padding: 10px 16px;
  border: 2px solid #2e7d32;
  color: #111;
  background: #fff;
  line-height: 1;
}
.info-spec__label {
  align-self: start;
}
.info-spec__text{
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  align-self: start;
}
.info-spec__divider{
  margin: 56px 0;
  border: 0;
  border-top: 1px solid rgba(0,0,0,0.12);
  opacity: 1;
}

/* Стили для стандартных таблиц из CKEditor, имитирующие старый дизайн */
.tbl-apply__content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 14px; /* Имитация отступов между строками */
  margin-top: 14px;
}

.tbl-apply__content table thead th {
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 10px 24px;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  border: none;
}

/* Если в таблице есть заголовок (th) в теле, он выглядит как бейдж */
.tbl-apply__content table tbody th {
  font-size: 16px;
  font-weight: 600;
  padding: 10px 16px;
  border: 2px solid #2e7d32;
  color: #111;
  background: #fff;
  line-height: 1.2;
  border-radius: 50rem;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 10px;
}

.tbl-apply__content table td {
  border: 1px solid rgba(0,0,0,.22);
  border-radius: 500px;
  background: #fff;
  padding: 16px 22px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
}

/* Убираем стандартные границы от CKEditor если они есть inline */
.tbl-apply__content table, 
.tbl-apply__content table td, 
.tbl-apply__content table th {
  border-color: rgba(0,0,0,.22) !important;
}

.tbl-apply__content table thead th {
  border: none !important;
}

@media (max-width: 768px) {
  .tbl-apply__content table {
    border-spacing: 0 10px;
    min-width: 500px;
  }
  .tbl-apply__content table td {
    font-size: 14px;
    padding: 10px;
    border: 0;
    border-bottom: 1px solid rgba(0,0,0,.10);
    border-radius: 0;
  }
  .tbl-apply__content table thead th {
    font-size: 14px;
    padding: 8px 16px;
  }
}

.info-spec__content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  background: #fff;
}
.info-spec__content table td,
.info-spec__content table th {
  border: 1px solid rgba(0,0,0,.15);
  padding: 16px 22px;
  font-size: 18px;
  line-height: 1.2;
}
.info-spec__content table th {
  background-color: #f8f9fa;
  font-weight: 700;
  text-align: left;
}

@media (max-width: 768px) {
  .info-spec__content table td,
  .info-spec__content table th {
    padding: 12px;
    font-size: 14px;
  }
}

.tbl-apply{ width:100%; }
.tbl-apply__title{
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .06em;
}
.tbl-apply__head{
  margin-top: 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.tbl-apply__pill{
  font-size: 16px;
  font-weight: 600;
  padding: 10px 16px;
  border: 2px solid #2e7d32;
  color: #111;
  background: #fff;
  line-height: 1.2;
  min-width: 0;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  min-width: 0;
  display: inline-flex;
  align-items: center;      /* вертикаль */
  justify-content: center;  /* горизонталь */
  text-align: center;
}
.tbl-apply__head-right{
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 0;
  display: grid;
  grid-template-columns: 190px 190px;
  grid-template-rows: auto auto;
  align-items: stretch;
  gap: 14px 20px;
  justify-items: stretch;
  min-width: 0;
}
.tbl-apply__headbar{
  width: 560px;
  max-width: 100%;
  height: 44px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  grid-column: -1/1;
  grid-row: 1;
}
.tbl-apply__headpills{
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.tbl-apply__rows{
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.tbl-apply__row{
  width: 100%;
  display: grid;
  gap: 20px;
  align-items: stretch;
  grid-template-columns: auto 190px 190px;
}
.tbl-apply__cell{
  border: 1px solid rgba(0,0,0,.22);
  border-radius: 500px;
  background: #fff;
  padding: 16px 22px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: break-word;
  min-width: 0;
}
.tbl-apply__cell--a,
.tbl-apply__cell--b{
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.tbl-apply__pill-1 {
  grid-column: 1;
  grid-row: 2;
}.tbl-apply__pill-2 {
  grid-column: 2;
  grid-row: 2;
}
.favorite-toggle.is-favorite i {
  color: #dc3545;
}
.favorite-toggle.is-favorite i::before {
  content: "\f415"; /* bi-heart-fill */
}


@media (max-width: 1240px) {
  .fav-card__side{
    flex-basis: 100%;
    margin-left: 0;
  }
}

@media (max-width: 992px) {
  .prodp-media {
    flex: 0 0 66%;
    max-width: 66%;
  }
  .prodp-title {
    font-size: 24px;
  }
  .prodp-info__inner {
    padding: 28px;
  }
  .prodp-media__inner {
    padding: 22px;
  }
    .fav-card__brand{
    grid-column: 2;
    grid-row: 1;
  }
  .fav-card__btns{
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .prodp-media__controls {
    margin-top: 60px;
  }
  .info-spec__divider{
    margin: 40px 0; 
  }
  .tbl-apply__headbar{
    width: 420px;
  }
  .tbl-apply__row{
    grid-template-columns: 1fr 190px 190px;
  }
  .tbl-apply__headpills{ gap: 16px; }
}

@media (max-width: 768px) {
  .prodp-card__row {
    flex-direction: column;
    gap: 16px;
  }
  .prodp-media,
  .prodp-info {
    max-width: 100%;
    width: 100%;
  }
  .prodp-title {
    font-size: 20px;
  }
  .fav-card__btns{
    flex-direction: column;
    gap: 16px;
    grid-column: 1;
    grid-row: 3;    
  }
  .fav-card__btns > .btn,
  .fav-card__side > .btn{
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
  }
  .fav-card__side{
    width: 100%;
  }
  .fav-card__remove{
    white-space: normal;
  }
  .fav-card__brand{
    grid-column: 1;
    grid-row: 2;
  }
  .fav-card__title {
    font-size: 20px;
  }
  .prodp-media__controls {
    margin-top: 20px;
  }
  .info-spec__title{
    font-size: 20px;
  }
  .info-spec__text{
    font-size: 20px;
  }
  .info-spec__divider{
    margin: 32px 0;
  }
.tbl-apply__head-right {
  grid-template-columns: 140px 140px;
}
  .tbl-apply__scroll{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .tbl-apply__head,
  .tbl-apply__rows{
    min-width: 500px;
  }
  .tbl-apply__row{
    width: 100%;
    grid-template-columns: 1fr 140px 140px;
    gap: 20px;
  }
  .tbl-apply__title{ font-size: 20px; }
  .tbl-apply__headbar{ font-size: 14px; }
  .tbl-apply__pill{ font-size: 14px; padding: 8px 12px; }
  .tbl-apply__cell{ font-size: 14px; padding: 0; }
  .tbl-apply__cell{
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .tbl-apply__row{
    padding: 18px 0;
    border-bottom: 1px solid rgba(0,0,0,.10);
  }
  .product-description-ck {
    margin-top: 56px;
  }

  .product-description-ck section {
    margin-bottom: 56px;
  }

  /* Стили для таблиц CKEditor, если они вставляются как стандартные <table> */
  .product-description-ck table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
  }

  .product-description-ck table td, 
  .product-description-ck table th {
    border: 1px solid rgba(0,0,0,.1);
    padding: 12px;
  }
}

