/* ai-variant-selector-generated.css
   Global CSS for the ai-variant-selector web component.
   Scope: site-wide (no section ID prefix).
   Design: Stark minimalism — Arctic White base, Charcoal Ink text, Steel Blue CTA accent.
*/

/* =========================================================
   Price
   ========================================================= */
.vs-product-price {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 16px;
  color: var(--foreground);
  font-family: 'Inter', 'DM Sans', sans-serif;
  letter-spacing: -0.01em;
}

/* =========================================================
   Option Label
   ========================================================= */
.vs-option-label {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--foreground);
  font-family: 'Inter', 'DM Sans', sans-serif;
}

/* =========================================================
   Option Button — base
   ========================================================= */
.vs-option-btn {
  cursor: pointer;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--foreground);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease, background 0.18s ease, color 0.18s ease;
  font-family: 'Inter', 'DM Sans', sans-serif;
  position: relative;
  outline: none;
}

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

.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: 2px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

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

/* =========================================================
   Text button
   ========================================================= */
.vs-option-btn[data-swatch-type="text"] {
  padding: 6px 16px;
  font-size: 0.875rem;
  border-radius: 4px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--accent);
}

/* =========================================================
   Hover states
   ========================================================= */
.vs-option-btn[data-swatch-type="text"]:not(:disabled):not(.vs-option-btn--active):hover {
  border-color: var(--foreground);
  background: transparent;
  color: var(--foreground);
}

.vs-option-btn[data-swatch-type="image"]:not(:disabled):not(.vs-option-btn--active):hover {
  border-color: var(--foreground);
  box-shadow: 0 0 0 1px var(--foreground);
}

.vs-option-btn[data-swatch-type="color"]:not(:disabled):not(.vs-option-btn--active):hover {
  border-color: var(--foreground);
  box-shadow: 0 0 0 1px var(--foreground);
}

/* =========================================================
   Selected state — .vs-option-btn--active
   ========================================================= */
.vs-option-btn--active {
  border-color: var(--foreground);
  box-shadow: 0 0 0 1px var(--foreground);
}

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

/* =========================================================
   Disabled / unavailable state
   ========================================================= */
.vs-option-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  border-color: var(--accent);
  box-shadow: none;
}

/* Strikethrough diagonal for text swatches when unavailable */
.vs-option-btn[data-swatch-type="text"]:disabled::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 5%;
  width: 90%;
  height: 1px;
  background: currentColor;
  transform: rotate(-12deg);
  opacity: 0.5;
}

/* =========================================================
   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.9375rem;
}

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: 40px;
  height: 40px;
}

.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: 1rem;
  margin-bottom: 12px;
}

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

/* =========================================================
   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: 42px;
    height: 42px;
  }

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

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

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