/* ================== TABS UI ================== */
.tabs {
  position: relative;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  white-space: nowrap;
  padding: 0 2px 2px;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;

  width: 92px;
  min-width: 92px;
  height: 92px;
  padding: 6px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 24px;
  overflow: visible;
  isolation: isolate;

  background: transparent;
  border: 0;
  cursor: pointer;
  box-shadow: none;

  transition:
    transform 0.18s ease,
    opacity 0.22s ease;
}

.tab::before {
  content: none;
}

.tab:hover,
.tab.is-active {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.tab__icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;

  mix-blend-mode: screen;
  filter: contrast(1.03) brightness(1.06);
  opacity: 0.84;

  transition:
    transform 0.22s ease,
    opacity 0.22s ease,
    filter 0.22s ease;
}

.tab.is-active .tab__icon {
  transform: scale(1.10);
  opacity: 1;
  filter: contrast(1.08) brightness(1.12);
}

.tabs-glider {
  position: absolute;
  top: 6px;
  left: 0;
  height: 88px;
  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,0.05) 0%,
      rgba(255,255,255,0.02) 100%
    ),
    rgba(44, 44, 50, 0.50);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  z-index: 1;
  transition:
    transform 0.45s cubic-bezier(0.25, 1, 0.5, 1),
    width 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 6px 14px rgba(0,0,0,0.14);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ff3b30;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}



@media (min-width: 900px) {
  .tab {
    width: 100px;
    min-width: 100px;
    height: 100px;
    border-radius: 26px;
  }

  .tab__icon {
    width: 86px;
    height: 86px;
  }

  .tabs-glider {
    border-radius: 26px;
  }
}