.wolf-global-header,
.wolf-preserved-footer {
  background: var(--wolf-color-bg-primary);
  color: var(--wolf-color-text-primary);
}

.wolf-global-header {
  position: relative;
  z-index: 20;
  border-block-end: 1px solid var(--wolf-color-border);
  font: 500 0.875rem/1.45 var(--wolf-font-body);
}

.wolf-global-header__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0 var(--wolf-space-2);
  min-block-size: var(--wolf-header-height);
  max-inline-size: calc(var(--wolf-container) + 2rem);
  padding-inline: clamp(0.75rem, 2.5vw, 2rem);
  margin-inline: auto;
}

.wolf-global-header :is(a, button, summary, input):focus-visible {
  outline: 2px solid var(--wolf-color-focus);
  outline-offset: 2px;
}

.wolf-global-header__skip {
  position: absolute;
  z-index: 2;
  inset-block-start: var(--wolf-space-2);
  inset-inline-start: var(--wolf-space-2);
  padding: var(--wolf-space-3);
  transform: translateY(-175%);
  background: var(--wolf-color-action);
  color: var(--wolf-color-action-text);
}

.wolf-global-header__skip:focus {
  transform: none;
  color: var(--wolf-color-action-text);
}

.wolf-global-header__brand {
  display: grid;
  align-items: center;
  min-block-size: 44px;
}

.wolf-global-header__brand img {
  display: block;
  inline-size: clamp(5.75rem, 12vw, 8.5rem);
  block-size: auto;
  filter: brightness(0) invert(1);
}

.wolf-global-header__context {
  justify-self: end;
}

.wolf-global-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.wolf-global-header__actions > :is(a, button),
.wolf-global-header__search summary {
  display: grid;
  place-items: center;
  min-inline-size: 44px;
  min-block-size: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--wolf-radius-sm);
  list-style: none;
  background: transparent;
  color: var(--wolf-color-text-primary);
  cursor: pointer;
}

.wolf-global-header__actions > :is(a, button):hover,
.wolf-global-header__search summary:hover,
.wolf-global-header__search[open] summary {
  background: var(--wolf-color-surface);
}

.wolf-global-header__search summary::-webkit-details-marker {
  display: none;
}

.wolf-global-header__actions svg {
  inline-size: 1.25rem;
  block-size: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wolf-global-header__search form {
  position: absolute;
  z-index: 1;
  inset-block-start: 100%;
  inset-inline-end: var(--wolf-space-2);
  inline-size: min(22rem, calc(100% - 1rem));
  padding: var(--wolf-space-4);
  border: 1px solid var(--wolf-color-border-strong);
  background: var(--wolf-color-surface);
}

.wolf-global-header__search form div {
  display: flex;
  gap: var(--wolf-space-2);
  margin-block-start: var(--wolf-space-2);
}

.wolf-global-header__search input[type="search"] {
  min-inline-size: 0;
  min-block-size: 44px;
  padding-inline: var(--wolf-space-2);
  border: 1px solid var(--wolf-color-border-strong);
  background: var(--wolf-color-bg-primary);
  color: var(--wolf-color-text-primary);
}

.wolf-global-header__search button {
  min-block-size: 44px;
  padding-inline: var(--wolf-space-3);
  background: var(--wolf-color-action);
  color: var(--wolf-color-action-text);
}

.wolf-global-header__nav {
  grid-column: 1 / -1;
  grid-row: 2;
  border-block-start: 1px solid var(--wolf-color-border);
}

.wolf-global-header__nav ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.wolf-global-header__nav a {
  display: flex;
  align-items: center;
  min-block-size: 44px;
  padding-inline: var(--wolf-space-2);
  color: var(--wolf-color-text-primary);
}

.wolf-global-header__nav a:is(:hover, [aria-current="page"]) {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.wolf-global-header [data-wolf-menu-toggle][hidden] {
  display: none;
}

@media (max-width: 63.999rem) {
  .wolf-global-header[data-wolf-menu-ready][data-wolf-menu-open="false"] .wolf-global-header__nav {
    display: none;
  }
}

@media (min-width: 64rem) {
  .wolf-global-header__inner:has(.wolf-global-header__nav) {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .wolf-global-header__nav {
    grid-column: 2;
    grid-row: 1;
    border: 0;
  }

  .wolf-global-header__nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .wolf-global-header__actions > [data-wolf-menu-toggle] {
    display: none;
  }
}
/* The plugin styles both cards and live variants, which have no .price wrapper. */
:is(.wolf-editorial-home, .wolf-native-catalog) #main .woo-custom-installments-group {
  --wolf-price-color: var(--wolf-color-text-primary);
  color: var(--wolf-price-color);
}

:is(.wolf-editorial-home, .wolf-native-catalog) #main .woo-custom-installments-group :is(.woo-custom-installments-group-main-price, .woo-custom-installments-price, .woo-custom-installments-card-container) {
  color: var(--wolf-price-color);
}

:is(.wolf-editorial-home, .wolf-native-catalog) #main .woo-custom-installments-group :is(.original-price.has-discount, .woo-custom-installments-card-container) {
  --wolf-price-color: var(--wolf-color-text-secondary);
  opacity: 1;
}

:is(.wolf-editorial-home, .wolf-native-catalog) #main .woo-custom-installments-group :is(.woo-custom-installments-group-main-price, .woo-custom-installments-card-container) .amount {
  color: var(--wolf-price-color);
}

/* Style only native storefront actions, not payment buttons or third-party widgets. */
:is(.wolf-editorial-home, .wolf-native-catalog, .wolf-native-cart, .wolf-native-checkout, .wolf-service-account) #main :is(.add_to_cart_button, .single_add_to_cart_button, .wc-backward, .checkout-button, #place_order, .woocommerce-form-login__submit, .woocommerce-form-register__submit) {
  --theme-button-background-initial-color: var(--wolf-color-action);
  --theme-button-background-hover-color: var(--wolf-color-action-hover);
  --theme-button-text-initial-color: var(--wolf-color-action-text);
  --theme-button-text-hover-color: var(--wolf-color-action-text);
}

:is(.wolf-editorial-home, .wolf-native-catalog) #main .onsale {
  color: var(--wolf-color-action-text);
  background: #dfc7a8;
}
