/*
 * Piano storefront header
 *
 * Single source of truth: do not repeat or override Piano header selectors in
 * style.css or any page stylesheet. Width and spacing use Advanced → Layout.
 */
:root {
  --az-category-control-height: 51px;
  --az-category-menu-width: 268px;
  --az-category-control-bg: #f1ba47;
  --az-category-control-hover: #e4ad3e;
  --az-category-control-color: #111;
  --az-category-row-height: 57px;
  --az-category-row-padding: 8px 18px;
  --az-category-icon-size: 38px;
  --az-category-menu-bg: var(--az-color-surface, #fff);
  --az-category-menu-color: var(--az-color-text, #424242);
  --az-category-menu-border: var(--az-color-border, #e5e5e5);
  --az-category-menu-hover: #f1f4f6;
}

.az-site-header.az-header--piano {
  color: #fff;
}

.az-site-header.az-header--piano .az-topbar {
  background: var(--az-color-secondary, #333);
  color: #fff;
}

.az-site-header.az-header--piano .az-topbar-inner {
  min-height: 50px;
  justify-content: flex-end;
}

.az-site-header.az-header--piano .az-topbar-message:empty {
  display: none;
}

.az-site-header.az-header--piano .az-topbar-message {
  margin-right: auto;
}

.az-site-header.az-header--piano .az-header-top-links,
.az-site-header.az-header--piano .az-topbar-menu {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.az-site-header.az-header--piano .az-header-top-links > a,
.az-site-header.az-header--piano .az-topbar-menu a {
  padding: 0 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.az-site-header.az-header--piano .az-header-top-links > a + a {
  border-left: 1px solid rgba(255, 255, 255, .65);
}

.az-site-header.az-header--piano .az-mainbar {
  background: var(--az-color-primary);
}

.az-site-header.az-header--piano .az-mainbar-inner {
  min-height: var(--az-header-main-height, 184px);
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(250px, 270px) minmax(300px, 1.6fr) auto;
  align-items: center;
  gap: clamp(16px, 1.6vw, 28px);
}

.az-site-header.az-header--piano .az-logo {
  justify-content: flex-start;
  color: #fff;
  font-size: 28px;
}

.az-site-header.az-header--piano .az-logo span {
  width: 50px;
  height: 50px;
  background: #fff;
  color: var(--az-color-primary);
  font-size: 20px;
}

.az-site-header.az-header--piano .az-logo img {
  width: var(--az-header-logo-width, 280px);
  max-width: 100%;
  max-height: 100px;
}

.az-site-header.az-header--piano .az-header-category {
  position: relative;
  z-index: 40;
}

.az-site-header.az-header--piano .az-cat-button {
  height: var(--az-category-control-height);
  width: var(--az-category-menu-width);
  min-width: 0;
  max-width: 100%;
  display: flex;
  justify-content: flex-start;
  gap: 13px;
  padding: 0 19px;
  border: 0;
  border-radius: 5px;
  background: var(--az-category-control-bg);
  color: var(--az-category-control-color);
  font-family: var(--az-font-main, Arial, Helvetica, sans-serif);
  font-size: var(--az-navigation-size, 16px);
  font-weight: var(--az-navigation-weight, 600);
  letter-spacing: var(--az-navigation-letter-spacing, 0);
  line-height: 1.25;
  text-transform: uppercase;
  white-space: nowrap;
}

.az-site-header.az-header--piano .az-cat-button b {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}

.az-site-header.az-header--piano .az-cat-button:hover,
.az-site-header.az-header--piano .az-search button:hover {
  background: var(--az-category-control-hover);
  color: var(--az-category-control-color);
}

.az-site-header.az-header--piano .az-search {
  height: 51px;
  display: grid;
  grid-template-columns: 166px minmax(180px, 1fr) 56px;
  overflow: hidden;
  border: 0;
  border-radius: 5px;
  background: #fff;
}

.az-site-header.az-header--piano .az-search select,
.az-site-header.az-header--piano .az-search input {
  color: #4b5563;
  font-size: 16px;
}

.az-site-header.az-header--piano .az-search select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.az-site-header.az-header--piano .az-search input {
  font-style: italic;
}

.az-site-header.az-header--piano .az-search button {
  width: auto;
  display: grid;
  place-items: center;
  padding: 0;
  background: #f1ba47;
  color: #111;
  font-size: 27px;
}

.az-site-header.az-header--piano .az-search button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2.2;
}

.az-site-header.az-header--piano .az-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
}

.az-site-header.az-header--piano .az-header-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.az-site-header.az-header--piano .az-header-action:hover {
  background: transparent;
  color: #fff;
  opacity: .8;
  transform: none;
}

.az-site-header.az-header--piano .az-header-action--account .az-header-action__icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke: #fff;
  stroke-width: 1.4;
}

.az-site-header.az-header--piano .az-header-action__icon {
  width: 20px;
  height: 20px;
  display: block;
  flex: 0 0 auto;
  color: #fff;
  fill: none;
  stroke: #fff;
}

.az-site-header.az-header--piano .az-header-action--cart .az-header-action__icon {
  width: 29px;
  height: 29px;
  stroke-width: 2.3;
}

.az-site-header.az-header--piano .az-header-action--cart b {
  background: transparent;
  color: #fff;
  font-size: 12px;
}

.az-site-header.az-header--piano .az-header-category__menu {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  display: none;
  width: min(var(--az-category-menu-width), 100vw);
  max-width: 100%;
  background: var(--az-color-surface);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .2);
}

.az-site-header.az-header--piano .az-header-category.is-open .az-header-category__menu {
  display: block;
}

.az-site-header.az-header--piano .az-header-category:not(.is-open):focus-within .az-header-category__menu {
  display: none;
}

.az-site-header.az-header--piano .az-category-menu,
.az-site-header.az-header--piano .az-category-menu .sub-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.az-site-header.az-header--piano .az-category-menu > li {
  position: relative;
  border-bottom: 1px solid var(--az-category-menu-border);
}

.az-site-header.az-header--piano .az-category-menu a {
  min-height: var(--az-category-row-height);
  display: flex;
  align-items: center;
  gap: 0px;
  padding: var(--az-category-row-padding);
  color: var(--az-category-menu-color);
  font-size: 14px;
  line-height: 1.25;
}

.az-site-header.az-header--piano .az-category-menu img {
  width: var(--az-category-icon-size);
  height: var(--az-category-icon-size);
  flex: 0 0 var(--az-category-icon-size);
  object-fit: contain;
}

.az-site-header.az-header--piano .az-category-menu > li.menu-item-has-children > a::after {
  position: absolute;
  right: 17px;
  width: 8px;
  height: 8px;
  border: solid #9aa0a6;
  border-width: 0 2px 2px 0;
  content: "";
  transform: rotate(-45deg);
}

.az-site-header.az-header--piano .az-category-menu > li:hover > a,
.az-site-header.az-header--piano .az-category-menu > li:focus-within > a {
  background: var(--az-category-menu-hover);
  color: var(--az-color-heading);
}

.az-site-header.az-header--piano .az-category-menu .sub-menu {
  position: absolute;
  top: 0;
  left: 100%;
  display: none;
  width: 235px;
  background: var(--az-color-surface);
  box-shadow: 5px 8px 22px rgba(15, 23, 42, .18);
}

.az-site-header.az-header--piano .az-category-menu .sub-menu a {
  min-height: 46px;
  padding: 8px 18px;
}

.az-site-header.az-header--piano .az-category-menu .sub-menu li:hover > a,
.az-site-header.az-header--piano .az-category-menu .sub-menu li:focus-within > a {
  background: var(--az-category-menu-hover);
  color: var(--az-color-heading);
}

.az-site-header.az-header--piano .az-category-menu > li:hover > .sub-menu,
.az-site-header.az-header--piano .az-category-menu > li:focus-within > .sub-menu {
  display: block;
}

@media (max-width: 1200px) {
  .az-site-header.az-header--piano .az-mainbar-inner {
    grid-template-columns: minmax(170px, 220px) minmax(220px, 240px) minmax(240px, 1fr) auto;
    gap: 12px;
  }

  .az-site-header.az-header--piano .az-cat-button {
    min-width: 220px;
    font-size: 14px;
  }

  .az-site-header.az-header--piano .az-search {
    grid-template-columns: 125px minmax(130px, 1fr) 48px;
  }

  .az-site-header.az-header--piano .az-header-action {
    font-size: 13px;
  }
}

@media (max-width: 960px) {
  .az-site-header.az-header--piano .az-header-category {
    display: none;
  }

  .az-site-header.az-header--piano .az-mainbar-inner {
    min-height: 78px;
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .az-site-header.az-header--piano .az-logo img {
    width: 190px;
  }
}

@media (max-width: 782px) {
  .az-site-header.az-header--piano .az-topbar,
  .az-site-header.az-header--piano .az-search,
  .az-site-header.az-header--piano .az-header-action--account {
    display: none;
  }

  .az-site-header.az-header--piano .az-mainbar-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
  }

  .az-site-header.az-header--piano .az-logo img {
    max-width: 150px;
    max-height: 48px;
  }

  .az-site-header.az-header--piano .az-header-actions {
    display: flex;
  }

  .az-site-header.az-header--piano .az-header-action--cart {
    padding: 0;
  }

  .az-site-header.az-header--piano .az-header-action--cart span {
    display: none;
  }
}

/* Mobile header and its independent navigation drawer. */
.az-mobile-drawer[hidden],
.az-mobile-nav .sub-menu[hidden] { display: none !important; }
.az-mobile-drawer { display: none; }
.az-mobile-header-spacer { display: none; }
.az-mobile-search-toggle { display: none; }

@media (max-width: 782px) {
  .az-site-header.az-header--piano .az-mainbar-inner {
    min-height: 68px;
    grid-template-columns: 44px minmax(0, 1fr) 44px 44px;
    gap: 8px;
    padding-block: 8px;
  }
  .az-site-header.az-header--piano .az-mobile-menu-toggle,
  .az-site-header.az-header--piano .az-mobile-search-toggle,
  .az-site-header.az-header--piano .az-mobile-cart-link {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
  }
  .az-site-header.az-header--piano .az-mobile-menu-toggle { grid-column: 1; }
  .az-site-header.az-header--piano .az-mobile-search-toggle {
    grid-column: 3;
    grid-row: 1;
    cursor: pointer;
  }
  .az-site-header.az-header--piano .az-mobile-search-toggle svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
  }
  .az-site-header.az-header--piano .az-mobile-search-toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
  }
  .az-site-header.az-header--piano .az-mobile-search-toggle[aria-expanded="true"] {
    border-radius: 6px;
    background: rgba(255, 255, 255, .15);
  }
  .az-site-header.az-header--piano .az-mobile-menu-toggle svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
  }
  .az-site-header.az-header--piano .az-logo {
    grid-column: 2;
    justify-self: center;
    justify-content: center;
    min-width: 0;
    margin: 0;
  }
  .az-site-header.az-header--piano .az-logo img {
    width: min(200px, 100%);
    max-width: 100%;
    max-height: 64px;
    object-fit: contain;
  }
  .az-site-header.az-header--piano .az-mobile-cart-link {
    grid-column: 4;
    grid-row: 1;
    position: relative;
    justify-self: end;
  }
  .az-site-header.az-header--piano .az-mobile-cart-link > svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }
  .az-site-header.az-header--piano .az-mobile-cart-link > span { top: 0; right: 0; }
  .az-site-header.az-header--piano .az-header-actions { display: none; }
  .az-site-header.az-header--piano .az-mobile-header-spacer { display: block; grid-column: 4; grid-row: 1; width: 44px; }
  .az-site-header.az-header--piano .az-mobile-cart-link + .az-mobile-header-spacer { display: none; }

  .az-site-header.az-header--piano .az-search {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    max-width: none;
    height: 44px;
    margin: 0;
  }
  .az-site-header.az-header--piano .az-mobile-search-ready .az-search:not(.is-open) {
    display: none;
  }
  .az-site-header.az-header--piano .az-search select { display: none; }
  .az-site-header.az-header--piano .az-search input[type="search"] {
    flex: 1;
    min-width: 0;
    width: 100%;
    font-size: 16px;
  }
  .az-site-header.az-header--piano .az-search button {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
  }

  .az-mobile-menu-open { overflow: hidden; }
  .az-mobile-drawer { position: fixed; z-index: 10000; inset: 0; display: block; }
  .az-mobile-drawer__backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(9, 18, 30, .56); }
  .az-mobile-drawer__panel { position: relative; width: min(86vw, 360px); height: 100%; overflow-y: auto; overscroll-behavior: contain; background: #fff; box-shadow: 10px 0 35px rgba(0, 0, 0, .2); font-family: var(--az-font-main, Arial, sans-serif); }
  .az-mobile-drawer__heading { min-height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 12px 18px 12px 22px; background: var(--az-color-primary, #c91e36); color: #fff; font-size: 19px; font-weight: 700; }
  .az-mobile-drawer__close { width: 42px; height: 42px; display: grid; place-items: center; border: 0; background: transparent; color: #fff; }
  .az-mobile-drawer__close svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; }
  .az-mobile-nav, .az-mobile-nav .sub-menu { margin: 0; padding: 0; list-style: none; }
  .az-mobile-nav li { position: relative; border-bottom: 1px solid #edf0f3; }
  .az-mobile-nav a { min-height: 54px; display: flex; align-items: center; gap: 12px; padding: 10px 56px 10px 22px; color: #26364b; font-family: var(--az-font-main, Arial, sans-serif); font-size: 15px; font-weight: 600; line-height: 1.35; text-decoration: none; }
  .az-mobile-nav a .menu-image-title { font: inherit; color: inherit; }
  .az-mobile-nav a:hover, .az-mobile-nav a:focus-visible { background: #f6f8fa; color: var(--az-color-primary, #c91e36); }
  .az-mobile-nav a img { width: 28px; height: 28px; object-fit: contain; }
  .az-mobile-nav__submenu-toggle { position: absolute; top: 5px; right: 9px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 8px; background: #f5f6f8; color: #42536a; }
  .az-mobile-nav__submenu-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s ease; }
  .az-mobile-nav__submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .az-mobile-nav .sub-menu { background: #f8fafc; }
  .az-mobile-nav .sub-menu a { padding-left: 38px; font-size: 14px; font-weight: 500; }
  .az-mobile-nav .sub-menu .sub-menu a { padding-left: 54px; }
}
