/* TTW Header 1.2.2 — Flatsome Classic. */
#header{--ttw-green:#064b35;--ttw-gold:#f7dda1;font-family:Arial,'Helvetica Neue',sans-serif}
#header .header-main{background:linear-gradient(180deg,#fffef9 0%,#fbf4dc 28%,#e4d4a3 92%,#c7ae65 100%)!important;border-top:1px solid #fff;border-bottom:1px solid #b3974b;box-shadow:inset 0 2px 1px #fff,inset 0 -4px 7px #86733126,0 6px 14px #053b2b29}
#header .header-main .header-inner{height:78px!important;padding:0 18px}
#header .header-main .header-nav{gap:2px;flex-wrap:nowrap}
#header .header-main .header-nav>li{margin:0 2px}
#header .header-main .header-nav>li.menu-item>a{font-family:Arial,sans-serif;font-size:18px;font-weight:700;line-height:1.4;text-transform:uppercase;letter-spacing:0;white-space:nowrap;padding:12px 8px;border-radius:8px;color:var(--ttw-green)!important;text-shadow:0 1px #fff,0 2px 1px #705b2526;transition:background .18s,color .18s,box-shadow .18s}
#header .header-main .header-nav>li.menu-item>a:hover,#header .header-main .header-nav>li.menu-item>a:focus-visible,#header .header-main .header-nav>li.current-menu-item>a{background:linear-gradient(#17795b,#064b35);color:var(--ttw-gold)!important;text-shadow:0 1px #003d2b;box-shadow:inset 0 1px #ffffff6b,0 3px 0 #043021,0 5px 10px #06382422}
#header #logo{width:220px!important;flex:0 0 220px!important;padding:0;margin:0 14px}
#header #logo>a{display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:58px;height:58px;padding:7px 12px;border:1px solid #fff;border-radius:70px;background:linear-gradient(#fff,#fffefa);box-shadow:inset 0 2px #fff,0 3px 0 #c8b575,0 6px 18px #71591820}
#header #logo img{width:100%!important;height:auto!important;max-height:42px!important;object-fit:contain}
#header a:focus-visible,#header summary:focus-visible{outline:2px solid #94701f;outline-offset:3px}
#header .ttw-header-account{position:relative;max-width:100%;font-family:Arial,sans-serif}
#header .ttw-account-button,#header .header-main :is(.nav-icon>a,a.nav-icon){display:flex;align-items:center;justify-content:center;gap:5px;min-height:42px;padding:8px 10px;border:1px solid #bda366;border-radius:10px;background:linear-gradient(180deg,#258162,#0b5940 55%,#043d2b);box-shadow:inset 0 1px 1px #ffffff70,inset 0 -2px 3px #001f1866,0 3px 0 #033324,0 5px 9px #064b3526;color:var(--ttw-gold)!important;font-size:12px;font-weight:700;line-height:1.2;text-shadow:0 1px #002f22;text-decoration:none;white-space:nowrap;cursor:pointer;transition:filter .18s,transform .18s}
#header .ttw-account-button:hover,#header .header-main :is(.nav-icon>a,a.nav-icon):hover{filter:brightness(1.12)}
#header .ttw-account-button:active,#header .header-main :is(.nav-icon>a,a.nav-icon):active{transform:translateY(1px)}
#header .ttw-account-details{position:relative}
#header .ttw-account-details summary{list-style:none}
#header .ttw-account-details summary::-webkit-details-marker{display:none}
#header .ttw-account-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#header .ttw-account-panel{position:absolute;right:0;top:calc(100% + 10px);z-index:100;width:230px;max-width:calc(100vw - 24px);padding:14px;background:#fffdf6;border:1px solid #ccb978;border-radius:12px;box-shadow:0 10px 28px #00352433;color:#064b35;text-align:left;white-space:normal}
#header .ttw-account-panel strong{display:block;font-size:15px;line-height:1.5;overflow-wrap:anywhere;margin-bottom:9px}
#header .ttw-account-panel a{display:block;padding:10px 4px;color:#064b35;font-size:14px;font-weight:700;border-top:1px solid #e7dfc7}
#header .header-main :is(.nav-icon>a,a.nav-icon) .menu-title{display:none!important}
#header .header-main :is(.nav-icon>a,a.nav-icon):after{content:'MENU';font-size:12px;font-weight:700}
#header .header-main .nav-icon .icon-menu{font-size:19px}
@media(min-width:850px){
 #header .header-main{height:78px!important;min-height:78px!important}
}
@media(min-width:1100px) and (max-width:1249px){
 #header #logo{width:190px!important;flex-basis:190px!important;margin:0 8px}
 #header .header-main .header-nav>li.menu-item>a{font-size:16px;padding:10px 5px}
 #header .header-main .header-nav>li{margin:0 1px}
}
@media(min-width:850px) and (max-width:1099px){
 #header #logo{width:170px!important;flex-basis:170px!important;margin:0 6px}
 #header .header-main .header-nav>li.menu-item>a{font-size:13px;padding:10px 4px}
 #header .header-main .header-nav>li{margin:0 1px}
}
@media(max-width:849px){
 #header .header-main .header-inner{display:grid;grid-template-columns:96px minmax(0,1fr) 96px;gap:8px;height:53px!important;padding:0 10px}
 #header .header-main .header-inner>.flex-left{grid-column:1;grid-row:1;min-width:0}
 #header .header-main .header-inner>.flex-right{grid-column:3;grid-row:1;min-width:0;width:100%;justify-self:end}
 #header #logo{grid-column:2;grid-row:1;width:100%!important;min-width:0;max-width:200px;flex:none!important;justify-self:center;margin:0!important}
 #header .header-main{height:53px!important;min-height:53px!important}
 #header #logo>a{box-sizing:border-box;min-height:40px;height:40px;padding:4px 8px}
 #header #logo img{max-height:30px!important}
 #header .header-main .header-nav{width:100%;gap:0;justify-content:flex-end}
 #header .header-main .header-nav>li{margin:0;width:100%;min-width:0}
 #header .ttw-account-button,#header .header-main :is(.nav-icon>a,a.nav-icon){box-sizing:border-box;min-height:38px;height:38px;margin:0;border-radius:9px}
 #header .ttw-account-button{width:100%;max-width:96px;box-sizing:border-box;font-size:11px;padding:6px 6px}
 #header .header-main :is(.nav-icon>a,a.nav-icon){padding:6px 7px;font-size:11px}
 #header .header-main :is(.nav-icon>a,a.nav-icon):after{font-size:11px}
}
@media(max-width:360px){
 #header .header-main .header-inner{grid-template-columns:88px minmax(0,1fr) 88px;gap:6px;padding:0 7px}
 #header .ttw-account-button{font-size:10px;padding:6px 5px}
 #header .header-main :is(.nav-icon>a,a.nav-icon):after{font-size:10px}
 #header #logo>a{padding:4px 5px}
}
@media(prefers-reduced-motion:reduce){#header a,#header summary{transition:none!important}}

/* TTW menu trigger: Flatsome can wrap the link inside .header-button. */
#header .header-main a[data-open="#main-menu"]{display:inline-flex!important;align-items:center;justify-content:center;gap:5px;width:auto!important;min-width:0;min-height:38px;height:38px;box-sizing:border-box;margin:0!important;padding:6px 7px!important;border:1px solid #bda366!important;border-radius:9px!important;background:linear-gradient(#258162,#0b5940 55%,#043d2b)!important;box-shadow:inset 0 1px 1px #ffffff70,0 3px 0 #033324,0 5px 9px #064b3526;color:#f7dda1!important;line-height:1.2!important;text-shadow:0 1px #002f22}
#header .header-main a[data-open="#main-menu"] .menu-title{display:none!important}
#header .header-main a[data-open="#main-menu"]:after{content:'MENU'!important;display:inline-block!important;position:static!important;width:auto!important;height:auto!important;background:none!important;opacity:1!important;font:700 11px/1.2 Arial,sans-serif!important;letter-spacing:0!important;color:#f7dda1!important;transform:none!important}
#header .header-main a[data-open="#main-menu"] i{font-size:17px!important;color:#f7dda1!important}
@media(min-width:850px){
 #header .ttw-header-account{width:104px;margin-left:7px}
 #header .ttw-account-button{box-sizing:border-box;width:104px;max-width:104px;font-size:11px;min-height:40px;padding:8px 6px}
}
@media(max-width:360px){#header .header-main a[data-open="#main-menu"]{gap:4px;padding:6px 5px!important}#header .header-main a[data-open="#main-menu"]:after{font-size:10px!important}}
/* Only the mobile menu popup; other product/cart/lightbox popups retain their styles. */
.mfp-bg.main-menu-overlay{background:#063d2d!important;opacity:.72!important}
body:has(.mfp-content #main-menu) .mfp-content{width:min(440px,calc(100vw - 28px))!important;max-width:440px!important;vertical-align:middle!important}
#main-menu{box-sizing:border-box;width:100%!important;max-width:440px;margin:16px auto!important;padding:26px 18px 20px!important;background:linear-gradient(145deg,#fffef9,#f5ecd0)!important;border:1px solid #d6bd79;border-radius:22px;box-shadow:inset 0 2px #fff,0 8px 0 #9c824533,0 22px 60px #002e2459;color:#064b35!important;max-height:calc(100dvh - 52px);overflow-y:auto;text-align:left}
#main-menu:before{content:'TÂM THÁI WELLNESS';display:block;text-align:center;font:700 17px/1.4 Arial,sans-serif;letter-spacing:.5px;color:#064b35;padding:4px 20px 18px;margin-bottom:8px;border-bottom:1px solid #d6bd79}
#main-menu .sidebar-menu{padding:0!important}
#main-menu .nav{padding:0!important;margin:0!important}
#main-menu .nav>li{border:0!important;margin:8px 0!important;display:block!important}
#main-menu .nav>li>a{display:flex!important;align-items:center;justify-content:center;box-sizing:border-box;min-height:48px;padding:12px 10px!important;border:1px solid #d9c78f!important;border-radius:11px;background:linear-gradient(#fffef8,#eee2bd)!important;box-shadow:inset 0 1px #fff,0 3px 0 #c6ae6e55;color:#064b35!important;font:700 17px/1.4 Arial,sans-serif!important;text-transform:uppercase!important;letter-spacing:0!important;text-shadow:0 1px #fff!important;text-align:center;white-space:normal}
#main-menu .nav>li>a:hover,#main-menu .nav>li>a:focus-visible,#main-menu .nav>li.active>a,#main-menu .nav>li.current-menu-item>a{background:linear-gradient(#207f60,#064b35)!important;color:#f7dda1!important;text-shadow:0 1px #003b28!important;border-color:#ae944f!important}
#main-menu .nav li ul a{font:600 16px/1.5 Arial,sans-serif!important;color:#064b35!important;padding:10px!important;white-space:normal}
body:has(.mfp-content #main-menu) .mfp-close{color:#f7dda1!important;opacity:1!important;background:#064b35!important;border:1px solid #bda366!important;border-radius:50%!important;position:fixed!important;top:12px!important;right:12px!important;width:44px!important;height:44px!important;line-height:44px!important;font-size:30px!important}
#main-menu a:focus-visible{outline:2px solid #94701f;outline-offset:3px}
/* Style WooCommerce's own account forms; authentication stays with WooCommerce. */
body.woocommerce-account #main{background:#fffdf6;color:#064b35}
body.woocommerce-account .page-title{background:linear-gradient(#fffef9,#f5ecd0)!important;border-bottom:1px solid #d6bd79}
body.woocommerce-account .page-title h1{font:700 28px/1.4 Arial,sans-serif!important;color:#064b35!important;letter-spacing:.5px}
body.woocommerce-account #customer_login h2{font:700 24px/1.4 Arial,sans-serif;color:#064b35}
body.woocommerce-account form.login,body.woocommerce-account form.register{padding:24px!important;background:linear-gradient(#fff,#fffaf0);border:1px solid #d9c78f!important;border-radius:16px;box-shadow:0 8px 24px #064b3512}
body.woocommerce-account .woocommerce form label{font-size:16px;font-weight:600;color:#064b35}
body.woocommerce-account .woocommerce form .input-text{min-height:46px;font-size:16px;border:1px solid #cbb77d;border-radius:8px;background:#fff}
body.woocommerce-account .woocommerce form button.button{min-height:44px;padding:10px 22px;border:1px solid #bda366;border-radius:10px;background:linear-gradient(#258162,#064b35)!important;color:#f7dda1!important;box-shadow:inset 0 1px #ffffff70,0 3px 0 #033324;font-weight:700}
body.woocommerce-account .woocommerce a{color:#064b35}
@media(max-width:849px){body.woocommerce-account .page-title h1{font-size:24px!important}body.woocommerce-account form.login,body.woocommerce-account form.register{padding:18px!important}}

/* Desktop account above the balanced 3 / logo / 3 navigation. */
@media(min-width:850px){
 #header #top-bar{height:32px!important;min-height:32px!important;background:#064b35!important;border-bottom:1px solid #d3ba76;color:#f7dda1}
 #header #top-bar .header-inner{height:32px!important;min-height:32px!important}
 #header #top-bar .nav>li{margin-top:0!important;margin-bottom:0!important}
 #header #top-bar .ttw-header-account{width:auto;max-width:200px;margin:0}
 #header #top-bar .ttw-account-button{box-sizing:border-box;width:auto;max-width:200px;height:26px;min-height:26px;margin:0;padding:3px 9px;border:1px solid #bda36666;border-radius:6px;background:linear-gradient(#17694f,#064b35);box-shadow:inset 0 1px #ffffff20;color:#f7dda1!important;font:700 12px/1.3 Arial,sans-serif;letter-spacing:0}
 #header #top-bar .ttw-account-panel{top:calc(100% + 6px)}
 #header #top-bar .ttw-topbar-motto{display:block;color:#f7dda1;font:600 11px/1.4 Arial,sans-serif;letter-spacing:.2px;white-space:nowrap}
}
@media(max-width:849px){#header #top-bar{display:none!important}}

/* Equal side columns keep logo centered; wrapped MENU fills its own column. */
@media(max-width:849px){
 #header .header-main .header-inner>.flex-left{width:100%;justify-self:start}
 #header .header-main .flex-left .header-nav{justify-content:flex-start}
 #header .header-main .flex-left .header-button{width:100%;margin:0}
 #header .header-main a[data-open="#main-menu"]{width:100%!important;max-width:none!important}
 #header .header-main .flex-right .ttw-header-account{width:100%;margin:0}
 #header .header-main .ttw-account-button{max-width:none;width:100%}
}
