/* ai-variant-selector-generated.css */
/* Brutalist minimalism, monospace utility, flat text grid, zero-ornament */

/* ── Price ───────────────────────────────────────────────────────────── */
.vs-product-price {
  font-family: ui-monospace, 'Courier New', monospace;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--foreground);
  letter-spacing: 0.02em;
}

/* ── Option Label ────────────────────────────────────────────────────── */
.vs-option-label {
  font-family: ui-monospace, 'Courier New', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--foreground);
}

/* ── Option Button Base ──────────────────────────────────────────────── */
.vs-option-btn {
  cursor: pointer;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--foreground);
  font-family: ui-monospace, 'Courier New', monospace;
  transition: border-color 100ms, background 100ms, color 100ms;
  border-radius: 0;
  outline: none;
  position: relative;
}

.vs-option-btn:hover:not(:disabled) {
  background: var(--secondary);
  color: var(--secondary-foreground);
  border-color: var(--secondary);
}

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

/* ── Selected State ──────────────────────────────────────────────────── */
.vs-option-btn--active {
  background: var(--striking);
  color: var(--striking-foreground);
  border-color: var(--striking);
}

.vs-option-btn--active:hover:not(:disabled) {
  background: var(--striking);
  color: var(--striking-foreground);
  border-color: var(--striking);
}

/* ── Disabled / Unavailable State ───────────────────────────────────── */
.vs-option-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
  background: transparent;
  color: var(--foreground);
  border-color: var(--accent);
}

/* ── Image Swatch ────────────────────────────────────────────────────── */
.vs-option-btn[data-swatch-type="image"] {
  padding: 2px;
  width: 44px;
  height: 44px;
}

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

/* ── Color Swatch ────────────────────────────────────────────────────── */
.vs-option-btn[data-swatch-type="color"] {
  padding: 2px;
  width: 36px;
  height: 36px;
}

.vs-swatch-color {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  /* Inline background-color is set by JS/Liquid */
}

/* ── Text Button ─────────────────────────────────────────────────────── */
.vs-option-btn[data-swatch-type="text"] {
  padding: 6px 16px;
  font-size: 13px;
  letter-spacing: 0.04em;
  min-width: 40px;
  text-align: center;
}

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

/* ── 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 10px;
  font-size: 12px;
}

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

/* ── Mobile Adaptation (< 768px) ─────────────────────────────────────── */
@media (max-width: 767px) {
  .vs-product-price {
    font-size: 15px;
    margin-bottom: 12px;
  }

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

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

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

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

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

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

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