/* ==========================================
   VANÄHLISMUS LIVE SHOP - STYLES.CSS
   NUR DESKTOP STYLES - MOBILE IN mobile-styles.css
   ========================================== */

/* ==========================================
   RESET & BASE
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    min-height: 100dvh;
    height: -webkit-fill-available;
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #fce7f3 0%, #f3e8ff 50%, #dbeafe 100%);
    height: 100vh;
    display: flex;
    overflow: hidden;
}

.icon {
    width: 20px;
    height: 20px;
}

/* ==========================================
   DESKTOP LAYOUT
   ========================================== */

.sidebar-left {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 100vh;
    background: rgba(255, 255, 255);
    backdrop-filter: blur(40px);
    border-right: 1px solid rgba(255, 255, 255, 0.5);
    padding: 24px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 10;
}

.main-content {
    position: fixed;
    top: 0;
    left: 320px;
    right: 340px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    overflow: hidden;
    z-index: 5;
}

.sidebar-right {
    position: fixed;
    top: 0;
    right: 0;
    width: 340px;
    height: 100vh;
    background: rgba(255, 255, 255);
    backdrop-filter: blur(40px);
    border-left: 1px solid rgba(255, 255, 255, 0.5);
    padding: 24px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

body.admin-mode .sidebar-left,
body.user-mode .sidebar-left,
body.admin-mode .main-content,
body.user-mode .main-content,
body.admin-mode .sidebar-right,
body.user-mode .sidebar-right {
    top: 72px;
    height: calc(100vh - 72px);
}

/* ==========================================
   TIMER WIDGET
   ========================================== */

.timer-widget {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.4);
    margin-bottom: 24px;
}

.timer-text {
    font-weight: bold;
    font-size: 16px;
}

/* ==========================================
   ONLINE USERS WIDGET
   ========================================== */

.online-users-widget {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.widget-header h3 {
    font-size: 14px;
    font-weight: bold;
    color: #1f2937;
}

.widget-header .icon {
    color: #8b5cf6;
}

.online-users-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 180px;
    overflow-y: auto;
}

.online-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.2s;
}

.online-user:hover {
    background: rgba(139, 92, 246, 0.1);
}

.online-user.selected {
    background: rgba(139, 92, 246, 0.15);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.user-name {
    flex: 1;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.user-cart-value {
    font-size: 12px;
    font-weight: 700;
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    margin-right: 4px;
}

.online-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    flex-shrink: 0;
}

/* ==========================================
   ADMIN USER CART SECTION (IN SIDEBAR)
   ========================================== */

.admin-user-cart-section {
    margin-bottom: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(139, 92, 246, 0.2);
}

.admin-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.admin-cart-header .section-title {
    margin: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #8b5cf6;
}

.close-cart-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.close-cart-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: rotate(90deg);
}

.close-cart-btn .icon {
    width: 16px;
    height: 16px;
    color: #8b5cf6;
}

/* ==========================================
   WARENKORB SECTION - MEGA MODERN DESIGN 🛒
   ========================================== */

.cart-section {
    background: linear-gradient(145deg, #ffffff 0%, #faf8ff 100%);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 
        0 10px 40px rgba(139, 92, 246, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.1);
    position: relative;
    overflow: visible; /* Changed from hidden to visible */
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 400px); /* Prevent overflow */
}

.cart-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ec4899 0%, #8b5cf6 50%, #3b82f6 100%);
    border-radius: 20px 20px 0 0;
}

.section-title {
    font-size: 17px;
    font-weight: 800;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.3px;
    flex-shrink: 0;
}

.section-title .icon {
    width: 20px;
    height: 20px;
    color: #8b5cf6;
    filter: drop-shadow(0 2px 4px rgba(139, 92, 246, 0.3));
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 20px;
    padding-right: 4px;
    min-height: 0; /* Important for flex scrolling */
}

.cart-items::-webkit-scrollbar {
    width: 6px;
}

.cart-items::-webkit-scrollbar-track {
    background: rgba(139, 92, 246, 0.05);
    border-radius: 10px;
}

