.shop-bar {
  --header-ink: #401b29;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "brand menu actions";
  align-items: center;
  min-height: 74px;
  gap: clamp(12px, 2vw, 32px);
  padding-block: 8px;
}
.store-header:has(.shop-bar) { background: #fffcfb; border-bottom: 1px solid #e8dfe2; }
.shop-bar:has(.store-header-search) {
  grid-template-columns: auto auto minmax(150px, 1fr) auto;
  grid-template-areas: "brand menu search actions";
}
.shop-brand, .shop-menu, .shop-user-actions, .shop-bag { display: flex; align-items: center; }
.shop-brand { grid-area: brand; gap: 8px; color: var(--header-ink); white-space: nowrap; justify-self: start; }
.shop-brand strong { font-size: clamp(1.12rem, 1.6vw, 1.55rem); font-weight: 800; line-height: 1.15; letter-spacing: -.045em; }
.shop-bar .hkko-lion { display: block; width: 38px; height: 38px; object-fit: contain; flex: none; }
.shop-menu { grid-area: menu; gap: clamp(13px, 1.6vw, 25px); }
.shop-menu a, .shop-account { font-size: .94rem; font-weight: 650; white-space: nowrap; }
.shop-menu a, .shop-account, .shop-bag { display: inline-flex; align-items: center; min-height: 44px; }
.shop-bar .store-header-search { grid-area: search; width: 100%; min-width: 0; max-width: 400px; margin: 0 0 0 auto; }
.shop-user-actions { grid-area: actions; justify-self: end; gap: clamp(10px, 1.5vw, 22px); color: var(--header-ink); }
.shop-bag { gap: 6px; padding: 6px 10px; border: 1px solid #d9cdd1; border-radius: 8px; background: white; color: inherit; font-size: .94rem; font-weight: 750; white-space: nowrap; }
.shop-bag::before {
  content: ""; display: block; width: 18px; height: 20px; flex: none; background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l1 13H4L5 8Z M9 9V6a3 3 0 0 1 6 0v3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.shop-bag span { display: inline-grid; place-items: center; min-width: 21px; padding-inline: 3px; height: 21px; border-radius: 20px; color: #592238; background: #f6eaf0; font-size: .8rem; }
@media (max-width: 1000px) {
  .shop-bar:has(.store-header-search) { grid-template-columns: auto 1fr auto; grid-template-areas: "brand menu actions" "search search search"; row-gap: 5px; }
  .shop-bar .store-header-search { max-width: none; }
}
@media (max-width: 720px) {
  .shop-bar, .shop-bar:has(.store-header-search) { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand actions" "menu menu"; gap: 4px 8px; }
  .shop-bar:has(.store-header-search) { grid-template-areas: "brand actions" "menu menu" "search search"; }
  .shop-menu { flex-wrap: wrap; gap: 0 17px; border-top: 1px solid #e8dfe2; }
  .shop-menu a { min-height: 36px; }
}
@media (max-width: 400px) {
  .shop-bar { width: calc(100% - 20px); }
  .shop-brand { gap: 4px; }
  .shop-bar .hkko-lion { width: 26px; height: 30px; }
  .shop-brand strong { font-size: 1rem; }
  .shop-user-actions { gap: 7px; }
  .shop-account, .shop-bag { font-size: .875rem; }
  .shop-bag { gap: 4px; padding-inline: 6px; }
}
@media (max-width: 350px) {
  .wrap.shop-bar { width: calc(100% - 16px); }
  .shop-bag:has(span) { position: relative; }
  .shop-bag span { position: absolute; top: -4px; right: -3px; height: 16px; min-width: 16px; font-size: .65rem; }
}

.shop-menu-toggle { display: none; }
@media (min-width:721px) and (max-width:1000px) {
  .shop-bar:has(.store-header-search) { grid-template-columns: auto minmax(0,1fr) auto; grid-template-areas: "brand search actions" "menu menu menu"; gap: 0 16px; }
  .shop-bar:has(.store-header-search) .shop-menu { justify-content: center; min-height: 38px; gap: 28px; }
}
@media (max-width:720px) {
  .shop-bar:has(.store-header-search) { grid-template-columns: auto minmax(0,1fr) auto; grid-template-areas: "brand brand actions" "toggle search search" "menu menu menu"; gap: 4px 8px; }
  .shop-bar:has(.store-header-search) .shop-menu { justify-content: space-around; gap: 0 8px; }
  .shop-bar .store-header-search { align-self: stretch; }
  .shop-bar .store-header-search input { font-size: 1rem; }
  .shop-menu-toggle:not([hidden]) { grid-area: toggle; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; border: 1px solid #d9cdd1; border-radius: 8px; background: #fff; color: var(--header-ink); padding: 6px 10px; font: 650 .9rem/1 Inter,system-ui,sans-serif; }
  .shop-menu-toggle::before { content: ""; width: 14px; height: 10px; border-block: 1.5px solid; background: linear-gradient(currentColor,currentColor) center/100% 1.5px no-repeat; }
  .shop-menu a { min-height: 44px; }
}
@media (max-height:520px) and (max-width:1100px) {
  .store-header:has(.shop-bar) { position: static; }
  .storefront section[id] { scroll-margin-top: 12px; }
}
