[ui-layout=header] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-24) 8%;
}
[ui-layout=header] .links {
  display: flex;
  align-items: center;
  gap: var(--spacing-12);
}
[ui-layout=header] .actions {
  display: flex;
  gap: var(--spacing-12);
}

@media (width > 769px) {
  [ui-layout=header] .menu {
    display: none;
  }
}
@media (width <= 769px) {
  [ui-layout=header] {
    padding-inline: var(--spacing-24);
  }
  [ui-layout=header] .links {
    display: none;
  }
}

[ui-layout=header] .cellxio-menu-trigger {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #e4daef;
  border-radius: 13px;
  background: #f7f2fc;
  color: #4c2275;
}

.cellxio-mobile-menu {
  --menu-surface: #faf7ff;
  --menu-row: #fff;
  --menu-line: #e7def1;
  --menu-ink: #24133a;
  --menu-accent: #673392;
  --menu-gradient: linear-gradient(125deg, #211c68, #542473 65%, #722664);
  position: fixed;
  inset: auto 0 0;
  width: min(100%, 32rem);
  max-width: none;
  max-height: 85vh;
  max-height: 85dvh;
  margin: 0 auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 24px 24px 0 0;
  background: var(--menu-surface);
  color: var(--menu-ink);
  box-shadow: 0 -12px 42px #170c34aa;
}

.cellxio-mobile-menu::backdrop {
  background: #100a24a6;
  backdrop-filter: blur(3px);
}

.cellxio-menu-header,
.cellxio-menu-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cellxio-menu-header {
  justify-content: space-between;
  padding: 15px clamp(14px, 5vw, 24px);
  background: var(--menu-gradient);
  color: #fff;
}

.cellxio-menu-brand img {
  display: block;
  object-fit: contain;
}

.cellxio-menu-brand h2 {
  font-size: 1.125rem;
  font-weight: 700;
}

.cellxio-menu-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid #ffffff80;
  border-radius: 12px;
  background: #ffffff1a;
  color: #fff;
  font-size: 1.625rem;
  line-height: 1;
  cursor: pointer;
}

.cellxio-menu-links {
  display: grid;
  gap: 8px;
  padding: 14px clamp(14px, 5vw, 24px) max(16px, env(safe-area-inset-bottom));
}

.cellxio-menu-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 8px 14px;
  border: 1px solid var(--menu-line);
  border-radius: 12px;
  background: var(--menu-row);
  color: var(--menu-ink);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
}

.cellxio-menu-links a:hover {
  border-color: var(--menu-accent);
}

.cellxio-menu-links .cellxio-menu-order {
  border-color: transparent;
  background: var(--menu-gradient);
  color: #fff;
}

.cellxio-menu-arrow {
  flex: none;
  width: 8px;
  height: 8px;
  margin-inline-end: 3px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.cellxio-mobile-menu:dir(rtl) .cellxio-menu-arrow {
  transform: rotate(-135deg);
}

.cellxio-mobile-menu :is(button, a):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -4px;
}

body:has(.cellxio-home #theme:checked) .cellxio-mobile-menu {
  --menu-surface: #171128;
  --menu-row: #241936;
  --menu-line: #4a3662;
  --menu-ink: #f5edff;
  --menu-accent: #d4a4fb;
}

[ui-layout=header].cellxio-site-header {
  --header-gradient: linear-gradient(115deg, #221b70, #542274 72%, #6d2469);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  padding: 8px max(14px, calc((100% - 1120px) / 2));
  background: var(--header-gradient);
  color: #fff;
  border-bottom: 1px solid #ffffff2e;
}

.cellxio-site-header .cellxio-header-brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
}

.cellxio-header-brand img {
  display: block;
  width: 68px;
  height: 47px;
  object-fit: contain;
}

.cellxio-site-header .links a {
  color: #fff;
}

.cellxio-site-header .actions {
  align-items: center;
  gap: 8px;
}

.cellxio-site-header :is(.cellxio-menu-trigger, .cellxio-header-cart-guest, [popovertarget=search], .cart-drawer > button:first-child) {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #ffffff55;
  border-radius: 12px;
  background: #ffffff18;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 769px) {
  [ui-layout=header].cellxio-site-header {
    grid-template-columns: 96px minmax(0, 1fr) 96px;
    gap: 4px;
  }

  .cellxio-site-header .cellxio-header-brand {
    justify-self: center;
  }

  .cellxio-site-header .actions {
    justify-self: end;
  }

  .cellxio-site-header .actions > [data-cellxio-shop-question]:not(.cellxio-header-cart-guest) {
    display: none;
  }
}

.cellxio-site-header :is(.cellxio-header-cart-guest, .cart-drawer > button:first-child) {
  border-color: #ffd1ee;
  background: #fff1fb;
  color: #61154d;
  box-shadow: 0 2px 8px #1b0e4b45;
}

.cellxio-language { position: relative; }
.cellxio-language summary {
  display: flex;
  align-items: center;
  gap: 3px;
  min-height: 44px;
  padding: 0 6px;
  border: 1px solid #ffffff55;
  border-radius: 12px;
  background: #ffffff18;
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
}
.cellxio-language summary::-webkit-details-marker { display: none; }
.cellxio-language summary::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-inline-start: 2px;
  border-inline-end: 1px solid currentColor;
  border-block-end: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.cellxio-language-options {
  position: absolute;
  z-index: 20;
  inset-inline-end: 0;
  inset-block-start: calc(100% + 6px);
  min-width: 135px;
  padding: 5px;
  border: 1px solid #e5dbef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px #21143633;
}
.cellxio-language-options a {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 7px;
  padding: 6px 10px;
  color: #211436;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}
.cellxio-language-options a:is(:hover, :focus-visible) {
  color: #542274;
  background: #f4eafb;
  font-weight: 700;
}
@media (max-width: 769px) {
  [ui-layout=header].cellxio-site-header { grid-template-columns: auto minmax(0, 1fr) auto; }
  .cellxio-site-header .actions { gap: 5px; }
  .cellxio-language summary { gap: 2px; padding-inline: 4px; font-size: 12px; }
}
