@media (max-width: 1650px) {
  .h-middle .search-b input {
    width: 700px;
  }

  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    max-width: 97%;
  }
}


@media (max-width: 1450px) {
  .h-middle .search-b input {
    width: 550px;
  }
}

@media (max-width: 1300px) {
  .h-middle .search-b input {
    width: 100%;
    min-width: 350px;
  }
}


@media (max-width: 1200px) {
  .shop-reviews-sidebar {
    width: 250px;
    padding: 16px;
  }

  .shop-reviews-circles {
    gap: 12px;
  }

  .shop-reviews-circle {
    width: 65px;
    height: 65px;
  }

  .shop-reviews-circle-item {
    padding: 14px 8px;
  }

  .pr-module-item-price-box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .button-cart .button-text {
    display: none;
  }

  .pr-module-item .button-cart {
    height: 35px;
  }

  .pr-module-item-info,
  .pr-module-item-bottom {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
  }

  .pr-module-item-info .pr-stock-sticker {
    order: 2;
  }

  .pr-module-item-info .pr-module-item-info-code {
    order: 1;
  }
}

@media (max-width: 1100px) {

  .h-middle .catalog-btn,
  .h-right-item .h-right-block.user,
  .h-right-item .h-right-block.wishlist,
  .h-right-item .h-right-block.compare {
    display: none;
  }

  .h-middle,
  .h-middle .search-b {
    width: 100%;
  }

  #main-nav,
  .top {
    display: none;
  }

  .main-header {
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .title-icon {
    display: none;
  }

  .h-right-block .pr-header-buttons-item-count {
    top: 3px;
    right: 3px;
  }

  .h-middle .search-b input {
    min-width: 100%;
    height: 35px;
    padding: 0 40px 0 15px;
  }

  .h-middle .search-b input::placeholder {
    font-size: 10px;
  }

  .btn-menu-mobile {
    display: block;
    width: 35px;
    min-width: 35px;
    height: 35px;
    position: relative;
    overflow: hidden;
    background-color: #F4F7F5;
    cursor: pointer;
  }

  .btn-menu-mobile::before,
  .btn-menu-mobile::after {
    content: "";
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-position: center;
    transition: opacity 0.1s ease;
  }

  .btn-menu-mobile::before {
    background-image: url("../img/menu-icon.svg");
    opacity: 1;
  }

  .btn-menu-mobile::after {
    background-image: url("../img/menu-icon-hover.svg");
    opacity: 0;
  }

  .btn-menu-mobile.is-active::before {
    opacity: 0;
  }

  .btn-menu-mobile.is-active::after {
    opacity: 1;
  }

  div#mobile-menu {
    display: flex;
    position: fixed;
    top: var(--header-h, 65px);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-h, 65px));
    height: calc(100dvh - var(--header-h, 65px));
    background: #fff;
    z-index: 9999;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    overflow: hidden;
    pointer-events: none;
    max-width: 480px;
  }

  div#mobile-menu.is-open {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;

  }

  .mobile-menu-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    background: none;
    border: none;
  }

  .mobile-menu-icon .mob-count {
    position: absolute;
    top: -8px;
    left: 19px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #166D43;
    color: #fff;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-menu-body {
    flex: 1;
    overflow-y: auto;
    position: relative;
  }

  .mobile-menu-main-panel,
  .mobile-menu-sub-panel {
    min-height: 100%;
    transition: transform 0.3s ease;
  }

  .mobile-menu-main-panel {
    transform: translateX(0);
  }

  .mobile-menu-main-panel.shifted {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateX(-100%);
  }

  .mobile-menu-sub-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateX(100%);
  }

  .mobile-menu-sub-panel.active {
    transform: translateX(0);
  }

  .mobile-menu-main-panel ul,
  .mobile-menu-sub-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .mobile-menu-main-panel ul li,
  .mobile-menu-sub-panel ul li {
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .mobile-menu-main-panel ul li a,
  .mobile-menu-sub-panel ul li a {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    transition: background 0.2s ease;
    min-height: 52px;
  }

  .mobile-menu-main-panel ul li a:active,
  .mobile-menu-sub-panel ul li a:active {
    background: rgba(22, 109, 67, 0.04);
  }

  .mobile-menu-sub-panel ul li a {
    justify-content: space-between;
    font-weight: 500;
    font-size: 16px;
  }

  .mob-arrow-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    min-width: 52px;
    align-self: stretch;
    background: none;
    border: none;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: background 0.2s ease;
  }

  .mob-arrow-btn:active {
    background: rgba(22, 109, 67, 0.06);
  }

  .mob-arrow {
    width: 8px;
    height: 12px;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg width='8' height='12' viewBox='0 0 8 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.707031 0.707153L5.70703 5.70715L0.707031 10.7072' stroke='%23166D43' stroke-width='2'/%3E%3C/svg%3E") no-repeat center;
  }

  .mobile-submenu-back {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    border: none;
    background: none;
    cursor: pointer;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .mobile-submenu-back svg {
    flex-shrink: 0;
  }

  .mobile-menu-footer {
    flex-shrink: 0;
    padding: 0 20px 30px;
    margin-top: 70px;
  }

  .mobile-menu-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    margin-bottom: 20px;
  }

  .mobile-menu-social span {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #7A9087;
    margin-bottom: 12px;
    text-align: center;
  }

  .mobile-menu-social-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
  }

  .mobile-menu-social-icons a {
    display: block;
    width: 40px;
    height: 40px;
  }

  .mobile-menu-overlay {
    position: fixed;
    top: var(--header-h, 65px);
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.38);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
  }

  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  #pr-shop-advantages-0 {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0px;
    padding-bottom: 10px;
    scrollbar-width: none;
  }

  #pr-shop-advantages-0::-webkit-scrollbar {
    display: none;
  }

  #pr-shop-advantages-0>.col-6 {
    flex: 0 0 180px;
    max-width: 180px;
    width: 180px;
  }

  .pr-advantages-item-icon {
    width: 46px;
    height: 46px;
  }

  .pr-advantages-item-icon img {
    width: 20px;
    height: 20px;
  }

  .pr-advantage .pr-advantages-item-description {
    font-size: 12px !important;
  }
}

