.purity-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.purity-header.purity-header--panel-open {
  z-index: 230;
}

/* Purity header module */
html.purity-header--locked-root {
  overflow: hidden;
  overflow-x: clip;
  overscroll-behavior: none;
  width: 100%;
  max-width: 100%;
}

html,
body {
  overflow-x: clip;
}

body.purity-header--locked {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  overflow-x: clip;
  touch-action: none;
  overscroll-behavior: none;
}

.purity-header .site-header {
  position: relative;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(233, 227, 216, 0.95);
}

.purity-header .topbar {
  min-height: var(--topbar-height);
  background: #1f5147;
  color: #ffffff;
  border-top: 4px solid #234d43;
  overflow: hidden;
}

.purity-header .topbar__inner,
.purity-header .nav__inner {
  width: var(--container);
  margin: 0 auto;
}

.purity-header .topbar__inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(var(--topbar-height) - 4px);
  padding: 0 56px;
  font-size: 14px;
  font-weight: 700;
}

.purity-header .topbar__slider {
  flex: 1 1 auto;
  min-width: 0;
}

.purity-header .topbar__slide {
  text-align: center;
}

.purity-header .topbar__slider:not(.is-enhanced) .topbar__slide {
  display: none;
}

.purity-header .topbar__slider:not(.is-enhanced) .topbar__slide.is-active,
.purity-header .topbar__slider:not(.is-enhanced) .topbar__slide:first-child,
.purity-header .topbar__slider.slick-initialized .topbar__slide {
  display: block;
}

.purity-header .topbar__slide-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(var(--topbar-height) - 4px);
  width: 100%;
}

.purity-header .topbar__message {
  max-width: 100%;
  padding: 0 12px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.purity-header .slick-track {
  display: flex;
  align-items: center;
}

.purity-header .topbar .slick-list,
.purity-header .topbar .slick-track,
.purity-header .topbar .slick-slide,
.purity-header .topbar .slick-slide > div {
  height: 100%;
}

.purity-header .topbar__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.78;
  transition: background 0.24s ease, opacity 0.24s ease, transform 0.24s ease;
  z-index: 2;
}

.purity-header .topbar__arrow:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-50%) scale(1.04);
}

.purity-header .topbar__arrow:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.68);
  outline-offset: 2px;
  opacity: 1;
}

.purity-header .topbar__arrow svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.purity-header .topbar__arrow--prev {
  left: 8px;
}

.purity-header .topbar__arrow--next {
  right: 8px;
}

.purity-header .nav {
  position: relative;
  background: rgba(255, 255, 255, 0.96);
}

.purity-header .nav__inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.purity-header .logo {
  flex: 0 0 auto;
  font-size: 31px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -1.8px;
  font-style: italic;
}

