.catalog-switch {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 544px;
  max-width: 100%;
  padding: 6px;
  gap: 0;
  border-radius: 20px;
  border: 1px solid #cdd8df;
  background: linear-gradient(180deg, #eaf0f46b, #ffffff8c);
  box-shadow:
    inset 0 1px 3px #1d3e580c,
    0 1px 0 #fff;
  height: 80px;
  --x: 0;
  --light-x: 18%;
}
.lens {
  position: absolute;
  z-index: -1;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: calc((100% - 12px) / 2);
  border-radius: 14px;
  transform: translateX(calc(var(--x) * 100%));
  transition: transform 420ms var(--ease);
  background: linear-gradient(145deg, #f5fcff 0%, #e3f0f7 42%, #d2e6f1 100%);
  box-shadow:
    inset 0 2px 2px #fff,
    inset 1px 0 1px #ffffffbf,
    inset 0 -2px 3px #779cb247,
    0 4px 8px #183c5318,
    0 1px 2px #173d4e1a;
  overflow: hidden;
  border: 1px solid #a9c6d7;
}
.lens:before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(112deg, transparent 0%, #fff8 23%, #fff1 45%, transparent 62%);
  opacity: 0.55;
  transform: translateX(-8%);
  transition:
    transform 480ms var(--ease),
    opacity 400ms var(--ease);
}
.lens:after {
  content: '';
  position: absolute;
  inset: 2px;
  border: 1px solid #ffffff8c;
  border-radius: 11px;
  pointer-events: none;
}
.catalog-switch[data-mode='oem'] {
  --x: 1;
}
.catalog-switch[data-mode='oem'] .lens:before {
  transform: translateX(16%);
  opacity: 0.85;
}
.catalog-switch a {
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #586d7c;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
  padding: 0 16px;
  transition:
    color 260ms var(--ease),
    transform 160ms var(--ease);
  min-width: 0;
  white-space: nowrap;
}
.catalog-switch a[data-selected='true'] {
  color: #153b56;
}
.catalog-switch a:active {
  transform: scale(0.98);
}
.catalog-switch a:hover {
  color: #12324a;
}
.catalog-switch svg {
  width: 23px;
  height: 23px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.catalog-switch a {
  position: relative;
  --icon-size: 23px;
  --label-gap: 12px;
}
.catalog-switch a svg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: transform 420ms var(--ease);
  z-index: 2;
}
.catalog-switch a[data-selected='true'] svg {
  transform: translate(calc(-50% - (var(--label-width, 140px) + var(--label-gap)) / 2), -50%);
}
.particle-label {
  position: absolute;
  left: calc(50% + (var(--icon-size) + var(--label-gap)) / 2);
  top: 50%;
  transform: translate(-50%, -50%);
  line-height: 1.25;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}
.catalog-switch a[data-selected='true'] .particle-label {
  visibility: visible;
  opacity: 1;
}
.catalog-switch a.assembling .particle-label {
  opacity: 0;
}
.particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border-radius: inherit;
}
.compact a {
  --icon-size: 18px;
  --label-gap: 7px;
}
.transfer-canvas {
  z-index: 4;
  border-radius: inherit;
  overflow: visible;
}
/* Clear gel: colourless centre, rounded optical rim, restrained contact shadow. */
.catalog-switch {
  background: linear-gradient(180deg, rgba(188, 206, 217, 0.17), rgba(255, 255, 255, 0.06));
  border-color: rgba(121, 150, 168, 0.17);
  box-shadow:
    inset 0 1px 3px #35566d0b,
    0 1px 0 #fff;
  border-radius: 28px;
}
.lens {
  border-radius: 23px;
  border: 1px solid rgba(134, 166, 186, 0.5);
  background: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.05),
    rgba(217, 239, 249, 0.015) 50%,
    rgba(181, 217, 234, 0.07)
  );
  backdrop-filter: var(--gel-optics, saturate(1.08)) saturate(1.08);
  box-shadow:
    0 5px 8px -5px #173e5266,
    0 1px 2px #14394e24,
    inset 0 2px 1px #fffffff2,
    inset 2px 0 2px #ffffffb3,
    inset -2px 0 3px #88acbf2e,
    inset 0 -3px 2px #557c9454,
    inset 0 -6px 5px #b4d3e12e;
  overflow: visible;
  transition:
    transform 420ms var(--ease),
    scale 220ms cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.lens::before {
  inset: 3px 4px auto;
  height: 46%;
  border-radius: 50% 50% 36% 36% / 22% 22% 78% 78%;
  background: linear-gradient(180deg, #ffffffb8, transparent 56%);
  border-top: 1px solid #fff;
  opacity: 0.85;
  transform: none;
}
.catalog-switch[data-mode='oem'] .lens::before {
  transform: none;
  opacity: 0.85;
}
.lens::after {
  inset: 3px;
  border-radius: 20px;
  border: 1px solid transparent;
  border-bottom-color: #ffffffeb;
  border-left-color: #ffffffa6;
  border-right-color: #c6dfec6b;
  background: none;
  box-shadow: inset 0 -1px 1px #ffffffcc;
}
.gel-sheen,
.gel-caustic {
  display: none;
  position: absolute;
  pointer-events: none;
}
.gel-sheen {
  display: block;
  inset: 6px 8px;
  border-radius: 18px;
  background: linear-gradient(
    115deg,
    transparent 15%,
    #ffffff50 23%,
    #ffffff0d 31%,
    transparent 42%,
    transparent 72%,
    #ffffff30 79%,
    transparent 86%
  );
}
.gel-caustic {
  display: block;
  left: 12%;
  right: 12%;
  bottom: -5px;
  height: 3px;
  border-radius: 50%;
  background: linear-gradient(
    90deg,
    transparent,
    #b4def580 24%,
    #fffffff2 55%,
    #c5e4f280 75%,
    transparent
  );
  filter: blur(0.6px);
}
.compact {
  border-radius: 22px;
}
.compact .lens {
  border-radius: 17px;
}
.compact .lens::after {
  border-radius: 14px;
}
@media (max-width: 640px) {
  .catalog-switch {
    border-radius: 24px;
  }
  .lens {
    border-radius: 19px;
  }
  .lens::after {
    border-radius: 16px;
  }
  .compact {
    border-radius: 22px;
  }
  .compact .lens {
    border-radius: 17px;
  }
  .compact .lens::after {
    border-radius: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lens {
    transition: none !important;
  }
}

.catalog-tabs {
  padding: 10px 28px;
  display: block;
}
.catalog-switch {
  --ease: cubic-bezier(0.22, 0.8, 0.25, 1);
  width: 400px;
  height: 52px;
  padding: 4px;
}
.catalog-switch .lens {
  left: 4px;
  top: 4px;
  bottom: 4px;
  width: calc((100% - 8px) / 2);
  z-index: 0;
}
.catalog-switch a {
  position: relative;
  z-index: 1;
  text-decoration: none;
  padding: 0 8px;
  border: 0 !important;
  font-size: 13px;
  --icon-size: 18px;
  --label-gap: 7px;
}
.catalog-switch a svg {
  width: 18px;
  height: 18px;
}
.catalog-switch a:focus-visible {
  outline: 2px solid #467c9d;
  outline-offset: 2px;
}
.catalog-switch:not(:has([data-selected])) .lens {
  display: none;
}
.catalog-switch:not(:has([data-selected])) a span {
  visibility: visible;
  opacity: 1;
  position: static;
  transform: none;
}
.catalog-switch.single-mode {
  grid-template-columns: 1fr;
  width: 240px;
}
.catalog-switch.single-mode .lens {
  width: calc(100% - 8px);
  transform: none;
}
.catalog-switch.single-mode a span {
  position: static;
  visibility: visible;
  opacity: 1;
  transform: none;
}
.catalog-switch.single-mode a svg {
  position: static;
  transform: none;
}
@media (max-width: 640px) {
  .catalog-tabs {
    padding: 10px 16px;
  }
  .catalog-switch {
    width: 100%;
    height: 52px;
  }
  .catalog-switch a {
    font-size: 11px;
    --icon-size: 17px;
    --label-gap: 5px;
  }
  .catalog-switch a svg {
    width: 17px;
    height: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-switch * {
    transition: none !important;
    animation: none !important;
  }
}
.catalog-switch:not(:has([data-selected])) a svg {
  position: static;
  transform: none;
}
