/* MGPLITKA catalog hybrid filter groups / right tabs fix 1.8.17
   Collection/series behavior is unchanged. Horizontal geometry follows the
   same .mg-container / --mg-max grid as the redesigned site header. */
.mgc-bleed,
.mgc-bleed *{box-sizing:border-box}
.mgc-bleed{width:100vw;position:relative;left:50%;margin-left:-50vw;background:#fff;color:#171717;font-family:Arial,Helvetica,sans-serif;font-size:14px;line-height:1.25;overflow:hidden}
.mgc-page{width:100%;max-width:var(--mg-max,1600px);margin:0 auto;padding-left:32px;padding-right:32px;background:#fff}
.mgc-page img{display:block;max-width:100%}
.mgc-page a{text-decoration:none;color:inherit}
.mgc-page button,.mgc-page input,.mgc-page select{font:inherit}
.mgc-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* Hero: dynamic banner content with fixed containers for title/announce above search and details below. */
.mgc-hero{position:relative;width:100%;aspect-ratio:1122/286;background:#eee;overflow:hidden}
.mgc-hero__art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.mgc-hero__panel{position:absolute;left:5.4%;top:5.2%;width:42.8%;height:82.8%;display:grid;grid-template-rows:minmax(0,1fr) 56px;row-gap:12px;z-index:2}
.mgc-hero__content{min-height:0;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-start}
.mgc-hero__crumbs{font-size:16px;line-height:1.2;color:#666b73;margin:0 0 12px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:700}
.mgc-hero__title--context{font-size:clamp(30px,2.65vw,46px)!important;line-height:1.05!important;letter-spacing:-.025em!important;max-width:100%!important}
.mgc-hero__title{margin:0 0 12px;font-family:Georgia,'Times New Roman',serif;font-weight:400;font-size:clamp(56px,4.8vw,78px);line-height:.9;letter-spacing:-.045em;color:#171717;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-width:92%}
.mgc-hero__announce{font-size:18px;line-height:1.35;color:#4f5258;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;max-width:95%;font-weight:400;margin-bottom:10px}
.mgc-hero__search{display:flex;height:56px;border-radius:6px;overflow:hidden;box-shadow:0 2px 10px rgba(0,0,0,.07);z-index:2;min-width:0;margin-top:0;align-self:end}
.mgc-hero__search-main{position:relative;display:flex;align-items:center;flex:1;background:#fff;min-width:0}
.mgc-hero__search svg{width:18px;height:18px;margin:0 14px 0 18px;stroke:#141414;stroke-width:2;fill:none;flex:0 0 auto}
.mgc-hero__search input{width:100%;height:100%;border:0!important;outline:0!important;background:#fff!important;color:#2a2a2a!important;padding:0 14px 0 0!important;box-shadow:none!important;font-size:17px!important;line-height:1!important;font-weight:400}
.mgc-hero__search input::placeholder{color:#969cab;opacity:1}
.mgc-hero__search button{width:23.1%;min-width:124px;height:100%;border:0;background:#e10822;color:#fff;cursor:pointer;font-size:18px;font-weight:600;transition:filter .18s ease}
.mgc-hero__search button:hover{filter:brightness(.94)}
.mgc-hero__details{font-size:16px;line-height:1.35;color:#3c4046;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden;max-width:96%;padding-top:0;margin-top:0}

/* Category banner row. The approved crops carry the exact typography and decorative arrows. */
.mgc-category-row{display:grid;grid-template-columns:330fr 336fr 343fr;gap:12px;padding:10px 0 12px;background:#fff;align-items:start}
.mgc-category-card{display:block;height:auto;border-radius:5px;overflow:hidden;box-shadow:0 1px 4px rgba(0,0,0,.08);position:relative;background:#ddd;color:#fff!important}
.mgc-category-card img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .25s ease,filter .25s ease}
.mgc-category-card::before{content:"";position:absolute;z-index:1;inset:0;background:linear-gradient(90deg,rgba(20,16,13,.64) 0%,rgba(20,16,13,.32) 54%,rgba(20,16,13,.06) 82%);pointer-events:none}
.mgc-category-card::after{content:"";position:absolute;z-index:4;inset:0;border:1px solid rgba(0,0,0,.06);border-radius:5px;pointer-events:none}
.mgc-category-card__copy{position:absolute;z-index:2;left:24px;right:64px;bottom:17px;display:flex;flex-direction:column;gap:6px;min-width:0;text-shadow:0 1px 4px rgba(0,0,0,.45)}
.mgc-category-card__copy strong{display:block;color:#fff;font:400 30px/1.02 Georgia,'Times New Roman',serif;white-space:normal;overflow:hidden;text-overflow:ellipsis}
.mgc-category-card__copy>span{color:rgba(255,255,255,.94);font:500 12px/1.25 Arial,sans-serif;white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.mgc-category-card__go{position:absolute;z-index:3;right:14px;bottom:17px;width:35px;height:35px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#fff;color:#222;font:400 18px/1 Arial,sans-serif;box-shadow:0 1px 4px rgba(0,0,0,.12)}
.mgc-category-card:nth-child(1){aspect-ratio:330/98}
.mgc-category-card:nth-child(2){aspect-ratio:336/98}
.mgc-category-card:nth-child(3){aspect-ratio:343/98}
.mgc-category-card:hover img{filter:brightness(.96);transform:scale(1.01)}
.mgc-category-card:hover .mgc-category-card__go{background:#e20a23;color:#fff}

/* Main two-column catalog area — restored in 1.8.31 FIX2 from stable 1.8.30. */
.mgc-workspace{display:grid;grid-template-columns:minmax(236px,19.8%) minmax(0,1fr);gap:17px;padding:0;background:#fff;align-items:start}
.mgc-sidebar{border:1px solid #e5e7eb;border-radius:4px;background:#fff;overflow:hidden;box-shadow:0 1px 4px rgba(0,0,0,.02)}
.mgc-side-block{padding:12px 11px 11px;border-bottom:1px solid #e7e7e7}
.mgc-side-block:last-child{border-bottom:0}
.mgc-side-title{font-size:13px;font-weight:700;margin:0 0 10px;color:#191919}
.mgc-category-pills{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}
.mgc-category-pills a{display:flex;align-items:center;justify-content:center;height:30px;border-radius:4px;background:#f0f1f2;color:#1e1e1e;font-size:11px;white-space:nowrap}
.mgc-category-pills a.is-active{background:#e20a23;color:#fff}
.mgc-tree{font-size:12px}
.mgc-tree-group{border-bottom:1px solid #ececec;padding:0 0 8px;margin:0 0 8px}
.mgc-tree-group:last-child{border-bottom:0;margin-bottom:0}
.mgc-tree-head{display:flex;align-items:center;gap:7px;font-weight:700;cursor:pointer;min-height:23px}
.mgc-tree-head .mgc-chevron{width:12px;font-size:14px;line-height:1;transform:rotate(-90deg);transition:transform .15s ease}
.mgc-tree-group.is-open .mgc-tree-head .mgc-chevron{transform:rotate(0deg)}
.mgc-tree-children{display:none;padding:3px 0 0 25px}
.mgc-tree-group.is-open .mgc-tree-children{display:block}
.mgc-tree-children a{display:block;padding:5px 8px;border-radius:4px;color:#667085;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mgc-tree-children a.is-current{background:#fee7e5;color:#e20a23}
.mgc-filter-section{border-bottom:1px solid #e8e8e8;padding:11px 0 10px}
.mgc-filter-section:first-child{padding-top:0}
.mgc-filter-section:last-child{border-bottom:0;padding-bottom:0}
.mgc-filter-head{display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:700;margin-bottom:8px}
.mgc-filter-head .mgc-small-chevron{font-size:15px;line-height:1}
.mgc-filter-search{height:27px;background:#f3f4f5;border-radius:4px;display:flex;align-items:center;padding:0 8px;margin:0 0 8px;color:#8b929e}
.mgc-filter-search svg{width:13px;height:13px;stroke:#707782;fill:none;stroke-width:2;margin-right:6px}
.mgc-filter-search input{border:0!important;background:transparent!important;outline:0!important;box-shadow:none!important;width:100%;height:100%;padding:0!important;font-size:11px!important;color:#555!important}
.mgc-filter-options{display:block}
.mgc-filter-options--scroll{max-height:166px;overflow-y:auto;overflow-x:hidden;padding-right:4px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c8cdd4 transparent}
.mgc-filter-options--scroll::-webkit-scrollbar{width:5px}
.mgc-filter-options--scroll::-webkit-scrollbar-track{background:transparent}
.mgc-filter-options--scroll::-webkit-scrollbar-thumb{background:#c8cdd4;border-radius:999px}
.mgc-check{display:grid;grid-template-columns:16px minmax(0,1fr) auto;align-items:center;gap:6px;min-height:23px;font-size:11px;color:#687082;cursor:pointer}
.mgc-check input{appearance:none;-webkit-appearance:none;width:14px;height:14px;border:1px solid #aeb6c2;border-radius:3px;background:#fff;margin:0;position:relative}
.mgc-check input:checked{background:#e20a23;border-color:#e20a23}
.mgc-check input:checked::after{content:"";position:absolute;left:3px;top:1px;width:5px;height:8px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.mgc-check__name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mgc-check__count{color:#768094;font-size:10px}
.mgc-swatch{width:17px;height:17px;border-radius:50%;border:1px solid rgba(0,0,0,.08);display:inline-block;margin-right:3px;vertical-align:-4px;background:var(--swatch,#ddd)}
.mgc-collapsed-filters .mgc-filter-section{padding:10px 0}
.mgc-collapsed-filters .mgc-filter-head{margin:0}
.mgc-filter-submit{display:block;width:100%;height:33px;border:0;border-radius:4px;background:#e20a23;color:#fff;font-size:11px;font-weight:700;cursor:pointer;margin-top:11px}
.mgc-filter-reset{display:block;text-align:center;color:#e20a23!important;text-decoration:underline!important;font-size:10px;margin:8px 0 1px}

/* 1.8.17 — hybrid plumbing filter groups. Common parameters stay first;
   product-specific groups are explicit and can be collapsed independently. */
.mgc-filter-group{margin:0 0 9px;border:1px solid #e6e7e9;border-radius:6px;overflow:hidden;background:#fff}
.mgc-filter-group:last-of-type{margin-bottom:0}
.mgc-filter-group__head{width:100%;min-height:38px;display:grid;grid-template-columns:minmax(0,1fr) auto 15px;align-items:center;gap:7px;padding:8px 10px;border:0;background:#f5f6f7;color:#202226;text-align:left;font-family:inherit;cursor:pointer}
.mgc-filter-group__title{font-size:11px;font-weight:800;letter-spacing:.025em;text-transform:uppercase;line-height:1.15}
.mgc-filter-group__selected{font-size:9px;font-weight:700;color:#e20a23;white-space:nowrap;text-transform:none;letter-spacing:0}
.mgc-filter-group__chevron{font-size:14px;line-height:1;text-align:right}
.mgc-filter-group.has-selection>.mgc-filter-group__head{background:#fff1f2;color:#ba0b1f}
.mgc-filter-group--common>.mgc-filter-group__head{background:#eef0f2;color:#1e2125}
.mgc-filter-group__body{padding:0 10px 5px}
.mgc-filter-group__body[hidden]{display:none!important}
.mgc-filter-group .mgc-filter-section:first-child{padding-top:10px}
.mgc-filter-group .mgc-filter-section:last-child{border-bottom:0;padding-bottom:7px}

.mgc-main{min-width:0}
.mgc-toolbar{display:grid;grid-template-columns:max-content 168px 33px minmax(0,1fr);gap:10px;align-items:center;height:36px;margin-bottom:7px}
.mgc-found{font-size:11px;color:#262626;white-space:nowrap}
.mgc-found b{font-weight:700}
.mgc-sort{height:28px;border:1px solid #e3e5e8;border-radius:4px;background:#fff;padding:0 26px 0 10px;font-size:10px;color:#303238;outline:0}
.mgc-sort-dir{width:31px;height:28px;border:1px solid #e3e5e8;border-radius:4px;background:#fff;cursor:pointer;font-size:17px;line-height:1;color:#232323}
.mgc-toolbar>.mgc-tabs{display:flex;grid-column:4;justify-content:flex-end;gap:4px;justify-self:end;width:auto;min-width:0;margin-left:auto}
.mgc-tab{height:28px;min-width:94px;padding:0 14px;display:flex;align-items:center;justify-content:center;background:#f1f2f3;border-radius:4px;font-size:10px;white-space:nowrap;color:#232323!important}
.mgc-tab[href*="view%3Dmixed"],.mgc-tab[href*="view=mixed"]{min-width:118px}
.mgc-tab.is-active{background:#e20a23;color:#fff!important}

.mgc-collection-list{display:flex;flex-direction:column;gap:8px}
.mgc-collection{display:grid;grid-template-columns:38.7% minmax(0,1fr);height:300px;background:#f6f2ed;border-radius:5px;overflow:hidden;box-shadow:0 1px 2px rgba(0,0,0,.05)}
.mgc-collection__visual{position:relative;overflow:hidden;background:#ded8d1;display:flex;align-items:center;justify-content:center}
.mgc-collection__visual picture{display:flex;width:100%;height:100%;align-items:center;justify-content:center}
.mgc-collection__visual img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain}
.mgc-collection__body{min-width:0;padding:10px 11px 9px 14px;display:flex;flex-direction:column;position:relative}
.mgc-collection__title{font-family:Georgia,'Times New Roman',serif;font-weight:400;font-size:28px;line-height:1.06;margin:0 0 5px;color:#151515;letter-spacing:-.6px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;white-space:normal;min-height:30px;max-height:60px}
.mgc-collection__desc{font-size:11px;line-height:1.22;color:#5b5d61;max-width:94%;margin:0 0 4px;min-height:27px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mgc-collection__meta{display:flex;align-items:center;gap:10px;font-size:10px;font-weight:700;color:#3e4145;margin-bottom:7px}
.mgc-collection__meta span+span::before{content:"|";font-weight:400;color:#9b9ca0;margin-right:10px}
.mgc-collection__button{display:inline-flex;align-items:center;justify-content:center;align-self:flex-start;min-width:166px;height:27px;background:#e20a23;color:#fff!important;border-radius:3px;font-size:10px;padding:0 15px;margin-bottom:6px}
.mgc-collection__button span{font-size:13px;margin-left:8px;line-height:1}
.mgc-series-row{margin-top:auto;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;height:108px;min-height:108px}
.mgc-series-card{background:#fff;border:1px solid #dedede;border-radius:3px;overflow:hidden;min-width:0;color:#3b3b3b!important;display:flex;flex-direction:column}
.mgc-series-card__img{height:70px;background:#e8e4df;overflow:hidden;display:flex;align-items:center;justify-content:center;flex:0 0 70px}
.mgc-series-card__img picture{display:flex;width:100%;height:100%;align-items:center;justify-content:center}
.mgc-series-card__img img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain}
.mgc-series-card__label{height:37px;min-height:37px;padding:5px 7px 4px;font-size:10px;line-height:1.25;white-space:normal;overflow:hidden;background:#fff;flex:0 0 37px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;word-break:break-word}
.mgc-series-card--empty{background:transparent;border-color:transparent;box-shadow:none;pointer-events:none}
.mgc-collection__script{position:absolute;right:18px;top:32px;width:128px;font-family:'Segoe Script','Comic Sans MS',cursive;font-size:16px;line-height:1.35;color:#6d655e;transform:rotate(-6deg);text-align:center;opacity:.9;pointer-events:none}
.mgc-collection--script .mgc-collection__desc{max-width:67%}

@media (max-width: 1599px){
.mgc-page{width:100%;max-width:var(--mg-max,1600px)}
.mgc-hero__title{font-size:64px}
}
@media (max-width: 1280px){
.mgc-page{width:100%;max-width:var(--mg-max,1240px);padding-left:22px;padding-right:22px}
.mgc-workspace{grid-template-columns:220px minmax(0,1fr)}
.mgc-collection{grid-template-columns:38.7% minmax(0,1fr)}
.mgc-hero__panel{left:5.1%;top:5.1%;width:45%;height:84%}
.mgc-hero__title{font-size:52px;max-width:92%}
.mgc-hero__announce{font-size:16px;-webkit-line-clamp:3}
.mgc-hero__details{font-size:14px;-webkit-line-clamp:3;margin-top:0}
}

/* Alternate views use the same approved chrome and spacing. */
.mgc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.mgc-grid-card{border:1px solid #e4e4e4;border-radius:5px;overflow:hidden;background:#fff;min-height:235px}
.mgc-grid-card__img{height:150px;background:#eee;overflow:hidden}
.mgc-grid-card__img img{width:100%;height:100%;object-fit:cover}
.mgc-grid--series .mgc-grid-card__img{display:flex;align-items:center;justify-content:center}
.mgc-grid--series .mgc-grid-card__img img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain}
.mgc-grid-card__body{padding:9px 10px}
.mgc-grid-card__title{font-family:Georgia,'Times New Roman',serif;font-size:17px;line-height:1.1;margin-bottom:4px}
.mgc-grid-card__meta{font-size:10px;color:#6b7280}

.mgc-popular{padding:10px 0 28px}
.mgc-popular__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px}
.mgc-popular__title{font-family:Georgia,'Times New Roman',serif;font-size:21px;line-height:1;margin:0;font-weight:400}
.mgc-popular__all{color:#e20a23!important;font-size:10px;font-weight:700}
.mgc-popular__viewport{position:relative;overflow:hidden}
.mgc-popular__rail{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
.mgc-pop-card{height:132px;border-radius:4px;position:relative;overflow:hidden;background:#ddd;color:#fff!important;box-shadow:0 1px 3px rgba(0,0,0,.12)}
.mgc-pop-card img{width:100%;height:100%;object-fit:cover}
.mgc-pop-card::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.63) 0%,rgba(0,0,0,.12) 46%,rgba(0,0,0,0) 70%)}
.mgc-pop-card__text{position:absolute;left:8px;right:30px;bottom:7px;z-index:2}
.mgc-pop-card__name{display:block;font-family:Georgia,'Times New Roman',serif;font-size:13px;line-height:1.05;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mgc-pop-card__sub{display:block;font-size:8px;line-height:1.15;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mgc-pop-card__arrow{position:absolute;right:7px;bottom:8px;width:22px;height:22px;border-radius:50%;background:#fff;color:#252525;display:flex;align-items:center;justify-content:center;z-index:2;font-size:12px}

.mgc-empty{padding:45px 20px;text-align:center;border:1px solid #eee;border-radius:6px;background:#fafafa;color:#666}

/* Keep the reference proportions on desktop while allowing sensible mobile fallback. */

@media (max-width: 1000px){
  .mgc-page{width:100%;max-width:var(--mg-max,1240px);padding-left:22px;padding-right:22px}
  .mgc-hero{aspect-ratio:auto;min-height:320px}
  .mgc-hero__panel{position:absolute;left:16px;right:16px;top:14px;bottom:14px;width:auto;height:auto;grid-template-rows:minmax(0,1fr) 52px}
  .mgc-hero__title{font-size:42px}
  .mgc-hero__announce{font-size:15px;-webkit-line-clamp:3}
  .mgc-hero__details{font-size:13px;-webkit-line-clamp:3;margin-top:0}
  .mgc-workspace{grid-template-columns:210px minmax(0,1fr);padding-left:0;padding-right:0;gap:12px}
  .mgc-category-row{padding-left:0;padding-right:0;gap:8px}
  .mgc-collection{grid-template-columns:40% minmax(0,1fr)}
  .mgc-toolbar{grid-template-columns:auto 1fr auto;row-gap:8px;height:auto}
  .mgc-toolbar>.mgc-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-column:1/-1;justify-self:stretch;min-width:0;width:100%;margin-left:0}
  .mgc-toolbar>.mgc-tabs[data-tab-count="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}
  .mgc-tab{min-width:0;padding:0 6px}
}
@media (max-width: 760px){
  .mgc-page{width:100%;max-width:none;padding-left:15px;padding-right:15px}
  .mgc-hero{aspect-ratio:auto;height:auto;background:#f5f1ec;padding-top:0}
  .mgc-hero__art{position:relative;width:100%;height:auto;object-fit:contain}
  .mgc-hero__search{position:relative;left:auto;top:auto;width:auto;height:52px;margin:8px 14px 12px;border:1px solid #eee}
  .mgc-hero__search button{min-width:108px;width:118px;font-size:16px}
  .mgc-category-row{grid-template-columns:1fr;padding:8px 14px 10px}
  .mgc-category-card{height:auto}
  .mgc-workspace{display:block;padding:0}
  .mgc-sidebar{margin-bottom:12px}
  .mgc-toolbar{grid-template-columns:1fr auto auto;height:auto;row-gap:8px;margin:7px 0 9px}
  .mgc-toolbar>.mgc-tabs{grid-column:1/-1;justify-self:stretch;width:100%;order:-1;margin-left:0}
  .mgc-collection{height:auto;grid-template-columns:1fr}
  .mgc-collection__visual{height:220px}
  .mgc-collection__body{min-height:230px}
  .mgc-series-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mgc-collection__script{display:none}
  .mgc-collection--script .mgc-collection__desc{max-width:100%}
  .mgc-popular__rail{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:4px}
  .mgc-pop-card{min-width:140px;scroll-snap-align:start}
  .mgc-grid{grid-template-columns:1fr 1fr}
}
@media (max-width: 480px){
  .mgc-toolbar>.mgc-tabs,.mgc-toolbar>.mgc-tabs[data-tab-count="3"]{grid-template-columns:1fr 1fr}
  .mgc-grid{grid-template-columns:1fr}
  .mgc-collection__visual{height:190px}
  .mgc-collection__title{font-size:24px}
}

/* Connected collection -> series -> product views */
.mgc-context-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:14px 16px;margin:0 0 10px;border-radius:6px;background:#f6f2ed;border:1px solid #ece6df}
.mgc-context-head__eyebrow,.mgc-mixed-section__eyebrow{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#8a8178;margin-bottom:3px}
.mgc-context-head h2{font-family:Georgia,'Times New Roman',serif;font-size:28px;font-weight:400;line-height:1.05;margin:0 0 5px;color:#171717}
.mgc-context-head p{font-size:11px;line-height:1.35;color:#666;margin:0;max-width:680px}
.mgc-context-head__meta{font-size:11px;font-weight:700;white-space:nowrap;color:#333;padding-top:18px}
.mgc-mixed-list{display:flex;flex-direction:column;gap:12px}
.mgc-mixed-section{border:1px solid #e7e3df;border-radius:6px;background:#fff;overflow:hidden;box-shadow:0 1px 2px rgba(0,0,0,.025)}
.mgc-mixed-section__head{display:grid;grid-template-columns:138px minmax(0,1fr) auto;gap:14px;align-items:center;padding:10px;background:#f8f5f1}
.mgc-mixed-section__image{width:138px;height:86px;object-fit:cover;border-radius:4px;background:#eee}
.mgc-mixed-section__info h3{font-family:Georgia,'Times New Roman',serif;font-weight:400;font-size:24px;line-height:1.05;margin:0 0 5px;color:#171717}
.mgc-mixed-section__info>div:last-child{font-size:11px;color:#5e6268}
.mgc-mixed-section__all{display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 14px;border-radius:4px;background:#e20a23;color:#fff!important;font-size:10px;font-weight:700;white-space:nowrap}
.mgc-mixed-product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:10px}
.mgc-mini-product{display:flex;flex-direction:column;min-width:0;border:1px solid #e5e5e5;border-radius:4px;overflow:hidden;background:#fff;color:#222!important}
.mgc-mini-product__img{height:112px;background:#f0f0f0;overflow:hidden}
.mgc-mini-product__img img{width:100%;height:100%;object-fit:cover}
.mgc-mini-product__name{display:block;padding:7px 8px;font-size:10px;line-height:1.25;min-height:40px;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.mgc-mixed-empty{padding:18px 14px;font-size:11px;color:#777}
@media (max-width:1000px){.mgc-mixed-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mgc-mixed-section__head{grid-template-columns:100px 1fr}.mgc-mixed-section__image{width:100px;height:72px}.mgc-mixed-section__all{grid-column:1/-1;justify-self:start}.mgc-context-head{display:block}.mgc-context-head__meta{padding-top:8px}}
@media (max-width:560px){.mgc-mixed-product-grid{grid-template-columns:1fr}.mgc-mixed-section__head{grid-template-columns:78px 1fr}.mgc-mixed-section__image{width:78px;height:62px}}

/* ===== MGPLITKA catalog 1.4.0: series carousels + full commerce product cards ===== */
.mgc-series-carousel{position:relative;margin-top:auto;min-width:0}
.mgc-series-carousel__viewport{overflow-x:auto;overflow-y:hidden;min-width:0;scroll-behavior:smooth;scroll-snap-type:x proximity;scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;cursor:grab;overscroll-behavior-x:contain}
.mgc-series-carousel__rail{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 20px)/5);gap:5px;min-width:0}.mgc-series-carousel__viewport::-webkit-scrollbar{display:none}.mgc-series-carousel__rail>.mgc-series-card{scroll-snap-align:start}
.mgc-series-carousel__arrow,.mgc-mixed-series-carousel__arrow{position:absolute;z-index:5;display:flex;align-items:center;justify-content:center;border:1px solid #e0dedb;background:#fff;color:#222;box-shadow:0 2px 8px rgba(0,0,0,.09);cursor:pointer;transition:opacity .15s ease,transform .15s ease,background .15s ease}
.mgc-series-carousel__arrow{top:17px;width:27px;height:27px;border-radius:50%;font:400 22px/1 Arial,sans-serif}
.mgc-series-carousel__arrow--prev{left:-10px}
.mgc-series-carousel__arrow--next{right:-10px}
.mgc-series-carousel__arrow:hover,.mgc-mixed-series-carousel__arrow:hover{background:#e20a23;color:#fff;border-color:#e20a23}
.mgc-series-carousel__arrow[hidden],.mgc-mixed-series-carousel__arrow[hidden]{display:none!important}
.mgc-series-carousel__arrow:disabled,.mgc-mixed-series-carousel__arrow:disabled{opacity:.28;cursor:default;transform:none;background:#fff;color:#555;border-color:#ddd}
/* 1.8.30: mouse drag + touch swipe on nested series/product rails. */
[data-mgc-scroll-viewport].is-dragging{cursor:grabbing!important;scroll-behavior:auto!important;scroll-snap-type:none!important;user-select:none!important}
[data-mgc-scroll-viewport] a,[data-mgc-scroll-viewport] img{-webkit-user-drag:none}


.mgc-mixed-series-carousel{position:relative;margin:0 0 12px;padding:0 2px;min-width:0}
.mgc-mixed-series-carousel__viewport{overflow:hidden;scroll-behavior:smooth;min-width:0}
.mgc-mixed-series-carousel__rail{display:flex;gap:8px;min-width:max-content;padding:1px}
.mgc-mixed-series-card{width:178px;min-width:178px;height:96px;display:grid;grid-template-columns:82px minmax(0,1fr);align-items:stretch;border:1px solid #e5e2df;border-radius:6px;overflow:hidden;background:#fff;color:#222!important;box-shadow:0 1px 2px rgba(0,0,0,.03);transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}
.mgc-mixed-series-card:hover{border-color:#d6d0ca;box-shadow:0 4px 14px rgba(0,0,0,.07);transform:translateY(-1px)}
.mgc-mixed-series-card.is-active{border-color:#e20a23;box-shadow:inset 0 0 0 1px #e20a23}
.mgc-mixed-series-card img{width:82px;height:100%;object-fit:cover;background:#eee}
.mgc-mixed-series-card>span{display:flex;flex-direction:column;justify-content:center;min-width:0;padding:8px 8px 8px 9px}
.mgc-mixed-series-card strong{font-family:Georgia,'Times New Roman',serif;font-size:15px;line-height:1.06;font-weight:400;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.mgc-mixed-series-card small{margin-top:6px;font-size:9px;color:#777;line-height:1.1}
.mgc-mixed-series-carousel__arrow{top:31px;width:34px;height:34px;border-radius:50%;font:400 24px/1 Arial,sans-serif}
.mgc-mixed-series-carousel__arrow--prev{left:-14px}
.mgc-mixed-series-carousel__arrow--next{right:-14px}

.mgc-product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:start}
.mgc-product-grid--mixed{padding:16px;background:#fff}
.mgc-product-card{min-width:0;display:flex;flex-direction:column;border:1px solid #e4e5e8;border-radius:12px;overflow:hidden;background:#fff;box-shadow:0 3px 14px rgba(0,0,0,.045);transition:box-shadow .18s ease,transform .18s ease,border-color .18s ease}
.mgc-product-card:hover{border-color:#d7d9dd;box-shadow:0 12px 32px rgba(0,0,0,.085);transform:translateY(-2px)}
.mgc-product-card__media{padding:8px 8px 0;background:#fff}
.mgc-product-card__stage{position:relative;aspect-ratio:3/4;border-radius:9px;overflow:hidden;background:#f5f5f3}
.mgc-product-card__image-link{position:absolute;inset:0;display:block;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:zoom-in}
.mgc-product-card__main-image{width:100%;height:100%;object-fit:contain;display:block;transition:opacity .15s ease,transform .25s ease}
.mgc-product-card:hover .mgc-product-card__main-image{transform:scale(1.012)}
.mgc-product-card__brand{position:absolute;left:10px;top:10px;z-index:3;display:inline-flex;align-items:center;height:26px;padding:0 9px;border-radius:4px;background:#38b900;color:#fff;font-size:9px;font-weight:700;letter-spacing:.02em;box-shadow:0 1px 4px rgba(0,0,0,.12)}
.mgc-product-card__discount{position:absolute;right:10px;top:10px;z-index:4;display:flex;align-items:center;justify-content:center;height:26px;padding:0 8px;border-radius:4px;background:#e20a23;color:#fff;font-size:11px;font-weight:700}
.mgc-product-card__gallery-arrow{position:absolute;top:50%;z-index:4;width:36px;height:36px;margin-top:-18px;border:0;border-radius:50%;background:rgba(255,255,255,.95);box-shadow:0 2px 8px rgba(0,0,0,.11);font-size:25px;line-height:1;color:#24272b;cursor:pointer;opacity:.92}
.mgc-product-card__gallery-arrow--prev{left:10px}.mgc-product-card__gallery-arrow--next{right:10px}
.mgc-product-card__gallery-count{position:absolute;right:10px;bottom:10px;z-index:4;padding:4px 7px;border-radius:5px;background:rgba(20,20,20,.72);color:#fff;font-size:10px;line-height:1}
.mgc-product-card__gallery-bars{display:flex;gap:4px;height:9px;padding:5px 6px 0}
.mgc-product-card__gallery-bars button{flex:1;height:3px;border:0;border-radius:3px;background:#d9dce0;padding:0;cursor:pointer}
.mgc-product-card__gallery-bars button.is-active{background:#e20a23}
.mgc-product-card__thumbs{display:flex;gap:5px;overflow-x:auto;padding:5px 0 1px;scrollbar-width:none}
.mgc-product-card__thumbs::-webkit-scrollbar{display:none}
.mgc-product-card__thumb{flex:0 0 44px;width:44px;height:44px;border:1px solid #e1e3e6;border-radius:5px;background:#f7f7f7;padding:0;overflow:hidden;cursor:pointer}
.mgc-product-card__thumb img{width:100%;height:100%;object-fit:cover;display:block}
.mgc-product-card__thumb.is-active{border:2px solid #e20a23}
.mgc-product-card__body{display:flex;flex-direction:column;flex:1;padding:8px 10px 10px}
.mgc-product-card__article{font-size:9px;line-height:1.15;color:#8b919b;text-transform:uppercase;letter-spacing:.025em;margin-bottom:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mgc-product-card__title{font-family:Arial,Helvetica,sans-serif;font-size:13px;line-height:1.22;font-weight:700;color:#17191d!important;min-height:32px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin-bottom:7px}
.mgc-product-card__stock{font-size:10px;line-height:1.2;font-weight:700;margin-bottom:7px;padding-left:14px;position:relative}
.mgc-product-card__stock:before{content:"";position:absolute;left:0;top:3px;width:8px;height:8px;border-radius:50%;background:currentColor}
.mgc-product-card__stock.is-available{color:#1f963d}.mgc-product-card__stock.is-unavailable{color:#9b3c3c}
.mgc-product-card__price-row{display:flex;align-items:flex-end;justify-content:space-between;gap:8px;min-height:36px;margin-bottom:7px}
.mgc-product-card__price{font-size:23px;line-height:1;font-weight:800;color:#111318;white-space:nowrap}
.mgc-product-card__price small{font-size:12px;font-weight:500;color:#777d86}
.mgc-product-card__price-extra{display:flex;align-items:center;gap:6px;padding-bottom:2px}
.mgc-product-card__old-price{font-size:11px;color:#92969d;text-decoration:line-through}.mgc-product-card__discount-inline{padding:3px 6px;border-radius:4px;background:#ffe8eb;color:#e20a23;font-size:10px;font-weight:700}
.mgc-product-card__package{display:flex;align-items:center;gap:6px;min-height:29px;font-size:10px;line-height:1.15;color:#727985;background:#f5f6f7;border-radius:5px;padding:5px 8px;margin-bottom:7px}
.mgc-product-card__package-icon{font-size:18px;color:#777f89}
.mgc-product-card__calc{margin-top:auto;border-top:1px solid #eceef0;padding-top:7px}
.mgc-product-card__units{display:flex;gap:6px;margin-bottom:6px}
.mgc-product-card__units button{height:30px;min-width:54px;padding:0 10px;border:1px solid #dedfe2;border-radius:5px;background:#f5f6f7;color:#434850;font-size:10px;font-weight:700;cursor:pointer}
.mgc-product-card__units button.is-active{background:#222;color:#fff;border-color:#222}
.mgc-product-card__qty{display:grid;grid-template-columns:36px minmax(0,1fr) 36px;height:36px;margin-bottom:5px}
.mgc-product-card__qty button{border:1px solid #dddfe2;background:#fff;color:#222;font-size:20px;line-height:1;cursor:pointer}.mgc-product-card__qty button:first-child{border-radius:5px 0 0 5px}.mgc-product-card__qty button:last-child{border-radius:0 5px 5px 0}
.mgc-product-card__qty input{min-width:0;width:100%;border:1px solid #dddfe2;border-left:0;border-right:0!important;border-radius:0!important;background:#fff!important;text-align:center;padding:0 4px!important;box-shadow:none!important;outline:0!important;font-size:12px!important;font-weight:700;color:#222!important;-moz-appearance:textfield}.mgc-product-card__qty input::-webkit-inner-spin-button,.mgc-product-card__qty input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.mgc-product-card__basket-note{font-size:9px;line-height:1.2;color:#7c828c;margin:0 0 5px}
.mgc-product-card__summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:38px;padding:0 9px;border-radius:6px;background:#f5f6f7;margin-bottom:7px;color:#7b818a;font-size:11px}.mgc-product-card__summary strong{font-size:16px;line-height:1;color:#17191d;white-space:nowrap}
.mgc-product-card__actions{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(120px,.88fr);gap:8px;align-items:center}
.mgc-product-card__buy{height:40px;border:0;border-radius:5px;background:#e20a23;color:#fff;font-size:13px;font-weight:700;cursor:pointer;transition:filter .15s ease,transform .15s ease}.mgc-product-card__buy:hover{filter:brightness(.94)}.mgc-product-card__buy:active{transform:translateY(1px)}.mgc-product-card__buy[disabled]{background:#d9d9d9;color:#8c8c8c;cursor:not-allowed;filter:none}.mgc-product-card__buy.is-loading{opacity:.65;pointer-events:none}.mgc-product-card__buy.is-added{background:#238342}
.mgc-product-card__detail{height:40px;display:flex;align-items:center;justify-content:center;padding:0 10px;border:1px solid #dfe1e4;border-radius:5px;background:#fff;color:#272a2f!important;font-size:10px;font-weight:700;white-space:nowrap}.mgc-product-card__detail:hover{border-color:#bfc2c7;background:#fafafa}
.mgc-product-card__message{grid-column:1/-1;font-size:9px;line-height:1.2;color:#9b3c3c;margin-top:2px}

.mgc-cart-fly-clone{position:fixed;z-index:100000;object-fit:cover;border-radius:6px;pointer-events:none;transition:left .72s cubic-bezier(.2,.75,.25,1),top .72s cubic-bezier(.2,.75,.25,1),width .72s ease,height .72s ease,opacity .72s ease,transform .72s ease;box-shadow:0 8px 24px rgba(0,0,0,.2)}

/* One active series is shown in mixed view; the series themselves live in the horizontal rail above. */
.mgc-mixed-list{display:block}
.mgc-mixed-section{border:1px solid #e7e3df;border-radius:7px;background:#fff;overflow:hidden;box-shadow:0 1px 2px rgba(0,0,0,.025)}
.mgc-mixed-section__head{grid-template-columns:150px minmax(0,1fr) auto;padding:12px}
.mgc-mixed-section__image{width:150px;height:96px}
.mgc-mixed-section__info h3{font-size:27px}
.mgc-mixed-section__all{height:35px;padding:0 16px;font-size:10px}

@media(max-width:1150px){
  .mgc-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mgc-product-card__stage{aspect-ratio:3/4}
  .mgc-series-carousel__rail{grid-auto-columns:calc((100% - 15px)/4)}
}
@media(max-width:760px){
  .mgc-product-grid{grid-template-columns:1fr}
  .mgc-product-grid--mixed{padding:10px}
  .mgc-product-card__stage{aspect-ratio:3/4}
  .mgc-series-carousel__rail{grid-auto-columns:calc((100% - 5px)/2)}
  .mgc-mixed-series-card{width:158px;min-width:158px;height:88px;grid-template-columns:72px minmax(0,1fr)}
  .mgc-mixed-series-card img{width:72px}
  .mgc-mixed-series-carousel__arrow{top:27px}
  .mgc-mixed-section__head{grid-template-columns:92px 1fr;gap:10px}
  .mgc-mixed-section__image{width:92px;height:72px}
  .mgc-mixed-section__all{grid-column:1/-1;justify-self:start}
}

.mgc-collection__unassigned-note{display:flex;align-items:center;gap:10px;min-height:76px;margin-top:auto;padding:12px 14px;border:1px dashed #e1c9c9;border-radius:4px;background:#fff7f7;color:#6d5555}.mgc-collection__unassigned-note strong{font-size:18px;color:#e20a23}.mgc-collection__unassigned-note span{font-size:11px;line-height:1.3}.mgc-mixed-section--unassigned{margin-top:10px}.mgc-mixed-section__head--unassigned{grid-template-columns:1fr}

@media (min-width:1151px) and (max-width:1380px){.mgc-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}


/* 1.7.0 — compact grouped products */
.mgc-product-type-nav{display:flex;gap:7px;overflow-x:auto;padding:2px 0 10px;margin-bottom:2px;scrollbar-width:none}.mgc-product-type-nav::-webkit-scrollbar{display:none}.mgc-product-type-nav button{flex:0 0 auto;height:34px;padding:0 12px;border:1px solid #e2e3e6;border-radius:17px;background:#fff;color:#3d4249;font-size:10px;font-weight:600;cursor:pointer}.mgc-product-type-nav button:hover{border-color:#e20a23;color:#e20a23}.mgc-product-type-nav__all{background:#f6f6f6!important}.mgc-product-type-nav strong{margin-left:4px;color:#777;font-weight:700}
.mgc-product-groups{display:flex;flex-direction:column;gap:10px}.mgc-product-type-group{border:1px solid #e5e2df;border-radius:8px;background:#fff;overflow:hidden;scroll-margin-top:90px}.mgc-product-type-group__head{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;min-height:50px;padding:9px 13px;border:0;background:#f8f6f3;text-align:left;cursor:pointer}.mgc-product-type-group__head:hover{background:#f4f1ed}.mgc-product-type-group__title{font-family:Georgia,'Times New Roman',serif;font-size:21px;line-height:1.05;color:#191919}.mgc-product-type-group__count{font-size:10px;color:#777}.mgc-product-type-group__toggle{min-width:76px;text-align:right;font-size:10px;font-weight:700;color:#e20a23}.mgc-product-type-group__body{padding:10px}.mgc-product-type-group__body[hidden]{display:none!important}

/* 1.7.0 — in-page product lightbox */
html.mgc-lightbox-open,html.mgc-lightbox-open body{overflow:hidden!important}.mgc-lightbox[hidden]{display:none!important}.mgc-lightbox{position:fixed;inset:0;z-index:100500;display:flex;align-items:center;justify-content:center;padding:24px}.mgc-lightbox__backdrop{position:absolute;inset:0;background:rgba(16,18,22,.78);backdrop-filter:blur(2px)}.mgc-lightbox__dialog{position:relative;z-index:2;width:min(1120px,calc(100vw - 48px));max-height:calc(100vh - 48px);display:grid;grid-template-rows:minmax(0,1fr) auto;gap:12px;padding:14px;border-radius:12px;background:#fff;box-shadow:0 24px 70px rgba(0,0,0,.32)}.mgc-lightbox__close{position:absolute;right:18px;top:18px;z-index:6;width:42px;height:42px;border:0;border-radius:50%;background:rgba(255,255,255,.96);box-shadow:0 2px 12px rgba(0,0,0,.12);font:400 28px/1 Arial,sans-serif;color:#222;cursor:pointer}.mgc-lightbox__stage{position:relative;min-height:0;height:min(72vh,760px);display:flex;align-items:center;justify-content:center;border-radius:9px;overflow:hidden;background:#f4f4f2}.mgc-lightbox__stage img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}.mgc-lightbox__arrow{position:absolute;top:50%;z-index:5;width:48px;height:48px;margin-top:-24px;border:0;border-radius:50%;background:rgba(255,255,255,.96);box-shadow:0 2px 12px rgba(0,0,0,.14);font:400 32px/1 Arial,sans-serif;color:#222;cursor:pointer}.mgc-lightbox__arrow--prev{left:18px}.mgc-lightbox__arrow--next{right:18px}.mgc-lightbox__arrow[hidden]{display:none}.mgc-lightbox__count{position:absolute;right:16px;bottom:14px;padding:6px 9px;border-radius:5px;background:rgba(20,20,20,.72);color:#fff;font-size:12px}.mgc-lightbox__thumbs{display:flex;gap:8px;overflow-x:auto;justify-content:flex-start;padding:2px;scrollbar-width:thin}.mgc-lightbox__thumb{flex:0 0 78px;width:78px;height:64px;padding:0;border:2px solid transparent;border-radius:6px;overflow:hidden;background:#f3f3f3;cursor:pointer}.mgc-lightbox__thumb img{width:100%;height:100%;object-fit:cover;display:block}.mgc-lightbox__thumb.is-active{border-color:#e20a23}
@media(max-width:760px){.mgc-product-type-group__head{grid-template-columns:minmax(0,1fr) auto;gap:8px}.mgc-product-type-group__count{grid-row:2;grid-column:1}.mgc-product-type-group__toggle{grid-row:1/3;grid-column:2}.mgc-product-type-group__body{padding:8px}.mgc-lightbox{padding:10px}.mgc-lightbox__dialog{width:calc(100vw - 20px);max-height:calc(100vh - 20px);padding:9px;gap:8px}.mgc-lightbox__stage{height:72vh}.mgc-lightbox__close{right:12px;top:12px;width:38px;height:38px}.mgc-lightbox__arrow{width:40px;height:40px;margin-top:-20px}.mgc-lightbox__arrow--prev{left:8px}.mgc-lightbox__arrow--next{right:8px}.mgc-lightbox__thumb{flex-basis:62px;width:62px;height:52px}}

/* 1.8.0 — AJAX tabs, incremental feeds and compact topmost lightbox */
.mgc-page.is-ajax-loading .mgc-main{opacity:.55;pointer-events:none;transition:opacity .12s ease}
.mgc-main{transition:opacity .12s ease}
.mgc-series-mixed-list{display:flex;flex-direction:column;gap:8px}
/* 1.8.31: only «Серии + товары» gets taller rows and larger preview cards. */
.mgc-series-mixed-row{height:300px}
.mgc-series-mixed-row__body{padding-right:12px;padding-bottom:11px}
.mgc-series-preview-carousel{position:relative;margin-top:auto;min-width:0}
.mgc-series-mixed-row__products{overflow-x:auto;overflow-y:hidden;height:128px;min-height:128px;scroll-behavior:smooth;scroll-snap-type:x proximity;scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;cursor:grab;overscroll-behavior-x:contain}
.mgc-series-mixed-row__products::-webkit-scrollbar{display:none}
.mgc-series-mixed-row__products-rail{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 21px)/4);gap:7px;min-width:0}
.mgc-series-mixed-row__products-rail>.mgc-series-card{scroll-snap-align:start}
.mgc-series-preview-carousel__arrow--prev{left:-10px;top:44px}
.mgc-series-preview-carousel__arrow--next{right:-10px;top:44px}
.mgc-series-mixed-row__products .mgc-series-card{min-width:0;position:relative;z-index:1;pointer-events:auto}
.mgc-series-mixed-row__products .mgc-series-card__img{height:78px;flex:0 0 78px}
.mgc-series-mixed-row__products .mgc-series-card__img picture{display:flex;width:100%;height:100%;align-items:center;justify-content:center}
.mgc-series-mixed-row__products .mgc-series-card__img img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain}
.mgc-series-mixed-row__products .mgc-series-card__label{height:49px;min-height:49px;flex:0 0 49px;padding:5px 8px 4px;font-size:10px;line-height:1.3;-webkit-line-clamp:3;white-space:normal;word-break:break-word}
.mgc-series-mixed-row__products .mgc-series-card:hover{border-color:#d0d0d0;box-shadow:0 2px 7px rgba(0,0,0,.08)}
.mgc-lazy-sentinel{min-height:54px;display:flex;align-items:center;justify-content:center;margin:10px 0 2px;border:1px dashed #e0e2e5;border-radius:8px;background:#fafafa;color:#777d86;font-size:11px}
.mgc-lazy-sentinel span:before{content:"";display:inline-block;width:14px;height:14px;margin-right:8px;vertical-align:-3px;border:2px solid #d2d5da;border-top-color:#e20a23;border-radius:50%;animation:mgc-spin .8s linear infinite}
.mgc-lazy-sentinel.has-error{color:#9b3c3c;background:#fff8f8}.mgc-lazy-sentinel.has-error span:before{display:none}
@keyframes mgc-spin{to{transform:rotate(360deg)}}

/* Popup is intentionally smaller than 1.7.0 and is moved to document.body by JS so no header stacking context can cover it. */
.mgc-lightbox{z-index:2147483000!important;align-items:flex-start!important;justify-content:center!important;padding:74px 18px 18px!important}
.mgc-lightbox__backdrop{z-index:0!important}
.mgc-lightbox__dialog{z-index:2!important;width:min(860px,calc(100vw - 36px))!important;max-height:calc(100vh - 92px)!important;grid-template-rows:minmax(0,1fr) auto!important;gap:9px!important;padding:11px!important;border-radius:10px!important}
.mgc-lightbox__stage{height:min(58vh,560px)!important;min-height:260px!important}
.mgc-lightbox__close{right:10px!important;top:10px!important;z-index:12!important;width:40px!important;height:40px!important;background:#fff!important;box-shadow:0 2px 16px rgba(0,0,0,.22)!important}
.mgc-lightbox__thumbs{max-height:72px!important;gap:6px!important}
.mgc-lightbox__thumb{flex-basis:68px!important;width:68px!important;height:56px!important}

@media(max-width:900px){
  .mgc-series-mixed-row{height:auto;grid-template-columns:38% minmax(0,1fr)}
  .mgc-series-mixed-row__products{height:148px;min-height:148px}
  .mgc-series-mixed-row__products-rail{grid-auto-columns:44%;gap:7px}
  .mgc-series-mixed-row__products .mgc-series-card__img{height:91px;flex-basis:91px}
  .mgc-series-mixed-row__products .mgc-series-card__label{height:56px;min-height:56px;flex-basis:56px;-webkit-line-clamp:3}
  .mgc-lightbox{padding:58px 10px 10px!important}
  .mgc-lightbox__dialog{width:calc(100vw - 20px)!important;max-height:calc(100vh - 68px)!important}
  .mgc-lightbox__stage{height:58vh!important;min-height:220px!important}
}


/* MGPLITKA 1.8.2 — centered product info + full-width equal unit buttons. */
.mgc-product-card__article,
.mgc-product-card__title,
.mgc-product-card__stock,
.mgc-product-card__price-row,
.mgc-product-card__package{
  text-align:center;
}
.mgc-product-card__article{align-self:stretch}
.mgc-product-card__title{align-self:stretch}
.mgc-product-card__stock{
  align-self:center;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding-left:14px;
}
.mgc-product-card__stock:before{
  left:0;
  top:50%;
  transform:translateY(-50%);
}
.mgc-product-card__price-row{
  justify-content:center;
  flex-wrap:wrap;
}
.mgc-product-card__price-extra{justify-content:center}
.mgc-product-card__package{
  justify-content:center;
  width:100%;
}
.mgc-product-card__units{
  display:flex;
  width:100%;
  gap:7px;
}
.mgc-product-card__units button{
  flex:1 1 0;
  min-width:0;
  width:auto;
  padding-left:4px;
  padding-right:4px;
}
.mgc-product-card__summary strong{
  color:#e20a23;
}
.mgc-product-card__request{
  background:#e20a23;
  color:#fff;
}
.mgc-product-card__request:hover{
  filter:brightness(.94);
}


/* MGPLITKA 1.8.3 — "Товар под заказ" popup styled to match the site.
   This stylesheet is only loaded by the custom catalog page, so native form logic stays intact. */
body .popup{
  border-radius:18px!important;
  overflow:hidden!important;
  background:#fff!important;
  box-shadow:0 28px 90px rgba(0,0,0,.28)!important;
}
body .popup .form{
  background:#fff!important;
  color:#202226!important;
}
body .popup .form .form_head{
  position:relative!important;
  padding:38px 72px 24px 38px!important;
  border-bottom:0!important;
  background:#fff!important;
}
body .popup .form .form_head:after{
  content:""!important;
  display:block!important;
  width:118px!important;
  height:4px!important;
  margin-top:24px!important;
  border-radius:4px!important;
  background:#e20a23!important;
}
body .popup .form .form_head h2,
body .popup .form .form_head h3,
body .popup .form .form_head h4{
  margin:0!important;
  color:#17191d!important;
  font-family:Arial,Helvetica,sans-serif!important;
  font-size:38px!important;
  line-height:1.05!important;
  font-weight:800!important;
  letter-spacing:-.02em!important;
}
body .popup .form .form_desc{
  margin-top:12px!important;
  color:#747a83!important;
  font-size:14px!important;
  line-height:1.45!important;
}
body .popup .form .form_body{
  margin:0!important;
  padding:8px 38px 12px!important;
  background:#fff!important;
}
body .popup .form .form_footer{
  display:block!important;
  padding:8px 38px 34px!important;
  background:#fff!important;
}
body .popup .form .form_result{
  padding-left:38px!important;
  padding-right:38px!important;
}
body .popup .form label,
body .popup .form .form-control label{
  color:#5c6169!important;
  font-size:15px!important;
  line-height:1.3!important;
  font-weight:500!important;
}
body .popup .form .form-group,
body .popup .form .row{
  margin-bottom:18px!important;
}
body .popup .form input[type="text"],
body .popup .form input[type="email"],
body .popup .form input[type="tel"],
body .popup .form input[type="password"],
body .popup .form select,
body .popup .form textarea,
body .popup .form .form-control:not(.files){
  border:1px solid #d8dadd!important;
  border-radius:7px!important;
  background:#fff!important;
  color:#202226!important;
  box-shadow:none!important;
  font-size:16px!important;
  outline:0!important;
  transition:border-color .15s ease,box-shadow .15s ease!important;
}
body .popup .form input[type="text"],
body .popup .form input[type="email"],
body .popup .form input[type="tel"],
body .popup .form input[type="password"],
body .popup .form select{
  min-height:50px!important;
  padding:0 16px!important;
}
body .popup .form textarea{
  min-height:170px!important;
  padding:14px 16px!important;
  resize:vertical!important;
}
body .popup .form input:focus,
body .popup .form select:focus,
body .popup .form textarea:focus{
  border-color:#e20a23!important;
  box-shadow:0 0 0 3px rgba(226,10,35,.08)!important;
}
body .popup .form a{
  color:#e20a23!important;
  text-decoration:none!important;
}
body .popup .form a:hover{
  color:#c7081e!important;
  text-decoration:underline!important;
}
body .popup .form .star,
body .popup .form .required,
body .popup .form label .required,
body .popup .form label .star{
  color:#e20a23!important;
}
body .popup .form .form_footer .btn,
body .popup .form .form_footer input[type="submit"],
body .popup .form .form_footer button[type="submit"]{
  min-width:190px!important;
  min-height:50px!important;
  padding:0 28px!important;
  border:0!important;
  border-radius:7px!important;
  background:#e20a23!important;
  color:#fff!important;
  box-shadow:none!important;
  font-size:17px!important;
  line-height:50px!important;
  font-weight:700!important;
  text-shadow:none!important;
  cursor:pointer!important;
  transition:filter .15s ease,transform .15s ease!important;
}
body .popup .form .form_footer .btn:hover,
body .popup .form .form_footer input[type="submit"]:hover,
body .popup .form .form_footer button[type="submit"]:hover{
  filter:brightness(.93)!important;
}
body .popup .form .form_footer .btn:active,
body .popup .form .form_footer input[type="submit"]:active,
body .popup .form .form_footer button[type="submit"]:active{
  transform:translateY(1px)!important;
}
/* Native Aspro close variants. */
body .popup .jqmClose,
body .popup .close,
body .popup .popup_close,
body .popup .close_btn{
  top:18px!important;
  right:18px!important;
  width:42px!important;
  height:42px!important;
  border-radius:50%!important;
  color:#72777e!important;
  opacity:1!important;
  transition:background .15s ease,color .15s ease!important;
}
body .popup .jqmClose:hover,
body .popup .close:hover,
body .popup .popup_close:hover,
body .popup .close_btn:hover{
  background:#f5f6f7!important;
  color:#e20a23!important;
}
/* Checkbox / consent: keep native mechanics but align visual accent. */
body .popup .form input[type="checkbox"]:checked + label:before,
body .popup .form label.checked:before{
  border-color:#e20a23!important;
}
body .popup .form .licence_block,
body .popup .form .license_block,
body .popup .form .consent-block{
  color:#4f545b!important;
  font-size:14px!important;
}
@media(max-width:760px){
  body .popup{border-radius:14px!important}
  body .popup .form .form_head{padding:28px 56px 18px 22px!important}
  body .popup .form .form_head h2,
  body .popup .form .form_head h3,
  body .popup .form .form_head h4{font-size:30px!important}
  body .popup .form .form_head:after{width:90px!important;margin-top:18px!important}
  body .popup .form .form_body{padding:6px 22px 10px!important}
  body .popup .form .form_footer{padding:6px 22px 24px!important}
  body .popup .form .form_result{padding-left:22px!important;padding-right:22px!important}
  body .popup .form textarea{min-height:140px!important}
  body .popup .form .form_footer .btn,
  body .popup .form .form_footer input[type="submit"],
  body .popup .form .form_footer button[type="submit"]{width:100%!important;min-width:0!important}
}

/* 1.8.5 — real category facets + deliberate 30-item lazy loading */
.mgc-workspace.is-ajax-loading,.mgc-page.is-ajax-loading .mgc-workspace{opacity:.62;pointer-events:none;transition:opacity .12s ease}
.mgc-filter-head{width:100%;padding:0;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer;font-family:inherit}
.mgc-filter-body[hidden]{display:none!important}
.mgc-filter-empty{padding:8px 0;color:#8a9099;font-size:10px;line-height:1.35}
.mgc-filters .mgc-filter-section.is-open .mgc-filter-head{margin-bottom:8px}
.mgc-filters .mgc-filter-section:not(.is-open) .mgc-filter-head{margin-bottom:0}
.mgc-filters .mgc-check{transition:opacity .12s ease}
.mgc-lazy-sentinel{scroll-margin-bottom:140px}

/* 1.8.20: plumbing/wallpaper use direct Bitrix child sections as real series. */
.mgc-tree-group--flat{padding-bottom:0;margin-bottom:0;border-bottom:0}
.mgc-tree-group--flat .mgc-tree-children--flat{display:block;padding:0}
.mgc-tree-group--flat .mgc-tree-children--flat a{padding:7px 8px;color:#4f5f75;font-weight:500}
.mgc-tree-group--flat .mgc-tree-children--flat a:hover{background:#f5f6f7;color:#1f2937}
.mgc-tree-group--flat .mgc-tree-children--flat a.is-current{background:#fee7e5;color:#e20a23}
.mgc-tree-empty{padding:8px;color:#8a9099;font-size:12px}


/* 1.8.22: unified “Серии + товары” presentation; non-Tile data comes from the structure iblock.
   Plumbing and Wallpaper now reuse the same large series row + five product previews as Tile. */
.mgc-series-mixed-list[data-mgc-lazy-list="series"]{align-items:stretch}


/* 1.8.23: selected-filter chips. Color labels are localized server-side; values/URLs stay untouched. */
.mgc-selected-filters{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-height:34px;margin:0 0 10px;padding:4px 0 10px;border-bottom:1px solid #ececec}
.mgc-selected-filters__label{margin-right:2px;color:#6c727c;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.mgc-filter-chip{display:inline-flex;align-items:center;gap:4px;max-width:100%;min-height:27px;padding:4px 8px;border:1px solid #e1e3e6;border-radius:999px;background:#f7f7f8;color:#2b2e33!important;font-size:10px;line-height:1.2;text-decoration:none!important;transition:border-color .15s ease,background .15s ease,color .15s ease}
.mgc-filter-chip:hover{border-color:#e20a23;background:#fff5f6;color:#c70a20!important}
.mgc-filter-chip__facet{color:#7a8089;font-weight:700}
.mgc-filter-chip b{display:inline-flex;align-items:center;justify-content:center;width:15px;height:15px;margin-left:2px;border-radius:50%;font:700 13px/1 Arial,sans-serif;color:#858b94}
.mgc-filter-chip:hover b{background:#e20a23;color:#fff}
.mgc-selected-filters__reset{margin-left:3px;color:#e20a23!important;font-size:10px;font-weight:700;text-decoration:none!important;white-space:nowrap}
.mgc-selected-filters__reset:hover{text-decoration:underline!important}
@media(max-width:760px){.mgc-selected-filters{padding-bottom:8px}.mgc-filter-chip{font-size:10px}.mgc-selected-filters__label{width:100%}}

@media(max-width:900px){.mgc-category-card__copy{left:20px;right:58px;bottom:14px}.mgc-category-card__copy strong{font-size:27px}.mgc-category-card__go{right:12px;bottom:14px}}
@media(max-width:620px){.mgc-category-card__copy strong{font-size:25px}.mgc-category-card__copy>span{font-size:11px}.mgc-category-card__go{width:32px;height:32px}}


/* 1.8.34 — align /catalog/ closer to the header without moving the header itself.
   Desktop only: tablet/mobile keep their existing safe offsets. */
@media (min-width:1001px){
  .mgc-bleed{margin-top:-66px!important}
}

/* MGPLITKA_HERO_PLUS_20_1849: +20px к высоте верхнего баннера каталога на desktop. */
@media (min-width:1001px){
  .mgc-hero{
    aspect-ratio:auto!important;
    height:0!important;
    min-height:0!important;
    padding-top:calc(25.4901960784% + 20px)!important;
  }
}

/* MGPLITKA_RESTORE_PRE1850_CLEAN_CATEGORIES_1851: clean category assets + pre-1.8.50 hero geometry */

/* MGPLITKA_CATALOG_HEADER_CLEARANCE_1852_BEGIN */
@media (min-width:1001px){
  .mgc-hero__panel{top:74px!important;height:calc(100% - 86px)!important;}
  .mgc-hero__crumbs{display:block!important;visibility:visible!important;opacity:1!important;margin-bottom:10px!important;}
}
@media (min-width:769px) and (max-width:1000px){
  .mgc-hero__panel{top:54px!important;bottom:14px!important;height:auto!important;}
}
/* MGPLITKA_CATALOG_HEADER_CLEARANCE_1852_END */