.purity-header .logo__image {
  display: block;
  max-width: 100%;
  max-height: 54px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.purity-header .logo__text {
  display: inline-block;
}

.purity-header .logo__text--fallback {
  display: none;
}

.purity-header .desktop-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.purity-header .menu {
  display: flex;
  align-items: stretch;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.purity-header .menu__item {
  position: static;
}

.purity-header .menu__item > a,
.purity-header .menu__button {
  position: relative;
  height: var(--header-height);
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: #787878;
  transition: color 0.28s ease, transform 0.28s ease;
}

.purity-header .menu__button::after,
.purity-header .menu__item > a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 26px;
  height: 2px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.purity-header .menu__item:hover > a,
.purity-header .menu__item:hover .menu__button,
.purity-header .menu__item:focus-within > a,
.purity-header .menu__item:focus-within .menu__button,
.purity-header .menu__item--active > a,
.purity-header .menu__item--active .menu__button {
  color: var(--text);
  transform: translateY(-1px);
}

.purity-header .menu__item:hover > a::after,
.purity-header .menu__item:hover .menu__button::after,
.purity-header .menu__item:focus-within > a::after,
.purity-header .menu__item:focus-within .menu__button::after,
.purity-header .menu__item--active > a::after,
.purity-header .menu__item--active .menu__button::after {
  transform: scaleX(1);
}

.purity-header .menu__chevron {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.purity-header .menu__item:hover .menu__chevron,
.purity-header .menu__item:focus-within .menu__chevron {
  transform: rotate(180deg);
}

.purity-header .header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.purity-header .icon-btn,
.purity-header .mobile-toggle {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.24s ease, transform 0.24s ease;
}

.purity-header .icon-btn:hover,
.purity-header .mobile-toggle:hover {
  background: rgba(31, 81, 71, 0.08);
  transform: translateY(-1px);
}

.purity-header .cart-trigger {
  position: relative;
}

.purity-header .cart-trigger__count {
  position: absolute;
  top: 3px;
  right: 1px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 2px #ffffff;
  transform: scale(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.purity-header .cart-trigger.has-count .cart-trigger__count {
  transform: scale(1);
}

.purity-header .icon {
  width: 24px;
  height: 24px;
  stroke: var(--text);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.purity-header .icon-badge {
  position: relative;
}

.purity-header .icon-badge::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 6px;
  height: 6px;
  background: #ef5c47;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #ffffff;
}

.purity-header .dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(18px) scale(0.985);
  transition:
    opacity 0.34s ease,
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.34s ease;
  z-index: 3;
}

.purity-header .menu__item:hover .dropdown,
.purity-header .menu__item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.purity-header .dropdown__shell {
  width: var(--container);
  margin: 0 auto;
  max-height: calc(100vh - var(--header-height) - var(--topbar-height) - 20px);
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(233, 227, 216, 0.95);
  border-top: 0;
  border-radius: 0 0 28px 28px;
  box-shadow: 0 26px 64px rgba(24, 28, 27, 0.16);
}

.purity-header .dropdown__content {
  padding: 38px 34px 40px;
}

.purity-header .dropdown--mega-four .dropdown__content {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) auto;
  gap: 40px;
  align-items: start;
}

.purity-header .dropdown__menus {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 36px;
  align-items: start;
}

.purity-header .dropdown__promos {
  display: grid;
  gap: 20px;
  align-items: start;
}

.purity-header .dropdown__promos--1 {
  grid-template-columns: minmax(280px, 300px);
}

.purity-header .dropdown__promos--2 {
  grid-template-columns: repeat(2, minmax(220px, 240px));
}

.purity-header .dropdown__promos--3 {
  grid-template-columns: repeat(3, minmax(180px, 200px));
  align-items: start;
}

.purity-header .dropdown--simple {
  left: 50%;
  right: auto;
  transform: translate(-50%, 14px);
  width: 270px;
}

.purity-header .menu__item:hover .dropdown--simple,
.purity-header .menu__item:focus-within .dropdown--simple {
  transform: translate(-50%, 0);
}

.purity-header .dropdown--simple .dropdown__shell {
  width: 100%;
  border-radius: 0 0 22px 22px;
  overflow: visible;
}

.purity-header .dropdown--simple .dropdown__content {
  padding: 16px 0;
  position: relative;
}

.purity-header .dropdown--brand-mega .dropdown__content {
  padding: 0 !important;
}

.purity-header .dropdown--brand-mega {
  position: fixed;
  top: calc(var(--topbar-height) + var(--header-height));
  left: 50vw;
  right: auto;
  width: min(calc(100vw - 48px), 1180px);
  transform: translate(-50%, 18px) scale(0.985);
}

.purity-header .menu__item:hover .dropdown--brand-mega,
.purity-header .menu__item:focus-within .dropdown--brand-mega {
  transform: translate(-50%, 0) scale(1);
}

.purity-header .dropdown--brand-mega .dropdown__shell {
  width: 100%;
  overflow: hidden;
}

.purity-header .dropdown--brand-mega .brand-page {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

.purity-header .dropdown--brand-mega .brand-index-box {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 30px 34px 32px;
  background: #ffffff;
  border-radius: 0 0 24px 24px;
  box-shadow: none;
}

.purity-header .dropdown--brand-mega .alphabet-nav {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  gap: 12px 18px;
  width: 100%;
  margin: 0 0 24px;
  padding: 0 0 18px;
  border-bottom: 1px solid #f0f0f0;
}

.purity-header .dropdown--brand-mega .alphabet-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 4px;
  color: #555;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.purity-header .dropdown--brand-mega .alphabet-nav a:hover,
.purity-header .dropdown--brand-mega .alphabet-nav a.active {
  background: #111111;
  color: #ffffff;
}

.purity-header .dropdown--brand-mega .index-scroll-area {
  max-height: min(360px, calc(100vh - var(--header-height) - var(--topbar-height) - 150px));
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 18px;
  scrollbar-gutter: stable;
}

.purity-header .dropdown--brand-mega .index-scroll-area::-webkit-scrollbar {
  width: 5px;
}

.purity-header .dropdown--brand-mega .index-scroll-area::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.purity-header .dropdown--brand-mega .index-scroll-area::-webkit-scrollbar-thumb {
  background: #999999;
  border-radius: 10px;
}

.purity-header .dropdown--brand-mega .index-letter-group {
  margin: 0 0 24px;
}

.purity-header .dropdown--brand-mega .index-letter-group:last-child {
  margin-bottom: 0;
}

.purity-header .dropdown--brand-mega .index-letter-title {
  display: block;
  margin: 0 0 14px;
  color: #111111;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.purity-header .dropdown--brand-mega .text-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px 42px;
}

.purity-header .dropdown--brand-mega .text-grid a {
  min-width: 0;
  color: #555555;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.purity-header .dropdown--brand-mega .text-grid a:hover {
  color: #111111;
  font-weight: 700;
}

.purity-header .brand-mega {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 24px;
}

.purity-header .brand-mega__index {
  display: grid;
  gap: 8px;
  align-content: start;
  max-height: 56vh;
  overflow-y: auto;
  padding-right: 6px;
}

.purity-header .brand-mega__index a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 32px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #4b5057;
  border: 1px solid #ece6d9;
  background: #fff;
  transition: all 0.2s ease;
}

.purity-header .brand-mega__index a:hover,
.purity-header .brand-mega__index a.is-active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.purity-header .brand-mega__group.is-hidden {
  display: none;
}

.purity-header .brand-mega__sections {
  max-height: 56vh;
  overflow-y: auto;
  display: grid;
  gap: 18px;
  padding-right: 8px;
}

.purity-header .brand-mega__group {
  scroll-margin-top: 10px;
}

.purity-header .brand-mega__title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: #21252b;
}

.purity-header .brand-mega__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.purity-header .brand-mega__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #3f444b;
}

.purity-header .brand-mega__logo {
  border: 1px solid #ece6d9;
  border-radius: 10px;
  background: #fff;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.purity-header .brand-mega__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.purity-header .brand-mega__fallback {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  color: var(--brand);
  background: #f5f8f6;
}

.purity-header .brand-mega__name {
  font-size: 12px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.purity-header .dropdown-column__title {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 700;
  color: #25282c;
}

.purity-header .dropdown-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.purity-header .dropdown-column a,
.purity-header .dropdown-simple__link {
  position: relative;
  display: inline-block;
  color: #45484e;
  font-size: 17px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.purity-header .dropdown-column a:hover,
.purity-header .dropdown-simple__link:hover {
  color: var(--brand);
  transform: translateX(3px);
}

.purity-header .promo-card {
  min-height: 258px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  background: #f3eee5;
  transition: transform 0.32s ease, box-shadow 0.32s ease;
}

.purity-header .promo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(31, 81, 71, 0.14);
}

.purity-header .promo-card__link {
  display: block;
  width: 100%;
  height: 100%;
}

.purity-header .promo-card__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.purity-header .dropdown-simple__item {
  position: relative;
}

.purity-header .dropdown-simple__link {
  display: block;
  padding: 13px 28px;
  font-size: 18px;
}

.purity-header .dropdown-simple__link--has-children {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.purity-header .dropdown-simple__chevron {
  color: #81858c;
  font-size: 22px;
  line-height: 1;
}

.purity-header .dropdown-simple__link:hover {
  background: rgba(31, 81, 71, 0.06);
  transform: none;
}

.purity-header .dropdown-simple__submenu {
  position: absolute;
  top: -12px;
  left: calc(100% - 12px);
  min-width: 250px;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(233, 227, 216, 0.95);
  border-radius: 22px;
  box-shadow: 0 26px 64px rgba(24, 28, 27, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(12px);
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
}

.purity-header .dropdown-simple__item:hover .dropdown-simple__submenu,
.purity-header .dropdown-simple__item:focus-within .dropdown-simple__submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.purity-header .dropdown-simple__sublink {
  display: block;
  padding: 12px 24px;
  color: #45484e;
  font-size: 17px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.purity-header .dropdown-simple__sublink:hover {
  background: rgba(31, 81, 71, 0.06);
  color: var(--brand);
  transform: translateX(3px);
}

.purity-header .mobile-toggle,
.purity-header .mobile-nav,
.purity-header #mobile-menu-toggle {
  display: none;
}


.purity-header .search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 32, 38, 0.24);
  backdrop-filter: blur(1.5px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.42s ease, visibility 0.42s ease, backdrop-filter 0.42s ease;
  z-index: 120;
}

.purity-header .search-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.purity-header .search-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(430px, 100%);
  height: 100vh;
  background: rgba(255, 255, 255, 0.985);
  box-shadow: -18px 0 52px rgba(24, 28, 27, 0.12);
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
  z-index: 130;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.purity-header .search-panel.is-open {
  transform: translateX(0);
}

.purity-header .search-panel__header,
.purity-header .search-panel__body {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.34s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.purity-header .search-panel.is-open .search-panel__header,
.purity-header .search-panel.is-open .search-panel__body {
  opacity: 1;
  transform: translateY(0);
}

.purity-header .search-panel.is-open .search-panel__body {
  transition-delay: 0.06s;
}

.purity-header .search-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px 16px 32px;
  border-bottom: 1px solid rgba(233, 227, 216, 0.95);
}

.purity-header .search-panel__title {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  color: #111318;
}

.purity-header .search-panel__close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #f1ede7;
  color: #565a61;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.28s ease, transform 0.28s ease, color 0.28s ease;
}

.purity-header .search-panel__close:hover {
  background: #e8e2d8;
  color: #1f2026;
  transform: rotate(45deg) scale(1.03);
}

.purity-header .search-panel__close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.purity-header .search-panel__body {
  padding: 22px 32px 28px;
  overflow-y: auto;
}

.purity-header .search-form {
  position: relative;
  margin-bottom: 18px;
}

.purity-header .search-form__icon {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  stroke: #1f2026;
  fill: none;
  stroke-width: 1.8;
  pointer-events: none;
}

.purity-header .search-form__input {
  width: 100%;
  height: 64px;
  border-radius: 999px;
  border: 1.5px solid rgba(31, 32, 38, 0.55);
  background: #f6f1e7;
  padding: 0 24px 0 62px;
  font-size: 16px;
  color: #1f2026;
  outline: none;
  transition: border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease, transform 0.28s ease;
}

.purity-header .search-form__input:focus {
  border-color: var(--brand);
  background: #fcfaf5;
  box-shadow: 0 0 0 4px rgba(31, 81, 71, 0.06);
  transform: translateY(-1px);
}

.purity-header .search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(233, 227, 216, 0.95);
}

.purity-header .search-tag {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 16px;
  font-weight: 500;
  color: #2b2e35;
  cursor: pointer;
  transition: color 0.24s ease, transform 0.24s ease, opacity 0.24s ease;
}

.purity-header .search-tag:hover {
  color: var(--brand);
  transform: translateY(-1px);
}

.purity-header .search-panel__suggestions {
  padding-top: 30px;
  position: relative;
}

.purity-header .search-panel__suggestions.is-loading {
  opacity: 0.72;
}

.purity-header .search-panel__suggestions.is-loading::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(31, 81, 71, 0.18);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: purity-search-spin 0.8s linear infinite;
}

