/* ai-variant-selector-generated.css
   Digital Music / Artist Merchandise — "Don The Hitmaker"
   Midnight velvet darkness · Gold-foil luxury · Royal Purple depth
   Phase 2 Color Contract v1 — global scope, no section prefix
*/

/* ─── Price ─────────────────────────────────────────────────── */
.vs-product-price {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 16px;
  color: var(--brand-foreground);
  letter-spacing: 0.04em;
  font-family: 'Barlow Condensed', 'Bebas Neue', sans-serif;
}

/* ─── Option Label ──────────────────────────────────────────── */
.vs-option-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--foreground);
  font-family: 'Barlow Condensed', 'Bebas Neue', sans-serif;
  opacity: 0.85;
}

/* ─── Option Button — Base ──────────────────────────────────── */
.vs-option-btn {
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
  outline: none;
  position: relative;
  color: var(--foreground);
}

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

/* ─── Image Swatch ──────────────────────────────────────────── */
.vs-option-btn[data-swatch-type="image"] {
  padding: 2px;
  width: 48px;
  height: 48px;
  border-radius: 6px;
  border-color: rgba(201, 168, 76, 0.2);
}

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

.vs-option-btn[data-swatch-type="image"]:hover:not(:disabled) {
  border-color: var(--brand-foreground);
  box-shadow: 0 0 8px rgba(201, 168, 76, 0.45);
}

/* ─── Color Swatch ──────────────────────────────────────────── */
.vs-option-btn[data-swatch-type="color"] {
  padding: 2px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border-color: rgba(201, 168, 76, 0.2);
}

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

.vs-option-btn[data-swatch-type="color"]:hover:not(:disabled) {
  border-color: var(--brand-foreground);
  box-shadow: 0 0 8px rgba(201, 168, 76, 0.45);
}

/* ─── Text Button ───────────────────────────────────────────── */
.vs-option-btn[data-swatch-type="text"] {
  padding: 6px 16px;
  font-size: 0.8125rem;
  font-family: 'Barlow Condensed', 'Bebas Neue', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 4px;
  border-color: rgba(201, 168, 76, 0.25);
  color: var(--foreground);
  background: transparent;
}

.vs-option-btn[data-swatch-type="text"]:hover:not(:disabled) {
  background: var(--secondary);
  color: var(--secondary-foreground);
  border-color: var(--brand-foreground);
  box-shadow: 0 0 6px rgba(201, 168, 76, 0.3);
}

/* ─── Active / Selected State ───────────────────────────────── */
.vs-option-btn--active {
  border-color: var(--brand-foreground);
  box-shadow: 0 0 0 1px var(--brand-foreground), 0 0 12px rgba(201, 168, 76, 0.5);
}

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

/* ─── Disabled / Unavailable State ─────────────────────────── */
.vs-option-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

.vs-option-btn:disabled[data-swatch-type="text"] {
  text-decoration: line-through;
  text-decoration-color: currentColor;
}

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

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: 0.875rem;
}

ai-product-detail .vs-product-price {
  font-size: 1.375rem;
}

/* ─── 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: 28px;
  height: 28px;
}

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

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

/* ─── Mobile Adaptation ─────────────────────────────────────── */
@media (max-width: 640px) {
  .vs-product-price {
    font-size: 1rem;
  }

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

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

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

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

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

  ai-product-detail .vs-product-price {
    font-size: 1.125rem;
  }
}