/* Wraper */
.iba-wrapper {
  padding: 40px 0;
}

.iba-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Breadcrumbs */
.ast-breadcrumbs-wrapper {
  font-size: 16px;
  color: #777;
}

.page .ast-breadcrumbs-wrapper {
    width: 100%;
    max-width: 1100px;
    margin-right: auto;
    margin-left: auto;
}

.page .ast-breadcrumbs {
    margin-left: 0;
}

.ast-breadcrumbs-wrapper a {
  color: #046BD2;
  text-decoration: none;
}

.ast-breadcrumbs-wrapper a:hover {
  text-decoration: underline;
}

/* Title */
.iba-title {
  text-align: center;
  font-size: 40px;
  margin-bottom: 40px;
}

/* Products */
.iba-product {
  display: flex;
  gap: 30px;
  padding: 25px 0;
  border-bottom: 1px solid #eee;
}

.iba-product-img img {
  width: 260px;
  height: auto;
}

/* Info */
.iba-product-title {
  color: #2a7bc0;
  font-size: 22px;
  margin-bottom: 10px;
}

.iba-meta {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
}

.iba-meta strong {
  color: #ff6a00;
}

/* Button */
.iba-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 20px;
  border: 1px solid #ccc;
  text-decoration: none;
}

.iba-btn:hover {
  background: #ff6a00;
  color: #fff;
}


/* Width and Center fix */

.iba-wrapper {
  width: 100%;
}

.iba-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.iba-title {
  text-align: center;
  width: 100%;
}


/* Disable hover zoom layer but keep gallery lightbox */
.single-product .woocommerce-product-gallery .zoomImg {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}


/* Single product galery */

.single-product .woocommerce-product-gallery {
  position: relative;
}

.single-product .woocommerce-product-gallery .flex-viewport {
  overflow: hidden;
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  background: #fff;
}

.single-product .woocommerce-product-gallery__image a,
.single-product .woocommerce-product-gallery__image img {
  display: block;
}

