/* ==================== BASE STYLES - Compare Bar ==================== */

/* Utility classes */
.hidden {
    display: none !important;
}

/* Compare Bar */
.ldm-compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10001;
    background: var(--ldm-white);
    box-shadow: 0 -4px 20px var(--ldm-shadow);
    border-top: 2px solid var(--ldm-primary);
    padding: 14px 24px;
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.ldm-compare-bar.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.ldm-compare-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.ldm-compare-bar-items {
    display: flex;
    gap: 10px;
    flex: 1;
    overflow-x: auto;
    overflow-y: visible;
    padding: 12px 8px;
}

.ldm-compare-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--ldm-bg);
    border-radius: var(--ldm-radius-sm);
    padding: 8px 12px;
    min-width: 200px;
    max-width: 240px;
    position: relative;
    border: 1px solid var(--ldm-border);
    overflow: visible;
}

.ldm-compare-bar-item img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.ldm-compare-bar-item-info {
    flex: 1;
    min-width: 0;
}

.ldm-compare-bar-item-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--ldm-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ldm-compare-bar-item-price {
    font-size: 12px;
    color: var(--ldm-text-light);
}

.ldm-compare-bar-item-remove {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #dc2626;
    color: white;
    border: 2px solid var(--ldm-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    padding: 0;
    transition: all 0.2s;
    z-index: 10;
}

.ldm-compare-bar-item-remove:hover {
    transform: scale(1.15);
}

.ldm-compare-bar-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ldm-bg);
    border: 2px dashed var(--ldm-border);
    border-radius: var(--ldm-radius-sm);
    min-width: 200px;
    max-width: 240px;
    height: 58px;
}

.ldm-compare-bar-slot span {
    font-size: 12px;
    color: #bbb;
}

.ldm-compare-bar-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.ldm-compare-bar-clear {
    padding: 8px 14px;
    border-radius: var(--ldm-radius-sm);
    border: 1px solid var(--ldm-border);
    background: var(--ldm-white);
    color: var(--ldm-text-light);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Signika', sans-serif;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.ldm-compare-bar-clear:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fca5a5;
}

.ldm-compare-bar-go {
    padding: 8px 18px;
    border-radius: var(--ldm-radius-sm);
    border: none;
    background: linear-gradient(135deg, var(--ldm-primary), var(--ldm-primary-dark));
    color: var(--ldm-text);
    font-size: 13px;
    font-weight: 600;
    font-family: 'Signika', sans-serif;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
}

.ldm-compare-bar-go:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(169, 204, 240, 0.4);
}

.ldm-compare-bar-go:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ldm-compare-bar-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--ldm-border);
    background: var(--ldm-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.ldm-compare-bar-toggle:hover {
    background: var(--ldm-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(169, 204, 240, 0.3);
}

/* Compare FAB */
.ldm-compare-fab {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 10001;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ldm-primary));
    color: var(--ldm-text);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(169, 204, 240, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.ldm-compare-fab.active {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.ldm-compare-fab:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 6px 24px rgba(169, 204, 240, 0.6);
}

.ldm-compare-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #dc2626;
    color: white;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--ldm-white);
}

/* Responsive */
@media (max-width: 768px) {
    .ldm-compare-bar { padding: 10px 12px; }
    .ldm-compare-bar-item { min-width: 160px; max-width: 180px; padding: 6px 10px; }
    .ldm-compare-bar-item img { width: 36px; height: 36px; }
    .ldm-compare-bar-slot { min-width: 160px; max-width: 180px; height: 48px; }
    .ldm-compare-fab { bottom: 16px; left: 16px; width: 46px; height: 46px; }
}

/* ==================== BASE TEMPLATE - User Menu Dropdown Styles ==================== */
.ldm-header-user-menu {
    position: relative;
}

.ldm-user-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ldm-user-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 280px;
    margin-top: 12px;
    padding: 12px 0;
    display: none;
    z-index: 1000;
    animation: slideDown 0.2s ease-out;
}

.ldm-user-menu-dropdown.active {
    display: block;
}

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

.ldm-user-menu-header {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ldm-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
}

.ldm-user-info {
    flex: 1;
    min-width: 0;
}

.ldm-user-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ldm-user-email {
    font-size: 12px;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ldm-user-menu-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 8px 0;
}

.ldm-user-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 14px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.ldm-user-menu-item:hover {
    background-color: #f5f5f5;
    color: #667eea;
}

.ldm-user-menu-logout:hover {
    color: #f44336 !important;
}

.ldm-user-menu-item svg {
    color: currentColor;
    flex-shrink: 0;
}


