/* =========================================================
 * 1) BADGES: delivery / info / payment (общая база)
 * ========================================================= */

.delivery-badges,
.info-badges,
.payment-badges{
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.delivery-badges::-webkit-scrollbar,
.info-badges::-webkit-scrollbar,
.payment-badges::-webkit-scrollbar,
.product-sticky-tabs .container::-webkit-scrollbar{
  display: none;
}

/* общая карточка */
.delivery-badge,
.info-badge,
.payment-badge{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(30,58,95,.04);
  border: 1px solid rgba(30,58,95,.10);
  border-radius: 8px;
  line-height: 1.3;
  white-space: nowrap;
  scroll-snap-align: start;
}

/* mobile density */
@media (max-width:575px){
  .delivery-badge,
  .info-badge,
  .payment-badge{
    font-size: 13.5px;
    padding: 7px 10px;
  }
}

/* =========================================================
 * 2) NOVA POSHTA DELIVERY BADGE
 * ========================================================= */

.delivery-badge{
  margin-top: 10px;
  padding: 8px 12px;
  font-size: 14px;
}

.delivery-text{
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.delivery-dash{
  margin: 0 4px;
  opacity: .6;
}

/* зелёная подпись "по тарифам..." */
.delivery-note-inline{
  font-size: 12px;
  line-height: 1.2;
  color: #2e9e4f;
  opacity: .95;
}

.delivery-badge img{
  width: auto;
  display: block;
  height: 18px !important;
}

/* =========================================================
 * 3) INFO BADGE
 * ========================================================= */

.info-badge{
  padding: 7px 10px;
  font-size: 13.8px;
}

.info-badge i{
  font-size: 14px;
  opacity: .75;
  color: #1e3a5f;
}

.info-badge span{
  font-weight: 500;
}

/* =========================================================
 * 4) PAYMENT BADGE
 * ========================================================= */

.payment-badge{
  padding: 7px 10px;
  background: rgba(30,58,95,.03);
  border-color: rgba(30,58,95,.10);
  font-size: 14px;
}

.payment-badge img{
  width: auto;
  display: block;
  height: 18px !important;
}

.payment-badge.text{
  font-weight: 600;
}

/* desktop: payment badges можно в 2 строки */
@media (min-width:768px){
  .payment-badges{
    overflow-x: visible;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

/* =========================================================
 * 4) плитки / короткое описание
 * ========================================================= */
 
 /* ===== MUSSON Specs: Основной контейнер ===== */
.musson-spec-wrap {
  position: relative;
  width: 100%;
}

/* Ограничение ширины на ПК (чтобы плашки не растягивались во всю ширину) */
@media (min-width: 992px) {
  .musson-spec-wrap {
    max-width: 520px;
  }
}

/* ПРАВЫЙ градиент-подсказка (только для мобильного скролла) */
.musson-spec-wrap:after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 30px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
  z-index: 2;
  background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
}

/* Показываем градиент только когда есть скролл (через JS класс ms-right) */
@media (max-width: 991px) {
  .musson-spec-wrap.ms-right:after { opacity: 1; }
}

/* ===== MUSSON Specs: Контейнер для карточек ===== */
.musson-spec-cards.compact {
  display: flex;
  gap: 8px;
  margin: 10px 0;
  padding: 2px 4px;
}

/* Логика для ПК: Перенос строк вместо скролла */
@media (min-width: 992px) {
  .musson-spec-cards.compact {
    flex-wrap: wrap;       /* Разрешаем перенос */
    overflow: visible;     /* Скролл не нужен */
  }
}

/* Логика для Мобильных: Скролл без полосы прокрутки */
@media (max-width: 991px) {
  .musson-spec-cards.compact {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    
    /* Скрываем стандартный скроллбар */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
  }
  .musson-spec-cards.compact::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }
}

/* ===== Элемент (Карточка) ===== */
.musson-spec-cards.compact .msi {
  flex: 0 0 auto;
  scroll-snap-align: start;
  
  /* Размеры */
  min-width: 95px;
  padding: 8px 10px;
  
  /* Стилизация */
  background: rgba(30,58,95,0.04);
  border: 1px solid rgba(30,58,95,0.10);
  border-radius: 6px;
  text-align: center;
  
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.2s ease;
}

/* Заголовок (Значение) */
.musson-spec-cards.compact .msi b {
  display: block;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 2px;
}

/* Подпись (Параметр) */
.musson-spec-cards.compact .msi small {
  display: block;
  font-size: 10px;
  line-height: 1.1;
  color: #666;
  text-transform: lowercase; /* Опционально: делает вид аккуратнее */
}

/* Ховер на ПК */
@media (hover: hover) {
  .musson-spec-cards.compact .msi:hover {
    background: rgba(30,58,95,0.07);
    border-color: rgba(30,58,95,0.18);
    transform: translateY(-1px);
  }
}

/* =========================================================
 * 5) PRICES / DISCOUNT
 * ========================================================= */

.amx-note p,
.product-prices{
  margin-bottom: 8px;
}


/* ===== AMX NOTE — простой ===== */
.amx-note{
  margin: 12px 0;
  padding: 12px 14px;

  background: #f4f6f9;
  border-left: 3px solid #1e3a5f;
  border-radius: 4px;

  font-size: 15px;
  line-height: 1.6;
  color: #111;
}

.amx-note p{
  margin: 0;
}

.amx-note p + p{
  margin-top: 6px;
}

.amx-note strong{
  font-weight: 600;
  color: #1e3a5f;
}


.current-price{
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.has-discount .product-price{
  color: #1e3a5f;
  font-weight: 700;
  letter-spacing: -.2px;
}

.has-discount .regular-price{
  color: #9aa0a6;
  font-size: .9em;
  margin-left: 4px;
}

.badge-discount{
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  margin-left: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  background: #1e3a5f;
  border-radius: 4px;
}

.btn.credit + .amx-credit-icons,
.product-discount{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (max-width:575px){
  .has-discount .product-price{
    font-size: 1.15em;
  }
  .badge-discount{
    font-size: 12px;
    padding: 3px 7px;
  }
}

/* =========================================================
 * 6) CREDIT BUTTON + ICONS
 * ========================================================= */

.btn.credit{
  color: #fff;
  background: #1e3a5f;
  border: 1px solid #1e3a5f;
  padding: 10px 18px;
  font-size: 15px;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  margin-bottom: 5.6%;
  border-radius: 6px;
  transition: background .2s ease, border-color .2s ease;
}

.btn.credit:hover{
  background: #2a4d7a;
  border-color: #2a4d7a;
  color: #fff;
}

.btn.credit + .amx-credit-icons{
  margin-left: 12px;
  vertical-align: middle;
  white-space: nowrap;
  margin-bottom: 15px;
}

.amx-credit-icon{
  position: relative;
  background: #f1f1f1;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
  border-radius: 24px;
  padding: 4px;
}

.amx-credit-count{
  position: absolute;
  right: -5px;
  width: 16px;
  height: 16px;
  background: #1e3a5f;
  color: #fff;
  font-size: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.amx-credit-icons .amx-credit-count{
  top: -8px;
}

.amx-credit-icons .amx-credit-logo{
  width: 30px;
  height: 30px;
  object-fit: cover;
}

@media (max-width:767px){
  .merchant_wrapper.product .btn.credit + .amx-credit-icons,
  .merchant_wrapper_product .btn.credit + .amx-credit-icons{
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

@media (max-width:768px){
  .btn.credit{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 8px;
    width: 100%;
  }
}

/* =========================================================
 * 7) SMALL UI
 * ========================================================= */

.badge-warning,
.form-control{
  border-radius: 6px;
}

.badge-warning{
  background-color: #ff964c94;
  padding: 10px;
}

/* =========================================================
 * 8) PRODUCT SECTIONS (обычные табы-карточки)
 * ========================================================= */

.tabs.product-tabs.product-sections{
  max-width: 100%;
  margin-top: 18px;
}

.tabs.product-tabs.product-sections .block-section{
  background: #fff;
  border: 1px solid rgba(30,58,95,.10);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(30,58,95,.05);
  margin: 14px 0;

  /* фиксируем тему, чтобы не мигало */
  transition: none !important;
  animation: none !important;
  transform: none !important;
  backface-visibility: hidden;
}

.tabs.product-tabs.product-sections .block-section *{
  transition: none !important;
  animation: none !important;
}

.tabs.product-tabs.product-sections .section-title{
  margin: 0;
  padding: 16px 18px;
  background: #f4f6f9;
  border-bottom: 1px solid rgba(30,58,95,.10);
}

.tabs.product-tabs.product-sections .section-title span{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .2px;
  color: #1e3a5f;
 
}

.tabs.product-tabs.product-sections .section-title span:before{
  content: "";
  width: 3px;
  height: 18px;
  border-radius: 0;
  background: #1e3a5f;
  opacity: 1;
  padding-left: 0;
}

.tabs.product-tabs.product-sections .section-content{
  padding: 18px;
  color: #111;
}

#product-details-wrapper .section-content{
  padding-top: 14px;
}

.tabs.product-tabs.product-sections .rte-content{
  font-size: 15px;
  line-height: 1.65;
  color: #111;
}

.tabs.product-tabs.product-sections .rte-content p{
  margin: 0 0 12px;
}
.tabs.product-tabs.product-sections .rte-content p:last-child{
  margin-bottom: 0;
}

.tabs.product-tabs.product-sections .rte-content ol,
.tabs.product-tabs.product-sections .rte-content ul{
  margin: 10px 0 14px 18px;
}

.tabs.product-tabs.product-sections .rte-content li{
  margin: 6px 0;
}

/* tables */
.tabs.product-tabs.product-sections table{
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.tabs.product-tabs.product-sections table tr{
  border-bottom: 1px solid rgba(30,58,95,.08);
}
.tabs.product-tabs.product-sections table td,
.tabs.product-tabs.product-sections table th{
  padding: 10px;
  vertical-align: top;
}
.tabs.product-tabs.product-sections table th{
  font-weight: 700;
  color: #1e3a5f;
}

/* attachments */
.tabs.product-tabs.product-sections .product-attachments .attachment{
  padding: 12px 0;
}
.tabs.product-tabs.product-sections .product-attachments .attachment hr{
  border: 0;
  border-top: 1px solid rgba(30,58,95,.08);
  margin: 12px 0 0;
}

/* accessories section tighter padding */
.tabs.product-tabs.product-sections .product-accesories-section .section-content{
  padding: 14px 12px 18px;
}

@media (max-width:767.98px){
  .tabs.product-tabs.product-sections .block-section{
    border-radius: 6px;
    margin: 12px 0;
  }
  .tabs.product-tabs.product-sections .section-content,
  .tabs.product-tabs.product-sections .section-title{
    padding: 14px;
  }
  .tabs.product-tabs.product-sections .section-title span{
    font-size: 15px;
  }
}

/* =========================================================
 * 9) STICKY TABS (верхнее меню на product page)
 * ========================================================= */

:root{
  --mobile-header-sticky-h: 0px;
}

#product #content-wrapper,
#product #wrapper,
#product .page-content,
.page-product #content-wrapper,
.page-product #wrapper,
.page-product .page-content{
  overflow: visible !important;
}

#product .product-sticky-tabs,
.page-product .product-sticky-tabs{
  position: -webkit-sticky;
  position: sticky;
  top: var(--mobile-header-sticky-h);
  z-index: 50;
  background: transparent;
  margin-bottom: 12px;
}

.product-sticky-tabs .container{
  position: relative;
  background: #f4f6f9;
  padding: 12px 20px;
  box-shadow: 0 2px 6px rgba(30,58,95,.06);
  border-radius: 8px;
  display: flex;
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  transition: all .3s ease;
}

.product-sticky-tabs ul{
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.product-sticky-tabs li{ flex: 0 0 auto; }

.product-sticky-tabs li a{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding-bottom: 4px;
  line-height: 1;
  vertical-align: middle;
  color: inherit;
}

.product-sticky-tabs a.active,
.product-sticky-tabs li a.active{
  border-bottom: 2px solid #1e3a5f;
  color: #1e3a5f;
}

.product-sticky-tabs .tab-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.product-sticky-tabs .tab-icon img{
  width: 14px;
  height: 14px;
  display: block;
  opacity: .9;
}

.product-sticky-tabs a.active .tab-icon img{
  opacity: 1;
}

.product-sticky-tabs .tab-text{ line-height: 1; }

/* hint справа для mobile */
.sticky-scroll-hint{
  position: absolute;
  top: 0;
  right: 0;
  width: 2.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
  background: linear-gradient(to left, rgba(244,246,249,.9), transparent);
  z-index: 10;
}

.sticky-scroll-hint i{
  font-size: 1.2rem;
  color: #1e3a5f;
  margin-right: .4rem;
  animation: bounce-right 1.2s infinite;
}

@media (min-width:769px){
  .sticky-scroll-hint{ display: none !important; }
}

/* ✅ FIX: правильный селектор (у тебя было product_sticky-tabs) */
.product-sticky-tabs .container.expanded{
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  border-radius: 0;
}

.product-sticky-tabs.stuck .container{
  max-width: 100vw;
  border-radius: 0;
  margin: 0;
}

/* =========================================================
 * 10) STICKY ADD TO CART (Anvanto) - FIX SHADOW
 * ========================================================= */

.an_stickyAddToCart{
  background: rgba(255,255,255,.92);
  box-shadow: 0 -4px 12px rgba(30,58,95,.10);
  padding: 6px 8px;
  border-top: 1px solid rgba(30,58,95,.08);
}

.an_stickyAddToCart-regular-price + .an_stickyAddToCart-price-price{
  color: #1e3a5f !important;
}

/* =========================================================
 * 11) VIDEO BLOCK
 * ========================================================= */

.musson-video,
.musson-video-placeholder{
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(30,58,95,.12);
  margin: 2rem auto;
  max-width: 100%;
  background: #f4f4f5;
}

.musson-video iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
}


/* YouTube превью картинка */
.musson-video-placeholder .musson-video-thumb{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

/* Кнопка Play поверх превью */
.musson-video-play{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 2;
  transition: transform .2s ease;
}

.musson-video-play svg{
  display: block;
  width: 100%;
  height: 100%;
  opacity: .85;
  transition: opacity .2s ease;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.3));
}

.musson-video-placeholder:hover .musson-video-play{
  transform: translate(-50%, -50%) scale(1.08);
}

.musson-video-placeholder:hover .musson-video-play svg,
.musson-video-placeholder:focus-within .musson-video-play svg{
  opacity: 1;
}

/* фокус для доступности */
.musson-video-placeholder:focus-visible{
  outline: 2px solid #1e3a5f;
  outline-offset: 2px;
}

/* =========================================================
 * 12) OUT OF STOCK: hide credit stuff
 * ========================================================= */

.product-add-to-cart.pt-3.is-out-of-stock .amx-credit-icons,
.product-add-to-cart.pt-3.is-out-of-stock .btn.credit-btn,
.product-add-to-cart.pt-3.is-out-of-stock .merchant-wrapper-product{
  display: none !important;
}

.product-add-to-cart .add-to-cart:disabled{
  background: #f2f2f2 !important;
  border: 1px solid #ddd !important;
  color: #000 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  opacity: .6;
}

.product-add-to-cart .add-to-cart:disabled .spinner-icon{
  display: none !important;
}

/* =========================================================
 * 13) ACCESSORIES SECTION TITLE (dot accent → vertical bar)
 * ========================================================= */

section.product-accessories .section-title{
  position: relative;
  margin: 0 0 14px;
  padding: 16px 18px 16px 36px;
  background: #f4f6f9;
  border-bottom: 1px solid rgba(30,58,95,.10);
  border-radius: 6px 6px 0 0;
  font-weight: 700;
  font-size: 16px !important;
  color: #1e3a5f;
}

@media (max-width:767.98px){
  section.product-accessories .section-title{
    font-size: 15px !important;
  }
}

section.product-accessories .section-title::before{
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  border-radius: 0;
  background: #1e3a5f;
}

/* =========================================================
 * 14) IMAGES RADIUS (global)
 * ========================================================= */

.img-fluid,
.img-thumbnail{
  border-radius: 12px;
}

/* =========================================================
 * 15) ACCESSORIES FULL-WIDTH HELPERS
 * ========================================================= */

.musson-accessories .products,
.musson-accessories-wrap{
  width: 100%;
}

.musson-accessories-inner{
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 15px;
}

.sectionwrapper{
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* =========================================================
 * 16) REVIEWS "SHOW MORE"
 * ========================================================= */

/* hide helper */
#iqitreviews-list .iqitreviews-review.is-hidden{
  display: none;
}

/* wrap for button */
.iqitreviews-more-wrap{
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

/* button style */
.iqitreviews-more-btn{
  border-radius: 6px;
  padding: 8px 12px;
  font-weight: 600;
  color: #1e3a5f;
  border: 1px solid #1e3a5f;
  background: transparent;
  transition: background .2s ease, color .2s ease;
}

.iqitreviews-more-btn:hover{
  background: #1e3a5f;
  color: #fff;
}


/* =========================================================
 * 17) AUTHORIZED BADGE (amx-authorized-badge)
 * ========================================================= */
.amx-authorized-badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 10px;
  font-size: 13px;
  line-height: 1.2;
  color: #fff;
  background: #1e3a5f;
  border: 1px solid #1e3a5f;
  border-radius: 6px;
  white-space: nowrap;
}

.amx-authorized-badge i{
  font-size: 14px;
  color: #fff;
}






/* ===== Collapsible description (Apple-like) ===== */
.amx-desc{
  position: relative;
}

.amx-desc__content{
  position: relative;
  overflow: hidden;

  /* дефолтная высота "минимум текста" — можно менять */
  max-height: var(--amx-desc-collapsed, 220px);

  /* плавное раскрытие */
  transition: max-height .45s cubic-bezier(.2,.8,.2,1);
  will-change: max-height;
}

/* когда раскрыто */
.amx-desc.is-open .amx-desc__content{
  max-height: var(--amx-desc-expanded, 9999px);
}

.amx-desc__fade{
  position: absolute;
  left: 0;
  right: 0;

  /* высота зоны градиента */
  height: 84px;

  /* ставим поверх текста внизу */
  bottom: 44px; /* место под кнопку */
  pointer-events: none;

  /* градиент "заливка пропадающая" */
  background: linear-gradient(to bottom,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.72) 45%,
    rgba(255,255,255,1) 100%
  );

  opacity: 1;
  transition: opacity .25s ease;
}



.amx-desc.is-open .amx-desc__fade{
  opacity: 0;
}

/* ===== Button — squared, navy ===== */
.amx-desc__btn {
    gap: 6px;
    margin-top: 12px;
    padding: 12px 16px;
    border: 1px solid #1e3a5f;
    border-radius: 6px;
    background: transparent;
    color: #1e3a5f;

    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.amx-desc__btn:hover{
  background: #1e3a5f;
  color: #fff;
}

.amx-desc__btn:active{
  transform: scale(.98);
}

.amx-desc__count{
  opacity: .75;
  font-weight: 700;
}

/* аккуратно на мобильном можно центрировать или оставить слева */
@media (max-width: 576px){
  .amx-desc__btn{
    width: auto;
  }
}

/* wrap for button (align right) */
.amx-desc__btn-wrap{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 12px;
}
.amx-desc__btn{
  margin-top: 0; /* теперь отступ задаёт wrap */
}

.amx-desc__btn{
  text-decoration: none;

  -webkit-appearance: none;
  appearance: none;

  background-clip: padding-box;
}














































/*=========================================================
  ВИДЕО КАРУСЕЛЬ (оптимизированная версия)
=========================================================*/

/* ===== Контейнер видео ===== */
.custom-video-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 520px;
  margin: 0 auto;
  overflow: hidden;
  background: #0a1929;
  border-radius: 12px;

  /* фиксы iOS */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  transform: translateZ(0);
  contain: layout paint;
  isolation: isolate;
}

/* ===== Видео ===== */
.custom-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
  border-radius: inherit;
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
}

/* ===== Переменные ===== */
:root {
  --swiper-pagination-bottom: 8px;

  /* Кнопки: регулировки */
  --amx-btn-down: 10px;
  --amx-btn-gap: 12px;
  --amx-btn-top: 16px;
}

/* =========================================================
   AMX VIDEO BUTTONS — TOP RIGHT (CCC-SAFE)
   ========================================================= */

/* якорим абсолютные кнопки внутри плеера */
.custom-video-wrapper{
  position: relative !important;
}

/* базовые стили кнопок (ТОЛЬКО внутри custom-video-wrapper) */
.custom-video-wrapper .btn-pause,
.custom-video-wrapper .btn-volume,
.custom-video-wrapper .btn-restart{
  position: absolute !important;
  right: 16px !important;
  top: auto;
  z-index: 20 !important;

  background: rgba(30, 58, 95, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: 0;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;

  transition: transform 0.2s ease, background 0.25s ease, opacity 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;

  color: #fff;
  -webkit-tap-highlight-color: transparent;
  min-width: 44px;
  min-height: 44px;
}

/* ===== позиции (с фолбэками переменных) ===== */
.custom-video-wrapper .btn-pause{
  top: calc(var(--amx-btn-top, 16px) + var(--amx-btn-down, 10px));
}

.custom-video-wrapper .btn-volume{
  top: calc(var(--amx-btn-top, 16px) + var(--amx-btn-down, 10px) + 48px + var(--amx-btn-gap, 12px));
}

.custom-video-wrapper .btn-restart{
  top: calc(var(--amx-btn-top, 16px) + var(--amx-btn-down, 10px) + (48px + var(--amx-btn-gap, 12px)) * 2);
}

/* иконки */
.custom-video-wrapper .btn-pause i,
.custom-video-wrapper .btn-volume i,
.custom-video-wrapper .btn-restart i{
  font-size: 16px;
  line-height: 1;
  width: 16px;
  height: 16px;
  color: #fff;
  opacity: 0.95;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* hover/active/focus */
.custom-video-wrapper .btn-pause:hover,
.custom-video-wrapper .btn-volume:hover,
.custom-video-wrapper .btn-restart:hover{
  background: rgba(30, 58, 95, 0.75);
  transform: translateY(-1px);
}

.custom-video-wrapper .btn-pause:active,
.custom-video-wrapper .btn-volume:active,
.custom-video-wrapper .btn-restart:active{
  transform: translateY(0);
}

.custom-video-wrapper .btn-pause:focus-visible,
.custom-video-wrapper .btn-volume:focus-visible,
.custom-video-wrapper .btn-restart:focus-visible{
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

/* safe-area для iPhone (с фолбэком env) */
@supports (padding: env(safe-area-inset-top)) {
  .custom-video-wrapper .btn-pause{
    top: calc(var(--amx-btn-top, 16px) + env(safe-area-inset-top, 0px) + var(--amx-btn-down, 10px));
  }

  .custom-video-wrapper .btn-volume{
    top: calc(var(--amx-btn-top, 16px) + env(safe-area-inset-top, 0px) + var(--amx-btn-down, 10px) + 48px + var(--amx-btn-gap, 12px));
  }

  .custom-video-wrapper .btn-restart{
    top: calc(var(--amx-btn-top, 16px) + env(safe-area-inset-top, 0px) + var(--amx-btn-down, 10px) + (48px + var(--amx-btn-gap, 12px)) * 2);
  }
}


/* =========================================================
   Overlay Tap-to-Play (если не нужен — можно удалить)
   ========================================================= */
.video-tap-to-play {
  position: absolute;
  inset: 0;
  z-index: 9;
  border: 0;
  background: radial-gradient(ellipse at center, rgba(10, 25, 41, .4), rgba(10, 25, 41, .65));
  color: #fff;
  font-weight: 600;
  letter-spacing: .2px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* =========================================================
   СЛАЙДЕР
   ========================================================= */
.amx-video-swiper {
  margin-bottom: 24px;
  padding-bottom: 20px;
}

.amx-video-swiper .swiper-slide {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0a1929;
  border-radius: 12px;
  display: flex;
  height: 520px;
}

@media (min-width: 576px) { .amx-video-swiper .swiper-slide { height: 520px; } }
@media (min-width: 992px) { .amx-video-swiper .swiper-slide { height: 520px; } }

/* ===== Картинка ===== */
.amx-video-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Видеослот (если где-то используется) ===== */
.amx-video-slot {
  position: relative;
  width: 100%;
  height: 100%;
}

.amx-video-slot video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}

/* =========================================================
   НАВИГАЦИЯ (стрелки)
   ========================================================= */
.amx-swiper-prev,
.amx-swiper-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 0;
  background: rgba(30, 58, 95, .45);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.25s;
}

.amx-swiper-prev { left: 8px; }
.amx-swiper-next { right: 8px; }

.amx-swiper-prev:hover,
.amx-swiper-next:hover {
  background: rgba(30, 58, 95, .70);
}

/* =========================================================
   ПАГИНАЦИЯ
   ========================================================= */
.swiper-horizontal > .swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal,
.swiper-pagination-custom,
.swiper-pagination-fraction {
  bottom: -5px !important;
}

/* =========================================================
   АДАПТИВ
   ========================================================= */
@media (max-width: 768px) {
  .btn-pause,
  .btn-volume,
  .btn-restart {
    right: 12px;
    padding: 10px;
  }

  .btn-pause i,
  .btn-volume i,
  .btn-restart i {
    width: 14px;
    height: 14px;
    font-size: 14px;
  }

  :root { --amx-btn-down: 12px; }
}

/* =========================================================
   ПРОГРЕСС-БАР (как сторис)
   ========================================================= */
.amx-video-swiper .amx-progress {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .22);
  z-index: 30;
  overflow: hidden;
  pointer-events: none;
}

.amx-video-swiper .amx-progress__bar {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  background: rgba(255, 255, 255, .92);
  transform: translateZ(0);
  will-change: width;
  transition: width .12s linear;
}

/* safe-area для iPhone */
@supports (padding: env(safe-area-inset-top)) {
  .amx-video-swiper .amx-progress {
    top: calc(12px + env(safe-area-inset-top));
  }
}

/* Когда у слайдера 1 элемент — скрыть навигацию/пагинацию */
.amx-video-swiper.is-single .amx-swiper-prev,
.amx-video-swiper.is-single .amx-swiper-next,
.amx-video-swiper.is-single .swiper-pagination {
  display: none !important;
}

/* Кнопка паузы на фото — показываем только на мобиле (сторис режим) */
@media (max-width: 767px) {
  .amx-video-swiper .swiper-slide.is-image .btn-pause {
    display: flex;
  }
}

/* На ПК скрываем кнопки на картинках (они там не нужны) */
@media (min-width: 768px) {
  .amx-video-swiper .swiper-slide.is-image .btn-pause,
  .amx-video-swiper .swiper-slide.is-image .btn-volume,
  .amx-video-swiper .swiper-slide.is-image .btn-restart {
    display: none !important;
  }
}

/* На ПК прогресс не показываем */
@media (min-width: 768px) {
  .amx-video-swiper .amx-progress { display: none; }
}

/* =========================================================
   Центральная кнопка Play (GATE)
   ========================================================= */

/* чтобы абсолютка центровалась внутри слайда */
.amx-video-swiper .swiper-slide { position: relative; }

.amx-start-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(30, 58, 95, .55);
  color: #fff;
  z-index: 50;

  display: flex;
  align-items: center;
  justify-content: center;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  box-shadow: 0 8px 24px rgba(10, 25, 41, .4);
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.amx-start-overlay i {
  font-size: 18px;
  transform: translateX(1px);
}

.amx-start-overlay:hover {
  background: rgba(30, 58, 95, .75);
  box-shadow: 0 12px 30px rgba(10, 25, 41, .5);
  transform: translate(-50%, -50%) scale(1.04);
}

.amx-start-overlay:active {
  transform: translate(-50%, -50%) scale(.97);
}

/* =========================================================
   AMX — Unified Controls Patch (put at VERY END)
   ========================================================= */

/* Общая "стеклянная" база (не трогаем размеры/позиции) */
.btn-pause,
.btn-volume,
.btn-restart,
.amx-start-overlay{
  background: rgba(30, 58, 95, .50) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  box-shadow: none !important;

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  transition:
    background .18s ease,
    border-color .18s ease,
    opacity .18s ease,
    transform .18s ease;
}

/* Иконки */
.btn-pause i,
.btn-volume i,
.btn-restart i,
.amx-start-overlay i{
  opacity: .95 !important;
}

/* Hover */
.btn-pause:hover,
.btn-volume:hover,
.btn-restart:hover,
.amx-start-overlay:hover{
  background: rgba(30, 58, 95, .75) !important;
  border-color: rgba(255,255,255,.20) !important;
}

/* Правые кнопки — лёгкий lift */
.btn-pause:hover,
.btn-volume:hover,
.btn-restart:hover{
  transform: translateY(-1px) !important;
}
.btn-pause:active,
.btn-volume:active,
.btn-restart:active{
  transform: translateY(0) scale(.97) !important;
}

/* Центр — сохраняем translate и добавляем scale */
.amx-start-overlay:hover{
  transform: translate(-50%,-50%) scale(1.04) !important;
}
.amx-start-overlay:active{
  transform: translate(-50%,-50%) scale(.97) !important;
}

/* Focus */
.btn-pause:focus-visible,
.btn-volume:focus-visible,
.btn-restart:focus-visible,
.amx-start-overlay:focus-visible{
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(255,255,255,.30) !important;
}

/* Хочу звук (мобила) */
.btn-volume.amx-want-sound{
  border-color: rgba(255,255,255,.35) !important;
  background: rgba(30, 58, 95, .80) !important;
}





/* спрятать возможный остаток вертикальных стрелок TouchSpin */
.product-quantity .bootstrap-touchspin-up,
.product-quantity .bootstrap-touchspin-down,
.product-quantity .input-group-btn-vertical { display: none !important; }

/* убрать нативные стрелки number в Chrome/FF */
.amx-qty input[type=number]::-webkit-outer-spin-button,
.amx-qty input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.amx-qty input[type=number] { -moz-appearance: textfield; }

/* === minimalist qty: квадратные − / +, тонкая граница navy === */
.amx-qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: auto;
  border: 0;
  background: transparent;
  overflow: visible;
  vertical-align: middle;
}
.amx-qty-btn {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(30,58,95,.20);
  border-radius: 6px;
  background: #fff;
  color: #1e3a5f;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s, border-color .15s;
}
.amx-qty-btn:hover  { 
  background: #1e3a5f; 
  color: #fff;
  border-color: #1e3a5f;
}
.amx-qty-btn:active { 
  background: #14283f; 
  border-color: #14283f;
  color: #fff;
}

.amx-qty input#quantity_wanted {
  flex: 0 0 40px;
  width: 40px;
  min-width: 0;
  height: 34px;
  border: 0;
  background: transparent;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #1e3a5f;
  outline: none;
  padding: 0;
  -moz-appearance: textfield;
}
.amx-qty input#quantity_wanted::-webkit-outer-spin-button,
.amx-qty input#quantity_wanted::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* нейтрализуем старое правило, которое навязывало input-group */
.product-quantity .qty .input-group { height: 50px; display: block; }
.product-quantity.row { align-items: center !important; }
@media (min-width: 576px) {
  .product-quantity .add { margin-left: 16px; }
}
@media (max-width: 575.98px) {
  .product-quantity .qty {
    text-align: center;
    margin-bottom: 12px;
  }
}
.product-quantity .qty {
  width: auto !important;
  height: auto !important;
}


.amx-meta-row{
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  gap: 4px 16px;
}
.amx-meta-row .product-manufacturer,
.amx-meta-row .product-reference{
  margin: 0 !important;
  font-size: 12px;
  color: #8a8a8a;
}
.amx-meta-row .product-reference::before{ content: none; }

@media (max-width: 767px){
  .amx-meta-row .product-manufacturer .label{ display: none; }
  .amx-meta-row .product-reference .label{ display: none; }
  .amx-meta-row .product-reference span::before{ content: "Арт. "; }
}


/* подсказка «упёрлись в остаток» */
.amx-qty-hint {
  display: none;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.2;
  color: #d9534f;
}
.amx-qty-hint.is-on { display: block; }