/* ========================================================================
   MUTTI LAB v9.4.87 — Stage 59
   Archive card parity + clean catalogue header + wide PVZ/Yandex map shell.
   ======================================================================== */

/* 1. Catalogue mega: the red eyebrow "Категория" is intentionally retired. */
.mutti-catalog-mega-v9486__eyebrow{display:none!important}
.mutti-catalog-mega-v9486__view-head>div>h2{margin-top:0!important}

/* 2. WooCommerce archive cards = the same visual language as Home. */
body.tax-product_cat .mutti-category-product-grid,
body.post-type-archive-product .mutti-category-product-grid,
body.woocommerce-shop .mutti-category-product-grid{
  display:grid!important;
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  grid-auto-flow:row dense!important;
  gap:20px 12px!important;
  align-items:stretch!important;
}
body.tax-product_cat .mutti-category-product-grid>.mutti-market-card,
body.post-type-archive-product .mutti-category-product-grid>.mutti-market-card,
body.woocommerce-shop .mutti-category-product-grid>.mutti-market-card{
  min-height:0!important;height:100%!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
}
body.tax-product_cat .mutti-category-product-grid .mutti-market-image,
body.post-type-archive-product .mutti-category-product-grid .mutti-market-image,
body.woocommerce-shop .mutti-category-product-grid .mutti-market-image{
  aspect-ratio:3/4!important;border-radius:15px!important;
}
body.tax-product_cat .mutti-category-product-grid .mutti-market-copy,
body.post-type-archive-product .mutti-category-product-grid .mutti-market-copy,
body.woocommerce-shop .mutti-category-product-grid .mutti-market-copy{
  padding:6px 1px 0!important;gap:0!important;
}
body.tax-product_cat .mutti-category-product-grid .mutti-market-price,
body.tax-product_cat .mutti-category-product-grid .mutti-market-price .amount,
body.tax-product_cat .mutti-category-product-grid .mutti-market-price .woocommerce-Price-amount,
body.post-type-archive-product .mutti-category-product-grid .mutti-market-price,
body.post-type-archive-product .mutti-category-product-grid .mutti-market-price .amount,
body.post-type-archive-product .mutti-category-product-grid .mutti-market-price .woocommerce-Price-amount,
body.woocommerce-shop .mutti-category-product-grid .mutti-market-price,
body.woocommerce-shop .mutti-category-product-grid .mutti-market-price .amount,
body.woocommerce-shop .mutti-category-product-grid .mutti-market-price .woocommerce-Price-amount{
  font-size:14.4px!important;line-height:1.05!important;
}
body.tax-product_cat .mutti-category-product-grid .mutti-market-copy h3,
body.post-type-archive-product .mutti-category-product-grid .mutti-market-copy h3,
body.woocommerce-shop .mutti-category-product-grid .mutti-market-copy h3{
  min-height:2.64em!important;max-height:2.64em!important;margin:0 0 5px!important;
  font-size:11.2px!important;line-height:1.32!important;font-weight:500!important;letter-spacing:0!important;
}
body.tax-product_cat .mutti-category-product-grid .mutti-market-action--cart-v8524,
body.post-type-archive-product .mutti-category-product-grid .mutti-market-action--cart-v8524,
body.woocommerce-shop .mutti-category-product-grid .mutti-market-action--cart-v8524{
  width:100%!important;height:32px!important;min-height:32px!important;padding:0 9px!important;
  border-radius:10px!important;font-size:9px!important;font-weight:600!important;
}
@media(max-width:1180px) and (min-width:921px){
  body.tax-product_cat .mutti-category-product-grid,body.post-type-archive-product .mutti-category-product-grid,body.woocommerce-shop .mutti-category-product-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:20px 11px!important}
}
@media(max-width:920px) and (min-width:701px){
  body.tax-product_cat .mutti-category-product-grid,body.post-type-archive-product .mutti-category-product-grid,body.woocommerce-shop .mutti-category-product-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:19px 10px!important}
}
@media(max-width:700px){
  body.tax-product_cat .mutti-category-product-grid,body.post-type-archive-product .mutti-category-product-grid,body.woocommerce-shop .mutti-category-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px 9px!important}
  body.tax-product_cat .mutti-category-product-grid .mutti-market-copy h3,body.post-type-archive-product .mutti-category-product-grid .mutti-market-copy h3,body.woocommerce-shop .mutti-category-product-grid .mutti-market-copy h3{font-size:10.8px!important}
  body.tax-product_cat .mutti-category-product-grid .mutti-market-action--cart-v8524,body.post-type-archive-product .mutti-category-product-grid .mutti-market-action--cart-v8524,body.woocommerce-shop .mutti-category-product-grid .mutti-market-action--cart-v8524{height:34px!important;min-height:34px!important;font-size:9.2px!important}
}

