/**
 * Hoshanli Jeweler — Quick View Modal
 */

/* ====== Kart butonu ====== */
.hoshanli-qv-btn {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.96);
    color: #1f2937;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, background .2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.hoshanli-qv-btn svg {
    flex-shrink: 0;
}

li.product:hover .hoshanli-qv-btn,
.products .product:hover .hoshanli-qv-btn {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.hoshanli-qv-btn:hover {
    background: #d4af37;
    color: #1a1a1a;
    border-color: #d4af37;
}

.hoshanli-qv-btn:focus-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

/* Mobilde hover yok — her zaman görünür */
@media (hover: none) {
    .hoshanli-qv-btn {
        opacity: 0;
        pointer-events: none;
    }
}

/* ====== Modal ====== */
.hoshanli-qv-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hoshanli-qv-modal[aria-hidden="false"] {
    display: flex;
    animation: hoshanli-fade-in .2s ease;
}

@keyframes hoshanli-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.hoshanli-qv-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hoshanli-qv-dialog {
    position: relative;
    width: 100%;
    max-width: 920px;
    max-height: 92vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: hoshanli-pop-in .25s ease;
}

@keyframes hoshanli-pop-in {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

.hoshanli-qv-close {
    position: absolute;
    top: 10px;
    right: 14px;
    z-index: 2;
    width: 36px;
    height: 36px;
    padding: 0;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    color: #1f2937;
    font-size: 26px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.hoshanli-qv-close:hover {
    background: #f3f4f6;
}

.hoshanli-qv-body {
    overflow-y: auto;
    max-height: 92vh;
}

.hoshanli-qv-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 80px 20px;
    color: #6b7280;
}

.hoshanli-qv-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e5e7eb;
    border-top-color: #d4af37;
    border-radius: 50%;
    animation: hoshanli-spin .8s linear infinite;
}

@keyframes hoshanli-spin {
    to { transform: rotate(360deg); }
}

/* ====== Modal İçerik ====== */
.hoshanli-qv-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
}

.hoshanli-qv-gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hoshanli-qv-main-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
}

.hoshanli-qv-main-image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1;
    object-fit: cover;
}

.hoshanli-qv-thumbs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hoshanli-qv-thumb {
    width: 58px;
    height: 58px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .15s ease;
    background: #fafafa;
}

.hoshanli-qv-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hoshanli-qv-thumb.is-active {
    border-color: #d4af37;
}

.hoshanli-qv-thumb:hover {
    border-color: #f1d27a;
}

/* Summary */
.hoshanli-qv-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hoshanli-qv-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.3;
    color: #1f2937;
    font-weight: 600;
}

.hoshanli-qv-sku {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.hoshanli-qv-sku strong {
    color: #1f2937;
    font-weight: 600;
}

.hoshanli-qv-meta {
    list-style: none;
    padding: 14px;
    margin: 0;
    background: #fdf6e3;
    border: 1px solid #e8dcb0;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    font-size: 13px;
    color: #1f2937;
}

.hoshanli-qv-meta li {
    margin: 0;
}

.hoshanli-qv-meta strong {
    color: #b8941f;
    font-weight: 600;
    margin-right: 4px;
}

.hoshanli-qv-price {
    font-size: 24px;
    font-weight: 700;
    color: #b8941f;
    margin: 4px 0;
}

.hoshanli-qv-price del {
    color: #9ca3af;
    font-size: 17px;
    font-weight: 400;
    margin-right: 8px;
}

.hoshanli-qv-price ins {
    text-decoration: none;
}

.hoshanli-qv-price--consult {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    background: rgba(184, 148, 31, .08);
    border: 1px solid rgba(184, 148, 31, .18);
    border-radius: 999px;
    color: #7a5b0a;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1.2;
}

.hoshanli-qv-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
}

.hoshanli-qv-excerpt p { margin: 0 0 8px; }

.hoshanli-qv-cart {
    margin-top: 8px;
}

.hoshanli-qv-form {
    display: flex;
    align-items: stretch;
    gap: 10px;
    flex-wrap: wrap;
}

.hoshanli-qv-form .quantity {
    flex-shrink: 0;
}

.hoshanli-qv-form .quantity input {
    width: 72px;
    padding: 10px;
    text-align: center;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
}

.hoshanli-qv-form .single_add_to_cart_button,
.hoshanli-qv-cart .button {
    flex: 1;
    min-width: 160px;
    padding: 11px 20px;
    background: #d4af37;
    color: #1a1a1a;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.hoshanli-qv-form .single_add_to_cart_button:hover,
.hoshanli-qv-cart .button:hover {
    background: #b8941f;
    color: #1a1a1a;
}

.hoshanli-qv-cart .hoshanli-qv-wa {
    background: transparent;
    color: #1f7a3a;
    border: 1px solid rgba(31, 122, 58, .34);
}

.hoshanli-qv-cart .hoshanli-qv-wa:hover {
    background: #1f7a3a;
    color: #fff;
}

.hoshanli-qv-details-link {
    margin: 4px 0 0;
    font-size: 13px;
}

.hoshanli-qv-details-link a {
    color: #b8941f;
    text-decoration: none;
    font-weight: 600;
}

.hoshanli-qv-details-link a:hover {
    text-decoration: underline;
}

.hoshanli-qv-error {
    padding: 40px 20px;
    text-align: center;
    color: #dc2626;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .hoshanli-qv-content {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 20px;
    }
    .hoshanli-qv-title {
        font-size: 19px;
    }
    .hoshanli-qv-price {
        font-size: 20px;
    }
    .hoshanli-qv-meta {
        grid-template-columns: 1fr;
    }
}

/* Body scroll lock */
body.hoshanli-qv-open {
    overflow: hidden;
}
