/* ai-variant-selector-generated.css
   Sports & Active Lifestyle – Hydration / Water Bottles
   Design: Glacial clarity, bold product-hero focus, kinetic minimalism, high-contrast activewear energy
*/

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

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

/* ── Common button base ─────────────────────────────────────────────────── */
.vs-option-btn {
  cursor: pointer;
  border: 1.5px solid transparent;
  background: transparent;
  transition: border-color 0.2s ease, background 0.2s ease,
              color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  position: relative;
  outline: none;
}

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

/* ── Image swatch ───────────────────────────────────────────────────────── */
.vs-option-btn[data-swatch-type="image"] {
  padding: 2px;
  width: 52px;
  height: 52px;
  border-radius: 6px;
  border-color: var(--secondary);
}

.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(--striking);
  box-shadow: 0 0 0 1px var(--striking);
  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"] {
  padding: 3px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border-color: transparent;
}

.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(--striking);
  box-shadow: 0 0 0 1px var(--striking);
  transform: scale(1.08);
}

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

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

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

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

/* ── Selected state (all types) ─────────────────────────────────────────── */
.vs-option-btn--active {
  border-color: currentColor;
}

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

/* Strikethrough overlay for text buttons when disabled */
.vs-option-btn[data-swatch-type="text"]:disabled::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    transparent calc(50% - 0.5px),
    var(--foreground) calc(50% - 0.5px),
    var(--foreground) calc(50% + 0.5px),
    transparent calc(50% + 0.5px)
  );
  opacity: 0.4;
  border-radius: inherit;
  pointer-events: none;
}

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

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: 7px 20px;
  font-size: 0.9375rem;
}

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

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

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

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

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

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

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

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

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

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

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

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