/* Demit Gold v2.3 – local Peyda, consistent inner pages and stable layout */
@font-face{font-family:'Peyda';src:url('../fonts/peyda/PeydaWeb-Regular.woff') format('woff');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'Peyda';src:url('../fonts/peyda/PeydaWeb-Medium.woff') format('woff');font-style:normal;font-weight:500;font-display:swap}
@font-face{font-family:'Peyda';src:url('../fonts/peyda/PeydaWeb-SemiBold.woff') format('woff');font-style:normal;font-weight:600;font-display:swap}
@font-face{font-family:'Peyda';src:url('../fonts/peyda/PeydaWeb-Bold.woff') format('woff');font-style:normal;font-weight:700;font-display:swap}
@font-face{font-family:'Peyda';src:url('../fonts/peyda/peydaWeb-light.woff') format('woff');font-style:normal;font-weight:300;font-display:swap}
html,body,button,input,select,textarea,.woocommerce, .woocommerce button,.woocommerce input,.woocommerce select,.woocommerce textarea{font-family:'Peyda',Tahoma,sans-serif!important}
html{scroll-behavior:auto!important;overflow-x:hidden!important;scroll-padding-top:100px}
body.demit-theme{overflow-x:hidden!important;position:relative;min-width:0!important;max-width:100vw!important}
body.demit-theme #content{width:100%;max-width:100%;min-width:0;overflow-x:clip;display:flow-root}
body.demit-theme .demit-footer,body.demit-theme .demit-silk-transition,body.demit-theme .dg22-prefooter{max-width:100%;overflow-x:clip;transform:none!important}
body.demit-theme .demit-silk-transition svg{width:100%;display:block}
/* Header never scroll-translates and the mega menu is anchored to the full header, not a narrow nav. */
body.demit-theme #site-header{position:sticky!important;top:0!important;left:0;right:0;transform:none!important;translate:none!important;will-change:auto!important;isolation:isolate;overflow:visible!important;z-index:5000!important}
body.demit-theme .demit-header-inner{position:static!important;overflow:visible!important}
@media(min-width:761px){
 body.demit-theme .demit-header .demit-nav{position:static!important;overflow:visible!important}
 body.demit-theme .demit-nav .demit-menu>.demit-products-menu{position:static!important}
 body.demit-theme .demit-nav .demit-menu>.demit-products-menu>.sub-menu{position:absolute!important;top:calc(100% - 1px)!important;left:50%!important;right:auto!important;inset-inline-start:auto!important;inset-inline-end:auto!important;transform:translate(-50%,9px)!important;width:min(1000px,calc(100vw - 48px))!important;max-width:calc(100vw - 48px)!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;z-index:5001!important}
 body.demit-theme .demit-nav .demit-menu>.demit-products-menu:is(:hover,:focus-within,.is-sub-open):not([data-dg-closed="true"])>.sub-menu{transform:translate(-50%,0)!important}
 body.demit-theme .demit-nav .demit-menu>.demit-products-menu>.sub-menu:before{content:'دسته‌بندی محصولات';position:absolute;top:15px;right:26px;left:auto;inset-inline:unset;font-size:15px;color:#173e32;font-weight:700;display:block}
 body.demit-theme .demit-nav .demit-menu>.demit-products-menu>.sub-menu:after{content:'مجموعه زیورآلات دمیت گلد';position:absolute;bottom:17px;right:26px;left:auto;inset-inline:unset;font-size:12px;color:#857964;display:block}
}
/* Fine typography, breathing space, and editorial inner pages */
body.demit-theme:not(.home):not(.front-page) #content{background:linear-gradient(180deg,#fcfaf6 0,#fff 285px)}
body.demit-theme .demit-inner-shell,body.demit-theme .demit-shop-shell{max-width:1340px;margin-inline:auto}
body.demit-theme .demit-page-header{padding:clamp(35px,5vw,76px) clamp(22px,4vw,64px);text-align:center;border:1px solid #eee7db;border-radius:20px;background:radial-gradient(circle at 10% 0%,#eee8dc99,transparent 55%),#f9f7f2;margin-bottom:44px}
body.demit-theme .demit-page-header h1{font-size:clamp(28px,3.2vw,46px);font-weight:600;color:#153b30;margin:0}
body.demit-theme .demit-page-header .demit-eyebrow{font-size:12px;letter-spacing:.22em;margin-bottom:10px}
body.demit-theme .demit-entry{line-height:2.15;color:#34483e;font-size:16px}
body.demit-theme .demit-entry h2,body.demit-theme .demit-entry h3{color:#173e32;line-height:1.6}
body.demit-theme .demit-entry :is(.wp-block-group,.wp-block-columns){border-radius:16px}
body.demit-theme .demit-entry img{border-radius:16px}
body.demit-theme .demit-archive-heading{background:#f8f5ef;border:1px solid #ece4d7;border-radius:18px;padding:37px 30px;margin-bottom:32px}
body.demit-theme .dg-catalog-shell .demit-archive-heading{border-bottom:1px solid #ece4d7}
body.demit-theme .demit-shop-shell :is(.woocommerce-breadcrumb,.demit-regular-breadcrumb){margin-block:8px 26px}
body.demit-theme .woocommerce ul.products li.product{overflow:hidden;border:1px solid #ede8de!important;border-radius:14px!important;background:#fff!important;box-shadow:0 8px 27px #19382d0a;transition:transform .2s,box-shadow .2s}
body.demit-theme .woocommerce ul.products li.product:hover{transform:translateY(-3px);box-shadow:0 14px 36px #19382d13}
body.demit-theme .woocommerce ul.products li.product img{border-radius:12px 12px 0 0}
body.demit-theme .woocommerce ul.products li.product :is(h2,.price){padding-inline:12px!important}
body.demit-theme .woocommerce div.product .summary{background:#fff;border:1px solid #ece7dd;border-radius:18px;padding:clamp(20px,2vw,32px);box-shadow:0 14px 48px #17392c0b}
body.demit-theme .woocommerce div.product .woocommerce-product-gallery{border-radius:18px;overflow:hidden;background:#faf8f4}
body.demit-theme .woocommerce div.product .product_title{font-weight:600;line-height:1.6}
body.demit-theme .woocommerce-tabs,body.demit-theme .demit-seo-content{margin-top:40px;border-top:1px solid #ede5d7}
body.demit-theme :is(.woocommerce-cart .cart_totals,.woocommerce-checkout #order_review,.woocommerce-checkout #customer_details,.woocommerce-account .woocommerce-MyAccount-navigation){box-shadow:0 12px 42px #143b2e0a;border-radius:16px}
body.demit-theme :is(.woocommerce button.button,.woocommerce a.button,.woocommerce .button.alt){border-radius:10px!important}
@media(max-width:760px){html{scroll-padding-top:76px}body.demit-theme .demit-page-header{border-radius:12px;padding:32px 18px;margin-bottom:26px}body.demit-theme .demit-entry{font-size:15px}body.demit-theme .woocommerce div.product .summary{padding:18px}body.demit-theme .demit-nav .demit-menu>.demit-products-menu>.sub-menu{left:auto!important;right:auto!important;transform:none!important}body.demit-theme .demit-header{z-index:5000!important}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important}}
