/**
 * Produktschnellansicht Styles
 */

/* Modal */
.quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-view-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.quick-view-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 10;
}

.quick-view-content {
    position: relative;
    padding: 2rem;
    overflow-y: auto;
    max-height: 90vh;
}

.quick-view-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    background-color: #f3f4f6;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.2s ease;
}

.quick-view-close:hover {
    background-color: var(--accent-color);
    color: white;
}

.quick-view-close svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Loading */
.quick-view-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 15;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

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

/* Produktinhalt */
.quick-view-product {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1rem;
}

.quick-view-product-image {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 1rem;
    margin-bottom: 1.5rem;
}

.quick-view-product-summary {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .quick-view-product-image {
        flex: 0 0 40%;
        max-width: 40%;
        margin-bottom: 0;
    }
    
    .quick-view-product-summary {
        flex: 0 0 60%;
        max-width: 60%;
    }
}

.quick-view-product-image img {
    width: 100%;
    height: auto;
    border-radius: 0.25rem;
}

.quick-view-product-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary-color);
}

.quick-view-product-price {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.quick-view-product-price del {
    color: var(--text-tertiary-color);
    font-weight: normal;
    margin-right: 0.5rem;
}

.quick-view-product-price ins {
    text-decoration: none;
    color: var(--accent-color);
}

.quick-view-product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.quick-view-product-rating .star-rating {
    margin-right: 0.5rem;
}

.quick-view-review-count {
    font-size: 0.875rem;
    color: var(--text-secondary-color);
}

.quick-view-product-description {
    margin-bottom: 1.5rem;
    color: var(--text-secondary-color);
    line-height: 1.6;
}

.quick-view-product-stock {
    margin-bottom: 1.5rem;
    font-weight: 500;
}

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

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

.quick-view-add-to-cart {
    margin-bottom: 1.5rem;
}

.quick-view-add-to-cart form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.quick-view-add-to-cart .quantity {
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.quick-view-add-to-cart .quantity label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary-color);
}

.quick-view-add-to-cart .quantity input {
    width: 5rem;
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
}

.quick-view-button {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.quick-view-button:hover {
    background-color: var(--secondary-color);
}

.quick-view-variable-product .button,
.quick-view-view-details .button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

.quick-view-variable-product .button:hover,
.quick-view-view-details .button:hover {
    background-color: var(--secondary-color);
}

.quick-view-meta {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.875rem;
    color: var(--text-secondary-color);
}

.quick-view-sku,
.quick-view-categories {
    margin-bottom: 0.5rem;
}

.quick-view-sku span:first-child,
.quick-view-categories span:first-child {
    font-weight: 500;
    margin-right: 0.5rem;
}
