/*
Theme Name: Medsale24
Version: 1.5.168
Description: Custom lightweight B2B WooCommerce theme for Medsale24 staging and production.
*/
:root{--ms-blue:#24a0e3;--ms-dark:#3f4548;--ms-text:#484848;--ms-muted:#6f777b;--ms-border:#d9e2e7;--ms-bg:#f7fafc;--ms-white:#fff;--ms-radius:10px;--ms-container:1240px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ms-text);background:#fff;font-family:Arial,sans-serif;line-height:1.55}a{color:var(--ms-blue);text-decoration:none}a:hover{text-decoration:underline}img{max-width:100%;height:auto}.container{width:min(100% - 32px,var(--ms-container));margin:auto}.site-header{border-bottom:1px solid var(--ms-border);background:#fff;position:sticky;top:0;z-index:20}.header-main{display:flex;align-items:center;gap:28px;padding:16px 0}.site-brand{font-size:25px;font-weight:800;color:var(--ms-dark);white-space:nowrap}.main-nav{display:flex;gap:18px;align-items:center;flex:1}.main-nav a{font-weight:600;color:var(--ms-dark)}.header-actions{display:flex;gap:10px}.btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--ms-blue);border-radius:8px;padding:10px 15px;font-weight:700;cursor:pointer;background:#fff;color:var(--ms-blue)}.btn-primary{background:var(--ms-blue);color:#fff}.hero{background:linear-gradient(135deg,#eef6fb,#fff);padding:60px 0}.hero h1{font-size:44px;line-height:1.1;max-width:850px;margin:0 0 18px;color:var(--ms-dark)}.hero p{font-size:19px;max-width:760px;color:var(--ms-muted)}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}.section{padding:48px 0}.section-title{font-size:30px;color:var(--ms-dark);margin:0 0 22px}.grid{display:grid;gap:18px}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.card{border:1px solid var(--ms-border);border-radius:var(--ms-radius);padding:20px;background:#fff}.category-card h3,.product-card h3{margin:0 0 8px}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.product-card{border:1px solid var(--ms-border);border-radius:var(--ms-radius);padding:16px;background:#fff;display:flex;flex-direction:column}.product-card .thumb{height:210px;display:flex;align-items:center;justify-content:center;margin-bottom:14px}.product-card .thumb img{max-height:200px;object-fit:contain}.product-card .meta{font-size:13px;color:var(--ms-muted)}.product-card .price{font-size:19px;font-weight:800;margin:10px 0}.product-card .actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto}.breadcrumbs{padding:18px 0;font-size:14px;color:var(--ms-muted)}.archive-head{padding:25px 0}.archive-head h1{margin:0;color:var(--ms-dark)}.shop-layout{display:grid;grid-template-columns:250px 1fr;gap:28px}.sidebar{border:1px solid var(--ms-border);padding:18px;border-radius:var(--ms-radius);height:max-content}.single-product-layout{display:grid;grid-template-columns:42% 58%;gap:40px}.product-gallery{border:1px solid var(--ms-border);border-radius:var(--ms-radius);padding:20px;text-align:center}.product-summary h1{font-size:34px;line-height:1.2;color:var(--ms-dark)}.product-price{font-size:28px;font-weight:800;margin:18px 0}.b2b-box{background:var(--ms-bg);border:1px solid var(--ms-border);border-radius:var(--ms-radius);padding:20px;margin:22px 0}.b2b-box .btn{margin:5px}.specs{width:100%;border-collapse:collapse}.specs td{padding:10px;border-bottom:1px solid var(--ms-border);vertical-align:top}.specs td:first-child{width:38%;font-weight:700}.site-footer{background:var(--ms-dark);color:#fff;margin-top:50px;padding:40px 0}.site-footer a{color:#fff}.notice{padding:12px 15px;border-radius:8px;background:#f6f8fa;border:1px solid var(--ms-border)}@media(max-width:900px){.main-nav{display:none}.grid-3,.grid-4,.product-grid{grid-template-columns:1fr 1fr}.shop-layout,.single-product-layout{grid-template-columns:1fr}.hero h1{font-size:35px}}@media(max-width:600px){.container{width:min(100% - 22px,var(--ms-container))}.grid-3,.grid-4,.product-grid{grid-template-columns:1fr}.header-actions{display:none}.hero{padding:40px 0}.hero h1{font-size:30px}.section{padding:34px 0}}

.woocommerce ul.products{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.woocommerce ul.products li.product{width:auto!important;margin:0!important;float:none!important}.woocommerce .woocommerce-result-count{color:var(--ms-muted)}.woocommerce nav.woocommerce-pagination{margin:28px 0}.woocommerce nav.woocommerce-pagination ul{border:0}.woocommerce nav.woocommerce-pagination ul li{border:0;margin:3px}.woocommerce nav.woocommerce-pagination ul li a,.woocommerce nav.woocommerce-pagination ul li span{border:1px solid var(--ms-border);border-radius:6px;padding:8px 12px}.woocommerce-product-gallery__image{min-height:360px;display:flex!important;align-items:center;justify-content:center}.woocommerce-product-gallery__image img{max-height:480px;object-fit:contain}@media(max-width:900px){.woocommerce ul.products{grid-template-columns:1fr 1fr}}@media(max-width:600px){.woocommerce ul.products{grid-template-columns:1fr}}

.category-description{max-width:900px;color:var(--ms-muted)}.subcategories{padding:20px 0 35px}.stock-line{font-size:13px;color:var(--ms-muted);margin-bottom:12px}.catalog-results{min-width:0}.related ul.products{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.related ul.products li{width:auto!important;margin:0!important;float:none!important}@media(max-width:600px){.related ul.products{grid-template-columns:1fr}}

/* v0.6.1 accessibility and compatibility block */
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
.compatibility-box { border: 1px solid #ddd; padding: 20px; border-radius: 8px; }
@media (max-width: 700px) { .single-product-layout { grid-template-columns: 1fr; } .shop-layout { grid-template-columns: 1fr; } }


/* v0.7.0 catalog rebuild — preserve established Medsale24 palette */
.brand-wrap{display:flex;align-items:center;min-width:max-content}.custom-logo-link{display:flex;align-items:center}.custom-logo{max-height:52px;width:auto}.catalog-page{padding-bottom:24px}.catalog-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin:4px 0 20px}.catalog-toolbar .woocommerce-result-count,.catalog-toolbar .woocommerce-ordering{float:none!important;margin:0!important}.catalog-toolbar select{min-height:40px;border:1px solid var(--ms-border);border-radius:8px;background:#fff;padding:0 38px 0 12px;color:var(--ms-text)}.catalog-results-full{width:100%;min-width:0}.catalog-results-full .products{width:100%}.woocommerce ul.products{grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch}.woocommerce ul.products::before,.woocommerce ul.products::after{display:none!important;content:none!important}.woocommerce ul.products li.product{display:flex!important;min-width:0}.product-card{width:100%;min-height:100%;padding:14px}.product-card .thumb{height:190px;margin-bottom:10px;background:#fff;overflow:hidden}.product-card .thumb img{width:100%;height:100%;max-height:none;object-fit:contain}.product-card .woocommerce-loop-product__title{font-size:17px;line-height:1.28;margin:7px 0 8px;min-height:65px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.product-card .woocommerce-loop-product__title a{color:var(--ms-blue)}.product-card .price{font-size:18px;line-height:1.25;margin:8px 0}.product-card .stock-line{margin:0 0 12px}.product-card .actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.product-card .actions .btn{padding:9px 8px;font-size:13px;white-space:nowrap}.archive-head{padding:12px 0 20px}.archive-head h1{font-size:34px;line-height:1.15}.breadcrumbs{padding:16px 0 6px}.subcategories{padding:8px 0 26px}.site-header{border-top:3px solid #3f4548}.site-brand{font-size:28px;line-height:1;font-weight:800;letter-spacing:-.04em;color:#484848}.site-brand .brand-24{color:#24a0e3}.site-brand:hover{text-decoration:none}.site-branding-subtitle{display:block;margin-top:4px;font-size:11px;line-height:1.1;color:#6f777b;font-weight:600;letter-spacing:0}.brand-fallback{display:flex;flex-direction:column;align-items:flex-start}.btn{border-color:#24a0e3;color:#168bc7}.btn-primary{background:#24a0e3;border-color:#24a0e3;color:#fff}.btn-primary:hover{background:#168fcf}.product-card .woocommerce-loop-product__title a{color:#168bc7}.woocommerce nav.woocommerce-pagination ul li span.current{background:#24a0e3;color:#fff;border-color:#24a0e3}
@media(max-width:1100px){.woocommerce ul.products{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}.product-card .thumb{height:180px}.product-card .woocommerce-loop-product__title{min-height:62px}}
@media(max-width:560px){.woocommerce ul.products{grid-template-columns:1fr}.product-card .thumb{height:230px}.product-card .woocommerce-loop-product__title{min-height:0}.catalog-toolbar{align-items:stretch}.catalog-toolbar .woocommerce-ordering,.catalog-toolbar select{width:100%}.product-card .actions{grid-template-columns:1fr 1fr}}


/* v0.7.2 desktop density + recognizable Medsale24 header */
.site-header{position:relative;top:auto;border-top:3px solid var(--ms-dark);box-shadow:0 1px 0 rgba(63,69,72,.04)}
.header-main{min-height:78px;padding:12px 0;gap:20px}.header-spacer{flex:1}.custom-logo{max-height:50px;max-width:240px;width:auto}.brand-wrap{flex:0 0 auto}.header-actions .btn{min-height:42px;padding:9px 16px}.nav-strip{border-top:1px solid var(--ms-border);background:#fff}.main-nav{min-height:43px;display:flex;align-items:center}.main-nav .menu{display:flex;align-items:center;gap:0;list-style:none;margin:0;padding:0}.main-nav .menu>li{margin:0}.main-nav .menu>li>a{display:block;padding:11px 20px 10px 0;margin-right:26px;font-size:14px;font-weight:600;color:var(--ms-dark)}.main-nav .menu>li>a:hover{color:var(--ms-blue);text-decoration:none}
.catalog-page{padding-top:0}.breadcrumbs{padding:13px 0 4px;font-size:13px}.archive-head{padding:6px 0 13px}.archive-head h1{font-size:32px;margin:0}.archive-head .category-description{margin-top:9px}.catalog-toolbar{min-height:46px;margin:0 0 14px;padding:0;border-bottom:1px solid #edf1f3}.catalog-toolbar .woocommerce-result-count{font-size:14px}.catalog-toolbar .woocommerce-ordering{margin-left:auto!important}.catalog-toolbar select{min-height:38px}.woocommerce ul.products{gap:16px}.product-card{padding:13px}.product-card .thumb{height:205px}.product-card .woocommerce-loop-product__title{font-size:16px}.product-card .meta{font-size:12px}.product-card .price{font-size:17px}.product-card .actions .btn{min-height:38px}.woocommerce nav.woocommerce-pagination{margin:24px 0 8px}
body.admin-bar .site-header{top:auto}
@media(max-width:900px){.nav-strip{display:none}.header-main{min-height:68px}.archive-head h1{font-size:28px}.breadcrumbs{padding-top:10px}}
@media(max-width:600px){.header-main{padding:10px 0}.custom-logo{max-height:42px;max-width:190px}.archive-head{padding-bottom:10px}.catalog-toolbar{padding-bottom:10px}.product-card .thumb{height:220px}}


/* v0.7.3 bundled Medsale24 primary logo */
.medsale24-logo-link{display:flex;align-items:center;text-decoration:none}.medsale24-logo{display:block;width:auto;height:64px;max-width:min(360px,42vw);object-fit:contain}.header-main{min-height:92px}.brand-wrap{min-width:0}@media(max-width:800px){.medsale24-logo{height:54px;max-width:55vw}.header-main{min-height:76px}}@media(max-width:560px){.medsale24-logo{height:46px;max-width:68vw}.header-main{min-height:66px;padding:8px 0}}


/* v0.7.4 layout hardening + exact supplied logo */
html,body{max-width:100%;overflow-x:clip}
.site-header,.header-main,.nav-strip,.catalog-page,.catalog-results,.woocommerce,.woocommerce-page{max-width:100%}
.header-main>*{min-width:0}
.brand-wrap{flex:0 1 320px;max-width:320px;overflow:hidden}
.medsale24-logo-link{display:block;width:100%;max-width:320px;line-height:0}
.medsale24-logo{display:block!important;width:100%!important;height:auto!important;max-width:320px!important;max-height:96px!important;object-fit:contain!important;object-position:left center}
.header-main{min-height:78px!important;padding:10px 0!important}
.header-spacer{min-width:12px}
.main-nav,.main-nav .menu{min-width:0;max-width:100%}
.main-nav .menu{flex-wrap:wrap}
.woocommerce-breadcrumb{display:none!important}
.breadcrumbs{margin:0;white-space:normal;overflow-wrap:anywhere}
.catalog-toolbar{width:100%;min-width:0}
.catalog-toolbar .woocommerce-result-count{margin-right:auto!important}
.catalog-toolbar .woocommerce-ordering{max-width:100%}
.catalog-toolbar select{max-width:100%}
.woocommerce ul.products{width:100%;min-width:0}
.woocommerce ul.products li.product,.product-card,.product-card>*{min-width:0}
.product-card{overflow:hidden}
.product-card .thumb{width:100%}
.product-card .thumb img{display:block;max-width:100%!important}
.product-card .meta{min-height:20px}
.product-card .woocommerce-loop-product__title{overflow-wrap:anywhere}
.product-card .stock-line{min-height:20px}
.product-card .actions{width:100%;margin-top:auto}
.product-card .actions .btn{min-width:0;width:100%;white-space:normal;line-height:1.2}
.single-product-layout{grid-template-columns:minmax(0,42%) minmax(0,58%);gap:32px}
.product-gallery,.product-summary{min-width:0}
.product-gallery img{display:block;width:auto;max-width:100%;height:auto;margin:auto}
.product-summary h1{overflow-wrap:anywhere}
.specs{table-layout:fixed}
.specs th,.specs td{overflow-wrap:anywhere}
.related ul.products{width:100%;min-width:0}
.site-footer{overflow:hidden}
@media(max-width:900px){
 .brand-wrap{flex-basis:270px;max-width:270px}.medsale24-logo-link,.medsale24-logo{max-width:270px!important}
 .single-product-layout{grid-template-columns:1fr}
}
@media(max-width:600px){
 .brand-wrap{flex-basis:220px;max-width:220px}.medsale24-logo-link,.medsale24-logo{max-width:220px!important}
 .header-main{min-height:64px!important;padding:8px 0!important}
 .catalog-toolbar{display:grid;grid-template-columns:1fr;gap:10px}
 .product-card .actions{grid-template-columns:1fr 1fr}
}
@media(max-width:380px){.brand-wrap{flex-basis:190px;max-width:190px}.medsale24-logo-link,.medsale24-logo{max-width:190px!important}.product-card .actions{grid-template-columns:1fr}}


/* v0.7.6 SKU-aware header search, product detail and footer refinement */
.header-search{flex:1 1 360px;max-width:520px}.header-search form{display:flex;align-items:center;border:1px solid var(--ms-border);border-radius:9px;background:#fff;overflow:hidden}.header-search input[type="search"]{width:100%;min-width:0;height:42px;border:0;outline:0;padding:0 13px;font:inherit;color:var(--ms-text)}.header-search button{height:42px;border:0;border-left:1px solid var(--ms-border);background:#f7fafc;color:var(--ms-dark);font-weight:700;padding:0 15px;cursor:pointer}.header-search button:hover{background:#eef5f8}.header-spacer{display:none}
.product-gallery-main{min-height:390px;display:flex;align-items:center;justify-content:center}.product-gallery-main img{max-height:470px;object-fit:contain}.product-summary{padding-top:4px}.product-summary h1{margin:0 0 10px}.product-summary .meta{font-size:13px;color:var(--ms-muted);margin-bottom:8px}.product-categories{font-size:14px;color:var(--ms-muted);margin:8px 0 12px}.product-categories a{color:var(--ms-muted)}.product-short-description{margin:16px 0;color:var(--ms-text)}.product-short-description p:first-child{margin-top:0}.product-summary .b2b-box strong{display:block;font-size:20px;color:var(--ms-dark);margin-bottom:4px}.single-product-layout+.section{padding-top:34px}.specs th{width:38%;padding:10px;border-bottom:1px solid var(--ms-border);text-align:left;vertical-align:top;color:var(--ms-dark)}
.site-footer{padding:38px 0 30px}.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:34px}.footer-title{font-size:20px;margin-bottom:8px}.footer-links{list-style:none;margin:0;padding:0}.footer-links li{margin:6px 0}.footer-note{color:#d7dde0;max-width:460px}.footer-bottom{border-top:1px solid rgba(255,255,255,.18);margin-top:28px;padding-top:18px;font-size:13px;color:#d7dde0}
@media(max-width:1000px){.header-search{max-width:none}.header-actions .btn:first-child{display:none}}
@media(max-width:900px){.header-search{display:none}.footer-grid{grid-template-columns:1fr 1fr}.footer-brand{grid-column:1/-1}}
@media(max-width:600px){.footer-grid{grid-template-columns:1fr}.footer-brand{grid-column:auto}.product-gallery-main{min-height:280px}.product-summary h1{font-size:28px}.product-price{font-size:24px}}


/* v0.7.7 contacts, privacy and lightweight cookie consent */
.header-contacts{display:flex;flex-direction:column;gap:1px;flex:0 0 auto;font-size:13px;line-height:1.35;text-align:right}.header-contacts a{color:var(--ms-dark);font-weight:700;white-space:nowrap}.header-contacts small{color:var(--ms-muted);font-size:11px}.footer-contacts{font-style:normal}.footer-contacts a{font-weight:600}.footer-legal{display:flex;gap:16px;flex-wrap:wrap;margin-top:10px}.footer-legal a{color:#d7dde0}.legal-page{max-width:920px}.legal-page h2{margin-top:32px;color:var(--ms-dark)}.legal-page h3{margin-top:24px;color:var(--ms-dark)}.legal-page p,.legal-page li{max-width:900px}.legal-note{padding:14px 16px;background:#f7fafc;border-left:3px solid var(--ms-blue);margin:18px 0}.contact-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:24px}.contact-card{border:1px solid var(--ms-border);border-radius:var(--ms-radius);padding:22px;background:#fff}.contact-card h2{margin-top:0}.contact-list{list-style:none;padding:0;margin:0}.contact-list li{margin:10px 0}.cookie-banner{position:fixed;left:16px;right:16px;bottom:16px;z-index:99999;display:none;max-width:980px;margin:0 auto;background:#fff;border:1px solid var(--ms-border);border-radius:12px;box-shadow:0 12px 40px rgba(0,0,0,.18);padding:18px}.cookie-banner.is-visible{display:block}.cookie-banner-inner{display:flex;align-items:center;gap:18px}.cookie-banner-text{flex:1;min-width:0;font-size:14px}.cookie-banner-text strong{display:block;color:var(--ms-dark);font-size:16px;margin-bottom:3px}.cookie-banner-text p{margin:0}.cookie-banner-actions{display:flex;gap:8px;flex:0 0 auto}.cookie-banner .btn{min-height:40px}.cookie-settings{display:none;margin-top:14px;padding-top:14px;border-top:1px solid var(--ms-border)}.cookie-settings.is-open{display:block}.cookie-setting-row{display:flex;align-items:flex-start;gap:10px}.cookie-setting-row input{margin-top:4px}.cookie-setting-row label{font-size:14px}.cookie-setting-row small{display:block;color:var(--ms-muted)}
@media(max-width:1100px){.header-contacts{display:none}}
@media(max-width:760px){.contact-grid{grid-template-columns:1fr}.cookie-banner-inner{display:block}.cookie-banner-actions{margin-top:14px;flex-wrap:wrap}.cookie-banner-actions .btn{flex:1 1 150px}.cookie-banner{left:10px;right:10px;bottom:10px;padding:15px}}


/* v0.7.9 homepage, catalog CTA and informational pages */
.hero-home{padding:34px 0 42px;background:linear-gradient(180deg,#f8fbfd 0%,#fff 100%)}
.hero-home-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,48%);gap:38px;align-items:center}
.hero-home-copy h1{margin:0 0 16px;font-size:clamp(32px,4vw,52px);line-height:1.08}
.hero-home-copy p{font-size:18px;line-height:1.55;max-width:700px}
.hero-home-image{border-radius:18px;overflow:hidden;box-shadow:0 18px 48px rgba(24,45,65,.13);background:#eaf1f6}
.hero-home-image img{display:block;width:100%;height:auto;aspect-ratio:1000/508;object-fit:cover}
.btn-catalog-primary{display:inline-flex!important;align-items:center;justify-content:center;min-height:56px;padding:15px 30px!important;font-size:18px!important;font-weight:800!important;background:#24A0E3!important;border:2px solid #24A0E3!important;color:#fff!important;box-shadow:0 8px 22px rgba(36,160,227,.28);transition:transform .18s ease,box-shadow .18s ease,filter .18s ease}
.btn-catalog-primary:hover,.btn-catalog-primary:focus{transform:translateY(-2px);box-shadow:0 12px 28px rgba(36,160,227,.36);filter:brightness(.96);color:#fff!important}
.info-page{max-width:980px}
.info-page h1{margin-bottom:12px}
.info-page h2{margin-top:32px}
.info-lead{font-size:18px;line-height:1.6;color:#3f4548}
.info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:28px 0}
.info-card{border:1px solid #e1e7eb;border-radius:14px;padding:22px;background:#fff}
.info-card h3{margin-top:0}
.page-actions{display:flex;gap:12px;flex-wrap:wrap;margin:28px 0}
@media(max-width:850px){.hero-home-grid{grid-template-columns:1fr}.hero-home-image{order:-1}.info-grid{grid-template-columns:1fr}}


/* v0.8.0 clean header + floating messenger buttons */
.header-contact-line,.header-contacts,.top-contacts,.contact-strip{display:none!important}
.floating-messengers{position:fixed;right:18px;bottom:92px;z-index:999;display:flex;flex-direction:column;gap:10px;align-items:flex-end}
.floating-messenger{display:flex;align-items:center;gap:9px;min-height:48px;padding:10px 15px;border-radius:999px;text-decoration:none!important;font-weight:800;box-shadow:0 8px 24px rgba(24,45,65,.20);border:1px solid rgba(0,0,0,.06);transition:transform .18s ease,box-shadow .18s ease}
.floating-messenger:hover,.floating-messenger:focus{transform:translateY(-2px);box-shadow:0 11px 28px rgba(24,45,65,.26)}
.floating-messenger svg{width:24px;height:24px;flex:0 0 24px}
.floating-messenger--telegram{background:#229ED9;color:#fff!important}
.floating-messenger--max{background:#fff;color:#20252a!important}
.floating-messenger--max svg{color:#6b55ff}
.cookie-notice,.cookie-banner{z-index:1001!important}
@media(max-width:700px){
 .floating-messengers{right:12px;bottom:82px;gap:8px}
 .floating-messenger{min-height:46px;padding:10px 12px}
 .floating-messenger span{display:none}
}


/* v0.8.1: strict product-card bottom alignment + equal messenger buttons */
.woocommerce ul.products li.product{display:flex!important}
.woocommerce ul.products li.product .product-card,
.product-card{display:flex!important;flex-direction:column!important;height:100%!important;width:100%!important}
.product-card .thumb{flex:0 0 auto}
.product-card .meta{flex:0 0 auto}
.product-card .woocommerce-loop-product__title{flex:0 0 auto}
.product-card .price{margin-top:auto!important;flex:0 0 auto}
.product-card .stock-line{flex:0 0 auto}
.product-card .actions{margin-top:10px!important;flex:0 0 auto}
.product-card .actions .btn{min-height:46px;display:flex;align-items:center;justify-content:center}

/* Both messenger controls use one geometry. */
.floating-messengers{width:254px;align-items:stretch!important}
.floating-messenger{
 box-sizing:border-box!important;
 width:254px!important;
 min-width:254px!important;
 max-width:254px!important;
 height:50px!important;
 min-height:50px!important;
 padding:0 16px!important;
 justify-content:flex-start!important;
}
.floating-messenger svg{width:26px!important;height:26px!important;flex:0 0 26px!important}
.floating-messenger span{display:block;flex:1;text-align:center;white-space:nowrap}

/* MAX brand treatment */
.floating-messenger--max{
 color:#fff!important;
 border-color:transparent!important;
 background:linear-gradient(100deg,#6552ff 0%,#7047f7 48%,#5145ef 100%)!important;
}
.floating-messenger--max .max-logo-mark{display:block;width:27px;height:27px;flex:0 0 27px}
@media(max-width:700px){
 .floating-messengers{width:50px}
 .floating-messenger{width:50px!important;min-width:50px!important;max-width:50px!important;height:50px!important;padding:0!important;justify-content:center!important}
 .floating-messenger span{display:none!important}
}


/* v0.8.2 catalog filters + compatibility/service landing pages */
.catalog-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:26px;align-items:start}
.catalog-sidebar{position:sticky;top:18px;border:1px solid #e1e7eb;border-radius:14px;padding:18px;background:#fff}
.catalog-sidebar h2{font-size:20px;margin:0 0 14px}
.catalog-filter{margin:0 0 18px}
.catalog-filter label{display:block;font-weight:700;margin-bottom:7px}
.catalog-filter select,.catalog-filter input{width:100%;min-height:42px;border:1px solid #ccd7de;border-radius:8px;padding:8px 10px;background:#fff}
.catalog-filter-actions{display:grid;gap:8px}
.catalog-filter-actions .btn{width:100%;text-align:center}
.catalog-main{min-width:0}
.catalog-filter-summary{font-size:14px;color:#59646b;margin:0 0 12px}
.compatibility-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.compatibility-card{border:1px solid #e1e7eb;border-radius:14px;padding:20px;background:#fff}
.compatibility-card h2,.compatibility-card h3{margin-top:0}
@media(max-width:950px){.catalog-layout{grid-template-columns:1fr}.catalog-sidebar{position:static}.compatibility-grid{grid-template-columns:1fr}}


/* v0.8.3: catalog is the primary header CTA; homepage hero has no CTA buttons */
.main-nav .menu > li.menu-catalog > a,
.main-nav .menu > li:first-child > a{
 display:inline-flex!important;
 align-items:center;
 justify-content:center;
 min-height:48px;
 padding:11px 24px!important;
 border-radius:10px;
 background:#24A0E3!important;
 color:#fff!important;
 font-size:17px;
 font-weight:800;
 box-shadow:0 7px 18px rgba(36,160,227,.25);
}
.main-nav .menu > li.menu-catalog > a:hover,
.main-nav .menu > li:first-child > a:hover{
 filter:brightness(.95);
 transform:translateY(-1px);
}


/* v0.8.4: MAX brand mark, catalog usability and product-page refinements */
.max-official-mark{display:block;width:28px;height:28px;flex:0 0 28px}
.floating-messenger--max{background:linear-gradient(100deg,#635BFF 0%,#6C4CFF 55%,#5A45F4 100%)!important}
.floating-messenger--max .max-official-mark{filter:drop-shadow(0 1px 1px rgba(0,0,0,.08))}
.catalog-sidebar .catalog-filter select:focus{outline:3px solid rgba(36,160,227,.18);border-color:#24A0E3}
.catalog-sidebar .btn-primary{min-height:44px}
.single-product-layout .product-summary .price{font-size:24px;font-weight:800}
.single-product-layout .product-summary .sku-line{color:#59646b}
.single-product-layout .product-summary .b2b-box{margin-top:18px}
.product-gallery-main{display:flex;align-items:center;justify-content:center;min-height:360px;border:1px solid #e4eaee;border-radius:14px;background:#fff;padding:16px}
.product-gallery-main img{max-height:520px;object-fit:contain}
.product-thumbs{display:flex;gap:9px;flex-wrap:wrap;margin-top:10px}
.product-thumb{width:72px;height:72px;border:1px solid #dbe3e8;border-radius:9px;background:#fff;padding:5px;cursor:pointer}
.product-thumb img{width:100%;height:100%;object-fit:contain}
@media(max-width:600px){.product-gallery-main{min-height:260px}.product-thumb{width:60px;height:60px}}


/* v0.8.5 homepage dealer/representative hero */
.hero-partners{display:grid;gap:18px}
.hero-partner-group{padding:18px 20px;border:1px solid #e1e7eb;border-radius:14px;background:#fff}
.hero-partner-group h1,.hero-partner-group h2{margin:0 0 12px;color:#3f4548}
.hero-partner-group h1{font-size:clamp(25px,3vw,36px)}
.hero-partner-group h2{font-size:22px}
.hero-partner-list{display:grid;gap:10px;margin:0;padding:0;list-style:none}
.hero-partner-list li{font-size:17px;line-height:1.45}
.hero-partner-list a{font-weight:800;color:#24A0E3;text-decoration:none}
.hero-partner-list a:hover{text-decoration:underline}
.hero-partner-note{color:#59646b}


/* v0.8.6: compact Catalog CTA in header */
.main-nav .menu > li.menu-catalog > a,
.main-nav .menu > li:first-child > a{
 min-height:38px!important;
 padding:7px 15px!important;
 border-radius:8px!important;
 font-size:15px!important;
 font-weight:750!important;
 box-shadow:0 4px 10px rgba(36,160,227,.18)!important;
}

/* Homepage direction cards with real catalog imagery */
.direction-card{overflow:hidden}
.direction-card-image{display:block;width:100%;aspect-ratio:16/9;overflow:hidden;background:#f3f6f8;margin:-1px -1px 16px;width:calc(100% + 2px)}
.direction-card-image img{display:block;width:100%;height:100%;object-fit:cover}
.direction-card-body{padding-top:2px}

/* Contextual dealer/representative SEO blocks */
.official-status{margin:28px 0;padding:22px 24px;border-left:4px solid #24A0E3;background:#f6fafc;border-radius:0 12px 12px 0}
.official-status h2{margin-top:0;font-size:22px}
.official-status p:last-child{margin-bottom:0}
.official-status a{font-weight:750}


/* v0.8.7 — About company page */
.company-page{max-width:1180px;margin:0 auto;padding:34px 20px 58px}
.company-hero{padding:34px;border-radius:18px;background:#f5f9fc;margin-bottom:28px}
.company-hero h1{margin:0 0 14px;font-size:clamp(30px,4vw,46px);color:#3f4548}
.company-hero p{max-width:850px;font-size:18px;line-height:1.65;margin:0;color:#59646b}
.company-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:26px 0}
.company-card{padding:22px;border:1px solid #e1e7eb;border-radius:14px;background:#fff}
.company-card h2{font-size:20px;margin:0 0 10px;color:#3f4548}
.company-card p{margin:0;line-height:1.6}
.company-section{margin:34px 0}
.company-section h2{font-size:27px;color:#3f4548}
.company-links{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}
.company-links a{display:inline-flex;align-items:center;min-height:42px;padding:8px 15px;border-radius:8px;background:#24A0E3;color:#fff;text-decoration:none;font-weight:750}
.company-requisites{padding:22px;border:1px solid #e1e7eb;border-radius:14px;background:#fff}
.company-requisites p{margin:6px 0}
@media(max-width:800px){.company-grid{grid-template-columns:1fr}.company-hero{padding:24px}}


/* v0.8.8 — header links and lighter MAX button */
.floating-messengers .messenger-max,
.floating-messengers a[href*="max.ru"]{
 background:#eeeaff!important;
 background:linear-gradient(135deg,#f4f1ff 0%,#ddd5ff 100%)!important;
 color:#4b2aa8!important;
 border:1px solid #c9bcff!important;
 box-shadow:0 5px 16px rgba(91,61,180,.16)!important;
}
.floating-messengers .messenger-max:hover,
.floating-messengers a[href*="max.ru"]:hover{
 background:linear-gradient(135deg,#ebe5ff 0%,#d2c7ff 100%)!important;
}
.floating-messengers .messenger-max svg,
.floating-messengers a[href*="max.ru"] svg{filter:none!important}


/* v0.8.9 — working homepage directions */
.home-directions .card{padding:0;overflow:hidden;display:flex;flex-direction:column;height:100%}
.home-direction-image{display:block;aspect-ratio:16/9;background:#f3f6f8;overflow:hidden}
.home-direction-image img{display:block;width:100%;height:100%;object-fit:contain;background:#fff;padding:10px}
.home-direction-content{padding:20px;display:flex;flex-direction:column;flex:1}
.home-direction-content h3{margin:0 0 8px}
.home-direction-content p{margin:0 0 18px}
.home-direction-content .btn{margin-top:auto;align-self:flex-start}
.direction-page{max-width:1180px;margin:0 auto;padding:30px 20px 55px}
.direction-intro{max-width:900px;font-size:17px;color:#59646b}
.direction-products{margin-top:28px}


/* v0.9.1 — footer rebuilt in the spirit of the original Medsale24 footer */
.site-footer{background:#3f4548;color:#fff;margin-top:48px}
.footer-main{max-width:1260px;margin:0 auto;padding:42px 38px 30px;display:grid;grid-template-columns:1.2fr .9fr .9fr 1.15fr;gap:38px}
.footer-col h3{margin:0 0 15px;color:#fff;font-size:18px}
.footer-col p{margin:7px 0;line-height:1.55;color:#edf1f3}
.footer-col ul{list-style:none;margin:0;padding:0;display:grid;gap:9px}
.footer-col a{color:#fff;text-decoration:none}
.footer-col a:hover{text-decoration:underline}
.footer-brand-name{font-size:23px;font-weight:800;margin-bottom:10px}
.footer-legal-name{font-weight:750}
.footer-contact-line{display:block;margin:8px 0}
.footer-contact-line strong{display:block;font-size:13px;color:#cfd8dc;margin-bottom:2px}
.footer-messengers{display:grid;gap:10px;margin-top:16px;max-width:270px}
.footer-messenger{display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 14px;border-radius:10px;font-weight:800!important;text-decoration:none!important}
.footer-messenger.max{background:#eeeaff;color:#4b2aa8!important;border:1px solid #c9bcff}
.footer-messenger.telegram{background:#24A0E3;color:#fff!important}
.footer-bottom{border-top:1px solid rgba(255,255,255,.16);max-width:1260px;margin:0 auto;padding:18px 38px 25px;display:flex;justify-content:space-between;gap:24px;align-items:flex-start;color:#dbe2e5;font-size:13px;line-height:1.5}
.footer-bottom p{margin:0}
.footer-bottom-links{display:flex;gap:16px;flex-wrap:wrap}
.footer-bottom a{color:#fff}
@media(max-width:980px){.footer-main{grid-template-columns:1fr 1fr}.footer-bottom{flex-direction:column}}
@media(max-width:600px){.footer-main{grid-template-columns:1fr;padding:32px 20px 24px}.footer-bottom{padding:17px 20px 22px}}


/* v0.9.2 — minimal footer: contacts + privacy only */
.site-footer{background:#3f4548;color:#fff;margin-top:48px}
.footer-main.footer-minimal{max-width:1260px;margin:0 auto;padding:34px 38px 24px;display:grid;grid-template-columns:1fr auto;gap:40px;align-items:start}
.footer-minimal .footer-contact-list{display:flex;gap:28px;flex-wrap:wrap;align-items:flex-start}
.footer-minimal .footer-contact-item{display:grid;gap:3px}
.footer-minimal .footer-contact-item span{font-size:13px;color:#cfd8dc}
.footer-minimal a{color:#fff;text-decoration:none}
.footer-minimal a:hover{text-decoration:underline}
.footer-privacy{display:flex;align-items:center;min-height:44px}
.footer-privacy a{font-weight:700}
.footer-bottom.footer-bottom-minimal{max-width:1260px;margin:0 auto;padding:15px 38px 22px;border-top:1px solid rgba(255,255,255,.16);font-size:13px;color:#dbe2e5}
@media(max-width:800px){.footer-main.footer-minimal{grid-template-columns:1fr;padding:28px 20px 20px}.footer-minimal .footer-contact-list{gap:18px}.footer-bottom.footer-bottom-minimal{padding:14px 20px 20px}}


/* v0.9.3 — footer alignment refinements */
.footer-minimal .footer-contact-list{display:grid!important;grid-template-columns:1fr!important;gap:7px!important}
.footer-minimal .footer-phone-stack{display:grid;gap:4px}
.footer-bottom.footer-bottom-minimal{display:flex;justify-content:space-between;align-items:center;gap:28px;flex-wrap:wrap}
.footer-bottom.footer-bottom-minimal .footer-privacy-inline{margin-left:auto;white-space:nowrap}
.footer-bottom.footer-bottom-minimal .footer-privacy-inline a{color:#dbe2e5;text-decoration:none;font-size:13px;font-weight:400}
.footer-bottom.footer-bottom-minimal .footer-privacy-inline a:hover{color:#fff;text-decoration:underline}
@media(max-width:700px){
 .footer-bottom.footer-bottom-minimal{align-items:flex-start;flex-direction:column;gap:8px}
 .footer-bottom.footer-bottom-minimal .footer-privacy-inline{margin-left:0;white-space:normal}
}


/* v0.9.4 — Catalog mega dropdown */
.main-nav .menu > li.menu-catalog{position:relative}
.catalog-mega{
 position:absolute;left:0;top:100%;z-index:1000;width:min(920px,calc(100vw - 60px));
 padding-top:10px;opacity:0;visibility:hidden;transform:translateY(7px);
 transition:opacity .16s ease,transform .16s ease,visibility .16s;
 pointer-events:none
}
.menu-catalog:hover > .catalog-mega,
.menu-catalog:focus-within > .catalog-mega,
.menu-catalog.catalog-open > .catalog-mega{
 opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto
}
.catalog-mega-inner{
 display:grid;grid-template-columns:repeat(3,minmax(190px,1fr));gap:0;
 background:#fff;border:1px solid #dfe6ea;border-radius:12px;
 box-shadow:0 14px 36px rgba(30,45,55,.16);overflow:hidden
}
.catalog-mega-col{padding:20px 22px;border-right:1px solid #edf1f3}
.catalog-mega-col:last-child{border-right:0}
.catalog-mega-title{display:block;margin-bottom:10px;font-size:16px;font-weight:800;color:#3f4548!important;text-decoration:none}
.catalog-mega-title:hover{color:#24A0E3!important}
.catalog-mega-list{list-style:none!important;margin:0!important;padding:0!important;display:grid;gap:7px}
.catalog-mega-list li{margin:0!important;padding:0!important}
.catalog-mega-list a{display:block!important;padding:3px 0!important;background:none!important;color:#4d5960!important;font-size:14px!important;font-weight:500!important;box-shadow:none!important;border-radius:0!important;white-space:normal!important}
.catalog-mega-list a:hover{color:#24A0E3!important;text-decoration:underline}
.catalog-mega-all{grid-column:1/-1;padding:13px 22px;background:#f6f9fb;border-top:1px solid #edf1f3}
.catalog-mega-all a{font-weight:800;color:#24A0E3;text-decoration:none}
@media(max-width:760px){
 .catalog-mega{position:static;width:100%;padding-top:6px;display:none;opacity:1;visibility:visible;transform:none}
 .menu-catalog.catalog-open > .catalog-mega{display:block}
 .catalog-mega-inner{grid-template-columns:1fr;box-shadow:none}
 .catalog-mega-col{border-right:0;border-bottom:1px solid #edf1f3;padding:14px 16px}
}


/* v0.9.5 — catalog/product UX polish */
.catalog-mega-inner{max-height:72vh;overflow:auto}
.catalog-mega-list a:focus,.catalog-mega-title:focus{outline:2px solid #24A0E3;outline-offset:2px}
.woocommerce ul.products li.product .product-card img{transition:transform .2s ease}
.woocommerce ul.products li.product:hover .product-card img{transform:scale(1.02)}
.woocommerce ul.products li.product .product-card{border-radius:12px}
.single-product .product-summary-actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}
.single-product .product-summary-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 15px;border-radius:8px;text-decoration:none;font-weight:750}
.single-product .product-summary-actions .primary{background:#24A0E3;color:#fff}
.single-product .product-summary-actions .secondary{border:1px solid #24A0E3;color:#167bb1;background:#fff}
.product-trust-note{margin:18px 0;padding:14px 16px;background:#f6f9fb;border-radius:10px;color:#4d5960;font-size:14px}


/* v0.9.6 — structured product information */
.product-info-sections{margin:34px 0;display:grid;gap:22px}
.product-info-section{padding:22px;border:1px solid #e1e7eb;border-radius:12px;background:#fff}
.product-info-section h2{margin:0 0 16px;font-size:23px;color:#3f4548}
.product-spec-table{width:100%;border-collapse:collapse}
.product-spec-table th,.product-spec-table td{padding:10px 12px;border-bottom:1px solid #edf1f3;text-align:left;vertical-align:top}
.product-spec-table th{width:34%;font-weight:700;color:#4d5960;background:#f8fafb}
.product-spec-table tr:last-child th,.product-spec-table tr:last-child td{border-bottom:0}
.product-related-links{display:flex;gap:10px;flex-wrap:wrap}
.product-related-links a{display:inline-flex;padding:8px 12px;border-radius:8px;background:#f2f7fa;text-decoration:none;font-weight:700;color:#167bb1}
.product-docs-note{font-size:14px;color:#59646b}
@media(max-width:650px){.product-spec-table th,.product-spec-table td{display:block;width:100%}.product-spec-table th{border-bottom:0;padding-bottom:3px}.product-spec-table td{padding-top:3px}}


/* v0.9.7 — compatible consumables, alternatives, richer direction pages */
.product-recommendations{margin:28px 0 8px}
.product-recommendations h2{margin:0 0 14px;color:#3f4548;font-size:23px}
.product-mini-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.product-mini-card{border:1px solid #e1e7eb;border-radius:11px;padding:12px;background:#fff;display:flex;flex-direction:column}
.product-mini-card img{width:100%;aspect-ratio:1/1;object-fit:contain;margin-bottom:9px}
.product-mini-card a{color:#3f4548;text-decoration:none;font-weight:700;line-height:1.35}
.product-mini-card a:hover{color:#24A0E3}
.product-mini-card .price{margin-top:auto;padding-top:8px;font-size:14px}
.direction-hero{margin:0 0 28px;padding:28px;border-radius:14px;background:#f4f8fb}
.direction-hero h1{margin-top:0}
.direction-intro{max-width:900px;color:#526067;line-height:1.65}
.direction-links{display:flex;gap:9px;flex-wrap:wrap;margin-top:17px}
.direction-links a{padding:8px 12px;border-radius:8px;background:#fff;border:1px solid #dce6eb;color:#167bb1;text-decoration:none;font-weight:700}
@media(max-width:900px){.product-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.product-mini-grid{grid-template-columns:1fr}}


/* v0.9.8 — catalog UX */
.woocommerce .woocommerce-ordering select{min-height:42px;border:1px solid #d9e2e7;border-radius:8px;padding:7px 34px 7px 11px;background:#fff}
.woocommerce .woocommerce-result-count{color:#657178}
.medsale-catalog-tools{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin:0 0 18px}
.medsale-stock-filter{display:flex;gap:8px;flex-wrap:wrap}
.medsale-stock-filter a{display:inline-flex;align-items:center;min-height:36px;padding:6px 11px;border:1px solid #dce5ea;border-radius:8px;color:#4d5960;text-decoration:none;background:#fff;font-size:14px;font-weight:650}
.medsale-stock-filter a.active,.medsale-stock-filter a:hover{border-color:#24A0E3;color:#167bb1;background:#f3f9fc}
.woocommerce ul.products li.product .woocommerce-loop-product__title{min-height:3.9em}
.woocommerce ul.products li.product .price{min-height:2em;color:#3f4548;font-weight:800}
.woocommerce ul.products li.product .button{width:100%;text-align:center;margin-top:auto}
.catalog-stock{font-size:13px;margin:7px 0 9px;font-weight:650}
.catalog-stock.in{color:#377a42}.catalog-stock.order{color:#9a6b13}.catalog-stock.out{color:#7b858b}
@media(max-width:600px){.medsale-catalog-tools{align-items:flex-start;flex-direction:column}}


/* v0.9.9 — catalog attribute filters */
.medsale-filter-panel{margin:0 0 22px;padding:16px;border:1px solid #dfe7eb;border-radius:12px;background:#f8fafb}
.medsale-filter-toggle{display:none;width:100%;min-height:42px;border:0;border-radius:8px;background:#24A0E3;color:#fff;font-weight:800}
.medsale-filter-form{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr)) auto;gap:10px;align-items:end}
.medsale-filter-field{display:grid;gap:5px}
.medsale-filter-field label{font-size:12px;font-weight:750;color:#657178}
.medsale-filter-field select{width:100%;min-height:42px;border:1px solid #d6e0e5;border-radius:8px;background:#fff;padding:7px 10px}
.medsale-filter-actions{display:flex;gap:7px}
.medsale-filter-actions button,.medsale-filter-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:7px 13px;border-radius:8px;text-decoration:none;font-weight:750}
.medsale-filter-actions button{border:0;background:#24A0E3;color:#fff;cursor:pointer}
.medsale-filter-actions a{border:1px solid #d6e0e5;background:#fff;color:#536168}
@media(max-width:1000px){.medsale-filter-form{grid-template-columns:repeat(2,minmax(150px,1fr))}.medsale-filter-actions{grid-column:1/-1}}
@media(max-width:650px){
 .medsale-filter-toggle{display:block}
 .medsale-filter-form{display:none;grid-template-columns:1fr;margin-top:12px}
 .medsale-filter-panel.filter-open .medsale-filter-form{display:grid}
 .medsale-filter-actions{grid-column:auto}
}


/* v1.0.0 — catalog mega-menu architecture */
.catalog-mega{width:min(1080px,calc(100vw - 48px))}
.catalog-mega-inner{grid-template-columns:repeat(4,minmax(190px,1fr))}
.catalog-mega-col:nth-child(4){border-right:0}
.catalog-mega-heading{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#7a858b;margin:13px 0 6px;font-weight:800}
.catalog-mega-list .catalog-count{font-size:11px;color:#8a959b;font-weight:500}
.catalog-mega-featured{background:#f8fafb}
@media(max-width:960px){.catalog-mega-inner{grid-template-columns:repeat(2,minmax(190px,1fr))}.catalog-mega-col{border-bottom:1px solid #edf1f3}}
@media(max-width:760px){.catalog-mega-inner{grid-template-columns:1fr}}


/* v1.0.1 — homepage commercial structure */
.home-section{max-width:1260px;margin:0 auto;padding:34px 38px}
.home-section-title{margin:0 0 20px;color:#3f4548;font-size:30px}
.home-status-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.home-status-card{padding:20px;border:1px solid #dfe7eb;border-radius:12px;background:#fff}
.home-status-card strong{display:block;color:#3f4548;font-size:17px;margin-bottom:7px}
.home-status-card a{color:#167bb1;font-weight:750;text-decoration:none}
.home-advantages{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.home-advantage{padding:18px;border-radius:11px;background:#f6f9fb}
.home-advantage strong{display:block;margin-bottom:7px;color:#3f4548}
.home-quote{display:grid;grid-template-columns:1fr auto;gap:24px;align-items:center;background:#3f4548;color:#fff;border-radius:14px;padding:28px}
.home-quote h2{margin:0 0 8px;color:#fff}
.home-quote p{margin:0;color:#edf1f3;max-width:760px}
.home-quote-actions{display:flex;gap:9px;flex-wrap:wrap}
.home-quote-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 15px;border-radius:8px;text-decoration:none;font-weight:800}
.home-quote-actions .primary{background:#24A0E3;color:#fff}
.home-quote-actions .secondary{background:#fff;color:#3f4548}
@media(max-width:900px){.home-status-grid,.home-advantages{grid-template-columns:repeat(2,1fr)}.home-quote{grid-template-columns:1fr}}
@media(max-width:600px){.home-section{padding:27px 20px}.home-status-grid,.home-advantages{grid-template-columns:1fr}}


/* v1.0.2 — quote request and contacts */
.medsale-form-wrap{max-width:900px;margin:28px auto;padding:26px;border:1px solid #dfe7eb;border-radius:14px;background:#fff}
.medsale-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.medsale-field{display:grid;gap:6px}
.medsale-field.full{grid-column:1/-1}
.medsale-field label{font-weight:750;color:#3f4548}
.medsale-field input,.medsale-field textarea{width:100%;box-sizing:border-box;border:1px solid #ccd8de;border-radius:8px;padding:10px 12px;font:inherit;background:#fff}
.medsale-field textarea{min-height:135px;resize:vertical}
.medsale-form-submit{margin-top:17px;display:inline-flex;min-height:44px;align-items:center;justify-content:center;border:0;border-radius:8px;background:#24A0E3;color:#fff;padding:9px 18px;font-weight:800;cursor:pointer}
.medsale-form-note{margin-top:12px;font-size:13px;color:#66737a;line-height:1.5}
.medsale-form-note a{color:#167bb1}
.medsale-alert{margin:0 0 18px;padding:12px 14px;border-radius:9px}
.medsale-alert.success{background:#eef8f0;color:#32683a}
.medsale-alert.error{background:#fff1f1;color:#8a3737}
.contact-page-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin:25px 0}
.contact-card{padding:22px;border:1px solid #dfe7eb;border-radius:12px;background:#fff}
.contact-card h2{margin-top:0}
.contact-card a{color:#167bb1}
@media(max-width:700px){.medsale-form-grid,.contact-page-grid{grid-template-columns:1fr}.medsale-field.full{grid-column:auto}.medsale-form-wrap{padding:18px}}


/* v1.0.3 — direction pages */
.direction-links{display:flex;gap:9px;flex-wrap:wrap;margin:20px 0 8px}
.direction-links a{display:inline-flex;align-items:center;min-height:38px;padding:7px 12px;border:1px solid #dbe5ea;border-radius:8px;background:#fff;color:#167bb1;text-decoration:none;font-weight:750}
.direction-links a:hover{border-color:#24A0E3;background:#f3f9fc}
.direction-products-title{margin:28px 0 16px;color:#3f4548}
.direction-empty{padding:18px;border:1px solid #e2e8eb;border-radius:10px;background:#f8fafb}


/* v1.0.6 — admin catalog audit */
.medsale-audit-table{border-collapse:collapse;width:100%;max-width:1100px;background:#fff}
.medsale-audit-table th,.medsale-audit-table td{padding:9px 12px;border:1px solid #dcdcde;text-align:left}
.medsale-audit-table th{background:#f6f7f7}


/* v1.0.7 — compact product cards: 5 columns on desktop */
.woocommerce ul.products,
ul.products{
  display:grid !important;
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  gap:16px !important;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after,
ul.products::before,
ul.products::after{display:none !important}
.woocommerce ul.products li.product,
.woocommerce ul.products .product-card,
ul.products .product-card{
  width:auto !important;
  max-width:none !important;
  margin:0 !important;
  float:none !important;
  box-sizing:border-box;
}
.product-card{padding:14px !important}
.product-card .thumb{
  min-height:190px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.product-card .thumb img{
  width:100% !important;
  max-width:210px !important;
  height:190px !important;
  object-fit:contain;
}
.product-card .woocommerce-loop-product__title{
  font-size:15px;
  line-height:1.35;
  min-height:4.05em;
}
.product-card .actions{gap:7px}
.product-card .actions .btn{padding-left:8px;padding-right:8px}

@media(max-width:1180px){
 .woocommerce ul.products,ul.products{grid-template-columns:repeat(4,minmax(0,1fr)) !important}
}
@media(max-width:900px){
 .woocommerce ul.products,ul.products{grid-template-columns:repeat(3,minmax(0,1fr)) !important}
}
@media(max-width:680px){
 .woocommerce ul.products,ul.products{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:12px !important}
 .product-card{padding:11px !important}
 .product-card .thumb{min-height:150px}
 .product-card .thumb img{height:150px !important}
 .product-card .actions{display:grid;grid-template-columns:1fr}
}
@media(max-width:420px){
 .woocommerce ul.products,ul.products{grid-template-columns:1fr !important}
}


/* v1.0.8 — cleaner product cards */
.product-card{
  display:flex;
  flex-direction:column;
  min-width:0;
}
.product-card .meta{
  font-size:12px;
  line-height:1.35;
  color:#748087;
  margin-top:8px;
}
.product-card .price{
  margin-top:auto;
  padding-top:10px;
  font-size:17px;
  font-weight:800;
  color:#3f4548;
}
.product-card .price del{
  font-size:13px;
  font-weight:500;
  color:#89949a;
}
.product-card .price ins{text-decoration:none}
.product-card .stock-line{
  min-height:1.4em;
  margin:7px 0 10px;
  font-size:12px;
  color:#65737a;
}
.product-card .actions{
  margin-top:0;
  display:grid;
  grid-template-columns:1fr;
}
.product-card .actions .btn{
  width:100%;
  box-sizing:border-box;
  min-height:38px;
  padding:7px 9px;
}
.product-card .actions .btn-primary{
  display:none;
}
/* КП остаётся на странице товара; каталог становится спокойнее и компактнее. */


/* v1.0.9 — catalog menu based on real imported taxonomy */
.catalog-mega-title{display:block;margin-bottom:7px}
.catalog-mega-list li a{line-height:1.3}
.catalog-mega-all{grid-column:1/-1}

/* v1.1.1 — product commercial block */
.single-product .medsale24-product-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0}
.single-product .medsale24-product-actions .btn{min-height:44px;display:flex;align-items:center;justify-content:center;text-align:center}
.single-product .medsale24-product-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px;margin:14px 0 18px;padding:14px 16px;border:1px solid #e3e7e9;border-radius:8px;background:#fafbfb}
.single-product .medsale24-product-facts strong{display:block;margin-bottom:2px;font-size:12px;color:#78848a;font-weight:600}
.single-product .medsale24-product-facts span{font-size:14px;color:#3f4548}
@media(max-width:680px){.single-product .medsale24-product-actions,.single-product .medsale24-product-facts{grid-template-columns:1fr}}


/* v1.1.2 — structured content below the single product */
.medsale24-product-sections{
  clear:both;
  margin:34px 0 10px;
}
.medsale24-product-section{
  margin:0 0 28px;
  padding-top:4px;
}
.medsale24-product-section h2{
  margin:0 0 14px;
  font-size:24px;
  line-height:1.25;
  color:#3f4548;
}
.medsale24-spec-table{
  width:100%;
  border-collapse:collapse;
  border:1px solid #e2e7e9;
}
.medsale24-spec-table th,
.medsale24-spec-table td{
  padding:10px 12px;
  border-bottom:1px solid #e7ebed;
  vertical-align:top;
  text-align:left;
}
.medsale24-spec-table th{
  width:34%;
  font-weight:600;
  color:#66747a;
  background:#fafbfb;
}
.medsale24-product-links{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.medsale24-product-links a{
  display:inline-flex;
  padding:7px 11px;
  border:1px solid #dce3e6;
  border-radius:6px;
  text-decoration:none;
  background:#fff;
}
@media(max-width:680px){
 .medsale24-product-section h2{font-size:21px}
 .medsale24-spec-table th{width:42%}
 .medsale24-spec-table th,.medsale24-spec-table td{padding:8px}
}


/* v1.1.3 — compatible products / alternatives */
.medsale24-related-block{clear:both;margin:32px 0}
.medsale24-related-block>h2{font-size:24px;line-height:1.25;margin:0 0 15px;color:#3f4548}
.medsale24-related-grid{
 display:grid;
 grid-template-columns:repeat(4,minmax(0,1fr));
 gap:14px;
}
.medsale24-related-item{
 display:flex;
 flex-direction:column;
 padding:12px;
 border:1px solid #e2e7e9;
 border-radius:8px;
 background:#fff;
 min-width:0;
}
.medsale24-related-item img{
 width:100%;
 height:150px;
 object-fit:contain;
 margin-bottom:8px;
}
.medsale24-related-item-title{
 font-size:14px;
 line-height:1.35;
 font-weight:700;
 color:#3f4548;
 text-decoration:none;
}
.medsale24-related-item .price{margin-top:auto;padding-top:8px;font-size:14px;font-weight:700}
.medsale24-related-item .meta{font-size:11px;color:#78848a;margin-top:5px}
@media(max-width:900px){.medsale24-related-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:680px){.medsale24-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.medsale24-related-block>h2{font-size:21px}}


/* v1.1.4 — product documents */
.medsale24-documents-list{
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:10px;
 margin:0;
 padding:0;
 list-style:none;
}
.medsale24-document{
 display:flex;
 align-items:center;
 gap:10px;
 padding:11px 13px;
 border:1px solid #e1e6e8;
 border-radius:7px;
 background:#fff;
}
.medsale24-document a{font-weight:600;text-decoration:none}
.medsale24-document-type{
 flex:0 0 auto;
 font-size:11px;
 font-weight:800;
 color:#66747a;
 border:1px solid #dce3e6;
 border-radius:4px;
 padding:3px 5px;
}
@media(max-width:680px){.medsale24-documents-list{grid-template-columns:1fr}}

/* v1.2.2 — redesigned company page */
.company-kicker,.company-section-label{display:block;margin:0 0 8px;color:#168ac8;font-size:13px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.company-hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}.company-hero-actions .btn{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
.company-intro{max-width:940px}.company-intro p{font-size:17px;line-height:1.7;color:#4f5b62}
.company-partner-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:18px}.company-partner-grid article{padding:18px;border:1px solid #dce8ee;border-radius:12px;background:#fff}.company-partner-grid strong{display:block;font-size:19px;color:#3f4548}.company-partner-grid span{display:block;margin:5px 0 8px;color:#168ac8;font-size:13px;font-weight:800}.company-partner-grid p{margin:0;color:#59646b}
.company-benefits{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.company-benefits article{padding:20px;border:1px solid #e1e7eb;border-radius:14px;background:#fff}.company-benefits h3{margin:0 0 8px;color:#3f4548;font-size:19px}.company-benefits p{margin:0;line-height:1.6;color:#59646b}
.company-steps{list-style:none;margin:18px 0 0;padding:0;display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.company-steps li{display:flex;gap:14px;padding:18px;border:1px solid #e1e7eb;border-radius:14px;background:#fff}.company-steps>li>span{flex:0 0 34px;width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#24A0E3;color:#fff;font-weight:800}.company-steps strong{color:#3f4548}.company-steps p{margin:5px 0 0;color:#59646b;line-height:1.55}
.company-cta{display:flex;align-items:center;justify-content:space-between;gap:30px;margin:38px 0;padding:28px 30px;border-radius:16px;background:#f5f9fc;border:1px solid #e0ebf1}.company-cta h2{margin:0 0 8px;color:#3f4548}.company-cta p{margin:0;max-width:720px;color:#59646b;line-height:1.6}.company-cta .company-hero-actions{margin-top:0;flex:0 0 auto}
.company-requisites-wrap{margin-bottom:0}.company-requisites a{font-weight:700}
@media(max-width:800px){.company-partner-grid,.company-benefits,.company-steps{grid-template-columns:1fr}.company-cta{display:block;padding:24px}.company-cta .company-hero-actions{margin-top:18px}}


/* v1.2.4 — second-level product-category flyouts in the header catalog */
@media(min-width:761px){
 .catalog-mega-inner{overflow:visible;max-height:none}
 .catalog-mega-col{position:relative}
 .catalog-mega-list .catalog-mega-item{position:relative}
 .catalog-mega-list .catalog-mega-item>a{position:relative;padding-right:20px!important}
 .catalog-submenu-arrow{position:absolute;right:2px;top:50%;transform:translateY(-50%);font-size:19px;line-height:1;color:#8a959b}
 .catalog-submenu{position:absolute;left:calc(100% + 10px);top:-12px;z-index:1010;width:290px;max-height:60vh;overflow:auto;padding:14px 16px;background:#fff;border:1px solid #dfe6ea;border-radius:10px;box-shadow:0 14px 36px rgba(30,45,55,.18);opacity:0;visibility:hidden;transform:translateX(6px);pointer-events:none;transition:opacity .14s ease,transform .14s ease,visibility .14s}
 .catalog-mega-col:nth-child(n+3) .catalog-submenu{left:auto;right:calc(100% + 10px);transform:translateX(-6px)}
 .catalog-mega-item.has-children:hover>.catalog-submenu,.catalog-mega-item.has-children:focus-within>.catalog-submenu{opacity:1;visibility:visible;transform:translateX(0);pointer-events:auto}
 .catalog-submenu-heading{margin:0 0 9px;padding-bottom:8px;border-bottom:1px solid #edf1f3;font-size:14px;font-weight:800;color:#3f4548}
 .catalog-submenu ul{list-style:none!important;margin:0!important;padding:0!important;display:grid;gap:3px}
 .catalog-submenu li{margin:0!important;padding:0!important}
 .catalog-submenu a{display:flex!important;justify-content:space-between;gap:10px;padding:6px 4px!important;color:#4d5960!important;font-size:13px!important;font-weight:550!important;text-decoration:none!important;background:none!important;box-shadow:none!important}
 .catalog-submenu a:hover,.catalog-submenu a:focus{color:#24A0E3!important;text-decoration:underline!important}
}
@media(max-width:760px){
 .catalog-submenu-arrow{float:right;font-size:18px;transform:rotate(90deg);transition:transform .15s ease}
 .catalog-mega-item.submenu-open>.catalog-submenu-arrow{transform:rotate(-90deg)}
 .catalog-submenu{display:none;margin:6px 0 2px 10px;padding:8px 0 4px 12px;border-left:2px solid #e7eef2}
 .catalog-mega-item.submenu-open>.catalog-submenu{display:block}
 .catalog-submenu-heading{font-size:12px;font-weight:800;color:#7a858b;margin:0 0 6px}
 .catalog-submenu ul{list-style:none!important;margin:0!important;padding:0!important;display:grid;gap:3px}
 .catalog-submenu a{font-size:13px!important;padding:5px 0!important}
}


/* === Medsale24 1.4.7: Official dealer / representative cards ===
   Gutenberg output uses Group blocks, not the legacy <article> markup.
   :where() keeps specificity low so Gutenberg's user-selected styles can override defaults. */
.company-page .company-partner-grid{
  align-items:stretch !important;
  gap:18px;
  margin:20px 0 34px;
}
.company-page .company-partner-grid > .wp-block-column{
  display:flex;
  min-width:0;
}
.company-page .company-partner-grid > .wp-block-column > :where(.wp-block-group){
  position:relative;
  width:100%;
  min-height:100%;
  box-sizing:border-box;
  padding:22px 22px 20px;
  border:1px solid #dce8ee;
  border-radius:14px;
  background:#fff;
  box-shadow:0 7px 22px rgba(32,74,96,.07);
  overflow:hidden;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.company-page .company-partner-grid > .wp-block-column > :where(.wp-block-group)::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:4px;
  background:linear-gradient(90deg,#168ac8,#28a9df);
}
.company-page .company-partner-grid > .wp-block-column > :where(.wp-block-group):hover{
  transform:translateY(-3px);
  border-color:#b9dce9;
  box-shadow:0 12px 28px rgba(32,74,96,.12);
}
.company-page .company-partner-grid :where(h3.wp-block-heading){
  margin:3px 0 12px;
  color:#3f4548;
  font-size:20px;
  line-height:1.25;
}
.company-page .company-partner-grid :where(p.wp-block-paragraph){
  margin:0;
  color:#59646b;
  line-height:1.6;
}
.company-page .company-partner-grid :where(p.wp-block-paragraph strong){
  display:inline-block;
  margin:0 0 7px;
  padding:4px 9px;
  border-radius:999px;
  background:#eef8fd;
  color:#168ac8;
  font-size:13px;
  line-height:1.3;
  font-weight:800;
}
@media(max-width:800px){
  .company-page .company-partner-grid{
    grid-template-columns:1fr;
    gap:14px;
    margin-bottom:26px;
  }
  .company-page .company-partner-grid > .wp-block-column > :where(.wp-block-group){
    padding:20px;
  }
}


/* === 1.4.8 partner catalog actions === */
.company-page .company-partner-grid > .wp-block-column > :where(.wp-block-group){
  display:flex;
  flex-direction:column;
}
.company-page .company-partner-grid .company-partner-actions{
  margin-top:auto;
  padding-top:18px;
}
.company-page .company-partner-grid .company-partner-actions .wp-block-button{
  width:100%;
}
.company-page .company-partner-grid .company-partner-actions .wp-block-button__link{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:44px;
  box-sizing:border-box;
  border-radius:10px;
  background:#168ac8;
  color:#fff;
  font-weight:800;
  text-decoration:none;
  transition:transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.company-page .company-partner-grid .company-partner-actions .wp-block-button__link:hover{
  background:#117ab3;
  color:#fff;
  transform:translateY(-1px);
  box-shadow:0 7px 16px rgba(22,138,200,.20);
}


/* === 1.4.9 partner buttons: restrained About-page style === */
.company-page .company-partner-grid .company-partner-actions .wp-block-button__link{
  border:0 !important;
  outline:0;
  box-shadow:none;
  background:#f3f6f7;
  color:#3f5965;
  border-radius:10px;
  font-weight:750;
}
.company-page .company-partner-grid .company-partner-actions .wp-block-button__link:hover,
.company-page .company-partner-grid .company-partner-actions .wp-block-button__link:focus{
  border:0 !important;
  outline:0;
  background:#eaf0f2;
  color:#263f4a;
  box-shadow:none;
  transform:translateY(-1px);
}
.company-page .company-partner-grid .company-partner-actions .wp-block-button__link:focus-visible{
  outline:2px solid currentColor;
  outline-offset:2px;
}



/* === 1.5.1 official partners: whole card is the link, no extra button === */
.company-page .company-partner-grid > .wp-block-column{
  display:flex;
}
.company-page .company-partner-grid > .wp-block-column > .wp-block-group{
  position:relative;
  width:100%;
  border:1px solid #e2e6e8 !important;
  background:#fff !important;
  box-shadow:0 6px 20px rgba(28,45,54,.06) !important;
}
.company-page .company-partner-grid > .wp-block-column > .wp-block-group::before{
  display:none !important;
  content:none !important;
}
.company-page .company-partner-grid .m24-partner-card-link{
  display:flex;
  flex-direction:column;
  width:100%;
  height:100%;
  box-sizing:border-box;
  color:inherit;
  text-decoration:none !important;
  cursor:pointer;
}
.company-page .company-partner-grid .m24-partner-card-link h3,
.company-page .company-partner-grid .m24-partner-card-link p,
.company-page .company-partner-grid .m24-partner-card-link strong{
  color:inherit;
  text-decoration:none;
}
.company-page .company-partner-grid > .wp-block-column > .wp-block-group:hover{
  border-color:#d6dcdf !important;
  box-shadow:0 10px 24px rgba(28,45,54,.09) !important;
  transform:translateY(-1px);
}
.company-page .company-partner-grid .m24-partner-card-link:focus-visible{
  outline:2px solid #344b55;
  outline-offset:3px;
  border-radius:inherit;
}

/* === 1.5.2 clickable homepage direction cards === */
.home-directions > .wp-block-column{display:flex}
.home-directions > .wp-block-column > .info-card{width:100%}
.home-directions .m24-direction-card-link{
  display:block;width:100%;height:100%;box-sizing:border-box;
  color:inherit;text-decoration:none!important;cursor:pointer
}
.home-directions .m24-direction-card-link h3,
.home-directions .m24-direction-card-link p{color:inherit;text-decoration:none}
.home-directions > .wp-block-column > .info-card{
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease
}
.home-directions > .wp-block-column > .info-card:hover{transform:translateY(-2px)}
.home-directions .m24-direction-card-link:focus-visible{
  outline:2px solid currentColor;outline-offset:3px;border-radius:inherit
}


/* === 1.5.4 compact catalog section cards === */
.subcategories .grid.grid-3{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.subcategories .category-card{
  padding:11px 14px;
  border-radius:9px;
  min-height:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.subcategories .category-card h3{
  margin:0;
  font-size:15px;
  line-height:1.25;
  font-weight:700;
}
.subcategories .category-card p{
  margin:4px 0 0;
  font-size:12px;
  line-height:1.2;
  color:var(--ms-muted);
}
@media(max-width:1000px){
  .subcategories .grid.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
  .subcategories .grid.grid-3{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
}
@media(max-width:480px){
  .subcategories .grid.grid-3{grid-template-columns:1fr}
  .subcategories .category-card{padding:10px 12px}
}


/* 1.5.23: responsive factual data table extracted from product content for Yoast readability analysis. */
.m24-product-data-table{margin:32px 0}.m24-product-data-table h2{margin-bottom:16px}.m24-table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}.m24-table-scroll table{width:100%;min-width:760px;border-collapse:collapse}.m24-table-scroll th,.m24-table-scroll td{padding:8px 10px;border:1px solid #e1e5ea;vertical-align:top}.m24-table-scroll tr:nth-child(even){background:#fafbfc}


/* 1.5.52 — complete mobile header: visible product search, Catalog shortcut and collapsible navigation. */
.mobile-header-controls{display:none}
@media(max-width:900px){
 .site-header{position:relative;z-index:1000}
 .header-main{display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:space-between!important;gap:9px 12px!important;min-height:0!important;padding:9px 0 11px!important}
 .brand-wrap{order:1!important;flex:1 1 auto!important;max-width:calc(100% - 210px)!important;min-width:0!important}
 .medsale24-logo-link{max-width:100%!important}
 .medsale24-logo{height:auto!important;max-height:54px!important;max-width:100%!important;width:auto!important}
 .mobile-header-controls{order:2;display:flex;align-items:center;gap:7px;flex:0 0 auto}
 .mobile-catalog-link,.mobile-nav-toggle{min-height:40px;border-radius:8px;font:inherit;font-size:14px;font-weight:800;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
 .mobile-catalog-link{padding:0 12px;background:var(--ms-blue);border:1px solid var(--ms-blue);color:#fff!important;box-shadow:0 3px 9px rgba(36,160,227,.18)}
 .mobile-catalog-link:hover,.mobile-catalog-link:focus{text-decoration:none;filter:brightness(.96)}
 .mobile-nav-toggle{gap:7px;padding:0 10px;border:1px solid var(--ms-border);background:#fff;color:var(--ms-dark)}
 .mobile-nav-toggle-icon{width:18px;display:grid;gap:3px}
 .mobile-nav-toggle-icon i{display:block;height:2px;border-radius:3px;background:currentColor;transition:transform .16s ease,opacity .16s ease}
 .site-header.mobile-nav-open .mobile-nav-toggle-icon i:nth-child(1){transform:translateY(5px) rotate(45deg)}
 .site-header.mobile-nav-open .mobile-nav-toggle-icon i:nth-child(2){opacity:0}
 .site-header.mobile-nav-open .mobile-nav-toggle-icon i:nth-child(3){transform:translateY(-5px) rotate(-45deg)}
 .header-search{order:3!important;display:block!important;flex:1 0 100%!important;max-width:none!important;width:100%!important}
 .header-search form{width:100%;border-radius:10px}
 .header-search input[type="search"]{height:44px;font-size:16px;padding:0 12px}
 .header-search button{height:44px;padding:0 14px}
 .nav-strip{display:none!important;border-top:1px solid var(--ms-border);box-shadow:0 9px 18px rgba(30,45,55,.08)}
 .site-header.mobile-nav-open .nav-strip{display:block!important}
 .main-nav{display:block!important;min-height:0!important;width:100%}
 .main-nav .menu{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;width:100%;padding:8px 0 12px!important}
 .main-nav .menu>li{display:block;width:100%;border-bottom:1px solid #edf1f3}
 .main-nav .menu>li:last-child{border-bottom:0}
 .main-nav .menu>li>a{display:flex!important;align-items:center!important;width:100%!important;min-height:46px!important;margin:0!important;padding:10px 8px!important;font-size:15px!important;color:var(--ms-dark)!important;background:none!important;border-radius:0!important;box-shadow:none!important}
 .main-nav .menu>li.menu-catalog>a{background:var(--ms-blue)!important;color:#fff!important;border-radius:8px!important;padding:10px 13px!important;margin:4px 0!important;width:100%!important}
 .catalog-mega{position:static!important;width:100%!important;padding-top:4px!important;opacity:1!important;visibility:visible!important;transform:none!important;pointer-events:auto!important;display:none!important}
 .menu-catalog.catalog-open>.catalog-mega{display:block!important}
 .catalog-mega-inner{grid-template-columns:1fr!important;max-height:58vh!important;overflow:auto!important;box-shadow:none!important;border-radius:8px!important}
 .catalog-mega-col{padding:12px 14px!important;border-right:0!important;border-bottom:1px solid #edf1f3!important}
 .catalog-mega-title{font-size:15px!important}
 .catalog-mega-list a{font-size:14px!important;padding:5px 0!important}
 body.m24-mobile-nav-lock{overflow:hidden}
}
@media(max-width:560px){
 .header-main{gap:8px!important}
 .brand-wrap{max-width:calc(100% - 174px)!important}
 .medsale24-logo{max-height:46px!important}
 .mobile-catalog-link{padding:0 10px;font-size:13px}
 .mobile-nav-toggle{padding:0 9px;min-width:42px}
 .mobile-nav-toggle-text{display:none}
 .header-search button{padding:0 12px;font-size:14px}
}
@media(max-width:390px){
 .brand-wrap{max-width:calc(100% - 157px)!important}
 .medsale24-logo{max-height:42px!important}
 .mobile-catalog-link{padding:0 8px}
}

@media(max-width:900px){
 .catalog-submenu-arrow{float:right!important;position:static!important;transform:rotate(90deg)!important;font-size:18px!important;line-height:1!important;margin-left:auto}
 .catalog-mega-item.submenu-open>a .catalog-submenu-arrow{transform:rotate(-90deg)!important}
 .catalog-submenu{position:static!important;left:auto!important;right:auto!important;top:auto!important;width:auto!important;max-height:none!important;overflow:visible!important;display:none!important;margin:6px 0 2px 10px!important;padding:8px 0 4px 12px!important;border:0!important;border-left:2px solid #e7eef2!important;border-radius:0!important;box-shadow:none!important;opacity:1!important;visibility:visible!important;transform:none!important;pointer-events:auto!important}
 .catalog-mega-item.submenu-open>.catalog-submenu{display:block!important}
 .catalog-submenu-heading{font-size:12px!important;font-weight:800!important;color:#7a858b!important;margin:0 0 6px!important;padding:0!important;border:0!important}
 .catalog-submenu ul{list-style:none!important;margin:0!important;padding:0!important;display:grid!important;gap:3px!important}
 .catalog-submenu a{font-size:13px!important;padding:5px 0!important;display:block!important}
}

/* Medsale24 1.5.56 — mobile WooCommerce product attributes */
@media(max-width:680px){
 .single-product table.woocommerce-product-attributes{width:100%;table-layout:fixed}
 .single-product .woocommerce-product-attributes th.woocommerce-product-attributes-item__label{width:46%;padding-right:14px;white-space:normal;overflow-wrap:normal;word-break:normal;hyphens:none}
 .single-product .woocommerce-product-attributes td.woocommerce-product-attributes-item__value{width:54%;word-break:normal;overflow-wrap:anywhere}
}
@media(max-width:420px){
 .single-product table.woocommerce-product-attributes,
 .single-product table.woocommerce-product-attributes tbody,
 .single-product table.woocommerce-product-attributes tr,
 .single-product table.woocommerce-product-attributes th,
 .single-product table.woocommerce-product-attributes td{display:block;width:100%!important}
 .single-product .woocommerce-product-attributes tr{padding:12px 0;border-bottom:1px solid var(--ms-border)}
 .single-product .woocommerce-product-attributes th.woocommerce-product-attributes-item__label{padding:0 0 4px!important;border:0!important}
 .single-product .woocommerce-product-attributes td.woocommerce-product-attributes-item__value{padding:0!important;border:0!important}
 .single-product .woocommerce-product-attributes td.woocommerce-product-attributes-item__value p{margin:0}
}

/* 1.5.60: visible table grids and consistent parameter columns. */
.single-product article.product .section table,
.single-product article.product .product-short-description table{width:100%;border-collapse:collapse;border:1px solid #bdc7ce;}
.single-product article.product .section table th,
.single-product article.product .section table td,
.single-product article.product .product-short-description table th,
.single-product article.product .product-short-description table td{border:1px solid #bdc7ce;padding:10px 12px;vertical-align:top;overflow-wrap:anywhere;}
.single-product .m24-parameter-table{table-layout:fixed!important;}
.single-product .m24-parameter-table tr > :first-child{width:50%!important;}
.single-product .m24-parameter-table tr > :nth-child(2){width:50%!important;}
.product-image-zoom,.product-image-zoom img{cursor:zoom-in;}
.product-image-zoom{display:flex;align-items:center;justify-content:center;width:100%;}
.product-image-zoom:focus-visible{outline:3px solid var(--ms-blue);outline-offset:4px;}
.m24-image-dialog{width:min(1100px,96vw);max-width:96vw;max-height:94vh;padding:16px;border:0;border-radius:12px;background:#fff;color:#222;}
.m24-image-dialog::backdrop{background:rgba(0,0,0,.78);}
.m24-image-dialog:not([open]){display:none;}
.m24-image-dialog-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;}
.m24-image-dialog button{min-width:44px;min-height:44px;border:1px solid #bdc7ce;border-radius:6px;background:#fff;color:#222;cursor:pointer;font-size:20px;}
.m24-image-dialog img{display:block;margin:auto;width:auto;max-width:100%;max-height:calc(90vh - 100px);object-fit:contain;}
.m24-image-dialog-controls{display:flex;justify-content:center;gap:12px;margin-top:10px;}
body.m24-image-open{overflow:hidden;}
@media(max-width:600px){.single-product article.product .section table th,.single-product article.product .section table td{padding:8px;font-size:14px;}.m24-image-dialog{padding:10px;}}

.m24-image-dialog-controls[hidden]{display:none;}

/* 1.5.62: consistent column grid across description and Woo attribute tables. */
.single-product article.product .section table.m24-uniform-table,
.single-product article.product .product-short-description table.m24-uniform-table{width:100%!important;max-width:100%;table-layout:fixed!important;}

/* 1.5.63: header separators removed; product table borders stay scoped. */
.site-header{border:0!important;box-shadow:none!important;}
.site-header .nav-strip{border-top:0!important;border-bottom:0!important;}

/* v1.5.77 — match direction-card text to popular catalog links. */
.home-directions .m24-direction-card-link{
  transition:color .16s ease;
}
.home-directions > .wp-block-column > .info-card:hover .m24-direction-card-link,
.home-directions .m24-direction-card-link:focus-visible{
  color:#cf2e2e;
}

/* Contact quote button: preserve all existing typography and geometry. */
body.page-id-1767 .contact-card a.wp-block-button__link,
body.page-id-1767 .contact-card a.wp-block-button__link:hover,
body.page-id-1767 .contact-card a.wp-block-button__link:focus{color:#fff;}

/* Align the company heading and introduction with the page text. */
.company-page .company-hero{padding-inline:0;}
.company-page .company-hero > h1,
.company-page .company-hero > p{max-width:none;margin-inline:0!important;}

/* Use the supplied MAX emblem at the existing button icon size. */
.floating-messenger--max img.max-official-mark{width:26px!important;height:26px!important;flex:0 0 26px!important;object-fit:contain;}

/* Original INKART configuration table, rendered with current catalogue data. */
.m24-basis-table-scroll{overflow-x:auto;margin:18px 0 28px}
.single-product article.product table.m24-basis-table{width:100%;min-width:680px;table-layout:auto!important;border-collapse:collapse}
.single-product article.product table.m24-basis-table th,.single-product article.product table.m24-basis-table td{padding:12px;border-bottom:1px solid var(--ms-border);vertical-align:middle;text-align:left}
.m24-basis-table th{background:var(--ms-bg);color:var(--ms-dark)}
.m24-basis-table .m24-basis-photo{width:94px}
.m24-basis-table .m24-basis-photo img{width:70px;height:70px;object-fit:contain}
.m24-basis-table .m24-basis-price{white-space:nowrap}
.m24-basis-table .btn{white-space:nowrap;font-size:14px}

/* v1.5.133 — complete catalog navigation, scrollable on smaller screens. */
.catalog-mega-inner{max-height:75vh;overflow:auto;align-items:start}
.catalog-submenu .catalog-submenu-tree .catalog-submenu-tree{margin:3px 0 5px 12px!important;padding-left:8px!important;border-left:1px solid #e1e8ec}
@media(min-width:901px){
 .catalog-mega-item>.catalog-submenu{display:none;position:static;left:auto;right:auto;width:auto;max-height:none;margin:5px 0 9px;padding:9px;opacity:1;visibility:visible;transform:none;pointer-events:auto;box-shadow:none}
 .catalog-mega-item.has-children:hover>.catalog-submenu,.catalog-mega-item.has-children:focus-within>.catalog-submenu{display:block;transform:none}
}
