/* razborka-ua.com: floating list scroll buttons (2026-12-03)
   Rollback: restore head.tpl from /root/backup-scroll-buttons-20261203/ and remove this file. */

.rz-scroll-nav {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10050;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.rz-scroll-nav.is-active {
  display: flex;
}

@supports (bottom: env(safe-area-inset-bottom)) {
  .rz-scroll-nav {
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

@media (min-width: 768px) {
  .rz-scroll-nav {
    right: 24px;
    bottom: 24px;
  }

  @supports (bottom: env(safe-area-inset-bottom)) {
    .rz-scroll-nav {
      bottom: calc(24px + env(safe-area-inset-bottom));
    }
  }
}

.rz-scroll-nav__btn {
  pointer-events: auto;
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #8a8a8a;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.92);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease, visibility 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.rz-scroll-nav__btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.rz-scroll-nav__btn:hover,
.rz-scroll-nav__btn:focus {
  background: #6e6e6e;
  color: #fff;
  outline: none;
}

.rz-scroll-nav__btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(199, 1, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.28);
}

.rz-scroll-nav__btn:active {
  background: #5c5c5c;
}

.rz-scroll-nav__btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  pointer-events: none;
}

/* Hide classic theme in-flow «Вгору» / Back to top under the pagination.
   It duplicates the floating rz-scroll-nav up button and is nearly unreadable
   (btn-secondary grey on grey). Rollback: restore custom.css from
   /root/backup-scroll-buttons-20261203/before-vgoru-hide/custom.css */
#js-product-list .up,
#products .up {
  display: none !important;
}


/* razborka-ua.com: Telegram channel promo on product and order confirmation (2026-12-03)
   Rollback: restore product.tpl, order-confirmation.tpl, head.tpl and this file from
   /workspace/razborka-backups/ and remove templates/_partials/telegram-promo.tpl */
.rz-telegram-promo {
  margin: 14px 0 4px;
}

.rz-telegram-promo__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid #229ED9;
  border-radius: 6px;
  background: #f3faff;
  color: #0d6e8f;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.35;
  text-decoration: none;
}

.rz-telegram-promo__link:hover,
.rz-telegram-promo__link:focus {
  background: #229ED9;
  color: #fff;
  outline: none;
  text-decoration: none;
}

.rz-telegram-promo__link:focus-visible {
  box-shadow: 0 0 0 3px rgba(34, 158, 217, 0.35);
}

.rz-telegram-promo__link svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

@media (max-width: 575.98px) {
  .rz-telegram-promo__link {
    width: 100%;
  }
}


/* razborka-ua.com: product price, article and buy block (2026-12-03)
   Rollback: restore custom.css, product.tpl, product-add-to-cart.tpl,
   product-head-meta.tpl and miniatures/product.tpl from
   /root/backup-mobile-price-20261203/ */

.rz-product-head {
  margin: 2px 0 12px;
}

.rz-product-head__meta {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  width: 100%;
}

.rz-product-head__avail,
.rz-product-head__avail--in,
.rz-product-head__avail--out,
#product-availability.rz-product-head__avail,
#product-availability .product-available,
#product-availability .product-unavailable,
#product-availability .product-last-items {
  margin: 0;
  color: #c70100 !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 16.5px;
  line-height: 1.25;
}

.rz-product-head .product-article {
  margin: 0 0 0 auto;
  font-size: 16.5px;
  line-height: 1.25;
  font-weight: 600;
  color: #111;
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
  text-align: right;
}

.rz-product-head .product-article span {
  font-weight: 700;
  color: #c70100;
}

.rz-product-head__avail,
#product-availability.rz-product-head__avail {
  flex: 0 0 auto;
  margin-left: 0;
  text-align: left;
  white-space: nowrap;
}

/* Buy panel under the photos: price once, next to the qty stepper */
.rz-buy-panel {
  margin: 0 0 16px;
  padding: 8px 0 4px;
}

.rz-buy-bar {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px 6px;
  margin: 0 0 10px;
}

