/* --- EVERNEW HEADER CUSTOM --- */

.ec-layoutRole {
  margin-top: 100px;
}
.ev-sliderRolescrolledFixedHeader{
  margin-top: 100px;
}
.scrolledFixedHeader{
  position: fixed;
}

.ev-header {
    width: 100%;
    background: #DB002F;
    min-height: 100px;
    display: flex;
    align-items: center;
    z-index: 100;
    overflow: hidden;
    top: 0;
    transition: transform 0.3s ease;
    position: fixed;
    height: 100px;
  }

  /* hidden state – slide up */
  .ev-header.hide {
    transform: translateY(-100%);
  }
  
  .ev-header__inner {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 100px;
  }
  .ev-header__left {
    display: flex;
    align-items: center;
    gap: 24px;
  }
  .ev-header__logo {
    height: 32px;
    width: auto;
    display: block;
  }
  .ev-header__tagline {
    color: #fff;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.05em;
    line-height: 24px;
    margin-left: 24px;
    white-space: nowrap;
  }
  .ev-header__nav {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-right: 0; /* remove margin if present */
  }
  .ev-header__right {
    display: flex;
    align-items: center;
    gap: 32px;
  }
  .ev-header__link {
    color: #fff;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 19px;
    text-decoration: none;
    transition: opacity 0.2s;
  }
  .ev-header__link:hover {
    opacity: 0.7;
  }
  .ev-header__icons {
    display: flex;
    align-items: center;
    gap: 28px;
  }
  .ev-header__icon {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .ev-header__icon:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
  }
  .ev-header__icon img {
    height: 24px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
  }
  .ev-header__icon--drawer {
    display: none;
  }
  
  /* Show drawer icon on mobile */
  @media (max-width: 900px) {
    .ev-header__icon--drawer {
      display: flex !important;
    }
  }
  
  /* Cart badge styles */
  .ev-header__cart-wrapper {
    position: relative;
    display: inline-block;
  }
  
.ev-header__cart-badge {
    position: absolute;
    top: -19px;
    right: -8px;
    background: #FFD700;
    color: #000;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1;
    padding: 2px;
    box-sizing: border-box;
  }
  
  @media (max-width: 900px) {
    .ev-header__cart-badge {
      min-width: 18px;
      height: 18px;
      font-size: 10px;
      top: -6px;
      right: -6px;
    }
  }
  
  @media (max-width: 1200px) {
    .ev-header__inner {
      padding: 0 16px;
    }
    .ev-header__tagline {
      font-size: 16px;
    }
    .ev-header__link {
      font-size: 14px;
    }
  }
  @media (max-width: 900px) {
    .ev-header,
    .ev-header__inner {
      max-width: 100vw;
      box-sizing: border-box;
      overflow-x: hidden;
    }
    html, body {
      max-width: 100vw;
      overflow-x: hidden;
      background: #fff;
    }
    .ev-header__inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 16px;
      height: 72px;
    }
    .ev-header__left {
      flex-direction: column;
      align-items: flex-start;
      gap: 2px;
    }
    .ev-header__logo {
      width: 150px;
      height: auto;
    }
    .ev-header__tagline {
      margin: 0;
      margin-top: 4px;
      font-size: 9px;
    }
    .ev-header__right {
      display: flex;
      align-items: center;
      gap: 24px;
    }
    .ev-header__icon img {
      height: 32px;
      width: 32px;
      filter: brightness(0) invert(1);
    }
    /* Hide nav on mobile */
    .ev-header__nav {
      display: none !important;
    }
    
    /* Hide desktop icons container on mobile */
    .ev-header__icons {
      display: none !important;
    }
    
    /* Show mobile-specific icons */
    .sp-only {
      display: flex !important;
      align-items: center;
      gap: 16px;
    }
    
    /* Ensure drawer icon is visible on mobile */
    .ev-header__icon--drawer {
      display: flex !important;
    }
  }

/* --- HEADER LINK STYLES --- */
.ev-header a {
  color: #fff !important;
}

.ev-header a:hover {
  color: #fff !important;
}

.ev-header a:visited {
  color: #fff !important;
}

/* --- SP-ONLY CLASS --- */
.sp-only {
  display: none;
}

/* Show sp-only icons on mobile (900px and below) */
@media (max-width: 900px) {
  .sp-only {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .ev-header {
    min-height: 70px;
    height: 70px;
  }
  .ev-header__left{
    margin-top: 14px;
  }
}