.purity-header .search-panel__label {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 800;
  color: #25282c;
}

.purity-header .search-list {
  display: grid;
  gap: 18px;
}

.purity-header .search-smart__status {
  margin-bottom: 16px;
}

.purity-header .search-smart__summary {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #5f646d;
}

.purity-header .search-smart__empty {
  padding: 18px;
  border-radius: 18px;
  background: #f6f1e7;
  border: 1px solid rgba(233, 227, 216, 0.95);
}

.purity-header .search-smart__empty-title,
.purity-header .search-smart__empty-copy {
  margin: 0;
}

.purity-header .search-smart__empty-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e2127;
}

.purity-header .search-smart__empty-copy {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: #5f646d;
}

.purity-header .search-smart__footer {
  margin-top: 18px;
}

.purity-header .search-smart__view-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid var(--brand);
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  transition: background 0.24s ease, color 0.24s ease, transform 0.24s ease;
}

.purity-header .search-smart__view-all:hover {
  background: var(--brand);
  color: #ffffff;
  transform: translateY(-1px);
}

@keyframes purity-search-spin {
  to {
    transform: rotate(360deg);
  }
}

.purity-header .search-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  align-items: center;
  color: inherit;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.purity-header .search-item:hover {
  transform: translateX(4px);
}

.purity-header .search-item__thumb {
  width: 82px;
  height: 106px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #f5f0e7 0%, #efe7d8 100%);
  transition: transform 0.32s ease, box-shadow 0.32s ease;
}

