/* ----- guard rails (no horizontal scroll) ----- */
.header-top,
.header-bottom { box-sizing: border-box; max-width: 100%; overflow-x: clip; }

/* ----- sticky second bar ----- */
.header-bottom { position: sticky; top: 0; z-index: 9999; width: 100%; }

/* ===== NAV: hover + active ===== */
.header-btm-left .wp-block-navigation__container { gap: 22px; }

.header-btm-left .wp-block-navigation a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-weight: 700;
  text-transform: capitalize;
  color: var(--wp--preset--color--contrast-2);
  transition: color .2s ease, background-color .2s ease;
}

/* subtle pill highlight on hover */
.header-btm-left .wp-block-navigation a:hover,
.header-btm-left .wp-block-navigation a:focus-visible {
  color: var(--wp--preset--color--primary);
  background: color-mix(in srgb, var(--wp--preset--color--primary) 10%, transparent);
  border-radius: 10px;
}

/* underline grow (no layout shift) */
.header-btm-left .wp-block-navigation a::after {
  content: "";
  position: absolute;
  left: 10%; right: 10%; bottom: -3px;
  height: 2px; border-radius: 2px;
  background: var(--wp--preset--color--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.header-btm-left .wp-block-navigation a:hover::after,
.header-btm-left .wp-block-navigation a:focus-visible::after { transform: scaleX(1); }

/* ACTIVE state (works with WP’s aria-current + current-menu-item) */
.header-btm-left .wp-block-navigation a[aria-current="page"],
.header-btm-left .wp-block-navigation .current-menu-item > a,
.header-btm-left .wp-block-navigation .wp-block-navigation-item.is-active > a {
  color: var(--wp--preset--color--primary);
}
.header-btm-left .wp-block-navigation a[aria-current="page"]::after,
.header-btm-left .wp-block-navigation .current-menu-item > a::after,
.header-btm-left .wp-block-navigation .wp-block-navigation-item.is-active > a::after {
  transform: scaleX(1);
}

/* ===== SEARCH: pill + clear states ===== */
.header-right-info .wp-block-search__inside-wrapper {
  display: flex;
  border-radius: 999px !important;
  background: var(--wp--preset--color--secondary);
  border: 1px solid rgba(0,0,0,.08);
  transition: box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
  width: 100%;
  max-width: 520px; /* cap to avoid overflow */
}
.header-right-info .wp-block-search__inside-wrapper:hover {
  background: color-mix(in srgb, var(--wp--preset--color--secondary) 92%, #fff 8%);
}

.header-right-info .wp-block-search__input {
  flex: 1 1 auto;
  border: 0;
  background: transparent;
  padding: 10px 14px;
  min-width: 0;
  font-size: 14px;
}
.header-right-info .wp-block-search__input:focus {
  outline: none;
}

.header-right-info .wp-block-search__inside-wrapper:focus-within {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--primary) 22%, transparent);
  border-color: color-mix(in srgb, var(--wp--preset--color--primary) 38%, transparent);
}

/* search button (icon pill) */
.header-right-info .wp-block-search__button {
  border: 0;
  border-radius: 999px !important;
  padding: 9px 12px;
  background: var(--wp--preset--color--primary);
  color: #fff;
  transition: filter .15s ease, transform .15s ease;
}
.header-right-info .wp-block-search__button:hover { filter: brightness(1.05); }
.header-right-info .wp-block-search__button:active { transform: scale(.98); }

/* ===== ICONS: mini-cart & account (hover) ===== */
.header-right-info .wc-block-mini-cart__button,
.header-right-info .wc-block-customer-account {
  border-radius: 12px;
  padding: 6px 8px;
  transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
@media (hover: hover) {
  .header-right-info .wc-block-mini-cart__button:hover,
  .header-right-info .wc-block-customer-account:hover {
    background: rgba(0,0,0,.06);
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
  }
  .header-right-info .wc-block-mini-cart__button:active,
  .header-right-info .wc-block-customer-account:active {
    transform: scale(.98);
  }
}

/* mini-cart badge prettier */
.header-right-info .wc-block-mini-cart__badge {
  background: var(--wp--preset--color--primary);
  color: #fff;
  border-radius: 10px;
  min-width: 18px; height: 18px; line-height: 18px;
  font-size: 11px; padding: 0 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  transform: translate(-2px, -6px);
}

/* ===== responsive safety ===== */
@media (max-width: 782px) {
  .header-btm-left, .header-btm-right { flex-basis: 100% !important; }
  .header-right-info { justify-content: center !important; }
  .header-right-info .wp-block-search__inside-wrapper { max-width: 100%; }
}
