
  :root {
    --ch-brand: #ff6a00;
    --ch-brand-light: #ff6a0022;
    --custom-header-logo-height: 120px;
    --custom-header-logo-max-width: 420px;
    --custom-header-logo-height-mobile: 60px;
    --custom-header-logo-width-mobile: 120px;
    --custom-header-logo-max-width-mobile: 220px;
  }

  .custom-header {
    position: sticky;
    top: 0;
    z-index: 9999;
  }

  @media (min-width: 861px) {
    .custom-header {
      background: #ffffff;
      box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    }
  }
  .custom-header__inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 28px;
    height: 72px;
    display: flex;
    align-items: center;
    gap: 20px;
  }

  /* LOGO */
  .custom-header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
  }
  .custom-header__logo-img {
    height: var(--custom-header-logo-height, 120px);
    max-width: var(--custom-header-logo-max-width, 420px);
    width: auto;
    display: block;
    object-fit: contain;
  }
  .custom-header__logo-icon {
    width: 40px;
    height: 40px;
    background: var(--ch-brand);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .custom-header__logo-icon svg { width: 22px; height: 22px; }
  .custom-header__logo-text { display: flex; flex-direction: column; line-height: 1; }
  .custom-header__logo-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800; font-size: 19px;
    letter-spacing: 0.05em; color: #111; text-transform: uppercase;
  }
  .custom-header__logo-tag {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600; font-size: 8.5px;
    letter-spacing: 0.2em; color: var(--ch-brand);
    text-transform: uppercase; margin-top: 3px;
  }

  /* SEARCH */
  .custom-header__search-wrap {
    flex: 1;
    min-width: 0;
    position: relative;
  }
  .custom-header__search-form {
    display: flex;
    align-items: center;
    width: 100%;
    background: #f4f5f7;
    border-radius: 12px;
    border: 1.5px solid #e2e4e9;
    overflow: visible;
    transition: border-color 0.2s, box-shadow 0.2s;
    position: relative;
  }
  .custom-header__search-form:focus-within {
    border-color: var(--ch-brand);
    box-shadow: 0 0 0 2px var(--ch-brand-light);
    background: #fff;
  }
  .custom-header__search-suggest {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid #e2e4e9;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    z-index: 10002;
    max-height: 360px;
    overflow-y: auto;
    padding: 6px 0;
  }
  .custom-header__search-suggest[hidden] {
    display: none !important;
  }
  .custom-header__search-suggest-empty {
    padding: 14px 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #666;
  }
  .custom-header__search-suggest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #333;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
  }
  .custom-header__search-suggest-item:hover {
    background: #fff8ec;
    color: var(--ch-brand);
  }
  .custom-header__search-suggest-item img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    background: #f4f5f7;
    flex-shrink: 0;
  }
  .custom-header__search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
  }
  .custom-header__cat-wrap { position: relative; flex-shrink: 0; }
  .custom-header__cat-btn {
    display: flex; align-items: center; gap: 5px;
    padding: 0 14px 0 18px; height: 46px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px; font-weight: 700; color: #333;
    background: none; border: none;
    border-right: 1.5px solid #e2e4e9; cursor: pointer; white-space: nowrap;
  }
  .custom-header__cat-btn svg {
    width: 11px; height: 11px; stroke: #888; fill: none;
    stroke-width: 2; stroke-linecap: round; transition: transform 0.2s;
  }
  .custom-header__cat-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
  .custom-header__cat-dropdown {
    display: none; position: absolute;
    top: calc(100% + 10px); left: 0;
    background: #fff; border: 1.5px solid #e2e4e9;
    border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    min-width: 190px; z-index: 10001; overflow: hidden; padding: 6px 0;
  }
  .custom-header__cat-dropdown.open { display: block; }
  .custom-header__cat-option {
    display: block; width: 100%; padding: 9px 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px; font-weight: 500; color: #444;
    background: none; border: none; text-align: left; cursor: pointer;
    transition: background 0.15s, color 0.15s;
  }
  .custom-header__cat-option:hover,
  .custom-header__cat-option.active { background: #fff8ec; color: var(--ch-brand); font-weight: 700; }
  .custom-header__search-input {
    flex: 1; border: none; background: transparent;
    padding: 0 14px; font-family: 'Montserrat', sans-serif;
    font-size: 14px; color: #333; outline: none; height: 46px; min-width: 0;
  }
  .custom-header__search-input::placeholder { color: #aaa; }
  .custom-header__search-submit {
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--ch-brand); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin: 2px 3px 2px 0;
    transition: filter 0.15s, transform 0.1s;
  }
  .custom-header__search-submit:hover { filter: brightness(1.08); transform: scale(1.05); }
  .custom-header__search-submit svg {
    width: 18px; height: 18px; stroke: #fff; fill: none;
    stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  }

  /* NAV ICONS */
  .custom-header__nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: auto;
  }
  .custom-header__nav-btn {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%; color: #444;
    text-decoration: none; background: none; border: none; cursor: pointer;
    transition: background 0.15s, color 0.15s;
  }
  .custom-header__nav-btn:hover { background: #f4f5f7; color: var(--ch-brand); }
  .custom-header__nav-btn svg {
    width: 22px; height: 22px; stroke: currentColor; fill: none;
    stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  }
  .custom-header__cart-count {
    position: absolute; top: 3px; right: 3px;
    background: var(--ch-brand); color: #fff;
    font-family: 'Montserrat', sans-serif; font-size: 9px; font-weight: 800;
    min-width: 17px; height: 17px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    line-height: 1; padding: 0 2px; pointer-events: none;
  }

  /* LANGUAGE DROPDOWN */
  .custom-header__lang-wrap { position: relative; }
  .custom-header__lang-dropdown {
    display: none; position: absolute;
    top: calc(100% + 8px); right: 0;
    background: #fff; border: 1.5px solid #e2e4e9;
    border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    min-width: 160px; z-index: 200; overflow: hidden; padding: 6px 0;
  }
  .custom-header__lang-dropdown.open { display: block; }
  .custom-header__lang-dropdown .ch-lang-option {
    display: flex; align-items: center; gap: 8px; padding: 9px 16px;
    width: 100%; border: 0; background: transparent; cursor: pointer; text-align: left;
    font-family: var(--font-body--family), Inter, Figtree, sans-serif; font-size: 13px; font-weight: 500;
    color: #444; text-decoration: none; transition: background 0.15s, color 0.15s;
  }
  .custom-header__lang-dropdown .ch-lang-option:hover,
  .custom-header__lang-dropdown .ch-lang-option.active { background: #fff8ec; color: var(--ch-brand); font-weight: 700; }

  /* ACCOUNT MENU */
  .custom-header__acct-wrap { position: relative; }
  .custom-header__acct-menu {
    display: none; position: absolute;
    top: calc(100% + 8px); right: 0;
    background: #fff; border: 1.5px solid #e2e4e9;
    border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    min-width: 170px; z-index: 200; overflow: hidden; padding: 6px 0;
  }
  .custom-header__acct-menu.open { display: block; }
  .custom-header__acct-menu a {
    display: flex; align-items: center; gap: 8px; padding: 9px 16px;
    font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 500;
    color: #444; text-decoration: none; border: none; background: none;
    width: 100%; cursor: pointer; transition: background 0.15s, color 0.15s;
  }
  .custom-header__acct-menu a:hover { background: #fff8ec; color: var(--ch-brand); font-weight: 700; }
  .custom-header__acct-menu a svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
  .ch-divider { height: 1px; background: #f0f0f0; margin: 4px 0; }

  /* ANNOUNCEMENT */
  .custom-header__announce {
    background: #ff6a00;
    color: #ffffff;
    text-align: center; padding: 7px 24px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12.5px; font-weight: 600; letter-spacing: 0.03em;
  }

  .custom-header__primary-nav {
    display: none;
    align-items: center;
    gap: clamp(12px, 1.5vw, 22px);
    min-width: 0;
  }

  .custom-header__nav-item {
    position: relative;
    flex-shrink: 0;
  }

  .custom-header__primary-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 42px;
    color: #14161b;
    font-family: Inter, 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }

  .custom-header__nav-chevron {
    width: 10px;
    height: 7px;
    color: #8b93a0;
  }

  .custom-header__nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    min-width: 200px;
    padding: 8px 0;
    border: 1px solid #e6e8ec;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(20, 22, 27, 0.12);
    z-index: 10020;
  }

  .custom-header__nav-item.is-open .custom-header__nav-dropdown,
  .custom-header__nav-item:hover .custom-header__nav-dropdown {
    display: block;
  }

  .custom-header__nav-dropdown-link {
    display: block;
    padding: 10px 16px;
    color: #14161b;
    font-family: Inter, 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }

  .custom-header__nav-dropdown-link:hover,
  .custom-header__nav-dropdown-link.is-active,
  .custom-header__primary-link:hover,
  .custom-header__primary-link.is-active {
    color: var(--ch-brand);
  }

  .custom-header__nav-dropdown-link:hover,
  .custom-header__nav-dropdown-link.is-active {
    background: #fff3e9;
  }

  .custom-header__trade-in {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border: 1.5px solid var(--ch-brand);
    border-radius: 10px;
    background: transparent;
    color: var(--ch-brand);
    font-family: Inter, 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
  }

  .custom-header__trade-in:hover {
    background: #fff3e9;
  }

  /* Desktop / theme-editor preview: show menu + Trade-in */
  @media (min-width: 750px) {
    .custom-header__inner {
      display: grid !important;
      grid-template-columns: auto minmax(0, 1fr) auto auto;
      align-items: center;
      height: auto;
      min-height: 132px;
      gap: clamp(12px, 1.6vw, 28px);
      flex-wrap: nowrap;
    }

    .custom-header__logo {
      grid-column: 1;
      order: unset;
    }

    .custom-header__primary-nav {
      display: flex !important;
      grid-column: 2;
      order: unset;
    }

    .custom-header__search-wrap {
      grid-column: 3;
      justify-self: end;
      width: min(100%, 240px) !important;
      max-width: 240px !important;
      flex: 0 0 auto !important;
      margin-top: 0 !important;
      order: unset;
    }

    .custom-header__cat-wrap {
      display: none !important;
    }

    .custom-header__search-submit-text {
      display: none !important;
    }

    .custom-header__search-submit {
      width: 36px;
      min-width: 36px;
      height: 36px;
      margin: 2px;
      padding: 0;
      border-radius: 8px;
      background: transparent;
    }

    .custom-header__search-submit svg {
      stroke: #14161b;
    }

    .custom-header__nav {
      grid-column: 4;
      justify-self: end;
      margin-left: 0;
      order: unset;
      gap: 10px;
    }

    .custom-header__trade-in {
      display: inline-flex !important;
    }

    .custom-header__logo-img {
      height: var(--custom-header-logo-height, 120px);
      max-width: var(--custom-header-logo-max-width, 420px);
    }
  }

  /* MOBILE */
  @media (max-width: 749px) {
    .custom-header__primary-nav,
    .custom-header__trade-in {
      display: none !important;
    }
    .custom-header__inner { 
      padding: 12px 16px; 
      gap: 12px; 
      flex-wrap: wrap;
      height: auto;
    }
    .custom-header__logo { order: 1; }
    .custom-header__nav { order: 2; margin-left: auto; }
    .custom-header__search-wrap {
      order: 3;
      flex: 1 1 100%;
      margin-top: 5px;
    }
    
    .custom-header__cat-btn { display: none; }
    .custom-header__logo-tag { display: none; }
  }
  @media (max-width: 600px) { .hide-mobile { display: none !important; } }