.purity-header .search-item:hover .search-item__thumb {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(24, 28, 27, 0.1);
}

.purity-header .search-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.purity-header .search-item__content {
  display: grid;
  gap: 8px;
}

.purity-header .search-item__title {
  font-size: 16px;
  font-weight: 500;
  color: #1e2127;
}

.purity-header .search-item__price {
  font-size: 16px;
  color: #1f2026;
}

.purity-header .cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 32, 38, 0.24);
  backdrop-filter: blur(1.5px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.42s ease, visibility 0.42s ease, backdrop-filter 0.42s ease;
  z-index: 220;
}

.purity-header .cart-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.purity-header .cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(478px, 100%);
  height: 100vh;
  background: rgba(255, 255, 255, 0.985);
  box-shadow: -18px 0 52px rgba(24, 28, 27, 0.12);
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 230;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.purity-header .cart-panel.is-open {
  transform: translateX(0);
}

.purity-header .cart-panel.is-loading {
  pointer-events: none;
}

.purity-header .cart-panel.is-loading .cart-panel__body,
.purity-header .cart-panel.is-loading .cart-panel__footer {
  opacity: 0.7;
}

.purity-header .cart-panel__header,
.purity-header .cart-panel__body,
.purity-header .cart-panel__footer {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.34s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.purity-header .cart-panel.is-open .cart-panel__header,
.purity-header .cart-panel.is-open .cart-panel__body,
.purity-header .cart-panel.is-open .cart-panel__footer {
  opacity: 1;
  transform: translateY(0);
}

.purity-header .cart-panel.is-open .cart-panel__body {
  transition-delay: 0.05s;
}

.purity-header .cart-panel.is-open .cart-panel__footer {
  transition-delay: 0.1s;
}

.purity-header .cart-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 16px 32px;
  border-bottom: 1px solid rgba(233, 227, 216, 0.95);
}

.purity-header .cart-panel__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #16181d;
}

.purity-header .cart-panel__count {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.purity-header .cart-panel__close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #f1ede7;
  color: #565a61;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.28s ease, transform 0.28s ease, color 0.28s ease;
}

.purity-header .cart-panel__close:hover {
  background: #e8e2d8;
  color: #1f2026;
  transform: rotate(45deg) scale(1.03);
}

.purity-header .cart-panel__close svg,
.purity-header .cart-item__remove svg,
.purity-header .cart-section__icon svg,
.purity-header .cart-checkout__icon svg,
.purity-header .cart-reco__arrow svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.purity-header .cart-panel__body {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px 32px 0;
}

.purity-header .cart-shipping {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.purity-header .cart-shipping__text {
  font-size: 15px;
  color: #373b43;
  text-align: right;
}

.purity-header .cart-shipping__text strong {
  color: #16181d;
}

.purity-header .cart-shipping__track {
  height: 4px;
  border-radius: 999px;
  background: #e4e2de;
  overflow: hidden;
}

.purity-header .cart-shipping__progress {
  display: block;
  width: 80%;
  height: 100%;
  border-radius: inherit;
  background: #2b9a62;
}

.purity-header .cart-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0 18px;
  border-bottom: 1px solid rgba(233, 227, 216, 0.95);
  font-size: 15px;
  color: #45484f;
}

.purity-header .cart-alert__icon {
  font-size: 16px;
  line-height: 1;
}

.purity-header .cart-alert__time {
  color: #e15642;
  font-weight: 700;
}

.purity-header .cart-items {
  display: grid;
}

.purity-header .cart-empty {
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
  gap: 14px;
  min-height: calc(100vh - 240px);
  padding: 28px 12px 18px;
}

.purity-header .cart-empty__media {
  width: 138px;
  height: 138px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.purity-header .cart-empty__media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.purity-header .cart-empty__title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: #16181d;
}

.purity-header .cart-empty__text {
  max-width: 310px;
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #696e77;
}

.purity-header .cart-empty__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  min-width: 188px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: transform 0.24s ease, background 0.24s ease;
}

.purity-header .cart-empty__button:hover {
  background: #173d35;
  transform: translateY(-1px);
}

.purity-header .cart-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(233, 227, 216, 0.95);
}

.purity-header .cart-item__thumb {
  width: 90px;
  height: 120px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #f5f0e7 0%, #efe7d8 100%);
}

.purity-header .cart-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.purity-header .cart-item__variant {
  margin-top: 4px;
  font-size: 13px;
  color: #6f747d;
}

.purity-header .cart-item__content {
  display: grid;
  gap: 12px;
  align-content: start;
}

.purity-header .cart-item__top {
  display: grid;
  gap: 8px;
}

.purity-header .cart-item__title {
  font-size: 16px;
  font-weight: 500;
  color: #1d2026;
}

.purity-header .cart-item__price {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 16px;
  color: #1f2026;
}

