/* Product page only. Existing Shop-Script forms and gallery handlers are retained. */
.otiza-product,
.otiza-product .otiza-product__root,
.otiza-product .product-table > div {
  min-width: 0;
}
.otiza-product .breadcrumbs {
  margin-bottom: 18px;
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.otiza-product h1.product-name {
  max-width: 1000px;
  margin: 0 0 28px;
  font-size: clamp(25px, 2.6vw, 36px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.otiza-product .product-name .rating {
  position: static;
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
  font-size: 14px;
  letter-spacing: 0;
}
.otiza-product .product-table {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
  align-items: start;
  gap: 32px;
  margin: 0 0 40px;
}
.otiza-product .product-image,
.otiza-product .product-cart {
  display: block;
  width: auto;
  padding: 0;
}
.otiza-product .product-image {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--otiza-line, #e4e9ef);
  border-radius: 20px;
}
.otiza-product .image.general {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 390px;
  width: 100%;
  padding: 12px;
  background: #fff;
  border: 0;
}
.otiza-product .image.general > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
}
.otiza-product .image.general img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 460px;
  height: auto;
  object-fit: contain;
}
.otiza-product .image.general .corner.bottom {
  top: 0;
  bottom: auto;
}
.otiza-product .image.general .corner.left {
  left: 0;
}
.otiza-product #product-gallery {
  max-width: 460px;
  margin: 18px auto 0;
}
.otiza-product #product-gallery .jcarousel-container {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 0 44px;
}
.otiza-product #product-gallery .jcarousel-clip-horizontal {
  width: 100%;
  max-width: 100%;
  margin: 0;
}
.otiza-product #product-gallery a {
  padding: 2px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--otiza-line, #e4e9ef);
  border-radius: 10px;
}
.otiza-product #product-gallery a.thumbActive {
  border-color: var(--otiza-brand, #315b8a);
  box-shadow: inset 0 0 0 1px var(--otiza-brand, #315b8a);
}
.otiza-product #product-gallery a img {
  object-fit: contain;
}
.otiza-product #product-gallery .jcarousel-prev,
.otiza-product #product-gallery .jcarousel-next {
  right: 0;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  line-height: 44px;
  color: var(--otiza-brand-dark, #203f66);
  background: transparent;
}
.otiza-product #product-gallery .jcarousel-prev {
  left: 0;
  right: auto;
}
.otiza-product #product-gallery .jcarousel-prev-disabled,
.otiza-product #product-gallery .jcarousel-next-disabled {
  opacity: .3;
}
.otiza-product #cart-flyer {
  margin: 0 0 16px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--otiza-line, #e4e9ef);
  border-top: 4px solid #c84d2f;
  border-radius: 20px;
  box-shadow: 0 16px 42px rgba(22, 36, 58, .09);
}
/* Keep price inside .add2cart for Product.js; only change visual order. */
.otiza-product #cart-form { display: flex; flex-direction: column; }
.otiza-product #cart-form .add2cart { display: contents; }
.otiza-product #cart-form .add2cart > .product-price { order: -2; }
.otiza-product #cart-form .selectable-articul { order: -1; }
.otiza-product .selectable-articul {
  margin-bottom: 18px;
  color: var(--otiza-muted, #667085);
  font-size: 13px;
}
.otiza-product .selectable-articul .bold {
  color: var(--otiza-ink, #16243a);
}
.otiza-product .skus-select-text,
.otiza-product .services > .bold {
  margin-bottom: 12px;
  color: var(--otiza-ink, #16243a);
  font-size: 14px;
  font-weight: 600;
}
.otiza-product .options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.otiza-product .options > .skus-select-text { grid-column: 1 / -1; margin: 0; }
.otiza-product .options > .option-item:last-child:nth-child(even) { grid-column: 1 / -1; }
.otiza-product .option-item {
  min-width: 0;
  margin-top: 0;
}
.otiza-product .option-name {
  display: block;
  margin: 0 0 7px;
  color: var(--otiza-muted, #667085);
  font-size: 13px;
}
.otiza-product .options select,
.otiza-product .service-variants {
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  font-size: 14px;
}
.otiza-product .feature-btn {
  display: inline-block;
  min-height: 44px;
  margin: 0 6px 6px 0;
  padding: 10px 13px;
  color: var(--otiza-ink, #16243a);
  background: #fff;
  border: 1px solid var(--otiza-line, #e4e9ef);
  border-radius: 9px;
  line-height: 1.3;
}
.otiza-product .feature-btn.selected {
  color: var(--otiza-brand-dark, #203f66);
  background: #eef3f8;
  border-color: var(--otiza-brand, #315b8a);
  box-shadow: none;
}
.otiza-product .option-item.color .feature-btn {
  box-sizing: content-box;
  min-height: 20px;
  width: 20px;
  height: 20px;
  padding: 11px;
}
.otiza-product ul.skus {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}
.otiza-product ul.skus li {
  margin: 0;
}
.otiza-product ul.skus label {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--otiza-ink, #16243a);
  background: #f8fafc;
  border: 1px solid var(--otiza-line, #e4e9ef);
  border-radius: 9px;
  cursor: pointer;
}
.otiza-product ul.skus label.disabled {
  opacity: .55;
  cursor: default;
}
.otiza-product ul.skus input {
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--otiza-brand, #315b8a);
}
.otiza-product .services {
  padding: 16px 0;
  border-top: 1px solid var(--otiza-line, #e4e9ef);
  border-bottom: 1px solid var(--otiza-line, #e4e9ef);
  line-height: 1.6;
}
.otiza-product .stocks {
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.65;
}
.otiza-product .stocks .stock-high {
  color: #267151;
}
.otiza-product .stocks .stock-low,
.otiza-product .stocks .stock-critical {
  color: #976025;
}
.otiza-product #cart-flyer .product-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 20px;
}
.otiza-product #cart-flyer .price {
  color: var(--otiza-ink, #16243a);
  font-size: 32px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.03em;
}
.otiza-product #cart-flyer .compare-at-price {
  color: var(--otiza-muted, #667085);
  font-size: 16px;
  line-height: 1.4;
}
.otiza-product .quantity-wrap,
.otiza-product .quantity-wrap.display-block {
  display: inline-flex;
  align-items: center;
  margin: 0 0 14px;
  gap: 0;
  vertical-align: top;
}
.otiza-product .quantity-wrap::before {
  order: 0;
  margin-right: 12px;
  color: var(--otiza-muted, #667085);
  content: "Количество";
  font-size: 13px;
}
.otiza-product .quantity-wrap input[type="text"] {
  order: 2;
  width: 48px;
  height: 44px;
  padding: 0;
  border-radius: 0;
  font-size: 16px;
}
.otiza-product .quantity-wrap .quantity-btn {
  display: contents;
  border: 0;
}
.otiza-product .quantity-wrap .quantity-btn a {
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--otiza-ink, #16243a);
  background: #f8fafc;
  border: 1px solid var(--otiza-line, #e4e9ef);
  font-size: 22px;
  font-weight: 400;
  line-height: 42px;
}
.otiza-product .quantity-wrap .quantity-btn a i {
  display: none;
}
.otiza-product .quantity-wrap .quantity-btn a.plus {
  order: 3;
  border-left: 0;
  border-radius: 0 8px 8px 0;
}
.otiza-product .quantity-wrap .quantity-btn a.plus::before {
  content: "+";
}
.otiza-product .quantity-wrap .quantity-btn a.minus {
  order: 1;
  border-right: 0;
  border-radius: 8px 0 0 8px;
}
.otiza-product .quantity-wrap .quantity-btn a.minus::before {
  content: "−";
}
.otiza-product #cart-flyer .add2cart > input[type="submit"] {
  display: block;
  float: none !important;
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 12px 18px;
  color: #fff;
  background: #c84d2f;
  border: 0;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.4;
  text-transform: none;
  box-shadow: 0 10px 22px rgba(190, 69, 42, .2);
  transition: background-color .18s ease, box-shadow .18s ease;
}
.otiza-product #cart-flyer .add2cart > input[type="submit"]:hover {
  background: #a83b24;
  box-shadow: 0 12px 26px rgba(168, 59, 36, .27);
}
.otiza-product #cart-flyer .add2cart > input[type="submit"]:disabled {
  color: #667085 !important;
  background: #e9edf2 !important;
  cursor: not-allowed;
  transform: none;
}
.otiza-product .quickorder-custom-button.default {
  display: block;
  height: auto;
  margin-top: 10px;
}
.otiza-product .quickorder-custom-button.default a.quickorder-button {
  display: block;
  min-height: 48px;
  margin: 0;
  padding: 12px;
  text-align: center;
  border-radius: 10px;
}
.otiza-product .quickorder-custom-button.default .quickorder-button i {
  font-size: 15px;
  text-transform: none;
}
.otiza-product #cart-flyer .prd_addition {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 16px;
}
.otiza-product #cart-flyer .prd_addition a {
  margin: 0;
  color: var(--otiza-muted, #667085);
  font-size: 12px;
  line-height: 1.7;
}
.otiza-product #cart-flyer .prd_addition a i {
  color: var(--otiza-brand, #315b8a);
  font-size: 15px;
}
.otiza-product .otiza-product__help {
  overflow: hidden;
  padding: 4px 18px;
  background: #fbf6ef;
  border: 1px solid var(--otiza-line, #e4e9ef);
  border-radius: 14px;
}
.otiza-product .otiza-product__help a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 46px;
  color: var(--otiza-brand-dark, #203f66);
  font-size: 13px;
  text-decoration: none;
}
.otiza-product .otiza-product__help a + a {
  border-top: 1px solid #dce4ed;
}
.otiza-product .otiza-product__help a span {
  flex: 1;
}
.otiza-product .otiza-product__help a i {
  width: 18px;
  text-align: center;
}
.otiza-product .product-cart .aux {
  margin: 20px 4px 0;
  color: var(--otiza-muted, #667085);
  font-size: 12px;
  line-height: 1.7;
}
.otiza-product .product-info {
  padding: 28px 32px;
  background: #fff;
  border: 1px solid var(--otiza-line, #e4e9ef);
  border-radius: 20px;
}
.otiza-product ul.product-tab {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
  margin: 0 0 26px;
  border-bottom: 1px solid var(--otiza-line, #e4e9ef);
}
.otiza-product ul.product-tab li {
  margin: 0;
  padding: 0;
  background: transparent;
}
.otiza-product ul.product-tab li.selected::before {
  display: none;
}
.otiza-product ul.product-tab li h2 {
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
}
.otiza-product ul.product-tab li button {
  min-height: 48px;
  padding: 0 2px 10px;
  color: var(--otiza-muted, #667085);
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  font: inherit;
  cursor: pointer;
}
.otiza-product ul.product-tab li.selected button {
  color: var(--otiza-brand-dark, #203f66);
  border-bottom-color: var(--otiza-brand, #315b8a);
}
.otiza-product .product-tab-content {
  margin: 0;
}
.otiza-product #product-description {
  color: var(--otiza-ink, #16243a);
  font-size: 15px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  overflow-x: auto;
}
.otiza-product #product-description img {
  max-width: 100%;
  height: auto;
}
.otiza-product #product-description > :last-child {
  margin-bottom: 0;
}
.otiza-product #product-features {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
}
.otiza-product #product-features td {
  padding: 13px 16px;
  overflow-wrap: anywhere;
  border-bottom: 1px solid var(--otiza-line, #e4e9ef);
}
.otiza-product #product-features .name {
  width: 42%;
  color: var(--otiza-muted, #667085);
}
.otiza-product #product-features .value {
  color: var(--otiza-ink, #16243a);
}
.otiza-product #product-features tr.new-background {
  background: #f8fafc;
}
.otiza-product a:focus-visible,
.otiza-product button:focus-visible,
.otiza-product input:focus-visible,
.otiza-product select:focus-visible {
  outline: 3px solid var(--otiza-brand, #315b8a);
  outline-offset: 3px;
}
@media (max-width: 1050px) {
  .otiza-product .product-table {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
  }
  .otiza-product .product-image,
  .otiza-product #cart-flyer {
    padding: 20px;
  }
  .otiza-product .image.general {
    min-height: 310px;
  }
}
@media (max-width: 850px) {
  .otiza-product .product-table {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 28px;
  }
  .otiza-product .image.general {
    min-height: 300px;
  }
  .otiza-product .image.general img {
    max-height: 380px;
  }
  .otiza-product .product-info {
    padding: 24px;
  }
}
@media (max-width: 480px) {
  .otiza-product .options { grid-template-columns: 1fr; }
  .otiza-product h1.product-name {
    margin-bottom: 20px;
    font-size: 25px;
    line-height: 1.3;
  }
  .otiza-product .product-image,
  .otiza-product #cart-flyer {
    padding: 16px;
    border-radius: 16px;
  }
  .otiza-product .image.general {
    min-height: 255px;
    padding: 4px;
  }
  .otiza-product .image.general img {
    max-height: 330px;
  }
  .otiza-product .product-info {
    padding: 20px 16px;
    border-radius: 16px;
  }
  .otiza-product ul.product-tab {
    gap: 0 14px;
  }
  .otiza-product ul.product-tab li h2 {
    font-size: 14px;
  }
  .otiza-product #product-features td {
    padding: 11px 8px;
    font-size: 13px;
  }
  .otiza-product #product-description {
    font-size: 14px;
  }
}
