/* PROMAG: one shared layout for native Aspro product cards and navigation. */
@media (min-width: 992px) {
  #header .pm-header {position:relative;z-index:100;overflow:visible}
  #header .pm-header .maxwidth-theme,
  #header .pm-header__row,
  #header .pm-header__menu,
  #header .pm-header .mega-menu,
  #header .pm-header .mega-menu > .table-menu,
  #header .pm-header .mega-menu > .table-menu > table,
  #header .pm-header .mega-menu > .table-menu > table > tbody,
  #header .pm-header .mega-menu > .table-menu > table > tbody > tr,
  #header .pm-header .mega-menu .menu-item.catalog,
  #header .pm-header .mega-menu .menu-item.catalog > .wrap {position:static!important;overflow:visible!important}
  #header .pm-header .menu-item > .wrap > .dropdown-menu {
    top:100%!important;left:50%!important;right:auto!important;transform:translateX(-50%);
    margin:0!important;padding:24px!important;width:min(1240px,calc(100vw - 48px))!important;
    min-width:0!important;max-width:none!important;max-height:var(--pm-nav-space,calc(100vh - 150px));
    overflow:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;
    background:#f8f9f6!important;color:#17281f!important;border:1px solid #dce3dc;
    border-top:3px solid #c69b59;border-radius:0 0 10px 10px;box-shadow:0 18px 36px #001c1630;
  }
  #header .pm-header .menu-item:not(.catalog) > .wrap {position:relative!important}
  #header .pm-header .menu-item:not(.catalog) > .wrap > .dropdown-menu {width:300px!important;left:0!important;transform:none}
  #header .pm-header .menu-item:is(:hover,:focus-within) > .wrap > .dropdown-menu {display:block!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important}
  #header .pm-header .dropdown-menu > .customScrollbar {overflow:visible!important;max-height:none!important;height:auto!important;width:100%!important}
  #header .pm-header .dropdown-menu .menu-wrapper {display:block!important;column-count:4;column-gap:28px;margin:0!important;padding:0!important;width:100%!important;list-style:none}
  #header .pm-header .dropdown-menu .menu-wrapper > li {display:grid!important;break-inside:avoid;grid-template-columns:54px minmax(0,1fr);align-content:start;gap:8px 10px;width:auto!important;float:none!important;margin:0 0 24px!important;padding:0!important;background:none!important;position:relative!important;min-width:0}
  #header .pm-header .menu-wrapper > li > .menu_img {position:static!important;width:54px!important;height:48px!important;margin:0!important;padding:0!important;grid-column:1;grid-row:1}
  #header .pm-header .menu-wrapper > li > .menu_img a {display:flex!important;align-items:center;justify-content:center;width:54px;height:48px;padding:0!important}
  #header .pm-header .menu-wrapper > li > .menu_img img {width:54px!important;height:48px!important;max-width:100%;object-fit:contain;mix-blend-mode:normal!important}
  #header .pm-header .menu-wrapper > li > a {grid-column:2;grid-row:1;display:flex!important;align-items:center;padding:0!important;min-height:48px;white-space:normal!important;line-height:1.35!important;font-size:13px!important;font-weight:650!important;color:#183127!important;overflow-wrap:anywhere}
  #header .pm-header .menu-wrapper > li:not(.has_img) > a {grid-column:1 / -1}
  #header .pm-header .menu-wrapper > li > a .name {color:inherit!important}
  #header .pm-header .menu-wrapper > li > a {background:transparent!important;border-radius:4px}
  #header .pm-header .menu-wrapper > li > a:is(:hover,:focus-visible) {background:#ecf1e9!important;color:#805b2a!important}
  #header .pm-header .menu-wrapper > li > a > .right {display:none!important}
  #header .pm-header .menu-wrapper > li > ul.dropdown-menu {
    grid-column:1 / -1;display:block!important;position:static!important;left:auto!important;right:auto!important;top:auto!important;
    transform:none!important;width:auto!important;min-width:0!important;max-width:100%!important;height:auto!important;max-height:none!important;
    margin:0!important;padding:0 0 0 64px!important;background:transparent!important;border:0!important;box-shadow:none!important;
    visibility:visible!important;opacity:1!important;overflow:visible!important;pointer-events:auto!important;
  }
  #header .pm-header .menu-wrapper > li > ul > li {display:block!important;float:none!important;width:auto!important;margin:0!important;padding:0!important;border:0!important;background:none!important}
  #header .pm-header .menu-wrapper > li > ul > li > a {display:block!important;padding:4px 0!important;color:#5a695f!important;background:transparent!important;font-size:12px!important;line-height:1.4!important;white-space:normal!important;overflow-wrap:anywhere}
  #header .pm-header .menu-wrapper a:hover,#header .pm-header .menu-wrapper a:focus-visible {color:#8c632d!important;text-decoration:underline!important;text-underline-offset:3px}
  #header .pm-header .menu-wrapper a:focus-visible {outline:2px solid #b68a48;outline-offset:3px}
  #header .pm-header .menu-wrapper .tail {display:none!important}
  #header .pm-header .menu-item:not(.catalog) .dropdown-menu .menu-wrapper {column-count:1}
  #header .pm-header .menu-item:not(.catalog) .dropdown-menu .menu-wrapper > li {margin-bottom:4px!important}
  #header .pm-header .menu-item:not(.catalog) .dropdown-menu .menu-wrapper > li > a {min-height:38px;padding:8px 6px!important}
}
@media (min-width:992px) and (max-width:1199px) {
  #header .pm-header .dropdown-menu .menu-wrapper {column-count:3;column-gap:22px}
}

