/* ===== LUMIÈRE WISHLIST DESIGN SYSTEM ===== */
/* Basierend auf dem modernen Index-Design */

:root {
    /* Lumière Farben */
    --lumiere-primary: #667eea;
    --lumiere-primary-dark: #5a67d8;
    --lumiere-secondary: #764ba2;
    --lumiere-accent: #f6ad55;
    --lumiere-success: #48bb78;
    --lumiere-danger: #f56565;
    --lumiere-warning: #ed8936;
    --lumiere-info: #4299e1;
    
    /* Graustufen */
    --lumiere-black: #1a1a1a;
    --lumiere-gray-900: #2d3748;
    --lumiere-gray-800: #4a5568;
    --lumiere-gray-700: #718096;
    --lumiere-gray-600: #a0aec0;
    --lumiere-gray-500: #cbd5e0;
    --lumiere-gray-400: #e2e8f0;
    --lumiere-gray-300: #edf2f7;
    --lumiere-gray-200: #f7fafc;
    --lumiere-gray-100: #fafafa;
    --lumiere-white: #ffffff;
    
    /* Schatten */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.12);
    
    /* Abstände */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Radien */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

/* Basis Styles */
body {
    background: #fafafa;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Navigation Bar - Lumière Style */
.navbar {
    background: var(--lumiere-white) !important;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    body {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .navbar {
        padding: 0.75rem 0 !important;
        margin: 0 !important;
    }
    
    .nav-flex {
        padding: 0 1rem !important;
    }
    
    .navbar-brand {
        font-size: 1.3rem !important;
    }
    
    .back-to-shop-btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
    }
    
    .container.mt-2 {
        margin-top: 0 !important;
        padding-top: 1rem !important;
    }
    
    main {
        margin: 0 !important;
        padding: 0 !important;
    }
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--lumiere-black);
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--lumiere-primary);
    transform: translateX(2px);
}

.nav-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-xl);
}

/* Back to Shop Button */
.back-to-shop-btn {
    background: var(--lumiere-black);
    color: var(--lumiere-white);
    text-decoration: none;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-to-shop-btn:hover {
    background: var(--lumiere-gray-800);
    color: var(--lumiere-white);
    transform: translateY(-1px);
    text-decoration: none;
}

.back-to-shop-btn i {
    font-size: 1rem;
}

/* Main Content Container */
main {
    padding: var(--spacing-xl) 0;
    min-height: calc(100vh - 80px);
}

.container h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--lumiere-gray-900);
    margin-bottom: var(--spacing-lg);
    position: relative;
    display: inline-block;
}

.container h2::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-full);
}

/* Wishlist Grid */
#wishlistGrid {
    margin-top: var(--spacing-xl);
}

/* Product Cards - Lumière Style */
.card {
    background: var(--lumiere-white);
    border: 1px solid #e2e8f0 !important;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e0 !important;
}

.shadow-hover {
    transition: all 0.3s ease;
}

/* Wishlist Heart Button */
.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wishlist-btn:hover {
    background: #f56565;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.3);
}

.wishlist-btn i {
    color: #f56565;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.wishlist-btn:hover i {
    color: var(--lumiere-white);
    animation: heartBeat 0.8s infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
}

/* Product Image */
.ratio {
    background: #f7fafc;
    border-bottom: 1px solid #e2e8f0;
}

.card-img-top {
    object-fit: contain;
    padding: 1rem;
    background: transparent;
    transition: transform 0.2s ease;
}

.card:hover .card-img-top {
    transform: scale(1.03);
}

/* Card Body */
.card-body {
    padding: var(--spacing-lg);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--lumiere-gray-900);
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-text {
    font-size: 0.9rem;
    color: var(--lumiere-gray-600);
    line-height: 1.5;
    margin-bottom: var(--spacing-md);
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Price Section */
.h4.text-primary {
    color: var(--lumiere-primary) !important;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
}

.text-muted {
    color: var(--lumiere-gray-500) !important;
    font-size: 0.75rem;
}

/* Add to Cart Button */
.add-to-cart-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--lumiere-white) !important;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
    background: linear-gradient(135deg, #5a67d8 0%, #6a4190 100%);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

.add-to-cart-btn i {
    font-size: 1rem;
}

/* Card Footer */
.card-footer {
    background: transparent !important;
    border-top: 1px solid var(--lumiere-gray-200);
    padding: var(--spacing-md);
}

/* Remove from Wishlist Button */
.remove-wishlist-btn {
    background: transparent;
    color: var(--lumiere-danger);
    border: 2px solid var(--lumiere-danger);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

.remove-wishlist-btn:hover {
    background: var(--lumiere-danger);
    color: var(--lumiere-white) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.3);
}

.remove-wishlist-btn i {
    font-size: 1rem;
}

/* Empty Wishlist State */
#wishlistEmpty {
    padding: 3rem 0;
    animation: fadeIn 0.5s ease;
}

