/* Demit Gold 2.33 — visible, final-priority UI correction. */
/* Homepage: stronger visual hierarchy with a real footer/action zone. */
body.demit-theme .v17-home .v17-products-grid {gap:clamp(12px,1.55vw,24px)!important;align-items:stretch!important}
body.demit-theme .v17-home .dg233-product-card {
 position:relative;display:flex!important;flex-direction:column!important;min-width:0!important;
 background:#fffdf9!important;border:1px solid #e8dfd2!important;border-radius:17px!important;
 box-shadow:0 5px 18px rgba(15,53,39,.055)!important;overflow:hidden!important;
 transition:box-shadow .22s ease,transform .22s ease,border-color .22s ease!important;
}
body.demit-theme .v17-home .dg233-product-card:hover {transform:translateY(-3px)!important;box-shadow:0 15px 30px #0b3b2720!important;border-color:#cdb58c!important}
body.demit-theme .v17-home .dg233-product-card .v17-product-image {
 display:block!important;width:auto!important;aspect-ratio:1!important;margin:10px 10px 0!important;
 border-radius:12px!important;background:#f6f3ed!important;overflow:hidden!important;
}
body.demit-theme .v17-home .dg233-product-card .v17-product-image img {object-fit:contain!important;width:100%!important;height:100%!important;display:block!important}
body.demit-theme .v17-home .dg233-product-card .dg233-product-badge {
 position:absolute;top:22px;left:20px;z-index:3;pointer-events:none;
 font-size:10px;letter-spacing:0;line-height:1.7;color:#315d4c;background:#ffffffed;
 border:1px solid #e6dccc;border-radius:30px;padding:3px 9px;box-shadow:0 2px 9px #0a35121a;
}
body.demit-theme .v17-home .dg233-product-card .v17-heart {top:22px!important;right:20px!important;z-index:4}
body.demit-theme .v17-home .dg233-product-card .v17-product-info {
 display:flex!important;flex:1!important;flex-direction:column!important;min-height:0!important;padding:15px 14px 14px!important;
}
body.demit-theme .v17-home .dg233-product-card .v17-product-title {font-size:14px!important;font-weight:650!important;line-height:1.9!important;color:#163f32!important;min-height:0!important;margin:0 0 7px!important}
body.demit-theme .v17-home .dg233-product-card .dg233-price-block {
 display:flex!important;flex-direction:column!important;gap:2px!important;min-height:49px!important;
 margin:0 0 10px!important;padding:9px 0!important;border-block:1px solid #f0e9de!important;
 line-height:1.65!important;
}
body.demit-theme .v17-home .dg233-product-card .dg233-price-caption {font-size:10px;color:#958c7b;line-height:1.5}
body.demit-theme .v17-home .dg233-product-card .dg233-price-content {display:block;color:#134938;font-size:13px;font-weight:750;line-height:1.7}
body.demit-theme .v17-home .dg233-product-card .v17-product-action {margin-top:auto!important;padding:0!important}
body.demit-theme .v17-home .dg233-product-card .v17-buy {
 display:flex!important;flex-direction:row!important;justify-content:center!important;align-items:center!important;gap:9px!important;
 width:100%!important;min-height:44px!important;padding:8px 10px!important;border:1px solid #154837!important;
 border-radius:9px!important;background:#104536!important;color:#fff!important;font-weight:700!important;
 box-shadow:none!important;text-align:center!important;text-decoration:none!important;font-size:12px!important;
}
body.demit-theme .v17-home .dg233-product-card .v17-buy:hover,body.demit-theme .v17-home .dg233-product-card .v17-buy:focus-visible {background:#083b2d!important;color:#fff!important}
body.demit-theme .v17-home .dg233-product-card .v17-buy .demit-icon{width:17px!important;height:17px!important}
/* Tablet/mobile: independent native-details hierarchy instead of conflicting legacy sub-menu JS. */
@media(max-width:899px){
 #site-header.dg313-header #demit-navigation .dg233-mobile-products {display:block!important;visibility:visible!important;opacity:1!important;position:relative!important;min-height:44px!important;border-bottom:1px solid #eee7dc!important;order:unset!important;}
 #site-header.dg313-header #demit-navigation .dg233-mobile-products details {display:block!important;width:100%!important;position:relative!important;background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible!important;}
 #site-header.dg313-header #demit-navigation .dg233-mobile-products summary {display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;list-style:none!important;cursor:pointer!important;min-height:44px!important;padding:7px 5px!important;font-size:14px!important;line-height:1.8!important;font-weight:700!important;color:#123f30!important;}
 #site-header.dg313-header #demit-navigation .dg233-mobile-products summary::-webkit-details-marker {display:none!important}
 #site-header.dg313-header #demit-navigation .dg233-toggle-chevron {display:inline-block;transform:rotate(0deg);transition:transform .2s ease;color:#a77937;font-size:20px;line-height:1}
 #site-header.dg313-header #demit-navigation .dg233-products-details[open] .dg233-toggle-chevron {transform:rotate(180deg)}
 #site-header.dg313-header #demit-navigation .dg233-products-details:not([open]) .dg233-category-list {display:none!important}
 #site-header.dg313-header #demit-navigation .dg233-products-details[open] .dg233-category-list {display:grid!important;grid-template-columns:1fr!important;gap:1px!important;position:static!important;visibility:visible!important;opacity:1!important;transform:none!important;pointer-events:auto!important;max-height:none!important;overflow:visible!important;box-shadow:none!important;margin:2px 0 8px!important;padding:5px 10px!important;background:#f9f6ef!important;border-radius:10px!important;border:1px solid #ebe1d2!important;list-style:none!important;width:100%!important;}
 #site-header.dg313-header #demit-navigation .dg233-category-list>li {display:block!important;padding:0!important;margin:0!important;border-bottom:1px solid #ebe4da!important;}
 #site-header.dg313-header #demit-navigation .dg233-category-list>li:last-child{border:0!important}
 #site-header.dg313-header #demit-navigation .dg233-category-list a {display:block!important;color:#1c4c3d!important;font-size:13px!important;line-height:1.65!important;padding:10px 6px!important;text-decoration:none!important;}
 #site-header.dg313-header #demit-navigation .dg233-category-list a:hover,#site-header.dg313-header #demit-navigation .dg233-category-list a:focus-visible{background:#f0e8dc!important;border-radius:7px!important;}
 #site-header.dg313-header #demit-navigation .dg233-product-children {display:grid!important;grid-template-columns:1fr 1fr!important;gap:3px!important;position:static!important;max-height:none!important;margin:0 10px 8px!important;padding:0!important;list-style:none!important;background:transparent!important;border:0!important;box-shadow:none!important}
 #site-header.dg313-header #demit-navigation .dg233-product-children a {font-size:11px!important;padding:6px!important;color:#756a58!important}
}
@media(max-width:540px){
 body.demit-theme .v17-home .v17-products-grid {gap:10px!important}
 body.demit-theme .v17-home .dg233-product-card {border-radius:13px!important}
 body.demit-theme .v17-home .dg233-product-card .v17-product-image {margin:6px 6px 0!important;border-radius:9px!important}
 body.demit-theme .v17-home .dg233-product-card .v17-product-info {padding:10px 8px 10px!important}
 body.demit-theme .v17-home .dg233-product-card .v17-product-title{font-size:12px!important;line-height:1.7!important}
 body.demit-theme .v17-home .dg233-product-card .dg233-product-badge {font-size:9px;top:13px;left:12px;padding:1px 6px}
 body.demit-theme .v17-home .dg233-product-card .v17-heart {top:12px!important;right:12px!important}
 body.demit-theme .v17-home .dg233-product-card .dg233-price-block {margin-bottom:8px!important;padding:7px 0!important;min-height:48px!important}
 body.demit-theme .v17-home .dg233-product-card .dg233-price-content {font-size:11px}
 body.demit-theme .v17-home .dg233-product-card .v17-buy{font-size:11px!important;min-height:40px!important;padding:6px!important;gap:5px!important}
}
@media(prefers-reduced-motion:reduce){body.demit-theme .v17-home .dg233-product-card,body.demit-theme .v17-home .dg233-product-card *{transition:none!important}}
