/**
 * CARTELL reference header layer.
 * Desktop-only composition is isolated below 992px so mobile remains independent.
 */

@media (min-width: 992px) {
  .site-header {
    position: relative;
    top: auto;
    padding: 0;
    background: #fff;
    border-bottom: 0;
    box-shadow: none;
  }

  .site-header .cartell-container {
    width: calc(100% - 46px);
    max-width: 1320px;
    margin-inline: auto;
    padding-inline: 0;
  }

  .reference-promo-shell {
    width: calc(100% - 46px);
    max-width: 1320px;
    margin: 0 auto;
  }

  .reference-promo-bar {
    min-height: 44px;
    padding: 0 28px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 24px;
    color: #fff;
    background: #dd155b;
    border-radius: 0 0 28px 28px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
  }

  .reference-promo-bar span,
  .reference-promo-bar a {
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
  }

  .reference-promo-bar span:nth-child(2),
  .reference-promo-bar a:nth-child(3) {
    text-align: center;
  }

  .reference-promo-bar a:last-child {
    text-align: right;
  }

  .header-inner {
    position: relative;
    display: grid;
    grid-template-columns: 120px 1fr 120px;
    align-items: center;
    min-height: 125px;
    height: auto;
    gap: 20px;
  }

  .reference-header-menu {
    display: flex;
    justify-self: start;
  }

  .reference-header-menu .header-btn {
    width: 48px;
    height: 48px;
    color: #071827;
    border-radius: 50%;
  }

  .reference-header-menu svg {
    width: 29px;
    height: 29px;
    stroke-width: 2.2;
  }

  .header-brand {
    justify-self: center;
    min-width: 0;
  }

  .brand-logo-stack {
    align-items: center;
    text-align: center;
  }

  .cartell-wordmark {
    font-size: clamp(42px, 4vw, 56px);
    line-height: 1;
    letter-spacing: 3px;
    font-weight: 800;
  }

  .cartell-wordmark .letter-c { color: #1489ff; }
  .cartell-wordmark .letter-a { color: #22aa55; }
  .cartell-wordmark .letter-r { color: #f2a000; }
  .cartell-wordmark .letter-t { color: #ff5d27; }
  .cartell-wordmark .letter-e { color: #f1266e; }
  .cartell-wordmark .letter-l1 { color: #8b5ce7; }
  .cartell-wordmark .letter-l2 { color: #e31d2f; }

  .header-brand .cartell-tagline {
    display: none;
  }

  .header-brand .custom-logo {
    display: block;
    width: auto;
    max-width: 300px;
    max-height: 64px;
  }

  .reference-inline-search {
    display: none !important;
  }

  .header-right {
    justify-self: end;
    gap: 22px;
  }

  .header-account-action {
    display: none !important;
  }

  .header-action-item {
    padding: 0;
    width: 38px;
    height: 45px;
    color: #071827;
    background: transparent !important;
  }

  .header-action-item .header-action-label {
    display: none !important;
  }

  .header-action-icon,
  .header-action-icon svg {
    width: 30px;
    height: 30px;
  }

  .header-action-item .badge-count {
    top: -8px;
    right: -9px;
    min-width: 22px;
    height: 22px;
    line-height: 22px;
    padding: 0 5px;
    font-size: 12px;
    background: #ff2b78;
  }

  .desktop-search-section {
    display: block;
  }

  .desktop-search-section .header-search-wrap {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 0 18px;
  }

  .desktop-search-section .search-form {
    width: 100%;
  }

  .desktop-search-section .search-input-box {
    height: 66px;
    padding: 4px 10px 4px 31px;
    background: #fff;
    border: 1px solid #ffd5e3;
    border-radius: 34px;
    box-shadow: 0 18px 34px rgba(220, 20, 90, 0.10);
  }

  .desktop-search-section .search-input-box:focus-within {
    border-color: #ff7eaa;
    box-shadow: 0 18px 34px rgba(220, 20, 90, 0.13), 0 0 0 3px rgba(255, 43, 120, 0.08);
  }

  .desktop-search-section .search-input {
    height: 56px;
    font-size: 19px;
    color: #5d6670;
  }

  .desktop-search-section .search-input::placeholder {
    font-size: 19px;
    color: #6a7279;
  }

  .desktop-search-section .search-submit-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #0f7cff;
    color: #fff;
  }

  .desktop-search-section .search-submit-btn:hover {
    background: #006ce3;
  }

  .desktop-search-section .search-submit-btn svg {
    width: 22px;
    height: 22px;
    stroke-width: 3;
  }

  .reference-desktop-nav {
    background: #fff;
    border-top: 0;
    border-bottom: 1px solid #ececec;
  }

  .reference-desktop-nav .desktop-nav-inner {
    height: 56px;
    justify-content: center;
  }

  .reference-desktop-nav .desktop-nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(30px, 3.3vw, 48px);
    width: 100%;
  }

  .reference-desktop-nav .desktop-nav-link {
    padding: 12px 0;
    color: #020f1e;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .reference-desktop-nav .desktop-nav-link:hover,
  .reference-desktop-nav .desktop-nav-link:focus-visible {
    color: #dd155b;
  }
}

@media (min-width: 992px) and (max-width: 1100px) {
  .reference-promo-bar {
    padding-inline: 20px;
    gap: 14px;
    font-size: 12px;
  }

  .reference-desktop-nav .desktop-nav-list {
    gap: 26px;
  }

  .reference-desktop-nav .desktop-nav-link {
    font-size: 13px;
  }
}
