/* ============================================================
   Limeboom Quick View Modal
   ============================================================ */

/* ── BUTON (ürün kartında) ── */
.lb-quick-view-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 16px;
    background: var(--lb-secondary, #1a1a2e);
    color: #fff;
    border: none;
    font-family: var(--lb-font-heading, sans-serif);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.18s ease;
    z-index: 3;
    white-space: nowrap;
}

.lb-product-card:hover .lb-quick-view-btn {
    transform: translateY(0);
}

.lb-quick-view-btn:hover {
    background: var(--lb-primary, #00C853);
}

.lb-quick-view-btn:focus-visible {
    outline: 2px solid var(--lb-primary, #00C853);
    outline-offset: 2px;
}

/* ── OVERLAY ── */
.lb-qv-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lb-qv-overlay.is-open {
    visibility: visible;
    opacity: 1;
}

/* ── BACKDROP ── */
.lb-qv-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 20, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: zoom-out;
}

/* ── MODAL KUTUSU ── */
.lb-qv-modal {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 960px;
    max-height: calc(100vh - 40px);
    overflow: hidden;
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.22),
        0 8px 24px rgba(0, 0, 0, 0.12);
    transform: scale(0.94) translateY(16px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

.lb-qv-overlay.is-open .lb-qv-modal {
    transform: scale(1) translateY(0);
}

/* ── KAPAT BUTONU ── */
.lb-qv-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.lb-qv-close:hover {
    background: var(--lb-secondary, #1a1a2e);
    border-color: var(--lb-secondary, #1a1a2e);
    color: #fff;
    transform: rotate(90deg);
}

.lb-qv-close:focus-visible {
    outline: 2px solid var(--lb-primary, #00C853);
    outline-offset: 2px;
}

/* ── BODY (içerik wrapper) ── */
.lb-qv-body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--lb-gray-300, #d1d5db) transparent;
}

/* ── SKELETON LOADER ── */
.lb-qv-skeleton {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.lb-qv-skeleton__gallery {
    padding: 28px;
    background: var(--lb-gray-50, #f9fafb);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lb-qv-skeleton__thumbs {
    display: flex;
    gap: 8px;
}

.lb-qv-skeleton__info {
    padding: 32px 28px;
}

.lb-skeleton-box {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: lb-shimmer 1.6s ease infinite;
    border-radius: 6px;
}

.lb-skeleton-box--main {
    aspect-ratio: 1;
    border-radius: 12px;
}

.lb-skeleton-box--thumb {
    width: 68px;
    height: 68px;
    border-radius: 8px;
    flex-shrink: 0;
}

@keyframes lb-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── CONTENT GRID ── */
.lb-qv-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 480px;
}

/* ── GALERİ (sol) ── */
.lb-qv-gallery {
    background: var(--lb-gray-50, #f9fafb);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-right: 1px solid var(--lb-gray-100, #f3f4f6);
}

.lb-qv-gallery__main {
    position: relative;
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
    background: var(--lb-gray-100, #f3f4f6);
    cursor: zoom-in;
    flex-shrink: 0;
}

.lb-qv-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.25s ease, transform 0.5s ease;
}

.lb-qv-main-img:hover {
    transform: scale(1.04);
}

.lb-qv-main-img.is-loading {
    opacity: 0;
}

/* Galeri okları */
.lb-qv-gallery__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lb-secondary, #1a1a2e);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
    opacity: 0;
}

.lb-qv-gallery__main:hover .lb-qv-gallery__arrow {
    opacity: 1;
}

.lb-qv-gallery__arrow:hover {
    background: var(--lb-secondary, #1a1a2e);
    color: #fff;
    border-color: transparent;
}

.lb-qv-gallery__arrow--prev { left: 10px; }
.lb-qv-gallery__arrow--next { right: 10px; }

/* Görsel sayacı */
.lb-qv-gallery__counter {
    position: absolute;
    bottom: 10px;
    right: 12px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    pointer-events: none;
}

/* Thumbnails */
.lb-qv-gallery__thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.lb-qv-gallery__thumbs::-webkit-scrollbar { display: none; }

.lb-qv-thumb {
    width: 64px;
    height: 64px;
    border-radius: 9px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.18s ease;
    padding: 0;
    background: var(--lb-gray-100, #f3f4f6);
}

.lb-qv-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.lb-qv-thumb:hover img { transform: scale(1.08); }

.lb-qv-thumb.is-active {
    border-color: var(--lb-primary, #00C853);
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.15);
}

/* ── BİLGİ (sağ) ── */
.lb-qv-info {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
}

/* Rozetler */
.lb-qv-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    min-height: 0;
}

/* Kategori */
.lb-qv-cat {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--lb-primary, #00C853);
    margin-bottom: 6px;
}

.lb-qv-cat a {
    color: inherit;
    text-decoration: none;
}

.lb-qv-cat a:hover { text-decoration: underline; }

/* Ürün adı */
.lb-qv-name {
    font-family: var(--lb-font-heading, sans-serif);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--lb-secondary, #1a1a2e);
    margin-bottom: 10px;
}

/* Puan */
.lb-qv-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--lb-gray-500, #6b7280);
    min-height: 0;
}

.lb-qv-stars { color: #F59E0B; letter-spacing: -1px; }

/* Fiyat */
.lb-qv-price {
    font-family: var(--lb-font-heading, sans-serif);
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--lb-secondary, #1a1a2e);
    margin-bottom: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--lb-gray-100, #f3f4f6);
    transition: opacity 0.2s ease;
    min-height: 2.2rem;
}

.lb-qv-price.is-updating { opacity: 0.35; }

/* Stok durumu */
.lb-qv-stock {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    min-height: 20px;
}

.lb-qv-stock::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.lb-qv-stock.in-stock {
    color: #16a34a;
}

.lb-qv-stock.in-stock::before {
    background: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
    animation: lb-qv-pulse 2s ease infinite;
}

.lb-qv-stock.out-of-stock {
    color: var(--lb-gray-500, #6b7280);
}

.lb-qv-stock.out-of-stock::before {
    background: var(--lb-gray-400, #9ca3af);
}

@keyframes lb-qv-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15); }
    50%       { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
}

/* Kısa açıklama */
.lb-qv-short-desc {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--lb-gray-600, #4b5563);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── VARYASYONlar ── */
.lb-qv-variations {
    margin-bottom: 20px;
}

.lb-qv-var-group {
    margin-bottom: 14px;
}

.lb-qv-var-label {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 8px;
}

.lb-qv-var-label__name {
    font-size: 12px;
    font-weight: 700;
    color: var(--lb-secondary, #1a1a2e);
}

.lb-qv-var-label__val {
    font-size: 11px;
    color: var(--lb-gray-400, #9ca3af);
    font-weight: 500;
}

.lb-qv-var-label__val:not(:empty)::before {
    content: '—';
    margin-right: 4px;
    opacity: 0.5;
}

.lb-qv-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Renk swatch */
.lb-qv-swatch-color {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    padding: 0;
    position: relative;
}

.lb-qv-swatch-color:hover { transform: scale(1.18); }

.lb-qv-swatch-color.is-active {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--lb-primary, #00C853);
    transform: scale(1.1);
}

.lb-qv-swatch-color.is-unavail {
    opacity: 0.3;
    cursor: not-allowed;
}

.lb-qv-swatch-color.is-unavail::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        transparent calc(50% - 0.5px),
        rgba(180, 20, 20, 0.65) calc(50% - 0.5px),
        rgba(180, 20, 20, 0.65) calc(50% + 0.5px),
        transparent calc(50% + 0.5px)
    );
}

/* Görsel swatch */
.lb-qv-swatch-image {
    width: 40px;
    height: 40px;
    border-radius: 7px;
    border: 2px solid transparent;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.18s ease;
    padding: 0;
    background: none;
}

.lb-qv-swatch-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lb-qv-swatch-image.is-active {
    border-color: var(--lb-primary, #00C853);
    box-shadow: 0 0 0 2px rgba(0, 200, 83, 0.2);
}

/* Buton swatch */
.lb-qv-swatch-btn {
    padding: 6px 14px;
    border-radius: 7px;
    border: 1.5px solid var(--lb-gray-200, #e5e7eb);
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: var(--lb-secondary, #1a1a2e);
    cursor: pointer;
    transition: all 0.18s ease;
    font-family: var(--lb-font-body, sans-serif);
}

.lb-qv-swatch-btn:hover:not(.is-unavail) {
    border-color: var(--lb-secondary, #1a1a2e);
    background: var(--lb-gray-50, #f9fafb);
}

.lb-qv-swatch-btn.is-active {
    border-color: var(--lb-primary, #00C853);
    background: rgba(0, 200, 83, 0.06);
    color: #009624;
    box-shadow: 0 0 0 2px rgba(0, 200, 83, 0.15);
}

.lb-qv-swatch-btn.is-unavail {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* ── AKSIYONLAR ── */
.lb-qv-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
    margin-top: auto;
    padding-top: 8px;
}

.lb-qv-qty {
    flex-shrink: 0;
}

.lb-qv-add-btn {
    flex: 1;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.lb-qv-add-btn:disabled {
    background: var(--lb-gray-200, #e5e7eb) !important;
    color: var(--lb-gray-500, #6b7280) !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.lb-qv-add-btn.is-added {
    background: var(--lb-secondary, #1a1a2e) !important;
}

/* Ripple */
.lb-qv-add-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.lb-qv-add-btn.is-adding::after {
    transform: scaleX(1);
}

/* Detay linki */
.lb-qv-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--lb-gray-500, #6b7280);
    text-decoration: none;
    transition: color 0.15s ease;
    align-self: flex-start;
}

.lb-qv-detail-link:hover {
    color: var(--lb-primary, #00C853);
}

/* ── MOBİL: BOTTOM SHEET ── */
@media (max-width: 768px) {
    .lb-qv-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .lb-qv-modal {
        border-radius: 20px 20px 0 0;
        max-height: 92vh;
        max-width: 100%;
        transform: translateY(100%);
        transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
    }

    .lb-qv-overlay.is-open .lb-qv-modal {
        transform: translateY(0);
    }

    /* Bottom sheet tutma çubuğu */
    .lb-qv-modal::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: var(--lb-gray-200, #e5e7eb);
        border-radius: 2px;
        margin: 12px auto 0;
        flex-shrink: 0;
    }

    .lb-qv-content {
        grid-template-columns: 1fr;
    }

    .lb-qv-gallery {
        border-right: none;
        border-bottom: 1px solid var(--lb-gray-100, #f3f4f6);
        padding: 20px;
    }

    .lb-qv-gallery__main {
        aspect-ratio: 4/3;
    }

    .lb-qv-info {
        padding: 20px;
    }

    .lb-qv-skeleton {
        grid-template-columns: 1fr;
    }

    .lb-qv-name {
        font-size: 1.3rem;
    }

    .lb-qv-price {
        font-size: 1.4rem;
    }

    .lb-qv-close {
        top: 12px;
        right: 12px;
    }
}

/* ── ANIMASYON: Görsel geçişi ── */
@keyframes lb-qv-img-in {
    from { opacity: 0; transform: scale(1.03); }
    to   { opacity: 1; transform: scale(1); }
}

.lb-qv-main-img.is-entering {
    animation: lb-qv-img-in 0.3s ease forwards;
}

/* ── Scroll kilit (body) ── */
body.lb-qv-open {
    overflow: hidden;
    padding-right: var(--lb-scrollbar-width, 0px);
}
