/* Demit Gold 2.32: warm-minimal cards, stable sticky header, social icons and mobile taxonomy. */
body.demit-theme .v17-home .v17-products-grid{align-items:stretch;gap:clamp(10px,1.45vw,22px)}
body.demit-theme .v17-home .v17-product{
  display:flex;flex-direction:column;min-width:0;overflow:hidden;border-radius:18px;
  border:1px solid #eae4d9;background:#fffdf9;box-shadow:0 3px 16px rgba(20,48,38,.03);
  transition:transform .28s cubic-bezier(.2,.8,.2,1),box-shadow .28s ease,border-color .28s ease
}
body.demit-theme .v17-home .v17-product:hover{transform:translateY(-3px);border-color:#dbc9ae;box-shadow:0 16px 34px rgba(14,53,39,.095)}
body.demit-theme .v17-home .v17-product-image{aspect-ratio:1/1;background:#f7f5f0;overflow:hidden;border-radius:0}
body.demit-theme .v17-home .v17-product-image img{width:100%;height:100%;object-fit:contain;transform:none;transition:transform .4s ease}
body.demit-theme .v17-home .v17-product:hover .v17-product-image img{transform:scale(1.035)}
body.demit-theme .v17-home .v17-heart{display:grid;place-items:center;background:#fffdf9de!important;border-radius:50%;width:34px;height:34px;box-shadow:0 2px 9px #173d3115}
body.demit-theme .v17-home .v17-product-info{display:flex;flex-direction:column;flex:1;min-height:0;padding:14px 14px 13px}
body.demit-theme .v17-home .v17-product-title{font-size:clamp(13px,.85vw,15px);line-height:1.75;min-height:2.9em;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin-bottom:5px}
body.demit-theme .v17-home .v17-product-price{font-weight:650;font-size:clamp(12px,.84vw,15px);color:#154537;min-height:2.7em;line-height:1.65}
body.demit-theme .v17-home .v17-product-action{margin-top:auto;padding-top:11px}
body.demit-theme .v17-home .v17-product .v17-buy{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-height:42px;border-radius:10px!important;border:1px solid #194b3b!important;background:#124737!important;color:#fff!important;padding:8px 9px;font-size:clamp(11px,.8vw,13px);font-weight:650;line-height:1.5;text-decoration:none;transition:background-color .2s ease,box-shadow .2s ease,transform .2s ease}
body.demit-theme .v17-home .v17-product .v17-buy:hover,body.demit-theme .v17-home .v17-product .v17-buy:focus-visible{background:#0a3528!important;box-shadow:0 5px 13px #12473730;transform:translateY(-1px)}
body.demit-theme .v17-home .v17-product .v17-buy:focus-visible{outline:2px solid #ceaa70;outline-offset:2px}
body.demit-theme .v17-home .v17-product .v17-buy .demit-icon{width:17px;height:17px;flex-shrink:0}
body.demit-theme .demit-footer .demit-compact-socials{display:flex;align-items:center;justify-content:flex-start;gap:10px}
body.demit-theme .demit-footer .demit-compact-socials>a{display:inline-flex!important;align-items:center!important;justify-content:center!important;vertical-align:middle;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;box-sizing:border-box!important;line-height:1!important;padding:0!important;border:1px solid #ffffff55!important;border-radius:50%!important}
body.demit-theme .demit-footer .demit-compact-socials>a .demit-icon,body.demit-theme .demit-footer .demit-compact-socials>a svg{display:block!important;position:static!important;transform:none!important;margin:0 auto!important;width:18px!important;height:18px!important;max-width:18px!important;max-height:18px!important;flex:0 0 18px!important}
/* Consistent horizontal painting without sticky-height microanimations. */
html body #site-header.dg313-header{backface-visibility:hidden}
html body #site-header.dg313-header .dg313-main,html body #site-header.dg313-header .dg313-top,html body #site-header.dg313-header .dg313-featured-inner{transition-property:background-color,box-shadow!important;transition-duration:.16s!important;animation:none!important}
html body #site-header.dg313-header.dg313-scrolled .dg313-top{transition:none!important}
#site-header.dg313-header .dg313-brand,#site-header.dg313-header .dg313-search,#site-header.dg313-header .dg313-actions{min-width:0}
#site-header.dg313-header #demit-navigation .dg232-custom-products{position:relative;display:block!important}
#site-header.dg313-header #demit-navigation .dg232-cats-toggle{position:absolute;left:4px;top:6px;display:inline-flex!important;align-items:center;justify-content:center;border:1px solid #e6d8c2;background:#fbf7ef;color:#124334;border-radius:8px;width:33px;height:33px;cursor:pointer;transition:transform .2s ease,background .2s ease}
#site-header.dg313-header #demit-navigation .dg232-custom-products.dg232-cats-open>.dg232-cats-toggle{background:#f1e6d4;transform:rotate(180deg)}
#site-header.dg313-header #demit-navigation .dg232-custom-products>.dg232-mobile-categories{position:static!important;display:none!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;transform:none!important;width:100%!important;max-height:38vh!important;overflow-y:auto!important;margin:8px 0!important;padding:4px 15px 7px!important;background:#fffdf7!important;border:0!important;border-right:2px solid #dac8a7!important;box-shadow:none!important;list-style:none!important}
#site-header.dg313-header #demit-navigation .dg232-custom-products.dg232-cats-open>.dg232-mobile-categories{display:block!important}
#site-header.dg313-header #demit-navigation .dg232-mobile-categories li{padding:5px 0!important;border-bottom:1px solid #f4ede2!important}
#site-header.dg313-header #demit-navigation .dg232-mobile-categories a{display:block;color:#174638;font-size:13px;padding:7px 4px;text-decoration:none}
body.demit-theme .dg232-checkout-terms{display:flex;flex-direction:column;gap:3px;padding:12px 14px;background:#f7f4ed;border:1px solid #e8d8bc;border-radius:10px;font-size:13px}
body.demit-theme .dg232-checkout-terms a{color:#0d533c;font-weight:700;text-decoration:underline;text-underline-offset:3px}
body.demit-theme .dg232-checkout-terms span{color:#6e675a;font-size:12px}
@media(max-width:899px){
  html body #site-header.dg313-header .dg313-main{direction:rtl!important;grid-template-columns:minmax(0,1fr) auto!important}
  html body #site-header.dg313-header .dg313-main .dg313-brand{grid-column:1!important;grid-row:1!important;justify-self:start!important;order:0!important;direction:rtl!important}
  html body #site-header.dg313-header .dg313-main .dg313-actions{grid-column:2!important;grid-row:1!important;justify-self:end!important;order:1!important}
}
@media(max-width:540px){
  body.demit-theme .v17-home .v17-products-grid{gap:10px}
  body.demit-theme .v17-home .v17-product{border-radius:12px}
  body.demit-theme .v17-home .v17-product-info{padding:9px 9px 10px}
  body.demit-theme .v17-home .v17-product .v17-buy{font-size:11px;min-height:40px;padding:6px 4px}
}
@media(prefers-reduced-motion:reduce){body.demit-theme .v17-product,body.demit-theme .v17-product *{transition:none!important;animation:none!important}}
/* Search field must not widen the RTL grid at narrow device widths. */
html body #site-header.dg313-header #demit-search-panel.dg313-search{box-sizing:border-box!important;min-width:0!important;max-width:100%!important;width:100%!important}
