/* Studio-only chrome. The storefront and guided product editor keep their own layout. */
body.hafu-studio-workspace .site-header .hafu-product-nav-shell{display:none!important}
@media(min-width:751px){
  body.hafu-studio-workspace .site-header .header-main.wrap{display:flex;flex-wrap:nowrap;align-items:center;gap:16px;width:calc(100% - 32px);max-width:none;height:60px;min-height:60px;padding:8px 0;margin:auto}
  body.hafu-studio-workspace .site-header .header-main>.brand{order:0;flex:0 0 auto;gap:9px;margin:0}
  body.hafu-studio-workspace .site-header .official-logo{width:36px;height:36px}
  body.hafu-studio-workspace .site-header .official-word{font-size:18px;line-height:1.2}
  body.hafu-studio-workspace .site-header .official-word small{font-size:5px;margin-top:4px}
  body.hafu-studio-workspace .site-header .hafu-experience-badge{padding-left:10px;margin-left:2px}
  body.hafu-studio-workspace .site-header .hafu-experience-badge>span{font-size:7px}
  body.hafu-studio-workspace .site-header .hafu-experience-badge>strong{font-size:15px}
  body.hafu-studio-workspace .site-header .hafu-mobile-menu-toggle{order:1;display:flex;align-items:center;justify-content:center;gap:7px;flex:0 0 auto;min-width:98px;min-height:38px;padding:8px 10px;border:1px solid #ffffff50;border-radius:6px;background:#ffffff12;color:#fff;font:500 12px/1.4 Arial,sans-serif;cursor:pointer}
  body.hafu-studio-workspace .site-header .hafu-mobile-menu-toggle:after{content:'Danh mục'}
  body.hafu-studio-workspace .site-header .hafu-mobile-menu-toggle svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7}
  body.hafu-studio-workspace .site-header .hafu-secondary-navigation{order:2;flex:0 0 auto;align-self:center;margin:0}
  body.hafu-studio-workspace .site-header .hafu-secondary-navigation .hafu-menu{gap:14px;flex-wrap:nowrap}
  body.hafu-studio-workspace .site-header .hafu-secondary-navigation .hafu-menu>li>a{font-size:12px;min-height:38px;padding:9px 0;white-space:nowrap}
  body.hafu-studio-workspace .site-header .commerce-search{order:3;display:flex;flex:1 1 240px;min-width:160px;width:auto;height:38px;min-height:38px;margin:0;border-radius:5px}
  body.hafu-studio-workspace .site-header .commerce-search input{min-width:0;font-size:13px;padding:8px 11px}
  body.hafu-studio-workspace .site-header .commerce-search>button{width:42px;min-width:42px}
  body.hafu-studio-workspace .site-header .hafu-header-actions{order:4;flex:0 0 auto;gap:14px;margin:0}
  body.hafu-studio-workspace .site-header .hafu-header-account>summary{min-width:48px;padding:0}
  body.hafu-studio-workspace .site-header .cart-toggle{min-width:48px;padding:0}
  body.hafu-studio-workspace .site-header .hafu-header-account>summary>svg,body.hafu-studio-workspace .site-header .cart-toggle>svg{width:23px;height:23px}
  body.hafu-studio-workspace .site-header .hafu-header-account>summary>small,body.hafu-studio-workspace .site-header .cart-toggle>small{font-size:10px;line-height:15px;margin-top:2px}
  body.hafu-studio-workspace .hafu-mobile-menu{position:fixed;inset:0;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;color:#30282e;overflow:hidden}
  body.hafu-studio-workspace .hafu-mobile-menu[open]{display:block}
  body.hafu-studio-workspace .hafu-mobile-menu::backdrop{background:#21131ba3}
  body.hafu-studio-workspace .hafu-mobile-drawer-panel{display:flex;flex-direction:column;width:min(380px,91vw);height:100%;background:#fff;box-shadow:12px 0 35px #32102322}
  body.hafu-studio-workspace .hafu-mobile-drawer-heading{display:flex;align-items:center;justify-content:space-between;flex:0 0 auto;gap:12px;padding:17px 20px;color:#fff;background:#df286b}
  body.hafu-studio-workspace .hafu-mobile-drawer-heading h2{margin:0 0 3px;color:inherit;font:600 20px/1.3 Arial,sans-serif}
  body.hafu-studio-workspace .hafu-mobile-drawer-heading div>span{font-size:11px;opacity:.9}
  body.hafu-studio-workspace .hafu-mobile-drawer-heading button{display:grid;place-items:center;width:40px;height:40px;padding:8px;color:inherit;background:#ffffff1c;border:0;border-radius:50%}
  body.hafu-studio-workspace .hafu-mobile-menu svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7}
  body.hafu-studio-workspace .hafu-mobile-drawer-body{flex:1;min-height:0;padding:0 20px 22px;overflow:auto;overscroll-behavior:contain}
  body.hafu-studio-workspace .hafu-mobile-drawer-shortcuts{padding:7px 0}
  body.hafu-studio-workspace .hafu-mobile-drawer-shortcuts a{display:flex;align-items:center;gap:9px;min-height:43px;padding:8px 3px;color:#b71d55;font-size:14px;text-decoration:none}
  body.hafu-studio-workspace .hafu-mobile-drawer-shortcuts a>span{margin-left:auto}
  body.hafu-studio-workspace .hafu-mobile-drawer-shortcuts a:first-child{color:#e64b3d}
  body.hafu-studio-workspace .hafu-mobile-categories{border-top:1px solid #eee4e9}
  body.hafu-studio-workspace .hafu-mobile-categories>details{margin:0;border-bottom:1px solid #eee4e9}
  body.hafu-studio-workspace .hafu-mobile-categories summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:47px;padding:11px 3px;list-style:none;cursor:pointer;font-size:14px;font-weight:500}
  body.hafu-studio-workspace .hafu-mobile-categories summary::-webkit-details-marker{display:none}
  body.hafu-studio-workspace .hafu-mobile-categories summary svg{width:15px;height:15px}
  body.hafu-studio-workspace .hafu-mobile-categories details[open]>summary{color:#df286b}
  body.hafu-studio-workspace .hafu-mobile-categories details[open]>summary svg{transform:rotate(180deg)}
  body.hafu-studio-workspace .hafu-mobile-category-events{padding:0 10px 12px;background:#fff7fa}
  body.hafu-studio-workspace .hafu-mobile-category-events a{display:block;min-height:40px;padding:10px 4px;color:#62505a;text-decoration:none;font-size:13px;line-height:20px}
  body.hafu-studio-workspace .hafu-mobile-category-events h3,body.hafu-studio-workspace .hafu-mobile-info-links h3{margin:8px 0 2px;padding:9px 4px 4px;font-size:11px;line-height:16px;text-transform:uppercase;letter-spacing:.5px;color:#a5768d}
  body.hafu-studio-workspace .hafu-mobile-info-links{padding:15px 0 12px;border-top:1px solid #eee4e9}
  body.hafu-studio-workspace .hafu-mobile-info-links a,body.hafu-studio-workspace .hafu-mobile-school-link{display:flex;justify-content:space-between;min-height:42px;padding:10px 3px;color:#62505a;font-size:13px;line-height:20px;text-decoration:none}
  body.hafu-studio-workspace .hafu-mobile-drawer-contact{display:grid;gap:8px;padding-top:12px;border-top:1px solid #eee4e9}
  body.hafu-studio-workspace .hafu-mobile-drawer-contact a,body.hafu-studio-workspace .hafu-mobile-drawer-contact button{display:block;padding:11px 10px;min-height:42px;border:1px solid #f0dce5;border-radius:4px;background:#fff7fa;color:#b71d55;text-align:center;text-decoration:none;font-size:13px;line-height:20px}
  body.hafu-studio-workspace .hafu-mobile-drawer-contact [hidden]{display:none!important}
  body.hafu-studio-workspace .hafu-mobile-menu :is(a,button,summary):focus-visible{outline:2px solid #df286b;outline-offset:-2px}
}
@media(min-width:751px) and (max-width:1100px){
  body.hafu-studio-workspace .site-header .hafu-secondary-navigation,body.hafu-studio-workspace .site-header .hafu-experience-badge{display:none!important}
  body.hafu-studio-workspace .site-header .header-main.wrap{gap:12px}
}
/* The right editor is an independent, stationary column; only the canvas pans. */
.hafu-ai .hai-image-pin-heading{display:none}
.hafu-ai .hai-image-empty{text-align:center;padding:45px 6px;color:#756978}
.hafu-ai .hai-image-empty>.bi{font-size:34px;color:#ca9eb3}
.hafu-ai .hai-image-empty h3{font-size:16px;font-weight:600;margin:16px 0 10px;color:#423849}
.hafu-ai .hai-image-empty p{font-size:13px;line-height:1.8}
@media(min-width:1200px){
  body.hafu-studio-workspace #hafu-ai-studio.hai-image-editor-pinned .hai-workspace{display:grid;grid-template-columns:minmax(0,1fr) 308px;grid-template-rows:auto minmax(0,1fr) auto}
  body.hafu-studio-workspace #hafu-ai-studio.hai-image-editor-pinned .hai-toolbar{grid-column:1 / -1;min-width:0}
  body.hafu-studio-workspace #hafu-ai-studio.hai-image-editor-pinned .hai-stage-viewport{grid-column:1;grid-row:2;min-width:0;overscroll-behavior:contain}
  body.hafu-studio-workspace #hafu-ai-studio.hai-image-editor-pinned .hai-workspace-footer{grid-column:1 / -1;grid-row:3}
  body.hafu-studio-workspace #hafu-ai-studio.hai-image-editor-pinned .hai-image-editor{position:sticky;top:0;grid-column:2;grid-row:2;align-self:stretch;height:100%;max-height:100%;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
  .hafu-ai .hai-image-pin-heading{display:flex;align-items:center;gap:8px;padding-bottom:16px;margin-bottom:18px;border-bottom:1px solid #ececf0;color:#965571}
  .hafu-ai .hai-image-pin-heading h2{font-size:14px;font-weight:600;color:#66515e}
  .hafu-ai .hai-image-pin-heading .bi{font-size:15px}
  .hafu-ai .hai-image-target{margin-bottom:18px;padding-bottom:16px}
}
