/* ai-variant-selector-generated.css
   Tropical Resort Swimwear Theme — Coral Orange + Deep Sea Blue
   Global CSS: no section-id prefix, shared site-wide
   ------------------------------------------------------------ */

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

/* ─── Option label ───────────────────────────────────────────── */
/* display:block / font-weight:600 / margin-bottom:8px are preset */
.vs-option-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--foreground);
  opacity: 0.75;
}

/* ─── Common button base ─────────────────────────────────────── */
.vs-option-btn {
  position: relative;
  cursor: pointer;
  border: 1.5px solid transparent;
  background: transparent;
  border-radius: 6px;
  transition: all 0.2s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

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

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

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

.vs-option-btn[data-swatch-type="image"]:hover {
  border-color: var(--brand);
  box-shadow: 0 2px 8px rgba(232, 96, 60, 0.25);
  transform: translateY(-1px);
}

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

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

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

.vs-option-btn[data-swatch-type="color"]:hover {
  border-color: var(--brand);
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(232, 96, 60, 0.3);
}

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

/* ─── Text button ────────────────────────────────────────────── */
.vs-option-btn[data-swatch-type="text"] {
  padding: 6px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background-color: var(--background);
  color: var(--foreground);
  border: 1.5px solid var(--secondary);
  border-radius: 6px;
  min-width: 42px;
  text-align: center;
}

.vs-option-btn[data-swatch-type="text"]:hover {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border-color: var(--secondary);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(26, 95, 122, 0.2);
}

.vs-option-btn[data-swatch-type="text"].vs-option-btn--active {
  background-color: var(--brand);
  color: var(--brand-foreground);
  border-color: var(--brand);
  box-shadow: 0 3px 12px rgba(232, 96, 60, 0.35);
}

/* ─── Active / selected — all types ─────────────────────────── */
.vs-option-btn--active {
  border-color: var(--brand);
}

/* ─── Unavailable / disabled ─────────────────────────────────── */
.vs-option-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Strikethrough visual cue for text swatches */
.vs-option-btn[data-swatch-type="text"]:disabled {
  text-decoration: line-through;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1.5px;
}

/* ─── 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.35rem;
}

/* ─── QAC modal context — 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;
  min-width: 32px;
}

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

/* ─── Responsive — mobile ────────────────────────────────────── */
@media (max-width: 767px) {
  .vs-product-price {
    font-size: 1rem;
    margin-bottom: 12px;
  }

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

  .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;
    min-width: 36px;
  }

  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;
  }
}