/* Approved product layouts: compact packaging and hand/arm collection. */
#mac-home .mac-hand-collection{display:flex;align-items:center;justify-content:center;width:100%;min-width:0;aspect-ratio:3/2;background:#dfe2e3;padding:24px 18px;overflow:hidden;box-sizing:border-box}
#mac-home .mac-hand-lineup{display:grid;gap:10px;width:100%;align-items:end}
#mac-home .mac-hand-frame{position:relative;min-width:0;mix-blend-mode:multiply}
#mac-home .mac-hand-frame>img{position:absolute!important;max-width:none!important;object-fit:fill!important;padding:0!important;margin:0!important;aspect-ratio:auto!important;transform-origin:0 0;background:transparent!important}
#mac-home .mac-product-section .mac-hand-hero{grid-template-columns:36% 64%!important;min-height:285px!important;align-items:stretch!important;background:#f0f5f2!important}
#mac-home .mac-product-section .mac-hand-hero .mac-hand-copy{padding:28px!important}
#mac-home .mac-product-section .mac-hand-hero h1{font-size:34px!important;line-height:1.04!important;margin:15px 0!important;letter-spacing:-1px!important}
#mac-home .mac-hand-hero h1 em{color:#008f8c!important;font-style:normal}
#mac-home .mac-product-section .mac-hand-hero .mac-hand-copy>p:not(.eyebrow){font-size:14px!important;margin-bottom:22px!important}
#mac-home .mac-product-section .mac-hand-hero .eyebrow{font-size:11px!important;color:#008f8c!important;letter-spacing:1.3px;font-weight:700}
#mac-home .mac-hand-banner-stage{background:#dfe2e3;display:flex;flex-direction:column;justify-content:center;min-width:0;padding:25px 20px}
#mac-home .mac-hand-banner-stage>.mac-hand-collection{aspect-ratio:auto;padding:0;overflow:visible}
#mac-home .mac-product-section .mac-hand-hero .mac-hand-models{font:700 11px/1.7 Arial,Helvetica,sans-serif!important;text-align:center;margin:20px 0 0!important;color:#40565b!important}
#mac-home .mac-product-section[data-product-route=packaging] .mac-product-rails{grid-template-columns:minmax(125px,.65fr) minmax(0,4fr) minmax(125px,.65fr);align-items:stretch;gap:14px}
#mac-home #mac-packaging-live .mac-families{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:auto;gap:12px;align-items:stretch}
#mac-home #mac-packaging-live .mac-families .mac-family-copy{padding:13px;min-height:135px;gap:0}
#mac-home #mac-packaging-live .mac-families h3{font:700 17px/1.2 Arial,Helvetica,sans-serif;margin:7px 0 10px;letter-spacing:-.3px}
#mac-home #mac-packaging-live .mac-families p{font:400 13px/1.55 Arial,Helvetica,sans-serif;margin:0 0 10px;min-height:0}
#mac-home #mac-packaging-live .mac-families .mac-number{font-size:10px;letter-spacing:.8px;color:#627c7c;margin:0}
#mac-home #mac-packaging-live .mac-families .mac-text-button{font-size:12px;padding-top:6px;min-height:30px;text-decoration:none;line-height:1.5}
#mac-home #mac-packaging-live .mac-families .mac-picture{height:150px;min-height:0;aspect-ratio:auto;background-size:contain;background-repeat:no-repeat;background-position:center;background-color:#b0b5bd}
#mac-home #mac-packaging-live .mac-category-picture-link{display:block;flex:none}
#mac-home .mac-product-section[data-product-route=packaging] .mac-product-rail{position:static;height:auto;min-height:0;align-self:stretch;padding:17px 13px;gap:15px}
#mac-home .mac-product-section[data-product-route=packaging] .mac-product-rail h2{font-size:23px!important;line-height:1.12!important}
#mac-home .mac-product-section[data-product-route=packaging] .mac-product-rail p{font-size:13px!important;line-height:1.6!important}
#mac-home .mac-product-section[data-product-route=packaging] .mac-product-rail-photo{margin:auto 0;width:100%;height:240px;min-height:180px;max-height:300px;flex:1}
#mac-home .mac-product-section[data-product-route=packaging] .mac-product-rail-action{font-size:12px;margin-top:0}
#mac-home .mac-approved-machine-photo{height:150px;overflow:hidden;background:#b0b5bd;display:flex;align-items:center;justify-content:center}
#mac-home .mac-approved-machine-photo .mac-machine-frame{width:225px;max-width:100%;aspect-ratio:1.5;background:transparent;mix-blend-mode:multiply}
#mac-home #mac-packaging-live .mac-packing-line-help{background:#18343c;color:#fff;padding:17px;gap:13px;display:flex;flex-direction:column;align-items:start}
#mac-home #mac-packaging-live .mac-packing-line-help .mac-eyebrow{color:#94e3df;font-size:10px;margin:0}
#mac-home #mac-packaging-live .mac-packing-line-help h3{font-size:23px;color:#fff;margin:0}
#mac-home #mac-packaging-live .mac-packing-line-help p{color:#dcebe5}
#mac-home #mac-packaging-live .mac-packing-line-help .mac-button{margin-top:auto;font-size:12px}
@media(max-width:1100px){#mac-home .mac-product-section[data-product-route=packaging] .mac-product-rails{grid-template-columns:120px minmax(0,4fr) 120px;gap:12px}#mac-home #mac-packaging-live .mac-families h3{font-size:15px}#mac-home #mac-packaging-live .mac-families .mac-family-copy{padding:12px}#mac-home #mac-packaging-live .mac-families .mac-picture{height:125px}}
@media(max-width:900px){#mac-home .mac-product-section[data-product-route=packaging] .mac-product-rails{grid-template-columns:1fr 1fr}#mac-home .mac-product-section[data-product-route=packaging] .mac-product-grid-area{grid-column:1/-1;grid-row:1}#mac-home .mac-product-section[data-product-route=packaging] .mac-product-rail{grid-row:2}#mac-home #mac-packaging-live .mac-families{grid-template-columns:repeat(2,minmax(0,1fr))}#mac-home .mac-product-section .mac-hand-hero{grid-template-columns:1fr!important}#mac-home .mac-hand-banner-stage{padding:25px 18px}}
@media(max-width:450px){#mac-home #mac-packaging-live .mac-families{grid-template-columns:1fr}#mac-home .mac-product-section[data-product-route=packaging] .mac-product-rails{grid-template-columns:1fr}#mac-home .mac-product-section[data-product-route=packaging] .mac-product-rail{grid-row:auto}#mac-home .mac-hand-lineup{gap:6px}#mac-home .mac-hand-collection{padding:22px 12px}#mac-home .mac-hand-models{font-size:10px!important}}
/* Approved five product groups plus sourcing support, scoped to this page. */
#mac-home .mac-product-section[data-product-route=hand-arm-protection] .mac-glove-category-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:20px!important;align-items:stretch;margin:24px 0 30px!important}
#mac-home .mac-glove-category-grid{--cat-product-height:150px}
#mac-home .mac-glove-category-grid>.mac-glove-product-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid #d5dfdc;border-radius:4px;background:#fff;text-align:left;padding:0}
#mac-home .mac-glove-category-photo{width:100%;height:210px;display:flex;align-items:center;justify-content:center;padding:24px 18px;background:#b0b5bd;overflow:hidden;box-sizing:border-box}
#mac-home .mac-glove-category-objects{display:grid;gap:16px;align-items:end;max-width:100%;flex:none}
#mac-home .mac-glove-category-frame{position:relative;min-width:0;mix-blend-mode:multiply}
#mac-home .mac-glove-category-frame>img{position:absolute!important;max-width:none!important;object-fit:fill!important;padding:0!important;margin:0!important;aspect-ratio:auto!important;transform-origin:0 0;background:transparent!important}
#mac-home .mac-glove-category-grid .photo-card-copy{padding:20px!important;display:flex;flex-direction:column;align-items:start;flex:1;min-width:0}
#mac-home .mac-glove-category-grid .number{font:700 10px/1.5 Arial,Helvetica,sans-serif;color:#698080;letter-spacing:1px;margin:0 0 8px}
#mac-home .mac-glove-category-grid h3{font:700 21px/1.2 Arial,Helvetica,sans-serif;letter-spacing:-.3px;margin:0 0 12px;color:#18343c}
#mac-home .mac-glove-category-grid p{font:400 14px/1.6 Arial,Helvetica,sans-serif;color:#52696c;margin:0 0 20px}
#mac-home .mac-glove-category-grid .mac-glove-model-caption{font:700 13px/1.6 Arial,Helvetica,sans-serif;color:#008585;margin:0 0 16px}
#mac-home .mac-glove-card-actions{display:flex;flex-direction:column;align-items:start;gap:13px;margin-top:auto;padding-top:0}
#mac-home .mac-glove-card-actions .text-button{padding:0;margin:0;font:700 13px/1.5 Arial,Helvetica,sans-serif;min-height:32px;text-align:left}
#mac-home .mac-glove-card-actions .action{margin:0;font-size:13px;min-height:40px}
#mac-home .mac-glove-category-grid>.mac-glove-help{display:flex;flex-direction:column;align-items:start;min-width:0;background:#18343c;border:1px solid #18343c;border-radius:4px;padding:28px 25px;gap:22px;color:#fff}
#mac-home .mac-glove-help .mac-glove-help-eyebrow{font:700 11px/1.6 Arial,Helvetica,sans-serif;color:#8ae1db;letter-spacing:1.2px}
#mac-home .mac-glove-help>h3{font:700 35px/1.04 Arial,Helvetica,sans-serif;letter-spacing:-1px;color:#fff;margin:0}
#mac-home .mac-glove-help>p{font:400 14px/1.65 Arial,Helvetica,sans-serif;color:#d6e7e2;margin:0}
#mac-home .mac-glove-help-details{display:flex;flex-direction:column;gap:13px;margin:0;padding-left:12px;border-left:3px solid #16b8b4}
#mac-home .mac-glove-help-details>span{font:400 13px/1.5 Arial,Helvetica,sans-serif;color:#d6e7e2}
#mac-home .mac-glove-help-bottom{width:100%;margin-top:auto;padding-top:8px;display:flex;flex-direction:column;gap:19px}
#mac-home .mac-glove-help-bottom>strong{font:700 18px/1.35 Arial,Helvetica,sans-serif;color:#fff}
#mac-home .mac-glove-help-bottom>.action{width:100%;font-size:13px;justify-content:space-between;text-align:left;padding:14px}
@media(max-width:900px){#mac-home .mac-product-section[data-product-route=hand-arm-protection] .mac-glove-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important}#mac-home .mac-glove-category-grid .photo-card-copy{padding:19px!important}#mac-home .mac-glove-category-grid h3{font-size:20px}}
@media(max-width:600px){#mac-home .mac-product-section[data-product-route=hand-arm-protection] .mac-glove-category-grid{grid-template-columns:1fr!important;gap:18px!important}#mac-home .mac-glove-category-grid{--cat-product-height:150px}#mac-home .mac-glove-category-photo{height:210px}#mac-home .mac-glove-category-grid>.mac-glove-help{min-height:400px;padding:26px}#mac-home .mac-glove-card-actions .text-button{min-height:44px}#mac-home .mac-glove-card-actions .action{min-height:44px}}

/* Each Safety & PPE subcategory opens with its matching product collection. */
#mac-home .mac-product-section .mac-product-hero>img.mac-safety-category-photo{background:#b0b5bd!important;padding:0!important;object-fit:contain!important}
/* Shared product spacing: fill the available grid tracks without hidden width caps. */
#mac-home .mac-product-section :is(.family-grid,.rope-family-grid,.rope-entry-grid,.tape-type-grid,.mac-glove-category-grid){width:100%;max-width:none;justify-items:stretch}
#mac-home .mac-product-section :is(.photo-card,.mac-glove-product-card){max-width:none;justify-self:stretch;width:100%}
#mac-home .mac-product-grid-area{width:100%;max-width:none}
#mac-home .mac-product-section .mac-product-rails{gap:20px;margin:24px 0 32px}
#mac-home .mac-product-grid-area>:is(.family-grid,.grid,.rope-family-grid,.rope-entry-grid,.mac-corner-options){gap:20px!important;max-width:none;width:100%;align-items:stretch}
#mac-home .mac-product-grid-area .photo-card-copy{padding:20px!important;gap:0}
#mac-home .mac-product-grid-area .photo-card-copy .number{margin:0 0 12px}
#mac-home .mac-product-grid-area .photo-card-copy h3{margin:0 0 12px}
#mac-home .mac-product-grid-area .photo-card-copy p{margin:0 0 20px;line-height:1.6}
#mac-home .mac-product-grid-area .photo-card-copy>.text-button{margin-top:auto;min-height:40px;display:flex;align-items:center}
#mac-home .mac-product-section[data-product-route=hand-arm-protection] .mac-glove-category-grid{max-width:none;width:100%}
/* On a single-row collection the banners follow the cards instead of leaving a long tail. */
@media(min-width:901px){
 #mac-home .mac-product-rails:has(>.mac-product-grid-area>.family-grid>:last-child:nth-child(-n+2)),
 #mac-home .mac-product-rails:has(>.mac-product-grid-area>.rope-entry-grid){align-items:stretch}
 #mac-home .mac-product-rails:has(>.mac-product-grid-area>.family-grid>:last-child:nth-child(-n+2))>.mac-product-rail,
 #mac-home .mac-product-rails:has(>.mac-product-grid-area>.rope-entry-grid)>.mac-product-rail{height:auto;min-height:0;position:static;align-self:stretch}
}
@media(max-width:1100px){#mac-home .mac-product-section .mac-product-rails{gap:16px}#mac-home .mac-product-grid-area>:is(.family-grid,.grid,.rope-family-grid,.rope-entry-grid,.mac-corner-options){gap:16px!important}}
@media(max-width:900px){#mac-home .mac-product-section .mac-product-rails>.mac-product-rail{height:auto;min-height:0;padding:22px;gap:16px}#mac-home .mac-product-rails>.mac-product-rail .mac-product-rail-photo{margin:4px 0;width:100%;height:180px;flex:none;min-height:0}#mac-home .mac-product-grid-area>:is(.family-grid,.grid,.rope-family-grid,.rope-entry-grid,.mac-corner-options){grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:600px){#mac-home .mac-product-section .mac-product-rails{grid-template-columns:1fr;gap:18px}#mac-home .mac-product-section .mac-product-rails>.mac-product-rail{grid-row:auto;grid-column:1}#mac-home .mac-product-section .mac-product-grid-area{grid-column:1;grid-row:1}#mac-home .mac-product-grid-area>:is(.family-grid,.grid,.rope-family-grid,.rope-entry-grid,.mac-corner-options){grid-template-columns:1fr!important;gap:18px!important}#mac-home .mac-product-section .mac-product-rail-photo img{max-height:180px}#mac-home .mac-product-grid-area .photo-card-copy{padding:20px!important}}
@media(min-width:1101px){#mac-home .mac-product-section:not([data-product-route=packaging]) .mac-product-rails{grid-template-columns:minmax(180px,.55fr) minmax(0,3fr) minmax(180px,.55fr)}}
@media(min-width:901px){#mac-home .mac-product-rails:has(>.mac-product-grid-area>.family-grid>:last-child:nth-child(-n+2))>.mac-product-grid-area>.family-grid{height:100%}}


/* Head Protection follows the shared compact category header. */
#mac-home .mac-product-section[data-product-route="head-protection"] .mac-product-hero>img{object-fit:contain!important;background:#b0b5bd!important}
#mac-home .mac-product-section[data-product-route="head-protection"] article[id]{scroll-margin-top:145px}

/* Safety category pages share the approved Head Protection banner proportions. */
@media(min-width:1101px){#mac-home .mac-product-section[data-product-section="safety"] .mac-category-compact{grid-template-columns:1fr 1fr!important}}
@media(max-width:1100px){#mac-home .mac-product-section[data-product-section="safety"] .mac-category-compact{grid-template-columns:1fr!important}}
#mac-home .mac-product-section[data-product-section="safety"] .mac-category-compact h1{font:750 36px/1.12 Arial,Helvetica,sans-serif!important;letter-spacing:-1.2px!important;color:#18343c!important}
@media(max-width:650px){#mac-home .mac-product-section[data-product-section="safety"] .mac-category-compact h1{font-size:32px!important}}
#mac-home .mac-product-section[data-product-section="safety"] .mac-category-compact .fine{display:none}
#mac-home .mac-product-section[data-product-section="safety"] article[id]{scroll-margin-top:145px}
#mac-home .mac-product-section[data-product-section="safety"] .mac-category-highlights>button{display:inline-flex;align-items:center;min-height:32px;padding:5px 10px;border:1px solid #cadbd4;border-radius:3px;background:#fff;color:#007e80;font:700 11px/1.4 Arial,Helvetica,sans-serif;text-decoration:none;margin:0}
#mac-home .mac-product-section[data-product-section="safety"] .mac-category-compact>.mac-hand-banner-stage{margin:0;padding:22px!important;background:#dfe3e4;display:flex;flex-direction:column;justify-content:center;align-self:stretch;min-width:0;box-sizing:border-box}
#mac-home .mac-product-section[data-product-section="safety"] .mac-category-compact .mac-hand-collection{width:100%;min-height:0!important;height:auto!important;aspect-ratio:auto!important;padding:0!important}
#mac-home .mac-product-section[data-product-section="safety"] .mac-category-compact .mac-hand-models{font-size:11px!important;line-height:1.5!important;margin:15px 0 0!important;text-align:center}
@media(min-width:1101px){#mac-home .mac-product-section[data-product-section="safety"] .mac-category-compact>.mac-hand-banner-stage{height:340px!important;max-height:340px!important}}
@media(max-width:1100px){#mac-home .mac-product-section[data-product-section="safety"] .mac-category-compact>.mac-hand-banner-stage{height:auto!important;min-height:220px;max-height:none;padding:24px 18px!important}}

/* The approved compact category header across the remaining product families. */
#mac-home .mac-product-section .mac-unified-product-header{grid-template-columns:1fr 1fr!important;gap:0!important;background:#f1f5f1!important}
#mac-home .mac-product-section .mac-unified-product-header h1{font:750 36px/1.12 Arial,Helvetica,sans-serif!important;letter-spacing:-1.2px!important;color:#18343c!important}
#mac-home .mac-product-section .mac-unified-product-header h1 em{font:inherit!important;color:inherit!important}
#mac-home .mac-product-section .mac-unified-product-header>div:first-child{padding:24px 28px!important;min-width:0;box-sizing:border-box}
#mac-home .mac-product-section .mac-unified-product-header .mac-guide-heading>div{padding:0!important}
#mac-home .mac-product-section .mac-unified-product-header .hero-buttons:empty{display:none}
#mac-home .mac-product-section .mac-unified-product-header .mac-category-highlights>button{display:inline-flex;align-items:center;min-height:32px;padding:5px 10px!important;border:1px solid #cadbd4!important;border-radius:3px;background:#fff!important;color:#007e80!important;font:700 11px/1.4 Arial,Helvetica,sans-serif!important;text-decoration:none;margin:0!important;box-shadow:none}
#mac-home .mac-product-section :is(h3[id],#label-product-types){scroll-margin-top:145px}
@media(min-width:1101px){#mac-home .mac-product-section .mac-unified-product-header{height:340px!important;min-height:340px!important}#mac-home .mac-product-section .mac-unified-product-header>.rope-cover-photo{padding:0!important}}
@media(max-width:1100px){#mac-home .mac-product-section .mac-unified-product-header{grid-template-columns:1fr!important;height:auto!important}}
@media(max-width:650px){#mac-home .mac-product-section .mac-unified-product-header h1{font-size:32px!important}}
