/* Header 5 — Djewno-style jewelry header */

.bsp-header--header-5 {
  --bsp-container: 1600px;
  --bsp-h5-announce-bg: #111111;
  --bsp-h5-announce-text: #ffffff;
  --bsp-h5-bg: #ffffff;
  --bsp-h5-text: #111111;
  --bsp-h5-muted: #8a8a8a;
  --bsp-h5-border: #e8e8e8;
  --bsp-h5-badge: #e11d2e;
  --bsp-h5-badge-text: #ffffff;
  --bsp-h5-font-sans: "DM Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --bsp-h5-font-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  background: var(--bsp-h5-bg);
  color: var(--bsp-h5-text);
  font-family: var(--bsp-h5-font-sans);
}

.bsp-header--header-5 .bsp-h5-container {
  width: min(100% - 40px, var(--bsp-container, 1600px));
  margin: 0 auto;
}

/* ——— Announcement ——— */
.bsp-h5-announce {
  background: var(--bsp-h5-announce-bg);
  color: var(--bsp-h5-announce-text);
}

.bsp-h5-announce__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 0;
  text-align: center;
}

.bsp-h5-announce__text {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-transform: uppercase;
}

/* ——— Utility bar ——— */
.bsp-h5-utility {
  border-bottom: 1px solid var(--bsp-h5-border);
  background: var(--bsp-h5-bg);
}

.bsp-h5-utility__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 42px;
}

.bsp-h5-utility__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 22px;
}

.bsp-h5-utility__links a {
  color: var(--bsp-h5-text);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
}

.bsp-h5-utility__links a:hover {
  opacity: 0.65;
}

.bsp-h5-utility__meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.bsp-h5-utility__support {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--bsp-h5-text);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.bsp-h5-utility__support i {
  font-size: 13px;
}

.bsp-h5-utility__support:hover {
  opacity: 0.65;
}

.bsp-h5-utility__switchers {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-left: 16px;
  border-left: 1px solid var(--bsp-h5-border);
}

.bsp-h5-utility__lang,
.bsp-h5-utility__currency,
.bsp-h5-utility__currency-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--bsp-h5-text);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bsp-h5-utility__currency i,
.bsp-h5-utility__currency-label i {
  font-size: 9px;
  opacity: 0.7;
}

.bsp-h5-utility__currency select,
.bsp-h5-utility__currency button,
.bsp-h5-utility__currency a {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* ——— Main row ——— */
.bsp-h5-main {
  background: var(--bsp-h5-bg);
}

.bsp-h5-main__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 88px;
  padding: 18px 0;
}

.bsp-h5-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.bsp-h5-mobile-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--bsp-h5-text);
}

.bsp-h5-search {
  justify-self: start;
  width: min(100%, 320px);
}

.bsp-h5-search__form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border-bottom: 1px solid var(--bsp-h5-border);
  padding-bottom: 8px;
}

.bsp-h5-search__submit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bsp-h5-text);
  cursor: pointer;
}

.bsp-h5-search__input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--bsp-h5-text);
  font-size: 13px;
  line-height: 1.4;
  outline: none;
  box-shadow: none;
}

.bsp-h5-search__input::placeholder {
  color: var(--bsp-h5-muted);
  opacity: 1;
}

.bsp-h5-search .bsp-live-search {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  background: #fff;
  border: 1px solid var(--bsp-h5-border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.bsp-h5-brand {
  justify-self: center;
  text-align: center;
}

.bsp-h5-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.bsp-h5-logo__image img,
.bsp-h5-logo .custom-logo {
  display: block;
  max-height: 48px;
  width: auto;
}

.bsp-h5-logo__title {
  font-family: var(--bsp-h5-font-serif);
  font-size: clamp(1.75rem, 2.4vw, 2.35rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.bsp-h5-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 4px;
}

.bsp-h5-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--bsp-h5-text);
  cursor: pointer;
  text-decoration: none;
  font-size: 17px;
}

.bsp-h5-action:hover {
  opacity: 0.7;
}

.bsp-h5-action__badge {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--bsp-h5-badge);
  color: var(--bsp-h5-badge-text);
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
}

/* ——— Navigation ——— */
.bsp-h5-navbar {
  background: var(--bsp-h5-bg);
  border-bottom: 1px solid var(--bsp-h5-border);
}

.bsp-h5-navbar__inner {
  display: flex;
  justify-content: center;
  min-height: 52px;
}

.bsp-h5-nav {
  width: 100%;
}

