/* Shared two-row masthead, using the storefront's logo scale and brand palette. */
.brand-head {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  grid-template-areas: ". logo tools" "nav nav nav";
  align-items: center;
  gap: 0;
  min-height: 0;
  padding: 0 18px;
  border: 0;
  color: #666a34;
  background: #fff;
  box-shadow: 0 2px 4px rgb(0 0 0 / 8%);
  font-family: "Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;
}
.brand-head .brand-logo { grid-area: logo; display: grid; place-items: center; height: 62px; }
.brand-head .brand-logo img { width: 88px; height: auto; }
.brand-head #brand-menu { grid-area: nav; width: 100%; }
.brand-head #brand-menu > ul { display: flex; justify-content: center; gap: 4px; padding: 0 0 6px; }
.brand-head #brand-menu > ul > li > :is(a,button) {
  display: block;
  margin: 0;
  padding: 5px 14px 8px;
  border: 0;
  border-radius: 0;
  color: #666a34;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}
.brand-head #brand-menu > ul > li > :is([aria-current],[aria-expanded="true"],a:hover,button:hover) { color: #b28427; }
.brand-head .nav-panel { left: 50%; transform: translateX(-50%); border-radius: 3px; background: #fff; }
.brand-head .nav-panel a { color: #5a5f38; }
.brand-head .shop-tools { grid-area: tools; justify-self: end; align-items: center; gap: 4px; }
.brand-head .shop-tools a {
  display: grid; place-items: center; width: 36px; height: 36px;
  color: #8d702f; border-radius: 50%; background: transparent;
}
.brand-head .shop-tools a:hover { background: #faf6f2; color: #665120; }
.brand-head .shop-tools svg { display: block; width: 19px; height: 19px; }
.brand-head .nav-toggle { grid-area: trigger; }
@media (max-width:980px) {
  .brand-head {
    grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
    grid-template-areas: "trigger logo tools" "nav nav nav";
    padding: 0 10px;
  }
  .brand-head .brand-logo { height: 58px; }
  .brand-head .brand-logo img { width: 84px; }
  .brand-head .nav-toggle { justify-self: start; margin: 0; padding: 8px; background: #fff; border: 0; }
  .brand-head .shop-tools { gap: 1px; }
  .brand-head .shop-tools a { width: 30px; height: 40px; }
  .brand-head .shop-tools a:first-child, .brand-head .shop-tools a:nth-child(3) { display: none; }
  .brand-head #brand-menu > ul { display: block; padding: 0 0 8px; }
  .brand-head #brand-menu > ul > li > :is(a,button) { padding: 10px 8px; font-size: 16px; }
  .brand-head .nav-panel { left: auto; transform: none; background: #faf6f2; }
  .brand-head #brand-menu { max-height: min(72vh, calc(100dvh - 60px)); }
}
@media (min-width:981px) { .brand-head .mobile-tools { display: none; } }
.brand-head .mobile-tools a { display: block; padding: 8px; }
