/* Galaxy Pollution Control — Product category dock (homepage + hub pages) */

.gpc-dock {
  position: relative;
  z-index: 20;
  background: linear-gradient(180deg, #0a1628 0%, #0f1d32 100%);
  border-bottom: 1px solid rgba(0, 196, 232, 0.2);
  box-shadow: 0 12px 40px rgba(10, 22, 40, 0.35);
}

.gpc-dock::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #00c4e8 20%, #5eead4 50%, #00c4e8 80%, transparent);
  opacity: 0.9;
}

.gpc-dock-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px clamp(16px, 3vw, 32px) 16px;
}

.gpc-dock-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.gpc-dock-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 10px 14px;
  text-decoration: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1), border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.gpc-dock-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 50% 120%, rgba(0, 196, 232, 0.35), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gpc-dock-item:hover,
.gpc-dock-item.is-active {
  transform: translateY(-4px);
  border-color: rgba(0, 196, 232, 0.45);
  background: rgba(0, 196, 232, 0.08);
  box-shadow: 0 16px 36px rgba(0, 196, 232, 0.18);
}

.gpc-dock-item:hover .gpc-dock-glow,
.gpc-dock-item.is-active .gpc-dock-glow {
  opacity: 1;
}

.gpc-dock-icon {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #00c4e8;
  background: linear-gradient(145deg, rgba(0, 196, 232, 0.18), rgba(0, 163, 204, 0.08));
  border: 1px solid rgba(0, 196, 232, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gpc-dock-item:hover .gpc-dock-icon,
.gpc-dock-item.is-active .gpc-dock-icon {
  transform: scale(1.06);
  box-shadow: 0 0 24px rgba(0, 196, 232, 0.35);
}

.gpc-dock-name {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  color: #f1f5f9;
  letter-spacing: 0.01em;
}

.gpc-dock-item.is-active .gpc-dock-name {
  color: #fff;
}

.gpc-dock--sticky {
  position: sticky;
  top: 96px;
  z-index: 1025;
}

@media (max-width: 991.98px) {
  .gpc-dock-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 8px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .gpc-dock-track::-webkit-scrollbar {
    display: none;
  }

  .gpc-dock-item {
    flex: 0 0 118px;
    scroll-snap-align: start;
    padding: 14px 8px 12px;
  }

  .gpc-dock-icon {
    width: 42px;
    height: 42px;
    font-size: 17px;
  }

  .gpc-dock-name {
    font-size: 11px;
  }
}

@media (max-width: 575.98px) {
  .gpc-dock-inner {
    padding-top: 14px;
    padding-bottom: 16px;
  }

  .gpc-dock-label {
    font-size: 10px;
    margin-bottom: 10px;
  }

  .gpc-dock-item {
    flex: 0 0 108px;
  }
}