.bsp-h5-nav__menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bsp-h5-nav__menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 0;
  color: var(--bsp-h5-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.bsp-h5-nav__menu > li > a:hover {
  opacity: 0.65;
}

.bsp-h5-nav__menu .menu-item-has-children > a::after,
.bsp-h5-nav__menu .bsp-has-mega > a::after,
.bsp-h5-nav__menu .bsp-has-dropdown > a::after {
  content: "";
  width: 0;
  height: 0;
  margin-top: 1px;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.75;
}

.bsp-h5-nav__menu > .menu-item-has-children,
.bsp-h5-nav__menu > .bsp-has-dropdown {
  position: relative;
}

.bsp-h5-nav__menu .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 220px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  background: var(--bsp-h5-bg, #ffffff);
  border: 1px solid var(--bsp-h5-border, #e8e8e8);
  border-radius: 0;
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.12);
  z-index: 90;
}

.bsp-h5-nav__menu .sub-menu .sub-menu {
  top: 0;
  left: 100%;
}

.bsp-h5-nav__menu .sub-menu a {
  display: block;
  padding: 10px 18px;
  color: var(--bsp-h5-text, #111111);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
}

.bsp-h5-nav__menu .sub-menu a:hover,
.bsp-h5-nav__menu .sub-menu a:focus-visible {
  background: #f7f5f2;
  color: var(--bsp-h5-badge, #e11d2e);
}

.bsp-h5-nav .bsp-submenu-toggle {
  display: none;
}

@media (min-width: 992px) {
  .bsp-h5-nav__menu > .menu-item-has-children:not(.bsp-mega-menu-parent):hover > .sub-menu,
  .bsp-h5-nav__menu > .menu-item-has-children:not(.bsp-mega-menu-parent):focus-within > .sub-menu,
  .bsp-h5-nav__menu > .bsp-has-dropdown:not(.bsp-mega-menu-parent):hover > .sub-menu,
  .bsp-h5-nav__menu > .bsp-has-dropdown:not(.bsp-mega-menu-parent):focus-within > .sub-menu,
  .bsp-h5-nav__menu .sub-menu > .menu-item-has-children:hover > .sub-menu,
  .bsp-h5-nav__menu .sub-menu > .menu-item-has-children:focus-within > .sub-menu,
  .bsp-h5-nav__menu .sub-menu > .bsp-has-dropdown:hover > .sub-menu,
  .bsp-h5-nav__menu .sub-menu > .bsp-has-dropdown:focus-within > .sub-menu {
    display: block;
  }
}

/* ——— Responsive ——— */
@media (max-width: 1100px) {
  .bsp-h5-utility__support span {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .bsp-h5-nav__menu {
    gap: 6px 22px;
  }
}

@media (max-width: 991px) {
  .bsp-h5-utility {
    display: none;
  }

  .bsp-h5-main__inner {
    grid-template-columns: auto 1fr auto;
    min-height: 72px;
    padding: 12px 0;
  }

  .bsp-h5-mobile-toggle {
    display: inline-flex;
  }

  .bsp-h5-search {
    display: none;
  }

  .bsp-h5-brand {
    justify-self: center;
  }

  .bsp-h5-navbar {
    display: none;
  }

  .bsp-h5-nav:not(.is-open) {
    display: none;
  }

  .bsp-h5-nav.is-open {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    top: var(--bsp-mobile-nav-top, 72px);
    z-index: 90;
    max-height: calc(100vh - var(--bsp-mobile-nav-top, 72px));
    overflow: auto;
    background: var(--bsp-h5-bg);
    border-top: 1px solid var(--bsp-h5-border);
    padding: 8px 20px 24px;
  }

  body.bsp-mobile-nav-open .bsp-h5-navbar {
    display: block;
  }

  .bsp-h5-nav.is-open .bsp-h5-nav__menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .bsp-h5-nav.is-open .bsp-h5-nav__menu > li {
    width: 100%;
  }

  .bsp-h5-nav.is-open .bsp-h5-nav__menu > li > a {
    padding: 14px 0;
    border-bottom: 1px solid var(--bsp-h5-border);
  }

  .bsp-h5-nav .menu-item-has-children > a::after,
  .bsp-h5-nav .bsp-has-mega > a::after,
  .bsp-h5-nav .bsp-has-dropdown > a::after {
    display: none;
  }

  .bsp-h5-nav .bsp-has-dropdown,
  .bsp-h5-nav .menu-item-has-children,
  .bsp-h5-nav .bsp-mega-menu-parent {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    position: static;
  }

  .bsp-h5-nav .bsp-has-dropdown > a,
  .bsp-h5-nav .menu-item-has-children > a,
  .bsp-h5-nav .bsp-mega-menu-parent > a {
    flex: 1 1 auto;
    min-width: 0;
  }

  .bsp-h5-nav .bsp-submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--bsp-h5-text);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
  }

  .bsp-h5-nav .bsp-submenu-toggle__icon {
    display: block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    transition: transform 0.2s ease;
  }

  .bsp-h5-nav .is-submenu-open > .bsp-submenu-toggle .bsp-submenu-toggle__icon,
  .bsp-h5-nav .is-open > .bsp-submenu-toggle .bsp-submenu-toggle__icon,
  .bsp-h5-nav .bsp-submenu-toggle[aria-expanded="true"] .bsp-submenu-toggle__icon {
    transform: rotate(180deg);
  }

  .bsp-h5-nav__menu .sub-menu {
    position: static;
    display: none;
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 0 8px 14px;
    list-style: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
  }

  .bsp-h5-nav .bsp-has-dropdown.is-submenu-open > .sub-menu,
  .bsp-h5-nav .menu-item-has-children.is-submenu-open > .sub-menu,
  .bsp-h5-nav .bsp-mega-menu-parent.is-open > .bsp-mega-menu {
    display: block;
  }

  .bsp-h5-nav__menu .sub-menu a {
    padding: 10px 0;
    white-space: normal;
    border-bottom: 1px solid var(--bsp-h5-border);
  }

  .bsp-h5-nav__menu .sub-menu a:hover,
  .bsp-h5-nav__menu .sub-menu a:focus-visible {
    background: transparent;
  }

  .bsp-h5-announce__text {
    font-size: 10px;
    letter-spacing: 0.04em;
  }
}

@media (max-width: 575px) {
  .bsp-header--header-5 .bsp-h5-container {
    width: min(100% - 24px, var(--bsp-container, 1600px));
  }

  .bsp-h5-logo__title {
    font-size: 1.35rem;
    letter-spacing: 0.08em;
  }

  .bsp-h5-action {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
}