.rz-buy-price {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.rz-buy-price__value {
  color: #c70100;
  font-weight: 700;
  font-size: 39px;
  line-height: 1.1;
  height: auto;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.rz-buy-panel .control-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rz-buy-panel .product-quantity {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 0;
  margin-left: auto;
}

.rz-buy-panel .qty {
  margin: 0;
}

/* Horizontal stepper [−] 1 [+] from classic vertical TouchSpin */
.rz-buy-panel .bootstrap-touchspin {
  display: flex !important;
  flex-direction: row;
  align-items: stretch;
  float: none !important;
  flex-wrap: nowrap !important;
  box-sizing: border-box !important;
  width: 140px !important;
  height: 48px !important;
  border: 1px solid #cfcfcf;
  border-radius: 5px;
  overflow: hidden;
  background: #fff;
}

.rz-buy-panel .bootstrap-touchspin .input-group-btn-vertical {
  display: contents !important;
  width: auto !important;
  float: none !important;
  position: static !important;
}

.rz-buy-panel .bootstrap-touchspin .bootstrap-touchspin-down,
.rz-buy-panel .bootstrap-touchspin .btn-touchspin.bootstrap-touchspin-down {
  order: 1 !important;
}

.rz-buy-panel .bootstrap-touchspin #quantity_wanted,
.rz-buy-panel .bootstrap-touchspin input {
  order: 2 !important;
  float: none !important;
  flex: 0 0 60px !important;
  width: 60px !important;
  min-width: 60px !important;
  max-width: 60px !important;
  height: 48px !important;
  margin: 0 !important;
  padding: 0 4px !important;
  border: 0 !important;
  border-left: 1px solid #e8e8e8 !important;
  border-right: 1px solid #e8e8e8 !important;
  border-radius: 0 !important;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #212529;
  background: #fff;
  box-shadow: none;
  -moz-appearance: textfield;
}

.rz-buy-panel .bootstrap-touchspin input::-webkit-outer-spin-button,
.rz-buy-panel .bootstrap-touchspin input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.rz-buy-panel .bootstrap-touchspin .bootstrap-touchspin-up,
.rz-buy-panel .bootstrap-touchspin .btn-touchspin.bootstrap-touchspin-up {
  order: 3 !important;
}

.rz-buy-panel .bootstrap-touchspin .btn-touchspin,
.rz-buy-panel .bootstrap-touchspin .input-group-btn-vertical .btn,
.rz-buy-panel .bootstrap-touchspin button.bootstrap-touchspin-up,
.rz-buy-panel .bootstrap-touchspin button.bootstrap-touchspin-down {
  box-sizing: border-box;
  display: flex !important;
  float: none !important;
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  flex: 0 0 40px !important;
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 48px !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #f3f3f3;
  color: #212529;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.rz-buy-panel .bootstrap-touchspin .btn-touchspin:hover,
.rz-buy-panel .bootstrap-touchspin .btn-touchspin:focus {
  background: #e8e8e8;
  color: #212529;
}

.rz-buy-panel .bootstrap-touchspin .btn-touchspin i,
.rz-buy-panel .bootstrap-touchspin .btn-touchspin .material-icons {
  display: none !important;
}

.rz-buy-panel .bootstrap-touchspin-down::before {
  content: "\2212";
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}

.rz-buy-panel .bootstrap-touchspin-up::before {
  content: "+";
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}

.rz-buy-buttons {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

.rz-buy-panel .add-to-cart,
.rz-buy-panel .buy-one-click-button {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  height: 48px;
  margin: 0;
  padding: 0 16px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 16px;
  line-height: 48px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.rz-buy-panel .add-to-cart {
  background: #c70100;
  color: #fff;
  border: 0;
}

.rz-buy-panel .add-to-cart:hover,
.rz-buy-panel .add-to-cart:focus {
  background: #d23433;
  color: #fff;
}

.rz-buy-panel .add-to-cart.disabled,
.rz-buy-panel .add-to-cart:disabled {
  opacity: 0.65 !important;
  background: #c70100 !important;
  color: #fff !important;
}

.rz-buy-panel .buy-one-click-button {
  background: #fff;
  color: #c70100;
  border: 2px solid #c70100;
  line-height: 44px;
}

.rz-buy-panel .buy-one-click-button:hover,
.rz-buy-panel .buy-one-click-button:focus {
  background: #c70100;
  color: #fff;
}

.rz-buy-panel .buy-one-click-button.disabled,
.rz-buy-panel .buy-one-click-button:disabled {
  opacity: 0.65 !important;
  background: #fff !important;
  color: #c70100 !important;
  border-color: #c70100 !important;
}

@media (min-width: 768px) {
  .rz-product-head__avail,
  .rz-product-head__avail--in,
  .rz-product-head__avail--out,
  #product-availability.rz-product-head__avail,
  .rz-product-head .product-article {
    font-size: 17px;
  }

  .rz-buy-price__value {
    font-size: 42px;
    letter-spacing: 0;
  }

  .rz-buy-panel .qty {
    flex: 0 0 auto;
  }

  .rz-buy-buttons,
  .rz-buy-panel .add {
    flex-direction: row;
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }

  .rz-buy-panel .add-to-cart,
  .rz-buy-panel .buy-one-click-button {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
  }
}

/* v5 listing cards: SKU and price on one line, same size */
.product-home-meta {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 8px;
  margin: 0;
}

.product-home-article,
.product-home-price {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}

.product-home-article {
  color: #111;
  font-weight: 500;
  flex: 1 1 auto;
  min-width: 0;
}

.product-home-article span {
  color: #c70100;
  font-weight: 700;
}

.product-home-price {
  color: #c70100;
  font-weight: 700;
  flex: 0 1 auto;
  margin-left: auto;
  white-space: nowrap;
}


/* v4 mobile: no header underline/shadow; tighter gap to breadcrumbs (all pages).
   Do not redesign the header itself. */
@media (max-width: 767.98px) {
  #header,
  #header.mb-3 {
    box-shadow: none !important;
    border-bottom: 0 !important;
    margin-bottom: 2px !important;
  }

  #header .header-nav {
    border-bottom: 0 !important;
  }

  #header .header-top {
    background: transparent !important;
    min-height: 0 !important;
    height: 0 !important;
    overflow: hidden;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  #header > .container.pt-3.pb-3,
  #header > .container {
    padding-bottom: 8px !important;
  }
}

/* v4 mobile: compact vertical spacing on the product page */
@media (max-width: 767.98px) {
  body#product #header,
  body#product #header.mb-3 {
    margin-bottom: 2px !important;
  }

  body#product .breadcrumb {
    margin-bottom: 4px !important;
  }

  body#product .product-container > .col-12.d-block.d-md-none > h1.h5,
  body#product .product-container h1.h5.d-block,
  body#product .product-container .d-block.d-md-none h1 {
    margin-top: 0 !important;
    margin-bottom: 4px !important;
  }

  body#product .rz-product-head {
    margin: 0 0 4px !important;
  }

  body#product #content.page-content,
  body#product section.page-content,
  body#product .page-content {
    margin-top: 0 !important;
    margin-bottom: 4px !important;
    padding-bottom: 0 !important;
  }

  body#product .images-container,
  body#product .mySwiper2,
  body#product .mySwiper,
  body#product .product-cover,
  body#product .product-images,
  body#product .js-qv-mask,
  body#product .js-images-container {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  body#product .product-flags {
    margin-bottom: 0;
  }

  body#product .product-information,
  body#product .product-actions {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  body#product .rz-buy-panel {
    margin-top: 0;
    margin-bottom: 10px;
    padding-top: 2px;
    padding-bottom: 2px;
  }

  /* leftover 24px inside the buy column after the image column wraps */
  body#product .product-container > .col-12.col-md-4 {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  body#product .product-container > .col-12.col-md-5 {
    margin-top: -24px;
    padding-top: 0 !important;
  }

  body#product .product-container > .col-12.col-md-5 > .product-information {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}


