.header-section-ui {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.header-section-ui.scrolled {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header {
  background: var(--background-color);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.header__inner {
  box-sizing: border-box;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 32px;
  padding-right: 8px;
}

.header__title {
  color: #353535;
  font-weight: 500;
  font-size: 14px;
  line-height: 28px; /* matches 2em at 14px */
  margin-right: auto;
}

.header__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px 0 26px; /* left matches figma text inset */
  color: #353535;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.header__action:hover {
  background: rgba(0, 0, 0, 0.05);
}

.header__action-text {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
}

.header__action-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.header__menu {
  background: var(--background-color);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.header__nav {
  height: 88px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  box-sizing: border-box;
  margin-right: 50px;
}
@media screen and (max-width: 1300px) {
  .header__nav {
    margin-right: 0;
    padding: 0 8px;
  }
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 40px; /* Figma gap */
  margin: 0;
  padding: 0;
  list-style: none;
}

.header__nav-link {
  color: #353535;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
}

.header__nav-link:hover {
  opacity: 0.8;
  color: #8B6E00;
}

.header__menu-inner {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  padding-left: 32px;
}

/* Brand (logo + small caption to the right) */
.header__brand {
  display: inline-flex;
  align-items: center;
  gap: 24px; /* approx distance from logo to caption (232 - 209) */
}

.header__brand-logo {
  width: 209px;
  height: 32px;
}

.header__brand-caption-line {
  width: 1px;
  height: 56px;
  background: rgba(0, 0, 0, 0.2);
  margin-left: 24px;
}

.header__brand-caption {
  color: #353535;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.5;
}

/* Center nav with active underline indicator */
.header__nav-list {
  position: relative;
}

.header__nav-link.is-active {
  position: relative;
}

.header__nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px; /* roughly y:60 from top within 88px height */
  margin: 0 auto;
  width: 16px;
  height: 3px;
  border-radius: 4px;
  background: var(--color-primary);
}

/* Right utilities (user / cart) */
.cart-badge {
  position: absolute;
  top: 8px;
  right: 18px;
  background: var(--color-primary);
  color: #FFFFFF;
  height: 18px;
  line-height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.cart-badge-text {
  font-size: 12px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}


.header__utility {
  display: flex;
  align-items: center;
}

.header__utility-item {
  width: 88px;
  height: 88px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #353535;
}

.header__utility-icon {
  width: 32px;
  height: 32px;
}

.header__utility-label {
  font-weight: 600;
  font-size: 12px;
  line-height: 1.5;
}

.header__utility-item:hover {
  color: var(--color-primary);
}

.header__utility-sep {
  width: 1px;
  height: 56px;
  background: rgba(0, 0, 0, 0.2);
}

.header__utility-item-menu {
  display: none;
}
@media screen and (max-width: 1200px) {
  .header__nav-list {
    display: none;
  }
  .header__utility-item-menu {
    display: flex;
    color: white;
    background: var(--color-primary);
    border-bottom-left-radius: 12px;
  }
  .header__utility-item-menu.is-open {
    background: #3D3D3D;
  }
  .header__utility-item-menu.is-open .header__utility-icon-menu {
    display: none !important;
  }
  .header__utility-item-menu.is-open .header__utility-icon-close {
    display: block !important;
  }
}

.header__menu-only {
  border-bottom: none;
}

@media screen and (max-width: 890px) {
  .header {
    display: none;
  }
  .header__menu-only .header__utility-item-menu {
    height: 100%;
  }
  .header__menu-only .header__menu-inner {
    height: 64px;
  }
  .header__menu-onl .header__utility-item {
    height: 64px;
  }
  .header__utility-sep {
    height: 40px;
  }
  .header__utility {
    height: 100%;
  }
  .cart-badge {
    top: -3px;
    right: 4px;

  }

}

/* Floating button */
.button-floating {
  position: fixed;
  right: 0;
  top: 220px;
  z-index: 1000;
  width: 82px;
  display: flex;
  flex-direction: column;
}

.button-floating__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 28px 25px;
  text-decoration: none;
  width: 82px;
  box-sizing: border-box;
  position: relative;
  gap: 4px;
}

.button-floating__item--reorder {
  background: #8B6E00;
  border-radius: 12px 0 0 0;
}

.button-floating__item--contact {
  height: 229px;
  background: #3D3D3D;
  border-radius: 0 0 0 12px;
}

.button-floating__icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  margin-bottom: 3px; /* 63 - 28 - 32 = 3px gap */
}

.button-floating__text {
  writing-mode: vertical-rl;
  text-orientation: upright;
  color: #FFFFFF;
  font-weight: 500;
  font-size: 18px;
  line-height: 125%;
  letter-spacing: 0.24em;
  font-family: var(--font-family);
}

.button-floating-mobile {
  display: none;
  position: fixed;
  bottom: 12px;
  right: 12px;
  z-index: 1000;
  flex-direction: row;
  align-items: center;
  gap: 4px;
}

.button-floating-mobile__reorder {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: 148px;
  height: 40px;
  padding: 8px;
  background: #8B6E00;
  border-radius: 1000px;
  text-decoration: none;
  box-sizing: border-box;
}

.button-floating-mobile__contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #3D3D3D;
  border-radius: 1000px;
  text-decoration: none;
  box-sizing: border-box;
}

.button-floating-mobile__icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.button-floating-mobile__text {
  color: #FFFFFF;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
}

@media screen and (max-width: 1200px) {
  .button-floating-desktop {
    display: none;
  }
  .button-floating-mobile {
    display: flex;
  }
}

@media screen and (max-width: 890px) {
  .button-floating-mobile {
    bottom: 8px;
    right: 8px;
  }

}

/* Mobile Menu */
.header__menu-mobile {
  background: var(--background-color);
  /* background: #fc9c9c; */
  border-radius: 0 0 12px 12px;
  width: 100%;
  margin: 0 auto;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-20px);
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out, transform 0.3s ease-out;
  position: fixed;
  z-index: 100;
  top: 146px;
  left: 0;
  right: 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.header__menu-mobile.is-open {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
}

.header__menu-mobile-inner {
  display: flex;
  gap: 48px;
  padding: 40px;
}

.header__menu-mobile-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 550px;
}

.header__menu-mobile-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  height: 56px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  text-decoration: none;
  flex: 1 1 calc(50% - 4px);
  min-width: calc(50% - 4px);
}

.header__menu-mobile-text {
  color: #353535;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.6;
}

.header__menu-mobile-arrow {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.header__menu-mobile-legal {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.header__menu-mobile-legal-item {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.header__menu-mobile-legal-icon {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
}

.header__menu-mobile-legal-text {
  color: #353535;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
}

@media screen and (max-width: 890px) {
  .header__menu-mobile-inner {
    flex-direction: column;
    gap: 24px;
  }

  .header__menu-mobile-nav {
    width: 100%;
  }

  .header__menu-mobile-item {
    min-width: calc(50% - 4px);
  }
  .header__menu-mobile.is-open {
    max-height: 100vh !important;
  }
  .header__menu-mobile-inner {
    padding: 40px 16px;
  }
  .header__menu-mobile-text, .header__menu-mobile-legal-text {
    font-size: 14px;
  }
  .header__menu-mobile {
    top: 64px;
  }
}