/* 3. PVZ selector: promotional red service labels do not belong in the map. */
#mutti-yd-modal .mutti-yd-free-note,.mutti-yd-modal .mutti-yd-free-note,[data-mutti-yd-modal] .mutti-yd-free-note,
#mutti-yd-modal .mutti-yd-kicker,.mutti-yd-modal .mutti-yd-kicker,[data-mutti-yd-modal] .mutti-yd-kicker{
  display:none!important;visibility:hidden!important;width:0!important;height:0!important;margin:0!important;padding:0!important;overflow:hidden!important;
}

/* 4. Sima-like wide map presentation. Classes are attached at runtime to the
      existing selector, so delivery/PVZ business logic remains untouched. */
.mutti-stage59-pvz-modal{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.mutti-stage59-pvz-modal .mutti-stage59-pvz-dialog{
  width:min(1480px,calc(100vw - 36px))!important;max-width:none!important;
  height:min(860px,calc(100vh - 44px))!important;max-height:calc(100vh - 32px)!important;
  min-height:620px!important;margin:auto!important;padding:0!important;overflow:hidden!important;
  border-radius:22px!important;background:#fff!important;box-shadow:0 28px 90px rgba(15,19,28,.24)!important;
  transform:none!important;transition:opacity .14s ease!important;
}
.mutti-stage59-pvz-modal .mutti-stage59-pvz-shell{
  display:grid!important;grid-template-columns:minmax(280px,340px) minmax(0,1fr)!important;
  width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;overflow:hidden!important;
}
.mutti-stage59-pvz-modal .mutti-stage59-pvz-sidebar{
  position:relative!important;z-index:3!important;width:100%!important;min-width:0!important;max-width:none!important;
  height:100%!important;min-height:0!important;overflow:auto!important;overscroll-behavior:contain!important;
  padding:18px!important;border-right:1px solid #e8eaee!important;background:#fff!important;
}
.mutti-stage59-pvz-modal .mutti-stage59-pvz-sidebar input[type="search"],
.mutti-stage59-pvz-modal .mutti-stage59-pvz-sidebar input[type="text"]{
  width:100%!important;min-height:46px!important;border:1px solid #e1e4e9!important;border-radius:12px!important;
  background:#f8f9fb!important;color:#22252b!important;font-size:13px!important;box-shadow:none!important;outline:0!important;
}
.mutti-stage59-pvz-modal .mutti-stage59-pvz-map-host{
  position:relative!important;z-index:1!important;display:block!important;width:100%!important;max-width:none!important;
  height:100%!important;min-height:560px!important;aspect-ratio:auto!important;overflow:hidden!important;
  border:0!important;border-radius:0!important;background:#eef1f4!important;contain:layout paint!important;
}
.mutti-stage59-pvz-modal .mutti-stage59-pvz-map-host>.ymaps-2-1-79-map,
.mutti-stage59-pvz-modal .mutti-stage59-pvz-map-host>[class*="ymaps3"],
.mutti-stage59-pvz-modal .mutti-stage59-pvz-map-host>iframe,
.mutti-stage59-pvz-modal .mutti-stage59-pvz-map-host>canvas{
  width:100%!important;max-width:none!important;height:100%!important;min-height:100%!important;aspect-ratio:auto!important;border:0!important;
}
.mutti-stage59-pvz-modal .ymaps-2-1-79-map,
.mutti-stage59-pvz-modal [class*="ymaps3x0--map"]{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important}

@media(max-width:820px){
  .mutti-stage59-pvz-modal .mutti-stage59-pvz-dialog{width:100%!important;height:100dvh!important;min-height:0!important;max-height:none!important;border-radius:0!important}
  .mutti-stage59-pvz-modal .mutti-stage59-pvz-shell{grid-template-columns:1fr!important;grid-template-rows:auto minmax(0,1fr)!important}
  .mutti-stage59-pvz-modal .mutti-stage59-pvz-sidebar{max-height:34vh!important;padding:14px!important;border-right:0!important;border-bottom:1px solid #e8eaee!important}
  .mutti-stage59-pvz-modal .mutti-stage59-pvz-map-host{min-height:55vh!important;height:100%!important}
}
