/*
 * On Teddy v1.9 — premium desktop header reconstruction.
 * Desktop only. All rules are isolated above 1024px so the v1.8 mobile
 * header and touch menu remain completely unchanged.
 */
@media (min-width: 1025px) {
  html body .on-teddy-elementor-template.on-teddy-header-template,
  html body .on-teddy-default-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    background: #fffdf9 !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(67, 52, 42, .10) !important;
    box-shadow: 0 12px 34px rgba(48, 35, 27, .07) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  /* Slim premium information bar. */
  html body .on-teddy-announcement,
  html body .on-teddy-announcement-fallback {
    display: block !important;
    width: 100% !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fbf8f4 !important;
    border: 0 !important;
    border-bottom: 1px solid #ece4dc !important;
  }

  html body .on-teddy-announcement > .elementor-container,
  html body .on-teddy-announcement > .e-con-inner,
  html body .on-teddy-announcement-inner {
    width: 100% !important;
    max-width: 1920px !important;
    min-height: 44px !important;
    margin: 0 auto !important;
    padding: 0 clamp(34px, 4.1vw, 78px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 28px !important;
  }

  html body .on-teddy-announcement .elementor-column,
  html body .on-teddy-announcement .elementor-widget-wrap,
  html body .on-teddy-announcement .elementor-widget,
  html body .on-teddy-announcement .elementor-widget-container {
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
  }

  html body .on-teddy-announcement .elementor-column:first-child {
    width: 42% !important;
  }

  html body .on-teddy-announcement .elementor-column:last-child {
    width: 58% !important;
  }

  html body .on-teddy-announcement p,
  html body .on-teddy-announcement-fallback,
  html body .on-teddy-announcement-fallback a,
  html body .on-teddy-announcement-fallback span {
    margin: 0 !important;
    color: #5f564e !important;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  html body .on-teddy-top-message,
  html body .on-teddy-announcement .elementor-column:first-child p {
    display: flex !important;
    align-items: center !important;
    gap: 13px !important;
  }

  html body .on-teddy-top-message::before,
  html body .on-teddy-announcement .elementor-column:first-child p::before {
    content: "";
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    background: #df820f;
    box-shadow: 0 0 0 4px rgba(223, 130, 15, .08);
  }

  html body .on-teddy-top-links {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0 !important;
    white-space: nowrap !important;
  }

  html body .on-teddy-top-links > a,
  html body .on-teddy-top-links > span {
    position: relative;
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
    min-height: 24px !important;
    padding: 0 25px !important;
    color: #5b5149 !important;
    border-left: 1px solid #ded5cc !important;
    line-height: 24px !important;
    transition: color .2s ease !important;
  }

  html body .on-teddy-top-links > :first-child {
    border-left: 0 !important;
  }

  html body .on-teddy-top-links > a:hover {
    color: #cf6507 !important;
  }

  html body .on-teddy-top-links > a::before {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    color: currentColor;
    font-size: 17px;
    font-weight: 400;
    line-height: 1;
  }

  html body .on-teddy-top-links > a:nth-child(1)::before { content: "▱"; transform: rotate(90deg); }
  html body .on-teddy-top-links > a:nth-child(2)::before { content: "◇"; font-size: 20px; }
  html body .on-teddy-top-links > a:nth-child(3)::before { content: "◉"; font-size: 15px; }

  html body .on-teddy-currency {
    padding-right: 0 !important;
    font-weight: 600 !important;
  }

  /* Main navigation row. */
  html body .on-teddy-main-header,
  html body .on-teddy-default-header-inner {
    display: block !important;
    width: 100% !important;
    min-height: 116px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fffdf9 !important;
    border: 0 !important;
  }

  html body .on-teddy-main-header > .elementor-container,
  html body .on-teddy-main-header > .e-con-inner,
  html body .on-teddy-default-header-inner {
    width: 100% !important;
    max-width: 1920px !important;
    min-height: 116px !important;
    margin: 0 auto !important;
    padding: 0 clamp(34px, 4.1vw, 78px) !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
  }

  html body .on-teddy-main-header .elementor-column {
    min-height: 116px !important;
    display: flex !important;
    align-items: center !important;
  }

  html body .on-teddy-main-header .elementor-column:nth-child(1),
  html body .on-teddy-main-header .ot-desktop-logo-col {
    width: 28% !important;
    flex: 0 0 28% !important;
  }

  html body .on-teddy-main-header .elementor-column:nth-child(2),
  html body .on-teddy-main-header .ot-desktop-nav-col {
    width: 52% !important;
    flex: 0 0 52% !important;
  }

  html body .on-teddy-main-header .elementor-column:nth-child(3),
  html body .on-teddy-main-header .ot-desktop-actions-col {
    width: 20% !important;
    flex: 0 0 20% !important;
  }

  html body .on-teddy-main-header .elementor-column > .elementor-element-populated,
  html body .on-teddy-main-header .elementor-column > .elementor-widget-wrap,
  html body .on-teddy-main-header .elementor-widget,
  html body .on-teddy-main-header .elementor-widget-container {
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  html body .on-teddy-main-header .elementor-column:nth-child(1) .elementor-widget-container {
    justify-content: flex-start !important;
  }

  html body .on-teddy-main-header .elementor-column:nth-child(2) .elementor-widget-container {
    justify-content: center !important;
  }

  html body .on-teddy-main-header .elementor-column:nth-child(3) .elementor-widget-container {
    justify-content: flex-end !important;
  }

  /* Wordmark. */
  html body .on-teddy-logo-widget {
    width: 100% !important;
    text-align: left !important;
  }

  html body .on-teddy-brand {
    display: inline-flex !important;
    align-items: center !important;
    gap: 21px !important;
    color: #d46a08 !important;
    white-space: nowrap !important;
  }

  html body .on-teddy-brand-mark {
    width: 62px !important;
    height: 84px !important;
    flex: 0 0 62px !important;
    display: grid !important;
    place-items: center !important;
    border: 2.5px solid currentColor !important;
    border-radius: 27px !important;
    box-shadow: inset 0 0 0 6px rgba(212, 106, 8, .075) !important;
    color: #d46a08 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
  }

  html body .on-teddy-brand-name {
    color: #d46a08 !important;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: clamp(18px, 1.25vw, 23px) !important;
    font-weight: 800 !important;
    letter-spacing: .19em !important;
    line-height: 1 !important;
  }

  html body .on-teddy-logo-widget .custom-logo-link {
    display: inline-flex !important;
    align-items: center !important;
    max-width: 285px !important;
  }

  html body .on-teddy-logo-widget .custom-logo-link img {
    width: auto !important;
    max-width: 285px !important;
    max-height: 82px !important;
    object-fit: contain !important;
  }

  /* Centered primary navigation. */
  html body .on-teddy-nav-widget {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  html body .on-teddy-menu-toggle {
    display: none !important;
  }

  html body .on-teddy-nav-widget .on-teddy-menu {
    position: static !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: clamp(24px, 2.55vw, 50px) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Match the approved desktop mockup: Home remains available on mobile only. */
  html body .on-teddy-nav-widget .on-teddy-menu > li.menu-item-home {
    display: none !important;
  }

  html body .on-teddy-menu > li {
    display: block !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body .on-teddy-menu > li > a {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 10px 0 !important;
    color: #342a24 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: clamp(14px, .95vw, 17px) !important;
    font-weight: 650 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    transition: color .2s ease !important;
  }

  html body .on-teddy-menu > li > a::before {
    content: none !important;
  }

  html body .on-teddy-menu > li:nth-child(2) > a::after,
  html body .on-teddy-menu > li:nth-child(3) > a::after,
  html body .on-teddy-menu > li.menu-item-has-children > a::after {
    content: "⌄" !important;
    display: inline-block !important;
    margin: -3px 0 0 1px !important;
    color: currentColor !important;
    font-size: .78em !important;
    line-height: 1 !important;
  }

  html body .on-teddy-menu > li.current-menu-item > a,
  html body .on-teddy-menu > li > a:hover {
    color: #d46a08 !important;
  }

  html body .on-teddy-menu .sub-menu {
    top: calc(100% + 18px) !important;
    left: 50% !important;
    width: 230px !important;
    padding: 12px !important;
    border: 1px solid #ece2d9 !important;
    border-radius: 16px !important;
    background: #fffdf9 !important;
    box-shadow: 0 20px 45px rgba(55, 39, 28, .12) !important;
    transform: translate(-50%, 10px) !important;
  }

  html body .on-teddy-menu li:hover > .sub-menu {
    transform: translate(-50%, 0) !important;
  }

  /* Right-side icon group. */
  html body .on-teddy-header-actions {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: clamp(7px, .75vw, 14px) !important;
  }

  html body .on-teddy-action-link {
    position: relative !important;
    width: 46px !important;
    height: 46px !important;
    flex: 0 0 46px !important;
    display: grid !important;
    place-items: center !important;
    color: #342a24 !important;
    border: 1px solid transparent !important;
    border-radius: 50% !important;
    background: transparent !important;
    transition: color .2s ease, background .2s ease, border-color .2s ease !important;
  }

  html body .on-teddy-action-link:hover {
    color: #d46a08 !important;
    border-color: #eadfd5 !important;
    background: #fcf7f1 !important;
  }

  html body .on-teddy-action-link svg {
    width: 27px !important;
    height: 27px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.55 !important;
  }

  html body .on-teddy-cart-count {
    top: -2px !important;
    right: -1px !important;
    min-width: 21px !important;
    height: 21px !important;
    padding: 0 5px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 999px !important;
    background: #d46a08 !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
  }

  /* Fallback header uses the same approved proportions. */
  html body .on-teddy-default-header-inner > .on-teddy-brand { flex: 0 0 28% !important; }
  html body .on-teddy-default-header-inner > .on-teddy-nav-widget { flex: 0 0 52% !important; }
  html body .on-teddy-default-header-inner > .on-teddy-header-actions { flex: 0 0 20% !important; }

  /* Keep the layout elegant on smaller desktop/laptop widths. */
  @media (max-width: 1280px) {
    html body .on-teddy-announcement > .elementor-container,
    html body .on-teddy-announcement-inner,
    html body .on-teddy-main-header > .elementor-container,
    html body .on-teddy-default-header-inner {
      padding-inline: 28px !important;
    }

    html body .on-teddy-main-header .elementor-column:nth-child(1),
    html body .on-teddy-main-header .ot-desktop-logo-col { width: 25% !important; flex-basis: 25% !important; }
    html body .on-teddy-main-header .elementor-column:nth-child(2),
    html body .on-teddy-main-header .ot-desktop-nav-col { width: 56% !important; flex-basis: 56% !important; }
    html body .on-teddy-main-header .elementor-column:nth-child(3),
    html body .on-teddy-main-header .ot-desktop-actions-col { width: 19% !important; flex-basis: 19% !important; }

    html body .on-teddy-brand { gap: 14px !important; }
    html body .on-teddy-brand-mark { width: 52px !important; height: 72px !important; flex-basis: 52px !important; }
    html body .on-teddy-brand-name { font-size: 16px !important; }
    html body .on-teddy-nav-widget .on-teddy-menu { gap: 23px !important; }
    html body .on-teddy-menu > li > a { font-size: 13px !important; }
    html body .on-teddy-action-link { width: 40px !important; height: 40px !important; flex-basis: 40px !important; }
    html body .on-teddy-action-link svg { width: 23px !important; height: 23px !important; }
    html body .on-teddy-top-links > a,
    html body .on-teddy-top-links > span { padding-inline: 15px !important; }
  }
}
