/* ai-variant-selector-generated.css */
/* Deep-space minimal, anodized-hardware precision, electric-accent dark UI */

/* ─────────────────────────────────────────────
   Price display
───────────────────────────────────────────── */
.vs-product-price {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  color: var(--foreground);
}

/* ─────────────────────────────────────────────
   Option label
───────────────────────────────────────────── */
.vs-option-label {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--foreground);
  opacity: 0.7;
}

/* ─────────────────────────────────────────────
   Option button — shared base
───────────────────────────────────────────── */
.vs-option-btn {
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  transition: all 0.2s ease;
  border-radius: 4px;
  color: var(--foreground);
  font-family: "Space Grotesk", "Inter", sans-serif;
  position: relative;
  outline: none;
}

.vs-option-btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ─────────────────────────────────────────────
   Image swatch
───────────────────────────────────────────── */
.vs-option-btn[data-swatch-type="image"] {
  padding: 2px;
  width: 44px;
  height: 44px;
  border-color: rgba(212, 216, 224, 0.15);
  background: var(--accent);
}

.vs-option-btn[data-swatch-type="image"]:hover:not(:disabled) {
  border-color: var(--brand);
  box-shadow: 0 0 6px 1px var(--brand);
}

.vs-swatch-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
}

/* ─────────────────────────────────────────────
   Color swatch
───────────────────────────────────────────── */
.vs-option-btn[data-swatch-type="color"] {
  padding: 3px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border-color: rgba(212, 216, 224, 0.15);
}

.vs-option-btn[data-swatch-type="color"]:hover:not(:disabled) {
  border-color: var(--brand);
  box-shadow: 0 0 6px 1px var(--brand);
}

.vs-swatch-color {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

/* ─────────────────────────────────────────────
   Text button
───────────────────────────────────────────── */
.vs-option-btn[data-swatch-type="text"] {
  padding: 6px 16px;
  font-size: 13px;
  letter-spacing: 0.06em;
  font-weight: 500;
  border-radius: 4px;
  border-color: rgba(212, 216, 224, 0.18);
  background: var(--accent);
  color: var(--accent-foreground);
}

.vs-option-btn[data-swatch-type="text"]:hover:not(:disabled) {
  background: var(--brand);
  color: var(--brand-foreground);
  border-color: var(--brand);
  box-shadow: 0 0 8px 1px var(--brand);
}

/* ─────────────────────────────────────────────
   Selected state
───────────────────────────────────────────── */
.vs-option-btn--active {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand);
}

.vs-option-btn--active[data-swatch-type="text"] {
  background: var(--brand);
  color: var(--brand-foreground);
  border-color: var(--brand);
  box-shadow: 0 0 8px 2px var(--brand);
}

.vs-option-btn--active[data-swatch-type="image"] {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand);
}

.vs-option-btn--active[data-swatch-type="color"] {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand);
}

/* ─────────────────────────────────────────────
   Disabled / unavailable state
───────────────────────────────────────────── */
.vs-option-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.vs-option-btn[data-swatch-type="text"]:disabled {
  background: transparent;
  color: var(--foreground);
  border-color: rgba(212, 216, 224, 0.1);
  /* Strikethrough visual hint via pseudo-element */
}

.vs-option-btn[data-swatch-type="text"]:disabled::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 6px;
  right: 6px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
  transform: translateY(-50%);
}

/* ─────────────────────────────────────────────
   PDP context — more spacious
───────────────────────────────────────────── */
ai-product-detail .vs-option-btn[data-swatch-type="image"] {
  width: 52px;
  height: 52px;
}

ai-product-detail .vs-option-btn[data-swatch-type="color"] {
  width: 40px;
  height: 40px;
}

ai-product-detail .vs-option-btn[data-swatch-type="text"] {
  padding: 8px 20px;
  font-size: 14px;
}

ai-product-detail .vs-product-price {
  font-size: 22px;
}

/* ─────────────────────────────────────────────
   QAC modal context — more compact
───────────────────────────────────────────── */
.qac-product-info .vs-option-btn[data-swatch-type="image"] {
  width: 36px;
  height: 36px;
}

.qac-product-info .vs-option-btn[data-swatch-type="color"] {
  width: 30px;
  height: 30px;
}

.qac-product-info .vs-option-btn[data-swatch-type="text"] {
  padding: 4px 12px;
  font-size: 12px;
}

.qac-product-info .vs-product-price {
  font-size: 15px;
  margin-bottom: 10px;
}

/* ─────────────────────────────────────────────
   Mobile adaptation (≤640px)
───────────────────────────────────────────── */
@media (max-width: 640px) {
  .vs-option-btn[data-swatch-type="image"] {
    width: 38px;
    height: 38px;
  }

  .vs-option-btn[data-swatch-type="color"] {
    width: 32px;
    height: 32px;
  }

  .vs-option-btn[data-swatch-type="text"] {
    padding: 5px 12px;
    font-size: 12px;
  }

  .vs-product-price {
    font-size: 16px;
  }

  .vs-option-label {
    font-size: 10px;
  }
}