/* IMV Marble Category. Scoped to the real taxonomy archive, never generic shops/products. */
body:is(.woocommerce-shop,.tax-product_cat,.page-id-59):has(.imv-cat-browser) .site-content{background:white!important}
body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .elementor-location-archive:has(.imv-cat-browser){max-width:1280px;width:100%;margin:auto;background:#fff;min-height:800px}
body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .elementor-location-archive .imv-cat-page-header,
body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .elementor-location-archive .imv-cat-page-hero,
body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .elementor-location-archive .imv-cat-page-listing{margin:0!important;padding:0!important}
body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .elementor-location-archive .imv-cat-page-header>.elementor-container,
body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .elementor-location-archive .imv-cat-page-hero>.elementor-container,
body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .elementor-location-archive .imv-cat-page-listing>.elementor-container{max-width:1280px!important}
body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .elementor-location-archive .elementor-column-gap-default>.elementor-column>.elementor-element-populated{padding:0!important}
body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .elementor-location-archive .elementor-widget{margin-bottom:0!important}
body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .elementor-location-archive .elementor-widget-container{padding:0!important;margin:0!important}
body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .elementor-location-archive,
body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .elementor-location-archive *{box-sizing:border-box}
.imv-cat-page-header,.imv-cat-page-hero,.imv-cat-page-listing{font-family:Arial,Helvetica,sans-serif!important;color:#4a2a20;background:#fff}
.imv-cat-page-header{height:68px!important;min-height:68px!important}
.imv-cat-page-header .imv-brand-header{display:flex;align-items:center;width:100%;height:68px;padding:0 65px 0 82px;background:white;gap:0}
.imv-cat-page-header .imv-brand-logo{flex:0 0 418px;display:flex;align-items:center;max-width:418px;height:66px;text-decoration:none}
.imv-cat-page-header .imv-brand-logo img{display:block;width:418px;height:65px;object-fit:contain;object-position:left center}
.imv-cat-page-header .imv-logo-line{display:block;flex:0 0 1px;height:39px;background:#71902f;margin:0 35px 0 6px}
.imv-cat-page-header .imv-brand-nav{display:flex;align-items:center;justify-content:space-between;gap:18px;flex:1;white-space:nowrap}
.imv-cat-page-header .imv-brand-nav a{font-size:14px!important;font-weight:700!important;color:#3e231a!important;text-decoration:none!important}
.imv-cat-page-header .imv-brand-icons{display:flex;align-items:center;gap:22px;margin-left:38px}
.imv-cat-page-header .imv-brand-icons a,.imv-cat-page-header .imv-brand-icons button{width:25px;height:28px;display:inline-flex;align-items:center;justify-content:center;position:relative;border:none!important;border-radius:0!important;padding:0!important;background:transparent!important;color:#43291e!important}
.imv-cat-page-header .imv-brand-icons svg{width:24px;height:24px;fill:none;stroke:#42271d;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.imv-cat-page-header .imv-brand-icons small{position:absolute;right:-7px;top:-8px;min-width:17px;height:17px;border-radius:50%;background:#617f24;color:white;line-height:17px;font-size:10px;text-align:center;padding:0 2px}
.imv-cat-crumb{height:34px;display:flex;align-items:center;gap:16px;background:#48291e;color:#fff!important;padding:0 61px;clip-path:polygon(0 0,64.5% 0,63.1% 100%,0 100%);font-size:13px;font-weight:700;white-space:nowrap}
.imv-cat-crumb a{color:#fff!important;text-decoration:none!important}
.imv-cat-crumb strong{color:#fff;font-weight:700}
.imv-cat-crumb span{font-size:18px;font-weight:400}
.imv-cat-hero{height:144px;display:flex;align-items:center;position:relative;overflow:hidden;background:linear-gradient(95deg,#fffaf5 0%,#ece8e3 58%,#e8d8cc 100%)}
.imv-cat-hero-copy{position:relative;z-index:2;padding:24px 0 24px 62px;flex:0 0 72%}
.imv-cat-hero h1{margin:0 0 3px!important;font-size:47px!important;line-height:1.08!important;letter-spacing:-1.2px;font-weight:900!important;color:#49271d!important;text-transform:uppercase}
.imv-cat-hero h1 span{color:#65812b!important}
.imv-cat-hero p{font-size:24px!important;margin:0!important;line-height:1.4!important;color:#523124!important}
.imv-cat-hero-wall{position:absolute;right:0;top:0;height:100%;width:43%;background-image:linear-gradient(90deg,#ebe7e3 0%,#eee5da55 19%,transparent 60%),url('/wp-content/uploads/2026/10/2.webp');background-position:center,right center;background-size:cover;clip-path:polygon(24% 0,100% 0,100% 100%,0 100%)}
.imv-cat-browser{padding:0 34px 44px}
.imv-cat-filter-panel{padding:10px 25px 10px;background:#fff}
.imv-cat-filter-row{display:flex;align-items:center;gap:0}
.imv-cat-filter-first{min-height:59px;justify-content:space-between}
.imv-cat-filter-group{display:flex;align-items:center;gap:16px;min-width:0}
.imv-cat-filter-group:first-child{border-right:1px solid #8da15f;padding-right:42px}
.imv-cat-filter-group:last-child{padding-left:45px}
.imv-cat-filter-group strong,.imv-cat-color-group>strong,.imv-cat-sort-panel>label{font-size:16px;font-weight:800;white-space:nowrap;color:#4d291e}
.imv-cat-filter-group small{font-weight:500;font-size:13px}
.imv-cat-pills{display:flex;align-items:center;gap:12px;min-width:0}
.imv-cat-pills button{background:#fff!important;color:#48271e!important;border:1px solid #6b4a40!important;border-radius:9px!important;font:700 15px/1.1 Arial,sans-serif!important;min-width:77px;height:33px;padding:6px 13px!important;white-space:nowrap;box-shadow:none!important}
.imv-cat-pills button.is-active,.imv-cat-all-colors.is-active{color:white!important;border-color:#64811e!important;background:linear-gradient(#728e26,#4e7110)!important}
.imv-cat-filter-second{min-height:67px;gap:30px}
.imv-cat-color-group{display:flex;align-items:center;gap:31px;min-width:0;flex:1;padding-right:28px;border-right:1px solid #8da15f}
.imv-cat-color-options{display:flex;align-items:center;gap:11px;overflow-x:auto;scrollbar-width:thin;max-width:100%}
.imv-cat-swatch,.imv-cat-all-colors{position:relative;display:inline-flex;align-items:center;justify-content:center;width:55px;height:37px;flex:0 0 55px;border-radius:9px!important;border:2px solid transparent!important;padding:0!important;box-shadow:none!important;background:white!important;overflow:hidden}
.imv-cat-all-colors{width:49px;flex-basis:49px;background:#f4f0e8!important;font-weight:700!important;font-size:12px!important;color:#43251c!important;border:1px solid #8b9478!important}
.imv-cat-swatch .imv-swatch-image{display:block;width:100%;height:100%;position:relative;overflow:hidden}
.imv-cat-swatch .imv-swatch-image img{width:175%;max-width:none!important;height:175%;object-fit:cover;object-position:right top;position:absolute;right:0;top:-35%}
.imv-cat-swatch.is-active{border:3px solid #668523!important;box-shadow:0 0 0 2px #fff inset!important}
.imv-cat-sort-panel{display:flex;align-items:center;gap:16px;white-space:nowrap;padding:0 27px 0 4px;border-right:1px solid #8da15f}
.imv-cat-sort-panel select{height:34px;min-width:220px;border:1px solid #ada398!important;border-radius:7px!important;padding:0 12px!important;background:#fff!important;color:#4a3028;font:14px Arial,sans-serif}
.imv-cat-results{white-space:nowrap;font-size:14px;color:#513124}
.imv-cat-results strong{font-size:18px;color:#4e6b10;margin-left:5px}
.imv-cat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:stretch}
.imv-cat-card{border:1px solid #e0d8d2;border-radius:13px;background:#fff;overflow:hidden;min-width:0;min-height:270px;padding:10px 12px 11px;box-shadow:0 1px 2px #00000005;display:flex;flex-direction:column;transition:box-shadow .15s ease}
.imv-cat-card:hover{box-shadow:0 4px 14px #43291c15}
.imv-cat-card[hidden],.imv-cat-empty[hidden],.imv-cat-more[hidden]{display:none!important}
.imv-cat-product-photo{display:block;position:relative;height:148px;width:100%;overflow:hidden;border-radius:7px;text-decoration:none!important}
.imv-cat-product-photo img{display:block;width:100%;height:100%;max-width:none!important;object-fit:contain!important;object-position:center;background:#fff}
.imv-cat-color-name{position:absolute;right:4px;bottom:7px;max-width:56%;padding:6px 8px;border-radius:7px;color:#fff;background:#432519;box-shadow:0 2px 3px #0003;font:700 11px/1.15 Arial,sans-serif;text-align:center;text-transform:uppercase;white-space:normal}
.imv-cat-product-body{display:flex;flex:1;flex-direction:column}
.imv-cat-product-name{color:#1f1411!important;text-decoration:none!important;font-size:14px!important;font-weight:800!important;line-height:1.22!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:34px;margin:3px 0 5px}
.imv-cat-details{display:flex;align-items:center;gap:9px;font-size:12px;color:#221713;white-space:nowrap;margin-bottom:9px}
.imv-cat-details i{width:1px;height:14px;background:#a3b075;display:block}
.imv-cat-buy-row{display:flex;align-items:center;gap:9px;margin-top:auto}
.imv-cat-price{font-size:21px;font-weight:900;color:#4b281d;white-space:nowrap;flex:1}
.imv-cat-price .woocommerce-Price-currencySymbol{font-weight:700}
.imv-cat-add{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;padding:7px 10px!important;min-height:28px;border:0!important;border-radius:8px!important;background:linear-gradient(#73902b,#55760e)!important;color:white!important;font:bold 12px Arial,sans-serif!important;text-decoration:none!important;box-shadow:none!important;line-height:1.1!important}
.imv-cat-add:hover{background:#496c10!important}
.imv-cat-favorite{display:flex;align-items:center;justify-content:center;width:35px;height:30px;flex:0 0 35px;border:1px solid #ded5c8!important;border-radius:8px!important;color:#4e3026!important;font-size:23px!important;background:#fff!important;padding:0!important;box-shadow:none!important}
.imv-cat-favorite[aria-pressed=true]{color:#8e2f27!important}
.imv-cat-unavailable{font-size:11px;color:#8c5145}
.imv-cat-more{display:block;margin:26px auto 0;width:min(455px,100%);height:50px;border:2px solid #678128!important;background:#fff!important;color:#48291d!important;border-radius:14px!important;font:800 21px/1 Arial,sans-serif!important}
.imv-cat-more span{font-size:24px}
.imv-cat-more:hover{background:#eff2e8!important}
.imv-cat-empty{padding:30px;text-align:center;color:#543b30;font-size:17px}

/* Laptop — preserve 4 cards until there is not enough room for real product titles. */
@media(max-width:1280px){
 .imv-cat-page-header .imv-brand-header{padding:0 30px}
 .imv-cat-page-header .imv-brand-logo{flex-basis:290px;max-width:290px}
 .imv-cat-page-header .imv-brand-logo img{width:290px}
 .imv-cat-page-header .imv-brand-nav{gap:12px}
 .imv-cat-page-header .imv-brand-icons{gap:12px;margin-left:15px}
 .imv-cat-filter-first,.imv-cat-filter-second{flex-wrap:wrap;gap:14px}
 .imv-cat-filter-first{padding-bottom:12px}
 .imv-cat-filter-group:first-child{padding-right:15px}
 .imv-cat-filter-group:last-child{padding-left:0}
 .imv-cat-filter-second{padding-bottom:13px}
 .imv-cat-color-group{flex-basis:100%;border-right:0}
 .imv-cat-sort-panel{margin-left:auto}
 .imv-cat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:900px){
 .imv-cat-page-header{height:auto!important;min-height:90px!important}
 .imv-cat-page-header .imv-brand-header{height:auto;min-height:90px;flex-wrap:wrap;justify-content:space-between;padding:4px 22px}
 .imv-cat-page-header .imv-brand-logo{flex:0 0 235px;max-width:235px}
 .imv-cat-page-header .imv-brand-logo img{width:235px}
 .imv-cat-page-header .imv-logo-line{display:none}
 .imv-cat-page-header .imv-brand-icons{margin:0}
 .imv-cat-page-header .imv-brand-nav{order:3;width:100%;flex:0 0 100%;justify-content:center;padding:5px 0 8px}
 .imv-cat-crumb{clip-path:none;padding:0 24px;background:#48291e;gap:12px}
 .imv-cat-hero{height:140px}
 .imv-cat-hero-copy{padding-left:27px;flex-basis:100%}
 .imv-cat-hero h1{font-size:36px!important}
 .imv-cat-hero p{font-size:19px!important}
 .imv-cat-hero-wall{width:40%;opacity:.35}
 .imv-cat-browser{padding:0 16px 35px}
 .imv-cat-filter-panel{padding:15px 4px}
 .imv-cat-filter-group{flex-wrap:wrap;gap:10px}
 .imv-cat-filter-group:first-child{border:0}
 .imv-cat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
 .imv-cat-page-header .imv-brand-header{padding:3px 12px 0}
 .imv-cat-page-header .imv-brand-logo{flex:0 0 160px;max-width:160px}
 .imv-cat-page-header .imv-brand-logo img{width:160px}
 .imv-cat-page-header .imv-brand-icons{gap:10px}
 .imv-cat-page-header .imv-brand-nav{gap:8px;flex-wrap:wrap}
 .imv-cat-page-header .imv-brand-nav a{font-size:11px!important}
 .imv-cat-crumb{height:36px;font-size:11px;padding:0 12px;overflow:hidden}
 .imv-cat-hero{height:135px}
 .imv-cat-hero-copy{padding:18px 14px}
 .imv-cat-hero h1{font-size:27px!important;max-width:92%}
 .imv-cat-hero p{font-size:15px!important;max-width:86%}
 .imv-cat-hero-wall{width:55%;opacity:.28}
 .imv-cat-browser{padding:0 12px 28px}
 .imv-cat-filter-panel{padding:12px 0}
 .imv-cat-filter-row{display:block}
 .imv-cat-filter-group{display:block;margin-bottom:12px;padding:0!important}
 .imv-cat-filter-group>strong,.imv-cat-color-group>strong{display:block;margin-bottom:8px}
 .imv-cat-pills{gap:6px}
 .imv-cat-pills button{font-size:12px!important;min-width:0;padding:7px 9px!important}
 .imv-cat-filter-second{min-height:0}
 .imv-cat-color-group{padding:0;border:0;display:block;margin-bottom:10px}
 .imv-cat-color-options{gap:8px}
 .imv-cat-swatch{width:43px;height:34px;flex-basis:43px}
 .imv-cat-sort-panel{display:flex;border:0;margin-bottom:10px;padding:0;gap:8px}
 .imv-cat-sort-panel select{min-width:0;max-width:190px;flex:1}
 .imv-cat-results{margin-bottom:12px}
 .imv-cat-grid{grid-template-columns:1fr;gap:12px}
 .imv-cat-card{min-height:310px}
 .imv-cat-product-photo{height:190px}
 .imv-cat-product-name{font-size:16px!important}
 .imv-cat-details{font-size:13px}
 .imv-cat-price{font-size:23px}
 .imv-cat-add{font-size:14px!important}
 .imv-cat-more{font-size:17px!important;height:46px}
}

.imv-cat-hero-wall{
 background-position:right 55%!important;
 background-size:200% auto!important;
}
body:is(.woocommerce-shop,.tax-product_cat,.page-id-59):has(.imv-cat-browser) .adfy__woofc-button,
body:is(.woocommerce-shop,.tax-product_cat,.page-id-59):has(.imv-cat-browser) .adfy__woofc-overlay,
body:is(.woocommerce-shop,.tax-product_cat,.page-id-59):has(.imv-cat-browser) .grecaptcha-badge{
 display:none!important;
}
@media(min-width:901px){
 .imv-cat-browser{padding-bottom:100px!important}
}

body:is(.woocommerce-shop,.tax-product_cat,.page-id-59):has(.imv-cat-browser) #adfy__woofc-trigger {
  display:none!important;
}
@media (min-width:1281px) {
  .imv-cat-page-header .imv-brand-logo img{flex:0 0 107px;width:107px!important;height:65px!important}
  .imv-cat-page-header .imv-brand-logo:after{
    content:"Интерьерная мануфактура Варнавских";
    display:inline-block;
    white-space:nowrap;
    font:700 14px/1.17 "Arial Narrow",Arial,sans-serif;
    letter-spacing:-.9px;
    color:#47281e;
    border-bottom:1px solid #718b33;
    padding-bottom:5px;
    margin-left:2px;
  }
}
@media (min-width:901px) and (max-width:1280px) {
  .imv-cat-page-header .imv-brand-logo img{flex:0 0 75px;width:75px!important;height:60px!important}
  .imv-cat-page-header .imv-brand-logo:after{
    content:"Интерьерная мануфактура Варнавских";
    white-space:nowrap;
    font:700 11px/1.2 "Arial Narrow",Arial,sans-serif;
    letter-spacing:-1px;color:#47281e;
    border-bottom:1px solid #718b33;
    padding-bottom:3px;
  }
}

/* Approved category banner: genuine crop of the agreed hero design;
   isolated to marble category 30, other product archives untouched. */
@media (min-width:901px) {
 body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-hero-wall {
  width:46.4%!important;
  clip-path:none!important;
  background-image:url('hero-approved-right.jpg')!important;
  background-position:center!important;
  background-size:100% 100%!important;
  opacity:1!important;
  -webkit-mask-image:linear-gradient(to right, transparent 0%, #000 18%, #000 100%);
  mask-image:linear-gradient(to right, transparent 0%, #000 18%, #000 100%);
 }
 body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-hero-copy {
  padding-left:66px!important;
  transform:translateY(5px);
 }
}

/* IMV v0.1.4: approved composition, genuine WooCommerce images, responsive QA. */
/* Actual swatches are generated once by WordPress from the linked image attachment. */
body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-swatch .imv-swatch-image img{
  position:static!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  object-fit:cover!important;
}
body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-color-name{
  max-width:125px!important;
  min-width:92px!important;
  padding:5px 6px!important;
  font-size:10px!important;
  bottom:5px!important;
  right:3px!important;
}
@media(min-width:1281px){
 body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-page-header .imv-brand-logo:after{
   font-size:15px!important;
   letter-spacing:-.9px!important;
 }
}
@media (max-width:600px){
 body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-page-header{
   height:auto!important;
   min-height:90px!important;
 }
 body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-page-header .imv-brand-header{
   display:grid!important;
   grid-template-columns:minmax(0,1fr) auto;
   grid-template-rows:56px auto;
   align-items:center;
   min-height:90px!important;
   gap:0 8px;
   padding:3px 12px 0!important;
 }
 body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-page-header .imv-brand-logo{
   display:flex!important;
   grid-column:1;
   grid-row:1;
   width:100%!important;
   max-width:245px!important;
   min-width:0;
   height:54px!important;
   align-items:center;
   overflow:hidden;
 }
 body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-page-header .imv-brand-logo img{
   width:62px!important;
   height:53px!important;
   flex:0 0 62px!important;
   object-fit:contain!important;
 }
 body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-page-header .imv-brand-logo:after{
   content:"Интерьерная мануфактура Варнавских";
   display:block;
   font:700 12px/1.13 Arial,sans-serif;
   letter-spacing:-.4px;
   color:#462b20;
   width:155px;
   padding:0 0 3px 3px;
   border-bottom:1px solid #7b913b;
 }
 body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-page-header .imv-brand-icons{
   grid-column:2;grid-row:1;
   margin:0!important;
   gap:10px;
   align-items:center;
   justify-content:flex-end;
 }
 body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-page-header .imv-brand-nav{
   grid-column:1/-1;grid-row:2;
   order:unset;
   width:100%;
   max-width:100%;
   display:flex!important;
   flex-wrap:nowrap!important;
   justify-content:flex-start!important;
   align-items:center;
   gap:19px!important;
   padding:3px 0 10px!important;
   overflow-x:auto;
   overflow-y:hidden;
   scrollbar-width:thin;
   -webkit-overflow-scrolling:touch;
 }
 body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-page-header .imv-brand-nav a{
   font-size:12px!important;
   flex:0 0 auto;
 }
 body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-hero{
   height:118px!important;
 }
 body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-hero-copy{
   padding:14px 14px!important;
 }
 body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-hero h1{
   font-size:26px!important;
   max-width:100%!important;
 }
 body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-hero p{
   font-size:14px!important;
   max-width:88%!important;
 }
 body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-product-photo{height:160px!important;}
 body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-card{min-height:275px!important;}
 body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-color-name{max-width:128px!important;}
 body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .elementor-location-footer .wpcf7 form .b50,
 body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .elementor-location-footer .wpcf7 form dic.b50{
    display:block!important;
    position:static!important;
    float:none!important;
    clear:both!important;
    width:100%!important;
    max-width:100%!important;
    margin:0 0 10px!important;
 }
 body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .elementor-location-footer .wpcf7 form dic.b50 p{
    font-size:13px!important;
    line-height:1.4!important;
    margin:8px 0 0!important;
 }
 body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .elementor-location-footer .wpcf7 form input[type=submit]{
   max-width:100%;
   margin-bottom:4px;
 }
}

/* v0.1.7 — approved catalog layout: genuine filters left, 3 WooCommerce cards right.
   No duplicate products, HTML copies, horizontal swatch scrolling or layout scripts.
   Scoped strictly to the marble category's Elementor archive. */
@media (min-width: 981px) {
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-browser {
    display: grid;
    grid-template-columns: 268px minmax(0, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas:
      "filters products"
      "filters more";
    align-items: start;
    column-gap: 24px;
    padding: 26px 28px 72px !important;
  }
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-filter-panel {
    grid-area: filters;
    position: sticky;
    top: 18px;
    padding: 19px 16px 21px !important;
    border: 1px solid #e1d8cd;
    border-radius: 13px;
    background: #fbfaf7;
    box-shadow: 0 2px 10px rgba(70, 40, 23, 0.035);
    min-width: 0;
    width: 100%;
  }
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-filter-row,
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-filter-first,
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-filter-second {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0;
    min-height: 0;
    padding: 0;
  }
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-filter-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    border: 0 !important;
    padding: 0 0 18px !important;
    margin: 0 0 18px;
    border-bottom: 1px solid #e5dfd6 !important;
  }
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-filter-group:last-child {
    border-bottom: 1px solid #e5dfd6 !important;
  }
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-filter-group strong,
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-color-group > strong,
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-sort-panel > label {
    font-size: 15px !important;
    line-height: 1.35;
    font-weight: 800;
  }
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
  }
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-pills button {
    height: 33px;
    padding: 7px 10px !important;
    min-width: auto;
    font-size: 13px !important;
  }
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-color-group {
    display: flex;
    flex: none;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 0 0 18px !important;
    margin: 0 0 18px;
    border: 0 !important;
    border-bottom: 1px solid #e5dfd6 !important;
  }
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-sort-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    margin: 0 0 18px;
    padding: 0 0 18px !important;
    border: 0 !important;
    border-bottom: 1px solid #e5dfd6 !important;
    width: 100%;
  }
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-sort-panel select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-results {
    margin: 0;
    font-size: 13px;
    white-space: normal;
    line-height: 1.5;
  }
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-grid {
    grid-area: products;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    min-width: 0;
  }
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-card {
    min-width: 0;
    padding: 11px 12px 13px;
    min-height: 312px;
  }
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-product-photo { height: 184px; }
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-more {
    grid-area: more;
    margin: 25px auto 0 !important;
  }
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-empty {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }
}
/* Swatches: visible grid, no sideways scrolling at ANY viewport. */
body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-color-options {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  justify-content: start;
  gap: 8px !important;
  overflow: visible !important;
  max-width: none !important;
  width: 100%;
  scrollbar-width: none;
}
body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-swatch,
body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-all-colors {
  flex: none !important;
  display: inline-flex;
  width: 100% !important;
  min-width: 0 !important;
  height: 39px;
  padding: 0 !important;
}
body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-swatch .imv-swatch-image {width:100%;height:100%;}
/* On narrower screens filters precede the catalog, without a sidebar squeezing cards. */
@media (min-width: 981px) and (max-width: 1150px) {
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-browser {
    grid-template-columns: 235px minmax(0, 1fr);
    column-gap: 17px;
    padding: 22px 18px 55px !important;
  }
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-card {min-height:308px;}
}
@media (max-width: 980px) {
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-browser {
    display: block;
    padding: 12px 18px 44px;
  }
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-filter-panel {
    margin-bottom: 20px;
    border: 1px solid #e1d8cd;
    border-radius: 12px;
    padding: 16px 16px 11px !important;
    background: #fbfaf7;
  }
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-filter-row,
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-filter-first,
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-filter-second {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 13px;
    min-height: 0;
    padding: 0;
  }
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-filter-group,
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-color-group,
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-sort-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    flex: none;
    padding: 0 !important;
    border: none !important;
    margin: 0 !important;
    width: 100%;
  }
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-pills {flex-wrap:wrap;gap:8px;}
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-sort-panel select {
    min-width:0;
    width:100%;
    max-width:360px;
  }
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-results {
    white-space:normal;
    margin:0 0 10px;
  }
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:13px;
  }
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-color-options {
    grid-template-columns:repeat(7,minmax(0,1fr));
    gap:8px!important;
  }
}
@media (max-width: 600px) {
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-browser { padding: 10px 12px 30px !important; }
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-filter-panel {
    padding: 14px 12px 12px !important;
    margin-bottom:16px;
  }
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-color-options {
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:7px!important;
  }
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-swatch,
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-all-colors {
    height:36px;
  }
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-grid {
    grid-template-columns:minmax(0,1fr);
    gap:12px;
  }
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-card {min-height:286px;}
}
body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-color-group > strong {
  text-align: left !important;
  align-self: stretch;
}


/* 0.1.8: center the load-more control directly under the product grid.
   Preserve separate label/icon markup rendered by the Elementor widget. */
body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-more {
  grid-area: more;
  justify-self: center;
  align-self: start;
  display: inline-flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: min(100%, 380px) !important;
  max-width: 380px;
  height: 52px;
  margin: 24px auto 0 !important;
  padding: 0 20px !important;
  font: 800 20px/1.2 Arial, sans-serif !important;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
}
body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-more > span[aria-hidden] {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  line-height: 1;
  transform: translateY(-1px);
}
@media (max-width: 600px) {
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-more {
    width: 100% !important;
    height: 48px;
    font-size: 17px !important;
    margin: 18px auto 0 !important;
    padding: 0 10px !important;
  }
  body:is(.woocommerce-shop,.tax-product_cat,.page-id-59) .imv-cat-more > span[aria-hidden] {
    font-size: 21px;
  }
}