#wishlistEmpty i {
    color: #cbd5e0;
    margin-bottom: 1rem;
    font-size: 3rem;
}

#wishlistEmpty p {
    color: var(--lumiere-gray-600);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

#wishlistEmpty .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: var(--radius-lg);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

#wishlistEmpty .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Add All Container */
#addAllContainer {
    padding: var(--spacing-xl) 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#addAllContainer.show {
    opacity: 1;
    visibility: visible;
}

/* Add All to Cart Button */
#addAllToCart {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: var(--lumiere-white);
    border: none;
    border-radius: var(--radius-lg);
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(72, 187, 120, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

#addAllToCart:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
    background: linear-gradient(135deg, #38a169 0%, #48bb78 100%);
}

#addAllToCart i {
    font-size: 1.1rem;
}

/* Remove All Button */
#removeAllFromWishlist {
    background: transparent;
    color: var(--lumiere-danger);
    border: 1.5px solid var(--lumiere-danger);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

#removeAllFromWishlist:hover {
    background: var(--lumiere-danger);
    color: var(--lumiere-white) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.3);
}

#removeAllFromWishlist i {
    font-size: 1.1rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.4rem;
    }
    
    .nav-flex {
        padding: 0 var(--spacing-md);
    }
    
    .back-to-shop-btn {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: 0.85rem;
    }
    
    .back-to-shop-btn span {
        display: none;
    }
    
    .container h2 {
        font-size: 1.5rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .card-text {
        font-size: 0.85rem;
    }
    
    .h4.text-primary {
        font-size: 1.3rem;
    }
    
    .add-to-cart-btn {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.85rem;
    }
    
    .remove-wishlist-btn {
        font-size: 0.85rem;
    }
    
    #addAllContainer {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    #addAllToCart,
    #removeAllFromWishlist {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .container h2 {
        font-size: 1.3rem;
    }
    
    .card-body {
        padding: var(--spacing-md);
    }
    
    .card-title {
        font-size: 0.95rem;
    }
    
    .h4.text-primary {
        font-size: 1.2rem;
    }
    
    .wishlist-btn {
        width: 35px;
        height: 35px;
        top: 8px;
        right: 8px;
    }
    
    .wishlist-btn i {
        font-size: 1rem;
    }
    
    #addAllToCart,
    #removeAllFromWishlist {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 0.9rem;
    }
}

/* Extra Small Devices */
@media (max-width: 414px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .container h2 {
        font-size: 1.2rem;
    }
    
    .card-body {
        padding: var(--spacing-sm);
    }
    
    .card-title {
        font-size: 0.9rem;
    }
    
    .card-text {
        font-size: 0.8rem;
    }
    
    .h4.text-primary {
        font-size: 1.1rem;
    }
    
    .wishlist-btn {
        width: 32px;
        height: 32px;
    }
    
    .add-to-cart-btn,
    .remove-wishlist-btn {
        font-size: 0.8rem;
        padding: var(--spacing-xs);
    }
}

/* Utility Classes */
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-xl { box-shadow: var(--shadow-xl) !important; }

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Hide scrollbar but keep functionality */
body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: var(--lumiere-gray-100);
}

body::-webkit-scrollbar-thumb {
    background: var(--lumiere-gray-400);
    border-radius: var(--radius-full);
}

body::-webkit-scrollbar-thumb:hover {
    background: var(--lumiere-gray-500);
}

/* Prevent horizontal overflow */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Grid Responsive Adjustments */
@media (max-width: 1200px) {
    .row-cols-lg-4 > * {
        flex: 0 0 auto;
        width: 33.333333%;
    }
}

@media (max-width: 992px) {
    .row-cols-lg-4 > * {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .row-cols-md-3 > * {
        width: 50%;
    }
}

@media (max-width: 576px) {
    .row-cols-1 > * {
        width: 100%;
    }
}

/* Final Touch - Ensure smooth transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus Styles for Accessibility */
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--lumiere-primary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .back-to-shop-btn,
    .wishlist-btn,
    .add-to-cart-btn,
    .remove-wishlist-btn,
    #addAllContainer {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}
