/* Demit Gold 2.17.0: height-safe mega menu and accessible, modern filter accordions. */
@media (min-width:900px) {
  html body #site-header.dg313-header .dg214-quick-menu.dg215-mega {
    box-sizing:border-box!important;
    height:min(545px,var(--dg217-panel-space,545px))!important;
    max-height:var(--dg217-panel-space,545px)!important;
    overflow:hidden!important;
    border-radius:15px!important;
    /* Allow the browser to compute a stable panel box even when the category list grows. */
    contain:layout style!important;
  }
  #site-header .dg215-mega .dg215-menu-heading {
    box-sizing:border-box!important;
    height:54px!important;
    min-height:54px!important;
    padding:8px 17px!important;
    border-radius:15px 15px 0 0!important;
  }
  #site-header .dg215-mega .dg215-menu-layout {
    display:grid!important;
    height:calc(100% - 54px)!important;
    max-height:calc(100% - 54px)!important;
    min-height:0!important;
    overflow:hidden!important;
    align-items:stretch!important;
    grid-template-rows:minmax(0,1fr)!important;
  }
  #site-header .dg215-mega .dg215-rail {
    min-height:0!important;
    max-height:100%!important;
    height:100%!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain;
    scrollbar-width:thin!important;
    scrollbar-color:#cdb99a #f8f2e9;
    padding:11px 9px 10px!important;
    -webkit-overflow-scrolling:touch;
  }
  #site-header .dg215-mega .dg215-rail::-webkit-scrollbar,
  #site-header .dg215-mega .dg215-showcase::-webkit-scrollbar {width:6px}
  #site-header .dg215-mega .dg215-rail::-webkit-scrollbar-thumb,
  #site-header .dg215-mega .dg215-showcase::-webkit-scrollbar-thumb {background:#cdb99a;border-radius:9px}
  #site-header .dg215-mega .dg215-rail-caption {margin:0 9px 6px!important;font-size:10px!important}
  #site-header .dg215-mega .dg215-rail :is(.dg214-tree,.demit-menu)>li {
    min-height:38px!important;
    margin:0!important;
  }
  #site-header .dg215-mega .dg215-rail :is(.dg214-tree,.demit-menu)>li>a {
    min-height:38px!important;
    padding:6px 9px 6px 32px!important;
    font-size:12px!important;
    line-height:1.35!important;
    border-radius:7px!important;
  }
  #site-header .dg215-mega .dg215-rail .dg215-branch {top:2px!important;width:30px!important;height:33px!important}
  #site-header .dg215-mega .dg215-rail .dg215-rail-mark {width:17px!important;flex-basis:17px!important;height:17px!important}
  #site-header .dg215-mega .dg215-rail .dg215-rail-mark svg {width:15px!important;height:15px!important}
  #site-header .dg215-mega .dg215-showcase {
    box-sizing:border-box!important;
    min-height:0!important;
    max-height:100%!important;
    height:100%!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    padding:13px 15px 15px!important;
    overscroll-behavior:contain;
    scrollbar-width:thin!important;
  }
  #site-header .dg215-mega .dg215-showcase-top{margin-bottom:11px!important}
  #site-header .dg215-mega .dg215-showcase-top h2{font-size:16px!important}
  #site-header .dg215-mega .dg215-showcase-body{min-height:0!important}
  #site-header .dg215-mega .dg215-card-grid{gap:8px!important}
  #site-header .dg215-mega .dg215-cat-picture{height:93px!important;max-height:93px!important}
  #site-header .dg215-mega .dg215-cat-info{min-height:42px!important;padding:6px 9px 8px!important;gap:1px!important}
  #site-header .dg215-mega .dg215-cat-info strong{font-size:11px!important;line-height:1.4!important}
  #site-header .dg215-mega .dg215-cat-info>span{font-size:9.5px!important}
  #site-header .dg215-mega .dg215-promo{max-height:350px!important}
  #site-header .dg215-mega .dg217-scroll-hint {
    position:sticky!important;bottom:-10px!important;
    display:none;align-items:center;justify-content:center;
    min-height:27px;padding:5px!important;margin:7px -7px -10px!important;
    font-size:10px!important;text-align:center!important;color:#70562f!important;
    background:linear-gradient(180deg,#fdfbf6e8,#efe4d1)!important;
    box-shadow:0 -5px 12px #f8f2e9!important;
    pointer-events:none;
  }
  #site-header .dg215-mega .dg217-scroll-hint.is-visible{display:flex!important}
}
@media (min-width:900px) and (max-height:730px) {
  #site-header .dg215-mega .dg215-menu-heading{height:47px!important;min-height:47px!important;padding:6px 13px!important}
  #site-header .dg215-mega .dg215-menu-layout{height:calc(100% - 47px)!important;max-height:calc(100% - 47px)!important}
  #site-header .dg215-mega .dg215-showcase{padding:9px 12px!important}
  #site-header .dg215-mega .dg215-showcase-top{margin-bottom:8px!important}
  #site-header .dg215-mega .dg215-cat-picture{height:74px!important;max-height:74px!important}
  #site-header .dg215-mega .dg215-cat-info{padding:5px 7px!important;min-height:38px!important}
  #site-header .dg215-mega .dg215-promo{max-height:260px!important}
}
@media (min-width:900px) and (max-height:550px) {
  #site-header .dg215-mega .dg215-showcase-top{gap:7px!important}
  #site-header .dg215-mega .dg215-showcase-kicker{display:none!important}
  #site-header .dg215-mega .dg215-promo{display:none!important}
  #site-header .dg215-mega .dg215-showcase-body{grid-template-columns:minmax(0,1fr)!important}
}
/* 2.17 filters: native details/summary keeps accordions functional even without JS. */
.dg217-filter-sidebar {border-radius:18px!important;border-color:#e7dccb!important;background:#fffdfa!important;box-shadow:0 14px 48px rgba(35,61,44,.055)!important}
.dg217-filter-sidebar .dg-filter-top {padding-bottom:12px!important;margin-bottom:9px!important;border-bottom:1px solid #eee5d8!important}
.dg217-filter-heading{display:flex;flex-direction:column;gap:2px;min-width:0}
.dg217-filter-heading strong{font-size:1.07rem;font-weight:750;color:#153f32}
.dg217-kicker{font-family:Georgia,serif;font-size:9px;letter-spacing:1.3px;color:#b08a53;direction:ltr;text-align:right}
.dg217-filter-utility{display:flex;gap:7px;align-items:center;justify-content:space-between;padding:5px 0 12px;font-size:11px;color:#748279}
.dg217-filter-status{line-height:1.6}
.dg217-toggle-all{border:0!important;background:transparent!important;color:#976e38!important;font:inherit!important;font-weight:700!important;cursor:pointer!important;white-space:nowrap;padding:6px 3px!important}
.dg217-toggle-all:hover,.dg217-toggle-all:focus-visible{color:#184c3b!important;text-decoration:underline;text-underline-offset:3px}
.dg217-filter-sidebar .dg-filter-form .dg-filter-group.dg217-accordion{
  display:block!important;min-width:0!important;min-height:0!important;
  margin:0 0 9px!important;padding:0!important;border:1px solid #eae0d1!important;
  border-radius:12px!important;background:#fff!important;overflow:hidden!important;
  box-shadow:0 2px 9px rgba(20,55,40,.025)!important;
}
.dg217-accordion>summary{
  list-style:none!important;display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:10px!important;min-height:48px!important;padding:12px 13px!important;
  font-size:13px!important;font-weight:700!important;color:#234637!important;
  cursor:pointer!important;user-select:none!important;transition:background .18s ease!important;
}
.dg217-accordion>summary::-webkit-details-marker{display:none!important}
.dg217-accordion>summary::after{
  content:'';display:block;flex:0 0 8px;width:8px;height:8px;
  border-left:2px solid #a78b5d;border-bottom:2px solid #a78b5d;
  transform:rotate(-45deg);transition:transform .2s ease;
}
.dg217-accordion[open]>summary{background:#f5f0e7!important;color:#164b39!important;border-bottom:1px solid #e8dfd0!important}
.dg217-accordion[open]>summary::after{transform:rotate(135deg)}
.dg217-accordion>summary:hover{background:#f8f4eb!important}
.dg217-accordion>summary:focus-visible{outline:2px solid #b49a69!important;outline-offset:-3px}
.dg217-accordion>summary small{font-size:10px;color:#85867b;font-weight:450}
.dg217-filter-content{padding:13px 13px 16px!important;min-width:0!important;overflow:visible}
.dg217-filter-content>select,.dg217-filter-content .dg-filter-select select{margin-top:0!important}
.dg217-filter-content .dg-price-slider{margin-top:13px!important}
.dg217-filter-content .dg-filter-checkbox{margin-top:0!important}
.dg217-filter-content .dg-material-options{margin-top:0!important}
.dg217-filter-sidebar .dg-filter-actions{
  position:sticky;bottom:-1px;z-index:2;
  background:linear-gradient(0deg,#fffdfa 85%,#fffdfad9);
  border-top:1px solid #ede5d8;padding:13px 0 5px;margin-top:9px;
}
@media(min-width:761px){
  .dg217-filter-sidebar{max-height:calc(100dvh - 128px)!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-width:thin}
}
@media(max-width:760px){
  .dg217-filter-sidebar{max-height:100dvh!important;border-radius:0!important;overscroll-behavior:contain}
  .dg217-filter-sidebar .dg-filter-top{position:sticky;top:-22px;z-index:4;background:#fffdfa;padding:15px 0 12px!important}
  .dg217-filter-sidebar .dg-filter-actions{bottom:-22px;padding-bottom:16px}
}
@media(prefers-reduced-motion:reduce){.dg217-accordion>summary,.dg217-accordion>summary::after{transition:none!important}}