.cart-items::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ec4899 0%, #8b5cf6 100%);
    border-radius: 10px;
}

.cart-item {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 14px;
    padding: 14px;
    background: white;
    border-radius: 16px;
    margin-bottom: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 1px 2px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: visible; /* Changed to prevent clipping */
}

.cart-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.03) 0%, rgba(139, 92, 246, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 16px;
    pointer-events: none;
}

.cart-item:hover {
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: 
        0 8px 24px rgba(139, 92, 246, 0.15),
        0 2px 6px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.cart-item:hover::before {
    opacity: 1;
}

.cart-item-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid rgba(139, 92, 246, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cart-item-image:hover {
    transform: scale(1.05);
    border-color: #8b5cf6;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    position: relative;
    z-index: 1;
    min-width: 0; /* Prevent overflow */
}

.cart-item-name {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    cursor: pointer;
    line-height: 1.3;
    transition: all 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.cart-item-name:hover {
    color: #8b5cf6;
    transform: translateX(2px);
}

.cart-item-price {
    font-size: 16px;
    font-weight: 800;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.cart-qty-btn {
    width: 28px;
    height: 28px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.cart-qty-btn:hover {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    border-color: transparent;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

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

.cart-qty-btn:hover svg {
    color: white;
}

.cart-qty-btn svg {
    width: 14px;
    height: 14px;
    color: #64748b;
    transition: all 0.2s;
}

.cart-qty {
    font-size: 15px;
    font-weight: 800;
    color: #1e293b;
    min-width: 32px;
    text-align: center;
    padding: 4px 8px;
    background: rgba(139, 92, 246, 0.08);
    border-radius: 8px;
}

.cart-item-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: white;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.cart-item-remove:hover {
    background: #fee2e2;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.cart-item-remove:active {
    transform: scale(0.9) rotate(90deg);
}

.cart-item-remove svg {
    width: 14px;
    height: 14px;
    color: #ef4444;
}

.cart-empty {
    text-align: center;
    padding: 64px 24px;
    color: #9ca3af;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-cart-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    opacity: 0.15;
    color: #8b5cf6;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(139, 92, 246, 0.2));
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) scale(1);
    }
    50% { 
        transform: translateY(-15px) scale(1.05);
    }
}

.cart-empty p {
    font-size: 16px;
    margin: 0;
    font-weight: 600;
    color: #64748b;
    line-height: 1.6;
}

.cart-total {
    border-top: 2px solid rgba(139, 92, 246, 0.1);
    padding-top: 20px;
    margin-top: 8px;
    flex-shrink: 0;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-radius: 12px;
}

.total-label {
    font-size: 16px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: -0.2px;
}

.total-amount {
    font-size: 26px;
    font-weight: 900;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.checkout-btn {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #3b82f6 100%);
    background-size: 200% 100%;
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 24px rgba(139, 92, 246, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.checkout-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.checkout-btn::after {
    content: '→';
    font-size: 24px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.checkout-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 
        0 16px 40px rgba(139, 92, 246, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background-position: 100% 0;
    letter-spacing: 1.5px;
}

.checkout-btn:hover:not(:disabled)::before {
    width: 400px;
    height: 400px;
}

.checkout-btn:hover:not(:disabled)::after {
    opacity: 1;
    transform: translateX(0);
}

.checkout-btn:active:not(:disabled) {
    transform: translateY(-1px);
}

.checkout-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
    box-shadow: none;
}

/* ==========================================
   MAIN CONTENT - CHAT
   ========================================== */

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.empty-icon {
    width: 64px;
    height: 64px;
    opacity: 0.5;
    margin-bottom: 16px;
}

.empty-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-subtitle {
    font-size: 14px;
}

.chat-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(40px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding: 16px 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.chat-header-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.chat-product-info {
    flex: 1;
}

.chat-product-name {
    font-size: 18px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 4px;
}

.chat-product-description {
    font-size: 14px;
    color: #6b7280;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message-wrapper {
    display: flex;
    position: relative;
}

.message-wrapper.own {
    justify-content: flex-end;
}

.message-wrapper.other {
    justify-content: flex-start;
}

.message-wrapper.system {
    justify-content: center;
}

.message {
    max-width: 60%;
    padding: 12px 16px;
    border-radius: 16px;
    position: relative;
    transition: all 0.2s;
}

.message-wrapper:hover .message {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.message.own {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.message.other {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-bottom-left-radius: 4px;
}

.message.system {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    color: #92400e;
    max-width: 100%;
    text-align: center;
    border-radius: 12px;
}

.message-user {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    opacity: 0.8;
}

.message-text {
    font-size: 14px;
    line-height: 1.4;
}

.message-time {
    font-size: 11px;
    margin-top: 4px;
    opacity: 0.7;
}

.message-reply {
    background: rgba(139, 92, 246, 0.1);
    border-left: 3px solid #8b5cf6;
    padding: 6px 10px;
    margin-bottom: 6px;
    border-radius: 6px;
    font-size: 12px;
}

.message.own .message-reply-author {
    color: white;
    font-weight: 600;
    margin-bottom: 2px;
}

.message.own .message-reply-text {
    color: rgba(255, 255, 255, 0.9);
}

.message.other .message-reply-author {
    color: #8b5cf6;
    font-weight: 600;
    margin-bottom: 2px;
}

.message.other .message-reply-text {
    color: #6b7280;
}

.message-reactions {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.message-reaction {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.message-reaction:hover {
    background: #e5e7eb;
    transform: scale(1.05);
}

.message-reaction.active {
    background: #ede9fe;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.message-actions {
    position: absolute;
    top: -8px;
    right: 8px;
    display: none;
    gap: 4px;
    background: white;
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.message-wrapper:hover .message-actions {
    display: flex;
}

.message-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.message-action-btn svg {
    width: 16px;
    height: 16px;
    color: #6b7280;
}

.message-action-btn:hover {
    background: #f3f4f6;
}

.message-action-btn:hover svg {
    color: #374151;
}

.message-action-btn.delete:hover {
    background: #fee2e2;
}

.message-action-btn.delete:hover svg {
    color: #ef4444;
}

.message-image-wrapper {
    margin: 8px 0;
    border-radius: 12px;
    overflow: hidden;
    max-width: 300px;
}

.message-image {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    border-radius: 12px;
}

.chat-input {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(40px);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    padding: 16px 24px;
}

.chat-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-input-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: none;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.chat-input-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.chat-input-field {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.chat-input-field:focus {
    border-color: #ec4899;
}

.chat-send-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.chat-send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.4);
}

/* ==========================================
   RIGHT SIDEBAR - ARTIKEL-ÜBERSICHT
   ========================================== */

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.sidebar-title .icon {
    width: 20px;
    height: 20px;
    color: #8b5cf6;
    flex-shrink: 0;
}

/* Event Info Widget */
#event-info-widget {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.event-info-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-info-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.event-info-time,
.event-info-products {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
}

.event-info-time .icon,
.event-info-products .icon {
    width: 16px;
    height: 16px;
    color: #8b5cf6;
    flex-shrink: 0;
}

.event-status-active {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    width: fit-content;
}

.event-status-active .status-indicator {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Products Sidebar Container */
.products-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-product {
    position: relative;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    display: block;
    flex-shrink: 0;
}

.sidebar-product:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}

.sidebar-product-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    background: white;
}

.sidebar-product-info {
    padding: 12px;
    background: #ffffff;
}

.sidebar-product-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-product-price {
    font-weight: 700;
    color: #ec4899;
    font-size: 16px;
}

.cart-quantity-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 10px;
    min-width: 24px;
    text-align: center;
    z-index: 10;
}

.empty-text {
    text-align: center;
    color: #9ca3af;
    padding: 32px 16px;
    font-size: 13px;
    line-height: 1.6;
}

/* Product Badges */
.product-article-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #8b5cf6;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    z-index: 5;
}

.product-preorder-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #3b82f6;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    z-index: 5;
}

.product-low-stock-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #f97316;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    z-index: 5;
}

.product-storage-badge {
    font-size: 9px;
    background: rgba(16, 185, 129, 0.2);
    color: #059669;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

.product-article-info-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.half-steps-hint {
    font-size: 12px;
    color: #8b5cf6;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================
   PRODUCT MODAL
   ========================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

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

.modal-content {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 2px solid #f1f5f9;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
}

.modal-close-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: rotate(90deg);
}

.modal-body {
    padding: 32px;
}

.product-modal-image {
    width: 100%;
    height: auto;
    display: block;
    background: #ffffff;
    border-radius: 16px;
    margin-bottom: 24px;
}

.product-info-section {
    margin-bottom: 24px;
}

.product-price-section {
    padding: 20px;
    border-radius: 16px;
    border: 2px solid #f1f5f9;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.product-modal-old-price {
    font-size: 18px;
    font-weight: 600;
    color: #9ca3af;
    text-decoration: line-through;
    margin-left: 12px;
}

/* Variant Selection */
.variant-selection-section {
    padding: 20px;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.variant-label {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    display: block;
}

.variant-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.modal-variant-btn {
    padding: 10px 16px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: #1e293b;
}

.modal-variant-btn:hover {
    border-color: #8b5cf6;
}

.modal-variant-btn.selected {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

/* Quantity Controls */
.quantity-controls-wrapper {
    padding: 20px;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.quantity-label {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    display: block;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

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

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

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

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

.quantity-display {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    min-width: 80px;
    width: 80px;
    text-align: center;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
}

.add-to-cart-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.3);
}

.add-to-cart-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.4);
}

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

.add-to-cart-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================
   EMOJI PICKER
   ========================================== */

.emoji-picker {
    position: fixed;
    width: 320px;
    height: 400px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: emojiPickerSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes emojiPickerSlideIn {
    from {
        transform: translateY(20px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.emoji-picker-header {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px;
    border-bottom: 2px solid #f1f5f9;
    background: #f8fafc;
    flex-shrink: 0;
}

.emoji-category-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.emoji-category-btn:hover {
    background: #e2e8f0;
    transform: scale(1.1);
}

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

.emoji-picker-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    -webkit-overflow-scrolling: touch;
}

.emoji-category-section {
    margin-bottom: 20px;
}

.emoji-category-title {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 10px;
    padding: 4px 8px;
    background: #f1f5f9;
    border-radius: 8px;
    display: inline-block;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
    gap: 4px;
}

.emoji-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-btn:hover {
    background: #f1f5f9;
    transform: scale(1.2);
}

.emoji-btn:active {
    transform: scale(0.9);
}

.emoji-picker-content::-webkit-scrollbar {
    width: 6px;
}

.emoji-picker-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.emoji-picker-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    border-radius: 10px;
}

/* ==========================================
   REACTION PICKER
   ========================================== */

.reaction-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease;
}

.reaction-picker {
    background: white;
    border-radius: 20px;
    padding: 16px;
    display: flex;
    gap: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.reaction-emoji-btn {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.2s;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reaction-emoji-btn:hover {
    background: #f3f4f6;
    transform: scale(1.2);
}

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

/* ==========================================
   CART NOTIFICATION MESSAGE
   ========================================== */

.cart-notification-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #fbbf24;
    border-radius: 16px;
    margin: 8px 0;
}

.cart-notification-icon {
    width: 24px;
    height: 24px;
    color: #f59e0b;
    flex-shrink: 0;
}

.cart-notification-content {
    flex: 1;
    font-size: 13px;
    color: #92400e;
    font-weight: 500;
}

.cart-notification-time {
    font-size: 11px;
    color: #a16207;
}

/* ==========================================
   SCROLLBAR STYLING
   ========================================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #db2777 0%, #7c3aed 100%);
}

/* ==========================================
   NO EVENT CONTAINER
   ========================================== */

.no-event-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 48px;
    text-align: center;
}

.no-event-icon {
    font-size: 80px;
    margin-bottom: 24px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.no-event-title {
    font-size: 32px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 16px;
}

.no-event-text {
    font-size: 18px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 32px;
}