/*
  (опционально) Полностью скрыть элементы старого zoom-плагина.
  Сейчас выключено, потому что закомментировано.
*/
/*
.zoomLens,
.zoomWindowContainer,
.zoomWindow,
.ez-lens,
.ez-zoom-window {
  display: none !important;
}
*/

/* === ПРЯЧЕМ КНОПКУ "Увеличить" === */
.product__zoom,
.product-gallery__zoom,
a[title="Увеличить"],
button[title="Увеличить"],
a[aria-label="Увеличить"],
button[aria-label="Увеличить"] {
  display: none !important;
}

/* === LIGHTBOX (оверлей) === */
.orion-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.86);
  display: none;
  z-index: 999999;
  padding: 16px;
}

.orion-lightbox-overlay.is-open {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.orion-lightbox-content {
  max-width: 96vw;
  max-height: 92vh;
  position: relative;
}

.orion-lightbox-img {
  max-width: 96vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  display: block;
}

.orion-lightbox-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-size: 22px;
  line-height: 36px;
}

.orion-lightbox-target {
  cursor: zoom-in;
}

/* === ВОССТАНАВЛИВАЕМ ОТОБРАЖЕНИЕ ГЛАВНОЙ КАРТИНКИ В ЦЕНТРЕ === */
.product-page img,
.product img,
.product-gallery img,
.images img {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

.product-page .swiper,
.product-page .swiper-wrapper,
.product-page .swiper-slide {
  visibility: visible !important;
  opacity: 1 !important;
}

.product-page .swiper-slide {
  display: flex !important;
}

/* === Lightbox: на мобиле крестик вниз под картинку === */
@media (max-width: 768px) {
  /* контейнер с картинкой */
  #lb_overlay > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  /* кнопка закрытия: делаем обычным элементом потока и переносим вниз */
  #lb_overlay button[aria-label="Закрыть"] {
    position: static !important;
    order: 3; /* после картинки */
    margin-top: 12px;
    width: 44px;
    height: 44px;
    line-height: 44px;
  }

  /* картинка пусть будет второй */
  #lb_overlay img {
    order: 2;
  }

  /* стрелки (‹ ›): чтобы не уезжали за экран */
  #lb_overlay button[aria-label="Предыдущее фото"],
  #lb_overlay button[aria-label="Следующее фото"] {
    position: static !important;
    order: 1;
    margin: 0 10px 10px 10px;
  }
}

/* Lightbox: на мобиле прячем стрелки (остается свайп) */
@media (max-width: 768px) {
  #lb_overlay button[aria-label="Предыдущее фото"],
  #lb_overlay button[aria-label="Следующее фото"] {
    display: none !important;
  }
}
/* ===== Mobile Catalog Wizard INLINE (ONLY mobile) ===== */
@media (max-width: 900px){

  .mcw-panel{
    margin: 10px 0 18px;
    background: #fff;
    position: relative;
    z-index: 5;
  }
  
  .mcw-toprow,
  .mcw-steps,
  .mcw-breadcrumbs,
  .mcw-list{
    width: 92%;
    margin-left: auto;
    margin-right: auto;
  }

  .mcw-toprow{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
  }

  .mcw-back{
    border: 1px solid rgba(0,0,0,.15);
    padding: 8px 12px;
    border-radius: 12px;
    background: #fff;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .mcw-title{
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
  }

  .mcw-steps{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin: 10px auto 12px;
  }

  .mcw-step{
    min-width: 0;
    padding: 10px 4px;
    border-radius: 0px;
    background: rgba(0,0,0,.05);
    font-size: 15px;
    line-height: 1.15;
    text-align: center;
    color: #666;
    white-space: nowrap;
  }

  .mcw-step.is-done{
    background: rgba(0,0,0,.07);
    color: #333;
  }

  .mcw-step.is-active{
    background: #c6a35a;
    color: #fff;
  }

  .mcw-breadcrumbs{
    font-size: 13px;
    line-height: 1.35;
    opacity: .8;
    margin-bottom: 10px;
    word-break: break-word;
  }

  .mcw-list{
    display: grid;
    gap: 14px;
  }

  .mcw-item{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 0px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    font-size: 18px;
    line-height: 1.2;
    position: relative;
  }

  .mcw-item span{
    min-width: 0;
    flex: 0 1 auto;
    text-align: center;
  }

  .mcw-item:after{
    content: "›";
    font-size: 20px;
    opacity: .45;
    position: absolute;
    right: 10px;
  }

  .mcw-item--check{
    display: flex !important;
    justify-content: center !important;
    align-items: center;
    gap: 8px;
    font-size: 16px;
  }
  
  .mcw-checkline{
  width: 170px;
  max-width: 170px;
  display: flex;
  align-items: center;
  gap: 8px;
}

  .mcw-item--check .mcw-check{
    margin-right: 0;
    flex: 0 0 auto;
  }

  .mcw-item--check span{
    width: auto;
    max-width: none;
    flex: 0 1 auto;
    text-align: left;
    white-space: nowrap;
  }

  .mcw-item--check:after{
    content: none;
  }

  .mcw-check{
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
  }

  .mcw-note{
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.35;
    opacity: .75;
  }

  .mcw-series{
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
  }

  .mcw-series-btn{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 0px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    font-size: 18px;
    line-height: 1.2;
    position: relative;
  }

  .mcw-series-btn:after{
    content: "›";
    font-size: 20px;
    opacity: .45;
    position: absolute;
    right: 10px;
  }

  body.mcw-active .mcw-hidden{
    display: none !important;
  }
}
.js-submit-order-button {
    font-size: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.js-submit-order-button::after {
    content: "Оформить заказ";
    font-size: 16px;
    line-height: 1.2;
}