/* Quick View Modal + Urun Karti "+" Butonu (Faz 2) */

/* Urun karti uzerinde "+" butonu */
.ps-product { position: relative; }

.ps-product__quick-add {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1.5px solid #1a1a1a;
    background: #fff;
    color: #1a1a1a;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
    z-index: 50;
    padding: 0;
    pointer-events: auto;
}
.ps-product__quick-add:hover {
    background: #1a1a1a;
    color: #fff;
    transform: scale(1.06);
}
.ps-product__quick-add:focus { outline: none; }
.ps-product__quick-add i { pointer-events: none; }

@media (max-width: 575px) {
    .ps-product__quick-add { width: 38px; height: 38px; font-size: 16px; bottom: 8px; right: 8px; }
}

/* Modal overlay */
.qv-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20, 20, 20, 0.55);
    z-index: 9998;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.qv-overlay.is-open { display: flex; }

/* Modal kutusu */
.qv-modal {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 880px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: qvIn 0.22s ease;
}
@keyframes qvIn {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.qv-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid #e5e5e5;
    background: #fff;
    color: #1a1a1a;
    cursor: pointer;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    padding: 0;
}
.qv-close:hover { background: #f5f5f5; }

.qv-content { padding: 30px; min-height: 200px; }

.qv-loading {
    text-align: center;
    padding: 60px 0;
    font-size: 32px;
    color: #999;
}

.qv-error {
    text-align: center;
    padding: 40px 20px;
    color: #c00;
}

/* Modal grid: sol gorsel, sag bilgi */
.qv-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    align-items: flex-start;
}

.qv-img {
    background: #f8f7f3;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qv-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.qv-body { padding-right: 8px; }

.qv-title {
    font-size: 26px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    line-height: 1.25;
    font-family: Georgia, 'Times New Roman', serif;
}

.qv-price {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 22px 0;
}

.qv-out {
    color: #999;
    font-size: 16px;
    padding: 12px 0;
}

.qv-variant-group { margin-bottom: 18px; }

.qv-variant-label {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
    font-weight: 500;
}

.qv-variant-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.qv-variant {
    min-width: 60px;
    padding: 8px 16px;
    border: 1.5px solid #d8d8d8;
    border-radius: 999px;
    background: #fff;
    color: #1a1a1a;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.qv-variant:hover { border-color: #1a1a1a; }
.qv-variant.is-selected {
    border-color: #1a1a1a;
    background: #1a1a1a;
    color: #fff;
}
.qv-variant.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}
.qv-variant.is-disabled:hover { border-color: #d8d8d8; }

.qv-actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    align-items: stretch;
}

.qv-qty {
    display: flex;
    align-items: center;
    border: 1.5px solid #d8d8d8;
    border-radius: 999px;
    overflow: hidden;
    height: 50px;
    flex: 0 0 auto;
}
.qv-qty__btn {
    width: 38px;
    height: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    color: #1a1a1a;
    line-height: 1;
}
.qv-qty__btn:hover { background: #f5f5f5; }
.qv-qty__input {
    width: 44px;
    height: 100%;
    border: 0;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    background: transparent;
    -moz-appearance: textfield;
}
.qv-qty__input::-webkit-outer-spin-button,
.qv-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.qv-add-btn {
    flex: 1;
    height: 50px;
    border: 0;
    border-radius: 999px;
    background: #1a1a1a;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.15s ease;
}
.qv-add-btn:hover { background: #333; }
.qv-add-btn:disabled { background: #999; cursor: not-allowed; }

.qv-full-link {
    display: inline-block;
    margin-top: 16px;
    text-decoration: underline;
    color: #555;
    font-size: 13px;
}
.qv-full-link:hover { color: #1a1a1a; }

/* Mobil */
@media (max-width: 767px) {
    .qv-overlay { padding: 0; align-items: flex-end; }
    .qv-modal {
        border-radius: 16px 16px 0 0;
        max-height: 95vh;
        animation: qvSlideUp 0.25s ease;
    }
    @keyframes qvSlideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
    .qv-content { padding: 20px; }
    .qv-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .qv-img { aspect-ratio: 4 / 3; }
    .qv-title { font-size: 22px; }
    .qv-price { font-size: 20px; margin-bottom: 16px; }
    .qv-actions { flex-wrap: wrap; }
    .qv-add-btn { font-size: 13px; }
}
