/* ==========================================
   PRODUCT MODAL STYLES
   Styles für Produktdetails-Modal mit Bildergalerie
   ========================================== */

/* Modal Overlay */
.product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal Content */
.product-modal-content {
    background: white;
    border-radius: 24px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: slideUp 0.3s ease;
}

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

/* Close Button */
.product-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-modal-close:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.product-modal-close svg {
    width: 20px;
    height: 20px;
    color: #1e293b;
}

/* Gallery Section */
.product-modal-gallery {
    position: relative;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 40px;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.gallery-image.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* Gallery Navigation Buttons */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-nav-btn:hover:not(:disabled) {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.gallery-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.gallery-nav-btn.prev {
    left: 16px;
}

.gallery-nav-btn.next {
    right: 16px;
}

.gallery-nav-btn svg {
    width: 24px;
    height: 24px;
    color: #1e293b;
}

/* Gallery Indicators */
.gallery-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.gallery-indicator {
    width: 8px;
    height: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.gallery-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.gallery-indicator.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

/* Product Info Section */
.product-modal-info {
    padding: 40px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.product-modal-title {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 24px 0;
    line-height: 1.2;
}

.product-modal-price-section {
    margin-bottom: 32px;
}

.product-price-box {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.product-sale-price {
    font-size: 36px;
    font-weight: 800;
    color: #ec4899;
}

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

.product-discount-badge {
    padding: 6px 12px;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    color: white;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
}

.product-modal-description {
    margin-bottom: 32px;
}

.product-modal-description h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px 0;
}

.product-modal-description p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Add to Cart Section */
.product-modal-cart {
    margin-top: auto;
    padding-top: 24px;
    border-top: 2px solid #f1f5f9;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.quantity-btn {
    width: 44px;
    height: 44px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.quantity-btn:hover {
    background: #f8fafc;
    border-color: #8b5cf6;
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-btn svg {
    width: 20px;
    height: 20px;
    color: #64748b;
}

.quantity-input {
    flex: 1;
    height: 44px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    background: white;
}

.quantity-input:focus {
    outline: none;
    border-color: #8b5cf6;
}

.add-to-cart-btn-large {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.add-to-cart-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.add-to-cart-btn-large:active {
    transform: translateY(0);
}

.add-to-cart-btn-large svg {
    width: 20px;
    height: 20px;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .product-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }
    
    .product-modal-content {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 24px 24px 0 0;
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }
    
    .product-modal-gallery {
        min-height: 300px;
        max-height: 400px;
    }
    
    .gallery-image {
        padding: 20px;
    }
    
    .gallery-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .gallery-nav-btn.prev {
        left: 12px;
    }
    
    .gallery-nav-btn.next {
        right: 12px;
    }
    
    .product-modal-info {
        padding: 24px;
    }
    
    .product-modal-title {
        font-size: 24px;
        margin-bottom: 16px;
    }
    
    .product-sale-price {
        font-size: 28px;
    }
    
    .product-original-price {
        font-size: 16px;
    }
}

/* ==========================================
   CART NOTIFICATION STYLES
   ========================================== */

.cart-notification-message {
    margin: 16px auto;
    max-width: 600px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    animation: slideInNotification 0.5s ease;
}

@keyframes slideInNotification {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cart-notification-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-notification-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.cart-notification-content {
    flex: 1;
    font-size: 14px;
    color: #1e293b;
    line-height: 1.5;
}

.cart-notification-content strong {
    color: #8b5cf6;
    font-weight: 700;
}

.cart-notification-time {
    font-size: 12px;
    color: #9ca3af;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .cart-notification-message {
        margin: 12px 16px;
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .cart-notification-icon {
        width: 36px;
        height: 36px;
    }
    
    .cart-notification-content {
        font-size: 13px;
    }
}