/* ai-variant-selector-generated.css
   Global variant selector CSS for YETOWA — Women's Athleisure & Yoga Wear
   Soft-power minimalism | Urban feminine grace | Breathable editorial warmth
   -----------------------------------------------------------------------
   SCOPE RULE: No #genstore-section-* prefix. This file is loaded globally.
   Do NOT write .qac-* or .ai-card* rules here.
------------------------------------------------------------------- */

/* ─── Price ─────────────────────────────────────────────────────────── */

.vs-product-price {
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  color: var(--foreground);
}

/* ─── Option Label ───────────────────────────────────────────────────── */

.vs-option-label {
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--foreground);
}

/* ─── Common Button Base ─────────────────────────────────────────────── */

.vs-option-btn {
  position: relative;
  cursor: pointer;
  border: 1.5px solid transparent;
  background: transparent;
  border-radius: 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
  outline: none;
  font-family: Arial, sans-serif;
}

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

/* ─── Image Swatch ───────────────────────────────────────────────────── */

.vs-option-btn[data-swatch-type="image"] {
  padding: 2px;
  width: 48px;
  height: 48px;
  border-radius: 6px;
  border-color: var(--brand);
  overflow: hidden;
}

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

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

.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: 32px;
  height: 32px;
  border-radius: 50%;
  border-color: transparent;
}

.vs-option-btn[data-swatch-type="color"]:hover {
  border-color: var(--foreground);
  box-shadow: 0 2px 6px rgba(17, 17, 17, 0.15);
  transform: scale(1.08);
}

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

.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: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--foreground);
  background-color: var(--background);
  border-color: var(--brand);
  border-radius: 3px;
  min-width: 40px;
  text-align: center;
  line-height: 1.4;
}

.vs-option-btn[data-swatch-type="text"]:hover {
  border-color: var(--foreground);
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  box-shadow: 0 2px 6px rgba(17, 17, 17, 0.08);
}

.vs-option-btn[data-swatch-type="text"].vs-option-btn--active {
  background-color: var(--striking);
  color: var(--striking-foreground);
  border-color: var(--striking);
  font-weight: 700;
}

/* ─── Active / Selected State (all types fallback) ───────────────────── */

.vs-option-btn--active {
  border-color: var(--foreground);
}

/* ─── Unavailable / Disabled State ──────────────────────────────────── */

.vs-option-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* Strikethrough decoration for text buttons when disabled */
.vs-option-btn[data-swatch-type="text"]:disabled::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  top: 50%;
  height: 1px;
  background-color: currentColor;
  opacity: 0.6;
  transform: translateY(-50%) rotate(-10deg);
}

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

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

ai-product-detail .vs-option-label {
  font-size: 13px;
}

ai-product-detail .vs-product-price {
  font-size: 22px;
}

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

.qac-product-info .vs-option-btn[data-swatch-type="text"] {
  padding: 4px 10px;
  font-size: 12px;
}

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

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

/* ─── Mobile Adaptation ──────────────────────────────────────────────── */

@media (max-width: 768px) {
  .vs-product-price {
    font-size: 16px;
  }

  .vs-option-label {
    font-size: 11px;
    letter-spacing: 0.1em;
  }

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

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

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

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

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

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

  ai-product-detail .vs-product-price {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .vs-option-btn[data-swatch-type="text"] {
    padding: 4px 10px;
    font-size: 12px;
    min-width: 34px;
  }

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

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