/* Figma Header V1. Presentation only; Dorrin Core retains markup and behavior. */
.dorrin-site-header {
  --dorrin-header-height: 133px;
  height: 133px !important;
  color: #1b2124;
  isolation: isolate;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.dorrin-site-header::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  left: 0;
  height: 101px;
  background: #fff;
}

.dorrin-site-header::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 101px;
  left: 50%;
  width: 300px;
  height: 32px;
  background: #fff;
  clip-path: polygon(0 0, 12.5px 0, 40.5px 100%, 260.5px 100%, 284.5px 0, 100% 0);
  transform: translateX(-50%);
}

.dorrin-site-header.is-scrolled {
  --dorrin-header-height: 133px;
  height: 133px !important;
  background: transparent !important;
  box-shadow: none !important;
}

.dorrin-header-inner {
  max-width: none;
  padding: 0 29px;
  direction: ltr;
  overflow: visible;
}

.dorrin-header-brand {
  top: 8px;
  left: calc(50% - 4px);
  width: 110px;
  height: 112px;
  transform: translateX(-50%) !important;
  background-image:
    url('../images/figma-header-v1/logo-mark.svg'),
    url('../images/figma-header-v1/logo-wordmark.svg'),
    url('../images/figma-header-v1/logo-since.svg');
  background-position: center 1px, center 64px, center 97px;
  background-repeat: no-repeat;
  background-size: 33px 60px, 104px auto, 104px auto;
}

.dorrin-header-brand:hover { transform: translateX(-50%) !important; }
.dorrin-header-brand .dorrin-header-logo,
.dorrin-header-brand .dorrin-header-logo-fallback { display: none !important; }

.dorrin-header-nav {
  position: absolute;
  top: 26px;
  right: 29px;
  display: flex !important;
  align-items: center;
  gap: 46px;
  direction: rtl;
  overflow: visible;
}

.dorrin-nav-link {
  height: 44px;
  gap: 8px;
  color: #1b2124 !important;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.dorrin-nav-link::after { background: #103f42; }
.dorrin-nav-link:hover,
.dorrin-nav-link:focus-visible { color: #103f42 !important; }

.dorrin-nav-link svg { display: none; }
.dorrin-products-trigger::before {
  content: "";
  order: 1;
  width: 14px;
  height: 14px;
  background: url('../images/figma-header-v1/arrow-down.svg') center / 14px 14px no-repeat;
}

.dorrin-products-trigger {
  flex-direction: row;
  direction: ltr;
}

.dorrin-products-trigger > span {
  order: 2;
  direction: rtl;
}

.dorrin-products-menu {
  position: static;
  overflow: visible;
}

.dorrin-mega-menu {
  position: fixed;
  z-index: 100;
  top: 70px;
  right: 0;
  left: 0;
  width: 100vw;
  padding-top: 63px;
  overflow: visible;
}

.dorrin-mega-menu__inner {
  width: calc(100% - 58px);
  max-width: none;
}

body.admin-bar .dorrin-mega-menu { top: 102px; }

.dorrin-header-actions {
  position: absolute;
  top: 28px;
  left: 29px;
  width: 390px;
  height: 46px;
  margin: 0;
  display: block;
}

.dorrin-header-wholesale {
  position: absolute;
  top: 0;
  left: 0;
  height: 44px;
  margin: 0;
  padding: 10px 18px;
  border: 0;
  border-radius: 8px;
  background: #103f42;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.dorrin-header-wholesale::before { display: none; }
.dorrin-header-wholesale:hover,
.dorrin-header-wholesale:focus-visible {
  border: 0;
  background: #0b3c3e;
  box-shadow: 0 4px 12px rgba(16, 63, 66, 0.18);
  transform: translateY(-1px);
}

.dorrin-language {
  position: absolute;
  top: 2px;
  left: 201px;
  height: 42px;
}

.dorrin-language-trigger {
  display: inline-flex !important;
  align-items: center;
  justify-content: space-between;
  width: 82px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 0;
  gap: 10px;
  background: transparent !important;
  color: #1b2124 !important;
  font-family: "Dorrin Pinar", sans-serif;
  font-size: 14px;
  font-weight: 600;
  flex-direction: row;
  direction: ltr;
}

.dorrin-language-trigger::before,
.dorrin-language-trigger::after {
  content: "";
  display: block;
  flex: 0 0 auto;
  background-position: center;
  background-repeat: no-repeat;
}

.dorrin-language-trigger::before {
  order: 1;
  width: 20px;
  height: 20px;
  background-image: url('../images/figma-header-v1/globe.svg');
  background-size: 20px;
}

.dorrin-language-trigger::after {
  order: 3;
  width: 14px;
  height: 14px;
  background-image: url('../images/figma-header-v1/arrow-down.svg');
  background-size: 14px;
}

.dorrin-language-trigger > span { order: 2; }

.dorrin-language-trigger svg { display: none; }
.dorrin-language::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 112px;
  width: 1px;
  height: 33px;
  background: url('../images/figma-header-v1/divider.svg') center / 1px 33px no-repeat;
}

.dorrin-language-menu {
  top: calc(100% + 9px);
  left: -10px;
  z-index: 12;
}

.dorrin-header-icon.dorrin-search-trigger {
  position: absolute;
  top: 4px;
  left: 362px;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: url('../images/figma-header-v1/search.svg') center / 20px 20px no-repeat;
  color: transparent;
  transform: none !important;
}

.dorrin-header-icon.dorrin-search-trigger svg { display: none; }
.dorrin-header-icon.dorrin-search-trigger:hover,
.dorrin-header-icon.dorrin-search-trigger:focus-visible {
  border: 0;
  background-color: transparent;
  opacity: 0.68;
}

@media (max-width: 900px) {
  .dorrin-site-header,
  .dorrin-site-header.is-scrolled {
    --dorrin-header-height: 76px;
    height: 76px !important;
  }

  .dorrin-site-header::after { display: none; }
  .dorrin-site-header::before { height: 76px; }
  .dorrin-header-inner { padding-inline: 20px; }
  .dorrin-header-nav { display: none !important; }
  .dorrin-header-brand {
    top: 6px;
    left: 50%;
    width: 74px;
    height: 66px;
    background-position: center 0, center 37px, center 58px;
    background-size: 20px 37px, 70px auto, 70px auto;
  }

  .dorrin-header-actions {
    position: static;
    width: auto;
    height: auto;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .dorrin-header-icon.dorrin-search-trigger,
  .dorrin-header-icon.dorrin-mobile-menu-trigger {
    position: static;
    width: 36px;
    height: 36px;
  }

  .dorrin-header-icon.dorrin-search-trigger { background-size: 19px; }
  .dorrin-header-icon.dorrin-mobile-menu-trigger {
    color: #103f42;
    background: transparent;
    border: 0;
  }

  .dorrin-header-icon.dorrin-mobile-menu-trigger svg {
    display: block;
    width: 22px;
    height: 22px;
    stroke: currentColor;
  }
}
