/* ============================================================
   QUICK VARIANT POPUP — Kategori sayfası ürün kartı içi
   Modern, kullanıcı dostu renk/beden seçimi + sepete ekle
   ============================================================ */

.variant-popup {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.96);
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.25s ease;
}

.variant-popup.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
}

.vp-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 18px 16px 16px;
  gap: 14px;
  position: relative;
}

.vp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 10px;
}

.vp-title {
  font-family: var(--font-primary, 'Playfair Display', serif);
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: 0.02em;
}

.vp-close {
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #999;
  transition: color 0.2s ease, transform 0.2s ease;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.vp-close:hover {
  color: #1a1a1a;
  background: rgba(0, 0, 0, 0.05);
  transform: rotate(90deg);
}

.vp-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vp-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666;
}

/* ── COLOR LIST ── */
.vp-color-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vp-color-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 5px;
  background: #fff;
  border: 1.5px solid #e5e5e5;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  color: #1a1a1a;
  font-family: inherit;
  transition: all 0.2s ease;
  line-height: 1;
}

.vp-color-btn:hover {
  border-color: #1a1a1a;
  transform: translateY(-1px);
}

.vp-color-btn.active {
  border-color: #1a1a1a;
  background: #1a1a1a;
  color: #fff;
}

.vp-color-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.vp-color-name {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

/* ── SIZE LIST ── */
.vp-size-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vp-size-btn {
  min-width: 38px;
  height: 34px;
  padding: 0 10px;
  background: #fff;
  border: 1.5px solid #e5e5e5;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #1a1a1a;
  font-family: inherit;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vp-size-btn:hover:not(.vp-oos) {
  border-color: #1a1a1a;
  transform: translateY(-1px);
}

.vp-size-btn.active {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.vp-size-btn.vp-oos {
  background: #f5f5f5;
  color: #bbb;
  cursor: not-allowed;
  text-decoration: line-through;
  border-color: #eee;
}

/* ── ADD BUTTON ── */
.vp-add-btn {
  margin-top: auto;
  width: 100%;
  padding: 12px 16px;
  background: var(--color-primary, #704831);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
}

.vp-add-btn:not(:disabled):hover {
  background: #1a1a1a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.vp-add-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.7;
}

.vp-add-btn i {
  font-size: 13px;
}

/* ── SCROLL INSIDE POPUP ── */
.vp-inner::-webkit-scrollbar {
  width: 4px;
}

.vp-inner::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .vp-inner {
    padding: 14px 12px 12px;
    gap: 10px;
  }

  .vp-title {
    font-size: 13px;
  }

  .vp-color-name {
    display: none;
  }

  .vp-color-btn {
    padding: 4px;
    border-radius: 50%;
  }

  .vp-color-dot {
    width: 22px;
    height: 22px;
  }

  .vp-size-btn {
    min-width: 32px;
    height: 30px;
    font-size: 11px;
  }

  .vp-add-btn {
    padding: 10px 12px;
    font-size: 11px;
  }
}
