/* Demit Gold 2.0 — precise corrections after live screenshot review. */
:root{--dg20-brand:#0b392f;--dg20-gold:#b28c51}
/* Reuse one global header from header.php; override older route-dependent styling. */
html{scroll-padding-top:110px}
body.demit-theme .demit-header{position:sticky!important;top:0!important;z-index:1100!important;height:82px!important;min-height:82px!important;width:100%!important;max-width:none!important;padding:0!important;margin:0!important;background:#fff!important;box-shadow:0 1px 0 #0d3e3415!important;overflow:visible!important;border-bottom:1px solid #e9e2d8!important}
body.admin-bar.demit-theme .demit-header{top:32px!important}
body.demit-theme .demit-header-inner{height:100%!important;width:min(93%,1340px)!important;max-width:1340px!important;margin-inline:auto!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;align-items:center!important;gap:16px!important;direction:rtl!important}
body.demit-theme .demit-header-brand{position:relative;inset:auto!important;margin:auto!important;transform:none!important;place-self:center!important}
body.demit-theme .demit-header-actions{align-items:center!important;justify-self:end!important;gap:clamp(7px,1.3vw,20px)!important}
body.demit-theme .demit-nav{justify-self:start!important;min-width:0}
body.demit-theme .demit-menu>li>a{font-size:.85rem!important;font-weight:500!important;min-height:42px!important;white-space:nowrap!important}
body.demit-theme .demit-header .demit-icon-btn{box-shadow:none!important;background:transparent!important;border:0!important;border-radius:0!important}
body.demit-theme .demit-header .demit-logo-mark{width:40px!important;height:40px!important;object-fit:contain}
body.demit-theme .demit-header .demit-logo-type{max-width:120px!important;object-fit:contain}
body.demit-theme .demit-header.dg-header-scrolled{box-shadow:0 10px 30px #173d3115!important}
/* Remove vertical clipping and stacking trouble close to footer; only horizontal overflow is constrained. */
body.demit-theme #content{overflow:visible!important;min-width:0;display:flow-root;isolation:isolate}
body.demit-theme .v17-home{overflow:visible!important;min-width:0;display:flow-root;isolation:auto}
body.demit-theme .v17-home .v17-advantages{clear:both;position:relative;z-index:1;margin:0!important;width:100%;overflow:visible!important}
body.demit-theme .demit-footer{position:relative;z-index:2;clear:both;width:100%!important;max-width:none!important;overflow:visible!important;margin-top:0!important}
body.demit-theme .demit-footer-grid{width:100%;min-width:0;align-items:start;grid-auto-flow:row}
body.demit-theme .demit-footer-grid>div{min-width:0;max-width:100%;overflow-wrap:anywhere}
body.demit-theme .demit-footer img{max-width:100%;height:auto}
body.demit-theme .demit-silk-transition{display:none!important}
/* Categories keep v1.9 large cards, four columns = two rows, restore the high arch. */
body.demit-theme .v17-home .v17-cat-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:30px 23px}
body.demit-theme .v17-home .v17-cat-card{border:0!important;background:none!important;box-shadow:none!important;border-radius:0!important;overflow:visible!important;align-items:stretch;gap:13px;min-width:0}
body.demit-theme .v17-home .v17-cat-photo{display:block;position:relative;width:100%;aspect-ratio:1.18!important;border-radius:53% 53% 7px 7px / 33% 33% 7px 7px!important;overflow:hidden!important;background:#f6f0e7!important;border:1px solid #ede2d2;box-shadow:inset 0 0 0 1px #ffffff77!important}
body.demit-theme .v17-home .v17-cat-photo img{height:100%;width:100%;object-fit:contain;object-position:center;padding:4px 8px}
body.demit-theme .v17-home .v17-cat-name{background:transparent;min-height:36px;padding:0 9px 4px;font-size:.98rem;text-align:right;color:#183c30}
/* Price cards only after newest products. No sheen/sweep/glint on them under any scroll state. */
body.demit-theme .dg-budget-card,body.demit-theme .dg-budget-card:hover{filter:none!important;animation:none!important}
body.demit-theme .dg-budget-card::before,body.demit-theme .dg-budget-card::after,body.demit-theme .dg-budget-card.v17-shine-visible::after{content:none!important;display:none!important;animation:none!important;opacity:0!important}
body.demit-theme .dg-budget-section{clear:both;margin-block:clamp(95px,9vw,145px)}
/* Readable informational pages and links, no inherited clipping. */
body.demit-theme .dg-innerpage{overflow:visible;min-width:0}
body.demit-theme .dg-about-page,body.demit-theme .dg-contact-page{padding-bottom:clamp(30px,4vw,80px)}
@media(max-width:1050px){body.demit-theme .v17-home .v17-cat-grid{gap:20px 16px}}
@media(max-width:782px){body.admin-bar.demit-theme .demit-header{top:46px!important}}
@media(max-width:760px){
 html{scroll-padding-top:80px}
 body.demit-theme .demit-header{height:67px!important;min-height:67px!important}
 body.demit-theme .demit-header-inner{width:calc(100% - 30px)!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;gap:8px!important}
 body.demit-theme .demit-header-actions{gap:6px!important}
 body.demit-theme .demit-header .demit-logo-mark{width:29px!important;height:29px!important}
 body.demit-theme .demit-header .demit-logo-type{max-width:90px!important}
 body.demit-theme .v17-home .v17-cat-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:22px 12px}
 body.demit-theme .v17-home .v17-cat-photo{aspect-ratio:1.13!important;border-radius:52% 52% 5px 5px / 31% 31% 5px 5px!important}
 body.demit-theme .v17-home .v17-cat-name{font-size:.87rem}
 body.demit-theme .dg-budget-section{margin-block:76px}
 body.demit-theme .demit-footer-grid{grid-auto-flow:row!important}
}
@media(max-width:360px){body.demit-theme .demit-header-inner{width:calc(100% - 20px)!important}body.demit-theme .v17-home .v17-cat-grid{gap:14px 10px}}
@media(prefers-reduced-motion:reduce){body.demit-theme .dg-budget-card{transition:none!important}}