@media (max-width: 768px) {
  body.shop-reviews-lock-scroll {
    overflow: hidden;
  }

  .shop-reviews-header {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
    margin-bottom: 0;
  }

  .shop-reviews-rating-info {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: start;
    justify-content: start;
    gap: 4px;
    position: relative;
  }

  .shop-reviews-rating-title {
    flex: 1;
    min-width: 0;
  }

  .shop-reviews-rating-badge {
    order: 2;
    margin: 0;
    position: absolute;
    right: 0;
  }

  .shop-reviews-rating-count {
    width: 100%;
    order: 1;
  }

  .shop-reviews-link {
    order: 3;
    width: 100%;
    display: inline-block;
    width: fit-content;
  }

  .shop-reviews-circles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .shop-reviews-circle-item {
    padding: 16px 10px;
  }

  .shop-reviews-circle {
    width: 70px;
    height: 70px;
  }

  .shop-reviews-mobile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 45px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Gilroy', sans-serif;
    color: #fff;
    background: #166D43;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background 0.3s ease;
  }

  .shop-reviews-mobile-btn:hover {
    background: #000;
  }

  .shop-reviews-body {
    flex-direction: column;
  }

  .shop-reviews-popup-overlay {
    display: none;
  }

  .shop-reviews.is-form-open .shop-reviews-sidebar {
    display: block;
    width: min(560px, calc(100% - 24px));
    position: fixed;
    left: 50%;
    right: auto;
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
    z-index: 10001;
    height: auto;
    max-height: 85vh;
    overflow-y: auto;
    margin-bottom: 0;
    padding-top: 40px;
  }

  .shop-reviews.is-form-open .shop-reviews-popup-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
  }

  .shop-reviews-popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: #E9EEE9;
    color: #166D43;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .shop-reviews-list {
    width: 100%;
  }

  .shop-reviews-card {
    padding: 16px;
  }

  .shop-reviews-card-author {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }

  .pr-category-html-wrapper {
    flex-direction: column;
  }

  .pr-category-html-content {
    order: 2;
  }

  .pr-category-html-image {
    width: 100%;
    max-width: 400px;
    order: 1;
    margin-bottom: 10px;
  }

  .pr-breadcrumb {
    margin-top: 10px;
  }

  #oct-tabs {
    display: none !important;
  }

  .content-block {
    padding: 8px 12px;
  }

  .pr-product-actions-info {
    padding-bottom: 0 !important;
  }

  .pr-module-attributes-item {
    flex-direction: row !important;

  }

  .pr-product-attributes.pr-product-tab-content .pr-module-attributes-item {
    background: transparent !important;
    padding: 0 !important;
  }

  .pr-contact-us-item-title {
    text-align: left !important;
    margin-bottom: 10px;
  }

  .pr-contact-us-item-title {
    text-align: center !important;
    margin-bottom: 0;
    margin-top: 10px;
  }

  .form-check-label a, .form-check-label a b {
    display: contents;
  }

  #column-right.column-right-blog {
    display: block !important;
    position: relative !important;
    top: 0;
    border-radius: 0.375rem;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: #fff !important;
    z-index: 1000 !important;
    margin: 20px 0;
    background: transparent !important;
  }

  .pr-blog-post-text {
    padding: 10px;
  }

  .pr-blog-info,
  .pr-blog-comments {
    margin: 10px 0 !important;
  }

  .main-header {
    height: 65px;
    min-height: 65px;
    padding: 0;
    display: flex;
    align-items: center;
  }
  .main-header .h-block .h-logo img {
    height: 35px;
  }
  .main-header .h-block {
    gap: 15px;
  }
  .shop-reviews-sidebar {
    display: none;
  }
}

