/* ==========================================================================
   Product Quick View Modal (catalog)
   ========================================================================== */

body.product-quick-view-open {
    overflow: hidden;
}

.product-quick-view {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    box-sizing: border-box;
}

.product-quick-view__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}

.product-quick-view__panel {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    max-height: min(90vh, 720px);
    overflow: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
    border: 1px solid #ebebeb;
}

.product-quick-view__close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.product-quick-view__close:hover {
    background: #ff3333;
    color: #fff;
    transform: scale(1.05);
}

.product-quick-view__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 0;
}

.product-quick-view__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.75rem;
    background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
    border-right: 1px solid #f0f0f0;
    min-height: 280px;
}

.product-quick-view__media img {
    display: block;
    max-width: 100%;
    max-height: min(52vh, 360px);
    width: auto;
    height: auto;
    object-fit: contain;
}

.product-quick-view__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #ff3333;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.55rem;
    border-radius: 4px;
    transform: skewX(-12deg);
}

.product-quick-view__body {
    padding: 1.75rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.product-quick-view__meta {
    margin: 0;
    font-size: 0.75rem;
    color: #94a3b8;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
}

.product-quick-view__meta-sep {
    color: #cbd5e1;
}

.product-quick-view__title {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.35;
    font-weight: 700;
    color: #1e293b;
}

.product-quick-view__stock {
    margin-top: 0.15rem;
}

.product-quick-view__prices {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin-top: 0.25rem;
}

.product-quick-view__price--current,
.product-quick-view__price--sale {
    font-size: 1.65rem;
    font-weight: 800;
    color: #1e293b;
}

.product-quick-view__price--sale {
    color: #ff3333;
}

.product-quick-view__price--old {
    font-size: 0.95rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.product-quick-view__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.product-quick-view__cart-btn {
    width: 100%;
    justify-content: center;
    min-height: 46px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.product-quick-view__out-of-stock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 46px;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    font-weight: 600;
    font-size: 0.85rem;
}

.product-quick-view__detail-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.product-quick-view__detail-link:hover {
    color: #ff3333;
}

@media (max-width: 767px) {
    .product-quick-view {
        padding: 0.75rem;
        align-items: flex-end;
    }

    .product-quick-view__panel {
        max-height: 92vh;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .product-quick-view__layout {
        grid-template-columns: 1fr;
    }

    .product-quick-view__media {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        padding: 1.5rem 1.25rem 1rem;
        min-height: 200px;
    }

    .product-quick-view__body {
        padding: 1.25rem 1.1rem 1.1rem;
    }

    .product-quick-view__title {
        font-size: 1.05rem;
    }
}