.purity-header .cart-item__price strong {
  color: #e15642;
  font-weight: 700;
}

.purity-header .cart-item__price s {
  color: #6d7178;
}

.purity-header .cart-qty {
  display: inline-grid;
  grid-template-columns: 36px minmax(24px, auto) 36px;
  align-items: center;
  width: max-content;
  min-height: 40px;
  border: 1px solid #d7d7d7;
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff;
}

.purity-header .cart-qty button,
.purity-header .cart-qty span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 16px;
  color: #2b2e35;
}

.purity-header .cart-qty button {
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease;
}

.purity-header .cart-qty button:hover {
  background: #f6f2eb;
  color: var(--brand);
}

.purity-header .cart-qty span {
  min-width: 34px;
  font-size: 15px;
  font-weight: 600;
}

.purity-header .cart-item__remove {
  border: 0;
  background: transparent;
  color: #6a6f76;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease;
}

.purity-header .cart-item__remove:hover {
  background: #f5efe6;
  color: #1f2026;
}

.purity-header .cart-recommend {
  padding: 18px 0 2px;
}

.purity-header .cart-recommend__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.purity-header .cart-recommend__title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #1d2026;
}

.purity-header .cart-recommend__nav {
  display: flex;
  gap: 6px;
}

.purity-header .cart-reco__arrow {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #575b62;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease;
}

.purity-header .cart-reco__arrow:hover {
  background: #f3eee7;
  color: #1f2026;
}

.purity-header .cart-recommend__card {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(221, 217, 210, 0.95);
  border-radius: 18px;
  background: #ffffff;
  margin-bottom: 18px;
}

.purity-header .cart-recommend__slider {
  margin: 0 -2px 18px;
}

.purity-header .cart-recommend__slide {
  padding: 0 2px;
}

.purity-header .cart-recommend__slider .slick-list {
  overflow: hidden;
}

.purity-header .cart-recommend__thumb {
  width: 76px;
  height: 90px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #f5f0e7 0%, #efe7d8 100%);
}

.purity-header .cart-recommend__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.purity-header .cart-recommend__info {
  display: grid;
  gap: 8px;
}

.purity-header .cart-recommend__name {
  font-size: 15px;
  font-weight: 500;
  color: #1d2026;
}

.purity-header .cart-recommend__price {
  font-size: 16px;
  color: #1f2026;
}

.purity-header .cart-recommend__add {
  min-width: 70px;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.24s ease, transform 0.24s ease;
}

.purity-header .cart-recommend__add:hover {
  background: #173d35;
  transform: translateY(-1px);
}

.purity-header .cart-recommend__add:disabled {
  background: #9cb9b1;
  cursor: default;
  transform: none;
}

.purity-header .cart-section {
  padding: 18px 0;
  border-top: 1px solid rgba(233, 227, 216, 0.95);
  color: #1f2026;
}

.purity-header .cart-section__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.purity-header .cart-section__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
}

.purity-header .cart-section__icon {
  color: #2c3036;
  display: inline-flex;
  align-items: center;
}

.purity-header .cart-section__plus {
  font-size: 28px;
  line-height: 1;
  color: #1f2026;
  transition: transform 0.28s ease;
}

.purity-header .cart-section.is-open .cart-section__plus {
  transform: rotate(45deg);
}

.purity-header .cart-section__content {
  display: none;
  padding-top: 18px;
}

.purity-header .cart-discount {
  display: grid;
  gap: 16px;
  padding: 16px 18px 18px;
  border-radius: 18px;
  background: #fbf8f2;
  border: 1px solid rgba(233, 227, 216, 0.95);
}

.purity-header .cart-discount__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #474b52;
}

.purity-header .cart-discount__list {
  display: grid;
  gap: 10px;
}

.purity-header .cart-discount__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px dashed rgba(31, 81, 71, 0.28);
}

.purity-header .cart-discount__code {
  font-size: 14px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: 0.08em;
}

.purity-header .cart-discount__meta {
  font-size: 13px;
  color: #666b73;
  text-align: right;
}

.purity-header .cart-discount__banner {
  overflow: hidden;
  border-radius: 16px;
  min-height: 120px;
  background: linear-gradient(135deg, #f5ebd5 0%, #efe3c7 100%);
  position: relative;
  display: grid;
  align-items: end;
}

.purity-header .cart-discount__banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.purity-header .cart-discount__banner-copy {
  position: relative;
  padding: 18px;
  display: grid;
  gap: 6px;
  color: #1c2f2a;
}

.purity-header .cart-discount__banner-copy strong {
  font-size: 18px;
  font-weight: 800;
}

.purity-header .cart-discount__banner-copy span {
  font-size: 14px;
  line-height: 1.5;
}

.purity-header .cart-panel__footer {
  border-top: 1px solid rgba(233, 227, 216, 0.95);
  padding: 18px 20px 30px;
  background: rgba(255, 255, 255, 0.98);
  flex: 0 0 auto;
}

.purity-header .cart-panel__footer-inner {
  padding: 12px 12px 0;
}

.purity-header .cart-total {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 6px;
}

.purity-header .cart-total__label,
.purity-header .cart-total__value {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #111318;
}

.purity-header .cart-note {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.6;
  color: #5f646d;
}

.purity-header .cart-note a {
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
}

.purity-header .cart-actions {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 12px;
}

.purity-header .cart-view,
.purity-header .cart-checkout {
  min-height: 52px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 18px;
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.24s ease, background 0.24s ease, color 0.24s ease, border-color 0.24s ease;
}

.purity-header .cart-view {
  border: 1.5px solid var(--brand);
  background: #ffffff;
  color: var(--brand);
}

.purity-header .cart-checkout {
  border: 0;
  background: var(--brand);
  color: #ffffff;
  gap: 10px;
}

.purity-header .cart-view:hover,
.purity-header .cart-checkout:hover {
  transform: translateY(-1px);
}

.purity-header .cart-checkout:hover {
  background: #173d35;
}

.purity-header .cart-checkout__icon {
  display: inline-flex;
  align-items: center;
  color: currentColor;
}

.purity-header .offers-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 32, 38, 0.24);
  backdrop-filter: blur(1.5px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.42s ease, visibility 0.42s ease, backdrop-filter 0.42s ease;
  z-index: 120;
}