@media (max-width: 576px) {
  .btn-mobile-header {
    display: block;
  }

  .slider-desktop {
    display: none;
  }

  .slider-mobile {
    display: block;
  }

  .shop-reviews-circle {
    width: 65px;
    height: 65px;
  }

  .shop-reviews-circle-label {
    font-size: 12px;
  }

  .pr-module-item-price-old+.pr-module-item-price-new,
  .pr-product-price-new.red,
  .pr-price-new {
    font-size: 20px !important;
  }

  .pr-page-title h1 {
    font-size: 24px;
    line-height: 1.2;
    margin: 20px 0;
  }

  .pr-category-html-image {
    max-width: 100%;
  }

  .pr-category-appearance {
    padding: 3px;
  }

  .ocf-btn-mobile-static button {
    height: 55px;
    font-size: 16px;
    font-weight: bold;
    background: #fff;
    color: #000;
    border-radius: 16px;
  }

  .ocf-btn-mobile-static button svg path {
    stroke: #166D43;
  }

  #content .pr-page-title h1 {
    font-size: 18px;
    line-height: 1.2;
    margin: 10px 0;
  }

  #product-product .pr-scroll-to-reviews {
    display: none;
  }

  #product-product .info-line {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  #product-product .pr-product-main-info-code {
    text-align: right;
  }

  .pr-product-delivery-item-info {
    width: 75%;
  }

  .shop-reviews-card-ratings {
    display: flex;
  }

  .pr-empty-reviews .not-found-text {
    font-size: 16px !important;
    line-height: 1.2 !important;
  }

  .pr-product-faq-content {
    padding: 0 12px;
  }

  .pr-product-faq-content .pr-product-faq-item {
    padding: 12px;
  }

  .pr-module-news-item-image img {
    height: 204px;
  }

  .mobile-search-active .h-logo {
    display: none;
  }

  #search {
    display: none;
  }

  .mobile-search-active .h-middle {
    flex: 1;
  }

  .mobile-search-active #search {
    display: flex;
    flex: 1;
    animation: fadeInSearch 0.3s ease forwards;
  }

  .mobile-search-active #search input {
    min-width: 0;
    width: 100%;
  }

  @keyframes fadeInSearch {
    from {
      opacity: 0;
      transform: translateX(-10px);
    }

    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .mobile-search-icon-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;

  }

  .mobile-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: #F4F7F5;
    border-radius: 6px;
    cursor: pointer;
    background-image: url("../img/search-icon.svg");
    background-size: 20px;
    background-position: center;
    background-repeat: no-repeat;
    transition: background 0.3s ease;
  }

  .mobile-search-icon.active {
    background-image: url("../img/menu-icon-hover.svg");
    background-size: 16px;
  }

  .mobile-search-icon.active svg path {
    fill: #fff;
    transition: fill 0.3s ease;
  }

  .mobile-search-icon svg {
    width: 20px;
    height: 20px;
  }
}

/* Live search: на телефоне/узкой шапке — панель на всю ширину экрана (не ширину #search) */
@media (max-width: 1100px) {
  #liveSearch.expanded {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    top: var(--header-h, 72px);
    border-radius: 0 0 12px 12px;
    max-height: min(75vh, calc(100dvh - var(--header-h, 72px) - 8px));
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }
}