/* ==========================================================
   On Teddy v1.6 — hard mobile header reconstruction
   Clean single-row header: logo left, menu button right.
   Announcement, account, wishlist and cart are inside drawer only.
   ========================================================== */

@media (max-width: 767px) {
  /* Remove the desktop utility/announcement bar on every mobile page. */
  html body .on-teddy-announcement,
  html body .on-teddy-announcement-fallback,
  html body .on-teddy-mobile-announcement,
  html body .on-teddy-mobile-hide {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
  }

  html body .on-teddy-header-template,
  html body .on-teddy-elementor-template.on-teddy-header-template,
  html body .on-teddy-default-header {
    position: relative !important;
    z-index: 10030 !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fffdf9 !important;
    border-bottom: 1px solid rgba(77, 57, 44, .11) !important;
    box-shadow: 0 4px 18px rgba(53, 36, 25, .045) !important;
  }

  html body .on-teddy-main-header,
  html body .on-teddy-mobile-main-header,
  html body .on-teddy-default-header-inner {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    min-height: 70px !important;
    height: 70px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: #fffdf9 !important;
  }

  /* Elementor section inner wrapper. */
  html body .on-teddy-main-header > .elementor-container,
  html body .on-teddy-main-header > .e-con-inner,
  html body .on-teddy-mobile-main-header > .elementor-container,
  html body .on-teddy-mobile-main-header > .e-con-inner,
  html body .on-teddy-default-header-inner {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 70px !important;
    height: 70px !important;
    margin: 0 !important;
    padding: 8px 14px !important;
  }

  /* Reset inherited Elementor mobile columns. */
  html body .on-teddy-main-header .elementor-column,
  html body .on-teddy-mobile-main-header .elementor-column {
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !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-mobile-main-header .elementor-column > .elementor-element-populated,
  html body .on-teddy-mobile-main-header .elementor-column > .elementor-widget-wrap {
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Logo column: locked to the left side. */
  html body .on-teddy-main-header > .elementor-container > .elementor-column:nth-child(1),
  html body .on-teddy-mobile-main-header .on-teddy-mobile-logo-col,
  html body .on-teddy-main-header .on-teddy-mobile-logo-col {
    position: absolute !important;
    z-index: 2 !important;
    top: 50% !important;
    left: 14px !important;
    display: flex !important;
    align-items: center !important;
    width: calc(100% - 82px) !important;
    max-width: calc(100% - 82px) !important;
    height: auto !important;
    transform: translateY(-50%) !important;
  }

  html body .on-teddy-main-header .on-teddy-logo-widget,
  html body .on-teddy-mobile-main-header .on-teddy-logo-widget,
  html body .on-teddy-default-header .on-teddy-logo-widget {
    display: flex !important;
    align-items: center !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
  }

  html body .on-teddy-main-header .on-teddy-brand,
  html body .on-teddy-mobile-main-header .on-teddy-brand,
  html body .on-teddy-default-header .on-teddy-brand {
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body .on-teddy-main-header .on-teddy-brand-mark,
  html body .on-teddy-mobile-main-header .on-teddy-brand-mark,
  html body .on-teddy-default-header .on-teddy-brand-mark {
    display: inline-grid !important;
    place-items: center !important;
    width: 34px !important;
    height: 46px !important;
    flex: 0 0 34px !important;
    border-width: 2px !important;
    border-radius: 16px !important;
    font-size: 8px !important;
  }

  html body .on-teddy-main-header .on-teddy-brand-name,
  html body .on-teddy-mobile-main-header .on-teddy-brand-name,
  html body .on-teddy-default-header .on-teddy-brand-name {
    overflow: hidden !important;
    max-width: 170px !important;
    color: var(--ot-accent, #d66b00) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: .13em !important;
    line-height: 1 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body .on-teddy-main-header .custom-logo-link,
  html body .on-teddy-mobile-main-header .custom-logo-link {
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    max-width: 190px !important;
  }

  html body .on-teddy-main-header .custom-logo-link img,
  html body .on-teddy-mobile-main-header .custom-logo-link img {
    display: block !important;
    width: auto !important;
    max-width: 190px !important;
    max-height: 48px !important;
    object-fit: contain !important;
  }

  /* Navigation column: locked to the right side. */
  html body .on-teddy-main-header > .elementor-container > .elementor-column:nth-child(2),
  html body .on-teddy-mobile-main-header .on-teddy-mobile-nav-col,
  html body .on-teddy-main-header .on-teddy-mobile-nav-col {
    position: absolute !important;
    z-index: 4 !important;
    top: 50% !important;
    right: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    transform: translateY(-50%) !important;
  }

  html body .on-teddy-main-header .on-teddy-nav-widget,
  html body .on-teddy-mobile-main-header .on-teddy-nav-widget,
  html body .on-teddy-default-header .on-teddy-nav-widget {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body .on-teddy-menu-toggle {
    position: relative !important;
    z-index: 10031 !important;
    display: grid !important;
    align-content: center !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 10px !important;
    border: 1px solid rgba(197, 123, 47, .48) !important;
    border-radius: 50% !important;
    background: #fffaf4 !important;
    box-shadow: none !important;
  }

  html body .on-teddy-menu-toggle span {
    display: block !important;
    width: 100% !important;
    height: 2px !important;
    margin: 3px 0 !important;
    border: 0 !important;
    border-radius: 2px !important;
    background: #3f3026 !important;
  }

  /* All desktop header action icons are intentionally removed on mobile.
     Account and cart remain available in the off-canvas drawer footer. */
  html body .on-teddy-main-header > .elementor-container > .elementor-column:nth-child(3),
  html body .on-teddy-mobile-main-header .on-teddy-mobile-actions-col,
  html body .on-teddy-main-header .on-teddy-mobile-actions-col,
  html body .on-teddy-main-header .on-teddy-header-actions,
  html body .on-teddy-mobile-main-header .on-teddy-header-actions,
  html body .on-teddy-default-header .on-teddy-header-actions {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  /* Remove any Elementor-created gaps or blank widgets in the header. */
  html body .on-teddy-main-header .elementor-widget-empty,
  html body .on-teddy-mobile-main-header .elementor-widget-empty {
    display: none !important;
  }

  /* Keep the existing v1.5 off-canvas drawer above this reconstructed bar. */
  html body .on-teddy-nav-widget .on-teddy-menu {
    z-index: 10050 !important;
  }

  body.admin-bar .on-teddy-header-template,
  body.admin-bar .on-teddy-default-header {
    top: 0 !important;
  }
}

@media (max-width: 390px) {
  html body .on-teddy-main-header > .elementor-container,
  html body .on-teddy-main-header > .e-con-inner,
  html body .on-teddy-mobile-main-header > .elementor-container,
  html body .on-teddy-mobile-main-header > .e-con-inner,
  html body .on-teddy-default-header-inner {
    padding-inline: 11px !important;
  }

  html body .on-teddy-main-header > .elementor-container > .elementor-column:nth-child(1),
  html body .on-teddy-mobile-main-header .on-teddy-mobile-logo-col,
  html body .on-teddy-main-header .on-teddy-mobile-logo-col {
    left: 11px !important;
    width: calc(100% - 70px) !important;
    max-width: calc(100% - 70px) !important;
  }

  html body .on-teddy-main-header > .elementor-container > .elementor-column:nth-child(2),
  html body .on-teddy-mobile-main-header .on-teddy-mobile-nav-col,
  html body .on-teddy-main-header .on-teddy-mobile-nav-col {
    right: 11px !important;
  }

  html body .on-teddy-main-header .on-teddy-brand-name,
  html body .on-teddy-mobile-main-header .on-teddy-brand-name {
    max-width: 135px !important;
    font-size: 12px !important;
  }
}
