.quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.quick-view-modal.active {
    opacity: 1;
    visibility: visible;
}

.quick-view-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.quick-view-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 1000px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1;
}

.quick-view-modal.active .quick-view-content {
    transform: scale(1);
}

.quick-view-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
}

.quick-view-close:hover {
    background: #f5f5f5;
    transform: rotate(90deg) scale(1.1);
}

.quick-view-close svg {
    width: 20px;
    height: 20px;
}

.quick-view-body {
    padding: 40px;
    max-height: 90vh;
    overflow-y: auto;
}

.quick-view-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    gap: 16px;
}

.quick-view-loading .loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top-color: #c1a362;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.quick-view-loading p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.quick-view-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quick-view-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quick-view-main-image {
    width: 100%;
    aspect-ratio: 1 / 1.2;
    overflow: hidden;
    border-radius: 12px;
    background: #f5f5f5;
}

.quick-view-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.quick-view-main-image img:hover {
    transform: scale(1.05);
}

.quick-view-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
}

.quick-view-thumb {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.quick-view-thumb:hover {
    border-color: #c1a362;
    transform: scale(1.05);
}

.quick-view-thumb.active {
    border-color: #c1a362;
    box-shadow: 0 0 0 2px rgba(193, 163, 98, 0.2);
}

.quick-view-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quick-view-title {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

.quick-view-category {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.quick-view-price {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

.price-original {
    text-decoration: line-through;
    color: #999;
    font-size: 20px;
}

.price-discounted {
    color: #e74c3c;
}

.quick-view-description {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

.quick-view-sizes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-view-sizes label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.size-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.size-btn {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.size-btn:hover {
    border-color: #c1a362;
    background: #faf9f7;
}

.size-btn.active {
    border-color: #c1a362;
    background: #c1a362;
    color: white;
}

.quick-view-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.quick-view-btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.quick-view-btn-primary {
    background: #333;
    color: white;
}

.quick-view-btn-primary:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.quick-view-btn-secondary {
    background: transparent;
    color: #333;
    border: 2px solid #333;
}

.quick-view-btn-secondary:hover {
    background: #333;
    color: white;
}

.quick-view-stock {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.quick-view-stock.in-stock {
    color: #10b981;
}

.quick-view-stock.out-of-stock {
    color: #ef4444;
}

.quick-view-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    gap: 20px;
    text-align: center;
}

.quick-view-error svg {
    width: 64px;
    height: 64px;
    color: #ef4444;
}

.quick-view-error p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.error-close-btn {
    padding: 12px 32px;
    background: #333;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.error-close-btn:hover {
    background: #1a1a1a;
}

@media (max-width: 768px) {
    .quick-view-content {
        width: 95%;
        max-height: 95vh;
    }

    .quick-view-body {
        padding: 24px;
    }

    .quick-view-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .quick-view-title {
        font-size: 22px;
    }

    .quick-view-price {
        font-size: 20px;
    }

    .quick-view-actions {
        flex-direction: column;
    }

    .quick-view-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .quick-view-modal,
    .quick-view-content,
    .quick-view-grid {
        animation: none;
        transition: opacity 0.2s;
    }
}

