/* Мобильная липкая панель покупки на странице товара (big-ant.ru) */
.pm-bar { display: none; }

@media (max-width: 767px) {
  body.has-pm-bar { padding-bottom: 156px; }

  .pm-bar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
    background: #fff;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -8px 8px rgba(22, 34, 51, .08);
    font-family: Montserrat, sans-serif;
  }

  .pm-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-height: 28px;
  }

  .pm-prices {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .pm-bar--no-old .pm-price { color: #000; }

  .pm-price {
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
    color: #e65151;
    white-space: nowrap;
  }

  .pm-old {
    font-size: 18px;
    line-height: 1;
    color: #000;
    text-decoration-line: line-through;
    text-decoration-color: #e65151;
    text-decoration-thickness: 2px;
    white-space: nowrap;
  }

  .pm-old:empty { display: none; }

  .pm-stock {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 4px;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 500;
    color: #478fca;
    white-space: nowrap;
  }

  .pm-stock svg { flex: none; }

  .pm-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
  }

  .pm-buy,
  .pm-add {
    flex: 1 1 0;
    min-width: 0;
    height: 56px;
    border: 0;
    border-radius: 6px;
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .48px;
    cursor: pointer;
  }

  .pm-buy {
    background: rgba(242, 138, 49, .15);
    color: #f28a31;
  }

  .pm-cart {
    flex: 1 1 0;
    min-width: 0;
    height: 56px;
  }

  .pm-add {
    display: block;
    width: 100%;
    background: #478fca;
    color: #fff;
  }

  .pm-qty {
    display: none;
    height: 56px;
    border-radius: 6px;
    background: #478fca;
    color: #fff;
  }

  .pm-bar[data-state="cart"] .pm-add { display: none; }
  .pm-bar[data-state="cart"] .pm-qty { display: flex; }

  .pm-minus,
  .pm-plus {
    flex: none;
    width: 40px;
    height: 56px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font: 400 24px/1 Montserrat, sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
  }

  .pm-minus:disabled,
  .pm-plus:disabled { opacity: .5; }

  .pm-center {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 56px;
    color: #fff;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }

  .pm-center-num {
    font-size: 16px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .48px;
    white-space: nowrap;
  }

  .pm-center-label {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1;
    font-weight: 400;
    white-space: nowrap;
  }
}

/* Плашки под галереей (мобильная версия) */
.product-mobile-pills { display: none; }

@media (max-width: 767px) {
  .product-mobile-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin: 12px 0;
    padding: 0;
  }

  .product-mobile-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 5px;
    background: #f0f0f0;
    border-radius: 6.645px;
    font: 400 16px/1 Montserrat, sans-serif;
    color: #000;
    white-space: nowrap;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .product-mobile-pill-q {
    flex: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #d9d9d9;
    color: #fff;
    font: 700 12px/1 Montserrat, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  body.has-pm-bar .product-content-pricing,
  body.has-pm-bar .product-content-btns,
  body.has-pm-bar .product-want-discount { display: none !important; }
}
/* Чуть компактнее на iPhone (<=400px) */
@media (max-width: 400px) {
  body.has-pm-bar { padding-bottom: 136px; }

  .pm-bar { padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }

  .pm-top { min-height: 24px; }

  .pm-price { font-size: 24px; }
  .pm-old { font-size: 16px; }

  .pm-stock { padding-top: 2px; font-size: 14px; gap: 5px; }
  .pm-stock svg { width: 16px; height: 16px; }

  .pm-actions { margin-top: 12px; }

  .pm-buy,
  .pm-add { height: 52px; font-size: 14px; letter-spacing: .3px; }

  .pm-cart,
  .pm-qty { height: 52px; }

  .pm-minus,
  .pm-plus { width: 36px; height: 52px; font-size: 22px; }

  .pm-center { height: 52px; }
  .pm-center-num { font-size: 14px; }
  .pm-center-label { margin-top: 3px; font-size: 12px; }

  .product-mobile-pills { gap: 4px; margin: 10px 0; }
  .product-mobile-pill { gap: 6px; padding: 7px 5px; font-size: 14px; }
  .product-mobile-pill-q { width: 16px; height: 16px; font-size: 11px; }
}

/* Десктопная карточка товара: чистая компоновка (2026-11-24) */
@media (min-width: 768px) {
  .product-content-top { justify-content: flex-start; margin: 0 0 18px; }
  .product-content-top .item_card-reviews { margin: 0 14px; color: #000; }

  .product-content-pricing { display: block; margin: 0; }
  .product-content-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; padding: 0; }
  .product-content-price .product-content-text { flex: 0 0 100%; margin: 0 0 2px; font-size: 14px; color: #6f6f6f; }
  .product-content-price .price { order: 1; font-size: 36px; line-height: 1; font-weight: 700; color: #e65151; }
  .product-content-price.pm-no-old-price .price { color: #000; }
  .product-content-price .old_price { order: 2; margin: 0; font-size: 18px; line-height: 1; }
  .product-content-price .old_price:before { bottom: 8px; }
  .product-content-price .product-content-price-presence { order: 3; display: inline-flex; align-items: center; gap: 6px; margin: 0 0 0 auto; padding: 0; float: none; font-size: 16px; line-height: 1.2; font-weight: 500; color: #478fca; }
  .product-content-price .product-content-price-presence:after { content: none; display: none; }
  .product-content-price .product-content-price-presence.presence-in:before { content: ""; position: static; width: 18px; height: 18px; border: 0; border-radius: 0; background: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.96002 2.52002H10.44V3.96002H3.96002V14.04H14.04V8.33042H15.48V14.04C15.48 14.4219 15.3283 14.7882 15.0583 15.0583C14.7882 15.3283 14.4219 15.48 14.04 15.48H3.96002C3.57811 15.48 3.21184 15.3283 2.94179 15.0583C2.67173 14.7882 2.52002 14.4219 2.52002 14.04V3.96002C2.52002 3.57811 2.67173 3.21184 2.94179 2.94179C3.21184 2.67173 3.57811 2.52002 3.96002 2.52002Z' fill='%23478FCA'/%3E%3Cpath d='M15.0408 2.80298L16.0589 3.82106L8.61697 11.263L5.56201 8.20802L6.58081 7.18994L8.61697 9.2261L15.0408 2.80298Z' fill='%23478FCA'/%3E%3C/svg%3E") center/contain no-repeat; flex: none; }

  .product-content-cashback,
  .product-want-discount { display: none; }

  .product-mobile-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; }
  .product-mobile-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; background: #f0f0f0; border-radius: 6.645px; font: 400 16px/1 Montserrat, sans-serif; color: #000; white-space: nowrap; cursor: pointer; }
  .product-mobile-pill-q { flex: none; width: 18px; height: 18px; border-radius: 50%; background: #d9d9d9; color: #fff; font: 700 12px/1 Montserrat, sans-serif; display: flex; align-items: center; justify-content: center; }

  .product-content-btns { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 10px; margin: 18px 0; }
  .product-content-btns .btn { width: 173px; max-width: calc(50% - 5px); flex: 0 0 auto; min-width: 0; height: 56px; padding: 0; border-radius: 6px; font-size: 16px; font-weight: 700; letter-spacing: .48px; display: flex; align-items: center; justify-content: center; }
  .product-content-btns .btn:before { content: none; }
  .product-content-btns .btn:first-child { margin-right: 0; }
  .product-content-btns .btn_icon-cart_click { background: rgba(242, 138, 49, .15); color: #f28a31; }
  .product-content-btns .btn_icon-cart { background: #478fca; color: #fff; }

  .presence.hidden-mob { display: none; }

  /* чтобы пагинация слайдера фото не прилипала к нижней границе */
  .product-content { padding-bottom: 18px; }
}

/* rating: ordered count to the right */
.product-content-top{justify-content:flex-start}
.product-content-top .item_card-buy{margin-left:auto}

/* reviews: filter centered, author left */
.product-comments-stars{justify-content:center}
.product-comments-item .row.product-tabs-li{justify-content:space-between;align-items:center}
.product-comments-item .product-tabs-li i[itemprop="author"]{font-style:italic;font-weight:700;text-transform:uppercase}
