/* KKK public header contract. Do not add per-page geometry overrides.
   Desktop: 72px high, 1120px content maximum. Mobile <=767px: 56px, 16px inset.
   One component + one stylesheet for all public pages; V/admin intentionally excluded. */
body:has(> .kkk-public-header){margin:0}
header.kkk-public-header{
  box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:space-between!important;
  position:relative!important;top:auto!important;left:auto!important;transform:none!important;float:none!important;
  width:min(1120px,calc(100% - 40px))!important;max-width:none!important;height:72px!important;min-height:72px!important;
  margin:0 auto!important;padding:0!important;gap:20px!important;border:0!important;border-bottom:1px solid rgba(18,53,47,.14)!important;
  border-radius:0!important;background:transparent!important;box-shadow:none!important;text-align:left!important;z-index:30;
  font-family:"KKK Noto Sans TC","Noto Sans TC",system-ui,sans-serif!important;line-height:1.5!important;
  font-kerning:normal!important;font-variant:normal!important;font-feature-settings:normal!important;font-variation-settings:normal!important;
  -webkit-font-smoothing:antialiased!important;font-optical-sizing:none!important;font-synthesis:none!important;text-rendering:auto!important;text-transform:none!important;word-spacing:0!important;text-size-adjust:100%!important;
}
.kkk-public-header .kkk-header-brand{
  box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;flex:0 0 auto!important;
  width:auto!important;height:32px!important;margin:0!important;padding:0!important;border:0!important;
  color:#12352f!important;background:none!important;text-decoration:none!important;white-space:nowrap!important;
  font-family:"KKK Noto Sans TC","Noto Sans TC",system-ui,sans-serif!important;font-size:16px!important;font-weight:700!important;
  letter-spacing:.08em!important;line-height:24px!important;gap:0!important;
}
.kkk-public-header .kkk-header-brand::before,.kkk-public-header .kkk-header-brand::after{content:none!important}
.kkk-public-header .kkk-header-brand span{margin:0!important;padding:0!important;font:inherit!important;letter-spacing:inherit!important;line-height:inherit!important;color:inherit!important}
.kkk-public-header .kkk-header-actions{display:flex;align-items:center;justify-content:flex-end;margin:0 0 0 auto;padding:0;width:auto;gap:8px}
.kkk-public-header .kkk-header-action{
  box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;
  height:34px!important;min-height:34px!important;min-width:92px!important;margin:0!important;padding:0 12px!important;
  border:1px solid rgba(18,53,47,.25)!important;border-radius:6px!important;color:#12352f!important;background:rgba(255,255,255,.55)!important;
  font-family:"KKK Noto Sans TC","Noto Sans TC",system-ui,sans-serif!important;font-size:13px!important;font-weight:500!important;
  line-height:20px!important;letter-spacing:0!important;text-decoration:none!important;white-space:nowrap!important;cursor:pointer;
}
.kkk-public-header .kkk-header-action:hover{background:#e7eee9!important}
.kkk-public-header a:focus-visible,.kkk-public-header button:focus-visible{outline:2px solid #78602f;outline-offset:3px}
.kkk-public-header .kkk-header-nav{display:flex!important;align-items:center!important;gap:20px!important;margin:0 0 0 auto!important;padding:0!important;flex-direction:row!important}
.kkk-public-header .kkk-header-nav a{font-family:inherit!important;font-size:13px!important;font-weight:500!important;line-height:20px!important;letter-spacing:.02em!important;white-space:nowrap;color:#12352f;text-decoration:none}
.kkk-public-header .home-nav-toggle{display:none!important}
@media(max-width:767px){
  header.kkk-public-header{width:100%!important;height:56px!important;min-height:56px!important;padding:0 16px!important;gap:8px!important}
  .kkk-public-header .kkk-header-brand{font-size:14px!important;letter-spacing:.04em!important}
  .kkk-public-header .kkk-header-action{height:32px!important;min-height:32px!important;min-width:84px!important;padding:0 9px!important;font-size:12px!important}
  .kkk-public-header .home-nav-toggle{display:inline-flex!important;margin-left:auto!important}
  .kkk-public-header .kkk-header-nav{display:none!important;position:absolute!important;top:55px!important;left:0!important;right:0!important;
    width:100%!important;padding:8px 16px!important;background:#fffdf8!important;border-bottom:1px solid #d9ded8;box-shadow:0 8px 15px #12352f12;
    flex-direction:column!important;align-items:stretch!important;gap:0!important;margin:0!important;z-index:50}
  .kkk-public-header .home-nav-toggle[aria-expanded="true"] + .kkk-header-nav{display:flex!important}
  .kkk-public-header .kkk-header-nav a{display:block!important;padding:10px 0!important;text-align:right!important}
}
/* Product-only mobile header navigation. Desktop keeps the original
   standalone nav plus the shared back action untouched. */
.kkk-public-header .kkk-header-product-nav{display:none!important}
@media(max-width:767px){
  .storefront-product-page header.kkk-public-header{justify-content:flex-start!important}
  .storefront-product-page .kkk-public-header .kkk-header-actions{display:none!important}
  .storefront-product-page .kkk-public-header .kkk-header-product-nav{
    display:flex!important;align-items:center!important;gap:6px!important;margin:0 0 0 auto!important;padding:0!important;flex:0 0 auto!important;
  }
  .storefront-product-page .kkk-public-header .kkk-header-product-arrow{
    box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
    flex:0 0 auto!important;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;
    margin:0!important;padding:0!important;border:1px solid rgba(18,53,47,.25)!important;border-radius:6px!important;
    color:#12352f!important;background:rgba(255,255,255,.55)!important;font-family:inherit!important;font-size:20px!important;
    font-weight:500!important;line-height:1!important;text-decoration:none!important;white-space:nowrap!important;
  }
  .storefront-product-page .kkk-public-header .kkk-header-product-arrow:hover{background:#e7eee9!important}
  .storefront-product-page .kkk-public-header .kkk-header-product-arrow.is-disabled{
    color:rgba(18,53,47,.32)!important;background:rgba(255,255,255,.25)!important;cursor:default!important;pointer-events:none!important;
  }
  .storefront-product-page .kkk-public-header .kkk-header-product-list{
    box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
    flex:0 0 auto!important;height:40px!important;min-height:40px!important;margin:0!important;padding:0 8px!important;
    border:1px solid rgba(18,53,47,.25)!important;border-radius:6px!important;color:#12352f!important;background:rgba(255,255,255,.55)!important;
    font-family:inherit!important;font-size:12px!important;font-weight:500!important;line-height:1!important;letter-spacing:.02em!important;
    text-decoration:none!important;white-space:nowrap!important;
  }
  .storefront-product-page .kkk-public-header .kkk-header-product-list:hover{background:#e7eee9!important}
  .storefront-product-page .storefront-detail-nav{display:none!important}
  .storefront-product-page .storefront-detail .eyebrow{display:none!important}
  .storefront-product-page .storefront-detail{padding-top:8px!important}
  .storefront-product-page .storefront-detail-title{font-size:clamp(1.4rem,6vw,1.7rem)!important}
}