/* Keep the real native product controls, changing only their presentation. */
.pm-product-layout {display:grid!important;grid-template-columns:minmax(0,1.12fr) minmax(390px,1fr);gap:32px 40px;align-items:start}
.pm-product-layout > .product-view {display:contents!important}
.pm-product-layout .product-view > .product-info {grid-column:1;grid-row:1;width:100%!important;min-width:0;margin:0!important;padding:24px!important;background:#202321;border-color:#354039!important;border-radius:10px!important}
.pm-product-layout .product-view > .tabs-block {grid-column:1 / -1;grid-row:2;width:100%;min-width:0;margin:0!important;padding-top:8px}
.pm-product-layout .product-view > .gifts,
.pm-product-layout .product-view > .goods {grid-column:1 / -1;min-width:0}
.pm-product-layout .product-view > .gifts:empty,
.pm-product-layout .product-view > .goods:empty {display:none}
.pm-product-layout > .product-side {display:block!important;grid-column:2;grid-row:1;position:static!important;float:none!important;width:auto!important;max-width:none!important;min-width:0;margin:0!important;padding:0!important;height:auto!important}
.pm-product-layout > .product-side > .inner-wrapper-sticky {position:static!important;transform:none!important;top:auto!important;left:auto!important;width:100%!important}
.pm-product-layout .product-info-headnote {margin-bottom:18px!important;padding:0!important}
.pm-product-layout .product-info > .two_columns {width:100%;min-width:0;margin:0!important}
.pm-product-layout .product-detail-gallery.detail-gallery-big {width:100%!important;min-width:0;padding:0!important}
body .pm-product-layout .product-detail-gallery .detail-gallery-big-slider-main__inner {width:100%!important;max-width:100%!important;margin:auto}
body .pm-product-layout .product-detail-gallery .detail-gallery-big-slider-main__ratio-wrap {padding-top:0!important;height:clamp(340px,32vw,460px)!important}
body .pm-product-layout .product-detail-gallery .detail-gallery-big__link {display:flex!important;align-items:center;justify-content:center;width:100%;height:100%;padding:12px;box-sizing:border-box}
body .pm-product-layout .product-detail-gallery .detail-gallery-big__picture {width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain;object-position:center;filter:drop-shadow(0 14px 14px #0002);border-radius:0}
.pm-product-layout .product-detail-gallery .gallery__item--thumb {background:transparent;border-color:#4c5a50}
.pm-product-layout .product-side .product-main {display:flex;flex-direction:column;gap:18px;min-width:0}
.pm-product-layout .product-main > .cost,
.pm-product-layout .product-main > .quantity_block_wrapper,
.pm-product-layout .product-main > .js-prices-in-side,
.pm-product-layout .product-main > .char-side,
.pm-product-layout .product-main > .brand-detail {margin:0!important;padding-top:0!important}
.pm-product-layout .product-main > .cost .price {font-size:28px!important;line-height:1.2!important;color:#f4f5f1!important}
.pm-product-layout .product-main > .quantity_block_wrapper {margin-top:-10px!important}
.pm-product-layout .item-stock .value {color:#c2cabe!important}
.pm-product-layout .item-stock .icon.order {background:#c9a569!important}
.pm-product-layout .product-main > .text-form,
.pm-product-layout .product-main > .text-additional,
.pm-product-layout .product-main > .vat_text:empty {display:none!important}
.pm-product-layout .product-main .to-order.btn {display:flex;align-items:center;justify-content:center;min-height:46px;border-radius:5px!important;background:#d2ac6a!important;color:#10281b!important;border:1px solid #d2ac6a!important;font-weight:700;letter-spacing:.04em}
.pm-product-layout .product-main .to-order.btn:hover {background:#e0bd82!important}
.pm-product-layout .char-side__title {font-size:17px!important;font-weight:650;margin:0 0 10px!important;color:#f1f2ed!important}
.pm-product-layout .char-side .properties__item {display:grid;grid-template-columns:minmax(0,1.6fr) minmax(70px,1fr);gap:14px;align-items:start;padding:8px 0;border-bottom:1px solid #ffffff12;font-size:13px!important;line-height:1.5}
.pm-product-layout .char-side .properties__title {color:#aeb9b0!important;min-width:0;overflow-wrap:anywhere}
.pm-product-layout .char-side .properties__value {color:#f2f4ef!important;min-width:0;overflow-wrap:anywhere}
.pm-product-layout .char-side .properties__hr,
.pm-product-layout .char-side .hint {display:none!important}
.pm-product-layout .more-char-link {margin-top:12px!important}
.pm-product-layout .more-char-link .choise {color:#dfbd83!important}
.pm-product-layout .brand-detail-info {display:grid;grid-template-columns:56px minmax(0,1fr);gap:14px;padding:16px!important;border:1px solid #3e5144!important;border-radius:8px!important;background:#14271e}
.pm-product-layout .brand-detail-info:not(:has(.brand-detail-info__image)) {display:block}
.pm-product-layout .brand-detail-info__image {width:56px;max-width:56px;margin:0!important;padding:0!important}
.pm-product-layout .brand-detail-info__image img {max-width:56px;max-height:48px;object-fit:contain}
.pm-product-layout .brand-detail-info__preview {min-width:0;margin:0!important;padding:0!important}
.pm-product-layout .brand-detail-info__preview .text {font-size:12px!important;line-height:1.5!important;color:#c5cfc5!important}
.pm-product-layout .brand-detail-info__preview .link {margin-top:8px!important;font-size:12px!important;line-height:1.4}
.pm-product-layout .brand-detail-info__preview .link a {color:#e1c28d!important}
.pm-product-layout .product-side .side-block--feedback {display:none!important}
.pm-product-layout #desc .ordered-block__text.show-collapsed-js {display:block!important;-webkit-line-clamp:unset!important;-webkit-box-orient:initial!important;height:var(--pm-description-preview,320px)!important;max-height:none!important;overflow:hidden!important}
.pm-product-layout #desc .ordered-block__text.opened {height:auto!important;overflow:visible!important}
.pm-product-layout #desc .ordered-block__text > * {height:auto!important;max-height:none!important;position:static!important;-webkit-line-clamp:unset!important;overflow:visible!important;text-overflow:clip!important}
.pm-product-layout #desc .ordered-block__text > *::after {content:none!important}
.pm-product-layout #desc .ordered-block__spoiler {margin-top:16px;padding-top:12px;border-top:1px solid #ffffff16}
.pm-product-layout #desc h2 {font-size:24px;line-height:1.35;margin:26px 0 16px}
.pm-product-layout #desc p,.pm-product-layout #desc li {font-size:15px;line-height:1.7}
.pm-product-layout #desc .table {font-size:14px}
.pm-product-layout #desc,.pm-product-layout #props {scroll-margin-top:130px}

@media (min-width:992px) {
  #headerfixed.with-product {background:#f7f8f4!important;color:#172e21!important;border-bottom:1px solid #d5ded4;box-shadow:0 4px 20px #00180f24;isolation:isolate;will-change:auto!important;backface-visibility:visible!important}
  #headerfixed.with-product > .maxwidth-theme {max-width:1440px!important;width:100%;padding:0 28px!important}
  #headerfixed.with-product > .maxwidth-theme,
  #headerfixed.with-product .ajax-head-row,
  #headerfixed.with-product .ajax-head-row .ajax_load,
  #headerfixed.with-product .ajax-head-row .table-view,
  #headerfixed.with-product .ajax-head-row .table-view__item {background:transparent!important}
  #headerfixed.with-product .ajax-head-row .table-view__item {display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:24px;min-height:76px;padding:10px 0!important;width:100%}
  #headerfixed.with-product .ajax-head-row .flex1 {min-width:0}
  #headerfixed.with-product .ajax-head-row .item-foto {width:58px!important;min-width:58px!important;height:54px!important;margin:0!important}
  #headerfixed.with-product .ajax-head-row .item-foto__picture {width:58px!important;height:54px!important}
  #headerfixed.with-product .ajax-head-row .item-foto img {width:100%;height:100%;object-fit:contain}
  #headerfixed.with-product .ajax-head-row .item-title {color:#172e21!important;font-size:14px!important;font-weight:650;line-height:1.35;min-width:0}
  #headerfixed.with-product .ajax-head-row .item-title .lineclamp-1 {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal!important;max-height:2.7em;overflow:hidden;color:inherit!important}
  #headerfixed.with-product .ajax-head-row .item-stock .value,
  #headerfixed.with-product .ajax-head-row .item-sku {color:#617163!important;font-size:11px!important;line-height:1.4}
  #headerfixed.with-product .ajax-head-row .item-stock .icon {background:#7b956c!important}
  #headerfixed.with-product .ajax-head-row .item-price {margin:0!important;white-space:nowrap}
  #headerfixed.with-product .ajax-head-row .price {color:#172e21!important;font-size:16px!important;font-weight:700}
  #headerfixed.with-product .ajax-head-row .line-block.flexbox--gap-40 {gap:20px!important}
  #headerfixed.with-product .ajax-head-row .item-buttons .btn {background:#d2ac6a!important;color:#16291d!important;border:1px solid #d2ac6a!important;padding:12px 18px!important;border-radius:5px!important;white-space:nowrap;font-size:11px!important;font-weight:700}
  #headerfixed.with-product .ajax-head-row .item-icons .btn-transparent {background:transparent!important;border-color:#ccd7cb!important;color:#51634f!important}
  #headerfixed.with-product .ajax-head-row .item-icons svg path {fill:#51634f!important}
}
@media (max-width:1199px) and (min-width:992px) {
  .pm-product-layout {grid-template-columns:minmax(0,1fr) minmax(370px,1fr);gap:28px}
  #headerfixed.with-product .ajax-head-row .item-icons {display:none}
  #headerfixed.with-product .ajax-head-row .line-block.flexbox--gap-40 {gap:14px!important}
}
@media (max-width:991px) {
  .pm-product-layout {display:block!important}
  .pm-product-layout .product-view > .product-info {padding:18px!important;margin-bottom:24px!important}
  .pm-product-layout > .product-side {margin:0 0 28px!important}
  .pm-product-layout .product-side .product-main > :not(.brand-detail) {display:none!important}
  .pm-product-layout .product-view > .tabs-block {margin-top:0!important}
  body .pm-product-layout .product-detail-gallery .detail-gallery-big-slider-main__ratio-wrap {height:340px!important}
  .pm-product-layout .product-main .char-side {margin-top:22px!important}
  .pm-product-layout .product-main .text-form,
  .pm-product-layout .product-main .text-additional {display:none!important}
  .pm-product-layout .product-info-headnote > .flexbox {flex-wrap:nowrap!important;gap:10px}
  .pm-product-layout .product-info-headnote > .flexbox > .col-auto {width:auto!important;max-width:none!important;min-width:0}
  .pm-product-layout .product-info-headnote__brand {display:none!important}
  .pm-product-layout .product-info-headnote__article .article {text-align:left!important}
  .pm-product-layout .product-main .to-order.btn {margin-top:12px}
  .pm-product-layout .product-main > .cost .price {font-size:25px!important}
  .pm-product-layout #desc h2 {font-size:21px}
  .pm-product-layout #desc p,.pm-product-layout #desc li {font-size:14px}
  #mobileheader .logo img[src*="logo-promag-ru"] {object-fit:contain!important;max-width:145px!important;max-height:30px!important}
}
@media (max-width:479px) {
  body .pm-product-layout .product-detail-gallery .detail-gallery-big-slider-main__ratio-wrap {height:270px!important}
  .pm-product-layout .product-view > .product-info {padding:14px!important}
  .pm-product-layout .char-side .properties__item {grid-template-columns:minmax(0,1.7fr) minmax(65px,1fr);gap:10px;font-size:12px!important}
}

/* PROMAG HEADER TRIGGER FIX BEGIN */
@media (min-width:992px) {
  #header .pm-header .menu-item:not(:hover):not(:focus-within) > .wrap > .dropdown-menu {
    display:none!important;
    visibility:hidden!important;
    opacity:0!important;
    pointer-events:none!important;
  }
}
/* PROMAG HEADER TRIGGER FIX END */
