/**
 * Notification System Styles
 * Novoshop Theme
 */

.novoshop-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    min-width: 300px;
    max-width: 450px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    transform: translateX(120%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.novoshop-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
}

.notification-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.notification-message {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

/* Success Notification */
.notification-success {
    border-right: 4px solid #4caf50;
}

.notification-success .notification-icon {
    background: #e8f5e9;
}

.notification-success .notification-icon::before {
    content: '✓';
    color: #4caf50;
    font-weight: bold;
    font-size: 16px;
}

/* Error Notification */
.notification-error {
    border-right: 4px solid #f44336;
}

.notification-error .notification-icon {
    background: #ffebee;
}

.notification-error .notification-icon::before {
    content: '✕';
    color: #f44336;
    font-weight: bold;
    font-size: 16px;
}

/* Info Notification */
.notification-info {
    border-right: 4px solid #2196f3;
}

.notification-info .notification-icon {
    background: #e3f2fd;
}

.notification-info .notification-icon::before {
    content: 'ℹ';
    color: #2196f3;
    font-weight: bold;
    font-size: 16px;
}

/* Warning Notification */
.notification-warning {
    border-right: 4px solid #ff9800;
}

.notification-warning .notification-icon {
    background: #fff3e0;
}

.notification-warning .notification-icon::before {
    content: '⚠';
    color: #ff9800;
    font-weight: bold;
    font-size: 16px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .novoshop-notification {
        right: 15px;
        left: 15px;
        min-width: auto;
        max-width: none;
    }
    
    .notification-content {
        padding: 15px;
    }
    
    .notification-message {
        font-size: 14px;
    }
}

/* Animation for multiple notifications */
.novoshop-notification:nth-child(n+2) {
    margin-top: 10px;
}

/* ============================================
   Quick View Modal Styles
   ============================================ */

body.quick-view-open {
    overflow: hidden;
}

.quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.quick-view-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.quick-view-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 950px;
    max-height: 90vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.quick-view-modal.show .quick-view-container {
    transform: translate(-50%, -50%) scale(1);
}

.quick-view-close {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
}

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

.quick-view-close svg {
    color: #333;
}

.quick-view-content {
    max-height: 90vh;
    overflow-y: auto;
}

.quick-view-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

/* Gallery Section */
.quick-view-gallery {
    background: #f8f9fa;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quick-view-main-image {
    text-align: center;
}

.quick-view-main-image img {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
    border-radius: 12px;
}

.quick-view-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-view-thumbnails .thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.quick-view-thumbnails .thumb:hover,
.quick-view-thumbnails .thumb.active {
    border-color: var(--primary-color, #2563eb);
}

.quick-view-thumbnails .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Details Section */
.quick-view-details {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quick-view-category a {
    color: #888;
    font-size: 13px;
    text-decoration: none;
}

.quick-view-category a:hover {
    color: var(--primary-color, #2563eb);
}

.quick-view-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.4;
}

.quick-view-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-view-rating .star {
    color: #ddd;
    font-size: 16px;
}

.quick-view-rating .star.filled {
    color: #ffc107;
}

.quick-view-rating .rating-count {
    color: #888;
    font-size: 13px;
}

.quick-view-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color, #2563eb);
}

.quick-view-price del {
    color: #999;
    font-size: 16px;
    font-weight: 400;
}

.quick-view-price ins {
    text-decoration: none;
}

.quick-view-stock {
    font-size: 14px;
}

.quick-view-stock .in-stock {
    color: #4caf50;
    font-weight: 500;
}

.quick-view-stock .out-of-stock {
    color: #f44336;
    font-weight: 500;
}

.quick-view-description {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    max-height: 100px;
    overflow-y: auto;
}

.quick-view-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.quick-view-quantity {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}

.quick-view-quantity .qty-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #333;
    transition: background 0.2s;
}

.quick-view-quantity .qty-btn:hover {
    background: #e0e0e0;
}

.quick-view-quantity .qty {
    width: 50px;
    height: 40px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    -moz-appearance: textfield;
}

.quick-view-quantity .qty::-webkit-outer-spin-button,
.quick-view-quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quick-view-add-to-cart {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 25px;
    background: var(--primary-color, #2563eb);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-view-add-to-cart:hover {
    background: var(--primary-color-dark, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.quick-view-add-to-cart.loading {
    opacity: 0.7;
    pointer-events: none;
}

.quick-view-select-options,
.quick-view-out-of-stock {
    flex: 1;
    display: block;
    padding: 12px 25px;
    text-align: center;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.quick-view-select-options {
    background: #333;
    color: #fff;
}

.quick-view-select-options:hover {
    background: #1a1a1a;
    color: #fff;
}

.quick-view-out-of-stock {
    background: #f5f5f5;
    color: #999;
    border: none;
    cursor: not-allowed;
}

.quick-view-full-link {
    display: inline-block;
    color: var(--primary-color, #2563eb);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
    transition: all 0.2s;
}

.quick-view-full-link:hover {
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .quick-view-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .quick-view-product {
        grid-template-columns: 1fr;
    }
    
    .quick-view-gallery {
        padding: 20px;
    }
    
    .quick-view-main-image img {
        max-height: 250px;
    }
    
    .quick-view-details {
        padding: 20px;
    }
    
    .quick-view-title {
        font-size: 18px;
    }
    
    .quick-view-price {
        font-size: 20px;
    }
    
    .quick-view-actions {
        flex-wrap: wrap;
    }
    
    .quick-view-quantity {
        width: 100%;
        justify-content: center;
    }
    
    .quick-view-add-to-cart {
        width: 100%;
    }
}

