/* Language switcher — alineado con carrito y búsqueda */
.nav-holder {
	width: auto;
	min-width: 122px;
}

.nav-holder .align-right {
	width: auto !important;
	min-width: 79px;
}

.nav-holder .icon-list {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	white-space: nowrap;
	padding-top: 8px;
}

.nav-holder .icon-list > li {
	float: none !important;
	margin: 0 0 0 18px !important;
	display: flex;
	align-items: center;
	height: 25px;
	line-height: 25px;
}

.nav-holder .icon-list > li:first-child {
	margin-left: 0 !important;
}

.lang-switch-item {
	position: relative;
	z-index: 5;
}

.lang-switch {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	height: 25px;
}

.lang-switch a {
	font-family: var(--sh-font-body, "Manrope", system-ui, sans-serif);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #666666;
	text-decoration: none;
	padding: 0 3px;
	cursor: pointer;
	line-height: 25px;
	display: inline-block;
}

.lang-switch a.is-active,
.lang-switch a:hover {
	color: #111111;
}

.lang-switch .sep {
	color: #b0b0b0;
	font-size: 11px;
	line-height: 25px;
	pointer-events: none;
}

/* Barra superior oscura: ambos idiomas legibles */
.am-topbar .lang-switch a {
	color: rgba(255, 255, 255, 0.62);
}

.am-topbar .lang-switch a.is-active,
.am-topbar .lang-switch a:hover {
	color: #ffffff;
}

.am-topbar .lang-switch .sep {
	color: rgba(255, 255, 255, 0.45);
}

/* Kinlig Menu: círculo bandera + pastilla (gana a border-radius:0 del shop) */
.sh-lang {
  --sh-lang-bg: #1a1f22;
  --sh-lang-text: #f4f5f6;
  --sh-lang-ring: #111111;
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 40;
}

.sh-lang-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 2.5px;
  margin: 0;
  border: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--sh-lang-ring);
  cursor: pointer;
  line-height: 0;
  -webkit-appearance: none;
  appearance: none;
  flex-shrink: 0;
}

body.kinlig-body .sh-lang-btn,
body.kinlig-body .sh-lang-flag,
body.kinlig-body .sh-lang-flag .km-flag-svg,
body.kinlig-body .sh-lang-btn svg.km-flag-svg {
  border-radius: 50% !important;
}

.sh-lang-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 0;
  overflow: hidden;
  user-select: none;
}

.sh-lang-flag .km-flag-svg,
.sh-lang-btn svg.km-flag-svg {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  flex-shrink: 0;
  object-fit: cover;
}

.sh-lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: auto;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: max-content;
  padding: 5px 6px;
  margin: 0;
  background: var(--sh-lang-bg);
  color: var(--sh-lang-text);
  border: 0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.36s;
  z-index: 50;
}

body.kinlig-body .sh-lang-menu {
  border-radius: 0 !important;
}

.sh-lang.is-open .sh-lang-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.sh-lang-menu[hidden] {
  display: none !important;
}

.sh-lang.is-open .sh-lang-menu[hidden] {
  display: flex !important;
}

.sh-lang-opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 41px;
  min-height: 34px;
  height: 34px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--sh-lang-text);
  font-family: var(--sh-font-body, "Manrope", system-ui, sans-serif);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

body.kinlig-body .sh-lang-opt {
  border-radius: 0 !important;
}

.sh-lang-opt:hover,
.sh-lang-opt:focus-visible {
  background: color-mix(in srgb, var(--sh-lang-text) 14%, transparent);
  outline: none;
}

.sh-lang-opt.is-current,
.sh-lang-opt.is-active {
  background: color-mix(in srgb, var(--sh-lang-text) 18%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .sh-lang-menu {
    transition: none;
  }
}
