/* TASMO / D&G-style header. Prefix thdg keeps styles separate from Woodmart. */
.thdg,.thdg-modal{--thdg-paper:#f8f7f3;--thdg-ink:#223136;--thdg-slate:#4c6971;--thdg-line:#dedfd9;--thdg-mist:#edf1ef;font:400 14px/1.5 'Jost','Futura','Century Gothic',sans-serif;color:var(--thdg-ink);box-sizing:border-box}
.thdg *,.thdg-modal *{box-sizing:border-box}
.thdg{width:100%;background:var(--thdg-paper);border-bottom:1px solid #e7e7e0}
.thdg--standalone{position:sticky;top:0;z-index:100}
.admin-bar .thdg--standalone{top:32px}
.thdg a,.thdg-modal a{color:inherit;text-decoration:none}
.thdg button,.thdg-modal button{appearance:none;box-shadow:none;border:0;border-radius:0;background:transparent;color:inherit;font:inherit;padding:0;min-height:0;cursor:pointer;text-transform:none;letter-spacing:inherit}
.thdg button:hover,.thdg-modal button:hover{background:transparent;color:inherit}
.thdg :focus-visible,.thdg-modal :focus-visible{outline:2px solid var(--thdg-slate);outline-offset:4px}
.thdg svg,.thdg-modal svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.1;display:block}
.thdg-row{height:72px;display:grid;grid-template-columns:minmax(0,1fr) 186px minmax(0,1fr);gap:25px;align-items:center;padding:0 3%}
.thdg-left,.thdg-right{display:flex;align-items:center;min-width:0;gap:20px}
.thdg-right{justify-content:flex-end;gap:10px}
.thdg-icon{display:flex!important;align-items:center;justify-content:center;flex-shrink:0;width:40px;min-height:44px!important}
.thdg-nav{display:flex;gap:26px;align-items:center;font-size:12px;letter-spacing:.025em;text-transform:uppercase;white-space:nowrap}
.thdg-nav a{padding:7px 0;border-bottom:1px solid transparent}
.thdg-nav a:first-child,.thdg-nav a:hover{border-bottom-color:currentColor}
.thdg-logo{display:block;position:relative;justify-self:center;width:186px;height:36px;overflow:hidden}
.thdg-logo img{display:block;max-width:none;width:186px;height:186px;position:absolute;top:-139px;object-fit:contain}
.thdg-logo--full{width:94px;height:66px}
.thdg-logo--full img{position:static;width:100%;height:100%}
.thdg-search-inline{display:flex;align-items:center;width:180px;border-bottom:1px solid var(--thdg-ink);gap:12px}
.thdg-search-inline button{display:flex;align-items:center;min-height:36px;width:25px;flex-shrink:0}
.thdg .thdg-search-inline input{min-width:0;width:100%;padding:8px 0;background:transparent;border:0;box-shadow:none;border-radius:0;font:400 13px/1.4 'Jost',sans-serif;height:auto;outline-offset:2px;color:var(--thdg-ink)}
.thdg-search-inline input::placeholder{color:var(--thdg-ink);opacity:1}
.thdg-mobile-search{display:none!important}
.thdg-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* The modal is moved to body by header.js to escape transformed theme ancestors. */
.thdg-modal{position:fixed;inset:24px auto 24px 24px;margin:0;width:416px;max-width:calc(100vw - 48px);height:calc(100dvh - 48px);max-height:none;padding:0;border:0;border-radius:16px;background:var(--thdg-paper);overflow:hidden;z-index:100000}
.thdg-modal:not([open]){display:none!important}
.thdg-modal[open]{display:flex;flex-direction:column;animation:thdg-in .2s ease-out}
.thdg-modal::backdrop{background:rgba(24,31,32,.2);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.thdg-modal [hidden]{display:none!important}
.thdg-dialog-top{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:20px 24px 18px;border-bottom:1px solid var(--thdg-line)}
.thdg-tabs{display:flex;gap:17px;min-width:0}
.thdg-tabs button{font-size:12px;letter-spacing:.035em;text-transform:uppercase;padding:7px 0;min-height:36px;border-bottom:1px solid transparent;white-space:nowrap}
.thdg-tabs button[aria-selected=true]{border-bottom-color:currentColor}
.thdg-close{min-height:40px!important;min-width:28px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.thdg-dialog-content{padding:18px 24px 26px;flex:1;overflow:auto;overscroll-behavior:contain}
.thdg-feature-link{display:block;font-size:17px;letter-spacing:.025em;text-transform:uppercase;padding:7px 0;margin-bottom:13px}
.thdg-drawer-links{list-style:none;margin:0;padding:14px 0;border-top:1px solid var(--thdg-line);border-bottom:1px solid var(--thdg-line)}
.thdg-drawer-links li{list-style:none;margin:0;padding:0}
.thdg-drawer-links a{display:flex;align-items:center;justify-content:space-between;font-size:15px;min-height:43px;gap:15px}
.thdg-drawer-links a span:last-child{font-size:19px;font-weight:400}
.thdg-story-links{padding-top:18px}
.thdg-story-links a{display:block;text-transform:uppercase;font-size:12px;min-height:38px;padding:8px 0;letter-spacing:.025em}
.thdg-dialog-footer{border-top:1px solid var(--thdg-line);padding:19px 24px 24px;background:var(--thdg-paper)}
.thdg-dialog-footer a{display:block;font-size:12px;min-height:32px;padding:6px 0}
.thdg-dialog-footer p{margin:10px 0 0;font:400 12px/1.5 'Jost',sans-serif;color:var(--thdg-slate)}
.thdg-search-dialog{inset:24px 24px auto auto;width:520px;height:auto;max-height:calc(100dvh - 48px)}
.thdg-search-dialog h2{font:400 17px/1.4 'Jost',sans-serif;letter-spacing:.02em;margin:0}
.thdg-search-form{padding:24px}
.thdg-search-field{display:flex;align-items:center;border-bottom:1px solid var(--thdg-ink);gap:12px}
.thdg-search-form input{font:400 18px/1.4 'Jost',sans-serif;width:100%;min-width:0;background:transparent;border:0;border-radius:0;box-shadow:none;color:var(--thdg-ink);padding:10px 0;height:auto}
.thdg-search-form button{min-height:44px;min-width:34px;display:flex;align-items:center;justify-content:center}
.thdg-search-quicklinks{display:flex;gap:21px;flex-wrap:wrap;padding-top:27px}
.thdg-search-quicklinks a{font-size:12px;text-transform:uppercase;padding:7px 0;border-bottom:1px solid var(--thdg-line)}
html.thdg-is-open{overflow:hidden}
.thdg-fallback-backdrop{position:fixed;inset:0;background:#18202455;backdrop-filter:blur(14px);z-index:99999}
@keyframes thdg-in{from{opacity:0;transform:translateX(-12px)}to{opacity:1;transform:translateX(0)}}
@media(max-width:1150px){.thdg-row{grid-template-columns:minmax(0,1fr) 165px minmax(0,1fr);gap:15px;padding:0 2%}.thdg-nav{gap:17px}.thdg-left{gap:10px}.thdg-search-inline{width:130px}.thdg-right{gap:4px}.thdg-logo{width:165px;height:33px}.thdg-logo img{width:165px;height:165px;top:-123px}}
@media(max-width:950px){.thdg-nav{display:none}.thdg-search-inline{width:155px}}
@media(max-width:820px){.thdg-search-inline{display:none!important}.thdg-mobile-search{display:flex!important}}
@media(max-width:700px){.thdg-row{height:64px;padding:0 15px;grid-template-columns:1fr 142px 1fr;gap:12px}.thdg-logo{width:142px;height:29px}.thdg-logo img{width:142px;height:142px;top:-106px}.thdg-search-inline,.thdg-account,.thdg-wishlist{display:none!important}.thdg-mobile-search{display:flex!important}.thdg-right{gap:2px}.thdg-icon{width:36px}.thdg svg{width:21px;height:21px}.thdg-modal{inset:12px;width:calc(100vw - 24px);max-width:none;height:calc(100dvh - 24px);border-radius:13px}.thdg-dialog-top{padding:16px 20px}.thdg-dialog-content{padding:17px 20px 24px}.thdg-dialog-footer{padding:15px 20px 20px}.thdg-search-dialog{height:auto;max-height:calc(100dvh - 24px)}.thdg-tabs{gap:19px}.thdg-tabs button{font-size:12px}.thdg-logo--full{height:59px;width:84px}.thdg-logo--full img{width:100%;height:100%;position:static}}
@media(max-width:370px){.thdg-row{padding:0 10px;grid-template-columns:1fr 118px 1fr;gap:5px}.thdg-logo{width:118px;height:25px}.thdg-logo img{width:118px;height:118px;top:-88px}.thdg-icon{width:34px}.thdg-tabs{gap:12px}.thdg-logo--full{width:80px;height:56px}.thdg-logo--full img{position:static;width:100%;height:100%}}
@media(max-width:782px){.admin-bar .thdg--standalone{top:46px}}
@media(prefers-reduced-motion:reduce){.thdg-modal[open]{animation:none}}

/* Automatic replacement is conditional on this plugin actually rendering a header. */
body.tasmo-header-mounted .whb-header,body.tasmo-header-mounted .whb-clone{display:none!important}
body:has(>[data-tasmo-autoheader][data-tasmo-placement="top"]) .whb-header,body:has(>[data-tasmo-autoheader][data-tasmo-placement="top"]) .whb-clone{display:none!important}
.thdg .thdg-logo.tasmo-horizontal-logo{width:186px;height:38px}.thdg .thdg-logo.tasmo-horizontal-logo img{position:static;width:100%;height:100%;object-fit:contain}
.tasmo-cart-icon{position:relative}.tasmo-live-count{position:absolute;right:0;top:1px;min-width:16px;height:16px;display:flex;align-items:center;justify-content:center;padding:0 3px;font-size:10px;line-height:1;background:var(--thdg-gold,#d5a251);color:#18282b;border-radius:20px}.tasmo-live-count[data-empty="1"]{display:none}
.thdg-tabs button[aria-selected=true]{border-bottom-color:var(--thdg-gold,#d5a251)}
.tasmo-cart-dialog{inset:24px 24px 24px auto;width:440px}.tasmo-cart-dialog h2{font:400 17px/1.4 'Jost',sans-serif;margin:0}.tasmo-cart-content{overflow:auto;overscroll-behavior:contain;padding:20px 24px;flex:1}.tasmo-live-minicart ul{list-style:none;margin:0;padding:0}.tasmo-live-minicart ul li{list-style:none;position:relative;padding:0 24px 20px 0;margin:0 0 20px;border-bottom:1px solid var(--thdg-line);min-height:84px;font-size:13px}.tasmo-live-minicart ul li::after{content:'';display:block;clear:both}.tasmo-live-minicart ul li a{display:block;font-size:13px;line-height:1.5}.tasmo-live-minicart ul li a img{width:64px;height:78px;object-fit:cover;float:left;margin:0 14px 8px 0}.tasmo-live-minicart ul li a.remove{position:absolute;right:0;top:0;width:22px;height:26px;text-align:center;font-size:20px;font-weight:400;background:none;color:var(--thdg-ink)!important}.tasmo-live-minicart .quantity{display:block;margin-top:9px;font-size:12px;color:var(--thdg-slate)}.tasmo-live-minicart .total{display:flex;justify-content:space-between;padding:14px 0;margin:0;border-top:0;font-size:14px}.tasmo-live-minicart .buttons{display:grid;gap:10px;margin:15px 0}.tasmo-live-minicart .buttons a{display:block;text-align:center;padding:13px 16px;border:1px solid var(--thdg-ink);background:transparent;color:var(--thdg-ink);font:400 12px/1.5 'Jost',sans-serif;letter-spacing:.04em;text-transform:uppercase;border-radius:0}.tasmo-live-minicart .buttons a.checkout{background:var(--thdg-ink);color:var(--thdg-paper)}
.thdg-search-inline{position:relative}.tasmo-search-results[hidden]{display:none!important}.tasmo-search-results{position:absolute;right:0;top:calc(100% + 12px);width:380px;max-width:calc(100vw - 28px);max-height:min(70dvh,560px);overflow:auto;z-index:30;padding:9px 14px;background:var(--thdg-paper);border:1px solid var(--thdg-line);box-shadow:0 8px 24px #17212512;text-align:left;white-space:normal}.tasmo-search-product{display:flex!important;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--thdg-line)}.tasmo-search-product img{width:48px;height:58px;object-fit:cover;flex-shrink:0}.tasmo-search-name{display:block;font-size:12px;line-height:1.5}.tasmo-search-price{display:block;font-size:12px;color:var(--thdg-slate);margin-top:4px}.tasmo-search-stock{display:block;font-size:11px;margin-top:3px}.tasmo-search-status{font:400 13px/1.5 'Jost',sans-serif;padding:12px 0;margin:0}.tasmo-all-results{display:block;font:400 12px/1.5 'Jost',sans-serif;padding:15px 0 9px;text-align:center;text-transform:uppercase}.thdg-search-form .tasmo-search-results{position:static;width:100%;max-width:none;max-height:55dvh;box-shadow:none;border:0;margin-top:15px;padding:0}
@media(max-width:700px){.tasmo-cart-dialog{inset:12px;width:calc(100vw - 24px);height:calc(100dvh - 24px)}.thdg .thdg-logo.tasmo-horizontal-logo{width:142px;height:32px}.tasmo-cart-content{padding:18px 20px}.tasmo-live-count{top:2px;right:-1px}}
@media(max-width:370px){.thdg .thdg-logo.tasmo-horizontal-logo{width:118px;height:28px}}
/* Hide a previously pasted version of this header when automatic mode is mounted. */
body.tasmo-header-mounted .thdg[data-thdg]{display:none!important}
@media(max-width:600px){.admin-bar .thdg--standalone{top:0}}

/* v1.1: surface opacity never fades the logo, text, or controls. */
.thdg[data-tasmo-header]{isolation:isolate;--tasmo-surface:var(--thdg-paper);--tasmo-blur:0px;--tasmo-ui-ink:var(--thdg-ink);background:var(--tasmo-surface);color:var(--tasmo-ui-ink);-webkit-backdrop-filter:blur(var(--tasmo-blur));backdrop-filter:blur(var(--tasmo-blur));transition:background-color .28s ease,color .22s ease,box-shadow .28s ease,backdrop-filter .28s ease;border-bottom:0;box-shadow:inset 0 -1px 0 #2231360d;}
.thdg.thdg--effects{--tasmo-surface:var(--tasmo-top-surface,var(--thdg-paper));--tasmo-blur:var(--tasmo-top-blur,0px);--tasmo-ui-ink:var(--tasmo-top-ink,var(--thdg-ink));}
.thdg.thdg--effects.tasmo-is-scrolled{--tasmo-surface:var(--tasmo-scroll-surface,var(--thdg-paper));--tasmo-blur:var(--tasmo-scroll-blur,0px);--tasmo-ui-ink:var(--tasmo-scroll-ink,var(--thdg-ink));box-shadow:0 6px 24px #18282b0c,inset 0 -1px 0 #2231360d;}
.thdg[data-tasmo-top-style="transparent"]:not(.tasmo-is-scrolled),.thdg.tasmo-is-scrolled[data-tasmo-scroll-style="transparent"]{box-shadow:none;}
.thdg .thdg-search-inline{border-bottom-color:currentColor;}
.thdg .thdg-search-inline input,.thdg .thdg-search-inline input::placeholder{color:var(--tasmo-ui-ink);}
/* Inline suggestions retain their panel colours even over a white-on-image header. */
.thdg .tasmo-search-results{color:var(--thdg-ink);}
.thdg--overlay{position:absolute;left:0;right:0;top:var(--tasmo-admin-offset,0px);z-index:100;}
.thdg--overlay.thdg--standalone{position:fixed;}
.thdg--standalone{top:var(--tasmo-admin-offset,0px);}
.admin-bar .thdg--standalone,.admin-bar .thdg--overlay{top:var(--tasmo-admin-offset,32px);}
@media(max-width:782px){.admin-bar .thdg--standalone,.admin-bar .thdg--overlay{top:var(--tasmo-admin-offset,46px);}}
@media(prefers-reduced-motion:reduce){.thdg[data-tasmo-header]{transition:none;}}
