/* Customer catalogue taxonomy, shared by navigation and product discovery. */
.taxonomy-menu{max-height:calc(100dvh - 125px);overflow:auto;overscroll-behavior:contain}
.taxonomy-menu .r-mega-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:23px 22px}
.taxonomy-menu .r-mega-grid>a{min-width:0}
.taxonomy-menu .r-mega-grid img{width:100%;height:105px;aspect-ratio:auto;object-fit:cover;background:#efeae2}
.taxonomy-menu .r-mega-grid strong{display:block;font-size:12px;font-weight:500;line-height:1.6;margin-top:9px}
.taxonomy-menu .r-mega-grid small{display:block;font-size:10px;line-height:1.5;color:#8c7a6e;margin-top:3px}
body.ref-home .taxonomy-panel{width:min(1600px,88%);grid-template-columns:minmax(0,1fr) 210px;column-gap:clamp(65px,8vw,150px);align-items:start;padding-block:80px}
body.ref-home .taxonomy-panel .r-panel-title{grid-column:2;grid-row:1;position:sticky;top:145px;margin:42px 0 0;align-items:start}
body.ref-home .taxonomy-panel .r-category-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:30px 24px;align-items:stretch}
body.ref-home .taxonomy-panel .r-category{margin:0!important;min-width:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;align-content:start;transform:none;opacity:1}
body.ref-home .taxonomy-panel .r-category>span{font-size:13px;line-height:1.6;letter-spacing:0;padding:0;margin:0 0 12px}
body.ref-home .taxonomy-panel .r-category>img{width:100%;height:100%;aspect-ratio:1;min-height:0;object-fit:cover;transition:opacity .25s}
body.ref-home .taxonomy-panel .r-category>div{padding:12px 0 0;border:0}
body.ref-home .taxonomy-panel .r-category small{font-size:10px;line-height:1.6}
body.ref-home .taxonomy-panel .r-category:first-child{grid-column:span 2;grid-row:span 2}
body.ref-home .taxonomy-panel .r-category:first-child>span{font-size:17px}
body.ref-home .taxonomy-panel .r-category:first-child>img{aspect-ratio:auto}
.pc-category-subtypes[hidden]{display:none}
.pc-category-subtypes{padding:14px 0 8px}
.pc-category-subtypes label{display:flex;align-items:center;gap:18px;font-size:12px;color:#776658}
.pc-category-subtypes select{max-width:100%;padding:9px 35px 9px 12px;background:#fffcf6;border:1px solid #d4c7b8;color:#5d4c43;font:inherit;min-height:42px}
.pc-filters button{padding:9px 13px}
@media(max-width:1100px){
 .taxonomy-menu .r-mega-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:18px}
 .taxonomy-menu .r-mega-grid img{height:85px}
 body.ref-home .taxonomy-panel{grid-template-columns:minmax(0,1fr) 160px;column-gap:50px}
 body.ref-home .taxonomy-panel .r-category-grid{gap:25px 18px;grid-template-columns:repeat(3,minmax(0,1fr))}
 body.ref-home .taxonomy-panel .r-category:first-child{grid-column:auto;grid-row:auto}
 body.ref-home .taxonomy-panel .r-category:first-child>img{aspect-ratio:1}
 body.ref-home .taxonomy-panel .r-category:first-child>span{font-size:13px}
}
@media(max-width:800px){
 .r-header nav.open{max-height:calc(100dvh - 78px);overflow-y:auto;overscroll-behavior:contain}
 body:has(#nav.open) .bp-social-rail{visibility:hidden;pointer-events:none}
 .taxonomy-menu{max-height:calc(100dvh - 235px);padding-bottom:20px}
 .taxonomy-menu .r-mega-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 12px}
 .taxonomy-menu .r-mega-grid img{height:auto;aspect-ratio:1.25}
 .taxonomy-menu .r-mega-grid strong{font-size:11px}
 .taxonomy-menu .r-mega-grid small{font-size:9px}
 body.ref-home .taxonomy-panel{width:90%;grid-template-columns:minmax(0,1fr) 110px;column-gap:30px;padding-block:45px}
 body.ref-home .taxonomy-panel .r-panel-title{top:100px;margin-top:0}
 body.ref-home .taxonomy-panel .r-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 14px}
 body.ref-home .taxonomy-panel .r-category>span{font-size:11px;margin-bottom:9px}
 body.ref-home .taxonomy-panel .r-category small{font-size:9px}
 body.ref-home .taxonomy-panel .r-category:first-child{grid-column:1/-1}
 body.ref-home .taxonomy-panel .r-category:first-child>img{aspect-ratio:1.25}
 .pc-category-subtypes label{align-items:start;flex-direction:column;gap:9px}
 .pc-category-subtypes select{font-size:16px;width:100%}
}
@media(max-width:520px){
 body.ref-home .taxonomy-panel{grid-template-columns:minmax(0,1fr);gap:30px}
 body.ref-home .taxonomy-panel .r-panel-title{position:static;grid-column:1;grid-row:1;display:grid;grid-template-columns:1fr auto;align-items:baseline;column-gap:15px;row-gap:12px}
 body.ref-home .taxonomy-panel .r-panel-title h2{font-size:29px;margin:0}
 body.ref-home .taxonomy-panel .r-panel-title .r-panel-intro{grid-column:1/-1;grid-row:2;margin:0;max-width:none}
 body.ref-home .taxonomy-panel .r-panel-title>a{grid-column:2;grid-row:1;font-size:10px}
 body.ref-home .taxonomy-panel .r-category-grid{grid-column:1;grid-row:2}
 .pc-filters button{padding:8px 10px}
}
@supports not (height:100dvh){.taxonomy-menu{max-height:70vh}}

/* The mobile menu has one scroll area, rather than a second scrollbar inside it. */
@media(max-width:800px){.r-header nav.open .taxonomy-menu{max-height:none;overflow:visible}body:has(#nav.open){overflow:hidden}body:has(#nav.open) .bp-whatsapp{visibility:hidden;pointer-events:none}}

/* Compact two-level product navigation. */
#header .r-menu{position:relative}
#header .category-dropdown{position:absolute;inset:100% auto auto 0;z-index:100;min-width:216px;width:max-content;max-width:260px;padding:7px 0;color:#44292a;background:#faf6efe8;backdrop-filter:blur(24px) saturate(140%);border:1px solid #fff8ed99;border-radius:10px;box-shadow:0 18px 40px #2d0b1733;font:13px/1.4 Arial,"Microsoft YaHei",sans-serif}
#header .category-dropdown a,#header .category-dropdown .category-branch>summary{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:36px;padding:8px 18px;color:#44292a;font:inherit;text-decoration:none;white-space:normal;cursor:pointer;border:0;background:transparent;border-radius:0;letter-spacing:0}
#header .category-dropdown .category-all{border-bottom:1px solid #86545125;margin-bottom:3px}
#header .category-branch{position:relative}
#header .category-branch>summary{list-style:none}
#header .category-branch>summary::-webkit-details-marker{display:none}
#header .category-flyout{position:absolute;left:100%;top:-8px;width:218px;padding:7px 0;background:#faf6eff0;backdrop-filter:blur(24px) saturate(140%);border:1px solid #fff8ed99;border-radius:10px;box-shadow:12px 16px 32px #2d0b1726}
#header .category-dropdown a:hover,#header .category-dropdown a:focus-visible,#header .category-dropdown .category-branch>summary:hover,#header .category-branch[open]>summary{background:#a5243521;color:#901b2b}
#header .category-dropdown a:focus-visible,#header .category-branch>summary:focus-visible{outline:2px solid #a62232;outline-offset:-2px}
@media(max-width:800px){
 #header .category-dropdown{position:static;width:100%;max-width:none;min-width:0;box-shadow:none}
 #header .category-flyout{position:static;width:auto;margin:0 8px 6px 18px;box-shadow:none;background:#fff8ed99}
 body.planar-home:not(.hero-past) #header nav.open .category-dropdown :is(a,summary){color:#44292a}
}
#header .r-menu:not([open])>.category-dropdown,#header .category-branch:not([open])>.category-flyout{display:none}
#header .category-branch>summary>span{margin-inline-start:auto;color:#8e6259}
@media(min-width:801px){
 #header .category-branch:nth-last-child(-n+5)>.category-flyout{top:auto;bottom:-8px}
 #header .category-flyout{max-height:calc(100dvh - 120px);overflow:auto;overscroll-behavior:contain}
}
@media(min-width:801px) and (max-height:690px){
 #header .category-dropdown{max-height:calc(100dvh - 110px);overflow:auto;overscroll-behavior:contain}
 #header .category-flyout{position:static;width:auto;max-height:none;margin:2px 8px 5px;background:#f2e8df;box-shadow:none}
}