.purity-header .offers-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.purity-header .offers-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(446px, 100%);
  height: 100vh;
  background: rgba(255, 255, 255, 0.985);
  box-shadow: -18px 0 52px rgba(24, 28, 27, 0.12);
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 130;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.purity-header .offers-panel.is-open {
  transform: translateX(0);
}

.purity-header .offers-panel__header,
.purity-header .offers-panel__body {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.34s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.purity-header .offers-panel.is-open .offers-panel__header,
.purity-header .offers-panel.is-open .offers-panel__body {
  opacity: 1;
  transform: translateY(0);
}

.purity-header .offers-panel.is-open .offers-panel__body {
  transition-delay: 0.06s;
}

.purity-header .offers-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 16px 32px;
  border-bottom: 1px solid rgba(233, 227, 216, 0.95);
}

.purity-header .offers-panel__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  color: #16181d;
}

.purity-header .offers-panel__count {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.purity-header .offers-panel__close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #f1ede7;
  color: #565a61;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.28s ease, transform 0.28s ease, color 0.28s ease;
}

.purity-header .offers-panel__close:hover {
  background: #e8e2d8;
  color: #1f2026;
  transform: rotate(45deg) scale(1.03);
}

.purity-header .offers-panel__close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.purity-header .offers-panel__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 18px 30px 26px;
  display: block;
}

.purity-header .offer-card {
  display: block;
  overflow: hidden;
  border-radius: 22px;
  background: #f7f1e7;
  border: 1px solid rgba(230, 222, 210, 0.95);
  box-shadow: 0 14px 30px rgba(24, 28, 27, 0.06);
  margin-bottom: 20px;
}

.purity-header .offer-card__media {
  display: block;
  height: 196px;
  min-height: 196px;
  background: #dcc4b5;
}

.purity-header .offer-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.purity-header .offer-card__content {
  padding: 16px 18px 18px;
  display: block;
  text-align: center;
  overflow: visible;
}

.purity-header .offer-card__content > * + * {
  margin-top: 8px;
}

.purity-header .offer-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  color: #1d2026;
}

.purity-header .offer-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #4d5158;
}

.purity-header .offer-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1.5px solid var(--brand);
  background: transparent;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.24s ease, color 0.24s ease, transform 0.24s ease;
}

.purity-header .offer-card__button:hover {
  background: var(--brand);
  color: #ffffff;
  transform: translateY(-1px);
}


