/* 1KG HOME CATEGORY DESIGN 3 v1.0.0
   Homepage-only progressive enhancement. The original category JS, backend
   category order, links, and all other sections remain unchanged. */
.kg-approved-categories .kg-approved-heading{text-align:center!important;margin-bottom:18px!important}
.kg-approved-categories .kg-approved-heading h2{color:#123047!important;font-size:clamp(25px,2.4vw,37px)!important;font-weight:800!important;letter-spacing:-.7px!important;line-height:1.18!important;margin:0 0 7px!important}
.kg-approved-categories .kg-approved-heading h2 span{color:#07803b!important}
.kg-approved-categories .kg-approved-heading p{font-size:clamp(13px,1.1vw,16px)!important;color:#66798a!important;margin:0!important}
#kgApprovedCategoryBanners.kg-approved-six{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-rows:170px!important;gap:14px!important;overflow:visible!important;align-items:stretch!important;width:100%!important}
#kgApprovedCategoryBanners.kg-approved-six:has(>a:nth-of-type(6)){grid-template-columns:repeat(10,minmax(0,1fr))!important;grid-template-rows:repeat(2,170px)!important;grid-auto-rows:auto!important}
#kgApprovedCategoryBanners>a.kg-feature-category-card{position:relative!important;isolation:isolate!important;box-sizing:border-box!important;display:block!important;min-width:0!important;width:100%!important;max-width:none!important;height:170px!important;min-height:170px!important;max-height:170px!important;margin:0!important;padding:0!important;overflow:hidden!important;border:1px solid #cde3d7!important;border-radius:17px!important;background:linear-gradient(125deg,#fff,#ecf8f1)!important;color:#102f30!important;box-shadow:0 3px 13px rgba(10,68,39,.095)!important;text-decoration:none!important;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease!important}
#kgApprovedCategoryBanners>a.kg-feature-category-card>img{position:absolute!important;inset:0 0 0 auto!important;display:block!important;width:71%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:center!important;opacity:.94!important;z-index:0!important;filter:brightness(1.07) contrast(1.06)!important;-webkit-mask-image:linear-gradient(to right,transparent 0%,rgba(0,0,0,.4) 22%,#000 62%)!important;mask-image:linear-gradient(to right,transparent 0%,rgba(0,0,0,.4) 22%,#000 62%)!important}
#kgApprovedCategoryBanners>a.kg-feature-category-card::before{content:""!important;display:block!important;position:absolute!important;inset:0!important;z-index:1!important;pointer-events:none!important;background:linear-gradient(90deg,#fbfefb 0%,rgba(251,254,251,.98) 29%,rgba(251,254,251,.61) 50%,rgba(251,254,251,0) 83%)!important}
#kgApprovedCategoryBanners>a.kg-feature-category-card>span.kg-feature-category-title{display:block!important;position:absolute!important;top:24px!important;left:18px!important;right:auto!important;bottom:auto!important;max-width:52%!important;padding:0!important;margin:0!important;z-index:3!important;font-weight:800!important;font-size:clamp(16px,1.5vw,23px)!important;line-height:1.15!important;letter-spacing:-.3px!important;color:#112f39!important;text-shadow:none!important;overflow-wrap:break-word!important}
#kgApprovedCategoryBanners>a.kg-feature-category-card::after{content:"→"!important;display:grid!important;place-items:center!important;position:absolute!important;right:13px!important;bottom:13px!important;top:auto!important;left:auto!important;z-index:4!important;width:32px!important;height:32px!important;border-radius:50%!important;background:#087a32!important;border:2px solid rgba(255,255,255,.96)!important;box-shadow:0 2px 7px rgba(0,50,19,.24)!important;color:white!important;font-size:20px!important;line-height:1!important;font-weight:700!important;pointer-events:none!important}
#kgApprovedCategoryBanners>a.kg-feature-category-card:hover,#kgApprovedCategoryBanners>a.kg-feature-category-card:focus-visible{transform:translateY(-3px)!important;border-color:#49b76d!important;box-shadow:0 12px 24px rgba(5,70,37,.18)!important}
#kgApprovedCategoryBanners>a.kg-feature-category-card:focus-visible{outline:3px solid #73d89b!important;outline-offset:3px!important}
/* Asymmetric desktop: one featured 40% card, two upper + three lower cards. */
#kgApprovedCategoryBanners.kg-approved-six:has(>a:nth-of-type(6))>a:nth-of-type(1){grid-column:1/span 4!important;grid-row:1/span 2!important;height:354px!important;min-height:354px!important;max-height:354px!important;border:1px solid #258559!important;border-radius:19px!important;background:linear-gradient(125deg,#03482c,#012c20)!important}
#kgApprovedCategoryBanners.kg-approved-six:has(>a:nth-of-type(6))>a:nth-of-type(2){grid-column:5/span 3!important;grid-row:1!important}
#kgApprovedCategoryBanners.kg-approved-six:has(>a:nth-of-type(6))>a:nth-of-type(3){grid-column:8/span 3!important;grid-row:1!important}
#kgApprovedCategoryBanners.kg-approved-six:has(>a:nth-of-type(6))>a:nth-of-type(4){grid-column:5/span 2!important;grid-row:2!important}
#kgApprovedCategoryBanners.kg-approved-six:has(>a:nth-of-type(6))>a:nth-of-type(5){grid-column:7/span 2!important;grid-row:2!important}
#kgApprovedCategoryBanners.kg-approved-six:has(>a:nth-of-type(6))>a:nth-of-type(6){grid-column:9/span 2!important;grid-row:2!important}
#kgApprovedCategoryBanners.kg-approved-six:has(>a:nth-of-type(6))>a:nth-of-type(1)>img{width:83%!important;opacity:1!important;object-position:center!important;filter:brightness(1.06) contrast(1.09)!important;-webkit-mask-image:linear-gradient(to right,transparent 0%,rgba(0,0,0,.5) 23%,#000 60%)!important;mask-image:linear-gradient(to right,transparent 0%,rgba(0,0,0,.5) 23%,#000 60%)!important}
#kgApprovedCategoryBanners.kg-approved-six:has(>a:nth-of-type(6))>a:nth-of-type(1)::before{background:linear-gradient(90deg,rgba(0,63,37,1) 0%,rgba(0,66,38,.97) 29%,rgba(0,64,38,.63) 55%,rgba(0,35,30,.10) 85%)!important}
#kgApprovedCategoryBanners.kg-approved-six:has(>a:nth-of-type(6))>a:nth-of-type(1)>span.kg-feature-category-title{top:104px!important;left:29px!important;max-width:65%!important;font-size:clamp(25px,2.5vw,39px)!important;font-weight:850!important;line-height:1.14!important;letter-spacing:-.9px!important;color:#fff!important}
#kgApprovedCategoryBanners.kg-approved-six:has(>a:nth-of-type(6))>a:nth-of-type(1)>span.kg-feature-category-title::before{content:"★  FEATURED CATEGORY";display:inline-block!important;position:absolute!important;top:-66px!important;left:0!important;white-space:nowrap!important;padding:9px 13px!important;background:#d5fc24!important;border-radius:8px!important;color:#123d1f!important;font-size:12px!important;font-weight:850!important;letter-spacing:.2px!important;line-height:1.1!important;box-shadow:0 3px 8px rgba(0,0,0,.12)!important}
#kgApprovedCategoryBanners.kg-approved-six:has(>a:nth-of-type(6))>a:nth-of-type(1)::after{content:"Explore Category   →"!important;display:flex!important;align-items:center!important;justify-content:center!important;left:29px!important;right:auto!important;bottom:27px!important;width:auto!important;height:auto!important;padding:12px 22px!important;border:0!important;border-radius:26px!important;background:#c6fd20!important;color:#063d20!important;font-size:15px!important;font-weight:800!important;box-shadow:0 5px 15px rgba(0,0,0,.14)!important}
@media(max-width:1180px){
 #kgApprovedCategoryBanners.kg-approved-six,#kgApprovedCategoryBanners.kg-approved-six:has(>a:nth-of-type(6)){grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:none!important;grid-auto-rows:auto!important;gap:12px!important}
 #kgApprovedCategoryBanners.kg-approved-six:has(>a:nth-of-type(6))>a.kg-feature-category-card{grid-column:auto!important;grid-row:auto!important}
 #kgApprovedCategoryBanners.kg-approved-six:has(>a:nth-of-type(6))>a:nth-of-type(1){grid-column:1/-1!important;grid-row:auto!important;height:245px!important;min-height:245px!important;max-height:245px!important}
 #kgApprovedCategoryBanners>a.kg-feature-category-card{height:155px!important;min-height:155px!important;max-height:155px!important}
 #kgApprovedCategoryBanners.kg-approved-six:has(>a:nth-of-type(6))>a:nth-of-type(1)>span.kg-feature-category-title{top:85px!important;font-size:32px!important}
 #kgApprovedCategoryBanners.kg-approved-six:has(>a:nth-of-type(6))>a:nth-of-type(1)::after{bottom:20px!important}
}
@media(max-width:650px){
 .kg-approved-categories .kg-approved-heading{margin-bottom:13px!important}
 .kg-approved-categories .kg-approved-heading h2{font-size:23px!important;letter-spacing:-.5px!important}
 .kg-approved-categories .kg-approved-heading p{font-size:12px!important;line-height:1.4!important}
 #kgApprovedCategoryBanners.kg-approved-six,#kgApprovedCategoryBanners.kg-approved-six:has(>a:nth-of-type(6)){grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:auto!important;gap:10px!important}
 #kgApprovedCategoryBanners>a.kg-feature-category-card{height:126px!important;min-height:126px!important;max-height:126px!important;border-radius:12px!important}
 #kgApprovedCategoryBanners>a.kg-feature-category-card>span.kg-feature-category-title{top:15px!important;left:12px!important;max-width:64%!important;font-size:14px!important;line-height:1.2!important;letter-spacing:-.1px!important}
 #kgApprovedCategoryBanners>a.kg-feature-category-card>img{width:85%!important;object-position:center!important}
 #kgApprovedCategoryBanners>a.kg-feature-category-card::after{right:7px!important;bottom:7px!important;width:26px!important;height:26px!important;font-size:16px!important}
 #kgApprovedCategoryBanners.kg-approved-six:has(>a:nth-of-type(6))>a:nth-of-type(1){grid-column:1/-1!important;height:218px!important;min-height:218px!important;max-height:218px!important;border-radius:14px!important}
 #kgApprovedCategoryBanners.kg-approved-six:has(>a:nth-of-type(6))>a:nth-of-type(1)>span.kg-feature-category-title{top:79px!important;left:18px!important;max-width:67%!important;font-size:26px!important;line-height:1.14!important}
 #kgApprovedCategoryBanners.kg-approved-six:has(>a:nth-of-type(6))>a:nth-of-type(1)>span.kg-feature-category-title::before{top:-55px!important;font-size:10px!important;padding:7px 10px!important}
 #kgApprovedCategoryBanners.kg-approved-six:has(>a:nth-of-type(6))>a:nth-of-type(1)::after{left:18px!important;bottom:16px!important;padding:9px 15px!important;font-size:12px!important}
}
@media(prefers-reduced-motion:reduce){#kgApprovedCategoryBanners>a.kg-feature-category-card{transition:none!important}#kgApprovedCategoryBanners>a.kg-feature-category-card:hover{transform:none!important}}

/* DESIGN 3 COMPACT PATCH v1.0.1 — only Shop by Industrial Category
   Desktop featured height: 354px -> 128px (-64%). Keep image, links, all other modules. */
.kg-approved-categories{padding-top:13px!important;padding-bottom:15px!important}
.kg-approved-categories .kg-approved-heading{margin-bottom:11px!important}
.kg-approved-categories .kg-approved-heading h2{font-size:clamp(23px,2vw,29px)!important;line-height:1.15!important;margin-bottom:4px!important}
.kg-approved-categories .kg-approved-heading p{font-size:13px!important}
#kgApprovedCategoryBanners.kg-approved-six:has(>a:nth-of-type(6)){grid-template-rows:repeat(2,60px)!important;column-gap:12px!important;row-gap:8px!important}
#kgApprovedCategoryBanners>a.kg-feature-category-card{height:60px!important;min-height:60px!important;max-height:60px!important;border-radius:10px!important}
#kgApprovedCategoryBanners>a.kg-feature-category-card>span.kg-feature-category-title{top:11px!important;left:13px!important;max-width:55%!important;font-size:clamp(14px,1.1vw,17px)!important;line-height:1.13!important;letter-spacing:-.1px!important}
#kgApprovedCategoryBanners>a.kg-feature-category-card::after{right:6px!important;bottom:6px!important;width:23px!important;height:23px!important;font-size:15px!important;border-width:1px!important}
#kgApprovedCategoryBanners.kg-approved-six:has(>a:nth-of-type(6))>a:nth-of-type(1){height:128px!important;min-height:128px!important;max-height:128px!important;border-radius:12px!important}
#kgApprovedCategoryBanners.kg-approved-six:has(>a:nth-of-type(6))>a:nth-of-type(1)>span.kg-feature-category-title{top:42px!important;left:18px!important;max-width:54%!important;font-size:clamp(18px,1.45vw,23px)!important;line-height:1.07!important;letter-spacing:-.4px!important}
#kgApprovedCategoryBanners.kg-approved-six:has(>a:nth-of-type(6))>a:nth-of-type(1)>span.kg-feature-category-title::before{top:-29px!important;padding:5px 8px!important;border-radius:5px!important;font-size:9px!important;letter-spacing:0!important}
#kgApprovedCategoryBanners.kg-approved-six:has(>a:nth-of-type(6))>a:nth-of-type(1)::after{left:18px!important;bottom:9px!important;padding:6px 12px!important;border-radius:18px!important;font-size:11px!important;line-height:1.2!important}
@media(max-width:1180px){
 #kgApprovedCategoryBanners.kg-approved-six:has(>a:nth-of-type(6)){grid-template-rows:none!important;row-gap:9px!important}
 #kgApprovedCategoryBanners>a.kg-feature-category-card{height:90px!important;min-height:90px!important;max-height:90px!important}
 #kgApprovedCategoryBanners.kg-approved-six:has(>a:nth-of-type(6))>a:nth-of-type(1){height:143px!important;min-height:143px!important;max-height:143px!important}
 #kgApprovedCategoryBanners.kg-approved-six:has(>a:nth-of-type(6))>a:nth-of-type(1)>span.kg-feature-category-title{top:45px!important;left:18px!important;font-size:24px!important}
 #kgApprovedCategoryBanners.kg-approved-six:has(>a:nth-of-type(6))>a:nth-of-type(1)::after{bottom:11px!important}
}
@media(max-width:650px){
 .kg-approved-categories{padding-top:11px!important;padding-bottom:12px!important}
 .kg-approved-categories .kg-approved-heading{margin-bottom:10px!important}
 .kg-approved-categories .kg-approved-heading h2{font-size:20px!important}
 .kg-approved-categories .kg-approved-heading p{font-size:11px!important}
 #kgApprovedCategoryBanners.kg-approved-six:has(>a:nth-of-type(6)){row-gap:8px!important;column-gap:8px!important}
 #kgApprovedCategoryBanners>a.kg-feature-category-card{height:82px!important;min-height:82px!important;max-height:82px!important}
 #kgApprovedCategoryBanners>a.kg-feature-category-card>span.kg-feature-category-title{top:9px!important;left:9px!important;font-size:12px!important;max-width:66%!important}
 #kgApprovedCategoryBanners>a.kg-feature-category-card::after{right:4px!important;bottom:4px!important;width:21px!important;height:21px!important;font-size:14px!important}
 #kgApprovedCategoryBanners.kg-approved-six:has(>a:nth-of-type(6))>a:nth-of-type(1){height:125px!important;min-height:125px!important;max-height:125px!important}
 #kgApprovedCategoryBanners.kg-approved-six:has(>a:nth-of-type(6))>a:nth-of-type(1)>span.kg-feature-category-title{top:42px!important;left:13px!important;font-size:19px!important;max-width:64%!important}
 #kgApprovedCategoryBanners.kg-approved-six:has(>a:nth-of-type(6))>a:nth-of-type(1)>span.kg-feature-category-title::before{top:-29px!important;font-size:9px!important;padding:5px 7px!important}
 #kgApprovedCategoryBanners.kg-approved-six:has(>a:nth-of-type(6))>a:nth-of-type(1)::after{left:13px!important;bottom:8px!important;padding:5px 11px!important;font-size:10px!important}
}

/* DESIGN 3 OVERLAP FIX v1.0.2
 * High-specificity overrides for legacy v1.4.8 rules (.kg-approved-six > a).
 * The five small cards MUST match their grid-row height. Scoped to this one grid.
 */
#kgApprovedCategoryBanners.kg-approved-six>a.kg-feature-category-card{
  display:block!important;
  box-sizing:border-box!important;
  width:100%!important;
  height:60px!important;
  min-height:60px!important;
  max-height:60px!important;
  padding:0!important;
  border-radius:10px!important;
}
#kgApprovedCategoryBanners.kg-approved-six:has(>a:nth-of-type(6))>a:first-child{
  height:128px!important;
  min-height:128px!important;
  max-height:128px!important;
  padding:0!important;
  grid-row:1/span 2!important;
}
@media(min-width:1181px){
 #kgApprovedCategoryBanners.kg-approved-six:has(>a:nth-of-type(6)){
   grid-template-rows:repeat(2,60px)!important;
   grid-auto-rows:60px!important;
   row-gap:8px!important;
 }
}
@media(min-width:651px) and (max-width:1180px){
 #kgApprovedCategoryBanners.kg-approved-six>a.kg-feature-category-card{
   height:90px!important;min-height:90px!important;max-height:90px!important;
 }
 #kgApprovedCategoryBanners.kg-approved-six:has(>a:nth-of-type(6))>a:first-child{
   grid-column:1/-1!important;grid-row:auto!important;
   height:143px!important;min-height:143px!important;max-height:143px!important;
 }
}
@media(max-width:650px){
 #kgApprovedCategoryBanners.kg-approved-six>a.kg-feature-category-card{
   height:82px!important;min-height:82px!important;max-height:82px!important;
 }
 #kgApprovedCategoryBanners.kg-approved-six:has(>a:nth-of-type(6))>a:first-child{
   grid-column:1/-1!important;grid-row:auto!important;
   height:125px!important;min-height:125px!important;max-height:125px!important;
 }
}
