/* Patch 231: category detail sidebar parent/child menu and child collection placement */
#site-main .mp-category-sidebar .mp-category-nav,
.mp-category-sidebar .mp-category-nav{
  margin:0;
}
#site-main .mp-category-sidebar .mp-category-nav-root,
#site-main .mp-category-sidebar .mp-category-nav-children,
.mp-category-sidebar .mp-category-nav-root,
.mp-category-sidebar .mp-category-nav-children{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:6px;
}
#site-main .mp-category-sidebar .mp-category-nav-children,
.mp-category-sidebar .mp-category-nav-children{
  margin:6px 0 6px 12px;
  padding-left:12px;
  border-left:1px solid rgba(255,255,255,.13);
  gap:5px;
}
#site-main .mp-category-sidebar .mp-category-nav li,
.mp-category-sidebar .mp-category-nav li{
  margin:0;
  padding:0;
}
#site-main .mp-category-sidebar .mp-category-nav a,
.mp-category-sidebar .mp-category-nav a{
  position:relative;
  display:block;
  text-decoration:none;
  border:1px solid transparent;
  border-radius:7px;
  padding:10px 12px;
  color:#cbd1d6;
  line-height:1.25;
}
#site-main .mp-category-sidebar .mp-category-nav-children a,
.mp-category-sidebar .mp-category-nav-children a{
  padding:8px 10px;
  font-size:.92rem;
  color:#b8c0c7;
  background:rgba(255,255,255,.025);
}
#site-main .mp-category-sidebar .mp-category-nav .has-children > a::after,
.mp-category-sidebar .mp-category-nav .has-children > a::after{
  content:"▾";
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  color:#8f989f;
  font-size:.75rem;
}
#site-main .mp-category-sidebar .mp-category-nav a:hover,
#site-main .mp-category-sidebar .mp-category-nav a.is-active,
.mp-category-sidebar .mp-category-nav a:hover,
.mp-category-sidebar .mp-category-nav a.is-active{
  background:rgba(215,25,32,.14);
  border-color:rgba(215,25,32,.45);
  color:#fff;
}
#site-main .mp-category-sidebar .mp-category-nav .is-current > a,
.mp-category-sidebar .mp-category-nav .is-current > a{
  box-shadow:inset 3px 0 0 #d71920;
}
#site-main .mp-child-collections-after-products,
.mp-child-collections-after-products{
  margin-top:32px;
  padding-top:26px;
  border-top:1px solid rgba(255,255,255,.14);
}
#site-main .mp-child-collections-after-products .mp-section-title-left,
.mp-child-collections-after-products .mp-section-title-left{
  margin-bottom:16px;
}
#site-main .mp-child-collections-after-products .mp-category-card,
.mp-child-collections-after-products .mp-category-card{
  aspect-ratio:16/9;
  min-height:auto;
}
#site-main .mp-child-collections-after-products .mp-card-more,
.mp-child-collections-after-products .mp-card-more{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:10px;
  border:1px solid rgba(255,255,255,.38);
  border-radius:6px;
  padding:7px 10px;
  font-size:.75rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.02em;
  color:#fff;
}
@media(max-width:991px){
  #site-main .mp-child-collections-after-products .mp-category-grid,
  .mp-child-collections-after-products .mp-category-grid{
    grid-template-columns:1fr;
  }
}


/* Patch 231: sidebar RFQ button should not render as an all-white button. */
#site-main .mp-category-sidebar .mp-sidebar-quote a,
.mp-category-sidebar .mp-sidebar-quote a{
  display:block;
  background:linear-gradient(180deg,#171d23,#080b0f)!important;
  color:#fff!important;
  border:1px solid rgba(255,255,255,.22)!important;
  box-shadow:0 10px 22px rgba(0,0,0,.28);
  text-transform:uppercase;
  font-weight:1000;
  text-align:center;
}
#site-main .mp-category-sidebar .mp-sidebar-quote a:hover,
.mp-category-sidebar .mp-sidebar-quote a:hover{
  background:#d71920!important;
  border-color:#d71920!important;
  color:#fff!important;
}

/* Patch 323: /product uses the same parent/child category hierarchy as
   collection pages, but with the white Master Palm catalog treatment. */
body.masterpalm-store-white.mp-product-catalog-page-body .mp-product-catalog-layout {
  display: grid;
  grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}
body.masterpalm-store-white.mp-product-catalog-page-body .mp-product-catalog-main {
  min-width: 0;
}
body.masterpalm-store-white.mp-product-catalog-page-body .mp-product-category-sidebar {
  position: sticky;
  top: 154px;
  background: #fff;
  border: 1px solid #dfe3e8;
  padding: 18px;
  color: #252a31;
}
body.masterpalm-store-white.mp-product-catalog-page-body .mp-product-category-sidebar h2 {
  margin: 0 0 14px;
  color: #20242a;
  font-size: 1rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .05em;
}
body.masterpalm-store-white.mp-product-catalog-page-body .mp-product-category-sidebar .mp-category-nav-root,
body.masterpalm-store-white.mp-product-catalog-page-body .mp-product-category-sidebar .mp-category-nav-children {
  gap: 4px;
}
body.masterpalm-store-white.mp-product-catalog-page-body .mp-product-category-sidebar .mp-product-category-all {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}
body.masterpalm-store-white.mp-product-catalog-page-body .mp-product-category-sidebar .mp-category-nav-children {
  margin: 4px 0 6px 10px;
  padding-left: 10px;
  border-left: 1px solid #dfe3e8;
}
body.masterpalm-store-white.mp-product-catalog-page-body .mp-product-category-sidebar .mp-category-nav-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
}
body.masterpalm-store-white.mp-product-catalog-page-body .mp-product-category-sidebar .mp-category-nav a {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #343a42;
  font-size: .9rem;
  line-height: 1.3;
}
body.masterpalm-store-white.mp-product-catalog-page-body .mp-product-category-sidebar .mp-category-nav-children a {
  padding: 8px 9px;
  background: #f7f8fa;
  color: #4b535d;
  font-size: .86rem;
}
body.masterpalm-store-white.mp-product-catalog-page-body .mp-product-category-sidebar .mp-category-nav a:hover,
body.masterpalm-store-white.mp-product-catalog-page-body .mp-product-category-sidebar .mp-category-nav a.is-active {
  border-color: #b8001f;
  background: #b8001f;
  color: #fff;
}
body.masterpalm-store-white.mp-product-catalog-page-body .mp-product-category-sidebar .mp-category-nav-toggle {
  width: 34px;
  border: 1px solid #dfe3e8;
  border-radius: 0;
  background: #f4f5f7;
  color: #343a42;
}
body.masterpalm-store-white.mp-product-catalog-page-body .mp-product-category-sidebar .is-open > .mp-category-nav-row .mp-category-nav-toggle {
  background: #252a31;
  border-color: #252a31;
  color: #fff;
}
body.masterpalm-store-white.mp-product-catalog-page-body .mp-product-category-sidebar .is-open > .mp-category-nav-row .mp-category-nav-toggle i {
  transform: rotate(180deg);
}
body.masterpalm-store-white.mp-product-catalog-page-body .mp-product-catalog-main .mp-catalog-filter-panel {
  margin-top: 0;
}
@media (max-width: 991.98px) {
  body.masterpalm-store-white.mp-product-catalog-page-body .mp-product-catalog-layout {
    grid-template-columns: 1fr;
  }
  body.masterpalm-store-white.mp-product-catalog-page-body .mp-product-category-sidebar {
    position: static;
  }
}