@media (max-width: 1220px) {
  .purity-header .dropdown--mega-four .dropdown__content {
    grid-template-columns: 1fr;
  }

  .purity-header .dropdown--brand-mega .dropdown__shell {
    width: 100%;
  }

  .purity-header .dropdown--brand-mega {
    width: min(calc(100vw - 32px), 1000px);
  }

  .purity-header .dropdown--brand-mega .brand-index-box {
    padding: 26px 28px 30px;
  }

  .purity-header .dropdown--brand-mega .alphabet-nav {
    gap: 10px 14px;
  }

  .purity-header .dropdown--brand-mega .text-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 30px;
  }

  .purity-header .dropdown__menus {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .purity-header .dropdown__promos {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .purity-header .dropdown--simple {
    width: 250px;
  }

  .purity-header .dropdown-simple__submenu {
    left: auto;
    right: calc(100% - 12px);
  }
}

@media (max-width: 980px) {
  .purity-header.purity-header--panel-open .site-header {
    backdrop-filter: none;
  }

  :root {
    --container: min(100% - 32px, 1000px);
    --header-height: 76px;
  }

  .purity-header .desktop-nav {
    display: none;
  }

  .purity-header .header-actions .icon-btn.offers-trigger {
    display: none;
  }

  .purity-header .mobile-toggle {
    display: inline-flex;
  }

  .purity-header #mobile-menu-toggle {
    position: fixed;
    top: -100vh;
    left: -100vw;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
  }

  .purity-header .mobile-nav__overlay {
    display: block;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    background:
      linear-gradient(180deg, rgba(14, 20, 24, 0.26) 0%, rgba(14, 20, 24, 0.52) 100%);
    backdrop-filter: blur(8px) saturate(0.88);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.42s ease, visibility 0.42s ease, backdrop-filter 0.42s ease;
    z-index: 220;
  }

  .purity-header .mobile-nav {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: min(380px, calc(100% - 34px));
    height: 100dvh;
    background: linear-gradient(180deg, #fcf8f1 0%, #fcf8f1 100%);
    border-left: 1px solid rgba(228, 220, 208, 0.92);
    box-shadow: -22px 0 56px rgba(23, 26, 31, 0.14);
    transform: translateX(100%);
    opacity: 0.72;
    transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.42s ease;
    z-index: 221;
    overflow: hidden;
    will-change: transform;
    visibility: hidden;
    pointer-events: none;
  }

  .purity-header #mobile-menu-toggle:checked ~ .mobile-nav {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .purity-header #mobile-menu-toggle:checked ~ .mobile-nav__overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .purity-header .mobile-nav__inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
  }

  .purity-header .mobile-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .purity-header .mobile-list {
    display: grid;
    flex: 1 1 auto;
    gap: 0;
    align-content: start;
    grid-auto-rows: max-content;
    min-height: 0;
    padding: 6px 0 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .purity-header .mobile-item {
    border-bottom: 1px solid rgba(228, 220, 208, 0.76);
  }

  .purity-header .mobile-link,
  .purity-header .mobile-simple__link,
  .purity-header .mobile-submenu__link {
    border: 0;
    appearance: none;
    background: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
  }

  .purity-header .mobile-link,
  .purity-header .mobile-simple__link,
  .purity-header .mobile-submenu__link,
  .purity-header .mobile-summary,
  .purity-header .mobile-subsummary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    font-size: 17px;
    font-weight: 600;
    color: #1f2026;
    transition: background 0.22s ease, color 0.22s ease;
  }

  .purity-header .mobile-nav__header {
    padding: 18px 18px 10px;
  }

  .purity-header .mobile-nav__account {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 24px;
    background:
      radial-gradient(circle at top right, rgba(255, 255, 255, 0.34), transparent 40%),
      linear-gradient(135deg, #1f5147 0%, #1f5147 100%);
    color: #fcf8f1;
    box-shadow: 0 18px 40px rgba(31, 81, 71, 0.18);
  }

  .purity-header .mobile-nav__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
    flex: 0 0 auto;
  }

  .purity-header .mobile-nav__avatar::before,
  .purity-header .mobile-nav__avatar::after {
    content: "";
    position: absolute;
  }

  .purity-header .mobile-nav__avatar {
    position: relative;
  }

  .purity-header .mobile-nav__avatar::before {
    top: 10px;
    left: 10px;
    width: 8px;
    height: 8px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    box-shadow: 12px 0 0 0 #ffffff;
  }

  .purity-header .mobile-nav__avatar::after {
    left: 9px;
    right: 9px;
    bottom: 10px;
    height: 8px;
    border: 2px solid #ffffff;
    border-top: 0;
    border-radius: 0 0 10px 10px;
  }

  .purity-header .mobile-nav__account-copy {
    display: grid;
    gap: 3px;
  }

  .purity-header .mobile-nav__account-copy strong,
  .purity-header .mobile-nav__account-copy span {
    display: block;
    line-height: 1.2;
  }

  .purity-header .mobile-nav__account-copy strong {
    font-size: 16px;
    font-weight: 700;
  }

  .purity-header .mobile-nav__account-copy span {
    font-size: 13px;
    color: #fcf8f1;
  }

  .purity-header .mobile-summary,
  .purity-header .mobile-subsummary {
    list-style: none;
    cursor: pointer;
  }

  .purity-header .mobile-summary::-webkit-details-marker,
  .purity-header .mobile-subsummary::-webkit-details-marker {
    display: none;
  }

  .purity-header .mobile-summary__icon {
    position: relative;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
  }

  .purity-header .mobile-summary__icon::before,
  .purity-header .mobile-summary__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 1.5px;
    background: #1f2026;
    transform: translate(-50%, -50%);
    transition: transform 0.24s ease, opacity 0.24s ease;
  }

  .purity-header .mobile-summary__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
  }

  .purity-header .mobile-details[open] > .mobile-summary .mobile-summary__icon::after,
  .purity-header .mobile-subdetails[open] > .mobile-subsummary .mobile-summary__icon::after {
    opacity: 0;
  }

  .purity-header .mobile-link__chevron {
    position: relative;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
  }

  .purity-header .mobile-link__chevron::before,
  .purity-header .mobile-link__chevron::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 2px;
    width: 8px;
    height: 1.5px;
    background: #1f2026;
    transform-origin: right center;
  }

  .purity-header .mobile-link__chevron::before {
    transform: translateY(-50%) rotate(45deg);
  }

  .purity-header .mobile-link__chevron::after {
    transform: translateY(-50%) rotate(-45deg);
  }

  .purity-header .mobile-dropdown,
  .purity-header .mobile-submenu {
    display: grid;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 0.38s ease, opacity 0.28s ease, transform 0.32s ease, padding 0.28s ease;
  }

  .purity-header .mobile-details[open] > .mobile-dropdown,
  .purity-header .mobile-subdetails[open] > .mobile-submenu {
    max-height: 1200px;
    opacity: 1;
    transform: translateY(0);
  }

  .purity-header .mobile-simple,
  .purity-header .mobile-mega {
    display: grid;
  }

  .purity-header .mobile-simple__link,
  .purity-header .mobile-subsummary,
  .purity-header .mobile-submenu__link {
    padding-left: 34px;
    font-size: 15px;
    font-weight: 500;
    color: #1f2026;
  }

  .purity-header .mobile-link:hover,
  .purity-header .mobile-summary:hover,
  .purity-header .mobile-simple__link:hover,
  .purity-header .mobile-subsummary:hover,
  .purity-header .mobile-submenu__link:hover {
    background: rgba(31, 81, 71, 0.04);
  }

  .purity-header .mobile-subsummary {
    padding-right: 22px;
  }

  .purity-header .mobile-mega {
    gap: 16px;
    padding: 6px 22px 20px;
  }

  .purity-header .mobile-mega__menus {
    display: grid;
    gap: 16px;
  }

  .purity-header .mobile-mega__group {
    display: grid;
    gap: 12px;
  }

  .purity-header .mobile-mega__title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #1f2026;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .purity-header .mobile-mega__links {
    display: grid;
    gap: 10px;
  }

  .purity-header .mobile-mega__link {
    display: block;
    padding: 0 0 0 12px;
    color: #1f2026;
    font-size: 15px;
    border-left: 2px solid rgba(31, 81, 71, 0.14);
    transition: color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
  }

  .purity-header .mobile-mega__link:hover {
    color: var(--brand);
    border-left-color: rgba(31, 81, 71, 0.44);
    transform: translateX(2px);
  }

  .purity-header .mobile-mega__promos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .purity-header .mobile-mega__promo {
    display: block;
    border-radius: 22px;
    overflow: hidden;
    min-height: 136px;
    background: #f3eee5;
    box-shadow: 0 16px 32px rgba(29, 34, 38, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
  }

  .purity-header .mobile-mega__promo:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 38px rgba(29, 34, 38, 0.12);
  }

  .purity-header .mobile-mega__promo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Mobile Brand */
  .purity-header .mobile-brand {
    padding: 6px 22px 20px;
    max-height: 50vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .purity-header .mobile-brand__list {
    display: grid;
    gap: 14px;
  }

  .purity-header .mobile-brand__group {
    display: grid;
    gap: 6px;
  }

  .purity-header .mobile-brand__letter {
    font-size: 15px;
    font-weight: 700;
    color: #21252b;
  }

  .purity-header .mobile-brand__links {
    display: grid;
    gap: 4px;
  }

  .purity-header .mobile-brand__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 14px;
    color: var(--brand);
    transition: opacity 0.2s ease;
  }

  .purity-header .mobile-brand__link::before {
    content: '';
    display: block;
    width: 18px;
    height: 2px;
    background: rgba(31, 81, 71, 0.25);
    flex-shrink: 0;
  }

  .purity-header .mobile-brand__link:hover {
    opacity: 0.7;
  }

  .purity-header .mobile-nav__footer {
    padding: 14px 22px calc(24px + env(safe-area-inset-bottom, 0px));
    margin-top: auto;
    border-top: 1px solid rgba(228, 220, 208, 0.76);
    background: #fcf8f1;
    backdrop-filter: blur(12px);
  }

  .purity-header .mobile-nav__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 104px;
    min-height: 44px;
    border-radius: 999px;
    background: #1f5147;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 14px 28px rgba(31, 81, 71, 0.18);
  }

  .purity-header .search-panel {
    width: min(440px, 100%);
  }

  .purity-header .cart-panel {
    width: min(460px, 100%);
  }

  .purity-header .offers-panel {
    width: min(430px, 100%);
  }
}

