/* Live, layout-only repair for header-v3's collapsed navigation. */
@media (max-width: 980px) {
  body[data-deceti-header="header-v3"] .cys3-header .cys3-shell {
    width: calc(100% - 24px);
  }

  body[data-deceti-header="header-v3"] .cys3-header__inner {
    min-height: 86px;
    grid-template-columns: minmax(0, 1fr) 44px auto;
    gap: 8px;
  }

  body[data-deceti-header="header-v3"] .cys3-logo {
    min-width: 0;
    max-width: 180px;
  }

  body[data-deceti-header="header-v3"] .cys3-logo img {
    display: block;
    width: min(100%, var(--header-logo-max-width, 280px)) !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: min(var(--header-logo-max-height, 72px), 82px) !important;
    object-fit: contain;
    object-position: left center;
  }

  body[data-deceti-header="header-v3"] .cys3-nav {
    width: 44px;
    min-width: 44px;
  }

  body[data-deceti-header="header-v3"] .cys3-menu-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 0 !important;
    line-height: 1;
    text-align: center;
    cursor: pointer;
  }

  body[data-deceti-header="header-v3"] .cys3-menu-toggle span {
    font-size: 22px !important;
    line-height: 1;
  }

  body[data-deceti-header="header-v3"] .cys3-header__actions {
    min-width: 0;
    gap: 2px;
  }

  body[data-deceti-header="header-v3"] .cys3-action--account {
    min-width: 42px;
    min-height: 44px;
    font-size: 19px;
  }

  body[data-deceti-header="header-v3"] .cys3-cart {
    padding-left: 0;
    border-left: 0;
  }

  body[data-deceti-header="header-v3"] .cys3-cart #mini-cart {
    width: 44px;
  }

  body[data-deceti-header="header-v3"] .cys3-cart #mini-cart > button {
    display: grid !important;
    place-items: center;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    font-size: 0 !important;
    line-height: 1 !important;
  }

  body[data-deceti-header="header-v3"] .cys3-cart #mini-cart > button i {
    margin: 0 !important;
    font-size: 20px !important;
    line-height: 1 !important;
  }

  body[data-deceti-header="header-v3"] .cys3-cart #mini-cart > button::after {
    display: none !important;
  }
}

@media (max-width: 700px) {
  body[data-deceti-header="header-v3"] .cys3-logo { max-width: 160px; }
}

/* Fit the full landscape hero and its separate message artwork on phones. */
@media (max-width: 600px) {
  body[data-deceti-header="header-v3"] .decetiv3-topblock {
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: 1983 / 793 !important;
  }

  body[data-deceti-header="header-v3"] .decetiv3-topblock__background {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
  }

  body[data-deceti-header="header-v3"] .decetiv3-topblock__shell {
    width: calc(100% - 24px);
    min-height: 0;
  }

  body[data-deceti-header="header-v3"] .decetiv3-topblock__copy {
    right: 0;
    left: 0;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
  }

  body[data-deceti-header="header-v3"] .decetiv3-topblock__message {
    display: block;
    /* 620px of the original 1983px composition, not 60% of the phone. */
    width: 33% !important;
    max-width: 100% !important;
    height: auto !important;
    margin-inline: 0;
  }

  body[data-deceti-header="header-v3"] .decetiv3-topblock__uses {
    gap: 5px;
    margin-top: 6px;
    font-size: clamp(9px, 2vw, 11px);
  }
}

@media (max-width: 380px) {
  body[data-deceti-header="header-v3"] .cys3-logo { max-width: 128px; }
}
