/* Быстрый просмотр товара (задача №60) */

.catalog-main-items-b .catalog-item-b {
    position: relative;
}

.quick-view-btn {
    position: absolute;
    bottom: 8px;
    left: 8px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
    color: #4f4f4f;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
    z-index: 3;
}

.quick-view-btn:hover {
    color: #2d7a12;
    border-color: #399918;
}

.catalog-main-items-b:hover .quick-view-btn {
    opacity: 1;
    pointer-events: auto;
}

@media (hover: none) {
    .quick-view-btn {
        opacity: 1;
        pointer-events: auto;
    }
}

.qv-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.qv-panel {
    background: #fff;
    border-radius: 16px;
    width: min(880px, 94vw);
    max-height: 92dvh;
    overflow-y: auto;
    position: relative;
    padding: 28px;
}

.qv-close {
    position: absolute;
    top: 8px;
    right: 14px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #989aab;
    cursor: pointer;
    z-index: 2;
}

.qv-layout {
    display: flex;
    gap: 24px;
}

.qv-media {
    width: 340px;
    flex-shrink: 0;
}

.qv-main img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fff;
}

.qv-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.qv-thumb {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    opacity: .65;
    cursor: pointer;
    background: #fff;
}

.qv-thumb:hover {
    opacity: 1;
}

.qv-thumb.active {
    opacity: 1;
    border-color: #399918;
    box-shadow: 0 0 0 1px #399918;
}

.qv-specs {
    margin: 0 0 12px;
}

.qv-specs p {
    margin: 0 0 6px;
    font-size: 14px;
    color: #1e1e1e;
}

.qv-specs p span {
    color: #4f4f4f;
    font-weight: 600;
}

.qv-info {
    flex: 1;
    min-width: 0;
}

.qv-code {
    color: #989aab;
    font-size: 13px;
    margin: 8px 0 4px;
}

.qv-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px;
}

.qv-more {
    display: inline-block;
    margin-top: 14px;
    color: #2d7a12;
}

.qv-delivery {
    color: #777;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 12px;
}

.qv-loading {
    text-align: center;
    color: #777;
    padding: 40px 0;
    margin: 0;
}

@media (max-width: 700px) {
    .qv-layout {
        flex-direction: column;
    }

    .qv-media {
        width: 100%;
    }

    .qv-panel {
        padding: 20px;
    }
}

.qv-info .stopm-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 10px;
    position: static;
}

.qv-info .stopm-only {
    position: static;
    margin: 0;
}

.qv-chars,
.qv-descr {
    margin-top: 22px;
}

.qv-block-title {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 10px;
    color: #1e1e1e;
}

.qv-chars-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.qv-chars-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.qv-chars-table .qv-chars-name {
    width: 210px;
    color: #4f4f4f;
}

.qv-descr-text {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.55;
    color: #333;
}

.qv-descr-text p {
    margin: 0 0 8px;
}