/* v6 mobile header: compact, larger phones, red menu icon.
   Product-page and listing rules above stay untouched.
   Rollback: restore custom.css from /root/backup-mobile-header-20261203/css/ */
@media (max-width: 767.98px) {
  #header > .container.pt-3.pb-3,
  #header > .container {
    padding-top: 8px !important;
    padding-bottom: 6px !important;
  }

  #header > .container > .row > .col-12.col-md-3 {
    margin-bottom: 6px !important;
  }

  #header > .container > .row > .col-12.col-md-3 img,
  #header .col-12.col-md-3 img.img-fluid {
    width: auto !important;
    max-width: 240px;
    height: auto !important;
    max-height: 48px;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  #header [data-bs-target="#exampleModal"] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 6px 8px 6px 0;
    color: #c70100;
  }

  #header [data-bs-target="#exampleModal"] .material-icons {
    color: #c70100 !important;
    font-size: 32px !important;
    line-height: 1;
    font-weight: 700;
  }

  /* Short numbers on all mobile widths so the type can be larger */
  .svPhonesSmall {
    display: block !important;
    margin-top: 4px;
    padding-top: 0;
  }

  .svPhonesBig {
    display: none !important;
  }

  #header .svPhonesSmall .row {
    --bs-gutter-x: 0.5rem;
    margin-left: -4px;
    margin-right: -4px;
  }

  #header .svPhonesSmall [class*="col-"] {
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  #header .header-phone,
  #header .svPhonesSmall .header-phone {
    font-size: clamp(18px, 6.6vw, 28px) !important;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.15em;
    max-width: 100%;
    color: #111;
  }

  #header .header-phone i {
    flex: 0 0 auto;
    font-size: 0.9em;
  }
}


/* Solid Viber icon: filled #7360F2 speech-bubble, white handset.
   Replaces the thin lilac icomoon outline in the header (and the same class in the footer/menu). */
i.icon-viber {
  font-family: inherit !important;
  speak: never;
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  vertical-align: -0.12em;
  background: url("/themes/classic/assets/img/icon-viber.svg?v=20261203-viber1") no-repeat center / contain;
  line-height: 1;
  color: transparent !important;
}
i.icon-viber::before {
  content: none !important;
  display: none !important;
}


/* Slightly bolder Kyivstar icon: same shape and color (#00A0FF) as the icomoon glyph, rays a bit thicker. */
i.icon-kyivstar {
  font-family: inherit !important;
  speak: never;
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  vertical-align: -0.12em;
  background: url("/themes/classic/assets/img/icon-kyivstar.svg?v=20261203-ks1") no-repeat center / contain;
  line-height: 1;
  color: transparent !important;
}
i.icon-kyivstar::before {
  content: none !important;
  display: none !important;
}


/* Related-products heading on the product page: site red so it does not blend with body text.
   !important: theme .h5 uses color:inherit (near-black). Query string must be bumped because
   custom.css is served with Cache-Control: immutable, max-age=1y. */
body#product .product-accessories .product-accessories-title,
body#product p.product-accessories-title {
  color: #c70100 !important;
  font-weight: 700;
  text-transform: none;
}
