body.single-product {
  background: #fff8ea;
  color: #2b1b10;
}

/* Страховка от v1: не даём главному div.product становиться grid */
body.single-product div.wp-block-group.woocommerce.product {
  display: block !important;
}

/* Общие отступы */
body.single-product main.wp-block-group {
  background: transparent;
  padding-top: 24px;
  padding-bottom: 56px;
}

body.single-product main.wp-block-group > .woocommerce-breadcrumb,
body.single-product main.wp-block-group > .wp-block-breadcrumbs,
body.single-product main.wp-block-group > .wc-block-breadcrumbs {
  max-width: 1280px;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 16px !important;
  color: #7c6b5b;
  font-size: 13px;
  line-height: 1.45;
}

body.single-product main.wp-block-group > .woocommerce-breadcrumb a,
body.single-product main.wp-block-group > .wp-block-breadcrumbs a,
body.single-product main.wp-block-group > .wc-block-breadcrumbs a {
  color: #7a4f2b;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Главный верх товара: блочная версия WooCommerce */
body.single-product .chai25-sp-layout,
body.single-product main.wp-block-group > .wp-block-columns.alignwide:has(.wp-block-woocommerce-product-image-gallery) {
  max-width: 1280px !important;
  width: auto !important;
  display: grid !important;
  grid-template-columns: minmax(320px, 560px) minmax(0, 1fr) !important;
  gap: 34px !important;
  align-items: start !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 18px !important;
  margin-bottom: 32px !important;
}

body.single-product .chai25-sp-layout > .wp-block-column,
body.single-product main.wp-block-group > .wp-block-columns.alignwide:has(.wp-block-woocommerce-product-image-gallery) > .wp-block-column {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  flex-basis: auto !important;
  flex-grow: initial !important;
}

/* Левая колонка */
body.single-product .chai25-sp-gallery-col,
body.single-product main.wp-block-group > .wp-block-columns.alignwide:has(.wp-block-woocommerce-product-image-gallery) > .wp-block-column:first-child {
  min-width: 0 !important;
}

/* Правая карточка */
body.single-product .chai25-sp-summary,
body.single-product main.wp-block-group > .wp-block-columns.alignwide:has(.wp-block-woocommerce-product-image-gallery) > .wp-block-column:nth-child(2) {
  min-width: 0 !important;
  border: 1px solid #e8d8bf;
  border-radius: 24px;
  background: #fffaf1;
  padding: 28px;
  box-shadow: 0 16px 42px rgba(84, 49, 21, .07);
  box-sizing: border-box;
}

/* Галерея */
body.single-product .wp-block-woocommerce-product-image-gallery {
  min-width: 0;
}

body.single-product .wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  border: 1px solid #e8d8bf;
  border-radius: 24px;
  background: #fffaf1;
  padding: 12px;
  box-shadow: 0 16px 42px rgba(84, 49, 21, .07);
  box-sizing: border-box;
  overflow: hidden;
}

body.single-product .wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery__wrapper {
  margin: 0;
}

body.single-product .wp-block-woocommerce-product-image-gallery .flex-viewport,
body.single-product .wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery__image {
  border-radius: 18px;
  background: #f3e5cf;
  overflow: hidden;
}

body.single-product .wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery__image a {
  display: block;
}

body.single-product .wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery__image img {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
}

body.single-product .wp-block-woocommerce-product-image-gallery .flex-control-thumbs {
  display: flex;
  gap: 10px;
  margin: 12px 0 0 !important;
  padding: 0 !important;
  overflow-x: auto;
  list-style: none;
  -webkit-overflow-scrolling: touch;
}