.single-product .woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 0;
  padding: 2px 2px 8px;
  overflow-x: auto;
  overflow-y: hidden;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: #ff6a00 #ededed;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar {
  height: 6px;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar-track {
  border-radius: 6px;
  background: #ededed;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar-thumb {
  border-radius: 6px;
  background: #ff6a00;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li {
  flex: 0 0 76px !important;
  width: 76px !important;
  max-width: 76px !important;
  margin: 0 !important;
  float: none !important;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs img {
  box-sizing: border-box;
  display: block;
  width: 76px !important;
  height: 76px !important;
  padding: 2px;
  border: 2px solid transparent;
  border-radius: 5px;
  object-fit: cover;
  opacity: 0.72;
  cursor: pointer;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs img:hover {
  opacity: 1;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs img.flex-active {
  border-color: #ff6a00;
  opacity: 1;
}

.iba-gallery-controls {
  pointer-events: none;
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  left: 0;
}

.iba-gallery-arrow {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #252525 !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.16);
  transform: translateY(-50%);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.iba-gallery-arrow:focus,
.iba-gallery-arrow:focus-visible,
.iba-gallery-arrow:active {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #252525 !important;
  outline: none;
  transform: translateY(-50%);
}

.iba-gallery-arrow:hover {
  background: #ff6a00 !important;
  color: #fff !important;
  transform: translateY(-50%) scale(1.04);
}

.iba-gallery-arrow--prev {
  left: 14px;
}

.iba-gallery-arrow--next {
  right: 14px;
}

.iba-gallery-counter {
  position: absolute;
  right: 14px;
  bottom: 14px;
  min-width: 54px;
  padding: 6px 10px;
  border-radius: 16px;
  background: rgba(24, 24, 24, 0.72);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  text-align: center;
  pointer-events: none;
}

@media (max-width: 544px) {
  .single-product .woocommerce-product-gallery .flex-viewport {
    border-radius: 5px;
  }

  .single-product .woocommerce-product-gallery .flex-control-thumbs {
    gap: 8px;
    margin-top: 9px;
  }

  .single-product .woocommerce-product-gallery .flex-control-thumbs li {
    flex: 0 0 62px !important;
    width: 62px !important;
    max-width: 62px !important;
    height: 62px;
  }

  .single-product .woocommerce-product-gallery .flex-control-thumbs img {
    width: 62px !important;
    height: 62px !important;
  }

  .iba-gallery-arrow {
    width: 36px;
    height: 36px;
  }

  .iba-gallery-arrow--prev {
    left: 9px;
  }

  .iba-gallery-arrow--next {
    right: 9px;
  }

  .iba-gallery-counter {
    right: 9px;
    bottom: 9px;
  }
}


/* Product status badge */

.iba-machine-details .iba-detail-row-status .iba-value.iba-status-value {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    min-height: 30px;
    padding: 6px 14px;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    box-sizing: border-box;
}

.iba-machine-details .iba-detail-row-status .iba-value.iba-status-sold {
    background: #dc2626 !important;
}

.iba-machine-details .iba-detail-row-status .iba-value.iba-status-new {
    background: #27ae60 !important;
}

/* Hide pagination numbers in New Arrival page */
.iba-new-arrivals.is-load-more-ready .iba-new-arrivals-pagination {
    display: none;
}
/* end */

/**
 * Global page title
 * Используется на всех внутренних страницах сайта
 */
.iba-page-title {
    position: relative;
    margin: 0 0 12px;
    padding-top: 20px;
}

/* Оранжевая линия над заголовком */
.iba-page-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 36px;
    height: 3px;
    background-color: #f36b21;
}

/* Сам заголовок */
.iba-page-title:is(h1),
.iba-page-title .elementor-heading-title {
    margin: 0;
    color: var(--iba-ink, #222);
    font-size: clamp(2rem, 3.6vw, 2.75rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

@media (max-width: 640px) {
    .iba-page-title {
        padding-top: 16px;
    }

    .iba-page-title::before {
        width: 32px;
    }

    .iba-page-title:is(h1),
    .iba-page-title .elementor-heading-title {
        font-size: 2rem;
    }
}
/*end*/


/**
 * Sell to Us CF7 form style
 */

.iba-form--sell {
    width: 100%;
    max-width: 900px;
    padding: 34px;
    background-color: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    box-sizing: border-box;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
}

/**
 * Reset CF7 automatic paragraph wrappers
 */
.iba-form--sell p {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.iba-form--sell .iba-form__field > p,
.iba-form--sell .iba-form__actions > p {
    display: block;
    width: 100%;
    max-width: none;
}

/**
 * Form rows
 */
.iba-form--sell .iba-form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    margin-bottom: 20px;
}

/**
 * Manufacturer / Year / Location
 */
.iba-form--sell .iba-form__row--three {
    grid-template-columns:
        minmax(0, 1fr)
        112px
        minmax(0, 1fr);
}

/**
 * Fields
 */
.iba-form--sell .iba-form__field {
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.iba-form--sell .iba-form__row > .iba-form__field {
    width: 100%;
    min-width: 0;
    margin-bottom: 0;
}

.iba-form--sell .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
}


/**
 * Sell to Us year select
 */
.iba-form--sell select.iba-form__select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    padding-right: 42px;
    color: #222;
    cursor: pointer;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%237f8790' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 7px;
}

.iba-form--sell select.iba-form__select.is-placeholder {
    color: #7f8790;
}

.iba-form--sell select.iba-form__select option {
    color: #222;
}

.iba-form--sell select.iba-form__select:focus,
.iba-form--sell select.iba-form__select:focus-visible {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23f36b21' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/**
 * Text fields
 */
.iba-form--sell .iba-form__control {
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: 52px;
    padding: 13px 16px;
    color: #222;
    background-color: #fff;
    border: 1px solid #cfd4da;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.4;
    box-shadow: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.iba-form--sell .iba-form__control::placeholder {
    color: #7f8790;
    opacity: 1;
}

.iba-form--sell input.wpcf7-form-control:focus,
.iba-form--sell input.wpcf7-form-control:focus-visible,
.iba-form--sell textarea.wpcf7-form-control:focus,
.iba-form--sell textarea.wpcf7-form-control:focus-visible,
.iba-form--sell select.wpcf7-form-control:focus,
.iba-form--sell select.wpcf7-form-control:focus-visible {
    outline: none !important;
    border-style: solid !important;
    border-width: 1px !important;
    border-color: #f36b21 !important;
    box-shadow: 0 0 0 3px rgba(243, 107, 33, 0.18) !important;
}

.iba-form--sell input[type="file"]:focus,
.iba-form--sell input[type="file"]:focus-visible {
    outline: none !important;
    border-style: solid !important;
    border-width: 1px !important;
    border-color: #f36b21 !important;
    box-shadow: 0 0 0 3px rgba(243, 107, 33, 0.18) !important;
}

/**
 * Machinery section title
 */
.iba-form--sell .iba-form__section-title {
    margin: 30px 0 20px;
    padding-top: 28px;
    border-top: 1px solid #e5e5e5;
    color: #222;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
}

/**
 * File field
 */
.iba-form--sell .iba-form__file {
    display: block;
    width: 100%;
    max-width: none;
    min-height: 52px;
    padding: 10px 12px;
    color: #666;
    background-color: #fff;
    border: 1px solid #cfd4da;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 15px;
}

.iba-form--sell .iba-form__file::file-selector-button {
    margin-right: 12px;
    padding: 9px 14px;
    color: #222;
    background-color: #f2f2f2;
    border: 0;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.iba-form--sell .iba-form__file::file-selector-button:hover {
    background-color: #e7e7e7;
}

/**
 * Message field
 */
.iba-form--sell textarea.iba-form__textarea {
    display: block;
    width: 100%;
    max-width: none;
    min-height: 250px;
    box-sizing: border-box;
    resize: vertical;
}

/**
 * Submit button
 */
.iba-form--sell .iba-form__actions {
    width: 100%;
    margin-top: 8px;
}

.iba-form--sell .iba-form__submit {
    min-width: 150px;
    padding: 14px 28px;
    color: #fff;
    background-color: #f36b21;
    border: 0;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.iba-form--sell .iba-form__submit:hover {
    background-color: #d95715;
}

.iba-form--sell .iba-form__submit:active {
    transform: translateY(1px);
}

.iba-form--sell input.iba-form__submit,
.iba-form--sell input.iba-form__submit:hover,
.iba-form--sell input.iba-form__submit:focus,
.iba-form--sell input.iba-form__submit:focus-visible,
.iba-form--sell input.iba-form__submit:active,
.iba-form--sell input.iba-form__submit:disabled,
.wpcf7 form.submitting .iba-form--sell input.iba-form__submit,
.wpcf7 form.sent .iba-form--sell input.iba-form__submit {
    color: #fff !important;
    background-color: #f36b21 !important;
    border-color: #f36b21 !important;
    outline: none !important;
    box-shadow: none !important;
}

.iba-form--sell input.iba-form__submit:hover {
    background-color: #d95715 !important;
    border-color: #d95715 !important;
}

.iba-form--sell input.iba-form__submit:disabled,
.wpcf7 form.submitting .iba-form--sell input.iba-form__submit {
    opacity: 0.7;
    cursor: wait;
}

/**
 * CF7 validation
 */
.iba-form--sell .wpcf7-not-valid-tip {
    margin-top: 6px;
    font-size: 13px;
}

/**
 * Sell to Us — CF7 response message
 */
[id^="wpcf7-f1280-"] .wpcf7-response-output {
    margin: 20px 0 0;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.45;
}

[id^="wpcf7-f1280-"] form.sent .wpcf7-response-output {
    color: #307744;
    background-color: #f0faf3;
    border: 1px solid #46b56b;
}

[id^="wpcf7-f1280-"] form.invalid .wpcf7-response-output,
[id^="wpcf7-f1280-"] form.failed .wpcf7-response-output,
[id^="wpcf7-f1280-"] form.aborted .wpcf7-response-output,
[id^="wpcf7-f1280-"] form.spam .wpcf7-response-output,
[id^="wpcf7-f1280-"] form.unaccepted .wpcf7-response-output {
    color: #a63d39;
    background-color: #fff3f2;
    border: 1px solid #d9534f;
}
/* end */

/**
 * Product page line before description 
 */
.woocommerce div.product .woocommerce-tabs ul.tabs li.active::before,
.woocommerce div.ast-product-tabs-layout-vertical
.woocommerce-tabs ul.tabs li:hover::before {
    background: #f36b21;
}
/*end*/

/**
 * Related products button
 */
.single-product .related.products a.button.product_type_simple {
    color: #fff;
    background-color: #f36b21;
    border-color: #f36b21;
}

.single-product .related.products a.button.product_type_simple:hover,
.single-product .related.products a.button.product_type_simple:focus,
.single-product .related.products a.button.product_type_simple:focus-visible,
.single-product .related.products a.button.product_type_simple:active {
    color: #fff;
    background-color: #d95715;
    border-color: #d95715;
    outline: none;
    box-shadow: none;
}
/*end*/

/**
 * Mobile
 */
@media (max-width: 768px) {
    .iba-form--sell {
        padding: 24px 18px;
    }

    .iba-form--sell .iba-form__row,
    .iba-form--sell .iba-form__row--three {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .iba-form--sell .iba-form__section-title {
        margin-top: 26px;
        padding-top: 24px;
        font-size: 22px;
    }

    .iba-form--sell textarea.iba-form__textarea {
        min-height: 200px;
    }

    .iba-form--sell .iba-form__submit {
        width: 100%;
    }
}

/* End */

/**
 * Header and navigation styles migrated from Customizer Additional CSS
 */

/* Contact block in header */
.header-contact {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: flex-end;
}

.header-contact .phone {
  color: #ff6a00;
  font-weight: 600;
}

.header-contact a {
  color: #1e73be;
  text-decoration: none;
}

.btn-contact {
  background: #ff6a00;
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 3px;
  font-weight: 600;
}

.main-header-menu {
  display: flex;
  justify-content: center;
}
/* End contact block */

/* Header breadcrumbs */
.main-header-bar {
  border-bottom-style: none;
}

.ast-breadcrumbs {
  margin-left: 30px;
}
/* End header breadcrumbs */

/* Navigation background */
.nav-menu-background {
  background: linear-gradient(
    #bebebe -6%,
    #e6e6e6 32%,
    #e3e3e3 100%
  );
}
/* End navigation background */

/**
 * Year & Location on single product page
 */
.iba-machine-details {
  margin: 30px 0;
}

.iba-detail-row {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e5e5e5;
}

.iba-label {
  min-width: 120px;
  font-weight: 700;
  color: #222;
}

.iba-value {
  color: #666;
}

.new-h1 {
  font-weight: 500;
}

/* Mobile submenu */
@media (max-width: 1024px) {
  body .hfe-nav-menu .sub-menu {
    position: static !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #f7f7f7 !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body .hfe-nav-menu .sub-menu > li {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid #dedede !important;
  }

  body .hfe-nav-menu .sub-menu > li:last-child {
    border-bottom: 0 !important;
  }

  body .hfe-nav-menu .sub-menu > li > a.hfe-sub-menu-item {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 10px 20px 10px 32px !important;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    color: #555 !important;
    background: transparent !important;
    border: 0 !important;
    white-space: normal !important;
    text-decoration: none !important;
  }

  body .hfe-nav-menu .sub-menu > li > a.hfe-sub-menu-item:hover,
  body .hfe-nav-menu .sub-menu > li.current-menu-item > a.hfe-sub-menu-item {
    color: #ff5a00 !important;
    background: #ededed !important;
  }
}

/* Desktop submenu */
@media (min-width: 1025px) {
  body .hfe-nav-menu .menu-item-has-children {
    position: relative !important;
  }

  body .hfe-nav-menu .menu-item-has-children > .sub-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    overflow-anchor: none !important;
  }

  body .hfe-nav-menu .sub-menu {
    width: 300px !important;
    min-width: 300px !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 8px 0 !important;
    background: #fff !important;
    border: 1px solid #e3e3e3 !important;
    border-radius: 6px !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14) !important;
    overflow: hidden !important;
    z-index: 9999 !important;
  }

  body .hfe-nav-menu .sub-menu > li {
    position: relative !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
  }

  body .hfe-nav-menu .sub-menu > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    transition: background-color 0.2s ease;
  }

  body .hfe-nav-menu .sub-menu > li > a.hfe-sub-menu-item {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 8px 22px !important;
    font-family: inherit !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    color: #333 !important;
    background: #fff !important;
    border: 0 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    transition:
      color 0.2s ease,
      background-color 0.2s ease,
      padding-left 0.2s ease !important;
  }

  body .hfe-nav-menu .sub-menu > li:hover::before,
  body .hfe-nav-menu .sub-menu > li.current-menu-item::before {
    background: #ff5a00;
  }

  body .hfe-nav-menu .sub-menu > li > a.hfe-sub-menu-item:hover,
  body .hfe-nav-menu .sub-menu > li.current-menu-item > a.hfe-sub-menu-item {
    padding-left: 27px !important;
    padding-right: 22px !important;
    color: #ff5a00 !important;
    background: #fff6f0 !important;
  }

  body .menu-item-has-children > a.hfe-menu-item {
    position: relative !important;
    padding-right: 28px !important;
  }

  body .menu-item-has-children > a.hfe-menu-item::after {
    transition: transform 0.2s ease !important;
  }

  body .menu-item-has-children:hover > a.hfe-menu-item {
    color: #ff5a00 !important;
  }

  body .hfe-nav-menu,
  body .hfe-nav-menu__layout-horizontal,
  body .elementor-location-header,
  body header {
    overflow-anchor: none !important;
  }
}

/* Hide Astra breadcrumbs only on single product pages */
.single-product .main-header-bar.ast-header-breadcrumb {
  display: none !important;
}

/* End migrated Additional CSS */

/**
 * Homepage search
 * HFE Search widget
 */

.home .hfe-search-button-wrapper .hfe-search-form__container {
    overflow: hidden;
}

/* Поле ввода */
.home .hfe-search-button-wrapper .hfe-search-form__input {
    padding: 10px 16px !important;
    color: #333;
    font-size: 16px;
    line-height: 20px;
}

.home .hfe-search-button-wrapper .hfe-search-form__input::placeholder {
    color: #999;
    opacity: 1;
}

/* Clear button */
.home .hfe-search-button-wrapper #clear-with-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 28px !important;
    min-width: 28px !important;
    height: 40px !important;

    margin: 0;
    padding: 0;

    color: #777 !important;
    background: transparent !important;

    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    font-size: 14px !important;
    line-height: 1 !important;

    cursor: pointer;
}

.home .hfe-search-button-wrapper #clear-with-button:hover,
.home .hfe-search-button-wrapper #clear-with-button:focus,
.home .hfe-search-button-wrapper #clear-with-button:focus-visible,
.home .hfe-search-button-wrapper #clear-with-button:active {
    color: #f36b21 !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Search button */
.home .hfe-search-button-wrapper .hfe-search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 46px !important;
    min-width: 46px !important;
    height: 40px !important;

    margin: 0;
    padding: 0;

    color: #fff !important;
    background-color: #f36b21 !important;

    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.home .hfe-search-button-wrapper .hfe-search-submit:hover,
.home .hfe-search-button-wrapper .hfe-search-submit:focus,
.home .hfe-search-button-wrapper .hfe-search-submit:focus-visible,
.home .hfe-search-button-wrapper .hfe-search-submit:active {
    color: #fff !important;
    background-color: #d95715 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Иконка поиска */
.home .hfe-search-button-wrapper .hfe-search-submit i,
.home .hfe-search-button-wrapper .hfe-search-submit svg {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Mobile */
@media (max-width: 768px) {

    .home .hfe-search-button-wrapper .hfe-search-form__input {
        padding-right: 14px !important;
        padding-left: 14px !important;
        font-size: 15px;
    }

    .home .hfe-search-button-wrapper #clear-with-button {
        width: 26px !important;
        min-width: 26px !important;
    }

    .home .hfe-search-button-wrapper .hfe-search-submit {
        width: 44px !important;
        min-width: 44px !important;
    }
}

/* End homepage search */


/**
 * Homepage machine category cards
 * Shortcode: [iba_machine_categories]
 */

.iba-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;

    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.iba-category-card {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    min-width: 0;
    aspect-ratio: 1.2 / 1;
    padding: 20px;

    overflow: hidden;

    background: linear-gradient(
        145deg,
        #fff 0%,
        #f8f9fa 100%
    );

    border: 1px solid #dfe3e6;
    border-radius: 10px;

    box-shadow: 0 5px 16px rgba(25, 31, 36, 0.06);

    color: #22272b;
    text-decoration: none !important;

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.iba-category-card:hover,
.iba-category-card:focus,
.iba-category-card:focus-visible {
    border-color: #f36b21;
    box-shadow: 0 12px 28px rgba(25, 31, 36, 0.12);

    color: #22272b;
    text-decoration: none !important;
    outline: none;

    transform: translateY(-3px);
}

.iba-category-card *,
.iba-category-card:hover *,
.iba-category-card:focus *,
.iba-category-card:focus-visible * {
    text-decoration: none !important;
}


/* Title */

.iba-category-card__title {
    position: relative;
    z-index: 3;

    display: -webkit-box;

    max-width: 54%;
    min-height: 3.2em;
    margin: 0;

    overflow: hidden;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;

    color: #22272b;

    font-size: clamp(16px, 1.15vw, 19px);
    font-weight: 700;
    line-height: 1.25;

    overflow-wrap: break-word;
    word-break: normal;

    transition: color 180ms ease;
}

.iba-category-card:hover .iba-category-card__title,
.iba-category-card:focus .iba-category-card__title,
.iba-category-card:focus-visible .iba-category-card__title {
    color: #d95d17;
}


/* Category background image */

.iba-category-card__media {
    position: absolute;
    z-index: 1;

    top: 0;
    right: 0;
    bottom: 0;

    display: block;

    width: 62%;
    height: auto;

    overflow: hidden;

    color: #f36b21;
    pointer-events: none;
}

/* Disable old overlay fade */
.iba-category-card__media::after {
    display: none;
}

/* Real WooCommerce category image */
.iba-category-card__image {
    position: absolute;
    z-index: 1;
    inset: 0;

    display: block;

    width: 100% !important;
    height: 100% !important;
    max-width: none !important;

    object-fit: cover;
    object-position: center;

    filter:
        grayscale(1)
        saturate(0)
        contrast(0.82)
        brightness(1.08);

    opacity: 0.42;

    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 0, 0, 0.08) 12%,
        rgba(0, 0, 0, 0.35) 30%,
        rgba(0, 0, 0, 0.72) 55%,
        #000 82%
    );

    mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 0, 0, 0.08) 12%,
        rgba(0, 0, 0, 0.35) 30%,
        rgba(0, 0, 0, 0.72) 55%,
        #000 82%
    );

    transform: scale(1.03);

    transition:
        opacity 220ms ease,
        transform 260ms ease,
        filter 220ms ease;
}

.iba-category-card:hover .iba-category-card__image,
.iba-category-card:focus .iba-category-card__image,
.iba-category-card:focus-visible .iba-category-card__image {
    opacity: 0.5;

    filter:
        grayscale(1)
        saturate(0)
        contrast(0.88)
        brightness(1.04);

    transform: scale(1.045);
}


/* Fallback icon when category image is missing */

.iba-category-card__media.is-fallback {
    top: 18px;
    right: 18px;
    bottom: auto;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 70px;
    height: 70px;

    opacity: 0.72;
}

.iba-category-card__media.is-fallback::after {
    display: none;
}

.iba-category-card__fallback-icon {
    display: block;

    width: 58px;
    height: 58px;

    transition: transform 180ms ease;
}

.iba-category-card:hover
.iba-category-card__media.is-fallback
.iba-category-card__fallback-icon,
.iba-category-card:focus
.iba-category-card__media.is-fallback
.iba-category-card__fallback-icon,
.iba-category-card:focus-visible
.iba-category-card__media.is-fallback
.iba-category-card__fallback-icon {
    transform: translateY(-2px) scale(1.04);
}


/* Machine count */

.iba-category-card__count {
    position: relative;
    z-index: 3;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    max-width: 52%;
    margin-top: auto;
}

.iba-category-card__number {
    color: #f36b21;

    font-size: clamp(30px, 2.5vw, 40px);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.iba-category-card__label {
    margin-top: 7px;

    color: #687078;

    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;

    text-transform: uppercase;
    letter-spacing: 0.06em;
}


/* Center two cards in the final row: 4 + 4 + 2 */

.iba-category-grid
> .iba-category-card:nth-last-child(2):nth-child(4n + 1) {
    grid-column: 2;
}

.iba-category-grid
> .iba-category-card:last-child:nth-child(4n + 2) {
    grid-column: 3;
}




/* Glass Coating Machine — front page image fix */

.iba-category-card--glass-coating-machine .iba-category-card__image {
    object-fit: cover;
    object-position: right center;
    transform: scale(1.03);
}

.iba-category-card--glass-coating-machine:hover .iba-category-card__image,
.iba-category-card--glass-coating-machine:focus .iba-category-card__image,
.iba-category-card--glass-coating-machine:focus-visible .iba-category-card__image {
    transform: scale(1.045);
}

/* end */




/* Three columns */

@media (max-width: 1050px) {

    .iba-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .iba-category-grid
    > .iba-category-card:nth-last-child(2):nth-child(4n + 1),
    .iba-category-grid
    > .iba-category-card:last-child:nth-child(4n + 2) {
        grid-column: auto;
    }

    .iba-category-card {
        aspect-ratio: 1.22 / 1;
    }

    .iba-category-card__title {
        font-size: 17px;
    }
}


/* Two columns */

@media (max-width: 760px) {

    .iba-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .iba-category-card {
        aspect-ratio: 1.25 / 1;
    }

    .iba-category-card__title {
        max-width: 56%;
    }

    .iba-category-card__count {
        max-width: 54%;
    }

    .iba-category-card__media {
        width: 60%;
    }

    .iba-category-card__media.is-fallback {
        width: 70px;
        height: 70px;
    }
}


/* One column */

@media (max-width: 520px) {

    .iba-category-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .iba-category-card {
        aspect-ratio: 1.45 / 1;
        padding: 20px;
    }

    .iba-category-card__title {
        max-width: 58%;
        font-size: 17px;
    }

    .iba-category-card__count {
        max-width: 56%;
    }

    .iba-category-card__media {
        width: 56%;
    }

    .iba-category-card__media.is-fallback {
        top: 16px;
        right: 16px;

        width: 64px;
        height: 64px;
    }

    .iba-category-card__fallback-icon {
        width: 52px;
        height: 52px;
    }

    .iba-category-card__number {
        font-size: 34px;
    }
}

/* End homepage machine category cards */

/* Main navigation */
.iba-main-header {
    width: 100%;
    background: #f7f7f7 !important;
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #dddddd;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
}

.iba-main-header .nav-menu-background {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 20px;

    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
}



.iba-main-header .main-header-menu > .menu-item > .menu-link,

.iba-main-header .main-header-menu > .menu-item:hover > .menu-link,

.iba-main-header .main-header-menu > .menu-item:focus > .menu-link,

.iba-main-header .main-header-menu > .menu-item.current-menu-item > .menu-link,

.iba-main-header .main-header-menu > .menu-item.current-menu-ancestor > .menu-link {

    background: transparent !important;

}

.hfe-nav-menu .sub-menu .menu-item:hover::before,
.hfe-nav-menu .sub-menu .current-menu-item::before {
    top: 0 !important;
    bottom: 0 !important;
    height: auto !important;
}

.iba-main-header

.hfe-nav-menu > .menu-item.hfe-has-submenu > .hfe-has-submenu-container {

    background: transparent !important;

}



/** Main menu hover accent **/

/* Main navigation hover accent */
.iba-main-header .menu-item {
    position: relative;
}

/* Remove old HFE line effects */
.iba-main-header .hfe-menu-item::before,
.iba-main-header .hfe-menu-item::after,
.iba-main-header .hfe-has-submenu-container::before,
.iba-main-header .hfe-has-submenu-container::after {
    content: none !important;
}

/* Thin rounded top contour */
.iba-main-header .menu-item::before {
    content: "";
    position: absolute;
    z-index: 3;

    top: 0;
    left: 5px;
    right: 5px;

    height: 5px;

    border-top: 1px solid rgba(243, 107, 33, 0.85);
    border-left: 1px solid rgba(243, 107, 33, 0.55);
    border-right: 1px solid rgba(243, 107, 33, 0.55);

    border-radius: 9px 9px 0 0;

    opacity: 0;
    transform: scaleX(0.96);
    transform-origin: center;

    pointer-events: none;

    transition:
        opacity 0.16s ease,
        transform 0.16s ease;
}

.iba-main-header .menu-item:hover::before,
.iba-main-header .menu-item:focus-within::before {
    opacity: 1;
    transform: scaleX(1);
}

/* No background change */
.iba-main-header .hfe-menu-item:hover,
.iba-main-header .hfe-menu-item:focus,
.iba-main-header .hfe-menu-item:focus-visible,
.iba-main-header .hfe-has-submenu-container:hover {
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}
/**end main menu hover accent**/

.iba-main-header .elementor-nav-menu > li > a {
    min-height: 54px;
    padding-inline: 17px;

    color: #666b70;
    font-weight: 600;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.iba-main-header .elementor-nav-menu > li > a:hover,
.iba-main-header .elementor-nav-menu > li.current-menu-item > a,
.iba-main-header .elementor-nav-menu > li.current-menu-ancestor > a {
    color: #f36b21;
    background-color: rgba(243, 107, 33, 0.05);
}
/*end*/

/* Header submenu opening animation */
.iba-main-header .menu-item-has-children > .sub-menu {
    display: block !important;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(-8px) scaleY(0.94);
    transform-origin: top center;

    border-top-left-radius: 0;
    border-top-right-radius: 0;

    box-shadow:
        0 14px 26px rgba(0, 0, 0, 0.13),
        0 4px 8px rgba(0, 0, 0, 0.05);

    transition:
        opacity 0.2s ease,
        transform 0.25s ease,
        visibility 0s linear 0.25s;
}

.iba-main-header .menu-item-has-children:hover > .sub-menu,
.iba-main-header .menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0) scaleY(1);

    transition:
        opacity 0.2s ease,
        transform 0.25s ease,
        visibility 0s;
}

.iba-main-header .menu-item-has-children:hover > .hfe-has-submenu-container,
.iba-main-header .menu-item-has-children:focus-within > .hfe-has-submenu-container {
    background: #fff;
}

.iba-main-header .menu-item-has-children:hover > .hfe-has-submenu-container > a,
.iba-main-header .menu-item-has-children:focus-within > .hfe-has-submenu-container > a {
    color: #f36b21;
}

.iba-main-header .menu-item-has-children > .hfe-has-submenu-container {
    position: relative;
}

.iba-main-header .menu-item-has-children > .hfe-has-submenu-container::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;

    height: 2px;
    background: #f36b21;

    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.iba-main-header .menu-item-has-children:hover
    > .hfe-has-submenu-container::after,
.iba-main-header .menu-item-has-children:focus-within
    > .hfe-has-submenu-container::after {
    transform: scaleX(1);
}

/*end*/

/* Single product content font size */
.single-product .product_meta,
.single-product .iba-machine-details,
.single-product .woocommerce-Tabs-panel--description {
    font-size: 17px;
}

/* Product category / brand row */
.single-product .product_meta,
.single-product .product_meta a {
    font-size: 17px;
}

/* Machine details */
.single-product .iba-machine-details .iba-label,
.single-product .iba-machine-details .iba-value,
.single-product .iba-machine-details a {
    font-size: 17px;
}

/* Product description */
.single-product .woocommerce-Tabs-panel--description p,
.single-product .woocommerce-Tabs-panel--description li,
.single-product .woocommerce-Tabs-panel--description strong {
    font-size: 17px;
    line-height: 1.6;
}

/* Single product Description tab title */
.single-product .woocommerce-tabs ul.tabs li a {
    font-size: 19px;
    font-weight: 600;
}
/* end */


//* Related products */
.single-product .related.products ul.products {
    align-items: stretch;
}

.single-product .related.products ul.products li.product {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Text and button wrapper */
.single-product
.related.products
ul.products
li.product
.astra-shop-summary-wrap {
    display: flex;
    flex: 1;
    flex-direction: column;
}

/* Related products category label */
.single-product
.related.products
ul.products
li.product
span.ast-woo-product-category {
    margin-top: 12px;
    font-size: 15px !important;
    line-height: 1.35 !important;
}

/* Related products title */
.single-product
.related.products
ul.products
li.product
.woocommerce-loop-product__title {
    margin-bottom: 10px;
}

/* Related products button */
.single-product
.related.products
ul.products
li.product
.astra-shop-summary-wrap > .button {
    margin-top: auto;
    align-self: flex-start;
    transform: translateY(-15px);
}
/* end */

/* Related products hover action icon: bag -> gear */
.single-product
.related.products
li.product
.ast-icon.icon-bag svg {
    display: none;
}

.single-product
.related.products
li.product
.ast-icon.icon-bag::before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;

    background-color: currentColor;

    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19.14 12.94c.04-.31.06-.63.06-.94s-.02-.63-.07-.94l2.03-1.58a.5.5 0 0 0 .12-.64l-1.92-3.32a.5.5 0 0 0-.61-.22l-2.39.96a7.2 7.2 0 0 0-1.62-.94L14.38 2.8a.49.49 0 0 0-.49-.4h-3.84a.49.49 0 0 0-.49.4L9.2 5.32c-.58.24-1.12.55-1.62.94L5.19 5.3a.5.5 0 0 0-.61.22L2.66 8.84a.5.5 0 0 0 .12.64l2.03 1.58c-.05.31-.08.64-.08.96 0 .31.03.62.08.92L2.78 14.52a.5.5 0 0 0-.12.64l1.92 3.32a.5.5 0 0 0 .61.22l2.39-.96c.5.39 1.04.71 1.62.95l.36 2.51c.04.23.24.4.49.4h3.84c.25 0 .45-.17.49-.4l.36-2.51c.58-.24 1.12-.56 1.62-.95l2.39.96a.5.5 0 0 0 .61-.22l1.92-3.32a.5.5 0 0 0-.12-.64l-2.02-1.58ZM12 15.5A3.5 3.5 0 1 1 12 8a3.5 3.5 0 0 1 0 7.5Z'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;

    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19.14 12.94c.04-.31.06-.63.06-.94s-.02-.63-.07-.94l2.03-1.58a.5.5 0 0 0 .12-.64l-1.92-3.32a.5.5 0 0 0-.61-.22l-2.39.96a7.2 7.2 0 0 0-1.62-.94L14.38 2.8a.49.49 0 0 0-.49-.4h-3.84a.49.49 0 0 0-.49.4L9.2 5.32c-.58.24-1.12.55-1.62.94L5.19 5.3a.5.5 0 0 0-.61.22L2.66 8.84a.5.5 0 0 0 .12.64l2.03 1.58c-.05.31-.08.64-.08.96 0 .31.03.62.08.92L2.78 14.52a.5.5 0 0 0-.12.64l1.92 3.32a.5.5 0 0 0 .61.22l2.39-.96c.5.39 1.04.71 1.62.95l.36 2.51c.04.23.24.4.49.4h3.84c.25 0 .45-.17.49-.4l.36-2.51c.58-.24 1.12-.56 1.62-.95l2.39.96a.5.5 0 0 0 .61-.22l1.92-3.32a.5.5 0 0 0-.12-.64l-2.02-1.58ZM12 15.5A3.5 3.5 0 1 1 12 8a3.5 3.5 0 0 1 0 7.5Z'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}
/* end */