.vcs-visual-selector {
  margin: 20px 0;
}

.vcs-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vcs-track {
  overflow: hidden;
  flex: 1;
}

.vcs-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.vcs-mode-slider .vcs-items {
  display: flex;
  gap: 14px;
  padding: 6px 0 12px;
  scroll-snap-type: x mandatory;
}

.vcs-mode-slider .vcs-track {
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  padding-bottom: 4px;
}

.vcs-mode-slider .vcs-item {
  flex: 0 0 170px;
  scroll-snap-align: start;
}

.vcs-nav {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #d4d4d8;
  background: #ffffff;
  color: #111827;
  cursor: pointer;
  position: relative;
  flex: 0 0 auto;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.vcs-nav::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid #111827;
  border-right: 2px solid #111827;
  transform: translate(-50%, -50%) rotate(45deg);
}

.vcs-prev::before {
  transform: translate(-50%, -50%) rotate(225deg);
}

.vcs-nav:hover {
  border-color: #2563eb;
  box-shadow: 0 6px 12px rgba(37, 99, 235, 0.15);
  transform: translateY(-1px);
}

.vcs-mode-grid .vcs-nav {
  display: none;
}

.vcs-item {
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  padding: 12px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  min-height: 100%;
}

.vcs-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.vcs-item.is-active {
  border-color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.2);
  transform: translateY(-2px);
}

.vcs-item.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.vcs-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: #111827;
}

.vcs-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
  width: fit-content;
}

.vcs-backorder {
  background: #fef3c7;
  color: #92400e;
}

.vcs-unavailable {
  background: #fee2e2;
  color: #991b1b;
}

@media (max-width: 768px) {
  .vcs-mode-slider .vcs-item {
    flex: 0 0 150px;
  }

  .vcs-items {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .vcs-nav {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 520px) {
  .vcs-mode-slider .vcs-item {
    flex: 0 0 130px;
  }

  .vcs-items {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .vcs-nav {
    display: none;
  }
}
