/* Quick View Button on Product Card */
.product-image {
    position: relative;
}

.product-image .quick-view-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.product-image .quick-view-btn:hover {
    transform: scale(1.2);
}

.product-image .quick-view-btn svg {
    stroke: var(--color-text, #333);
}

/* Quick View Modal Overlay */
.qv-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.qv-overlay.qv-visible {
    opacity: 1;
}

/* Quick View Modal */
.qv-modal {
    background: #fff;
    border-radius: 14px;
    max-width: 920px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.25s ease;
}

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

.qv-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    font-size: 20px;
    line-height: 1;
    color: #333;
    transition: background 0.2s ease;
}

.qv-close:hover {
    background: rgba(0, 0, 0, 0.12);
}

/* Loading State */
.qv-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    font-size: 14px;
    color: #999;
}

.qv-loading::after {
    content: '';
    width: 28px;
    height: 28px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--color-accent, #A0415E);
    border-radius: 50%;
    animation: qv-spin 0.6s linear infinite;
    margin-left: 10px;
}

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

/* Quick View Body */
.qv-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

/* Gallery */
.qv-gallery {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qv-main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
}

.qv-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.qv-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.qv-thumb {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.qv-thumb.qv-thumb-active {
    border-color: var(--color-accent, #A0415E);
    opacity: 1;
}

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

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

/* Info Panel */
.qv-info {
    padding: 32px 32px 32px 8px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

.qv-title {
    font-size: 22px;
    line-height: 1.2;
    margin: 0;
}

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

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

.qv-price {
    font-size: 20px;
    font-weight: 600;
}

.qv-price del {
    opacity: 0.5;
    font-weight: 400;
}

.qv-price ins {
    text-decoration: none;
    color: var(--color-accent, #A0415E);
}

.qv-stock {
    font-size: 13px;
}

.qv-out-of-stock {
    color: #dc2626;
}

.qv-low-stock {
    color: #f59e0b;
}

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

.qv-description {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.85;
    max-height: 100px;
    overflow-y: auto;
}

/* Variations */
.qv-variations {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qv-variation-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.qv-variation-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    outline: none;
    appearance: auto;
}

.qv-variation-group select:focus {
    border-color: var(--color-accent, #A0415E);
    box-shadow: 0 0 0 3px rgba(108, 22, 48, 0.1);
}

/* Quantity + Add to Cart */
.qv-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 8px;
}

.qv-quantity {
    display: flex;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.qv-qty-btn {
    width: 36px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    transition: background 0.15s ease;
}

.qv-qty-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.qv-qty-input {
    width: 44px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 14px;
    outline: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

.qv-qty-input::-webkit-outer-spin-button,
.qv-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qv-add-to-cart {
    flex: 1;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--color-accent, #A0415E);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qv-add-to-cart:hover {
    opacity: 0.9;
}

.qv-add-to-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.qv-add-to-cart.qv-adding {
    pointer-events: none;
}

.qv-view-full {
    display: block;
    text-align: center;
    font-size: 13px;
    color: var(--color-text, #333);
    opacity: 0.7;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.qv-view-full:hover {
    opacity: 1;
}

/* Tabs */
.qv-tabs {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0 24px 24px;
}

.qv-tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.qv-tab-btn {
    padding: 12px 18px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text, #333);
    opacity: 0.6;
    transition: opacity 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.qv-tab-btn:hover {
    opacity: 1;
}

.qv-tab-btn.qv-tab-active {
    opacity: 1;
    border-bottom-color: var(--color-accent, #A0415E);
}

.qv-tab-panel {
    display: none;
    padding: 16px 0 0;
    font-size: 14px;
    line-height: 1.65;
    max-height: 200px;
    overflow-y: auto;
}

.qv-tab-panel.qv-tab-panel-active {
    display: block;
}

.qv-tab-panel p {
    margin: 0 0 10px;
}

.qv-tab-panel .specifications-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .qv-overlay {
        padding: 10px;
        align-items: flex-end;
    }

    .qv-modal {
        max-height: 92vh;
        border-radius: 14px 14px 0 0;
    }

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

    .qv-gallery {
        padding: 16px 16px 8px;
    }

    .qv-main-image {
        aspect-ratio: 4 / 3;
    }

    .qv-info {
        padding: 8px 16px 24px;
    }

    .qv-title {
        font-size: 18px;
    }

    .qv-price {
        font-size: 18px;
    }

    .qv-tabs {
        padding: 0 16px 16px;
    }

    .qv-tabs-nav {
        overflow-x: auto;
    }

    .qv-tab-btn {
        padding: 10px 14px;
        font-size: 12px;
    }

}
