/* Petaro Header — modern warm glass bar */

:root {
  --ph-header-h: 76px;
  --ph-header-pad-x: 1.35rem;
  --ph-header-pad-y: 0.4rem;
  --ph-header-cream: rgba(246, 239, 228, 0.88);
  --ph-header-cream-solid: #f6efe4;
  --ph-header-ink: #141210;
  --ph-header-muted: rgba(20, 18, 16, 0.62);
  --ph-header-line: rgba(20, 18, 16, 0.1);
  --ph-header-accent: #c45d3a;
  --ph-header-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Shell ---- */
body.petaro-has-header .elementor-location-header {
  position: sticky;
  top: 0;
  z-index: 10050;
  width: 100%;
  transition:
    background 0.35s var(--ph-header-ease),
    box-shadow 0.35s var(--ph-header-ease),
    border-color 0.35s var(--ph-header-ease),
    backdrop-filter 0.35s ease;
}

body.petaro-has-header .elementor-location-header > .elementor-section.elementor-element-2375310,
body.petaro-has-header .elementor-location-header > .elementor-top-section {
  display: flex !important;
  align-items: center !important;
  min-height: var(--ph-header-h);
  padding: var(--ph-header-pad-y) 0 !important;
  border-bottom: 1px solid transparent;
  background: var(--ph-header-cream) !important;
  background-image: none !important;
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: 0 1px 0 rgba(20, 18, 16, 0.04);
  transition:
    background 0.35s var(--ph-header-ease),
    box-shadow 0.35s var(--ph-header-ease),
    border-color 0.35s var(--ph-header-ease),
    min-height 0.3s var(--ph-header-ease),
    padding 0.3s var(--ph-header-ease);
}

body.petaro-has-header.petaro-header-scrolled .elementor-location-header > .elementor-top-section {
  min-height: 68px;
  background: rgba(246, 239, 228, 0.94) !important;
  border-bottom-color: var(--ph-header-line);
  box-shadow: 0 10px 28px rgba(20, 18, 16, 0.08);
}

body.petaro-has-header .elementor-location-header .elementor-element-2375310.elementor-top-section > .elementor-container.elementor-column-gap-no {
  position: relative !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: space-between !important;
  align-items: center !important;
  max-width: min(1180px, calc(100% - 2.5rem)) !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: var(--ph-header-pad-x) !important;
  padding-right: var(--ph-header-pad-x) !important;
  gap: 1rem;
  box-sizing: border-box !important;
}

/* Collapse Elementor’s equal 25% columns into logo | nav + utils */
body.petaro-has-header .elementor-location-header .elementor-top-section > .elementor-container > .elementor-column {
  width: auto !important;
  max-width: none !important;
  align-items: center !important;
}

/* Keep Elementor responsive hide classes working (do not force display:flex on all cols) */
@media (min-width: 1025px) {
  body.petaro-has-header .elementor-location-header .elementor-hidden-desktop,
  body.petaro-has-header .elementor-location-header .elementor-hidden-laptop {
    display: none !important;
  }
}

body.petaro-has-header .elementor-location-header .elementor-top-section > .elementor-container > .elementor-element-4b1625f {
  position: relative;
  z-index: 2;
  display: flex !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
}

body.petaro-has-header .elementor-location-header .elementor-top-section > .elementor-container > .elementor-element-5c92165 {
  position: static !important;
  z-index: 2;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
}

@media (min-width: 1025px) {
  body.petaro-has-header .elementor-location-header .elementor-top-section > .elementor-container > .elementor-element-5c92165 {
    display: flex !important;
  }
}

/* Kill Elementor column/widget padding that throws alignment off */
body.petaro-has-header .elementor-location-header .elementor-column-wrap,
body.petaro-has-header .elementor-location-header .elementor-widget-wrap {
  display: flex !important;
  align-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.petaro-has-header .elementor-location-header .elementor-element-4b1625f .elementor-widget-wrap {
  justify-content: flex-start !important;
}

body.petaro-has-header .elementor-location-header .elementor-widget {
  margin: 0 !important;
}

/* Homepage: soft floating cream bar over the hero */
body.petaro-header-home:not(.petaro-header-scrolled) .elementor-location-header {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  background: transparent;
  padding: 0.85rem 0 0;
}

body.petaro-header-home:not(.petaro-header-scrolled) .elementor-location-header > .elementor-top-section {
  --ph-header-pad-x: 1.5rem;
  --ph-header-pad-y: 0.45rem;
  width: min(1180px, calc(100% - 1.75rem));
  margin: 0 auto;
  border-radius: 999px;
  background: rgba(246, 239, 228, 0.86) !important;
  border: 1px solid rgba(20, 18, 16, 0.08);
  box-shadow: 0 14px 36px rgba(20, 18, 16, 0.12);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

body.petaro-header-home:not(.petaro-header-scrolled) .elementor-location-header .elementor-element-2375310.elementor-top-section > .elementor-container.elementor-column-gap-no {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: var(--ph-header-pad-x) !important;
  padding-right: var(--ph-header-pad-x) !important;
}

body.petaro-header-home.petaro-header-scrolled .elementor-location-header {
  position: fixed;
  padding: 0;
}

body.petaro-header-home.petaro-header-scrolled .elementor-location-header > .elementor-top-section {
  width: 100%;
  border-radius: 0;
}

/* ---- Logo ---- */
body.petaro-has-header .elementor-location-header .lakit-logo {
  line-height: 0;
}

body.petaro-has-header .elementor-location-header .lakit-logo__link {
  display: inline-flex;
  align-items: center;
}

body.petaro-has-header .elementor-location-header .lakit-logo__img {
  width: auto !important;
  max-height: 52px !important;
  height: 52px !important;
  object-fit: contain;
  transition: opacity 0.3s ease, transform 0.35s var(--ph-header-ease);
}

body.petaro-has-header.petaro-header-scrolled .elementor-location-header .lakit-logo__img {
  max-height: 44px !important;
  height: 44px !important;
}

/* Always prefer the full-color brand mark */
body.petaro-has-header .elementor-location-header .lakit-logo__t {
  display: none !important;
}

body.petaro-has-header .elementor-location-header .lakit-logo__n {
  display: block !important;
  filter: none !important;
}

/* ---- Primary nav ---- */
body.petaro-has-header .elementor-location-header .lakit-nav--horizontal {
  display: flex !important;
  align-items: center;
  gap: 0.15rem;
}

body.petaro-has-header .elementor-location-header .lakit-nav__item {
  margin: 0 !important;
}

body.petaro-has-header .elementor-location-header .menu-item-link-top {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.3rem 0.8rem !important;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  line-height: 1.2 !important;
  color: var(--ph-header-ink) !important;
  text-decoration: none !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 999px;
  box-shadow: none !important;
  transition: color 0.25s ease, background 0.25s ease;
}

body.petaro-has-header .elementor-location-header .menu-item-link-top .menu-text {
  font: inherit !important;
  color: inherit !important;
}

body.petaro-has-header .elementor-location-header .menu-item-link-top::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.35rem;
  height: 2px;
  border-radius: 999px;
  background: var(--ph-header-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s var(--ph-header-ease);
}

body.petaro-has-header .elementor-location-header .menu-item-link-top:hover {
  color: var(--ph-header-ink) !important;
  background: rgba(20, 18, 16, 0.05) !important;
}

body.petaro-has-header .elementor-location-header .current-menu-item > .menu-item-link-top,
body.petaro-has-header .elementor-location-header .current_page_item > .menu-item-link-top {
  color: var(--ph-header-ink) !important;
  background: transparent !important;
}

body.petaro-has-header .elementor-location-header .menu-item-link-top:hover::after,
body.petaro-has-header .elementor-location-header .current-menu-item > .menu-item-link-top::after,
body.petaro-has-header .elementor-location-header .current_page_item > .menu-item-link-top::after {
  transform: scaleX(1);
}

/* Soften Login as a secondary action */
body.petaro-has-header .elementor-location-header .lakit-nav__item a[href*="login"],
body.petaro-has-header .elementor-location-header .lakit-nav__item .xoo-el-login-tgr,
body.petaro-has-header .elementor-location-header .menu-item-link-top.xoo-el-login-tgr {
  color: var(--ph-header-muted) !important;
  font-weight: 600 !important;
}

body.petaro-has-header .elementor-location-header .lakit-nav__item a[href*="login"]::after,
body.petaro-has-header .elementor-location-header .menu-item-link-top.xoo-el-login-tgr::after {
  display: none;
}

/* ---- Utility cluster: search + cart ---- */
body.petaro-has-header .elementor-location-header .lakit-search,
body.petaro-has-header .elementor-location-header .lakit-cart {
  margin: 0 !important;
}

body.petaro-has-header .elementor-location-header .lakit-search-popup-trigger,
body.petaro-has-header .elementor-location-header .lakit-search__popup-trigger,
body.petaro-has-header .elementor-location-header .lakit-search .lakit-search__submit,
body.petaro-has-header .elementor-location-header .lakit-cart__heading-link,
body.petaro-has-header .elementor-location-header .elementor-widget-icon .elementor-icon {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  background: rgba(20, 18, 16, 0.05) !important;
  color: var(--ph-header-ink) !important;
  border: 1px solid rgba(20, 18, 16, 0.08) !important;
  box-shadow: none !important;
  transition:
    transform 0.25s var(--ph-header-ease),
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease !important;
}

body.petaro-has-header .elementor-location-header .lakit-search-popup-trigger:hover,
body.petaro-has-header .elementor-location-header .lakit-search__popup-trigger:hover,
body.petaro-has-header .elementor-location-header .lakit-cart__heading-link:hover,
body.petaro-has-header .elementor-location-header .elementor-widget-icon .elementor-icon:hover {
  transform: translateY(-2px);
  background: #fff !important;
  border-color: rgba(20, 18, 16, 0.16) !important;
  color: var(--ph-header-accent) !important;
}

/* Cart count badge */
body.petaro-has-header .elementor-location-header .lakit-cart__count,
body.petaro-has-header .elementor-location-header .lakit-cart-count,
body.petaro-has-header .elementor-location-header .cart-contents-count {
  top: -2px !important;
  right: -2px !important;
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 5px !important;
  border-radius: 999px !important;
  background: var(--ph-header-accent) !important;
  color: #fff8f2 !important;
  font-family: "Instrument Sans", "Segoe UI", sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 18px !important;
  border: 2px solid var(--ph-header-cream-solid) !important;
  box-shadow: none !important;
}

/* Right column: utils stay right; nav is centered in the full bar */
body.petaro-has-header .elementor-location-header .elementor-element-5c92165 .elementor-widget-wrap,
body.petaro-has-header .elementor-location-header .elementor-element-673c4d0 .elementor-widget-wrap,
body.petaro-has-header .elementor-location-header .elementor-element-66b7b2e .elementor-widget-wrap {
  position: static !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0.5rem !important;
  width: 100% !important;
  min-height: 48px;
}

/* True horizontal center for primary nav inside the pill/bar */
body.petaro-has-header .elementor-location-header .petaro-header-nav,
body.petaro-has-header .elementor-location-header .elementor-element-1ea3416 {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: min(560px, calc(100% - 220px));
  margin: 0 !important;
  order: 0 !important;
  z-index: 1;
}

body.petaro-has-header .elementor-location-header .petaro-header-utils {
  position: relative;
  z-index: 2;
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  margin-left: auto !important;
  flex: 0 0 auto !important;
  order: 2 !important;
}

/* Hide mobile-only collection menu text list in desktop header chrome */
@media (min-width: 1025px) {
  body.petaro-has-header .elementor-location-header .elementor-element-66b7b2e .lakit-nav-menu {
    display: none !important;
  }
}

/* ---- Mobile ---- */
@media (max-width: 1024px) {
  :root {
    --ph-header-h: 60px;
    --ph-header-pad-x: 0.85rem;
  }

  /* Desktop nav/utils column must stay hidden (has elementor-hidden-mobile) */
  body.petaro-has-header .elementor-location-header .elementor-element-5c92165,
  body.petaro-has-header .elementor-location-header .elementor-hidden-mobile,
  body.petaro-has-header .elementor-location-header .elementor-hidden-mobile_extra {
    display: none !important;
  }

  /* Mobile action columns: search + cart + menu (grouped right) */
  body.petaro-has-header .elementor-location-header .elementor-element-673c4d0,
  body.petaro-has-header .elementor-location-header .elementor-element-66b7b2e {
    display: flex !important;
    position: relative !important;
    z-index: 2;
    flex: 0 0 auto !important;
    margin: 0 !important;
  }

  body.petaro-has-header .elementor-location-header .elementor-element-673c4d0 {
    margin-left: auto !important;
  }

  body.petaro-has-header .elementor-location-header .elementor-element-673c4d0 .elementor-widget-wrap,
  body.petaro-has-header .elementor-location-header .elementor-element-66b7b2e .elementor-widget-wrap {
    justify-content: flex-end !important;
    min-height: 40px;
    gap: 0.3rem !important;
    width: auto !important;
  }

  body.petaro-has-header .elementor-location-header .elementor-element-2375310.elementor-top-section > .elementor-container.elementor-column-gap-no {
    max-width: 100% !important;
    width: 100% !important;
    justify-content: space-between !important;
    gap: 0.5rem !important;
  }

  body.petaro-header-home:not(.petaro-header-scrolled) .elementor-location-header {
    padding: 0.65rem 0.75rem 0;
  }

  body.petaro-header-home:not(.petaro-header-scrolled) .elementor-location-header > .elementor-top-section {
    --ph-header-pad-x: 0.85rem;
    width: 100%;
    max-width: none;
  }

  body.petaro-has-header .elementor-location-header > .elementor-top-section {
    min-height: var(--ph-header-h);
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
  }

  body.petaro-has-header .elementor-location-header .lakit-logo__img {
    max-height: 40px !important;
    height: 40px !important;
  }

  /* Reset desktop-centered nav positioning on mobile */
  body.petaro-has-header .elementor-location-header .petaro-header-nav,
  body.petaro-has-header .elementor-location-header .elementor-element-1ea3416 {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    max-width: none;
  }

  body.petaro-has-header .elementor-location-header .lakit-search-popup-trigger,
  body.petaro-has-header .elementor-location-header .lakit-search__popup-trigger,
  body.petaro-has-header .elementor-location-header .lakit-cart__heading-link,
  body.petaro-has-header .elementor-location-header .elementor-widget-icon .elementor-icon {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
  }

  body.petaro-has-header .elementor-location-header .elementor-element-66b7b2e .elementor-widget-icon .elementor-icon {
    font-size: 18px !important;
  }

  /* Hide any leftover desktop nav text in the bar */
  body.petaro-has-header .elementor-location-header .lakit-nav--horizontal {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.petaro-has-header .elementor-location-header,
  body.petaro-has-header .elementor-location-header *,
  body.petaro-has-header .elementor-location-header *::after {
    transition: none !important;
  }
}
