/* ============================================
   ZP Variation Cards — zpshop.vip
   Varyasyon dropdown → alt alta kartlar
   ============================================ */

/* Kartlar aktifken WooCommerce'in yerel varyasyon tablosunu (etiket+dropdown+Temizle) KESİN gizle */
.zpvc-active .variations_form .variations,
.zpvc-active table.variations,
.zpvc-active .variations_form .reset_variations {
    display: none !important;
}

.zpvc {
    margin: 0 0 22px;
    font-family: 'Inter', -apple-system, sans-serif;
}

.zpvc-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #9a9a9a;
    margin-bottom: 14px;
}

.zpvc-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* --- KART --- */
.zpvc-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    text-align: left;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.025);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.22s, background 0.22s, box-shadow 0.22s;
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    line-height: 1.3;
}

.zpvc-card:hover:not(.is-oos):not(.is-selected) {
    transform: translateY(-2px);
    border-color: rgba(254, 1, 0, 0.35);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.zpvc-card.is-selected {
    border-color: #FE0100;
    background: rgba(254, 1, 0, 0.14);
    box-shadow: 0 0 0 2px #FE0100 inset, 0 10px 32px rgba(254, 1, 0, 0.28);
    transform: translateY(-1px);
}

.zpvc-name {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

/* Seçili kartta ✓ rozeti */
.zpvc-card.is-selected .zpvc-name::before {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #FE0100 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
    box-shadow: 0 2px 8px rgba(254, 1, 0, 0.5);
}

/* --- FİYAT ROZETİ --- */
.zpvc-price {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;
    padding: 6px 13px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    transition: background 0.22s, border-color 0.22s, color 0.22s;
}

.zpvc-card.is-selected .zpvc-price {
    background: linear-gradient(135deg, #FE0100, #c40000);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 3px 12px rgba(254, 1, 0, 0.3);
}

/* WooCommerce price_html içindeki span'ları sadeleştir */
.zpvc-price .price,
.zpvc-price .amount,
.zpvc-price .woocommerce-Price-amount {
    color: inherit !important;
    font-weight: 700 !important;
    font-size: inherit !important;
    background: none !important;
}
.zpvc-price del { opacity: 0.5; font-weight: 500; margin-right: 4px; }
.zpvc-price ins { text-decoration: none; }

/* --- STOK YOK --- */
.zpvc-card.is-oos {
    cursor: not-allowed;
    opacity: 0.55;
    background: rgba(255, 255, 255, 0.012);
    border-style: dashed;
}
.zpvc-card.is-oos .zpvc-name { color: #8a8a8a; }

.zpvc-oos {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #d06060;
    background: rgba(254, 1, 0, 0.08);
    border: 1px solid rgba(254, 1, 0, 0.22);
    border-radius: 9px;
    padding: 6px 13px;
    white-space: nowrap;
}

/* --- FOCUS (erişilebilirlik) --- */
.zpvc-card:focus-visible {
    outline: none;
    border-color: #FE0100;
    box-shadow: 0 0 0 2px rgba(254, 1, 0, 0.35);
}

@media (max-width: 480px) {
    .zpvc-card { padding: 14px 16px; }
    .zpvc-name { font-size: 0.98rem; }
}
