/*
 * Narrow visual corrections measured against the supplied 1920 px home frame.
 * This file is enqueued after the theme to avoid rewriting its existing cascade.
 */
@media (min-width: 112.5rem) {
  /*
   * The original desktop drawing has a deliberately low, three-part header:
   * brand, fixed-width primary nav, then a visible search field and actions.
   * The current theme's later responsive rules turn that field into a popup.
   */
  .ww-site-header .ww-header-inner {
    position: relative !important;
  }

  .ww-site-header .ww-nav {
    position: absolute !important;
    left: 30.125rem !important;
    width: 26.375rem !important;
    justify-self: auto !important;
    margin-right: 0 !important;
    transform: none !important;
  }

  body.home .ww-site-header .ww-brand {
    transform: none !important;
  }

  .ww-site-header .ww-header-actions {
    position: absolute !important;
    left: 60.1875rem !important;
    display: flex !important;
    width: auto !important;
    grid-template-columns: none !important;
    gap: 0.875rem !important;
    justify-content: flex-start !important;
    transform: none !important;
  }

  .ww-site-header .ww-header-actions > .ww-header-search {
    display: grid !important;
    flex: 0 0 15.75rem !important;
    min-width: 15.75rem !important;
    max-width: 15.75rem !important;
    width: 15.75rem !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    grid-template-columns: minmax(0, 1fr) 2.75rem !important;
    border-bottom: 1px solid currentColor !important;
    border-bottom-color: #fff !important;
  }

  .ww-site-header .ww-header-actions > .ww-header-search input {
    position: static !important;
    width: auto !important;
    height: 2.75rem !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: inherit !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  .ww-site-header .ww-header-actions > .ww-header-search input::placeholder {
    color: transparent !important;
  }

  /* The production image spans 1600 px of the 1920 px reference canvas. */
  .ww-figma-about .ww-figma-about__media > img {
    width: min(83.3333%, var(--ww-container)) !important;
    height: 23.906vw !important;
    max-height: 28.6875rem !important;
  }

  /* "Новинки" is the condensed display role in the supplied frame, not serif editorial copy. */
  .ww-figma-new h2 {
    font-family: var(--ww-font-display) !important;
    font-size: clamp(1.5rem, 2.24vw, 2.6875rem) !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
  }

}

/* Keep the measured home-section corrections on ordinary desktop widths. */
@media (min-width: 48rem) {
  .ww-figma-about .ww-figma-about__media > img {
    width: min(83.3333%, var(--ww-container)) !important;
    height: 23.906vw !important;
    max-height: 28.6875rem !important;
  }

  .ww-figma-new h2 {
    font-family: var(--ww-font-display) !important;
    font-size: clamp(1.5rem, 2.24vw, 2.6875rem) !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
  }

  /* The profile reference uses a persistent rule between sign-in and registration. */
  body:not(.logged-in).woocommerce-account .ww-auth-grid::after {
    display: block !important;
    background: var(--ww-color-ink) !important;
    content: '' !important;
  }
}