body.single-product .wp-block-woocommerce-product-image-gallery .flex-control-thumbs li {
  flex: 0 0 76px;
  width: 76px !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.single-product .wp-block-woocommerce-product-image-gallery .flex-control-thumbs img {
  width: 76px !important;
  height: 76px !important;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 14px;
  background: #f3e5cf;
  opacity: .72;
  transition: opacity .16s ease, border-color .16s ease, transform .16s ease;
}

body.single-product .wp-block-woocommerce-product-image-gallery .flex-control-thumbs img.flex-active,
body.single-product .wp-block-woocommerce-product-image-gallery .flex-control-thumbs img:hover {
  border-color: #7a4f2b;
  opacity: 1;
  transform: translateY(-1px);
}

body.single-product .wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery__trigger {
  top: 22px !important;
  right: 22px !important;
  width: 42px !important;
  height: 42px !important;
  border: 1px solid #e8d8bf;
  border-radius: 999px;
  background: #fffaf1;
  box-shadow: 0 8px 18px rgba(83, 50, 24, .10);
}

/* Заголовок и текст */
body.single-product .chai25-sp-summary .wp-block-post-title,
body.single-product .chai25-sp-summary h1.wp-block-post-title,
body.single-product main.wp-block-group > .wp-block-columns.alignwide:has(.wp-block-woocommerce-product-image-gallery) > .wp-block-column:nth-child(2) .wp-block-post-title {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 12px !important;
  color: #2b1b10;
  font-size: clamp(30px, 3vw, 44px) !important;
  line-height: 1.02 !important;
  font-weight: 900 !important;
  letter-spacing: -0.045em;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere;
  text-align: left !important;
}

body.single-product .chai25-sp-summary .wp-block-post-excerpt,
body.single-product .chai25-sp-summary .wp-block-post-excerpt p,
body.single-product main.wp-block-group > .wp-block-columns.alignwide:has(.wp-block-woocommerce-product-image-gallery) > .wp-block-column:nth-child(2) .wp-block-post-excerpt,
body.single-product main.wp-block-group > .wp-block-columns.alignwide:has(.wp-block-woocommerce-product-image-gallery) > .wp-block-column:nth-child(2) .wp-block-post-excerpt p {
  color: #5f5144;
  font-size: 15px;
  line-height: 1.55;
}

/* Цена: верхнюю стандартную цену скрываем, выводим рядом с кнопкой покупки */
body.single-product .chai25-sp-summary .wp-block-woocommerce-product-price,
body.single-product main.wp-block-group > .wp-block-columns.alignwide:has(.wp-block-woocommerce-product-image-gallery) > .wp-block-column:nth-child(2) .wp-block-woocommerce-product-price,
body.single-product .woocommerce-variation-price {
  display: none !important;
}

.chai25-sp-inline-price {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  padding: 0 16px;
  border: 1px solid #e8d8bf;
  border-radius: 14px;
  background: #fff8ea;
  color: #2b1b10;
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.chai25-sp-inline-price .price,
.chai25-sp-inline-price span.amount,
.chai25-sp-inline-price bdi {
  color: #2b1b10;
  font-weight: 950;
}

.chai25-sp-inline-price del {
  color: #7c6b5b;
  font-size: 15px;
  font-weight: 700;
  opacity: .72;
}

.chai25-sp-inline-price ins {
  color: #2b1b10;
  text-decoration: none;
}

/* Форма покупки */
body.single-product .wp-block-woocommerce-add-to-cart-form,
body.single-product .wc-block-add-to-cart-form {
  margin-top: 18px;
}

body.single-product .wp-block-woocommerce-add-to-cart-form form.cart {
  margin: 0 !important;
}

body.single-product table.variations {
  width: 100%;
  margin: 0 0 16px !important;
  border: 0 !important;
}

body.single-product table.variations tr {
  display: block;
  margin-bottom: 14px;
}

body.single-product table.variations th,
body.single-product table.variations td {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  text-align: left !important;
  background: transparent !important;
}

body.single-product table.variations label {
  display: block;
  margin: 0 0 7px;
  color: #7c6b5b;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

body.single-product table.variations select {
  min-height: 42px;
  min-width: 220px;
  padding: 0 44px 0 14px;
  border: 1px solid #e8d8bf;
  border-radius: 14px;
  background-color: #fff8ea;
  color: #2b1b10;
}

body.single-product .reset_variations {
  display: inline-flex !important;
  margin-top: 8px;
  color: #7a4f2b;
  font-size: 12px;
  font-weight: 800;
  text-underline-offset: 3px;
}

/* Вариации-кнопки */
body.single-product table.variations td.chai25-sp-has-buttons select {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.chai25-sp-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chai25-sp-option {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #e8d8bf;
  border-radius: 999px;
  background: #fff8ea;
  color: #2b1b10;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .06s ease;
}

.chai25-sp-option:hover,
.chai25-sp-option:focus-visible {
  border-color: #7a4f2b;
  outline: none;
}

.chai25-sp-option.is-active {
  border-color: #7a4f2b;
  background: #7a4f2b;
  color: #fffaf0;
}

.chai25-sp-option:disabled {
  opacity: .38;
  cursor: not-allowed;
  background: #f0e3d0;
}

/* Выбранная вариация */
body.single-product .single_variation_wrap {
  margin-top: 14px;
}

body.single-product .woocommerce-variation {
  margin-bottom: 14px;
}

body.single-product .woocommerce-variation-price .price {
  display: block;
  margin: 0 0 10px !important;
}

body.single-product .stock {
  color: #6f8f3f;
  font-size: 14px;
  font-weight: 900;
}

body.single-product .stock.out-of-stock {
  color: #c94b42;
}

/* Количество + кнопка + цена в одной строке */
body.single-product form.cart,
body.single-product .woocommerce-variation-add-to-cart {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

body.single-product div.quantity {
  display: inline-flex;
  vertical-align: middle;
  margin: 0 !important;
}

body.single-product form.cart .quantity input.qty {
  width: 76px;
  min-height: 48px;
  border: 1px solid #e8d8bf;
  border-radius: 14px;
  background: #fff8ea;
  color: #2b1b10;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
}

body.single-product form.cart .single_add_to_cart_button,
body.single-product form.cart button.button {
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid #7a4f2b !important;
  border-radius: 14px !important;
  background: #7a4f2b !important;
  color: #fffaf0 !important;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 12px 24px rgba(95, 55, 21, .18);
  transition: transform .06s ease, box-shadow .18s ease, background .18s ease;
}

body.single-product form.cart .single_add_to_cart_button:hover,
body.single-product form.cart button.button:hover,
body.single-product form.cart .single_add_to_cart_button:focus-visible,
body.single-product form.cart button.button:focus-visible {
  background: #5b3519 !important;
  box-shadow: 0 14px 26px rgba(95, 55, 21, .24);
  outline: none;
}

body.single-product form.cart .single_add_to_cart_button:disabled,
body.single-product form.cart .single_add_to_cart_button.disabled {
  border-color: #dccab1 !important;
  background: #eadfce !important;
  color: #9b8872 !important;
  box-shadow: none;
}

/* Метаданные */
body.single-product .wp-block-woocommerce-product-meta,
body.single-product .product_meta {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #ead8bd;
  color: #7c6b5b;
  font-size: 13px;
  line-height: 1.7;
}

body.single-product .wp-block-woocommerce-product-meta a,
body.single-product .product_meta a {
  color: #7a4f2b;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Нижние блоки и описание */
body.single-product .wp-block-woocommerce-product-details,
body.single-product .woocommerce-tabs,
body.single-product .related.products,
body.single-product .upsells.products {
  max-width: 1280px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.single-product .wp-block-woocommerce-product-details,
body.single-product .woocommerce-tabs {
  border: 1px solid #e8d8bf;
  border-radius: 24px;
  background: #fffaf1;
  box-shadow: 0 16px 42px rgba(84, 49, 21, .06);
  overflow: hidden;
}

body.single-product .wp-block-woocommerce-product-details .wc-tabs,
body.single-product .woocommerce-tabs ul.tabs {
  margin: 0 !important;
  padding: 18px 22px 0 !important;
}

body.single-product .wp-block-woocommerce-product-details .woocommerce-Tabs-panel,
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel,
body.single-product .woocommerce-tabs .panel {
  padding: 28px !important;
  color: #2b1b10;
  font-size: 17px;
  line-height: 1.65;
}

body.single-product .wp-block-woocommerce-product-details .woocommerce-Tabs-panel > :first-child,
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel > :first-child,
body.single-product .woocommerce-tabs .panel > :first-child {
  margin-top: 0 !important;
}

body.single-product .wp-block-woocommerce-product-details .woocommerce-Tabs-panel > :last-child,
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel > :last-child,
body.single-product .woocommerce-tabs .panel > :last-child {
  margin-bottom: 0 !important;
}

body.single-product .wp-block-woocommerce-product-details h2,
body.single-product .woocommerce-tabs h2 {
  margin: 0 0 18px !important;
  color: #2b1b10;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
}

body.single-product .wp-block-woocommerce-product-details p,
body.single-product .woocommerce-tabs p {
  margin-top: 0;
}


/* Вкладки описания/деталей */
body.single-product .wp-block-woocommerce-product-details .wc-tabs,
body.single-product .woocommerce-tabs ul.tabs {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid #ead8bd;
}

body.single-product .wp-block-woocommerce-product-details .wc-tabs li,
body.single-product .woocommerce-tabs ul.tabs li {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  border-radius: 999px !important;
}

body.single-product .wp-block-woocommerce-product-details .wc-tabs li::before,
body.single-product .wp-block-woocommerce-product-details .wc-tabs li::after,
body.single-product .woocommerce-tabs ul.tabs li::before,
body.single-product .woocommerce-tabs ul.tabs li::after {
  display: none !important;
}

body.single-product .wp-block-woocommerce-product-details .wc-tabs li a,
body.single-product .woocommerce-tabs ul.tabs li a {
  min-height: 40px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 18px !important;
  border: 1px solid #e8d8bf;
  border-radius: 999px;
  background: #fff8ea;
  color: #2b1b10 !important;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none !important;
}

body.single-product .wp-block-woocommerce-product-details .wc-tabs li.active a,
body.single-product .woocommerce-tabs ul.tabs li.active a {
  border-color: #7a4f2b;
  background: #7a4f2b;
  color: #fffaf0 !important;
}

body.single-product .woocommerce-product-attributes {
  overflow: hidden;
  border: 1px solid #ead8bd;
  border-radius: 16px;
  background: #fff8ea;
}

body.single-product .woocommerce-product-attributes th,
body.single-product .woocommerce-product-attributes td {
  padding: 14px 16px !important;
  border-bottom: 1px solid #ead8bd;
  background: transparent !important;
  color: #2b1b10;
  font-size: 15px;
  line-height: 1.45;
}

body.single-product .woocommerce-product-attributes tr:last-child th,
body.single-product .woocommerce-product-attributes tr:last-child td {
  border-bottom: 0;
}

body.single-product .woocommerce-product-attributes th {
  width: 220px;
  color: #7c6b5b;
  font-weight: 900;
}

/* Похожие/рекомендуемые товары */
body.single-product .related.products,
body.single-product .upsells.products {
  margin-top: 34px !important;
}

body.single-product .related.products > h2,
body.single-product .upsells.products > h2 {
  margin: 0 0 16px !important;
  color: #2b1b10;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.03em;
}

body.single-product .related.products ul.products,
body.single-product .upsells.products ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.single-product .related.products ul.products::before,
body.single-product .related.products ul.products::after,
body.single-product .upsells.products ul.products::before,
body.single-product .upsells.products ul.products::after {
  display: none !important;
}

body.single-product .related.products ul.products li.product,
body.single-product .upsells.products ul.products li.product {
  width: auto !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  padding: 10px 10px 14px !important;
  border: 1px solid #e8d8bf;
  border-radius: 20px;
  background: #fffaf1;
  box-shadow: 0 12px 28px rgba(84, 49, 21, .06);
  text-align: center;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

body.single-product .related.products ul.products li.product:hover,
body.single-product .upsells.products ul.products li.product:hover {
  transform: translateY(-2px);
  border-color: #d6b98f;
  box-shadow: 0 18px 34px rgba(84, 49, 21, .10);
}

body.single-product .related.products ul.products li.product img,
body.single-product .upsells.products ul.products li.product img {
  width: 100% !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin: 0 0 10px !important;
  border-radius: 15px;
  background: #f3e5cf;
}

body.single-product .related.products ul.products li.product .woocommerce-loop-product__title,
body.single-product .upsells.products ul.products li.product .woocommerce-loop-product__title {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 7px !important;
  padding: 0 !important;
  color: #2b1b10;
  font-size: 15px !important;
  line-height: 1.22;
  font-weight: 900;
}

body.single-product .related.products ul.products li.product .price,
body.single-product .upsells.products ul.products li.product .price {
  display: block;
  margin: 0 0 10px !important;
  color: #2b1b10 !important;
  font-size: 17px !important;
  font-weight: 950 !important;
}

body.single-product .related.products ul.products li.product .button,
body.single-product .upsells.products ul.products li.product .button {
  min-height: 38px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 14px !important;
  border: 1px solid #7a4f2b !important;
  border-radius: 12px !important;
  background: #7a4f2b !important;
  color: #fffaf0 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

body.single-product .related.products ul.products li.product .button:hover,
body.single-product .upsells.products ul.products li.product .button:hover {
  background: #5b3519 !important;
}

/* Адаптив */
@media (max-width: 980px) {
  body.single-product .chai25-sp-layout,
  body.single-product main.wp-block-group > .wp-block-columns.alignwide:has(.wp-block-woocommerce-product-image-gallery) {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  body.single-product .chai25-sp-summary,
  body.single-product main.wp-block-group > .wp-block-columns.alignwide:has(.wp-block-woocommerce-product-image-gallery) > .wp-block-column:nth-child(2) {
    padding: 22px;
  }
}

@media (max-width: 760px) {
  body.single-product main.wp-block-group {
    padding-top: 16px;
    padding-bottom: 42px;
  }

  body.single-product .chai25-sp-layout,
  body.single-product main.wp-block-group > .wp-block-columns.alignwide:has(.wp-block-woocommerce-product-image-gallery) {
    margin-top: 12px !important;
  }

  body.single-product .chai25-sp-summary,
  body.single-product main.wp-block-group > .wp-block-columns.alignwide:has(.wp-block-woocommerce-product-image-gallery) > .wp-block-column:nth-child(2) {
    padding: 18px;
    border-radius: 18px;
  }

  body.single-product .wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery {
    padding: 8px;
    border-radius: 18px;
  }

  body.single-product .wp-block-woocommerce-product-image-gallery .flex-viewport,
  body.single-product .wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery__image,
  body.single-product .wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery__image img {
    border-radius: 14px;
  }

  body.single-product .wp-block-woocommerce-product-image-gallery .flex-control-thumbs li,
  body.single-product .wp-block-woocommerce-product-image-gallery .flex-control-thumbs img {
    width: 62px !important;
    height: 62px !important;
  }

  body.single-product .chai25-sp-summary .wp-block-post-title,
  body.single-product main.wp-block-group > .wp-block-columns.alignwide:has(.wp-block-woocommerce-product-image-gallery) > .wp-block-column:nth-child(2) .wp-block-post-title {
    font-size: 30px !important;
    line-height: 1.02 !important;
  }

  body.single-product .chai25-sp-summary .wp-block-woocommerce-product-price,
  body.single-product main.wp-block-group > .wp-block-columns.alignwide:has(.wp-block-woocommerce-product-image-gallery) > .wp-block-column:nth-child(2) .wp-block-woocommerce-product-price {
    font-size: 28px !important;
  }

  .chai25-sp-options {
    gap: 6px;
  }

  .chai25-sp-option {
    min-height: 34px;
    padding: 0 11px;
    font-size: 12px;
  }

  body.single-product form.cart,
  body.single-product .woocommerce-variation-add-to-cart {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
  }

  body.single-product div.quantity {
    margin: 0 !important;
  }

  body.single-product form.cart .single_add_to_cart_button,
  body.single-product form.cart button.button {
    flex: 1 1 160px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .chai25-sp-inline-price {
    flex: 1 1 100%;
    min-height: 42px;
    margin-left: 0;
    font-size: 22px;
  }

  body.single-product .wp-block-woocommerce-product-details .woocommerce-Tabs-panel,
  body.single-product .woocommerce-tabs .woocommerce-Tabs-panel,
  body.single-product .woocommerce-tabs .panel {
    padding: 20px !important;
    font-size: 15px;
  }

  body.single-product .wp-block-woocommerce-product-details .wc-tabs,
  body.single-product .woocommerce-tabs ul.tabs {
    padding: 12px 14px 0 !important;
    gap: 7px;
  }

  body.single-product .wp-block-woocommerce-product-details .wc-tabs li a,
  body.single-product .woocommerce-tabs ul.tabs li a {
    min-height: 34px;
    padding: 0 12px !important;
    font-size: 13px;
  }

  body.single-product .woocommerce-product-attributes th,
  body.single-product .woocommerce-product-attributes td {
    display: block;
    width: 100% !important;
    padding: 10px 12px !important;
  }

  body.single-product .woocommerce-product-attributes th {
    padding-bottom: 0 !important;
  }

  body.single-product .related.products ul.products,
  body.single-product .upsells.products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px !important;
  }

  body.single-product .related.products > h2,
  body.single-product .upsells.products > h2 {
    font-size: 24px;
  }

  body.single-product .related.products ul.products li.product,
  body.single-product .upsells.products ul.products li.product {
    padding: 8px 8px 10px !important;
    border-radius: 17px;
  }

  body.single-product .related.products ul.products li.product .woocommerce-loop-product__title,
  body.single-product .upsells.products ul.products li.product .woocommerce-loop-product__title {
    min-height: 34px;
    font-size: 13px !important;
  }

  body.single-product .related.products ul.products li.product .price,
  body.single-product .upsells.products ul.products li.product .price {
    font-size: 15px !important;
  }
}


/* v5: мобильные метаданные товара в столбик, без выпирания справа */
@media (max-width: 760px) {
  body.single-product .wp-block-woocommerce-product-meta,
  body.single-product .product_meta {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    text-align: left !important;
  }

  body.single-product .wp-block-woocommerce-product-meta > *,
  body.single-product .product_meta > *,
  body.single-product .product_meta > span,
  body.single-product .product_meta .posted_in,
  body.single-product .product_meta .tagged_as,
  body.single-product .product_meta .sku_wrapper {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: both !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    text-align: left !important;
  }

  body.single-product .wp-block-woocommerce-product-meta a,
  body.single-product .product_meta a {
    display: block !important;
    width: fit-content !important;
    max-width: 100% !important;
    margin: 4px 0 0 !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  body.single-product .product_meta .posted_in + .tagged_as,
  body.single-product .product_meta .sku_wrapper + .posted_in,
  body.single-product .product_meta .sku_wrapper + .tagged_as {
    margin-top: 10px !important;
  }
}
