/* ai-variant-selector-generated.css
   Design: Luminous botanical softness, premium editorial grace, spa-sanctuary whitespace
   Global scope — no #genstore-section prefix
*/

/* ─────────────────────────────────────────────
   Price display
───────────────────────────────────────────── */
.vs-product-price {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 16px;
  color: var(--foreground);
  letter-spacing: 0.01em;
}

/* ─────────────────────────────────────────────
   Option label
───────────────────────────────────────────── */
.vs-option-label {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--foreground);
  opacity: 0.75;
}

/* ─────────────────────────────────────────────
   Base button — shared across all swatch types
───────────────────────────────────────────── */
.vs-option-btn {
  cursor: pointer;
  border: 1.5px solid transparent;
  background: transparent;
  border-radius: 6px;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, opacity 0.2s ease, transform 0.18s ease;
  outline: none;
  position: relative;
}

.vs-option-btn:focus-visible {
  box-shadow: 0 0 0 3px var(--accent);
}

/* ─────────────────────────────────────────────
   Image swatch
───────────────────────────────────────────── */
.vs-option-btn[data-swatch-type="image"] {
  padding: 2px;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border-color: transparent;
}

.vs-option-btn[data-swatch-type="image"]:hover:not(:disabled) {
  border-color: var(--brand);
  box-shadow: 0 2px 10px 0 rgba(168, 197, 176, 0.35);
  transform: translateY(-1px);
}

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

/* ─────────────────────────────────────────────
   Color swatch
───────────────────────────────────────────── */
.vs-option-btn[data-swatch-type="color"] {
  padding: 3px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border-color: transparent;
}

.vs-option-btn[data-swatch-type="color"]:hover:not(:disabled) {
  border-color: var(--brand);
  box-shadow: 0 2px 8px 0 rgba(168, 197, 176, 0.4);
  transform: scale(1.08);
}

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

/* ─────────────────────────────────────────────
   Text swatch
───────────────────────────────────────────── */
.vs-option-btn[data-swatch-type="text"] {
  padding: 6px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 4px;
  border-color: currentColor;
  color: var(--foreground);
  background: transparent;
  min-width: 40px;
}

.vs-option-btn[data-swatch-type="text"]:hover:not(:disabled) {
  background: var(--secondary);
  color: var(--secondary-foreground);
  border-color: var(--secondary);
  box-shadow: 0 2px 8px 0 rgba(192, 154, 168, 0.2);
  transform: translateY(-1px);
}

/* ─────────────────────────────────────────────
   Selected (active) state — all swatch types
───────────────────────────────────────────── */
.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 2px 12px 0 rgba(168, 197, 176, 0.4);
}

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

.vs-option-btn--active[data-swatch-type="image"] {
  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;
  transform: none !important;
  box-shadow: none !important;
}

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

/* Diagonal line for disabled color swatches */
.vs-option-btn[data-swatch-type="color"]:disabled::after,
.vs-option-btn[data-swatch-type="image"]:disabled::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    transparent 47%,
    rgba(44, 44, 44, 0.35) 47%,
    rgba(44, 44, 44, 0.35) 53%,
    transparent 53%
  );
  border-radius: inherit;
  pointer-events: none;
}

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

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

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

.qac-product-info .vs-option-label {
  font-size: 0.75rem;
}

/* ─────────────────────────────────────────────
   Mobile — breakpoint ≤ 640px
───────────────────────────────────────────── */
@media (max-width: 640px) {
  .vs-product-price {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .vs-option-label {
    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-option-btn[data-swatch-type="text"] {
    padding: 6px 14px;
    font-size: 0.8125rem;
  }
}