.product-view-link {
    cursor: pointer;
}

.product-quick-view {
    position: fixed;
    z-index: 2100;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.72);
}

.product-quick-view[hidden] {
    display: none;
}

.product-quick-view-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    width: min(100%, 900px);
    max-height: min(90vh, 720px);
    padding: 32px;
    overflow-y: auto;
    border-radius: 12px;
    background: #fff;
}

.product-quick-view-image {
    display: grid;
    min-height: 260px;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f8f8;
}

.product-quick-view-image img {
    display: block;
    width: 100%;
    max-height: 480px;
    object-fit: contain;
}

.product-quick-view-details {
    align-self: center;
    padding: 24px 12px;
}

.product-quick-view-category {
    color: #64748b;
}

.product-quick-view-title {
    margin: 8px 0 16px;
}

.product-quick-view-description {
    color: #64748b;
    line-height: 1.6;
}

.product-quick-view-price {
    margin-top: 20px;
    font-weight: 700;
}

.product-quick-view-close,
.product-quick-view-previous,
.product-quick-view-next {
    position: absolute;
    z-index: 1;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #222;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.16);
    font-size: 24px;
    cursor: pointer;
}

.product-quick-view-close {
    top: 12px;
    right: 12px;
}

.product-quick-view-previous {
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
}

.product-quick-view-next {
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
}

.product-quick-view button:focus-visible {
    outline: 3px solid var(--theme-color, #0baf9a);
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .product-quick-view {
        padding: 12px;
    }

    .product-quick-view-panel {
        grid-template-columns: 1fr;
        gap: 12px;
        max-height: 94vh;
        padding: 56px 18px 20px;
    }

    .product-quick-view-image {
        min-height: 180px;
        max-height: 38vh;
    }

    .product-quick-view-image img {
        max-height: 38vh;
    }

    .product-quick-view-details {
        padding: 8px 0 0;
    }

    .product-quick-view-previous,
    .product-quick-view-next {
        top: 24%;
    }
}
