/* ==========================================================================
   ARAS WEB PAZARYERİ - ALT ÜRÜN & VARYANT (RENK / BEDEN) SİSTEMİ CSS
   Ürün listeleme kartlarında detay sayfasına girmeden alt ürünlerin
   gösterimi, görsel değişimi ve anında varyantlı sepete ekleme stilleri
   ========================================================================== */

.product-card-variants-wrapper {
    margin: 0.6rem 0 0.8rem 0;
    padding: 0.6rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.product-card:hover .product-card-variants-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(5, 217, 232, 0.25);
}

.variant-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.variant-row-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-secondary, #94a3b8);
    font-weight: 500;
}

.variant-row-label .v-title {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #cbd5e1;
}

.variant-row-label .v-title i {
    font-size: 0.7rem;
    color: var(--accent-cyan, #05d9e8);
}

.variant-row-label .v-selected-name,
.variant-row-label .v-selected-size {
    color: var(--accent-cyan, #05d9e8);
    font-weight: 700;
    letter-spacing: 0.3px;
    font-size: 0.73rem;
}

/* Renk Noktaları (Color Swatches) */
.variant-swatches-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.variant-swatch-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    padding: 0;
    cursor: pointer;
    position: relative;
    outline: none;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.variant-swatch-dot:hover {
    transform: scale(1.22);
    border-color: #ffffff;
    box-shadow: 0 0 10px rgba(5, 217, 232, 0.6);
}

.variant-swatch-dot.active {
    transform: scale(1.2);
    border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(5, 217, 232, 0.9), 0 0 12px var(--accent-cyan, #05d9e8);
}

.variant-swatch-dot.is-light {
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3), 0 2px 5px rgba(0, 0, 0, 0.4);
}

.variant-swatch-dot.is-light.active {
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(5, 217, 232, 0.9), 0 0 12px var(--accent-cyan, #05d9e8);
}

/* Beden / Numara Rozetleri (Size Chips) */
.variant-sizes-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.variant-size-chip {
    min-width: 28px;
    height: 24px;
    padding: 2px 7px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #e2e8f0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    outline: none;
    user-select: none;
}

.variant-size-chip:hover {
    background: rgba(5, 217, 232, 0.12);
    border-color: var(--accent-cyan, #05d9e8);
    color: #ffffff;
    transform: translateY(-1px);
}

.variant-size-chip.active {
    background: linear-gradient(135deg, rgba(5, 217, 232, 0.3), rgba(0, 255, 136, 0.2));
    border-color: var(--accent-cyan, #05d9e8);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(5, 217, 232, 0.45);
    font-weight: 800;
}

/* "+X Renk / Beden" Rozeti */
.variant-more-pill {
    font-size: 0.68rem;
    color: var(--accent-cyan, #05d9e8);
    background: rgba(5, 217, 232, 0.1);
    border: 1px solid rgba(5, 217, 232, 0.25);
    padding: 2px 6px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s ease;
}

.variant-more-pill:hover {
    background: var(--accent-cyan, #05d9e8);
    color: #000000;
    box-shadow: 0 0 10px var(--accent-cyan, #05d9e8);
}

/* Ürün Görseli Yumuşak Değişim Efekti */
.product-card .product-image {
    transition: opacity 0.22s ease-in-out, transform 0.3s ease;
}

.product-card .product-image.switching {
    opacity: 0.35;
    transform: scale(0.97);
}

/* Hızlı Alt Ürün & Varyant İnceleme Çekmecesi (Quick View Modal) */
.quick-variant-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-variant-modal-backdrop.active {
    display: flex;
    opacity: 1;
}

.quick-variant-modal-card {
    background: #0f1422;
    border: 1px solid rgba(5, 217, 232, 0.3);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(5, 217, 232, 0.2);
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    animation: modalPopIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPopIn {
    from {
        transform: scale(0.92) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.quick-variant-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s;
    z-index: 10;
}

.quick-variant-modal-close:hover {
    background: #ff2a6d;
    border-color: #ff2a6d;
    box-shadow: 0 0 15px #ff2a6d;
}

@media (max-width: 768px) {
    .quick-variant-modal-card {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.2rem;
    }
}