@media (max-width: 640px) {
  :root {
    --container: calc(100% - 20px);
  }

  .purity-header .topbar__inner {
    font-size: 12px;
    padding: 10px 18px;
  }

  .purity-header .topbar__slide-inner {
    min-height: auto;
  }

  .purity-header .topbar__message {
    padding: 0 22px;
  }

  .purity-header .topbar__arrow {
    width: 28px;
    height: 28px;
  }

  .purity-header .search-panel {
    width: 100%;
  }

  .purity-header .cart-panel {
    width: 100%;
  }

  .purity-header .offers-panel {
    width: 100%;
  }

  .purity-header .search-panel__header {
    padding: 14px 14px 14px 20px;
  }

  .purity-header .search-panel__body {
    padding: 18px 20px 24px;
  }

  .purity-header .cart-panel__header {
    padding: 14px 14px 14px 20px;
  }

  .purity-header .cart-panel__body {
    padding: 16px 20px 0;
  }

  .purity-header .cart-panel__footer {
    padding: 16px 14px calc(28px + env(safe-area-inset-bottom, 0px));
  }

  .purity-header .cart-panel__footer-inner {
    padding: 10px 6px 0;
  }

  .purity-header .offers-panel__header {
    padding: 14px 14px 14px 20px;
  }

  .purity-header .offers-panel__body {
    padding: 16px 20px 22px;
  }

  .purity-header .offers-panel__title {
    font-size: 18px;
  }

  .purity-header .offer-card__content {
    padding: 15px 16px 17px;
  }

  .purity-header .offer-card__title {
    font-size: 15px;
  }

  .purity-header .offer-card__text {
    font-size: 13px;
  }

  .purity-header .offer-card__button {
    min-height: 42px;
    font-size: 13px;
  }

  .purity-header .search-form__input {
    height: 58px;
    font-size: 15px;
  }

  .purity-header .search-tags {
    gap: 14px 16px;
  }

  .purity-header .search-item {
    grid-template-columns: 72px 1fr;
    gap: 12px;
  }

  .purity-header .search-item__thumb {
    width: 72px;
    height: 94px;
  }

  .purity-header .cart-item {
    grid-template-columns: 76px 1fr auto;
    gap: 12px;
  }

  .purity-header .cart-item__thumb {
    width: 76px;
    height: 100px;
  }

  .purity-header .cart-actions {
    grid-template-columns: 1fr;
  }

  .purity-header .logo {
    font-size: 26px;
  }

  .purity-header .logo__image {
    max-height: 42px;
  }

  .purity-header .header-actions {
    gap: 0;
  }

  .purity-header .icon-btn,
  .purity-header .mobile-toggle {
    width: 40px;
    height: 40px;
  }

  .purity-header .offer-card__media {
    height: 172px;
    min-height: 172px;
  }
}

@media (max-width: 374px) {
  .purity-header .topbar__inner {
    font-size: 11px;
    padding: 8px 8px;
  }

  .purity-header .topbar__message {
    padding: 0 16px;
  }
}

.purity-header .menu__item {
    position: relative;
}
li.menu__item.menu__item--active {
    position: static;
}
